ITK
4.13.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 | |
typedef SmartPointer< const Self > | ConstPointer |
typedef TFunctor | FunctorType |
typedef TInputImage::IndexType | IndexType |
typedef Superclass::InputImagePointer | InputImagePointer |
typedef TInputImage | InputImageType |
typedef std::list< IndexType > | ListType |
typedef MaskImageType::Pointer | MaskImagePointer |
typedef TMaskImage | MaskImageType |
typedef TOutputImage | OutputImageType |
typedef SmartPointer< Self > | Pointer |
typedef TOutputImage::RegionType | RegionType |
typedef ConnectedComponentFunctorImageFilter | Self |
typedef TInputImage::SizeType | SizeType |
typedef ConnectedComponentImageFilter < TInputImage, TOutputImage, TMaskImage > | Superclass |
Public Types inherited from itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage > | |
typedef SmartPointer< const Self > | ConstPointer |
typedef TInputImage::IndexType | IndexType |
typedef Superclass::InputImagePointer | InputImagePointer |
typedef TInputImage | InputImageType |
typedef IdentifierType | LabelType |
typedef std::list< IndexType > | ListType |
typedef MaskImageType::Pointer | MaskImagePointer |
typedef TMaskImage | MaskImageType |
typedef TInputImage::OffsetType | OffsetType |
typedef TOutputImage::PixelType | OutputImagePixelType |
typedef TOutputImage | OutputImageType |
typedef TOutputImage::IndexType | OutputIndexType |
typedef TOutputImage::OffsetType | OutputOffsetType |
typedef TOutputImage::SizeType | OutputSizeType |
typedef SmartPointer< Self > | Pointer |
typedef TOutputImage::RegionType | RegionType |
typedef ConnectedComponentImageFilter | Self |
typedef TInputImage::SizeType | SizeType |
typedef ImageToImageFilter < TInputImage, TOutputImage > | Superclass |
typedef TOutputImage::PixelType | OutputPixelType |
typedef TOutputImage::InternalPixelType | OutputInternalPixelType |
typedef TInputImage::PixelType | InputPixelType |
typedef TInputImage::InternalPixelType | InputInternalPixelType |
typedef TMaskImage::PixelType | MaskPixelType |
Public Types inherited from itk::ImageToImageFilter< TInputImage, TOutputImage > | |
typedef SmartPointer< const Self > | ConstPointer |
typedef InputImageType::ConstPointer | InputImageConstPointer |
typedef InputImageType::PixelType | InputImagePixelType |
typedef InputImageType::Pointer | InputImagePointer |
typedef InputImageType::RegionType | InputImageRegionType |
typedef TInputImage | InputImageType |
typedef Superclass::OutputImagePixelType | OutputImagePixelType |
typedef Superclass::OutputImageRegionType | OutputImageRegionType |
typedef SmartPointer< Self > | Pointer |
typedef ImageToImageFilter | Self |
typedef ImageSource< TOutputImage > | Superclass |
Public Types inherited from itk::ImageSource< TOutputImage > | |
typedef SmartPointer< const Self > | ConstPointer |
typedef Superclass::DataObjectIdentifierType | DataObjectIdentifierType |
typedef DataObject::Pointer | DataObjectPointer |
typedef Superclass::DataObjectPointerArraySizeType | DataObjectPointerArraySizeType |
typedef OutputImageType::PixelType | OutputImagePixelType |
typedef OutputImageType::Pointer | OutputImagePointer |
typedef OutputImageType::RegionType | OutputImageRegionType |
typedef TOutputImage | OutputImageType |
typedef SmartPointer< Self > | Pointer |
typedef ImageSource | Self |
typedef ProcessObject | Superclass |
Public Types inherited from itk::ProcessObject | |
typedef SmartPointer< const Self > | ConstPointer |
typedef DataObject::DataObjectIdentifierType | DataObjectIdentifierType |
typedef DataObject::Pointer | DataObjectPointer |
typedef std::vector < DataObjectPointer > | DataObjectPointerArray |
typedef DataObjectPointerArray::size_type | DataObjectPointerArraySizeType |
typedef MultiThreader | MultiThreaderType |
typedef std::vector < DataObjectIdentifierType > | NameArray |
typedef SmartPointer< Self > | Pointer |
typedef ProcessObject | Self |
typedef Object | Superclass |
Public Types inherited from itk::Object | |
typedef SmartPointer< const Self > | ConstPointer |
typedef SmartPointer< Self > | Pointer |
typedef Object | Self |
typedef LightObject | Superclass |
Public Types inherited from itk::LightObject | |
typedef SmartPointer< const Self > | ConstPointer |
typedef SmartPointer< Self > | Pointer |
typedef LightObject | Self |
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 () |
Protected Attributes | |
FunctorType | m_Functor |
Protected Attributes inherited from itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage > | |
bool | m_FullyConnected |
Protected Attributes inherited from itk::ProcessObject | |
TimeStamp | m_OutputInformationMTime |
bool | m_Updating |
Protected Attributes inherited from itk::LightObject | |
AtomicInt< int > | m_ReferenceCount |
typedef TOutputImage::PixelType | OutputPixelType |
typedef TOutputImage::InternalPixelType | OutputInternalPixelType |
typedef TInputImage::PixelType | InputPixelType |
typedef TInputImage::InternalPixelType | InputInternalPixelType |
typedef TMaskImage::PixelType | MaskPixelType |
static const unsigned int | ImageDimension = TOutputImage::ImageDimension |
static const unsigned int | InputImageDimension = TInputImage::ImageDimension |
Additional Inherited Members | |
Static Public Attributes inherited from itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage > | |
static const unsigned int | ImageDimension = TOutputImage::ImageDimension |
static const unsigned int | OutputImageDimension = TOutputImage::ImageDimension |
static const unsigned int | InputImageDimension = TInputImage::ImageDimension |
Static Public Attributes inherited from itk::ImageToImageFilter< TInputImage, TOutputImage > | |
static const unsigned int | InputImageDimension = TInputImage::ImageDimension |
static const unsigned int | OutputImageDimension = TOutputImage::ImageDimension |
Static Public Attributes inherited from itk::ImageSource< TOutputImage > | |
static const unsigned int | OutputImageDimension = TOutputImage::ImageDimension |
Protected Types inherited from itk::ImageToImageFilter< TInputImage, TOutputImage > | |
typedef ImageToImageFilterDetail::ImageRegionCopier < itkGetStaticConstMacro(OutputImageDimension), itkGetStaticConstMacro(InputImageDimension) > | InputToOutputRegionCopierType |
typedef ImageToImageFilterDetail::ImageRegionCopier < itkGetStaticConstMacro(InputImageDimension), itkGetStaticConstMacro(OutputImageDimension) > | OutputToInputRegionCopierType |
Static Protected Member Functions inherited from itk::ImageSource< TOutputImage > | |
static const ImageRegionSplitterBase * | GetGlobalDefaultSplitter () |
static ITK_THREAD_RETURN_TYPE | ThreaderCallback (void *arg) |
typedef SmartPointer< const Self > itk::ConnectedComponentFunctorImageFilter< TInputImage, TOutputImage, TFunctor, TMaskImage >::ConstPointer |
Definition at line 103 of file itkConnectedComponentFunctorImageFilter.h.
typedef TFunctor itk::ConnectedComponentFunctorImageFilter< TInputImage, TOutputImage, TFunctor, TMaskImage >::FunctorType |
Image typedef support
Definition at line 87 of file itkConnectedComponentFunctorImageFilter.h.
typedef TInputImage::IndexType itk::ConnectedComponentFunctorImageFilter< TInputImage, TOutputImage, TFunctor, TMaskImage >::IndexType |
Definition at line 92 of file itkConnectedComponentFunctorImageFilter.h.
typedef Superclass::InputImagePointer itk::ConnectedComponentFunctorImageFilter< TInputImage, TOutputImage, TFunctor, TMaskImage >::InputImagePointer |
Types from the Superclass
Definition at line 67 of file itkConnectedComponentFunctorImageFilter.h.
typedef TInputImage itk::ConnectedComponentFunctorImageFilter< TInputImage, TOutputImage, TFunctor, TMaskImage >::InputImageType |
Definition at line 88 of file itkConnectedComponentFunctorImageFilter.h.
typedef TInputImage::InternalPixelType itk::ConnectedComponentFunctorImageFilter< TInputImage, TOutputImage, TFunctor, TMaskImage >::InputInternalPixelType |
Extract some information from the image types. Dimensionality of the two images is assumed to be the same.
Definition at line 76 of file itkConnectedComponentFunctorImageFilter.h.
typedef TInputImage::PixelType itk::ConnectedComponentFunctorImageFilter< TInputImage, TOutputImage, TFunctor, TMaskImage >::InputPixelType |
Extract some information from the image types. Dimensionality of the two images is assumed to be the same.
Definition at line 75 of file itkConnectedComponentFunctorImageFilter.h.
typedef std::list< IndexType > itk::ConnectedComponentFunctorImageFilter< TInputImage, TOutputImage, TFunctor, TMaskImage >::ListType |
Definition at line 95 of file itkConnectedComponentFunctorImageFilter.h.
typedef MaskImageType::Pointer itk::ConnectedComponentFunctorImageFilter< TInputImage, TOutputImage, TFunctor, TMaskImage >::MaskImagePointer |
Definition at line 97 of file itkConnectedComponentFunctorImageFilter.h.
typedef TMaskImage itk::ConnectedComponentFunctorImageFilter< TInputImage, TOutputImage, TFunctor, TMaskImage >::MaskImageType |
Definition at line 89 of file itkConnectedComponentFunctorImageFilter.h.
typedef TMaskImage::PixelType itk::ConnectedComponentFunctorImageFilter< TInputImage, TOutputImage, TFunctor, TMaskImage >::MaskPixelType |
Extract some information from the image types. Dimensionality of the two images is assumed to be the same.
Definition at line 77 of file itkConnectedComponentFunctorImageFilter.h.
typedef TOutputImage itk::ConnectedComponentFunctorImageFilter< TInputImage, TOutputImage, TFunctor, TMaskImage >::OutputImageType |
Definition at line 90 of file itkConnectedComponentFunctorImageFilter.h.
typedef TOutputImage::InternalPixelType itk::ConnectedComponentFunctorImageFilter< TInputImage, TOutputImage, TFunctor, TMaskImage >::OutputInternalPixelType |
Extract some information from the image types. Dimensionality of the two images is assumed to be the same.
Definition at line 74 of file itkConnectedComponentFunctorImageFilter.h.
typedef TOutputImage::PixelType itk::ConnectedComponentFunctorImageFilter< TInputImage, TOutputImage, TFunctor, TMaskImage >::OutputPixelType |
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.
typedef SmartPointer< Self > itk::ConnectedComponentFunctorImageFilter< TInputImage, TOutputImage, TFunctor, TMaskImage >::Pointer |
Smart pointer typedef support
Definition at line 102 of file itkConnectedComponentFunctorImageFilter.h.
typedef TOutputImage::RegionType itk::ConnectedComponentFunctorImageFilter< TInputImage, TOutputImage, TFunctor, TMaskImage >::RegionType |
Definition at line 94 of file itkConnectedComponentFunctorImageFilter.h.
typedef ConnectedComponentFunctorImageFilter itk::ConnectedComponentFunctorImageFilter< TInputImage, TOutputImage, TFunctor, TMaskImage >::Self |
Standard "Self" & Superclass typedef.
Definition at line 61 of file itkConnectedComponentFunctorImageFilter.h.
typedef TInputImage::SizeType itk::ConnectedComponentFunctorImageFilter< TInputImage, TOutputImage, TFunctor, TMaskImage >::SizeType |
Definition at line 93 of file itkConnectedComponentFunctorImageFilter.h.
typedef ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage > itk::ConnectedComponentFunctorImageFilter< TInputImage, TOutputImage, TFunctor, TMaskImage >::Superclass |
Definition at line 62 of file itkConnectedComponentFunctorImageFilter.h.
|
inlineprotected |
Definition at line 158 of file itkConnectedComponentFunctorImageFilter.h.
|
inlineoverrideprotectedvirtual |
Definition at line 159 of file itkConnectedComponentFunctorImageFilter.h.
|
inlineprotected |
Definition at line 160 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 119 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 120 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 129 of file itkConnectedComponentFunctorImageFilter.h.
|
static |
Extract some information from the image types. Dimensionality of the two images is assumed to be the same.
Definition at line 79 of file itkConnectedComponentFunctorImageFilter.h.
|
static |
Extract some information from the image types. Dimensionality of the two images is assumed to be the same.
Definition at line 81 of file itkConnectedComponentFunctorImageFilter.h.
|
protected |
Definition at line 162 of file itkConnectedComponentFunctorImageFilter.h.