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::BinaryFillholeImageFilter< TInputImage > Class Template Reference

#include <itkBinaryFillholeImageFilter.h>

+ Inheritance diagram for itk::BinaryFillholeImageFilter< TInputImage >:
+ Collaboration diagram for itk::BinaryFillholeImageFilter< TInputImage >:

List of all members.

Public Types

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

Public Member Functions

virtual ::itk::LightObject::Pointer CreateAnother (void) const
virtual InputImagePixelType GetForegroundValue ()
virtual const char * GetNameOfClass () const
virtual void SetForegroundValue (InputImagePixelType _arg)
 typedef (Concept::OStreamWritable< InputImagePixelType >) InputOStreamWritableCheck
virtual void SetFullyConnected (bool _arg)
virtual const bool & GetFullyConnected ()
virtual void FullyConnectedOn ()
virtual void FullyConnectedOff ()

Static Public Member Functions

static Pointer New ()

Static Public Attributes

static const unsigned int InputImageDimension = TInputImage::ImageDimension
static const unsigned int OutputImageDimension = OutputImageType::ImageDimension

Protected Member Functions

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

Private Member Functions

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

Private Attributes

InputImagePixelType m_ForegroundValue
bool m_FullyConnected

Detailed Description

template<class TInputImage>
class itk::BinaryFillholeImageFilter< TInputImage >

Remove holes not connected to the boundary of the image.

BinaryFillholeImageFilter fills holes in a binary image.

Geodesic morphology and the Fillhole algorithm is described in Chapter 6 of Pierre Soille's book "Morphological Image Analysis: Principles and Applications", Second Edition, Springer, 2003.

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:
GrayscaleFillholeImageFilter

Definition at line 45 of file itkBinaryFillholeImageFilter.h.


Member Typedef Documentation

template<class TInputImage >
typedef SmartPointer<const Self> itk::BinaryFillholeImageFilter< TInputImage >::ConstPointer
template<class TInputImage >
typedef InputImageType::ConstPointer itk::BinaryFillholeImageFilter< TInputImage >::InputImageConstPointer
template<class TInputImage >
typedef InputImageType::PixelType itk::BinaryFillholeImageFilter< TInputImage >::InputImagePixelType
template<class TInputImage >
typedef InputImageType::Pointer itk::BinaryFillholeImageFilter< TInputImage >::InputImagePointer
template<class TInputImage >
typedef InputImageType::RegionType itk::BinaryFillholeImageFilter< TInputImage >::InputImageRegionType
template<class TInputImage >
typedef TInputImage itk::BinaryFillholeImageFilter< TInputImage >::InputImageType

Some convenient typedefs.

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

Definition at line 56 of file itkBinaryFillholeImageFilter.h.

template<class TInputImage >
typedef OutputImageType::ConstPointer itk::BinaryFillholeImageFilter< TInputImage >::OutputImageConstPointer

Definition at line 63 of file itkBinaryFillholeImageFilter.h.

template<class TInputImage >
typedef OutputImageType::PixelType itk::BinaryFillholeImageFilter< TInputImage >::OutputImagePixelType
template<class TInputImage >
typedef OutputImageType::Pointer itk::BinaryFillholeImageFilter< TInputImage >::OutputImagePointer

Reimplemented from itk::ImageSource< TInputImage >.

Definition at line 62 of file itkBinaryFillholeImageFilter.h.

template<class TInputImage >
typedef OutputImageType::RegionType itk::BinaryFillholeImageFilter< TInputImage >::OutputImageRegionType

Superclass typedefs.

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

Definition at line 64 of file itkBinaryFillholeImageFilter.h.

template<class TInputImage >
typedef TInputImage itk::BinaryFillholeImageFilter< TInputImage >::OutputImageType

Some convenient typedefs.

Reimplemented from itk::ImageSource< TInputImage >.

Definition at line 57 of file itkBinaryFillholeImageFilter.h.

