ITK
4.6.0
Insight Segmentation and Registration Toolkit
|
#include <itkHardConnectedComponentImageFilter.h>
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.
Definition at line 49 of file itkHardConnectedComponentImageFilter.h.
Static Public Member Functions | |
static Pointer | New () |
Static Public Member Functions inherited from itk::Object | |
static bool | GetGlobalWarningDisplay () |
static void | GlobalWarningDisplayOff () |
static void | GlobalWarningDisplayOn () |
static Pointer | New () |
static void | SetGlobalWarningDisplay (bool flag) |
Static Public Member Functions inherited from itk::LightObject | |
static void | BreakOnError () |
static Pointer | New () |
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 |
typedef SmartPointer< const Self > itk::HardConnectedComponentImageFilter< TInputImage, TOutputImage >::ConstPointer |
Definition at line 88 of file itkHardConnectedComponentImageFilter.h.
typedef TInputImage::IndexType itk::HardConnectedComponentImageFilter< TInputImage, TOutputImage >::IndexType |
Definition at line 79 of file itkHardConnectedComponentImageFilter.h.
typedef TInputImage itk::HardConnectedComponentImageFilter< TInputImage, TOutputImage >::InputImageType |
Image typedef support
Definition at line 77 of file itkHardConnectedComponentImageFilter.h.
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.
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.
typedef std::list< IndexType > itk::HardConnectedComponentImageFilter< TInputImage, TOutputImage >::ListType |
Definition at line 82 of file itkHardConnectedComponentImageFilter.h.
typedef TOutputImage itk::HardConnectedComponentImageFilter< TInputImage, TOutputImage >::OutputImageType |
Definition at line 78 of file itkHardConnectedComponentImageFilter.h.
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.
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.
typedef SmartPointer< Self > itk::HardConnectedComponentImageFilter< TInputImage, TOutputImage >::Pointer |
Smart pointer typedef support
Definition at line 87 of file itkHardConnectedComponentImageFilter.h.
typedef TOutputImage::RegionType itk::HardConnectedComponentImageFilter< TInputImage, TOutputImage >::RegionType |
Definition at line 81 of file itkHardConnectedComponentImageFilter.h.
typedef HardConnectedComponentImageFilter itk::HardConnectedComponentImageFilter< TInputImage, TOutputImage >::Self |
Standard "Self" & Superclass typedef.
Definition at line 57 of file itkHardConnectedComponentImageFilter.h.
typedef TInputImage::SizeType itk::HardConnectedComponentImageFilter< TInputImage, TOutputImage >::SizeType |
Definition at line 80 of file itkHardConnectedComponentImageFilter.h.
typedef ImageToImageFilter< TInputImage, TOutputImage > itk::HardConnectedComponentImageFilter< TInputImage, TOutputImage >::Superclass |
Definition at line 58 of file itkHardConnectedComponentImageFilter.h.
|
inlineprotected |
Definition at line 122 of file itkHardConnectedComponentImageFilter.h.
|
inlineprotectedvirtual |
Definition at line 123 of file itkHardConnectedComponentImageFilter.h.
|
private |
|
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.
|
protectedvirtual |
Standard pipeline method.
Reimplemented from itk::ImageSource< TOutputImage >.
|
virtual |
Run-time type information (and related methods)
Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.
|
static |
Method for creation through the object factory.
|
private |
|
inlineprotectedvirtual |
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 130 of file itkHardConnectedComponentImageFilter.h.
References itk::ImageToImageFilter< TInputImage, TOutputImage >::PrintSelf().
|
inline |
Setting the seed points for specified object.
Definition at line 101 of file itkHardConnectedComponentImageFilter.h.
References itk::HardConnectedComponentImageFilter< TInputImage, TOutputImage >::m_Seeds.
itk::HardConnectedComponentImageFilter< TInputImage, TOutputImage >::typedef | ( | Concept::SameDimension< InputImageDimension, ImageDimension > | ) |
This class requires SameDimensionCheck in the form of ( Concept::SameDimension< InputImageDimension, ImageDimension > )
itk::HardConnectedComponentImageFilter< TInputImage, TOutputImage >::typedef | ( | Concept::Convertible< int, OutputPixelType > | ) |
This class requires IntConvertibleToOutputCheck in the form of ( Concept::Convertible< int, OutputPixelType > )
itk::HardConnectedComponentImageFilter< TInputImage, TOutputImage >::typedef | ( | Concept::Convertible< unsigned short, OutputPixelType > | ) |
This class requires UnsignedShortConvertibleToOutputCheck in the form of ( Concept::Convertible< unsigned short, OutputPixelType > )
itk::HardConnectedComponentImageFilter< TInputImage, TOutputImage >::typedef | ( | Concept::EqualityComparable< OutputPixelType > | ) |
This class requires OutputEqualityComparableCheck in the form of ( Concept::EqualityComparable< OutputPixelType > )
itk::HardConnectedComponentImageFilter< TInputImage, TOutputImage >::typedef | ( | Concept::Convertible< unsigned char, OutputPixelType > | ) |
This class requires UnsignedCharConvertibleToOutputCheck in the form of ( Concept::Convertible< unsigned char, OutputPixelType > )
itk::HardConnectedComponentImageFilter< TInputImage, TOutputImage >::typedef | ( | Concept::IncrementDecrementOperators< OutputPixelType > | ) |
This class requires OutputIncrementDecrementOperatorsCheck in the form of ( Concept::IncrementDecrementOperators< OutputPixelType > )
|
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.
|
static |
Extract some information from the image types. Dimensionality of the two images is assumed to be the same.
Definition at line 69 of file itkHardConnectedComponentImageFilter.h.
|
private |
Definition at line 137 of file itkHardConnectedComponentImageFilter.h.
Referenced by itk::HardConnectedComponentImageFilter< TInputImage, TOutputImage >::SetObjectSeed().