ITK
4.1.0
Insight Segmentation and Registration Toolkit
|
#include <itkBinaryImageToLabelMapFilter.h>
Label the connected components in a binary image and produce a collection of label objects.
BinaryImageToLabelMapFilter labels the objects in a binary image. Each distinct object is assigned a unique label. The final object labels start with 1 and are consecutive. Objects that are reached earlier by a raster order scan have a lower label.
The GetOutput() function of this class returns an itk::LabelMap.
This implementation was taken from the Insight Journal paper: http://hdl.handle.net/1926/584 or http://www.insight-journal.org/browse/publication/176
Definition at line 61 of file itkBinaryImageToLabelMapFilter.h.
typedef SmartPointer< const Self > itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::ConstPointer |
Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.
Definition at line 71 of file itkBinaryImageToLabelMapFilter.h.
typedef TInputImage::IndexType itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::IndexType |
Definition at line 107 of file itkBinaryImageToLabelMapFilter.h.
typedef Superclass::InputImagePointer itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::InputImagePointer |
Types from the Superclass
Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.
Definition at line 81 of file itkBinaryImageToLabelMapFilter.h.
typedef TInputImage itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::InputImageType |
Image typedef support
Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.
Definition at line 106 of file itkBinaryImageToLabelMapFilter.h.
typedef TInputImage::PixelType itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::InputPixelType |
Extract some information from the image types. Dimensionality of the two images is assumed to be the same.
Definition at line 93 of file itkBinaryImageToLabelMapFilter.h.
typedef SizeValueType itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::LabelType |
Definition at line 101 of file itkBinaryImageToLabelMapFilter.h.
typedef std::vector< runLength > itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::lineEncoding [private] |
Definition at line 198 of file itkBinaryImageToLabelMapFilter.h.
typedef std::vector< lineEncoding > itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::LineMapType [private] |
Definition at line 201 of file itkBinaryImageToLabelMapFilter.h.
typedef std::list< IndexType > itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::ListType |
Definition at line 118 of file itkBinaryImageToLabelMapFilter.h.
typedef TInputImage::OffsetType itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::OffsetType |
Definition at line 109 of file itkBinaryImageToLabelMapFilter.h.
typedef TInputImage::OffsetValueType itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::OffsetValueType |
Extract some information from the image types. Dimensionality of the two images is assumed to be the same.
Definition at line 95 of file itkBinaryImageToLabelMapFilter.h.
typedef std::vector< OffsetValueType > itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::OffsetVectorType [private] |
Definition at line 203 of file itkBinaryImageToLabelMapFilter.h.
typedef TOutputImage::PixelType itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::OutputImagePixelType |
Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.
Definition at line 116 of file itkBinaryImageToLabelMapFilter.h.
typedef TOutputImage itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::OutputImageType |
Some convenient typedefs.
Reimplemented from itk::ImageSource< TOutputImage >.
Definition at line 111 of file itkBinaryImageToLabelMapFilter.h.
typedef TOutputImage::IndexType itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::OutputIndexType |
Definition at line 113 of file itkBinaryImageToLabelMapFilter.h.
typedef TOutputImage::OffsetType itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::OutputOffsetType |
Definition at line 115 of file itkBinaryImageToLabelMapFilter.h.
typedef TOutputImage::PixelType itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::OutputPixelType |
Extract some information from the image types. Dimensionality of the two images is assumed to be the same.
Definition at line 92 of file itkBinaryImageToLabelMapFilter.h.
typedef TOutputImage::SizeType itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::OutputSizeType |
Definition at line 114 of file itkBinaryImageToLabelMapFilter.h.
typedef TOutputImage::RegionType::SizeType itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::OutSizeType [private] |
Definition at line 186 of file itkBinaryImageToLabelMapFilter.h.
typedef SmartPointer< Self > itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::Pointer |
Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.
Definition at line 70 of file itkBinaryImageToLabelMapFilter.h.
typedef TOutputImage::RegionType itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::RegionType |
Definition at line 112 of file itkBinaryImageToLabelMapFilter.h.
typedef BinaryImageToLabelMapFilter itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::Self |
Standard "Self" & Superclass typedef.
Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.
Definition at line 68 of file itkBinaryImageToLabelMapFilter.h.
typedef TInputImage::SizeType itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::SizeType |
Definition at line 108 of file itkBinaryImageToLabelMapFilter.h.
typedef TInputImage::SizeValueType itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::SizeValueType |
Extract some information from the image types. Dimensionality of the two images is assumed to be the same.
Definition at line 94 of file itkBinaryImageToLabelMapFilter.h.
typedef ImageToImageFilter< TInputImage, TOutputImage > itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::Superclass |
Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.
Definition at line 69 of file itkBinaryImageToLabelMapFilter.h.
typedef std::vector< LabelType > itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::UnionFindType [private] |
Definition at line 206 of file itkBinaryImageToLabelMapFilter.h.
itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::BinaryImageToLabelMapFilter | ( | ) | [protected] |
virtual itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::~BinaryImageToLabelMapFilter | ( | ) | [inline, protected, virtual] |
Definition at line 158 of file itkBinaryImageToLabelMapFilter.h.
itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::BinaryImageToLabelMapFilter | ( | const Self & | ) | [private] |
BinaryImageToLabelMapFilter will produce all of the output. Therefore it must provide an implementation of EnlargeOutputRequestedRegion().
void itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::AfterThreadedGenerateData | ( | void | ) | [protected, virtual] |
If an imaging filter needs to perform processing after all processing threads have completed, the filter can can provide an implementation for AfterThreadedGenerateData(). The execution flow in the default GenerateData() method will be: 1) Allocate the output buffer 2) Call BeforeThreadedGenerateData() 3) Spawn threads, calling ThreadedGenerateData() in each thread. 4) Call AfterThreadedGenerateData() Note that this flow of control is only available if a filter provides a ThreadedGenerateData() method and NOT a GenerateData() method.
Reimplemented from itk::ImageSource< TOutputImage >.
void itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::BeforeThreadedGenerateData | ( | ) | [protected, virtual] |
Standard pipeline method.
Reimplemented from itk::ImageSource< TOutputImage >.
bool itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::CheckNeighbors | ( | const OutputIndexType & | A, |
const OutputIndexType & | B | ||
) | [private] |
void itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::CompareLines | ( | lineEncoding & | current, |
const lineEncoding & | Neighbour | ||
) | [private] |
virtual::itk::LightObject::Pointer itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::CreateAnother | ( | void | ) | const [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.
LabelType itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::CreateConsecutive | ( | ) | [private] |
void itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::EnlargeOutputRequestedRegion | ( | DataObject * | ) | [protected, virtual] |
BinaryImageToLabelMapFilter will produce all of the output. Therefore it must provide an implementation of EnlargeOutputRequestedRegion().
Reimplemented from itk::ProcessObject.
void itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::FillOutput | ( | const LineMapType & | LineMap, |
ProgressReporter & | progress | ||
) | [private] |
virtual void itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::FullyConnectedOff | ( | ) | [virtual] |
Set/Get whether the connected components are defined strictly by face connectivity or by face+edge+vertex connectivity. Default is FullyConnectedOff. For objects that are 1 pixel wide, use FullyConnectedOn.
virtual void itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::FullyConnectedOn | ( | ) | [virtual] |
Set/Get whether the connected components are defined strictly by face connectivity or by face+edge+vertex connectivity. Default is FullyConnectedOff. For objects that are 1 pixel wide, use FullyConnectedOn.
void itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::GenerateInputRequestedRegion | ( | ) | [protected, virtual] |
BinaryImageToLabelMapFilter needs the entire input. Therefore it must provide an implementation GenerateInputRequestedRegion().
Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.
virtual const bool& itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::GetFullyConnected | ( | ) | [virtual] |
Set/Get whether the connected components are defined strictly by face connectivity or by face+edge+vertex connectivity. Default is FullyConnectedOff. For objects that are 1 pixel wide, use FullyConnectedOn.
virtual InputPixelType itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::GetInputForegroundValue | ( | ) | const [virtual] |
Set/Get the value to be consider "foreground" in the input image. Defaults to NumericTraits<InputPixelType>::max().
virtual const char* itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::GetNameOfClass | ( | ) | const [virtual] |
Run-time type information (and related methods)
Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.
virtual const SizeValueType& itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::GetNumberOfObjects | ( | ) | [virtual] |
virtual OutputPixelType itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::GetOutputBackgroundValue | ( | ) | const [virtual] |
Set/Get the value used as "background" in the output image. Defaults to NumericTraits<OutputPixelType>::NonpositiveMin().
void itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::InitUnion | ( | const LabelType | size | ) | [inline, private] |
Definition at line 210 of file itkBinaryImageToLabelMapFilter.h.
void itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::InsertSet | ( | const LabelType | label | ) | [private] |
void itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::LinkLabels | ( | const LabelType | lab1, |
const LabelType | lab2 | ||
) | [private] |
LabelType itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::LookupSet | ( | const LabelType | label | ) | [private] |
static Pointer itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::New | ( | ) | [static] |
Method for creation through the object factory.
Reimplemented from itk::Object.
void itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::operator= | ( | const Self & | ) | [private] |
BinaryImageToLabelMapFilter will produce all of the output. Therefore it must provide an implementation of EnlargeOutputRequestedRegion().
Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.
void itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::PrintSelf | ( | std::ostream & | os, |
Indent | indent | ||
) | const [protected, virtual] |
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 >.
virtual void itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::SetFullyConnected | ( | bool | _arg | ) | [virtual] |
Set/Get whether the connected components are defined strictly by face connectivity or by face+edge+vertex connectivity. Default is FullyConnectedOff. For objects that are 1 pixel wide, use FullyConnectedOn.
virtual void itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::SetInputForegroundValue | ( | InputPixelType | _arg | ) | [virtual] |
Set/Get the value to be consider "foreground" in the input image. Defaults to NumericTraits<InputPixelType>::max().
virtual void itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::SetOutputBackgroundValue | ( | OutputPixelType | _arg | ) | [virtual] |
Set/Get the value used as "background" in the output image. Defaults to NumericTraits<OutputPixelType>::NonpositiveMin().
void itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::SetupLineOffsets | ( | OffsetVectorType & | LineOffsets | ) | [private] |
void itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::ThreadedGenerateData | ( | const RegionType & | outputRegionForThread, |
ThreadIdType | threadId | ||
) | [protected] |
itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::typedef | ( | Concept::SameDimension< itkGetStaticConstMacro(InputImageDimension), itkGetStaticConstMacro(OutputImageDimension) > | ) |
This class requires SameDimension in the form of ( Concept::SameDimension< itkGetStaticConstMacro(InputImageDimension), itkGetStaticConstMacro(OutputImageDimension) > )
void itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::Wait | ( | ) | [inline, private] |
Definition at line 234 of file itkBinaryImageToLabelMapFilter.h.
const unsigned int itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::ImageDimension = TOutputImage::ImageDimension [static] |
Extract some information from the image types. Dimensionality of the two images is assumed to be the same.
Definition at line 96 of file itkBinaryImageToLabelMapFilter.h.
const unsigned int itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::InputImageDimension = TInputImage::ImageDimension [static] |
Extract some information from the image types. Dimensionality of the two images is assumed to be the same.
Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.
Definition at line 98 of file itkBinaryImageToLabelMapFilter.h.
Barrier::Pointer itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::m_Barrier [private] |
Definition at line 253 of file itkBinaryImageToLabelMapFilter.h.
UnionFindType itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::m_Consecutive [private] |
Definition at line 208 of file itkBinaryImageToLabelMapFilter.h.
std::vector< SizeValueType > itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::m_FirstLineIdToJoin [private] |
Definition at line 251 of file itkBinaryImageToLabelMapFilter.h.
bool itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::m_FullyConnected [private] |
Definition at line 248 of file itkBinaryImageToLabelMapFilter.h.
InputPixelType itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::m_InputForegroundValue [private] |
Definition at line 244 of file itkBinaryImageToLabelMapFilter.h.
LineMapType itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::m_LineMap [private] |
Definition at line 256 of file itkBinaryImageToLabelMapFilter.h.
std::vector< SizeValueType > itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::m_NumberOfLabels [private] |
Definition at line 250 of file itkBinaryImageToLabelMapFilter.h.
SizeValueType itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::m_NumberOfObjects [private] |
Definition at line 246 of file itkBinaryImageToLabelMapFilter.h.
OutputPixelType itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::m_OutputBackgroundValue [private] |
Definition at line 243 of file itkBinaryImageToLabelMapFilter.h.
UnionFindType itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::m_UnionFind [private] |
Definition at line 207 of file itkBinaryImageToLabelMapFilter.h.
const unsigned int itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::OutputImageDimension = TOutputImage::ImageDimension [static] |
Extract some information from the image types. Dimensionality of the two images is assumed to be the same.
Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.
Definition at line 97 of file itkBinaryImageToLabelMapFilter.h.