ITK
6.0.0
Insight 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: https://doi.org/10.54294/q6auw4
Definition at line 55 of file itkBinaryImageToLabelMapFilter.h.
Public Types | |
using | ConstPointer = SmartPointer< const Self > |
using | IndexType = typename TInputImage::IndexType |
using | InputImagePointer = typename InputImageType::Pointer |
using | InputImageType = TInputImage |
using | InputPixelType = typename TInputImage::PixelType |
using | OffsetType = typename TInputImage::OffsetType |
using | OffsetValueType = typename TInputImage::OffsetValueType |
using | OutputImagePixelType = typename TOutputImage::PixelType |
using | OutputImageType = TOutputImage |
using | OutputIndexType = typename TOutputImage::IndexType |
using | OutputOffsetType = typename TOutputImage::OffsetType |
using | OutputPixelType = typename TOutputImage::PixelType |
using | OutputSizeType = typename TOutputImage::SizeType |
using | Pointer = SmartPointer< Self > |
using | RegionType = typename TOutputImage::RegionType |
using | Self = BinaryImageToLabelMapFilter |
using | SizeType = typename TInputImage::SizeType |
using | SizeValueType = typename TInputImage::SizeValueType |
using | Superclass = ImageToImageFilter< TInputImage, TOutputImage > |
Public Member Functions | |
const char * | GetNameOfClass () const override |
virtual const SizeValueType & | GetNumberOfObjects () const |
virtual void | SetFullyConnected (bool _arg) |
virtual const bool & | GetFullyConnected () const |
virtual void | FullyConnectedOn () |
virtual void | SetOutputBackgroundValue (OutputPixelType _arg) |
virtual OutputPixelType | GetOutputBackgroundValue () const |
virtual void | SetInputForegroundValue (InputPixelType _arg) |
virtual InputPixelType | GetInputForegroundValue () const |
Static Public Member Functions | |
static Pointer | New () |
Static Public Attributes | |
static constexpr unsigned int | ImageDimension = TOutputImage::ImageDimension |
static constexpr unsigned int | InputImageDimension = TInputImage::ImageDimension |
static constexpr unsigned int | OutputImageDimension = TOutputImage::ImageDimension |
Protected Types | |
using | ConsecutiveVectorType = typename ScanlineFunctions::ConsecutiveVectorType |
using | InternalLabelType = typename ScanlineFunctions::InternalLabelType |
using | LineEncodingConstIterator = typename ScanlineFunctions::LineEncodingConstIterator |
using | LineEncodingIterator = typename ScanlineFunctions::LineEncodingIterator |
using | LineEncodingType = typename ScanlineFunctions::LineEncodingType |
using | LineMapType = typename ScanlineFunctions::LineMapType |
using | OffsetVectorConstIterator = typename ScanlineFunctions::OffsetVectorConstIterator |
using | OffsetVectorType = typename ScanlineFunctions::OffsetVectorType |
using | OutSizeType = typename ScanlineFunctions::OutSizeType |
using | RunLength = typename ScanlineFunctions::RunLength |
using | ScanlineFunctions = ScanlineFilterCommon< TInputImage, TOutputImage > |
using | UnionFindType = typename ScanlineFunctions::UnionFindType |
using | WorkUnitData = typename ScanlineFunctions::WorkUnitData |
Protected Member Functions | |
BinaryImageToLabelMapFilter () | |
void | DynamicThreadedGenerateData (const RegionType &outputRegionForThread) override |
void | EnlargeOutputRequestedRegion (DataObject *) override |
void | GenerateData () override |
void | GenerateInputRequestedRegion () override |
void | PrintSelf (std::ostream &os, Indent indent) const override |
~BinaryImageToLabelMapFilter () override=default | |
Private Attributes | |
InputPixelType | m_InputForegroundValue {} |
SizeValueType | m_NumberOfObjects {} |
OutputPixelType | m_OutputBackgroundValue {} |
|
protected |
Definition at line 181 of file itkBinaryImageToLabelMapFilter.h.
using itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::ConstPointer = SmartPointer<const Self> |
Definition at line 68 of file itkBinaryImageToLabelMapFilter.h.
using itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::IndexType = typename TInputImage::IndexType |
Definition at line 103 of file itkBinaryImageToLabelMapFilter.h.
using itk::ImageToImageFilter< TInputImage, TOutputImage >::InputImagePointer = typename InputImageType::Pointer |
Definition at line 130 of file itkImageToImageFilter.h.
using itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::InputImageType = TInputImage |
Image type alias support
Definition at line 102 of file itkBinaryImageToLabelMapFilter.h.
using itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::InputPixelType = typename TInputImage::PixelType |
Definition at line 92 of file itkBinaryImageToLabelMapFilter.h.
|
protected |
Definition at line 171 of file itkBinaryImageToLabelMapFilter.h.
|
protected |
Definition at line 176 of file itkBinaryImageToLabelMapFilter.h.
|
protected |
Definition at line 175 of file itkBinaryImageToLabelMapFilter.h.
|
protected |
Definition at line 174 of file itkBinaryImageToLabelMapFilter.h.
|
protected |
Definition at line 179 of file itkBinaryImageToLabelMapFilter.h.
using itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::OffsetType = typename TInputImage::OffsetType |
Definition at line 105 of file itkBinaryImageToLabelMapFilter.h.
using itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::OffsetValueType = typename TInputImage::OffsetValueType |
Definition at line 94 of file itkBinaryImageToLabelMapFilter.h.
|
protected |
Definition at line 178 of file itkBinaryImageToLabelMapFilter.h.
|
protected |
Definition at line 177 of file itkBinaryImageToLabelMapFilter.h.
using itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::OutputImagePixelType = typename TOutputImage::PixelType |
Definition at line 112 of file itkBinaryImageToLabelMapFilter.h.
using itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::OutputImageType = TOutputImage |
Definition at line 107 of file itkBinaryImageToLabelMapFilter.h.
using itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::OutputIndexType = typename TOutputImage::IndexType |
Definition at line 109 of file itkBinaryImageToLabelMapFilter.h.
using itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::OutputOffsetType = typename TOutputImage::OffsetType |
Definition at line 111 of file itkBinaryImageToLabelMapFilter.h.
using itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::OutputPixelType = typename TOutputImage::PixelType |
Extract some information from the image types. Dimensionality of the two images is assumed to be the same.
Definition at line 91 of file itkBinaryImageToLabelMapFilter.h.
using itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::OutputSizeType = typename TOutputImage::SizeType |
Definition at line 110 of file itkBinaryImageToLabelMapFilter.h.
|
protected |
Definition at line 172 of file itkBinaryImageToLabelMapFilter.h.
using itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::Pointer = SmartPointer<Self> |
Definition at line 67 of file itkBinaryImageToLabelMapFilter.h.
using itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::RegionType = typename TOutputImage::RegionType |
Definition at line 108 of file itkBinaryImageToLabelMapFilter.h.
|
protected |
Definition at line 173 of file itkBinaryImageToLabelMapFilter.h.
|
protected |
Definition at line 169 of file itkBinaryImageToLabelMapFilter.h.
using itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::Self = BinaryImageToLabelMapFilter |
Standard "Self" & Superclass typedef.
Definition at line 65 of file itkBinaryImageToLabelMapFilter.h.
using itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::SizeType = typename TInputImage::SizeType |
Definition at line 104 of file itkBinaryImageToLabelMapFilter.h.
using itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::SizeValueType = typename TInputImage::SizeValueType |
Definition at line 93 of file itkBinaryImageToLabelMapFilter.h.
using itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::Superclass = ImageToImageFilter<TInputImage, TOutputImage> |
Definition at line 66 of file itkBinaryImageToLabelMapFilter.h.
|
protected |
Definition at line 180 of file itkBinaryImageToLabelMapFilter.h.
|
protected |
Definition at line 182 of file itkBinaryImageToLabelMapFilter.h.
|
protected |
|
overrideprotecteddefault |
|
overrideprotected |
|
overrideprotected |
BinaryImageToLabelMapFilter will produce all of the output. Therefore it must provide an implementation of EnlargeOutputRequestedRegion().
|
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.
|
overrideprotected |
|
overrideprotected |
BinaryImageToLabelMapFilter needs the entire input. Therefore it must provide an implementation GenerateInputRequestedRegion().
|
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 |
Set/Get the value to be consider "foreground" in the input image. Defaults to NumericTraits<InputPixelType>::max().
|
override |
Run-time type information (and related methods)
|
virtual |
|
virtual |
Set/Get the value used as "background" in the output image. Defaults to NumericTraits<OutputPixelType>::NonpositiveMin().
|
static |
Method for creation through the object factory.
|
overrideprotected |
|
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 |
Set/Get the value to be consider "foreground" in the input image. Defaults to NumericTraits<InputPixelType>::max().
|
virtual |
Set/Get the value used as "background" in the output image. Defaults to NumericTraits<OutputPixelType>::NonpositiveMin().
|
staticconstexpr |
Definition at line 95 of file itkBinaryImageToLabelMapFilter.h.
|
staticconstexpr |
Definition at line 97 of file itkBinaryImageToLabelMapFilter.h.
|
private |
Definition at line 186 of file itkBinaryImageToLabelMapFilter.h.
|
private |
Definition at line 187 of file itkBinaryImageToLabelMapFilter.h.
|
private |
Definition at line 185 of file itkBinaryImageToLabelMapFilter.h.
|
staticconstexpr |
Definition at line 96 of file itkBinaryImageToLabelMapFilter.h.