ITK  4.1.0
Insight Segmentation and Registration Toolkit
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes
itk::BinaryMorphologicalClosingImageFilter< TInputImage, TOutputImage, TKernel > Class Template Reference

#include <itkBinaryMorphologicalClosingImageFilter.h>

+ Inheritance diagram for itk::BinaryMorphologicalClosingImageFilter< TInputImage, TOutputImage, TKernel >:
+ Collaboration diagram for itk::BinaryMorphologicalClosingImageFilter< TInputImage, TOutputImage, TKernel >:

List of all members.

Public Types

typedef SmartPointer< const SelfConstPointer
typedef InputImageType::Pointer InputImagePointer
typedef TInputImage InputImageType
typedef TInputImage::PixelType InputPixelType
typedef TKernel KernelType
typedef OutputImageType::RegionType OutputImageRegionType
typedef TOutputImage OutputImageType
typedef TInputImage::PixelType OutputPixelType
typedef SmartPointer< SelfPointer
typedef
BinaryMorphologicalClosingImageFilter 
Self
typedef KernelImageFilter
< TInputImage, TOutputImage,
TKernel > 
Superclass

Public Member Functions

virtual ::itk::LightObject::Pointer CreateAnother (void) const
virtual InputPixelType GetForegroundValue () const
virtual const char * GetNameOfClass () const
virtual void SetForegroundValue (InputPixelType _arg)

Static Public Member Functions

static Pointer New ()

Protected Member Functions

void GenerateData ()

Private Member Functions

 BinaryMorphologicalClosingImageFilter (const Self &)
void operator= (const Self &)

Private Attributes

InputPixelType m_ForegroundValue
bool m_SafeBorder
virtual void SetSafeBorder (bool _arg)
virtual const bool & GetSafeBorder ()
virtual void SafeBorderOn ()
virtual void SafeBorderOff ()
 BinaryMorphologicalClosingImageFilter ()
 ~BinaryMorphologicalClosingImageFilter ()
void PrintSelf (std::ostream &os, Indent indent) const

Detailed Description

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

binary morphological closing of an image.

This filter removes small (i.e., smaller than the structuring element) holes and tube like structures in the interior or at the boundaries of the image. The morphological closing of an image "f" is defined as: Closing(f) = Erosion(Dilation(f)).

The structuring element is assumed to be composed of binary values (zero or one). Only elements of the structuring element having values > 0 are candidates for affecting the center pixel.

This code was contributed in the Insight Journal paper: "Binary morphological closing and opening image filters" by Lehmann G. http://hdl.handle.net/1926/141 http://www.insight-journal.org/browse/publication/58

Author:
Gaetan Lehmann. Biologie du Developpement et de la Reproduction, INRA de Jouy-en-Josas, France.
See also:
MorphologyImageFilter, GrayscaleDilateImageFilter, GrayscaleErodeImageFilter

Definition at line 55 of file itkBinaryMorphologicalClosingImageFilter.h.


Member Typedef Documentation

template<class TInputImage , class TOutputImage , class TKernel >
typedef SmartPointer< const Self > itk::BinaryMorphologicalClosingImageFilter< TInputImage, TOutputImage, TKernel >::ConstPointer
template<class TInputImage , class TOutputImage , class TKernel >
typedef InputImageType::Pointer itk::BinaryMorphologicalClosingImageFilter< TInputImage, TOutputImage, TKernel >::InputImagePointer
template<class TInputImage , class TOutputImage , class TKernel >
typedef TInputImage itk::BinaryMorphologicalClosingImageFilter< TInputImage, TOutputImage, TKernel >::InputImageType
template<class TInputImage , class TOutputImage , class TKernel >
typedef TInputImage::PixelType itk::BinaryMorphologicalClosingImageFilter< TInputImage, TOutputImage, TKernel >::InputPixelType

Declaration of pixel type.

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

Definition at line 78 of file itkBinaryMorphologicalClosingImageFilter.h.

template<class TInputImage , class TOutputImage , class TKernel >
typedef TKernel itk::BinaryMorphologicalClosingImageFilter< TInputImage, TOutputImage, TKernel >::KernelType
template<class TInputImage , class TOutputImage , class TKernel >
typedef OutputImageType::RegionType itk::BinaryMorphologicalClosingImageFilter< TInputImage, TOutputImage, TKernel >::OutputImageRegionType

Superclass typedefs.

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

Definition at line 75 of file itkBinaryMorphologicalClosingImageFilter.h.

template<class TInputImage , class TOutputImage , class TKernel >
typedef TOutputImage itk::BinaryMorphologicalClosingImageFilter< TInputImage, TOutputImage, TKernel >::OutputImageType

Some convenient typedefs.

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

Definition at line 73 of file itkBinaryMorphologicalClosingImageFilter.h.

template<class TInputImage , class TOutputImage , class TKernel >
typedef TInputImage::PixelType itk::BinaryMorphologicalClosingImageFilter< TInputImage, TOutputImage, TKernel >::OutputPixelType
template<class TInputImage , class TOutputImage , class TKernel >
typedef SmartPointer< Self > itk::BinaryMorphologicalClosingImageFilter< TInputImage, TOutputImage, TKernel >::Pointer
template<class TInputImage , class TOutputImage , class TKernel >
typedef BinaryMorphologicalClosingImageFilter itk::BinaryMorphologicalClosingImageFilter< TInputImage, TOutputImage, TKernel >::Self

