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::BinaryOpeningByReconstructionImageFilter< TInputImage, TKernel > Class Template Reference

#include <itkBinaryOpeningByReconstructionImageFilter.h>

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

List of all members.

Public Types

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

Public Member Functions

virtual ::itk::LightObject::Pointer CreateAnother (void) const
virtual PixelType GetBackgroundValue ()
virtual PixelType GetForegroundValue ()
virtual const char * GetNameOfClass () const
virtual void SetBackgroundValue (PixelType _arg)
virtual void SetForegroundValue (PixelType _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

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

Private Member Functions

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

Private Attributes

PixelType m_BackgroundValue
PixelType m_ForegroundValue
bool m_FullyConnected

Detailed Description

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

binary morphological closing of an image.

This filter removes small (i.e., smaller than the structuring element) objects in the image. It is defined as: Opening(f) = ReconstructionByDilatation(Erosion(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, OpeningByReconstructionImageFilter, BinaryClosingByReconstructionImageFilter

Definition at line 49 of file itkBinaryOpeningByReconstructionImageFilter.h.


Member Typedef Documentation

template<class TInputImage , class TKernel >
typedef SmartPointer<const Self> itk::BinaryOpeningByReconstructionImageFilter< TInputImage, TKernel >::ConstPointer
template<class TInputImage , class TKernel >
typedef InputImageType::Pointer itk::BinaryOpeningByReconstructionImageFilter< TInputImage, TKernel >::InputImagePointer
template<class TInputImage , class TKernel >
typedef TInputImage itk::BinaryOpeningByReconstructionImageFilter< TInputImage, TKernel >::InputImageType
template<class TInputImage , class TKernel >
typedef TKernel itk::BinaryOpeningByReconstructionImageFilter< TInputImage, TKernel >::KernelType
template<class TInputImage , class TKernel >
typedef OutputImageType::RegionType itk::BinaryOpeningByReconstructionImageFilter< TInputImage, TKernel >::OutputImageRegionType

Superclass typedefs.

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

Definition at line 70 of file itkBinaryOpeningByReconstructionImageFilter.h.

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

Some convenient typedefs.

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

Definition at line 68 of file itkBinaryOpeningByReconstructionImageFilter.h.

template<class TInputImage , class TKernel >
typedef TInputImage::PixelType itk::BinaryOpeningByReconstructionImageFilter< TInputImage, TKernel >::PixelType

Declaration of pixel type.

Definition at line 73 of file itkBinaryOpeningByReconstructionImageFilter.h.

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

Standard class typedefs.

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

Definition at line 54 of file itkBinaryOpeningByReconstructionImageFilter.h.

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

Constructor & Destructor Documentation

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

Member Function Documentation

template<class TInputImage , class TKernel >
virtual::itk::LightObject::Pointer itk::BinaryOpeningByReconstructionImageFilter< 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::BinaryOpeningByReconstructionImageFilter< 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::BinaryOpeningByReconstructionImageFilter< 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::BinaryOpeningByReconstructionImageFilter< 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::BinaryOpeningByReconstructionImageFilter< TInputImage, TKernel >::GenerateInputRequestedRegion ( ) [protected, virtual]

BinaryOpeningByReconstructionImageFilter 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 PixelType itk::BinaryOpeningByReconstructionImageFilter< TInputImage, TKernel >::GetBackgroundValue ( ) [virtual]

Set the value in eroded part of the image. Defaults to zero

template<class TInputImage , class TKernel >
virtual PixelType itk::BinaryOpeningByReconstructionImageFilter< TInputImage, TKernel >::GetForegroundValue ( ) [virtual]

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

template<class TInputImage , class TKernel >
virtual const bool& itk::BinaryOpeningByReconstructionImageFilter< 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::BinaryOpeningByReconstructionImageFilter< TInputImage, TKernel >::GetNameOfClass ( ) const [virtual]

Runtime information support.

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

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

Standard New method.

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

template<class TInputImage , class TKernel >
void itk::BinaryOpeningByReconstructionImageFilter< 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::BinaryOpeningByReconstructionImageFilter< 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::BinaryOpeningByReconstructionImageFilter< TInputImage, TKernel >::SetBackgroundValue ( PixelType  _arg) [virtual]

Set the value in eroded part of the image. Defaults to zero

template<class TInputImage , class TKernel >
virtual void itk::BinaryOpeningByReconstructionImageFilter< TInputImage, TKernel >::SetForegroundValue ( PixelType  _arg) [virtual]

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

template<class TInputImage , class TKernel >
virtual void itk::BinaryOpeningByReconstructionImageFilter< 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 >
PixelType itk::BinaryOpeningByReconstructionImageFilter< TInputImage, TKernel >::m_BackgroundValue [private]
template<class TInputImage , class TKernel >
PixelType itk::BinaryOpeningByReconstructionImageFilter< TInputImage, TKernel >::m_ForegroundValue [private]
template<class TInputImage , class TKernel >
bool itk::BinaryOpeningByReconstructionImageFilter< TInputImage, TKernel >::m_FullyConnected [private]

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