ITK  4.2.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
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 >:

List of all members.

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
InputImageType::ConstPointer 
InputImageConstPointer
typedef InputImageType::PixelType InputImagePixelType
typedef InputImageType::RegionType InputImageRegionType
typedef
Superclass::OutputImageRegionType 
OutputImageRegionType
- Public Types inherited from itk::ImageSource< TOutputImage >
typedef
Superclass::DataObjectIdentifierType 
DataObjectIdentifierType
typedef DataObject::Pointer DataObjectPointer
typedef
Superclass::DataObjectPointerArraySizeType 
DataObjectPointerArraySizeType
typedef OutputImageType::Pointer OutputImagePointer
- Public Types inherited from itk::ProcessObject
typedef std::vector
< DataObjectPointer
DataObjectPointerArray
typedef std::vector
< DataObjectIdentifierType
NameArray
- Public Types inherited from itk::Object
- Public Types inherited from itk::LightObject

Public Member Functions

virtual ::itk::LightObject::Pointer CreateAnother (void) const
const TMaskImage * GetMaskImage () const
virtual const char * GetNameOfClass () const
virtual const LabelTypeGetObjectCount ()
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 ()
virtual void FullyConnectedOn ()
virtual void FullyConnectedOff ()
- 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)
- 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)
- Public Member Functions inherited from itk::ProcessObject
virtual void AbortGenerateDataOff ()
virtual void AbortGenerateDataOn ()
virtual const bool & GetAbortGenerateData ()
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 ()
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 SetProgress (float _arg)
virtual void Update ()
virtual void UpdateLargestPossibleRegion ()
virtual void UpdateOutputData (DataObject *output)
virtual void UpdateOutputInformation ()
void UpdateProgress (float amount)
DataObjectPointerArray GetInputs ()
DataObjectPointerArray GetOutputs ()
DataObjectPointerArray GetIndexedInputs ()
DataObjectPointerArray GetIndexedOutputs ()
DataObjectPointerArraySizeType GetNumberOfIndexedOutputs () const
virtual void SetReleaseDataFlag (bool flag)
virtual bool GetReleaseDataFlag () const
void ReleaseDataFlagOn ()
void ReleaseDataFlagOff ()
virtual void SetReleaseDataBeforeUpdateFlag (bool _arg)
virtual const bool & GetReleaseDataBeforeUpdateFlag ()
virtual void ReleaseDataBeforeUpdateFlagOn ()
virtual void ReleaseDataBeforeUpdateFlagOff ()
virtual void SetNumberOfThreads (ThreadIdType _arg)
virtual const ThreadIdTypeGetNumberOfThreads ()
- 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 unsigned long 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
void RemoveAllObservers ()
void RemoveObserver (unsigned long tag)
void SetDebug (bool debugFlag) const
void SetMetaDataDictionary (const MetaDataDictionary &rhs)
virtual void SetReferenceCount (int)
virtual void UnRegister () 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 Attributes inherited from itk::ImageToImageFilter< TInputImage, TOutputImage >
- Static Public Attributes inherited from itk::ImageSource< TOutputImage >

Protected Member Functions

void AfterThreadedGenerateData ()
void BeforeThreadedGenerateData ()
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 ()
 ImageSource ()
virtual unsigned int SplitRequestedRegion (unsigned int i, unsigned int num, 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)
bool AddRequiredInputName (const DataObjectIdentifierType &)
virtual void CacheInputReleaseDataFlags ()
virtual void GenerateOutputInformation ()
virtual void GenerateOutputRequestedRegion (DataObject *output)
virtual const
DataObjectPointerArraySizeType
GetNumberOfRequiredInputs ()
virtual const
DataObjectPointerArraySizeType
GetNumberOfRequiredOutputs ()
bool IsIndexedName (const DataObjectIdentifierType &) const
bool IsRequiredInputName (const DataObjectIdentifierType &) const
 itkLegacyMacro (virtual void RemoveInput(DataObject *input))
 itkLegacyMacro (virtual void RemoveOutput(DataObject *output))
 itkLegacyMacro (void SetNumberOfInputs(DataObjectPointerArraySizeType num))
 itkLegacyMacro (void SetNumberOfOutputs(DataObjectPointerArraySizeType num))
DataObjectPointerArraySizeType MakeIndexFromName (const DataObjectIdentifierType &) const
DataObjectIdentifierType MakeNameFromIndex (DataObjectPointerArraySizeType) 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)
bool RemoveRequiredInputName (const DataObjectIdentifierType &)
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 SetNumberOfRequiredInputs (DataObjectPointerArraySizeType)
virtual void SetNumberOfRequiredOutputs (DataObjectPointerArraySizeType _arg)
virtual void SetOutput (const DataObjectIdentifierType &key, DataObject *output)
virtual void SetPrimaryInput (DataObject *input)
virtual void SetPrimaryOutput (DataObject *output)
void SetRequiredInputNames (const NameArray &)
virtual void VerifyPreconditions ()
 ~ProcessObject ()
DataObjectGetInput (const DataObjectIdentifierType &key)
const DataObjectGetInput (const DataObjectIdentifierType &key) const
DataObjectGetInput (DataObjectPointerArraySizeType)
const DataObjectGetInput (DataObjectPointerArraySizeType idx) const
DataObjectGetPrimaryInput ()
const DataObjectGetPrimaryInput () const
DataObjectGetOutput (const DataObjectIdentifierType &key)
const DataObjectGetOutput (const DataObjectIdentifierType &key) 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

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
virtual void SetBackgroundValue (OutputImagePixelType _arg)
virtual OutputImagePixelType GetBackgroundValue () const
 ConnectedComponentImageFilter ()

Additional Inherited Members

- Protected Types inherited from itk::ImageToImageFilter< TInputImage, TOutputImage >
typedef
ImageToImageFilterDetail::ImageRegionCopier
< itkGetStaticConstMacro(OutputImageDimension),
itkGetStaticConstMacro(InputImageDimension) > 
InputToOutputRegionCopierType
typedef
ImageToImageFilterDetail::ImageRegionCopier
< itkGetStaticConstMacro(InputImageDimension),
itkGetStaticConstMacro(OutputImageDimension) > 
OutputToInputRegionCopierType

Detailed Description

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

Label the objects in a binary image.

ConnectedComponentImageFilter labels the objects in a binary image. 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 55 of file itkConnectedComponentImageFilter.h.


Member Typedef Documentation

template<class TInputImage , class TOutputImage , class TMaskImage = TInputImage>
typedef SmartPointer< const Self > itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::ConstPointer
template<class TInputImage , class TOutputImage , class TMaskImage = TInputImage>
typedef TInputImage::IndexType itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::IndexType
template<class TInputImage , class TOutputImage , class TMaskImage = TInputImage>
typedef Superclass::InputImagePointer itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::InputImagePointer
template<class TInputImage , class TOutputImage , class TMaskImage = TInputImage>
typedef TInputImage itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::InputImageType
template<class TInputImage , class TOutputImage , class TMaskImage = TInputImage>
typedef TInputImage::InternalPixelType itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::InputInternalPixelType
template<class TInputImage , class TOutputImage , class TMaskImage = TInputImage>
typedef TInputImage::PixelType itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::InputPixelType
template<class TInputImage , class TOutputImage , class TMaskImage = TInputImage>
typedef IdentifierType itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::LabelType

Type used as identifier of the different component labels.

Definition at line 130 of file itkConnectedComponentImageFilter.h.

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

Definition at line 212 of file itkConnectedComponentImageFilter.h.

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

Definition at line 215 of file itkConnectedComponentImageFilter.h.

template<class TInputImage , class TOutputImage , class TMaskImage = TInputImage>
typedef std::list< IndexType > itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::ListType
template<class TInputImage , class TOutputImage , class TMaskImage = TInputImage>
typedef MaskImageType::Pointer itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::MaskImagePointer
template<class TInputImage , class TOutputImage , class TMaskImage = TInputImage>
typedef TMaskImage itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::MaskImageType
template<class TInputImage , class TOutputImage , class TMaskImage = TInputImage>
typedef TMaskImage::PixelType itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::MaskPixelType
template<class TInputImage , class TOutputImage , class TMaskImage = TInputImage>
typedef TInputImage::OffsetType itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::OffsetType

Definition at line 94 of file itkConnectedComponentImageFilter.h.

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

Definition at line 217 of file itkConnectedComponentImageFilter.h.

template<class TInputImage , class TOutputImage , class TMaskImage = TInputImage>
typedef TOutputImage::PixelType itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::OutputImagePixelType
template<class TInputImage , class TOutputImage , class TMaskImage = TInputImage>
typedef TOutputImage itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::OutputImageType
template<class TInputImage , class TOutputImage , class TMaskImage = TInputImage>
typedef TOutputImage::IndexType itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::OutputIndexType

Definition at line 98 of file itkConnectedComponentImageFilter.h.