Standard class typedefs.

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

Definition at line 60 of file itkBinaryMorphologicalClosingImageFilter.h.

template<class TInputImage , class TOutputImage , class TKernel >
typedef KernelImageFilter< TInputImage, TOutputImage, TKernel > itk::BinaryMorphologicalClosingImageFilter< TInputImage, TOutputImage, TKernel >::Superclass

Constructor & Destructor Documentation

template<class TInputImage , class TOutputImage , class TKernel >
itk::BinaryMorphologicalClosingImageFilter< TInputImage, TOutputImage, TKernel >::BinaryMorphologicalClosingImageFilter ( ) [protected]

A safe border is added to input image to avoid borders effects and remove it once the closing is done

template<class TInputImage , class TOutputImage , class TKernel >
itk::BinaryMorphologicalClosingImageFilter< TInputImage, TOutputImage, TKernel >::~BinaryMorphologicalClosingImageFilter ( ) [inline, protected]

A safe border is added to input image to avoid borders effects and remove it once the closing is done

Definition at line 99 of file itkBinaryMorphologicalClosingImageFilter.h.

template<class TInputImage , class TOutputImage , class TKernel >
itk::BinaryMorphologicalClosingImageFilter< TInputImage, TOutputImage, TKernel >::BinaryMorphologicalClosingImageFilter ( const Self ) [private]

Member Function Documentation

template<class TInputImage , class TOutputImage , class TKernel >
virtual::itk::LightObject::Pointer itk::BinaryMorphologicalClosingImageFilter< TInputImage, TOutputImage, TKernel >::CreateAnother ( void  ) const [virtual]

Create an object from an instance, potentially deferring to a factory. This method allows you to create an instance of an object that is exactly the same type as the referring object. This is useful in cases where an object has been cast back to a base class.

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

template<class TInputImage , class TOutputImage , class TKernel >
void itk::BinaryMorphologicalClosingImageFilter< TInputImage, TOutputImage, TKernel >::GenerateData ( ) [protected, virtual]

Single-threaded version of GenerateData. This filter delegates to GrayscaleDilateImageFilter GrayscaleErodeImageFilter.

Reimplemented from itk::ImageSource< TOutputImage >.

template<class TInputImage , class TOutputImage , class TKernel >
virtual InputPixelType itk::BinaryMorphologicalClosingImageFilter< TInputImage, TOutputImage, TKernel >::GetForegroundValue ( ) const [virtual]

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

template<class TInputImage , class TOutputImage , class TKernel >
virtual const char* itk::BinaryMorphologicalClosingImageFilter< TInputImage, TOutputImage, TKernel >::GetNameOfClass ( ) const [virtual]

Runtime information support.

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

template<class TInputImage , class TOutputImage , class TKernel >
virtual const bool& itk::BinaryMorphologicalClosingImageFilter< TInputImage, TOutputImage, TKernel >::GetSafeBorder ( ) [virtual]

A safe border is added to input image to avoid borders effects and remove it once the closing is done

template<class TInputImage , class TOutputImage , class TKernel >
static Pointer itk::BinaryMorphologicalClosingImageFilter< TInputImage, TOutputImage, TKernel >::New ( ) [static]

Standard New method.

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

template<class TInputImage , class TOutputImage , class TKernel >
void itk::BinaryMorphologicalClosingImageFilter< TInputImage, TOutputImage, TKernel >::operator= ( const Self ) [private]

kernel or structuring element to use.

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

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

A safe border is added to input image to avoid borders effects and remove it once the closing is done

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

template<class TInputImage , class TOutputImage , class TKernel >
virtual void itk::BinaryMorphologicalClosingImageFilter< TInputImage, TOutputImage, TKernel >::SafeBorderOff ( ) [virtual]

A safe border is added to input image to avoid borders effects and remove it once the closing is done

template<class TInputImage , class TOutputImage , class TKernel >
virtual void itk::BinaryMorphologicalClosingImageFilter< TInputImage, TOutputImage, TKernel >::SafeBorderOn ( ) [virtual]

A safe border is added to input image to avoid borders effects and remove it once the closing is done

template<class TInputImage , class TOutputImage , class TKernel >
virtual void itk::BinaryMorphologicalClosingImageFilter< TInputImage, TOutputImage, TKernel >::SetForegroundValue ( InputPixelType  _arg) [virtual]

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

template<class TInputImage , class TOutputImage , class TKernel >
virtual void itk::BinaryMorphologicalClosingImageFilter< TInputImage, TOutputImage, TKernel >::SetSafeBorder ( bool  _arg) [virtual]

A safe border is added to input image to avoid borders effects and remove it once the closing is done


Member Data Documentation

template<class TInputImage , class TOutputImage , class TKernel >
InputPixelType itk::BinaryMorphologicalClosingImageFilter< TInputImage, TOutputImage, TKernel >::m_ForegroundValue [private]

Definition at line 113 of file itkBinaryMorphologicalClosingImageFilter.h.

template<class TInputImage , class TOutputImage , class TKernel >
bool itk::BinaryMorphologicalClosingImageFilter< TInputImage, TOutputImage, TKernel >::m_SafeBorder [private]

Definition at line 115 of file itkBinaryMorphologicalClosingImageFilter.h.


The documentation for this class was generated from the following file: