Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

itk::BinaryErodeImageFilter< TInputImage, TOutputImage, TKernel > Class Template Reference
[Image Enhancement FiltersMathematical Morphology Image Filters]

binary dilation of an image. More...

#include <itkBinaryErodeImageFilter.h>

Inheritance diagram for itk::BinaryErodeImageFilter:

Inheritance graph
[legend]
Collaboration diagram for itk::BinaryErodeImageFilter< TInputImage, TOutputImage, TKernel >:

Collaboration graph
[legend]
List of all members.

Public Types

typedef BinaryErodeImageFilter Self
typedef MorphologyImageFilter<
TInputImage, TOutputImage,
TKernel > 
Superclass
typedef SmartPointer< SelfPointer
typedef SmartPointer< const
Self
ConstPointer
typedef Superclass::PixelType PixelType
typedef ConstNeighborhoodIterator<
TInputImage > 
NeighborhoodIteratorType
typedef ConstSmartNeighborhoodIterator<
TInputImage > 
SmartNeighborhoodIteratorType
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)
PixelType Evaluate (const SmartNeighborhoodIteratorType &nit, const KernelType &kernel)

Detailed Description

template<class TInputImage, class TOutputImage, class TKernel>
class itk::BinaryErodeImageFilter< TInputImage, TOutputImage, TKernel >

binary dilation of an image.

Erode an image using binary morphology. Gray scale images can be processed as binary images by selecting a "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.

For the each input image pixel,

See also:
MorphologyImageFilter, BinaryFunctionErodeImageFilter, BinaryErodeImageFilter

Definition at line 59 of file itkBinaryErodeImageFilter.h.


Member Typedef Documentation

template<class TInputImage, class TOutputImage, class TKernel>
typedef SmartPointer<const Self> itk::BinaryErodeImageFilter< TInputImage, TOutputImage, TKernel >::ConstPointer
 

Reimplemented from itk::MorphologyImageFilter< TInputImage, TOutputImage, TKernel >.

Definition at line 69 of file itkBinaryErodeImageFilter.h.

template<class TInputImage, class TOutputImage, class TKernel>
typedef KernelType::ConstIterator itk::BinaryErodeImageFilter< TInputImage, TOutputImage, TKernel >::KernelIteratorType
 

Kernel (structuring element) iterator.

Reimplemented from itk::MorphologyImageFilter< TInputImage, TOutputImage, TKernel >.

Definition at line 89 of file itkBinaryErodeImageFilter.h.

template<class TInputImage, class TOutputImage, class TKernel>
typedef TKernel itk::BinaryErodeImageFilter< TInputImage, TOutputImage, TKernel >::KernelType
 

Kernel typedef.

Reimplemented from itk::MorphologyImageFilter< TInputImage, TOutputImage, TKernel >.

Definition at line 86 of file itkBinaryErodeImageFilter.h.

template<class TInputImage, class TOutputImage, class TKernel>
typedef ConstNeighborhoodIterator<TInputImage> itk::BinaryErodeImageFilter< TInputImage, TOutputImage, TKernel >::NeighborhoodIteratorType
 

Neighborhood iterator type.

Reimplemented from itk::MorphologyImageFilter< TInputImage, TOutputImage, TKernel >.

Definition at line 81 of file itkBinaryErodeImageFilter.h.

template<class TInputImage, class TOutputImage, class TKernel>
typedef Superclass::PixelType itk::BinaryErodeImageFilter< TInputImage, TOutputImage, TKernel >::PixelType
 

Declaration of pixel type.

Reimplemented from itk::MorphologyImageFilter< TInputImage, TOutputImage, TKernel >.

Definition at line 78 of file itkBinaryErodeImageFilter.h.

template<class TInputImage, class TOutputImage, class TKernel>
typedef SmartPointer<Self> itk::BinaryErodeImageFilter< TInputImage, TOutputImage, TKernel >::Pointer
 

Reimplemented from itk::MorphologyImageFilter< TInputImage, TOutputImage, TKernel >.

Definition at line 68 of file itkBinaryErodeImageFilter.h.