template<class TInputImage , class TOutputImage , class TMaskImage = TInputImage>
typedef TOutputImage::InternalPixelType itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::OutputInternalPixelType
template<class TInputImage , class TOutputImage , class TMaskImage = TInputImage>
typedef TOutputImage::OffsetType itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::OutputOffsetType

Definition at line 100 of file itkConnectedComponentImageFilter.h.

template<class TInputImage , class TOutputImage , class TMaskImage = TInputImage>
typedef TOutputImage::PixelType itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::OutputPixelType
template<class TInputImage , class TOutputImage , class TMaskImage = TInputImage>
typedef TOutputImage::SizeType itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::OutputSizeType

Definition at line 99 of file itkConnectedComponentImageFilter.h.

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

Definition at line 200 of file itkConnectedComponentImageFilter.h.

template<class TInputImage , class TOutputImage , class TMaskImage = TInputImage>
typedef SmartPointer< Self > itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::Pointer
template<class TInputImage , class TOutputImage , class TMaskImage = TInputImage>
typedef TOutputImage::RegionType itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::RegionType
template<class TInputImage , class TOutputImage , class TMaskImage = TInputImage>
typedef ConnectedComponentImageFilter itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::Self
template<class TInputImage , class TOutputImage , class TMaskImage = TInputImage>
typedef TInputImage::SizeType itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::SizeType
template<class TInputImage , class TOutputImage , class TMaskImage = TInputImage>
typedef ImageToImageFilter< TInputImage, TOutputImage > itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::Superclass
template<class TInputImage , class TOutputImage , class TMaskImage = TInputImage>
typedef std::vector< LabelType > itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::UnionFindType
private

Definition at line 220 of file itkConnectedComponentImageFilter.h.


Constructor & Destructor Documentation

template<class TInputImage , class TOutputImage , class TMaskImage = TInputImage>
itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::ConnectedComponentImageFilter ( )
inlineprotected

Definition at line 160 of file itkConnectedComponentImageFilter.h.

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

Definition at line 168 of file itkConnectedComponentImageFilter.h.

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

Member Function Documentation

template<class TInputImage , class TOutputImage , class 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<class TInputImage , class TOutputImage , class TMaskImage = TInputImage>
void itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::BeforeThreadedGenerateData ( )
protectedvirtual

Standard pipeline methods.

Reimplemented from itk::ImageSource< TOutputImage >.

template<class TInputImage , class TOutputImage , class TMaskImage = TInputImage>
bool itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::CheckNeighbors ( const OutputIndexType A,
const OutputIndexType B 
)
private
template<class TInputImage , class TOutputImage , class TMaskImage = TInputImage>
void itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::CompareLines ( lineEncoding current,
const lineEncoding Neighbour 
)
private
template<class TInputImage , class TOutputImage , class TMaskImage = TInputImage>
virtual::itk::LightObject::Pointer itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::CreateAnother ( void  ) const
virtual
template<class TInputImage , class TOutputImage , class TMaskImage = TInputImage>
SizeValueType itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::CreateConsecutive ( )
private
template<class TInputImage , class TOutputImage , class 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<class TInputImage , class TOutputImage , class TMaskImage = TInputImage>
void itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::FillOutput ( const LineMapType LineMap,
ProgressReporter progress 
)
private
template<class TInputImage , class TOutputImage , class 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<class TInputImage , class TOutputImage , class 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<class TInputImage , class TOutputImage , class TMaskImage = TInputImage>
void itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::GenerateInputRequestedRegion ( )
protectedvirtual

ConnectedComponentImageFilter needs the entire input. Therefore it must provide an implementation GenerateInputRequestedRegion().

See also:
ProcessObject::GenerateInputRequestedRegion().

Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.

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

template<class TInputImage , class TOutputImage , class TMaskImage = TInputImage>
const TMaskImage* itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::GetMaskImage ( ) const
inline
template<class TInputImage , class TOutputImage , class TMaskImage = TInputImage>
virtual const char* itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::GetNameOfClass ( ) const
virtual
template<class TInputImage , class TOutputImage , class TMaskImage = TInputImage>
virtual const LabelType& itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::GetObjectCount ( )
virtual
template<class TInputImage , class TOutputImage , class TMaskImage = TInputImage>
void itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::InitUnion ( SizeValueType  size)
inlineprivate

Definition at line 225 of file itkConnectedComponentImageFilter.h.

