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::HardConnectedComponentImageFilter< TInputImage, TOutputImage > Class Template Reference

#include <itkHardConnectedComponentImageFilter.h>

Inheritance diagram for itk::HardConnectedComponentImageFilter< TInputImage, TOutputImage >:
Collaboration diagram for itk::HardConnectedComponentImageFilter< TInputImage, TOutputImage >:

List of all members.

Public Types

typedef SmartPointer< const SelfConstPointer
typedef TInputImage::IndexType IndexType
typedef TInputImage InputImageType
typedef std::list< IndexTypeListType
typedef TOutputImage OutputImageType
typedef SmartPointer< SelfPointer
typedef TOutputImage::RegionType RegionType
typedef
HardConnectedComponentImageFilter 
Self
typedef TInputImage::SizeType SizeType
typedef ImageToImageFilter
< TInputImage, TOutputImage > 
Superclass

Public Member Functions

virtual ::itk::LightObject::Pointer CreateAnother (void) const
virtual const char * GetNameOfClass () const
void SetObjectSeed (const IndexType &seed)
 typedef (Concept::EqualityComparable< OutputPixelType >) OutputEqualityComparableCheck
 typedef (Concept::Convertible< unsigned short, OutputPixelType >) UnsignedShortConvertibleToOutputCheck
 typedef (Concept::Convertible< int, OutputPixelType >) IntConvertibleToOutputCheck
 typedef (Concept::SameDimension< InputImageDimension, ImageDimension >) SameDimensionCheck
 typedef (Concept::Convertible< unsigned char, OutputPixelType >) UnsignedCharConvertibleToOutputCheck
 typedef (Concept::IncrementDecrementOperators< OutputPixelType >) OutputIncrementDecrementOperatorsCheck

Static Public Member Functions

static Pointer New ()

Protected Member Functions

void GenerateData ()
void PrintSelf (std::ostream &os, Indent indent) const
 HardConnectedComponentImageFilter ()
virtual ~HardConnectedComponentImageFilter ()

Private Member Functions

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

Private Attributes

ListType m_Seeds
typedef TOutputImage::PixelType OutputPixelType
typedef
TOutputImage::InternalPixelType 
OutputInternalPixelType
typedef TInputImage::PixelType InputPixelType
typedef
TInputImage::InternalPixelType 
InputInternalPixelType
static const unsigned int InputImageDimension = TInputImage::ImageDimension
static const unsigned int ImageDimension = TOutputImage::ImageDimension

Detailed Description

template<class TInputImage, class TOutputImage>
class itk::HardConnectedComponentImageFilter< TInputImage, TOutputImage >

The purpose of this program is to produce the connected components for any input binary image of dimensionality n.

The program does a forward pass line by line through the entire image. Each cell in the foreground is assigned the same label value as cells in its neighborhood. If there is no label among the cells in its neighborhood, a new label value is assigned to the cell. This means that this cell belongs to a different connected component. We set up an equivalence table for each label to indicate the equivalence of the labels stored in the table. After the forward pass goes through the entire image, we merge the different connected components corresponding to the equivalence labels in the table. We implement this strategy in function GenerateData().

There are two options in the program. 1. Take an nD binary image as input, and produce an nD gray image, where intensity indicates label assigned to a connected component. 2. Take an nD binary image and a set of seed points as input, and output an nD binary image containing the cells connected to the seeds. For option 2, users need to assign the member variable std::list<IndexType> m_Seeds before calling function GenerateData().

See also:
ImageToImageFilter

Definition at line 49 of file itkHardConnectedComponentImageFilter.h.


Member Typedef Documentation

template<class TInputImage , class TOutputImage >
typedef SmartPointer< const Self > itk::HardConnectedComponentImageFilter< TInputImage, TOutputImage >::ConstPointer
template<class TInputImage , class TOutputImage >
typedef TInputImage::IndexType itk::HardConnectedComponentImageFilter< TInputImage, TOutputImage >::IndexType

Definition at line 79 of file itkHardConnectedComponentImageFilter.h.

template<class TInputImage , class TOutputImage >
typedef TInputImage itk::HardConnectedComponentImageFilter< TInputImage, TOutputImage >::InputImageType

Image typedef support

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

Definition at line 77 of file itkHardConnectedComponentImageFilter.h.

template<class TInputImage , class TOutputImage >
typedef TInputImage::InternalPixelType itk::HardConnectedComponentImageFilter< TInputImage, TOutputImage >::InputInternalPixelType

Extract some information from the image types. Dimensionality of the two images is assumed to be the same.

Definition at line 67 of file itkHardConnectedComponentImageFilter.h.

template<class TInputImage , class TOutputImage >
typedef TInputImage::PixelType itk::HardConnectedComponentImageFilter< TInputImage, TOutputImage >::InputPixelType

Extract some information from the image types. Dimensionality of the two images is assumed to be the same.

Definition at line 66 of file itkHardConnectedComponentImageFilter.h.

template<class TInputImage , class TOutputImage >
typedef std::list< IndexType > itk::HardConnectedComponentImageFilter< TInputImage, TOutputImage >::ListType

Definition at line 82 of file itkHardConnectedComponentImageFilter.h.

template<class TInputImage , class TOutputImage >
typedef TOutputImage itk::HardConnectedComponentImageFilter< TInputImage, TOutputImage >::OutputImageType

Some convenient typedefs.

Reimplemented from itk::ImageSource< TOutputImage >.

Definition at line 78 of file itkHardConnectedComponentImageFilter.h.

