ITK  4.6.0
Insight Segmentation and Registration Toolkit
Classes | Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Private Types | Private Member Functions | Private Attributes | List of all members
itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage > Class Template Reference

#include <itkConnectedComponentImageFilter.h>

+ Inheritance diagram for itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >:
+ Collaboration diagram for itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >:

Detailed Description

template<typename TInputImage, typename TOutputImage, typename TMaskImage = TInputImage>
class itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >

Label the objects in a binary image.

ConnectedComponentImageFilter labels the objects in a binary image (non-zero pixels are considered to be objects, zero-valued pixels are considered to be background). Each distinct object is assigned a unique label. The filter experiments with some improvements to the existing implementation, and is based on run length encoding along raster lines. The final object labels start with 1 and are consecutive. Objects that are reached earlier by a raster order scan have a lower label. This is different to the behaviour of the original connected component image filter which did not produce consecutive labels or impose any particular ordering.

See Also
ImageToImageFilter
Wiki Examples:

Definition at line 57 of file itkConnectedComponentImageFilter.h.

Classes

class  runLength
 

Public Types

typedef SmartPointer< const SelfConstPointer
 
typedef TInputImage::IndexType IndexType
 
typedef
Superclass::InputImagePointer 
InputImagePointer
 
typedef TInputImage InputImageType
 
typedef IdentifierType LabelType
 
typedef std::list< IndexTypeListType
 
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< SelfPointer
 
typedef TOutputImage::RegionType RegionType
 
typedef
ConnectedComponentImageFilter 
Self
 
typedef TInputImage::SizeType SizeType
 
typedef ImageToImageFilter
< TInputImage, TOutputImage > 
Superclass
 
- Public Types inherited from itk::ImageToImageFilter< TInputImage, TOutputImage >
typedef SmartPointer< const SelfConstPointer
 
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< SelfPointer
 
typedef ImageToImageFilter Self
 
typedef ImageSource< TOutputImage > Superclass
 
- Public Types inherited from itk::ImageSource< TOutputImage >
typedef SmartPointer< const SelfConstPointer
 
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< SelfPointer
 
typedef ImageSource Self
 
typedef ProcessObject Superclass
 
- Public Types inherited from itk::ProcessObject
typedef SmartPointer< const SelfConstPointer
 
typedef
DataObject::DataObjectIdentifierType 
DataObjectIdentifierType
 
typedef DataObject::Pointer DataObjectPointer
 
typedef std::vector
< DataObjectPointer
DataObjectPointerArray
 
typedef
DataObjectPointerArray::size_type 
DataObjectPointerArraySizeType
 
typedef std::vector
< DataObjectIdentifierType
NameArray
 
typedef SmartPointer< SelfPointer
 
typedef ProcessObject Self
 
typedef Object Superclass
 
- Public Types inherited from itk::Object
typedef SmartPointer< const SelfConstPointer
 
typedef SmartPointer< SelfPointer
 
typedef Object Self
 
typedef LightObject Superclass
 
- Public Types inherited from itk::LightObject
typedef SmartPointer< const SelfConstPointer
 
typedef SmartPointer< SelfPointer
 
typedef LightObject Self
 

Public Member Functions

virtual ::itk::LightObject::Pointer CreateAnother (void) const
 
const TMaskImage * GetMaskImage () const
 
virtual const char * GetNameOfClass () const
 
virtual const LabelTypeGetObjectCount () const
 
void SetMaskImage (TMaskImage *mask)
 
 typedef (Concept::SameDimension< itkGetStaticConstMacro(InputImageDimension), itkGetStaticConstMacro(OutputImageDimension) >) SameDimension
 
 typedef (Concept::IsInteger< OutputImagePixelType >) OutputImagePixelTypeIsInteger
 
virtual void SetFullyConnected (bool _arg)
 
virtual const bool & GetFullyConnected () const
 
virtual void FullyConnectedOn ()
 
virtual void FullyConnectedOff ()
 
virtual void SetBackgroundValue (OutputImagePixelType _arg)
 
virtual OutputImagePixelType GetBackgroundValue () const
 
- Public Member Functions inherited from itk::ImageToImageFilter< TInputImage, TOutputImage >
const InputImageTypeGetInput (void) const
 
const InputImageTypeGetInput (unsigned int idx) const
 
virtual void PopBackInput ()
 
virtual void PopFrontInput ()
 
