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

binary closing by reconstruction of an image. More...

#include <itkBinaryClosingByReconstructionImageFilter.h>

Inheritance diagram for itk::BinaryClosingByReconstructionImageFilter< TInputImage, TKernel >:
Collaboration diagram for itk::BinaryClosingByReconstructionImageFilter< TInputImage, 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 TInputImage OutputImageType
typedef TInputImage::PixelType OutputPixelType
typedef SmartPointer< SelfPointer
typedef
BinaryClosingByReconstructionImageFilter 
Self
typedef KernelImageFilter
< TInputImage, TInputImage,
TKernel > 
Superclass

Public Member Functions

virtual ::itk::LightObject::Pointer CreateAnother (void) const
virtual InputPixelType GetForegroundValue ()
virtual const char * GetNameOfClass () const
virtual void SetForegroundValue (InputPixelType _arg)
virtual void SetFullyConnected (bool _arg)
virtual const bool & GetFullyConnected ()
virtual void FullyConnectedOn ()
virtual void FullyConnectedOff ()

Static Public Member Functions

static Pointer New ()

Protected Member Functions

 BinaryClosingByReconstructionImageFilter ()
void GenerateData ()
void GenerateInputRequestedRegion ()
void PrintSelf (std::ostream &os, Indent indent) const
 ~BinaryClosingByReconstructionImageFilter ()

Private Member Functions

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

Private Attributes

InputPixelType m_ForegroundValue
bool m_FullyConnected

Detailed Description

template<class TInputImage, class TKernel>
class itk::BinaryClosingByReconstructionImageFilter< TInputImage, TKernel >

binary closing by reconstruction of an image.

This filter removes small (i.e., smaller than the structuring element) holes in the image. It is defined as: Closing(f) = ReconstructionByErosion(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.

Author:
Gaetan Lehmann. Biologie du Developpement et de la Reproduction, INRA de Jouy-en-Josas, France.

This implementation was taken from the Insight Journal paper: http://hdl.handle.net/1926/584 or http://www.insight-journal.org/browse/publication/176

See also:
MorphologyImageFilter, ClosingByReconstructionImageFilter, BinaryOpeningByReconstructionImageFilter

Definition at line 49 of file itkBinaryClosingByReconstructionImageFilter.h.


Member Typedef Documentation

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

Declaration of pixel type.

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

Definition at line 73 of file itkBinaryClosingByReconstructionImageFilter.h.

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

Superclass typedefs.

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

Definition at line 70 of file itkBinaryClosingByReconstructionImageFilter.h.

template<class TInputImage , class TKernel >
typedef TInputImage itk::BinaryClosingByReconstructionImageFilter< TInputImage, TKernel >::OutputImageType

Some convenient typedefs.

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

Definition at line 68 of file itkBinaryClosingByReconstructionImageFilter.h.

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

Standard class typedefs.

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

Definition at line 54 of file itkBinaryClosingByReconstructionImageFilter.h.

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

Constructor & Destructor Documentation

template<class TInputImage , class TKernel >
itk::BinaryClosingByReconstructionImageFilter< TInputImage, TKernel >::BinaryClosingByReconstructionImageFilter ( ) [protected]
template<class TInputImage , class TKernel >
itk::BinaryClosingByReconstructionImageFilter< TInputImage, TKernel >::~BinaryClosingByReconstructionImageFilter ( ) [inline, protected]
template<class TInputImage , class TKernel >
itk::BinaryClosingByReconstructionImageFilter< TInputImage, TKernel >::BinaryClosingByReconstructionImageFilter ( const Self ) [private]

Member Function Documentation

template<class TInputImage , class TKernel >
virtual::itk::LightObject::Pointer itk::BinaryClosingByReconstructionImageFilter< TInputImage, 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, TInputImage, TKernel >.

template<class TInputImage , class TKernel >
virtual void itk::BinaryClosingByReconstructionImageFilter< TInputImage, TKernel >::FullyConnectedOff ( ) [virtual]

Set/Get whether the connected components are defined strictly by face connectivity or by face+edge+vertex connectivity. Default is FullyConnectedOff. For objects that are 1 pixel wide, use FullyConnectedOn.

template<class TInputImage , class TKernel >
virtual void itk::BinaryClosingByReconstructionImageFilter< TInputImage, TKernel >::FullyConnectedOn ( ) [virtual]

Set/Get whether the connected components are defined strictly by face connectivity or by face+edge+vertex connectivity. Default is FullyConnectedOff. For objects that are 1 pixel wide, use FullyConnectedOn.

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

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

Reimplemented from itk::ImageSource< TInputImage >.

template<class TInputImage , class TKernel >
void itk::BinaryClosingByReconstructionImageFilter< TInputImage, TKernel >::GenerateInputRequestedRegion ( ) [protected, virtual]

BinaryClosingByReconstructionImageFilter need to make sure they request enough of an input image to account for the structuring element size. The input requested region is expanded by the radius of the structuring element. If the request extends past the LargestPossibleRegion for the input, the request is cropped by the LargestPossibleRegion.

Reimplemented from itk::BoxImageFilter< TInputImage, TInputImage >.

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

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

template<class TInputImage , class TKernel >
virtual const bool& itk::BinaryClosingByReconstructionImageFilter< TInputImage, TKernel >::GetFullyConnected ( ) [virtual]

Set/Get whether the connected components are defined strictly by face connectivity or by face+edge+vertex connectivity. Default is FullyConnectedOff. For objects that are 1 pixel wide, use FullyConnectedOn.

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

Runtime information support.

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

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

Standard New method.

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

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

kernel or structuring element to use.

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

template<class TInputImage , class TKernel >
void itk::BinaryClosingByReconstructionImageFilter< TInputImage, 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::KernelImageFilter< TInputImage, TInputImage, TKernel >.

template<class TInputImage , class TKernel >
virtual void itk::BinaryClosingByReconstructionImageFilter< TInputImage, 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 TKernel >
virtual void itk::BinaryClosingByReconstructionImageFilter< TInputImage, TKernel >::SetFullyConnected ( bool  _arg) [virtual]

Set/Get whether the connected components are defined strictly by face connectivity or by face+edge+vertex connectivity. Default is FullyConnectedOff. For objects that are 1 pixel wide, use FullyConnectedOn.


Member Data Documentation

template<class TInputImage , class TKernel >
InputPixelType itk::BinaryClosingByReconstructionImageFilter< TInputImage, TKernel >::m_ForegroundValue [private]
template<class TInputImage , class TKernel >
bool itk::BinaryClosingByReconstructionImageFilter< TInputImage, TKernel >::m_FullyConnected [private]

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