template<class TInputImage, class TOutputImage, class TKernel>
typedef BinaryErodeImageFilter itk::BinaryErodeImageFilter< TInputImage, TOutputImage, TKernel >::Self
 

Standard class typedefs.

Reimplemented from itk::MorphologyImageFilter< TInputImage, TOutputImage, TKernel >.

Definition at line 65 of file itkBinaryErodeImageFilter.h.

template<class TInputImage, class TOutputImage, class TKernel>
typedef ConstSmartNeighborhoodIterator<TInputImage> itk::BinaryErodeImageFilter< TInputImage, TOutputImage, TKernel >::SmartNeighborhoodIteratorType
 

Reimplemented from itk::MorphologyImageFilter< TInputImage, TOutputImage, TKernel >.

Definition at line 83 of file itkBinaryErodeImageFilter.h.

template<class TInputImage, class TOutputImage, class TKernel>
typedef MorphologyImageFilter<TInputImage, TOutputImage, TKernel> itk::BinaryErodeImageFilter< TInputImage, TOutputImage, TKernel >::Superclass
 

Reimplemented from itk::MorphologyImageFilter< TInputImage, TOutputImage, TKernel >.

Definition at line 67 of file itkBinaryErodeImageFilter.h.


Constructor & Destructor Documentation

template<class TInputImage, class TOutputImage, class TKernel>
itk::BinaryErodeImageFilter< TInputImage, TOutputImage, TKernel >::BinaryErodeImageFilter   [protected]
 

template<class TInputImage, class TOutputImage, class TKernel>
itk::BinaryErodeImageFilter< TInputImage, TOutputImage, TKernel >::~BinaryErodeImageFilter   [inline, protected]
 

Definition at line 101 of file itkBinaryErodeImageFilter.h.

References HardConnectedComponentImageFilter::PrintSelf().


Member Function Documentation

template<class TInputImage, class TOutputImage, class TKernel>
PixelType itk::BinaryErodeImageFilter< TInputImage, TOutputImage, TKernel >::Evaluate const SmartNeighborhoodIteratorType   nit,
const KernelType   kernel
[protected, virtual]
 

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 boundary pixels.

Implements itk::MorphologyImageFilter< TInputImage, TOutputImage, TKernel >.

template<class TInputImage, class TOutputImage, class TKernel>
PixelType itk::BinaryErodeImageFilter< TInputImage, TOutputImage, TKernel >::Evaluate const NeighborhoodIteratorType   nit,
const KernelType   kernel
[protected, virtual]
 

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 >.

template<class TInputImage, class TOutputImage, class TKernel>
virtual const char* itk::BinaryErodeImageFilter< TInputImage, TOutputImage, TKernel >::GetClassName   const [virtual]
 

Runtime information support.

Reimplemented from itk::MorphologyImageFilter< TInputImage, TOutputImage, TKernel >.

template<class TInputImage, class TOutputImage, class TKernel>
virtual PixelType itk::BinaryErodeImageFilter< TInputImage, TOutputImage, TKernel >::GetErodeValue   [virtual]
 

Get the value in the image considered as "foreground". Defaults to maximum value of PixelType.

template<class TInputImage, class TOutputImage, class TKernel>
Pointer itk::BinaryErodeImageFilter< TInputImage, TOutputImage, TKernel >::New   [static]
 

Standard New method.

Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.

template<class TInputImage, class TOutputImage, class TKernel>
void itk::BinaryErodeImageFilter< TInputImage, TOutputImage, TKernel >::PrintSelf std::ostream &    os,
Indent    indent
const [protected, virtual]
 

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 >.

template<class TInputImage, class TOutputImage, class TKernel>
virtual void itk::BinaryErodeImageFilter< TInputImage, TOutputImage, TKernel >::SetErodeValue PixelType    _arg [virtual]
 

Set the value in the image to consider as "foreground". Defaults to maximum value of PixelType.


The documentation for this class was generated from the following file:
Generated at Wed Mar 12 01:14:01 2003 for ITK by doxygen 1.2.15 written by Dimitri van Heesch, © 1997-2000