ITK
4.2.0
Insight Segmentation and Registration Toolkit
|
#include <itkMorphologyImageFilter.h>
Static Public Attributes | |
static const unsigned int | ImageDimension = TInputImage::ImageDimension |
Static Public Attributes inherited from itk::KernelImageFilter< TInputImage, TOutputImage, TKernel > | |
Static Public Attributes inherited from itk::BoxImageFilter< TInputImage, TOutputImage > | |
Static Public Attributes inherited from itk::ImageToImageFilter< TInputImage, TOutputImage > | |
static const unsigned int | InputImageDimension = TInputImage::ImageDimension |
static const unsigned int | OutputImageDimension = TOutputImage::ImageDimension |
Static Public Attributes inherited from itk::ImageSource< TOutputImage > |
Private Member Functions | |
MorphologyImageFilter (const Self &) | |
void | operator= (const Self &) |
Private Attributes | |
ImageBoundaryConditionPointerType | m_BoundaryCondition |
DefaultBoundaryConditionType | m_DefaultBoundaryCondition |
virtual ImageBoundaryConditionPointerType | GetBoundaryCondition () const |
MorphologyImageFilter () | |
~MorphologyImageFilter () | |
void | PrintSelf (std::ostream &os, Indent indent) const |
Additional Inherited Members | |
Static Public Member Functions inherited from itk::KernelImageFilter< TInputImage, TOutputImage, TKernel > | |
static Pointer | New () |
KernelType | m_Kernel |
Base class for the morphological operations such as erosion and dialation.
This class provides the infrastructure to support most morphological operations. Subclasses of MorphologyImageFilter implement specific "binary" and "grayscale" operations. The "binary" subclasses can operate on gray level data, where a specified a pixel value is consider the "foreground" and every other pixel value is considered the background. This is useful for operating on segment masks where all pixels assigned to segment #1 have value 1, all pixels assigned to segment #2 have value 2, etc. Here, a given segment can be dilated (expanded) while treating all other segment identifiers are background.
The "kernel" specified represents a morphology structuring element. The structuring element is a small Neighborhood with values indicating an element is "on" (value > 0) or "off" (value <=0). Morphological operations are defined by placing the structuring element over a pixel, and calculating a nonlinear function (min, max) over the pixels of the image that are under pixels in the structuring element that are "on". The result of this calculation is the value of the pixel in the output image. Under most circumstances, the "center pixel" of the structuring element – or structuring element pixel over the input pixel under consideration – is prescribed to be "on". This is not a strict requirement but the subclasses of this filter are not guaranteed to produce the correct result if the "center pixel" is not part of the structuring element.
Subclasses of this class can define their own operations by simply providing their own Evaluate() protected member function.
Definition at line 72 of file itkMorphologyImageFilter.h.
typedef SmartPointer< const Self > itk::MorphologyImageFilter< TInputImage, TOutputImage, TKernel >::ConstPointer |
Reimplemented from itk::KernelImageFilter< TInputImage, TOutputImage, TKernel >.
Reimplemented in itk::GrayscaleFunctionDilateImageFilter< TInputImage, TOutputImage, TKernel >, itk::GrayscaleFunctionErodeImageFilter< TInputImage, TOutputImage, TKernel >, itk::BasicDilateImageFilter< TInputImage, TOutputImage, TKernel >, and itk::BasicErodeImageFilter< TInputImage, TOutputImage, TKernel >.
Definition at line 80 of file itkMorphologyImageFilter.h.
typedef ConstantBoundaryCondition< InputImageType > itk::MorphologyImageFilter< TInputImage, TOutputImage, TKernel >::DefaultBoundaryConditionType |
Reimplemented in itk::GrayscaleFunctionDilateImageFilter< TInputImage, TOutputImage, TKernel >, itk::GrayscaleFunctionErodeImageFilter< TInputImage, TOutputImage, TKernel >, itk::BasicDilateImageFilter< TInputImage, TOutputImage, TKernel >, and itk::BasicErodeImageFilter< TInputImage, TOutputImage, TKernel >.
Definition at line 101 of file itkMorphologyImageFilter.h.
typedef ImageBoundaryCondition< InputImageType > const* itk::MorphologyImageFilter< TInputImage, TOutputImage, TKernel >::ImageBoundaryConditionConstPointerType |
Definition at line 100 of file itkMorphologyImageFilter.h.
typedef ImageBoundaryCondition< InputImageType >* itk::MorphologyImageFilter< TInputImage, TOutputImage, TKernel >::ImageBoundaryConditionPointerType |
Typedef for boundary conditions.
Definition at line 99 of file itkMorphologyImageFilter.h.
typedef TInputImage::IndexType itk::MorphologyImageFilter< TInputImage, TOutputImage, TKernel >::IndexType |
Reimplemented from itk::KernelImageFilter< TInputImage, TOutputImage, TKernel >.
Definition at line 90 of file itkMorphologyImageFilter.h.
typedef TInputImage itk::MorphologyImageFilter< TInputImage, TOutputImage, TKernel >::InputImageType |
Image related typedefs.
Reimplemented from itk::KernelImageFilter< TInputImage, TOutputImage, TKernel >.
Definition at line 83 of file itkMorphologyImageFilter.h.
typedef KernelType::ConstIterator itk::MorphologyImageFilter< TInputImage, TOutputImage, TKernel >::KernelIteratorType |
Kernel (structuring element) iterator.
Reimplemented in itk::GrayscaleFunctionDilateImageFilter< TInputImage, TOutputImage, TKernel >, itk::GrayscaleFunctionErodeImageFilter< TInputImage, TOutputImage, TKernel >, itk::BasicDilateImageFilter< TInputImage, TOutputImage, TKernel >, and itk::BasicErodeImageFilter< TInputImage, TOutputImage, TKernel >.
Definition at line 110 of file itkMorphologyImageFilter.h.
typedef TKernel itk::MorphologyImageFilter< TInputImage, TOutputImage, TKernel >::KernelType |
Kernel typedef.
Reimplemented from itk::KernelImageFilter< TInputImage, TOutputImage, TKernel >.
Reimplemented in itk::GrayscaleFunctionDilateImageFilter< TInputImage, TOutputImage, TKernel >, itk::GrayscaleFunctionErodeImageFilter< TInputImage, TOutputImage, TKernel >, itk::BasicDilateImageFilter< TInputImage, TOutputImage, TKernel >, and itk::BasicErodeImageFilter< TInputImage, TOutputImage, TKernel >.
Definition at line 107 of file itkMorphologyImageFilter.h.
typedef ConstNeighborhoodIterator< TInputImage > itk::MorphologyImageFilter< TInputImage, TOutputImage, TKernel >::NeighborhoodIteratorType |
Neighborhood iterator type.
Reimplemented in itk::GrayscaleFunctionDilateImageFilter< TInputImage, TOutputImage, TKernel >, itk::GrayscaleFunctionErodeImageFilter< TInputImage, TOutputImage, TKernel >, itk::BasicDilateImageFilter< TInputImage, TOutputImage, TKernel >, and itk::BasicErodeImageFilter< TInputImage, TOutputImage, TKernel >.
Definition at line 104 of file itkMorphologyImageFilter.h.
typedef Superclass::OutputImageRegionType itk::MorphologyImageFilter< TInputImage, TOutputImage, TKernel >::OutputImageRegionType |
Superclass typedefs.
Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.
Definition at line 92 of file itkMorphologyImageFilter.h.
typedef TOutputImage itk::MorphologyImageFilter< TInputImage, TOutputImage, TKernel >::OutputImageType |
Some convenient typedefs.
Reimplemented from itk::KernelImageFilter< TInputImage, TOutputImage, TKernel >.
Definition at line 87 of file itkMorphologyImageFilter.h.
typedef TInputImage::PixelType itk::MorphologyImageFilter< TInputImage, TOutputImage, TKernel >::PixelType |
Reimplemented in itk::GrayscaleFunctionDilateImageFilter< TInputImage, TOutputImage, TKernel >, itk::GrayscaleFunctionErodeImageFilter< TInputImage, TOutputImage, TKernel >, itk::BasicDilateImageFilter< TInputImage, TOutputImage, TKernel >, and itk::BasicErodeImageFilter< TInputImage, TOutputImage, TKernel >.
Definition at line 91 of file itkMorphologyImageFilter.h.
typedef SmartPointer< Self > itk::MorphologyImageFilter< TInputImage, TOutputImage, TKernel >::Pointer |
Reimplemented from itk::KernelImageFilter< TInputImage, TOutputImage, TKernel >.
Reimplemented in itk::GrayscaleFunctionDilateImageFilter< TInputImage, TOutputImage, TKernel >, itk::GrayscaleFunctionErodeImageFilter< TInputImage, TOutputImage, TKernel >, itk::BasicDilateImageFilter< TInputImage, TOutputImage, TKernel >, and itk::BasicErodeImageFilter< TInputImage, TOutputImage, TKernel >.
Definition at line 79 of file itkMorphologyImageFilter.h.
typedef KernelType::SizeType itk::MorphologyImageFilter< TInputImage, TOutputImage, TKernel >::RadiusType |
n-dimensional Kernel radius.
Reimplemented from itk::KernelImageFilter< TInputImage, TOutputImage, TKernel >.
Definition at line 113 of file itkMorphologyImageFilter.h.
typedef TInputImage::RegionType itk::MorphologyImageFilter< TInputImage, TOutputImage, TKernel >::RegionType |
Reimplemented from itk::KernelImageFilter< TInputImage, TOutputImage, TKernel >.
Definition at line 88 of file itkMorphologyImageFilter.h.
typedef MorphologyImageFilter itk::MorphologyImageFilter< TInputImage, TOutputImage, TKernel >::Self |
Standard Self typedef
Reimplemented from itk::KernelImageFilter< TInputImage, TOutputImage, TKernel >.
Reimplemented in itk::GrayscaleFunctionDilateImageFilter< TInputImage, TOutputImage, TKernel >, itk::GrayscaleFunctionErodeImageFilter< TInputImage, TOutputImage, TKernel >, itk::BasicDilateImageFilter< TInputImage, TOutputImage, TKernel >, and itk::BasicErodeImageFilter< TInputImage, TOutputImage, TKernel >.
Definition at line 77 of file itkMorphologyImageFilter.h.
typedef TInputImage::SizeType itk::MorphologyImageFilter< TInputImage, TOutputImage, TKernel >::SizeType |
Reimplemented from itk::KernelImageFilter< TInputImage, TOutputImage, TKernel >.
Definition at line 89 of file itkMorphologyImageFilter.h.
typedef KernelImageFilter< TInputImage, TOutputImage, TKernel > itk::MorphologyImageFilter< TInputImage, TOutputImage, TKernel >::Superclass |
Reimplemented from itk::KernelImageFilter< TInputImage, TOutputImage, TKernel >.
Reimplemented in itk::GrayscaleFunctionDilateImageFilter< TInputImage, TOutputImage, TKernel >, itk::GrayscaleFunctionErodeImageFilter< TInputImage, TOutputImage, TKernel >, itk::BasicDilateImageFilter< TInputImage, TOutputImage, TKernel >, and itk::BasicErodeImageFilter< TInputImage, TOutputImage, TKernel >.
Definition at line 78 of file itkMorphologyImageFilter.h.
|
protected |
Get the current boundary condition.
|
inlineprotected |
Get the current boundary condition.
Definition at line 135 of file itkMorphologyImageFilter.h.
|
private |
|
protectedpure virtual |
Evaluate image neighborhood with kernel to find the new value for the center pixel value.
|
virtual |
Get the current boundary condition.
|
virtual |
Runtime information support.
Reimplemented from itk::KernelImageFilter< TInputImage, TOutputImage, TKernel >.
Reimplemented in itk::GrayscaleFunctionDilateImageFilter< TInputImage, TOutputImage, TKernel >, itk::GrayscaleFunctionErodeImageFilter< TInputImage, TOutputImage, TKernel >, itk::BasicDilateImageFilter< TInputImage, TOutputImage, TKernel >, and itk::BasicErodeImageFilter< TInputImage, TOutputImage, TKernel >.
|
private |
kernel or structuring element to use.
Reimplemented from itk::KernelImageFilter< TInputImage, TOutputImage, TKernel >.
Reimplemented in itk::GrayscaleFunctionDilateImageFilter< TInputImage, TOutputImage, TKernel >, itk::GrayscaleFunctionErodeImageFilter< TInputImage, TOutputImage, TKernel >, itk::BasicDilateImageFilter< TInputImage, TOutputImage, TKernel >, and itk::BasicErodeImageFilter< TInputImage, TOutputImage, TKernel >.
|
inline |
Allows a user to override the internal boundary condition. Care should be be taken to ensure that the overriding boundary condition is a persistent object during the time it is referenced. The overriding condition can be of a different type than the default type as long as it is a subclass of ImageBoundaryCondition.
Definition at line 120 of file itkMorphologyImageFilter.h.
|
protectedvirtual |
Get the current boundary condition.
Reimplemented from itk::KernelImageFilter< TInputImage, TOutputImage, TKernel >.
|
inline |
Rest the boundary condition to the default
Definition at line 126 of file itkMorphologyImageFilter.h.
|
protectedvirtual |
Multi-thread version GenerateData.
Reimplemented from itk::ImageSource< TOutputImage >.
|
static |
Image related typedefs.
Reimplemented from itk::KernelImageFilter< TInputImage, TOutputImage, TKernel >.
Definition at line 96 of file itkMorphologyImageFilter.h.
|
private |
Pointer to a persistent boundary condition object used for the image iterator.
Definition at line 156 of file itkMorphologyImageFilter.h.
|
private |
Default boundary condition
Definition at line 159 of file itkMorphologyImageFilter.h.