Image operation: erode or dilate. More...
#include <cmtkImageOperationErodeDilate.h>
Public Member Functions | |
ImageOperationErodeDilate (const int iterations) | |
Constructor: | |
virtual cmtk::UniformVolume::SmartPtr | Apply (cmtk::UniformVolume::SmartPtr &volume) |
Apply this operation to an image in place. | |
Static Public Member Functions | |
static void | NewDilate (const long int iterations) |
Create new dilation operation. | |
static void | NewErode (const long int iterations) |
Create new erosion operation. | |
Private Attributes | |
int | m_Iterations |
Number of iterations of erosion (if negative) or dilation (if positive). |
Image operation: erode or dilate.
Inherit from image operation base class.
Definition at line 44 of file cmtkImageOperationErodeDilate.h.
cmtk::ImageOperationErodeDilate::ImageOperationErodeDilate | ( | const int | iterations ) | [inline] |
Constructor:
Definition at line 50 of file cmtkImageOperationErodeDilate.h.
virtual cmtk::UniformVolume::SmartPtr cmtk::ImageOperationErodeDilate::Apply | ( | cmtk::UniformVolume::SmartPtr & | volume ) | [inline, virtual] |
Apply this operation to an image in place.
Reimplemented from cmtk::ImageOperation.
Definition at line 53 of file cmtkImageOperationErodeDilate.h.
References cmtk::DataGridMorphologicalOperators::GetDilated(), and cmtk::DataGridMorphologicalOperators::GetEroded().
static void cmtk::ImageOperationErodeDilate::NewDilate | ( | const long int | iterations ) | [inline, static] |
Create new dilation operation.
Definition at line 72 of file cmtkImageOperationErodeDilate.h.
static void cmtk::ImageOperationErodeDilate::NewErode | ( | const long int | iterations ) | [inline, static] |
Create new erosion operation.
Definition at line 78 of file cmtkImageOperationErodeDilate.h.
int cmtk::ImageOperationErodeDilate::m_Iterations [private] |
Number of iterations of erosion (if negative) or dilation (if positive).
Definition at line 85 of file cmtkImageOperationErodeDilate.h.