ITK
5.0.0
Insight Segmentation and Registration Toolkit
|
#include <itkConnectedComponentFunctorImageFilter.h>
A generic connected components filter that labels the objects in an artibitrary image.
ConnectedComponentFunctorImageFilter labels the objects in an arbitrary image. Each distinct object is assigned a unique label. The filter makes three passes through the image. The first pass initializes the output. The second pass labels each foreground pixel such that all the pixels associated with an object either have the same label or have had their labels entered into a equivalency table. The third pass through the image flattens the equivalency table such that all pixels for an object have the same label.
The functor specifies the criteria to join neighboring pixels. For example a simple intensity threshold difference might be used for scalar imagery.
The final object labels are in no particular order (and some object labels may not be used on the final objects). You can reorder the labels such that object labels are consecutive and sorted based on object size by passing the output of this filter to a RelabelComponentImageFilter.
Definition at line 54 of file itkConnectedComponentFunctorImageFilter.h.
Public Types | |
using | ConstPointer = SmartPointer< const Self > |
using | FunctorType = TFunctor |
using | IndexType = typename TInputImage::IndexType |
using | InputImagePointer = typename Superclass::InputImagePointer |
using | InputImageType = TInputImage |
using | InputInternalPixelType = typename TInputImage::InternalPixelType |
using | InputPixelType = typename TInputImage::PixelType |
using | ListType = std::list< IndexType > |
using | MaskImagePointer = typename MaskImageType::Pointer |
using | MaskImageType = TMaskImage |
using | MaskPixelType = typename TMaskImage::PixelType |
using | OutputImageType = TOutputImage |
using | OutputInternalPixelType = typename TOutputImage::InternalPixelType |
using | OutputPixelType = typename TOutputImage::PixelType |
using | Pointer = SmartPointer< Self > |
using | RegionType = typename TOutputImage::RegionType |
using | Self = ConnectedComponentFunctorImageFilter |
using | SizeType = typename TInputImage::SizeType |
using | Superclass = ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage > |
Public Types inherited from itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage > | |
using | ConstPointer = SmartPointer< const Self > |
using | IndexType = typename TInputImage::IndexType |
using | InputImagePointer = typename Superclass::InputImagePointer |
using | InputImageType = TInputImage |
using | InputInternalPixelType = typename TInputImage::InternalPixelType |
using | InputPixelType = typename TInputImage::PixelType |
using | LabelType = IdentifierType |
using | ListType = std::list< IndexType > |
using | MaskImagePointer = typename MaskImageType::Pointer |
using | MaskImageType = TMaskImage |
using | MaskPixelType = typename TMaskImage::PixelType |
using | OffsetType = typename TInputImage::OffsetType |
using | OutputImagePixelType = typename TOutputImage::PixelType |
using | OutputImageType = TOutputImage |
using | OutputIndexType = typename TOutputImage::IndexType |
using | OutputInternalPixelType = typename TOutputImage::InternalPixelType |
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 = ConnectedComponentImageFilter |
using | SizeType = typename TInputImage::SizeType |
using | Superclass = ImageToImageFilter< TInputImage, TOutputImage > |
Public Types inherited from itk::ImageToImageFilter< TInputImage, TOutputImage > | |
using | ConstPointer = SmartPointer< const Self > |
using | InputImageConstPointer = typename InputImageType::ConstPointer |
using | InputImagePixelType = typename InputImageType::PixelType |
using | InputImagePointer = typename InputImageType::Pointer |
using | InputImageRegionType = typename InputImageType::RegionType |
using | InputImageType = TInputImage |
using | OutputImagePixelType = typename Superclass::OutputImagePixelType |
using | OutputImageRegionType = typename Superclass::OutputImageRegionType |
using | Pointer = SmartPointer< Self > |
using | Self = ImageToImageFilter |
using | Superclass = ImageSource< TOutputImage > |
Public Types inherited from itk::ImageSource< TOutputImage > | |
using | ConstPointer = SmartPointer< const Self > |
using | DataObjectIdentifierType = Superclass::DataObjectIdentifierType |
using | DataObjectPointer = DataObject::Pointer |
using | DataObjectPointerArraySizeType = Superclass::DataObjectPointerArraySizeType |
using | OutputImagePixelType = typename OutputImageType::PixelType |
using | OutputImagePointer = typename OutputImageType::Pointer |
using | OutputImageRegionType = typename OutputImageType::RegionType |
using | OutputImageType = TOutputImage |
using | Pointer = SmartPointer< Self > |
using | Self = ImageSource |
using | Superclass = ProcessObject |
Public Types inherited from itk::ProcessObject | |
using | ConstPointer = SmartPointer< const Self > |
using | DataObjectIdentifierType = DataObject::DataObjectIdentifierType |
using | DataObjectPointer = DataObject::Pointer |
using | DataObjectPointerArray = std::vector< DataObjectPointer > |
using | DataObjectPointerArraySizeType = DataObjectPointerArray::size_type |
using | MultiThreaderType = MultiThreaderBase |
using | NameArray = std::vector< DataObjectIdentifierType > |
using | Pointer = SmartPointer< Self > |
using | Self = ProcessObject |
using | Superclass = Object |
Public Types inherited from itk::Object | |
using | ConstPointer = SmartPointer< const Self > |
using | Pointer = SmartPointer< Self > |
using | Self = Object |
using | Superclass = LightObject |
Public Types inherited from itk::LightObject | |
using | ConstPointer = SmartPointer< const Self > |
using | Pointer = SmartPointer< Self > |
using | Self = LightObject |
Static Public Member Functions | |
static Pointer | New () |
Static Public Member Functions inherited from itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage > | |
static Pointer | New () |
Static Public Member Functions inherited from itk::Object | |
static bool | GetGlobalWarningDisplay () |
static void | GlobalWarningDisplayOff () |
static void | GlobalWarningDisplayOn () |
static Pointer | New () |
static void | SetGlobalWarningDisplay (bool flag) |
Static Public Member Functions inherited from itk::LightObject | |
static void | BreakOnError () |
static Pointer | New () |
Static Public Attributes | |
static constexpr unsigned int | ImageDimension = TOutputImage::ImageDimension |
static constexpr unsigned int | InputImageDimension = TInputImage::ImageDimension |
Static Public Attributes inherited from itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage > | |
static constexpr unsigned int | ImageDimension = TOutputImage::ImageDimension |
static constexpr unsigned int | InputImageDimension = TInputImage::ImageDimension |
static constexpr unsigned int | OutputImageDimension = TOutputImage::ImageDimension |
Static Public Attributes inherited from itk::ImageToImageFilter< TInputImage, TOutputImage > | |
static constexpr unsigned int | InputImageDimension = TInputImage::ImageDimension |
static constexpr unsigned int | OutputImageDimension = TOutputImage::ImageDimension |
Static Public Attributes inherited from itk::ImageSource< TOutputImage > | |
static constexpr unsigned int | OutputImageDimension = TOutputImage::ImageDimension |
Protected Attributes | |
FunctorType | m_Functor |
Protected Attributes inherited from itk::ImageSource< TOutputImage > | |
bool | m_DynamicMultiThreading |
Protected Attributes inherited from itk::ProcessObject | |
TimeStamp | m_OutputInformationMTime |
bool | m_Updating |
Protected Attributes inherited from itk::LightObject | |
std::atomic< int > | m_ReferenceCount |
Protected Attributes inherited from itk::ScanlineFilterCommon< TInputImage, TOutputImage > | |
ConsecutiveVectorType | m_Consecutive |
WeakPointer< EnclosingFilter > | m_EnclosingFilter |
bool | m_FullyConnected |
LineMapType | m_LineMap |
OffsetVectorType | m_LineOffsets |
std::mutex | m_Mutex |
std::atomic< SizeValueType > | m_NumberOfLabels |
UnionFindType | m_UnionFind |
std::deque< WorkUnitData > | m_WorkUnitResults |
using itk::ConnectedComponentFunctorImageFilter< TInputImage, TOutputImage, TFunctor, TMaskImage >::ConstPointer = SmartPointer< const Self > |
Definition at line 100 of file itkConnectedComponentFunctorImageFilter.h.
using itk::ConnectedComponentFunctorImageFilter< TInputImage, TOutputImage, TFunctor, TMaskImage >::FunctorType = TFunctor |
Image type alias support
Definition at line 84 of file itkConnectedComponentFunctorImageFilter.h.
using itk::ConnectedComponentFunctorImageFilter< TInputImage, TOutputImage, TFunctor, TMaskImage >::IndexType = typename TInputImage::IndexType |
Definition at line 89 of file itkConnectedComponentFunctorImageFilter.h.
using itk::ConnectedComponentFunctorImageFilter< TInputImage, TOutputImage, TFunctor, TMaskImage >::InputImagePointer = typename Superclass::InputImagePointer |
Types from the Superclass
Definition at line 67 of file itkConnectedComponentFunctorImageFilter.h.
using itk::ConnectedComponentFunctorImageFilter< TInputImage, TOutputImage, TFunctor, TMaskImage >::InputImageType = TInputImage |
Definition at line 85 of file itkConnectedComponentFunctorImageFilter.h.
using itk::ConnectedComponentFunctorImageFilter< TInputImage, TOutputImage, TFunctor, TMaskImage >::InputInternalPixelType = typename TInputImage::InternalPixelType |
Definition at line 76 of file itkConnectedComponentFunctorImageFilter.h.
using itk::ConnectedComponentFunctorImageFilter< TInputImage, TOutputImage, TFunctor, TMaskImage >::InputPixelType = typename TInputImage::PixelType |
Definition at line 75 of file itkConnectedComponentFunctorImageFilter.h.
using itk::ConnectedComponentFunctorImageFilter< TInputImage, TOutputImage, TFunctor, TMaskImage >::ListType = std::list< IndexType > |
Definition at line 92 of file itkConnectedComponentFunctorImageFilter.h.
using itk::ConnectedComponentFunctorImageFilter< TInputImage, TOutputImage, TFunctor, TMaskImage >::MaskImagePointer = typename MaskImageType::Pointer |
Definition at line 94 of file itkConnectedComponentFunctorImageFilter.h.
using itk::ConnectedComponentFunctorImageFilter< TInputImage, TOutputImage, TFunctor, TMaskImage >::MaskImageType = TMaskImage |
Definition at line 86 of file itkConnectedComponentFunctorImageFilter.h.
using itk::ConnectedComponentFunctorImageFilter< TInputImage, TOutputImage, TFunctor, TMaskImage >::MaskPixelType = typename TMaskImage::PixelType |
Definition at line 77 of file itkConnectedComponentFunctorImageFilter.h.
using itk::ConnectedComponentFunctorImageFilter< TInputImage, TOutputImage, TFunctor, TMaskImage >::OutputImageType = TOutputImage |
Definition at line 87 of file itkConnectedComponentFunctorImageFilter.h.
using itk::ConnectedComponentFunctorImageFilter< TInputImage, TOutputImage, TFunctor, TMaskImage >::OutputInternalPixelType = typename TOutputImage::InternalPixelType |
Definition at line 74 of file itkConnectedComponentFunctorImageFilter.h.
using itk::ConnectedComponentFunctorImageFilter< TInputImage, TOutputImage, TFunctor, TMaskImage >::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 73 of file itkConnectedComponentFunctorImageFilter.h.
using itk::ConnectedComponentFunctorImageFilter< TInputImage, TOutputImage, TFunctor, TMaskImage >::Pointer = SmartPointer< Self > |
Smart pointer type alias support
Definition at line 99 of file itkConnectedComponentFunctorImageFilter.h.
using itk::ConnectedComponentFunctorImageFilter< TInputImage, TOutputImage, TFunctor, TMaskImage >::RegionType = typename TOutputImage::RegionType |
Definition at line 91 of file itkConnectedComponentFunctorImageFilter.h.
using itk::ConnectedComponentFunctorImageFilter< TInputImage, TOutputImage, TFunctor, TMaskImage >::Self = ConnectedComponentFunctorImageFilter |
Standard "Self" & Superclass typedef.
Definition at line 61 of file itkConnectedComponentFunctorImageFilter.h.
using itk::ConnectedComponentFunctorImageFilter< TInputImage, TOutputImage, TFunctor, TMaskImage >::SizeType = typename TInputImage::SizeType |
Definition at line 90 of file itkConnectedComponentFunctorImageFilter.h.
using itk::ConnectedComponentFunctorImageFilter< TInputImage, TOutputImage, TFunctor, TMaskImage >::Superclass = ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage > |
Definition at line 62 of file itkConnectedComponentFunctorImageFilter.h.
|
protecteddefault |
|
overrideprotecteddefault |
|
inlineprotected |
Definition at line 157 of file itkConnectedComponentFunctorImageFilter.h.
|
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.
|
overrideprotectedvirtual |
Standard pipeline method.
Reimplemented from itk::ImageSource< TOutputImage >.
|
inline |
Get the functor object. The functor is returned by reference. (Functors do not have to derive from itk::LightObject, so they do not necessarily have a reference count. So we cannot return a SmartPointer.)
Definition at line 116 of file itkConnectedComponentFunctorImageFilter.h.
|
inline |
Get the functor object. The functor is returned by reference. (Functors do not have to derive from itk::LightObject, so they do not necessarily have a reference count. So we cannot return a SmartPointer.)
Definition at line 117 of file itkConnectedComponentFunctorImageFilter.h.
|
virtual |
Run-time type information (and related methods)
Reimplemented from itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >.
Reimplemented in itk::ScalarConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >, and itk::VectorConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >.
|
static |
Method for creation through the object factory.
|
inline |
Set the functor object. This replaces the current Functor with a copy of the specified Functor. This allows the user to specify a functor that has ivars set differently than the default functor. This method requires an operator!=() be defined on the functor (or the compiler's default implementation of operator!=() being appropriate).
Definition at line 126 of file itkConnectedComponentFunctorImageFilter.h.
|
static |
Definition at line 78 of file itkConnectedComponentFunctorImageFilter.h.
|
static |
Definition at line 79 of file itkConnectedComponentFunctorImageFilter.h.
|
protected |
Definition at line 159 of file itkConnectedComponentFunctorImageFilter.h.