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

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

Opening by reconstruction of an image. More...

#include <itkOpeningByReconstructionImageFilter.h>

Inheritance diagram for itk::OpeningByReconstructionImageFilter< TInputImage, TOutputImage, TKernel >:

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

Collaboration graph
[legend]
List of all members.

Public Types

typedef OpeningByReconstructionImageFilter Self
typedef ImageToImageFilter<
TInputImage, TOutputImage > 
Superclass
typedef SmartPointer< SelfPointer
typedef SmartPointer< const
Self
ConstPointer
typedef TInputImage InputImageType
typedef TOutputImage OutputImageType
typedef InputImageType::Pointer InputImagePointer
typedef InputImageType::ConstPointer InputImageConstPointer
typedef InputImageType::RegionType InputImageRegionType
typedef InputImageType::PixelType InputImagePixelType
typedef OutputImageType::Pointer OutputImagePointer
typedef OutputImageType::ConstPointer OutputImageConstPointer
typedef OutputImageType::RegionType OutputImageRegionType
typedef OutputImageType::PixelType OutputImagePixelType
typedef TKernel KernelType

Public Member Functions

virtual const char * GetNameOfClass () const
virtual void SetKernel (KernelType _arg)
virtual const KernelTypeGetKernel ()
 itkStaticConstMacro (InputImageDimension, unsigned int, TInputImage::ImageDimension)
 itkStaticConstMacro (OutputImageDimension, unsigned int, TOutputImage::ImageDimension)
virtual void SetFullyConnected (bool _arg)
virtual const bool & GetFullyConnected ()
virtual void FullyConnectedOn ()
virtual void FullyConnectedOff ()

Static Public Member Functions

Pointer New ()

Protected Member Functions

 OpeningByReconstructionImageFilter ()
 ~OpeningByReconstructionImageFilter ()
void PrintSelf (std::ostream &os, Indent indent) const
void GenerateInputRequestedRegion ()
void EnlargeOutputRequestedRegion (DataObject *)
void GenerateData ()

Detailed Description

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

Opening by reconstruction of an image.

This filter preserves regions, in the foreground, that can completely contain the structuring element. At the same time, this filter eliminates all other regions of foreground pixels. Contrary to the mophological opening, the opening by reconstruction preserves the shape of the components that are not removed by erosion. The opening by reconstruction of an image "f" is defined as:

OpeningByReconstruction(f) = DilationByRecontruction(f, Erosion(f)).

Opening by reconstruction is described in Chapter 6.3.9 of Pierre Soille's book "Morphological Image Analysis: Principles and Applications", Second Edition, Springer, 2003.

Author:
Gaëtan Lehmann. Biologie du Développement et de la Reproduction, INRA of Jouy-en-Josas, France.
See also:
GrayscaleMorphologicalOpeningImageFilter

Definition at line 47 of file itkOpeningByReconstructionImageFilter.h.


Member Typedef Documentation

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

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

Definition at line 56 of file itkOpeningByReconstructionImageFilter.h.

template<class TInputImage, class TOutputImage, class TKernel>
typedef InputImageType::ConstPointer itk::OpeningByReconstructionImageFilter< TInputImage, TOutputImage, TKernel >::InputImageConstPointer
 

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

Definition at line 62 of file itkOpeningByReconstructionImageFilter.h.

template<class TInputImage, class TOutputImage, class TKernel>
typedef InputImageType::PixelType itk::OpeningByReconstructionImageFilter< TInputImage, TOutputImage, TKernel >::InputImagePixelType
 

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

Definition at line 64 of file itkOpeningByReconstructionImageFilter.h.

template<class TInputImage, class TOutputImage, class TKernel>
typedef InputImageType::Pointer itk::OpeningByReconstructionImageFilter< TInputImage, TOutputImage, TKernel >::InputImagePointer
 

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

Definition at line 61 of file itkOpeningByReconstructionImageFilter.h.

template<class TInputImage, class TOutputImage, class TKernel>
typedef InputImageType::RegionType itk::OpeningByReconstructionImageFilter< TInputImage, TOutputImage, TKernel >::InputImageRegionType
 

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

Definition at line 63 of file itkOpeningByReconstructionImageFilter.h.

template<class TInputImage, class TOutputImage, class TKernel>
typedef TInputImage itk::OpeningByReconstructionImageFilter< TInputImage, TOutputImage, TKernel >::InputImageType
 

Some convenient typedefs.

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

Definition at line 59 of file itkOpeningByReconstructionImageFilter.h.

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

Kernel typedef.

Definition at line 71 of file itkOpeningByReconstructionImageFilter.h.

Referenced by itk::OpeningByReconstructionImageFilter< TInputImage, TOutputImage, TKernel >::~OpeningByReconstructionImageFilter().

template<class TInputImage, class TOutputImage, class TKernel>
typedef OutputImageType::ConstPointer itk::OpeningByReconstructionImageFilter< TInputImage, TOutputImage, TKernel >::OutputImageConstPointer
 

Definition at line 66 of file itkOpeningByReconstructionImageFilter.h.

template<class TInputImage, class TOutputImage, class TKernel>
typedef OutputImageType::PixelType itk::OpeningByReconstructionImageFilter< TInputImage, TOutputImage, TKernel >::OutputImagePixelType
 

