[NOHEADER] | |
void | GenerateData () |
void | PrintSelf (std::ostream &os, Indent indent) const |
Typedefs | |
typedef HardConnectedComponentImageFilter | Self |
typedef ImageToImageFilter< TInputImage, TOutputImage > | Superclass |
typedef TOutputImage::PixelType | OutputPixelType |
typedef TOutputImage::InternalPixelType | OutputInternalPixelType |
typedef TInputImage::PixelType | InputPixelType |
typedef TInputImage::InternalPixelType | InputInternalPixelType |
typedef TInputImage | InputImageType |
typedef TOutputImage | OutputImageType |
typedef TInputImage::IndexType | IndexType |
typedef TInputImage::SizeType | SizeType |
typedef TOutputImage::RegionType | RegionType |
typedef std::list< IndexType > | ListType |
typedef SmartPointer< Self > | Pointer |
typedef SmartPointer< const Self > | ConstPointer |
Functions | |
itkStaticConstMacro (ImageDimension, unsigned int, TOutputImage::ImageDimension) | |
virtual const char * | GetClassName () const |
Pointer | New () |
void | SetObjectSeed (const IndexType &seed) |
HardConnectedComponentImageFilter () | |
virtual | ~HardConnectedComponentImageFilter () |
HardConnectedComponentImageFilter (const Self &) | |
Variables | |
ListType | m_Seeds |
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().
|
Definition at line 86 of file itkHardConnectedComponentImageFilter.h. |
|
|
|
Definition at line 68 of file itkHardConnectedComponentImageFilter.h. |
|
|
Definition at line 80 of file itkHardConnectedComponentImageFilter.h. |
|
Definition at line 76 of file itkHardConnectedComponentImageFilter.h. Referenced by itk::TwoOutputExampleImageFilter< TImage >::SetInverseOutput(). |
|
Definition at line 66 of file itkHardConnectedComponentImageFilter.h. |
|
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. Referenced by itk::SigmoidImageFilter< TInputImage, TOutputImage >::SetOutputMaximum(), itk::SigmoidImageFilter< TInputImage, TOutputImage >::SetOutputMinimum(), itk::BinaryThresholdImageFilter< TInputImage, TOutputImage >::~BinaryThresholdImageFilter(), itk::DifferenceImageFilter< TInputImage, TOutputImage >::~DifferenceImageFilter(), itk::ExpandImageFilter< TInputImage, TOutputImage >::~ExpandImageFilter(), itk::RescaleIntensityImageFilter< TInputImage, TOutputImage >::~RescaleIntensityImageFilter(), and itk::VectorExpandImageFilter< TInputImage, TOutputImage >::~VectorExpandImageFilter(). |
|
Smart pointer typedef support Definition at line 85 of file itkHardConnectedComponentImageFilter.h. |
|
|
|
|
Definition at line 59 of file itkHardConnectedComponentImageFilter.h. |
|
|
Run-time type information (and related methods) |
|
Definition at line 105 of file itkHardConnectedComponentImageFilter.h. References GenerateData(), and PrintSelf(). |
|
Definition at line 103 of file itkHardConnectedComponentImageFilter.h. References HardConnectedComponentImageFilter(). Referenced by HardConnectedComponentImageFilter(), and ~HardConnectedComponentImageFilter(). |
|
|
|
Method for creation through the object factory. Definition at line 179 of file itkFEMMacro.h. |
|
|
Setting the seed points for specified object. Definition at line 99 of file itkHardConnectedComponentImageFilter.h. References m_Seeds. |
|
Definition at line 104 of file itkHardConnectedComponentImageFilter.h. References HardConnectedComponentImageFilter(), and Self. |
|
Definition at line 117 of file itkHardConnectedComponentImageFilter.h. Referenced by SetObjectSeed(). |