virtual void PushBackInput (const InputImageType *image)
 
virtual void PushFrontInput (const InputImageType *image)
 
virtual void SetInput (const InputImageType *image)
 
virtual void SetInput (unsigned int, const TInputImage *image)
 
virtual void SetCoordinateTolerance (double _arg)
 
virtual double GetCoordinateTolerance () const
 
virtual void SetDirectionTolerance (double _arg)
 
virtual double GetDirectionTolerance () const
 
- Public Member Functions inherited from itk::ImageSource< TOutputImage >
OutputImageTypeGetOutput (unsigned int idx)
 
virtual void GraftNthOutput (unsigned int idx, DataObject *output)
 
virtual void GraftOutput (DataObject *output)
 
virtual void GraftOutput (const DataObjectIdentifierType &key, DataObject *output)
 
OutputImageTypeGetOutput (void)
 
const OutputImageTypeGetOutput (void) const
 
virtual
ProcessObject::DataObjectPointer 
MakeOutput (ProcessObject::DataObjectPointerArraySizeType idx) ITK_OVERRIDE
 
- Public Member Functions inherited from itk::ProcessObject
virtual void AbortGenerateDataOff ()
 
virtual void AbortGenerateDataOn ()
 
virtual const bool & GetAbortGenerateData () const
 
NameArray GetInputNames () const
 
MultiThreader * GetMultiThreader () const
 
DataObjectPointerArraySizeType GetNumberOfIndexedInputs () const
 
DataObjectPointerArraySizeType GetNumberOfInputs () const
 
DataObjectPointerArraySizeType GetNumberOfOutputs () const
 
virtual
DataObjectPointerArraySizeType 
GetNumberOfValidRequiredInputs () const
 
NameArray GetOutputNames () const
 
virtual const float & GetProgress () const
 
NameArray GetRequiredInputNames () const
 
bool HasInput (const DataObjectIdentifierType &key) const
 
bool HasOutput (const DataObjectIdentifierType &key) const
 
virtual DataObjectPointer MakeOutput (const DataObjectIdentifierType &)
 
virtual void PrepareOutputs ()
 
virtual void PropagateRequestedRegion (DataObject *output)
 
virtual void ResetPipeline ()
 
virtual void SetAbortGenerateData (bool _arg)
 
virtual void Update ()
 
virtual void UpdateLargestPossibleRegion ()
 
virtual void UpdateOutputData (DataObject *output)
 
virtual void UpdateOutputInformation ()
 
void UpdateProgress (float progress)
 
DataObjectPointerArray GetInputs ()
 
DataObjectPointerArray GetOutputs ()
 
DataObjectPointerArray GetIndexedInputs ()
 
DataObjectPointerArray GetIndexedOutputs ()
 
DataObjectPointerArraySizeType GetNumberOfIndexedOutputs () const
 
void SetProgress (float progress)
 
virtual void SetReleaseDataFlag (bool flag)
 
virtual bool GetReleaseDataFlag () const
 
void ReleaseDataFlagOn ()
 
void ReleaseDataFlagOff ()
 
virtual void SetReleaseDataBeforeUpdateFlag (bool _arg)
 
virtual const bool & GetReleaseDataBeforeUpdateFlag () const
 
virtual void ReleaseDataBeforeUpdateFlagOn ()
 
virtual void ReleaseDataBeforeUpdateFlagOff ()
 
virtual void SetNumberOfThreads (ThreadIdType _arg)
 
virtual const ThreadIdTypeGetNumberOfThreads () const
 
- Public Member Functions inherited from itk::Object
unsigned long AddObserver (const EventObject &event, Command *)
 
unsigned long AddObserver (const EventObject &event, Command *) const
 
virtual void DebugOff () const
 
virtual void DebugOn () const
 
CommandGetCommand (unsigned long tag)
 
bool GetDebug () const
 
MetaDataDictionaryGetMetaDataDictionary (void)
 
const MetaDataDictionaryGetMetaDataDictionary (void) const
 
virtual ModifiedTimeType GetMTime () const
 
virtual const TimeStampGetTimeStamp () const
 
bool HasObserver (const EventObject &event) const
 
void InvokeEvent (const EventObject &)
 
void InvokeEvent (const EventObject &) const
 
virtual void Modified () const
 
virtual void Register () const ITK_OVERRIDE
 
void RemoveAllObservers ()
 