template<class TInputImage , class TOutputImage >
typedef TOutputImage::InternalPixelType itk::HardConnectedComponentImageFilter< TInputImage, TOutputImage >::OutputInternalPixelType

Extract some information from the image types. Dimensionality of the two images is assumed to be the same.

Definition at line 65 of file itkHardConnectedComponentImageFilter.h.

template<class TInputImage , class TOutputImage >
typedef TOutputImage::PixelType itk::HardConnectedComponentImageFilter< TInputImage, TOutputImage >::OutputPixelType

Extract some information from the image types. Dimensionality of the two images is assumed to be the same.

Definition at line 64 of file itkHardConnectedComponentImageFilter.h.

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

Smart pointer typedef support

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

Definition at line 87 of file itkHardConnectedComponentImageFilter.h.

template<class TInputImage , class TOutputImage >
typedef TOutputImage::RegionType itk::HardConnectedComponentImageFilter< TInputImage, TOutputImage >::RegionType

Definition at line 81 of file itkHardConnectedComponentImageFilter.h.

template<class TInputImage , class TOutputImage >
typedef HardConnectedComponentImageFilter itk::HardConnectedComponentImageFilter< TInputImage, TOutputImage >::Self

Standard "Self" & Superclass typedef.

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

Definition at line 57 of file itkHardConnectedComponentImageFilter.h.

template<class TInputImage , class TOutputImage >
typedef TInputImage::SizeType itk::HardConnectedComponentImageFilter< TInputImage, TOutputImage >::SizeType

Definition at line 80 of file itkHardConnectedComponentImageFilter.h.

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

Constructor & Destructor Documentation

template<class TInputImage , class TOutputImage >
itk::HardConnectedComponentImageFilter< TInputImage, TOutputImage >::HardConnectedComponentImageFilter ( ) [inline, protected]

End concept checking

Definition at line 122 of file itkHardConnectedComponentImageFilter.h.

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

End concept checking

Definition at line 123 of file itkHardConnectedComponentImageFilter.h.

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

Member Function Documentation

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

Standard pipeline method.

Reimplemented from itk::ImageSource< TOutputImage >.

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

Run-time type information (and related methods)

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

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

Method for creation through the object factory.

Reimplemented from itk::Object.

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

template<class TInputImage , class TOutputImage >
void itk::HardConnectedComponentImageFilter< TInputImage, TOutputImage >::PrintSelf ( std::ostream &  os,
Indent  indent 
) const [inline, 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 >.

Definition at line 131 of file itkHardConnectedComponentImageFilter.h.

template<class TInputImage , class TOutputImage >
void itk::HardConnectedComponentImageFilter< TInputImage, TOutputImage >::SetObjectSeed ( const IndexType seed) [inline]

Setting the seed points for specified object.

Definition at line 101 of file itkHardConnectedComponentImageFilter.h.

template<class TInputImage , class TOutputImage >
itk::HardConnectedComponentImageFilter< TInputImage, TOutputImage >::typedef ( Concept::Convertible< unsigned short, OutputPixelType )

This class requires UnsignedShortConvertibleToOutputCheck in the form of ( Concept::Convertible< unsigned short, OutputPixelType > )

template<class TInputImage , class TOutputImage >
itk::HardConnectedComponentImageFilter< TInputImage, TOutputImage >::typedef ( Concept::Convertible< int, OutputPixelType )

This class requires IntConvertibleToOutputCheck in the form of ( Concept::Convertible< int, OutputPixelType > )

template<class TInputImage , class TOutputImage >
itk::HardConnectedComponentImageFilter< TInputImage, TOutputImage >::typedef ( Concept::SameDimension< InputImageDimension, ImageDimension )

Begin concept checking This class requires SameDimensionCheck in the form of ( Concept::SameDimension< InputImageDimension, ImageDimension > )

template<class TInputImage , class TOutputImage >
itk::HardConnectedComponentImageFilter< TInputImage, TOutputImage >::typedef ( Concept::Convertible< unsigned char, OutputPixelType )

This class requires UnsignedCharConvertibleToOutputCheck in the form of ( Concept::Convertible< unsigned char, OutputPixelType > )

template<class TInputImage , class TOutputImage >
itk::HardConnectedComponentImageFilter< TInputImage, TOutputImage >::typedef ( Concept::IncrementDecrementOperators< OutputPixelType )

This class requires OutputIncrementDecrementOperatorsCheck in the form of ( Concept::IncrementDecrementOperators< OutputPixelType > )

template<class TInputImage , class TOutputImage >
itk::HardConnectedComponentImageFilter< TInputImage, TOutputImage >::typedef ( Concept::EqualityComparable< OutputPixelType )

This class requires OutputEqualityComparableCheck in the form of ( Concept::EqualityComparable< OutputPixelType > )


Member Data Documentation

template<class TInputImage , class TOutputImage >
const unsigned int itk::HardConnectedComponentImageFilter< TInputImage, TOutputImage >::ImageDimension = TOutputImage::ImageDimension [static]

Extract some information from the image types. Dimensionality of the two images is assumed to be the same.

Definition at line 71 of file itkHardConnectedComponentImageFilter.h.

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

Extract some information from the image types. Dimensionality of the two images is assumed to be the same.

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

Definition at line 69 of file itkHardConnectedComponentImageFilter.h.

template<class TInputImage , class TOutputImage >
ListType itk::HardConnectedComponentImageFilter< TInputImage, TOutputImage >::m_Seeds [private]

Definition at line 138 of file itkHardConnectedComponentImageFilter.h.


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