ITK
4.1.0
Insight Segmentation and Registration Toolkit
|
#include <itkMorphologyImageFilter.h>
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 guarenteed 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.
itk::MorphologyImageFilter< TInputImage, TOutputImage, TKernel >::MorphologyImageFilter | ( | ) | [protected] |
Get the current boundary condition.
itk::MorphologyImageFilter< TInputImage, TOutputImage, TKernel >::~MorphologyImageFilter | ( | ) | [inline, protected] |
Get the current boundary condition.
Definition at line 135 of file itkMorphologyImageFilter.h.
itk::MorphologyImageFilter< TInputImage, TOutputImage, TKernel >::MorphologyImageFilter | ( | const Self & | ) | [private] |
virtual PixelType itk::MorphologyImageFilter< TInputImage, TOutputImage, TKernel >::Evaluate | ( | const NeighborhoodIteratorType & | nit, |
const KernelIteratorType | kernelBegin, | ||
const KernelIteratorType | kernelEnd | ||
) | [protected, pure virtual] |
Evaluate image neighborhood with kernel to find the new value for the center pixel value.
virtual ImageBoundaryConditionPointerType itk::MorphologyImageFilter< TInputImage, TOutputImage, TKernel >::GetBoundaryCondition | ( | ) | const [virtual] |
Get the current boundary condition.
virtual const char* itk::MorphologyImageFilter< TInputImage, TOutputImage, TKernel >::GetNameOfClass | ( | ) | const [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 >.
void itk::MorphologyImageFilter< TInputImage, TOutputImage, TKernel >::operator= | ( | const Self & | ) | [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 >.
void itk::MorphologyImageFilter< TInputImage, TOutputImage, TKernel >::OverrideBoundaryCondition | ( | const ImageBoundaryConditionPointerType | i | ) | [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.
void itk::MorphologyImageFilter< TInputImage, TOutputImage, TKernel >::PrintSelf | ( | std::ostream & | os, |
Indent | indent | ||
) | const [protected, virtual] |
Get the current boundary condition.
Reimplemented from itk::KernelImageFilter< TInputImage, TOutputImage, TKernel >.
void itk::MorphologyImageFilter< TInputImage, TOutputImage, TKernel >::ResetBoundaryCondition | ( | ) | [inline] |
Rest the boundary condition to the default
Definition at line 126 of file itkMorphologyImageFilter.h.
void itk::MorphologyImageFilter< TInputImage, TOutputImage, TKernel >::ThreadedGenerateData | ( | const OutputImageRegionType & | outputRegionForThread, |
ThreadIdType | threadId | ||
) | [protected, virtual] |
Multi-thread version GenerateData.
Reimplemented from itk::ImageSource< TOutputImage >.
const unsigned int itk::MorphologyImageFilter< TInputImage, TOutputImage, TKernel >::ImageDimension = TInputImage::ImageDimension [static] |
Image related typedefs.
Reimplemented from itk::KernelImageFilter< TInputImage, TOutputImage, TKernel >.
Definition at line 96 of file itkMorphologyImageFilter.h.
ImageBoundaryConditionPointerType itk::MorphologyImageFilter< TInputImage, TOutputImage, TKernel >::m_BoundaryCondition [private] |
Pointer to a persistent boundary condition object used for the image iterator.
Definition at line 156 of file itkMorphologyImageFilter.h.
DefaultBoundaryConditionType itk::MorphologyImageFilter< TInputImage, TOutputImage, TKernel >::m_DefaultBoundaryCondition [private] |
Default boundary condition
Definition at line 159 of file itkMorphologyImageFilter.h.