void RemoveObserver (unsigned long tag)
 
void SetDebug (bool debugFlag) const
 
void SetMetaDataDictionary (const MetaDataDictionary &rhs)
 
virtual void SetReferenceCount (int) ITK_OVERRIDE
 
virtual void UnRegister () const ITK_OVERRIDE
 
virtual void SetObjectName (std::string _arg)
 
virtual const std::string & GetObjectName () const
 
- Public Member Functions inherited from itk::LightObject
virtual void Delete ()
 
virtual int GetReferenceCount () const
 
 itkCloneMacro (Self)
 
void Print (std::ostream &os, Indent indent=0) const
 

Static Public Member Functions

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 Member Functions

void AfterThreadedGenerateData ()
 
void BeforeThreadedGenerateData ()
 
 ConnectedComponentImageFilter ()
 
void EnlargeOutputRequestedRegion (DataObject *)
 
void GenerateInputRequestedRegion ()
 
void PrintSelf (std::ostream &os, Indent indent) const
 
void ThreadedGenerateData (const RegionType &outputRegionForThread, ThreadIdType threadId)
 
virtual ~ConnectedComponentImageFilter ()
 
- Protected Member Functions inherited from itk::ImageToImageFilter< TInputImage, TOutputImage >
virtual void CallCopyInputRegionToOutputRegion (OutputImageRegionType &destRegion, const InputImageRegionType &srcRegion)
 
virtual void CallCopyOutputRegionToInputRegion (InputImageRegionType &destRegion, const OutputImageRegionType &srcRegion)
 
 ImageToImageFilter ()
 
virtual void VerifyInputInformation ()
 
 ~ImageToImageFilter ()
 
void PushBackInput (const DataObject *input)
 
void PushFrontInput (const DataObject *input)
 
- Protected Member Functions inherited from itk::ImageSource< TOutputImage >
virtual void AllocateOutputs ()
 
virtual void GenerateData () ITK_OVERRIDE
 
virtual const
ImageRegionSplitterBase
GetImageRegionSplitter (void) const
 
 ImageSource ()
 
virtual unsigned int SplitRequestedRegion (unsigned int i, unsigned int pieces, OutputImageRegionType &splitRegion)
 
virtual void ThreadedGenerateData (const OutputImageRegionType &outputRegionForThread, ThreadIdType threadId)
 
virtual ~ImageSource ()
 
- Protected Member Functions inherited from itk::ProcessObject
virtual void AddInput (DataObject *input)
 
virtual void AddOutput (DataObject *output)
 
virtual void CacheInputReleaseDataFlags ()
 
virtual void GenerateOutputInformation ()
 
virtual void GenerateOutputRequestedRegion (DataObject *output)
 
virtual const
DataObjectPointerArraySizeType
GetNumberOfRequiredOutputs () const
 
bool IsIndexedInputName (const DataObjectIdentifierType &) const
 
bool IsIndexedOutputName (const DataObjectIdentifierType &) const
 
 itkLegacyMacro (virtual void RemoveOutput(DataObject *output))
 
 itkLegacyMacro (void SetNumberOfOutputs(DataObjectPointerArraySizeType num))
 
 itkLegacyMacro (virtual void RemoveInput(DataObject *input))
 
 itkLegacyMacro (void SetNumberOfInputs(DataObjectPointerArraySizeType num))
 
DataObjectPointerArraySizeType MakeIndexFromInputName (const DataObjectIdentifierType &name) const
 
DataObjectPointerArraySizeType MakeIndexFromOutputName (const DataObjectIdentifierType &name) const
 
DataObjectIdentifierType MakeNameFromInputIndex (DataObjectPointerArraySizeType idx) const
 
DataObjectIdentifierType MakeNameFromOutputIndex (DataObjectPointerArraySizeType idx) const
 
 ProcessObject ()
 
virtual void PropagateResetPipeline ()
 
virtual void ReleaseInputs ()
 
virtual void RemoveInput (const DataObjectIdentifierType &key)
 
virtual void RemoveInput (DataObjectPointerArraySizeType)
 
virtual void RemoveOutput (const DataObjectIdentifierType &key)
 
virtual void RemoveOutput (DataObjectPointerArraySizeType idx)
 
virtual void RestoreInputReleaseDataFlags ()
 
virtual void SetInput (const DataObjectIdentifierType &key, DataObject *input)
 
