NifTK
16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
|
Largest connected component filter. More...
Public Types | |
typedef TInputImageType | InputImageType |
typedef TOutputImageType | OutputImageType |
typedef InputImageType::IndexType | IndexType |
typedef OutputImageType::PixelType | OutputImagePixelType |
typedef InputImageType::PixelType | InputImagePixelType |
typedef InputImageType::RegionType | InputImageRegionType |
typedef MIDASMorphologicalSegmentorLargestConnectedComponentImageFilter | Self |
typedef ImageToImageFilter < InputImageType, OutputImageType > | SuperClass |
typedef SmartPointer< Self > | Pointer |
typedef SmartPointer< const Self > | ConstPointer |
Public Member Functions | |
virtual void | SetInputBackgroundValue (InputImagePixelType _arg) |
virtual InputImagePixelType | GetInputBackgroundValue () const |
virtual void | SetOutputBackgroundValue (OutputImagePixelType _arg) |
virtual OutputImagePixelType | GetOutputBackgroundValue () const |
virtual void | SetOutputForegroundValue (OutputImagePixelType _arg) |
virtual OutputImagePixelType | GetOutputForegroundValue () const |
virtual unsigned int | GetCapacity () const |
void | SetCapacity (unsigned capacity) |
virtual unsigned int | GetNumberOfConnectedComponents () const |
The number of connected components discovered by the filter. More... | |
Static Public Member Functions | |
static Pointer | New () |
Protected Member Functions | |
MIDASMorphologicalSegmentorLargestConnectedComponentImageFilter (void) | |
virtual | ~MIDASMorphologicalSegmentorLargestConnectedComponentImageFilter (void) |
void | _ProcessRegion (std::vector< unsigned int > &r_regionIndices, const unsigned int &startIndex) |
void | _SetComponentPixels (const std::vector< unsigned int > ®ionIndices) |
virtual void | BeforeThreadedGenerateData () |
virtual void | ThreadedGenerateData (const InputImageRegionType &outputRegionForThread, ThreadIdType ThreadID) |
virtual void | AfterThreadedGenerateData () |
Largest connected component filter.
Returns an image only containing the largest of the foreground components of the input image.
typedef SmartPointer<const Self> itk::MIDASMorphologicalSegmentorLargestConnectedComponentImageFilter< TInputImageType, TOutputImageType >::ConstPointer |
typedef InputImageType::IndexType itk::MIDASMorphologicalSegmentorLargestConnectedComponentImageFilter< TInputImageType, TOutputImageType >::IndexType |
typedef InputImageType::PixelType itk::MIDASMorphologicalSegmentorLargestConnectedComponentImageFilter< TInputImageType, TOutputImageType >::InputImagePixelType |
typedef InputImageType::RegionType itk::MIDASMorphologicalSegmentorLargestConnectedComponentImageFilter< TInputImageType, TOutputImageType >::InputImageRegionType |
typedef TInputImageType itk::MIDASMorphologicalSegmentorLargestConnectedComponentImageFilter< TInputImageType, TOutputImageType >::InputImageType |
typedef OutputImageType::PixelType itk::MIDASMorphologicalSegmentorLargestConnectedComponentImageFilter< TInputImageType, TOutputImageType >::OutputImagePixelType |
typedef TOutputImageType itk::MIDASMorphologicalSegmentorLargestConnectedComponentImageFilter< TInputImageType, TOutputImageType >::OutputImageType |
typedef SmartPointer<Self> itk::MIDASMorphologicalSegmentorLargestConnectedComponentImageFilter< TInputImageType, TOutputImageType >::Pointer |
typedef MIDASMorphologicalSegmentorLargestConnectedComponentImageFilter itk::MIDASMorphologicalSegmentorLargestConnectedComponentImageFilter< TInputImageType, TOutputImageType >::Self |
typedef ImageToImageFilter<InputImageType, OutputImageType> itk::MIDASMorphologicalSegmentorLargestConnectedComponentImageFilter< TInputImageType, TOutputImageType >::SuperClass |
|
protected |
|
inlineprotectedvirtual |
|
protected |
Creates a list of pixel indices belonging to the component starting at "startIndex". Removes the corresponding labels from the output image.
|
protected |
Labels the pixels whose indices are passed in regionIndices
|
protectedvirtual |
In contrast to conventional ITK style, most of the algorithm is here.
Get a total of the number of labelled pixels from the multi-threaded section.
|
protectedvirtual |
Initialises stuff before multithreaded section, eg. clearing m_MapOfLabelledPixels.
|
virtual |
Set/Get the capacity.
|
virtual |
|
virtual |
The number of connected components discovered by the filter.
|
virtual |
|
virtual |
|
static |
|
inline |
|
virtual |
Set/Get methods to set the value on the input image that is considered background. Default 0.
|
virtual |
Set/Get methods to set the output value for outside the largest region. Default 0.
|
virtual |
Set/Get methods to set the output value for inside the largest region. Default 1.
|
protectedvirtual |
Multi-threaded section, that actually just does some basic initialisation.