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().
Typedefs | |
| typedef SmartPointer< const Self > | ConstPointer |
| typedef TInputImage::IndexType | IndexType |
| typedef TInputImage | InputImageType |
| typedef TInputImage::InternalPixelType | InputInternalPixelType |
| typedef TInputImage::PixelType | InputPixelType |
| typedef std::list< IndexType > | ListType |
| typedef TOutputImage | OutputImageType |
| typedef TOutputImage::InternalPixelType | OutputInternalPixelType |
| typedef SmartPointer< Self > | Pointer |
| typedef TOutputImage::RegionType | RegionType |
| typedef HardConnectedComponentImageFilter | Self |
| typedef TInputImage::SizeType | SizeType |
| typedef ImageToImageFilter< TInputImage, TOutputImage > | Superclass |
Functions | |
| *Standard pipeline method *void | GenerateData () |
| virtual const char * | GetNameOfClass () const |
| HardConnectedComponentImageFilter (const Self &) | |
| HardConnectedComponentImageFilter () | |
| itkStaticConstMacro (ImageDimension, unsigned int, TOutputImage::ImageDimension) | |
| itkStaticConstMacro (InputImageDimension, unsigned int, TInputImage::ImageDimension) | |
| static Pointer | New () |
| void | PrintSelf (std::ostream &os, Indent indent) const |
| void | SetObjectSeed (const IndexType &seed) |
| virtual | ~HardConnectedComponentImageFilter () |
Variables | |
| ListType | m_Seeds |
| *Extract some information from the image types Dimensionality *of the two images is assumed to be the same *typedef TOutputImage::PixelType | OutputPixelType |
|
|
Definition at line 89 of file itkHardConnectedComponentImageFilter.h. |
|
|
Definition at line 80 of file itkHardConnectedComponentImageFilter.h. |
|
|
Image typedef support Definition at line 78 of file itkHardConnectedComponentImageFilter.h. |
|
|
Definition at line 68 of file itkHardConnectedComponentImageFilter.h. |
|
|
Definition at line 67 of file itkHardConnectedComponentImageFilter.h. |
|
|
Definition at line 83 of file itkHardConnectedComponentImageFilter.h. |
|
|
Definition at line 79 of file itkHardConnectedComponentImageFilter.h. |
|
|
Definition at line 66 of file itkHardConnectedComponentImageFilter.h. |
|
|
Smart pointer typedef support Definition at line 88 of file itkHardConnectedComponentImageFilter.h. |
|
|
Definition at line 82 of file itkHardConnectedComponentImageFilter.h. |
|
|
Standard "Self" & Superclass typedef. Definition at line 58 of file itkHardConnectedComponentImageFilter.h. |
|
|
Definition at line 81 of file itkHardConnectedComponentImageFilter.h. |
|
|
Definition at line 59 of file itkHardConnectedComponentImageFilter.h. |
|
|
|
Run-time type information (and related methods) |
|
|
Definition at line 126 of file itkHardConnectedComponentImageFilter.h. |
|
|
Definition at line 124 of file itkHardConnectedComponentImageFilter.h. |
|
||||||||||||||||
|
|
|
||||||||||||||||
|
|
|
|
||||||||||||
|
|
Setting the seed points for specified object. Definition at line 102 of file itkHardConnectedComponentImageFilter.h. References m_Seeds. |
|
|
Definition at line 125 of file itkHardConnectedComponentImageFilter.h. |
|
|
|
Definition at line 65 of file itkHardConnectedComponentImageFilter.h. |
1.4.2 written by Dimitri van Heesch,
© 1997-2000