virtual void SetNthInput (DataObjectPointerArraySizeType num, DataObject *input)
 
virtual void SetNthOutput (DataObjectPointerArraySizeType num, DataObject *output)
 
void SetNumberOfIndexedInputs (DataObjectPointerArraySizeType num)
 
void SetNumberOfIndexedOutputs (DataObjectPointerArraySizeType num)
 
virtual void SetNumberOfRequiredOutputs (DataObjectPointerArraySizeType _arg)
 
virtual void SetOutput (const DataObjectIdentifierType &key, DataObject *output)
 
virtual void SetPrimaryInput (DataObject *input)
 
virtual void SetPrimaryOutput (DataObject *output)
 
virtual void VerifyPreconditions ()
 
 ~ProcessObject ()
 
DataObjectGetInput (const DataObjectIdentifierType &key)
 
const DataObjectGetInput (const DataObjectIdentifierType &key) const
 
DataObjectGetInput (DataObjectPointerArraySizeType idx)
 
const DataObjectGetInput (DataObjectPointerArraySizeType idx) const
 
DataObjectGetPrimaryInput ()
 
const DataObjectGetPrimaryInput () const
 
virtual void SetPrimaryInputName (const DataObjectIdentifierType &key)
 
virtual const char * GetPrimaryInputName (void) const
 
virtual void SetNumberOfRequiredInputs (DataObjectPointerArraySizeType)
 
virtual const
DataObjectPointerArraySizeType
GetNumberOfRequiredInputs () const
 
bool AddRequiredInputName (const DataObjectIdentifierType &)
 
bool AddRequiredInputName (const DataObjectIdentifierType &, DataObjectPointerArraySizeType idx)
 
bool RemoveRequiredInputName (const DataObjectIdentifierType &)
 
bool IsRequiredInputName (const DataObjectIdentifierType &) const
 
void SetRequiredInputNames (const NameArray &)
 
DataObjectGetOutput (const DataObjectIdentifierType &key)
 
const DataObjectGetOutput (const DataObjectIdentifierType &key) const
 
virtual void SetPrimaryOutputName (const DataObjectIdentifierType &key)
 
virtual const char * GetPrimaryOutputName (void) const
 
DataObjectGetOutput (DataObjectPointerArraySizeType idx)
 
const DataObjectGetOutput (DataObjectPointerArraySizeType idx) const
 
DataObjectGetPrimaryOutput ()
 
const DataObjectGetPrimaryOutput () const
 
- Protected Member Functions inherited from itk::Object
 Object ()
 
bool PrintObservers (std::ostream &os, Indent indent) const
 
virtual void SetTimeStamp (const TimeStamp &time)
 
virtual ~Object ()
 
- Protected Member Functions inherited from itk::LightObject
virtual LightObject::Pointer InternalClone () const
 
 LightObject ()
 
virtual void PrintHeader (std::ostream &os, Indent indent) const
 
virtual void PrintTrailer (std::ostream &os, Indent indent) const
 
virtual ~LightObject ()
 

Protected Attributes

bool m_FullyConnected
 
- Protected Attributes inherited from itk::ProcessObject
TimeStamp m_OutputInformationMTime
 
bool m_Updating
 
- Protected Attributes inherited from itk::LightObject
InternalReferenceCountType m_ReferenceCount
 
SimpleFastMutexLock m_ReferenceCountLock
 

Private Types

typedef std::vector< runLengthlineEncoding
 
typedef std::vector< lineEncodingLineMapType
 
typedef std::vector< typename
TInputImage::OffsetValueType > 
OffsetVec
 
typedef
TOutputImage::RegionType::SizeType 
OutSizeType
 
typedef std::vector< LabelTypeUnionFindType
 

Private Member Functions

bool CheckNeighbors (const OutputIndexType &A, const OutputIndexType &B)
 
void CompareLines (lineEncoding &current, const lineEncoding &Neighbour)
 
 ConnectedComponentImageFilter (const Self &)
 
SizeValueType CreateConsecutive ()
 
void FillOutput (const LineMapType &LineMap, ProgressReporter &progress)
 
void InitUnion (SizeValueType size)
 
void InsertSet (const LabelType label)
 
void LinkLabels (const LabelType lab1, const LabelType lab2)
 
SizeValueType LookupSet (const LabelType label)
 
void operator= (const Self &)
 
void SetupLineOffsets (OffsetVec &LineOffsets)
 