template<class TInputImage >
typedef SmartPointer<Self> itk::BinaryFillholeImageFilter< TInputImage >::Pointer
template<class TInputImage >
typedef BinaryFillholeImageFilter itk::BinaryFillholeImageFilter< TInputImage >::Self

Standard class typedefs.

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

Definition at line 50 of file itkBinaryFillholeImageFilter.h.

template<class TInputImage >
typedef ImageToImageFilter<TInputImage, TInputImage> itk::BinaryFillholeImageFilter< TInputImage >::Superclass

Constructor & Destructor Documentation

template<class TInputImage >
itk::BinaryFillholeImageFilter< TInputImage >::BinaryFillholeImageFilter ( ) [protected]
template<class TInputImage >
itk::BinaryFillholeImageFilter< TInputImage >::~BinaryFillholeImageFilter ( ) [inline, protected]

Definition at line 111 of file itkBinaryFillholeImageFilter.h.

template<class TInputImage >
itk::BinaryFillholeImageFilter< TInputImage >::BinaryFillholeImageFilter ( const Self ) [private]

Member Function Documentation

template<class TInputImage >
virtual::itk::LightObject::Pointer itk::BinaryFillholeImageFilter< TInputImage >::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::Object.

template<class TInputImage >
void itk::BinaryFillholeImageFilter< TInputImage >::EnlargeOutputRequestedRegion ( DataObject ) [protected, virtual]

BinaryFillholeImageFilter will produce the entire output.

Reimplemented from itk::ProcessObject.

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

Single-threaded version of GenerateData. This filter delegates to GrayscaleGeodesicErodeImageFilter.

Reimplemented from itk::ImageSource< TInputImage >.

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

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

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

template<class TInputImage >
virtual InputImagePixelType itk::BinaryFillholeImageFilter< TInputImage >::GetForegroundValue ( ) [virtual]

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

template<class TInputImage >
virtual const bool& itk::BinaryFillholeImageFilter< TInputImage >::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 >
virtual const char* itk::BinaryFillholeImageFilter< TInputImage >::GetNameOfClass ( ) const [virtual]

Runtime information support.

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

template<class TInputImage >
static Pointer itk::BinaryFillholeImageFilter< TInputImage >::New ( ) [static]

Standard New method.

Reimplemented from itk::Object.

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

PushBackInput(), PushFronInput() in the public section force the input to be the type expected by an ImageToImageFilter. However, these methods end of "hiding" the versions from the superclass (ProcessObject) whose arguments are DataObjects. Here, we re-expose the versions from ProcessObject to avoid warnings about hiding methods from the superclass.

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

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

template<class TInputImage >
virtual void itk::BinaryFillholeImageFilter< TInputImage >::SetForegroundValue ( InputImagePixelType  _arg) [virtual]

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

template<class TInputImage >
virtual void itk::BinaryFillholeImageFilter< TInputImage >::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 >
itk::BinaryFillholeImageFilter< TInputImage >::typedef ( Concept::OStreamWritable< InputImagePixelType )

Begin concept checking This class requires InputOStreamWritableCheck in the form of (Concept::OStreamWritable<InputImagePixelType>)


Member Data Documentation

template<class TInputImage >
const unsigned int itk::BinaryFillholeImageFilter< TInputImage >::InputImageDimension = TInputImage::ImageDimension [static]

ImageDimension constants

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

Definition at line 69 of file itkBinaryFillholeImageFilter.h.

template<class TInputImage >
InputImagePixelType itk::BinaryFillholeImageFilter< TInputImage >::m_ForegroundValue [private]

Definition at line 131 of file itkBinaryFillholeImageFilter.h.

template<class TInputImage >
bool itk::BinaryFillholeImageFilter< TInputImage >::m_FullyConnected [private]

Definition at line 133 of file itkBinaryFillholeImageFilter.h.

template<class TInputImage >
const unsigned int itk::BinaryFillholeImageFilter< TInputImage >::OutputImageDimension = OutputImageType::ImageDimension [static]

ImageDimension constants

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

Definition at line 71 of file itkBinaryFillholeImageFilter.h.


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