![]() |
aimsalgo
5.0.5
Neuroimaging image processing
|
Grey-level mathematical morphology. More...
#include <aims/morphology/operatormorpho.h>
Public Member Functions | |
MorphoGreyLevel () | |
virtual | ~MorphoGreyLevel () |
bool | isChamferBinaryMorphoEnabled () const |
when enabled, on binary images, the chamfer-based morphomath is used instead of the grey-level one. More... | |
void | setChamferBinaryMorphoEnabled (bool x) |
carto::VolumeRef< T > | doErosion (const carto::VolumeRef< T > &dataIn, float radius) |
carto::VolumeRef< T > | doDilation (const carto::VolumeRef< T > &dataIn, float radius) |
carto::VolumeRef< T > | doClosing (const carto::VolumeRef< T > &dataIn, float radius) |
carto::VolumeRef< T > | doOpening (const carto::VolumeRef< T > &dataIn, float radius) |
float | chamferFactor () const |
void | setChamferFactor (float x) |
Point3d | chamferMaskSize () const |
void | setChamferMaskSize (const Point3d &p) |
int | neededBorderWidth () const |
Static Public Member Functions | |
static bool | isBinary (const carto::VolumeRef< T > &dataIn) |
Grey-level mathematical morphology.
Definition at line 181 of file operatormorpho.h.
aims::MorphoGreyLevel< T >::MorphoGreyLevel | ( | ) |
Definition at line 47 of file morphogreylevel_d.h.
|
virtual |
Definition at line 55 of file morphogreylevel_d.h.
References aims::sqr().
|
inline |
Definition at line 203 of file operatormorpho.h.
|
inline |
Definition at line 205 of file operatormorpho.h.
carto::VolumeRef< T > aims::MorphoGreyLevel< T >::doClosing | ( | const carto::VolumeRef< T > & | dataIn, |
float | radius | ||
) |
Definition at line 258 of file morphogreylevel_d.h.
References aims::MorphoGreyLevel< T >::doDilation(), aims::MorphoGreyLevel< T >::doErosion(), and carto::rc_ptr< Volume< T > >::get().
carto::VolumeRef< T > aims::MorphoGreyLevel< T >::doDilation | ( | const carto::VolumeRef< T > & | dataIn, |
float | radius | ||
) |
Definition at line 194 of file morphogreylevel_d.h.
References carto::VolumeRef< T >::at(), carto::VolumeRef< T >::copyHeaderFrom(), carto::VolumeRef< T >::fill(), carto::rc_ptr< Volume< T > >::get(), carto::VolumeRef< T >::getSizeT(), carto::VolumeRef< T >::getSizeX(), carto::VolumeRef< T >::getSizeY(), carto::VolumeRef< T >::getSizeZ(), carto::VolumeRef< T >::getVoxelSize(), carto::VolumeRef< T >::header(), aims::meshdistance::max(), aims::meshdistance::min(), and carto::rc_ptr< Volume< T > >::reset().
Referenced by aims::MorphoGreyLevel< T >::doClosing(), and aims::MorphoGreyLevel< T >::doOpening().
carto::VolumeRef< T > aims::MorphoGreyLevel< T >::doErosion | ( | const carto::VolumeRef< T > & | dataIn, |
float | radius | ||
) |
Definition at line 130 of file morphogreylevel_d.h.
References carto::VolumeRef< T >::at(), carto::VolumeRef< T >::copyHeaderFrom(), carto::VolumeRef< T >::fill(), carto::rc_ptr< Volume< T > >::get(), carto::VolumeRef< T >::getSizeT(), carto::VolumeRef< T >::getSizeX(), carto::VolumeRef< T >::getSizeY(), carto::VolumeRef< T >::getSizeZ(), carto::VolumeRef< T >::getVoxelSize(), carto::VolumeRef< T >::header(), aims::meshdistance::max(), aims::meshdistance::min(), and carto::rc_ptr< Volume< T > >::reset().
Referenced by aims::MorphoGreyLevel< T >::doClosing(), and aims::MorphoGreyLevel< T >::doOpening().
carto::VolumeRef< T > aims::MorphoGreyLevel< T >::doOpening | ( | const carto::VolumeRef< T > & | dataIn, |
float | radius | ||
) |
Definition at line 275 of file morphogreylevel_d.h.
References AimsMorphoChamferClosing(), AimsMorphoChamferDilation(), AimsMorphoChamferErosion(), AimsMorphoChamferOpening(), carto::VolumeRef< T >::at(), carto::VolumeRef< T >::copyHeaderFrom(), aims::MorphoGreyLevel< T >::doDilation(), aims::MorphoGreyLevel< T >::doErosion(), carto::VolumeRef< T >::fill(), carto::rc_ptr< Volume< T > >::get(), carto::VolumeRef< T >::getSizeX(), carto::VolumeRef< T >::getSizeY(), carto::VolumeRef< T >::getSizeZ(), carto::VolumeRef< T >::getVoxelSize(), carto::VolumeRef< T >::header(), aims::MorphoGreyLevel< T >::isBinary(), carto::const_ref< T >::isNull(), aims::MorphoGreyLevel< T >::neededBorderWidth(), and carto::VolumeRef< T >::refVolume().
|
static |
Definition at line 519 of file morphogreylevel_d.h.
References carto::VolumeRef< T >::at(), carto::VolumeRef< T >::getSizeX(), carto::VolumeRef< T >::getSizeY(), and carto::VolumeRef< T >::getSizeZ().
Referenced by aims::MorphoGreyLevel< T >::doOpening().
|
inline |
when enabled, on binary images, the chamfer-based morphomath is used instead of the grey-level one.
This is the default as it is way faster.
Definition at line 191 of file operatormorpho.h.
int aims::MorphoGreyLevel< T >::neededBorderWidth | ( | ) | const |
Definition at line 548 of file morphogreylevel_d.h.
Referenced by aims::MorphoGreyLevel< T >::doOpening().
|
inline |
Definition at line 192 of file operatormorpho.h.
|
inline |
Definition at line 204 of file operatormorpho.h.
|
inline |
Definition at line 206 of file operatormorpho.h.