void Wait ()
 

Private Attributes

OutputImagePixelType m_BackgroundValue
 
Barrier::Pointer m_Barrier
 
UnionFindType m_Consecutive
 
std::vector< IdentifierTypem_FirstLineIdToJoin
 
TInputImage::ConstPointer m_Input
 
LineMapType m_LineMap
 
std::vector< IdentifierTypem_NumberOfLabels
 
LabelType m_ObjectCount
 
UnionFindType m_UnionFind
 
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 OutputImageDimension = TOutputImage::ImageDimension
 
static const unsigned int InputImageDimension = TInputImage::ImageDimension
 

Additional Inherited Members

- 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
 
- Protected Types inherited from itk::LightObject
typedef int InternalReferenceCountType
 
- Static Protected Member Functions inherited from itk::ImageSource< TOutputImage >
static const
ImageRegionSplitterBase
GetGlobalDefaultSplitter ()
 
static ITK_THREAD_RETURN_TYPE ThreaderCallback (void *arg)
 

Member Typedef Documentation

template<typename TInputImage , typename TOutputImage , typename TMaskImage = TInputImage>
typedef SmartPointer< const Self > itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::ConstPointer

Definition at line 112 of file itkConnectedComponentImageFilter.h.

template<typename TInputImage , typename TOutputImage , typename TMaskImage = TInputImage>
typedef TInputImage::IndexType itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::IndexType

Definition at line 94 of file itkConnectedComponentImageFilter.h.

template<typename TInputImage , typename TOutputImage , typename TMaskImage = TInputImage>
typedef Superclass::InputImagePointer itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::InputImagePointer

Types from the Superclass

Definition at line 70 of file itkConnectedComponentImageFilter.h.

template<typename TInputImage , typename TOutputImage , typename TMaskImage = TInputImage>
typedef TInputImage itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::InputImageType

Image typedef support

Definition at line 92 of file itkConnectedComponentImageFilter.h.

template<typename TInputImage , typename TOutputImage , typename TMaskImage = TInputImage>
typedef TInputImage::InternalPixelType itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::InputInternalPixelType

Extract some information from the image types. Dimensionality of the two images is assumed to be the same.

Definition at line 79 of file itkConnectedComponentImageFilter.h.

template<typename TInputImage , typename TOutputImage , typename TMaskImage = TInputImage>
typedef TInputImage::PixelType itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::InputPixelType

Extract some information from the image types. Dimensionality of the two images is assumed to be the same.

Definition at line 78 of file itkConnectedComponentImageFilter.h.

template<typename TInputImage , typename TOutputImage , typename TMaskImage = TInputImage>
typedef IdentifierType itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::LabelType

Type used as identifier of the different component labels.

Definition at line 132 of file itkConnectedComponentImageFilter.h.

template<typename TInputImage , typename TOutputImage , typename TMaskImage = TInputImage>
typedef std::vector< runLength > itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::lineEncoding
private

Definition at line 219 of file itkConnectedComponentImageFilter.h.

template<typename TInputImage , typename TOutputImage , typename TMaskImage = TInputImage>
typedef std::vector< lineEncoding > itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::LineMapType
private

Definition at line 222 of file itkConnectedComponentImageFilter.h.

template<typename TInputImage , typename TOutputImage , typename TMaskImage = TInputImage>
typedef std::list< IndexType > itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::ListType

Definition at line 105 of file itkConnectedComponentImageFilter.h.

template<typename TInputImage , typename TOutputImage , typename TMaskImage = TInputImage>
typedef MaskImageType::Pointer itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::MaskImagePointer

Definition at line 106 of file itkConnectedComponentImageFilter.h.

template<typename TInputImage , typename TOutputImage , typename TMaskImage = TInputImage>
typedef TMaskImage itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::MaskImageType

Definition at line 93 of file itkConnectedComponentImageFilter.h.

template<typename TInputImage , typename TOutputImage , typename TMaskImage = TInputImage>
typedef TMaskImage::PixelType itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::MaskPixelType

Extract some information from the image types. Dimensionality of the two images is assumed to be the same.

Definition at line 80 of file itkConnectedComponentImageFilter.h.

template<typename TInputImage , typename TOutputImage , typename TMaskImage = TInputImage>
typedef TInputImage::OffsetType itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::OffsetType

Definition at line 96 of file itkConnectedComponentImageFilter.h.

