#include <itkBinaryErodeImageFilter.h>
Inheritance diagram for itk::BinaryErodeImageFilter:
Public Types | |
typedef BinaryErodeImageFilter | Self |
typedef MorphologyImageFilter< TInputImage, TOutputImage, TKernel > | Superclass |
typedef SmartPointer< Self > | Pointer |
typedef SmartPointer< const Self > | ConstPointer |
typedef Superclass::PixelType | PixelType |
typedef ConstNeighborhoodIterator< TInputImage > | NeighborhoodIteratorType |
typedef TKernel | KernelType |
typedef KernelType::ConstIterator | KernelIteratorType |
Public Methods | |
virtual const char * | GetClassName () const |
virtual void | SetErodeValue (PixelType _arg) |
virtual PixelType | GetErodeValue () |
Static Public Methods | |
Pointer | New () |
Protected Methods | |
BinaryErodeImageFilter () | |
~BinaryErodeImageFilter () | |
void | PrintSelf (std::ostream &os, Indent indent) const |
PixelType | Evaluate (const NeighborhoodIteratorType &nit, const KernelType &kernel) |
Erode an image using binary morphology. Gray scale images can be processed as binary images by selecting an "ErodeValue". Pixel values matching the erode value are considered the "foreground" and all other pixels are "background". This is useful in processing segmented images where all pixels in segment #1 have value 1 and pixels in segment #2 have value 2, etc. A particular "segment number" can be processed. ErodeValue defaults to the maximum possible value of the PixelType.
Binary erosion will set a pixel as the "ErodeValue" if all of the pixels in the image for "on" structuring element pixels have a value of "ErodeValue". Otherwise, the center pixel is set to an appropriate "background" value. For lack of something better, the background value used will be the minimum of the pixels that were not the ErodeValue.
The structuring element is assumed to be composed of binary values (zero or one). Only elements of the structuring element having values > 0 ("on" values) are candidates for affecting the center pixel. A reasonable choice of structuring element is itk::BinaryBallStructuringElement.
For the each input image pixel,
Definition at line 60 of file itkBinaryErodeImageFilter.h.
|
Reimplemented from itk::MorphologyImageFilter< TInputImage, TOutputImage, TKernel >. Definition at line 70 of file itkBinaryErodeImageFilter.h. |
|
Kernel (structuring element) iterator. Reimplemented from itk::MorphologyImageFilter< TInputImage, TOutputImage, TKernel >. Definition at line 88 of file itkBinaryErodeImageFilter.h. |
|
Kernel typedef. Reimplemented from itk::MorphologyImageFilter< TInputImage, TOutputImage, TKernel >. Definition at line 85 of file itkBinaryErodeImageFilter.h. |
|
Neighborhood iterator type. Reimplemented from itk::MorphologyImageFilter< TInputImage, TOutputImage, TKernel >. Definition at line 82 of file itkBinaryErodeImageFilter.h. |
|
Declaration of pixel type. Reimplemented from itk::MorphologyImageFilter< TInputImage, TOutputImage, TKernel >. Definition at line 79 of file itkBinaryErodeImageFilter.h. |
|
Reimplemented from itk::MorphologyImageFilter< TInputImage, TOutputImage, TKernel >. Definition at line 69 of file itkBinaryErodeImageFilter.h. |
|
Standard class typedefs. Reimplemented from itk::MorphologyImageFilter< TInputImage, TOutputImage, TKernel >. Definition at line 66 of file itkBinaryErodeImageFilter.h. |
|
Reimplemented from itk::MorphologyImageFilter< TInputImage, TOutputImage, TKernel >. Definition at line 68 of file itkBinaryErodeImageFilter.h. |
|
|
|
Definition at line 100 of file itkBinaryErodeImageFilter.h. References HardConnectedComponentImageFilter::PrintSelf(). |
|
Evaluate image neighborhood with kernel to find the new value for the center pixel value It will return the ErodeValue if all of the image pixels in the neighborhood have the ErodeValue and that pixel's corresponding element in the structuring element is positive. This version of Evaluate is used for non-boundary pixels. Implements itk::MorphologyImageFilter< TInputImage, TOutputImage, TKernel >. |
|
Runtime information support. Reimplemented from itk::MorphologyImageFilter< TInputImage, TOutputImage, TKernel >. |
|
Get the value in the image considered as "foreground". Defaults to maximum value of PixelType. |
|
Standard New method. Reimplemented from itk::Object. |
|
Methods invoked by Print() to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes. Reimplemented from itk::MorphologyImageFilter< TInputImage, TOutputImage, TKernel >. |
|
Set the value in the image to consider as "foreground". Defaults to maximum value of PixelType. |