[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 77 of file itkHardConnectedComponentImageFilter.h. |
|
Image typedef support Definition at line 75 of file itkHardConnectedComponentImageFilter.h. |
|
Definition at line 68 of file itkHardConnectedComponentImageFilter.h. |
|
Definition at line 67 of file itkHardConnectedComponentImageFilter.h. |
|
Definition at line 80 of file itkHardConnectedComponentImageFilter.h. |
|
Definition at line 76 of file itkHardConnectedComponentImageFilter.h. |
|
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. |
|
Smart pointer typedef support Definition at line 85 of file itkHardConnectedComponentImageFilter.h. |
|
Definition at line 79 of file itkHardConnectedComponentImageFilter.h. |
|
Standard "Self" & Superclass typedef. Definition at line 58 of file itkHardConnectedComponentImageFilter.h. Referenced by ~HardConnectedComponentImageFilter(). |
|
Definition at line 78 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. |
|
Definition at line 103 of file itkHardConnectedComponentImageFilter.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 Self. |
|
Definition at line 117 of file itkHardConnectedComponentImageFilter.h. Referenced by SetObjectSeed(). |