template<typename TInputImage , typename TOutputImage , typename TMaskImage = TInputImage>
typedef std::vector< typename TInputImage::OffsetValueType > itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::OffsetVec
private

Definition at line 224 of file itkConnectedComponentImageFilter.h.

template<typename TInputImage , typename TOutputImage , typename TMaskImage = TInputImage>
typedef TOutputImage::PixelType itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::OutputImagePixelType

Definition at line 103 of file itkConnectedComponentImageFilter.h.

template<typename TInputImage , typename TOutputImage , typename TMaskImage = TInputImage>
typedef TOutputImage itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::OutputImageType

Definition at line 98 of file itkConnectedComponentImageFilter.h.

template<typename TInputImage , typename TOutputImage , typename TMaskImage = TInputImage>
typedef TOutputImage::IndexType itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::OutputIndexType

Definition at line 100 of file itkConnectedComponentImageFilter.h.

template<typename TInputImage , typename TOutputImage , typename TMaskImage = TInputImage>
typedef TOutputImage::InternalPixelType itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::OutputInternalPixelType

Extract some information from the image types. Dimensionality of the two images is assumed to be the same.

Definition at line 77 of file itkConnectedComponentImageFilter.h.

template<typename TInputImage , typename TOutputImage , typename TMaskImage = TInputImage>
typedef TOutputImage::OffsetType itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::OutputOffsetType

Definition at line 102 of file itkConnectedComponentImageFilter.h.

template<typename TInputImage , typename TOutputImage , typename TMaskImage = TInputImage>
typedef TOutputImage::PixelType itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::OutputPixelType

Extract some information from the image types. Dimensionality of the two images is assumed to be the same.

Definition at line 76 of file itkConnectedComponentImageFilter.h.

template<typename TInputImage , typename TOutputImage , typename TMaskImage = TInputImage>
typedef TOutputImage::SizeType itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::OutputSizeType

Definition at line 101 of file itkConnectedComponentImageFilter.h.

template<typename TInputImage , typename TOutputImage , typename TMaskImage = TInputImage>
typedef TOutputImage::RegionType::SizeType itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::OutSizeType
private

Definition at line 207 of file itkConnectedComponentImageFilter.h.

template<typename TInputImage , typename TOutputImage , typename TMaskImage = TInputImage>
typedef SmartPointer< Self > itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::Pointer

Smart pointer typedef support

Definition at line 111 of file itkConnectedComponentImageFilter.h.

template<typename TInputImage , typename TOutputImage , typename TMaskImage = TInputImage>
typedef TOutputImage::RegionType itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::RegionType

Definition at line 99 of file itkConnectedComponentImageFilter.h.

template<typename TInputImage , typename TOutputImage , typename TMaskImage = TInputImage>
typedef ConnectedComponentImageFilter itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::Self

Standard "Self" & Superclass typedef.

Definition at line 64 of file itkConnectedComponentImageFilter.h.

template<typename TInputImage , typename TOutputImage , typename TMaskImage = TInputImage>
typedef TInputImage::SizeType itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::SizeType

Definition at line 95 of file itkConnectedComponentImageFilter.h.

template<typename TInputImage , typename TOutputImage , typename TMaskImage = TInputImage>
typedef ImageToImageFilter< TInputImage, TOutputImage > itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::Superclass

Definition at line 65 of file itkConnectedComponentImageFilter.h.

template<typename TInputImage , typename TOutputImage , typename TMaskImage = TInputImage>
typedef std::vector< LabelType > itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::UnionFindType
private

Definition at line 227 of file itkConnectedComponentImageFilter.h.

Constructor & Destructor Documentation

template<typename TInputImage , typename TOutputImage , typename TMaskImage = TInputImage>
itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::ConnectedComponentImageFilter ( )
inlineprotected
template<typename TInputImage , typename TOutputImage , typename TMaskImage = TInputImage>
virtual itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::~ConnectedComponentImageFilter ( )
inlineprotectedvirtual

Definition at line 174 of file itkConnectedComponentImageFilter.h.

template<typename TInputImage , typename TOutputImage , typename TMaskImage = TInputImage>
itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::ConnectedComponentImageFilter ( const Self )
private

Member Function Documentation

template<typename TInputImage , typename TOutputImage , typename TMaskImage = TInputImage>
void itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::AfterThreadedGenerateData ( void  )
protectedvirtual

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 >.