template<class TInputImage , class TOutputImage , class TMaskImage = TInputImage>
void itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::InsertSet ( const LabelType  label)
private
template<class TInputImage , class TOutputImage , class TMaskImage = TInputImage>
void itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::LinkLabels ( const LabelType  lab1,
const LabelType  lab2 
)
private
template<class TInputImage , class TOutputImage , class TMaskImage = TInputImage>
SizeValueType itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::LookupSet ( const LabelType  label)
private
template<class TInputImage , class TOutputImage , class TMaskImage = TInputImage>
static Pointer itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::New ( )
static
template<class TInputImage , class TOutputImage , class TMaskImage = TInputImage>
void itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::operator= ( const Self )
private

PushBackInput(), PushFronInput() in the public section force the input to be the type expected by an ImageToImageFilter. However, these methods end of "hiding" the versions from the superclass (ProcessObject) whose arguments are DataObjects. Here, we re-expose the versions from ProcessObject to avoid warnings about hiding methods from the superclass.

Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.

Reimplemented in itk::ScalarConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >, and itk::VectorConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >.

template<class TInputImage , class TOutputImage , class 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<class TInputImage , class TOutputImage , class TMaskImage = TInputImage>
virtual void itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::SetBackgroundValue ( OutputImagePixelType  _arg)
virtual
template<class TInputImage , class TOutputImage , class 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<class TInputImage , class TOutputImage , class TMaskImage = TInputImage>
void itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::SetMaskImage ( TMaskImage *  mask)
inline

Definition at line 145 of file itkConnectedComponentImageFilter.h.

template<class TInputImage , class TOutputImage , class TMaskImage = TInputImage>
void itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::SetupLineOffsets ( OffsetVec LineOffsets)
private
template<class TInputImage , class TOutputImage , class TMaskImage = TInputImage>
void itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::ThreadedGenerateData ( const RegionType outputRegionForThread,
ThreadIdType  threadId 
)
protected
template<class TInputImage , class TOutputImage , class 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<class TInputImage , class TOutputImage , class TMaskImage = TInputImage>
itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::typedef ( Concept::IsInteger< OutputImagePixelType )

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

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

Definition at line 249 of file itkConnectedComponentImageFilter.h.


Member Data Documentation

template<class TInputImage , class TOutputImage , class TMaskImage = TInputImage>
const unsigned int itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::ImageDimension = TOutputImage::ImageDimension
static
template<class TInputImage , class TOutputImage , class TMaskImage = TInputImage>
const unsigned int itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::InputImageDimension = TInputImage::ImageDimension
static
template<class TInputImage , class TOutputImage , class TMaskImage = TInputImage>
OutputImagePixelType itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::m_BackgroundValue
private

Definition at line 197 of file itkConnectedComponentImageFilter.h.

template<class TInputImage , class TOutputImage , class TMaskImage = TInputImage>
Barrier::Pointer itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::m_Barrier
private

Definition at line 261 of file itkConnectedComponentImageFilter.h.

template<class TInputImage , class TOutputImage , class TMaskImage = TInputImage>
UnionFindType itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::m_Consecutive
private

Definition at line 222 of file itkConnectedComponentImageFilter.h.

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

Definition at line 259 of file itkConnectedComponentImageFilter.h.

template<class TInputImage , class TOutputImage , class TMaskImage = TInputImage>
bool itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::m_FullyConnected
protected

Definition at line 191 of file itkConnectedComponentImageFilter.h.

template<class TInputImage , class TOutputImage , class TMaskImage = TInputImage>
TInputImage::ConstPointer itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::m_Input
private

Definition at line 263 of file itkConnectedComponentImageFilter.h.

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

Definition at line 265 of file itkConnectedComponentImageFilter.h.

template<class TInputImage , class TOutputImage , class TMaskImage = TInputImage>
std::vector< IdentifierType > itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::m_NumberOfLabels
private

Definition at line 258 of file itkConnectedComponentImageFilter.h.

template<class TInputImage , class TOutputImage , class TMaskImage = TInputImage>
LabelType itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::m_ObjectCount
private

Definition at line 196 of file itkConnectedComponentImageFilter.h.

template<class TInputImage , class TOutputImage , class TMaskImage = TInputImage>
UnionFindType itk::ConnectedComponentImageFilter< TInputImage, TOutputImage, TMaskImage >::m_UnionFind
private

Definition at line 221 of file itkConnectedComponentImageFilter.h.

template<class TInputImage , class TOutputImage , class 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.

Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.

Definition at line 82 of file itkConnectedComponentImageFilter.h.


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