Reimplemented from itk::ImageSource< TOutputImage >.

Definition at line 68 of file itkOpeningByReconstructionImageFilter.h.

template<class TInputImage, class TOutputImage, class TKernel>
typedef OutputImageType::Pointer itk::OpeningByReconstructionImageFilter< TInputImage, TOutputImage, TKernel >::OutputImagePointer
 

Reimplemented from itk::ImageSource< TOutputImage >.

Definition at line 65 of file itkOpeningByReconstructionImageFilter.h.

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

Superclass typedefs.

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

Definition at line 67 of file itkOpeningByReconstructionImageFilter.h.

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

Some convenient typedefs.

Reimplemented from itk::ImageSource< TOutputImage >.

Definition at line 60 of file itkOpeningByReconstructionImageFilter.h.

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

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

Definition at line 55 of file itkOpeningByReconstructionImageFilter.h.

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

Standard class typedefs.

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

Definition at line 52 of file itkOpeningByReconstructionImageFilter.h.

Referenced by itk::OpeningByReconstructionImageFilter< TInputImage, TOutputImage, TKernel >::~OpeningByReconstructionImageFilter().

template<class TInputImage, class TOutputImage, class TKernel>
typedef ImageToImageFilter<TInputImage, TOutputImage> itk::OpeningByReconstructionImageFilter< TInputImage, TOutputImage, TKernel >::Superclass
 

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

Definition at line 54 of file itkOpeningByReconstructionImageFilter.h.


Constructor & Destructor Documentation

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

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

Definition at line 106 of file itkOpeningByReconstructionImageFilter.h.

References itk::OpeningByReconstructionImageFilter< TInputImage, TOutputImage, TKernel >::KernelType, and itk::OpeningByReconstructionImageFilter< TInputImage, TOutputImage, TKernel >::Self.


Member Function Documentation

template<class TInputImage, class TOutputImage, class TKernel>
void itk::OpeningByReconstructionImageFilter< TInputImage, TOutputImage, TKernel >::EnlargeOutputRequestedRegion DataObject  )  [protected, virtual]
 

OpeningByReconstructionImageFilter will produce the entire output.

Reimplemented from itk::ProcessObject.

template<class TInputImage, class TOutputImage, class TKernel>
virtual void itk::OpeningByReconstructionImageFilter< TInputImage, TOutputImage, 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 TOutputImage, class TKernel>
virtual void itk::OpeningByReconstructionImageFilter< TInputImage, TOutputImage, 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 TOutputImage, class TKernel>
void itk::OpeningByReconstructionImageFilter< TInputImage, TOutputImage, TKernel >::GenerateData  )  [protected, virtual]
 

A version of GenerateData() specific for image processing filters. This implementation will split the processing across multiple threads. The buffer is allocated by this method. Then the BeforeThreadedGenerateData() method is called (if provided). Then, a series of threads are spawned each calling ThreadedGenerateData(). After all the threads have completed processing, the AfterThreadedGenerateData() method is called (if provided). If an image processing filter cannot be threaded, the filter should provide an implementation of GenerateData(). That implementation is responsible for allocating the output buffer. If a filter an be threaded, it should NOT provide a GenerateData() method but should provide a ThreadedGenerateData() instead.

See also:
ThreadedGenerateData()

Reimplemented from itk::ImageSource< TOutputImage >.

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

OpeningByReconstructionImageFilter needs the entire input be available. Thus, it needs to provide an implementation of GenerateInputRequestedRegion().

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

template<class TInputImage, class TOutputImage, class TKernel>
virtual const bool& itk::OpeningByReconstructionImageFilter< TInputImage, TOutputImage, 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 TOutputImage, class TKernel>
virtual const KernelType& itk::OpeningByReconstructionImageFilter< TInputImage, TOutputImage, TKernel >::GetKernel  )  [virtual]
 

Get the kernel (structuring element).

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

Runtime information support.

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

template<class TInputImage, class TOutputImage, class TKernel>
itk::OpeningByReconstructionImageFilter< TInputImage, TOutputImage, TKernel >::itkStaticConstMacro OutputImageDimension  ,
unsigned  int,
TOutputImage::ImageDimension 
 

ImageDimension constants

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

template<class TInputImage, class TOutputImage, class TKernel>
itk::OpeningByReconstructionImageFilter< TInputImage, TOutputImage, TKernel >::itkStaticConstMacro InputImageDimension  ,
unsigned  int,
TInputImage::ImageDimension 
 

ImageDimension constants

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

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

Standard New method.

Reimplemented from itk::Object.

template<class TInputImage, class TOutputImage, class TKernel>
void itk::OpeningByReconstructionImageFilter< 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::ImageToImageFilter< TInputImage, TOutputImage >.

template<class TInputImage, class TOutputImage, class TKernel>
virtual void itk::OpeningByReconstructionImageFilter< TInputImage, TOutputImage, 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.

template<class TInputImage, class TOutputImage, class TKernel>
virtual void itk::OpeningByReconstructionImageFilter< TInputImage, TOutputImage, TKernel >::SetKernel KernelType  _arg  )  [virtual]
 

Set kernel (structuring element).


The documentation for this class was generated from the following file:
Generated at Thu May 25 01:59:59 2006 for ITK by doxygen 1.3.5 written by Dimitri van Heesch, © 1997-2000