template<typename TInputImage , typename TOutputImage , typename TMaskImage = TInputImage>
void itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::BeforeThreadedGenerateData ( )
protectedvirtual

Standard pipeline methods.

Reimplemented from itk::ImageSource< TOutputImage >.

template<typename TInputImage , typename TOutputImage , typename TMaskImage = TInputImage>
bool itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::CheckNeighbors ( const OutputIndexType A,
const OutputIndexType B 
)
private
template<typename TInputImage , typename TOutputImage , typename TMaskImage = TInputImage>
void itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::CompareLines ( lineEncoding current,
const lineEncoding Neighbour 
)
private
template<typename TInputImage , typename TOutputImage , typename TMaskImage = TInputImage>
virtual::itk::LightObject::Pointer itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::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.

Reimplemented in itk::ScalarConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >, itk::VectorConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >, itk::ConnectedComponentFunctorImageFilter< TInputImage, TOutputImage, Functor::SimilarPixelsFunctor< TInputImage::ValueType >, TMaskImage >, and itk::ConnectedComponentFunctorImageFilter< TInputImage, TOutputImage, Functor::SimilarVectorsFunctor< TInputImage::ValueType >, TMaskImage >.

template<typename TInputImage , typename TOutputImage , typename TMaskImage = TInputImage>
SizeValueType itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::CreateConsecutive ( )
private
template<typename TInputImage , typename TOutputImage , typename TMaskImage = TInputImage>
void itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::EnlargeOutputRequestedRegion ( DataObject )
protectedvirtual

ConnectedComponentImageFilter will produce all of the output. Therefore it must provide an implementation of EnlargeOutputRequestedRegion().

See Also
ProcessObject::EnlargeOutputRequestedRegion()

Reimplemented from itk::ProcessObject.

template<typename TInputImage , typename TOutputImage , typename TMaskImage = TInputImage>
void itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::FillOutput ( const LineMapType LineMap,
ProgressReporter progress 
)
private
template<typename TInputImage , typename TOutputImage , typename TMaskImage = TInputImage>
virtual void itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::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.

template<typename TInputImage , typename TOutputImage , typename TMaskImage = TInputImage>
virtual void itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::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.

template<typename TInputImage , typename TOutputImage , typename TMaskImage = TInputImage>
void itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::GenerateInputRequestedRegion ( )
protectedvirtual
template<typename TInputImage , typename TOutputImage , typename TMaskImage = TInputImage>
virtual OutputImagePixelType itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::GetBackgroundValue ( ) const
virtual

Set the pixel intensity to be used for background (non-object) regions of the image in the output. Note that this does NOT set the background value to be used in the input image.

template<typename TInputImage , typename TOutputImage , typename TMaskImage = TInputImage>
virtual const bool& itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::GetFullyConnected ( ) const
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.

template<typename TInputImage , typename TOutputImage , typename TMaskImage = TInputImage>
const TMaskImage* itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::GetMaskImage ( ) const
inline
template<typename TInputImage , typename TOutputImage , typename TMaskImage = TInputImage>
virtual const char* itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::GetNameOfClass ( ) const
virtual
template<typename TInputImage , typename TOutputImage , typename TMaskImage = TInputImage>
virtual const LabelType& itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::GetObjectCount ( ) const
virtual
template<typename TInputImage , typename TOutputImage , typename TMaskImage = TInputImage>
void itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::InitUnion ( SizeValueType  size)
inlineprivate
template<typename TInputImage , typename TOutputImage , typename TMaskImage = TInputImage>
void itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::InsertSet ( const LabelType  label)
private
template<typename TInputImage , typename TOutputImage , typename TMaskImage = TInputImage>
void itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::LinkLabels ( const LabelType  lab1,
const LabelType  lab2 
)
private
template<typename TInputImage , typename TOutputImage , typename TMaskImage = TInputImage>
SizeValueType itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::LookupSet ( const LabelType  label)
private
template<typename TInputImage , typename TOutputImage , typename TMaskImage = TInputImage>
static Pointer itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::New ( )
static

Method for creation through the object factory.

template<typename TInputImage , typename TOutputImage , typename TMaskImage = TInputImage>
void itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::operator= ( const Self )
private
template<typename TInputImage , typename TOutputImage , typename TMaskImage = TInputImage>
void itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::PrintSelf ( std::ostream &  os,
Indent  indent 
) const
protectedvirtual

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 >.

template<typename TInputImage , typename TOutputImage , typename TMaskImage = TInputImage>
virtual void itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::SetBackgroundValue ( OutputImagePixelType  _arg)
virtual

Set the pixel intensity to be used for background (non-object) regions of the image in the output. Note that this does NOT set the background value to be used in the input image.

template<typename TInputImage , typename TOutputImage , typename TMaskImage = TInputImage>
virtual void itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::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.

template<typename TInputImage , typename TOutputImage , typename TMaskImage = TInputImage>
void itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::SetMaskImage ( TMaskImage *  mask)
inline
template<typename TInputImage , typename TOutputImage , typename TMaskImage = TInputImage>
void itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::SetupLineOffsets ( OffsetVec LineOffsets)
private
template<typename TInputImage , typename TOutputImage , typename TMaskImage = TInputImage>
void itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::ThreadedGenerateData ( const RegionType outputRegionForThread,
ThreadIdType  threadId 
)
protected
template<typename TInputImage , typename TOutputImage , typename TMaskImage = TInputImage>
itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::typedef ( Concept::SameDimension< itkGetStaticConstMacro(InputImageDimension), itkGetStaticConstMacro(OutputImageDimension) >  )

This class requires SameDimension in the form of ( Concept::SameDimension< itkGetStaticConstMacro(InputImageDimension), itkGetStaticConstMacro(OutputImageDimension) > )

template<typename TInputImage , typename TOutputImage , typename TMaskImage = TInputImage>
itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::typedef ( Concept::IsInteger< OutputImagePixelType )

This class requires OutputImagePixelTypeIsInteger in the form of ( Concept::IsInteger< OutputImagePixelType > )

template<typename TInputImage , typename TOutputImage , typename TMaskImage = TInputImage>
void itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::Wait ( )
inlineprivate

Member Data Documentation

template<typename TInputImage , typename TOutputImage , typename TMaskImage = TInputImage>
const unsigned int itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::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 82 of file itkConnectedComponentImageFilter.h.

template<typename TInputImage , typename TOutputImage , typename TMaskImage = TInputImage>
const unsigned int itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::InputImageDimension = TInputImage::ImageDimension
static

Extract some information from the image types. Dimensionality of the two images is assumed to be the same.

Definition at line 86 of file itkConnectedComponentImageFilter.h.

template<typename TInputImage , typename TOutputImage , typename TMaskImage = TInputImage>
OutputImagePixelType itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::m_BackgroundValue
private
template<typename TInputImage , typename TOutputImage , typename TMaskImage = TInputImage>
Barrier::Pointer itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::m_Barrier
private
template<typename TInputImage , typename TOutputImage , typename TMaskImage = TInputImage>
UnionFindType itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::m_Consecutive
private

Definition at line 229 of file itkConnectedComponentImageFilter.h.

template<typename TInputImage , typename TOutputImage , typename TMaskImage = TInputImage>
std::vector< IdentifierType > itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::m_FirstLineIdToJoin
private

Definition at line 266 of file itkConnectedComponentImageFilter.h.

template<typename TInputImage , typename TOutputImage , typename TMaskImage = TInputImage>
bool itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::m_FullyConnected
protected
template<typename TInputImage , typename TOutputImage , typename TMaskImage = TInputImage>
TInputImage::ConstPointer itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::m_Input
private

Definition at line 270 of file itkConnectedComponentImageFilter.h.

template<typename TInputImage , typename TOutputImage , typename TMaskImage = TInputImage>
LineMapType itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::m_LineMap
private

Definition at line 272 of file itkConnectedComponentImageFilter.h.

template<typename TInputImage , typename TOutputImage , typename TMaskImage = TInputImage>
std::vector< IdentifierType > itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::m_NumberOfLabels
private
template<typename TInputImage , typename TOutputImage , typename TMaskImage = TInputImage>
LabelType itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::m_ObjectCount
private
template<typename TInputImage , typename TOutputImage , typename TMaskImage = TInputImage>
UnionFindType itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::m_UnionFind
private
template<typename TInputImage , typename TOutputImage , typename TMaskImage = TInputImage>
const unsigned int itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::OutputImageDimension = TOutputImage::ImageDimension
static

Extract some information from the image types. Dimensionality of the two images is assumed to be the same.

Definition at line 84 of file itkConnectedComponentImageFilter.h.


The documentation for this class was generated from the following file: