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

#include <itkBinaryImageToLabelMapFilter.h>

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

Detailed Description

template<class TInputImage, class TOutputImage = LabelMap< LabelObject< SizeValueType, TInputImage::ImageDimension > >>
class itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >

Label the connected components in a binary image and produce a collection of label objects.

BinaryImageToLabelMapFilter labels the objects in a binary image. Each distinct object is assigned a unique label. The final object labels start with 1 and are consecutive. Objects that are reached earlier by a raster order scan have a lower label.

The GetOutput() function of this class returns an itk::LabelMap.

This implementation was taken from the Insight Journal paper: http://hdl.handle.net/1926/584 or http://www.insight-journal.org/browse/publication/176

Author
Gaetan Lehmann. Biologie du Developpement et de la Reproduction, INRA de Jouy-en-Josas, France.
See Also
ConnectedComponentImageFilter, LabelImageToLabelMapFilter, LabelMap, LabelObject
Wiki Examples:

Definition at line 61 of file itkBinaryImageToLabelMapFilter.h.

Classes

class  runLength
 

Public Types

typedef SmartPointer< const SelfConstPointer
 
typedef TInputImage::IndexType IndexType
 
typedef
Superclass::InputImagePointer 
InputImagePointer
 
typedef TInputImage InputImageType
 
typedef SizeValueType LabelType
 
typedef std::list< IndexTypeListType
 
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 BinaryImageToLabelMapFilter 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
 
virtual const char * GetNameOfClass () const
 
virtual const SizeValueTypeGetNumberOfObjects ()
 
 typedef (Concept::SameDimension< itkGetStaticConstMacro(InputImageDimension), itkGetStaticConstMacro(OutputImageDimension) >) SameDimension
 
virtual void SetFullyConnected (bool _arg)
 
virtual const bool & GetFullyConnected ()
 
virtual void FullyConnectedOn ()
 
virtual void FullyConnectedOff ()
 
virtual void SetOutputBackgroundValue (OutputPixelType _arg)
 
virtual OutputPixelType GetOutputBackgroundValue () const
 
virtual void SetInputForegroundValue (InputPixelType _arg)
 
virtual InputPixelType GetInputForegroundValue () 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)
 
- 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 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
 
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 ()
 

Protected Member Functions

void AfterThreadedGenerateData ()
 
void BeforeThreadedGenerateData ()
 
 BinaryImageToLabelMapFilter ()
 
void EnlargeOutputRequestedRegion (DataObject *)
 
void GenerateInputRequestedRegion ()
 
void PrintSelf (std::ostream &os, Indent indent) const
 
void ThreadedGenerateData (const RegionType &outputRegionForThread, ThreadIdType threadId)
 
virtual ~BinaryImageToLabelMapFilter ()
 
- 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 ()
 
virtual const
ImageRegionSplitterBase
GetImageRegionSplitter (void) const
 
 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)
 
virtual void CacheInputReleaseDataFlags ()
 
virtual void GenerateOutputInformation ()
 
virtual void GenerateOutputRequestedRegion (DataObject *output)
 
virtual const
DataObjectPointerArraySizeType
GetNumberOfRequiredOutputs ()
 
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 ()
 
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 ()
 

Private Types

typedef std::vector< runLengthlineEncoding
 
typedef std::vector< lineEncodingLineMapType
 
typedef std::vector
< OffsetValueType
OffsetVectorType
 
typedef
TOutputImage::RegionType::SizeType 
OutSizeType
 
typedef std::vector< LabelTypeUnionFindType
 

Private Member Functions

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

Private Attributes

Barrier::Pointer m_Barrier
 
UnionFindType m_Consecutive
 
std::vector< SizeValueTypem_FirstLineIdToJoin
 
bool m_FullyConnected
 
InputPixelType m_InputForegroundValue
 
LineMapType m_LineMap
 
std::vector< SizeValueTypem_NumberOfLabels
 
SizeValueType m_NumberOfObjects
 
OutputPixelType m_OutputBackgroundValue
 
UnionFindType m_UnionFind
 
typedef TOutputImage::PixelType OutputPixelType
 
typedef TInputImage::PixelType InputPixelType
 
typedef TInputImage::SizeValueType SizeValueType
 
typedef
TInputImage::OffsetValueType 
OffsetValueType
 
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
 
- 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)
 
- Protected Attributes inherited from itk::ProcessObject
TimeStamp m_OutputInformationMTime
 
bool m_Updating
 

Member Typedef Documentation

template<class TInputImage , class TOutputImage = LabelMap< LabelObject< SizeValueType, TInputImage::ImageDimension > >>
typedef SmartPointer< const Self > itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::ConstPointer

Definition at line 71 of file itkBinaryImageToLabelMapFilter.h.

template<class TInputImage , class TOutputImage = LabelMap< LabelObject< SizeValueType, TInputImage::ImageDimension > >>
typedef TInputImage::IndexType itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::IndexType

Definition at line 107 of file itkBinaryImageToLabelMapFilter.h.

template<class TInputImage , class TOutputImage = LabelMap< LabelObject< SizeValueType, TInputImage::ImageDimension > >>
typedef Superclass::InputImagePointer itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::InputImagePointer

Types from the Superclass

Definition at line 81 of file itkBinaryImageToLabelMapFilter.h.

template<class TInputImage , class TOutputImage = LabelMap< LabelObject< SizeValueType, TInputImage::ImageDimension > >>
typedef TInputImage itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::InputImageType

Image typedef support

Definition at line 106 of file itkBinaryImageToLabelMapFilter.h.

template<class TInputImage , class TOutputImage = LabelMap< LabelObject< SizeValueType, TInputImage::ImageDimension > >>
typedef TInputImage::PixelType itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::InputPixelType

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

Definition at line 93 of file itkBinaryImageToLabelMapFilter.h.

template<class TInputImage , class TOutputImage = LabelMap< LabelObject< SizeValueType, TInputImage::ImageDimension > >>
typedef SizeValueType itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::LabelType

Definition at line 101 of file itkBinaryImageToLabelMapFilter.h.

template<class TInputImage , class TOutputImage = LabelMap< LabelObject< SizeValueType, TInputImage::ImageDimension > >>
typedef std::vector< runLength > itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::lineEncoding
private

Definition at line 199 of file itkBinaryImageToLabelMapFilter.h.

template<class TInputImage , class TOutputImage = LabelMap< LabelObject< SizeValueType, TInputImage::ImageDimension > >>
typedef std::vector< lineEncoding > itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::LineMapType
private

Definition at line 202 of file itkBinaryImageToLabelMapFilter.h.

template<class TInputImage , class TOutputImage = LabelMap< LabelObject< SizeValueType, TInputImage::ImageDimension > >>
typedef std::list< IndexType > itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::ListType

Definition at line 118 of file itkBinaryImageToLabelMapFilter.h.

template<class TInputImage , class TOutputImage = LabelMap< LabelObject< SizeValueType, TInputImage::ImageDimension > >>
typedef TInputImage::OffsetType itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::OffsetType

Definition at line 109 of file itkBinaryImageToLabelMapFilter.h.

template<class TInputImage , class TOutputImage = LabelMap< LabelObject< SizeValueType, TInputImage::ImageDimension > >>
typedef TInputImage::OffsetValueType itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::OffsetValueType

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

Definition at line 95 of file itkBinaryImageToLabelMapFilter.h.

template<class TInputImage , class TOutputImage = LabelMap< LabelObject< SizeValueType, TInputImage::ImageDimension > >>
typedef std::vector< OffsetValueType > itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::OffsetVectorType
private

Definition at line 204 of file itkBinaryImageToLabelMapFilter.h.

template<class TInputImage , class TOutputImage = LabelMap< LabelObject< SizeValueType, TInputImage::ImageDimension > >>
typedef TOutputImage::PixelType itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::OutputImagePixelType

Definition at line 116 of file itkBinaryImageToLabelMapFilter.h.

template<class TInputImage , class TOutputImage = LabelMap< LabelObject< SizeValueType, TInputImage::ImageDimension > >>
typedef TOutputImage itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::OutputImageType

Definition at line 111 of file itkBinaryImageToLabelMapFilter.h.

template<class TInputImage , class TOutputImage = LabelMap< LabelObject< SizeValueType, TInputImage::ImageDimension > >>
typedef TOutputImage::IndexType itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::OutputIndexType

Definition at line 113 of file itkBinaryImageToLabelMapFilter.h.

template<class TInputImage , class TOutputImage = LabelMap< LabelObject< SizeValueType, TInputImage::ImageDimension > >>
typedef TOutputImage::OffsetType itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::OutputOffsetType

Definition at line 115 of file itkBinaryImageToLabelMapFilter.h.

template<class TInputImage , class TOutputImage = LabelMap< LabelObject< SizeValueType, TInputImage::ImageDimension > >>
typedef TOutputImage::PixelType itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::OutputPixelType

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

Definition at line 92 of file itkBinaryImageToLabelMapFilter.h.

template<class TInputImage , class TOutputImage = LabelMap< LabelObject< SizeValueType, TInputImage::ImageDimension > >>
typedef TOutputImage::SizeType itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::OutputSizeType

Definition at line 114 of file itkBinaryImageToLabelMapFilter.h.

template<class TInputImage , class TOutputImage = LabelMap< LabelObject< SizeValueType, TInputImage::ImageDimension > >>
typedef TOutputImage::RegionType::SizeType itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::OutSizeType
private

Definition at line 187 of file itkBinaryImageToLabelMapFilter.h.

template<class TInputImage , class TOutputImage = LabelMap< LabelObject< SizeValueType, TInputImage::ImageDimension > >>
typedef SmartPointer< Self > itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::Pointer

Definition at line 70 of file itkBinaryImageToLabelMapFilter.h.

template<class TInputImage , class TOutputImage = LabelMap< LabelObject< SizeValueType, TInputImage::ImageDimension > >>
typedef TOutputImage::RegionType itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::RegionType

Definition at line 112 of file itkBinaryImageToLabelMapFilter.h.

template<class TInputImage , class TOutputImage = LabelMap< LabelObject< SizeValueType, TInputImage::ImageDimension > >>
typedef BinaryImageToLabelMapFilter itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::Self

Standard "Self" & Superclass typedef.

Definition at line 68 of file itkBinaryImageToLabelMapFilter.h.

template<class TInputImage , class TOutputImage = LabelMap< LabelObject< SizeValueType, TInputImage::ImageDimension > >>
typedef TInputImage::SizeType itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::SizeType

Definition at line 108 of file itkBinaryImageToLabelMapFilter.h.

template<class TInputImage , class TOutputImage = LabelMap< LabelObject< SizeValueType, TInputImage::ImageDimension > >>
typedef TInputImage::SizeValueType itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::SizeValueType

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

Definition at line 94 of file itkBinaryImageToLabelMapFilter.h.

template<class TInputImage , class TOutputImage = LabelMap< LabelObject< SizeValueType, TInputImage::ImageDimension > >>
typedef ImageToImageFilter< TInputImage, TOutputImage > itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::Superclass

Definition at line 69 of file itkBinaryImageToLabelMapFilter.h.

template<class TInputImage , class TOutputImage = LabelMap< LabelObject< SizeValueType, TInputImage::ImageDimension > >>
typedef std::vector< LabelType > itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::UnionFindType
private

Definition at line 207 of file itkBinaryImageToLabelMapFilter.h.

Constructor & Destructor Documentation

template<class TInputImage , class TOutputImage = LabelMap< LabelObject< SizeValueType, TInputImage::ImageDimension > >>
itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::BinaryImageToLabelMapFilter ( )
protected
template<class TInputImage , class TOutputImage = LabelMap< LabelObject< SizeValueType, TInputImage::ImageDimension > >>
virtual itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::~BinaryImageToLabelMapFilter ( )
inlineprotectedvirtual

Definition at line 159 of file itkBinaryImageToLabelMapFilter.h.

template<class TInputImage , class TOutputImage = LabelMap< LabelObject< SizeValueType, TInputImage::ImageDimension > >>
itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::BinaryImageToLabelMapFilter ( const Self )
private

Member Function Documentation

template<class TInputImage , class TOutputImage = LabelMap< LabelObject< SizeValueType, TInputImage::ImageDimension > >>
void itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::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 = LabelMap< LabelObject< SizeValueType, TInputImage::ImageDimension > >>
void itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::BeforeThreadedGenerateData ( )
protectedvirtual

Standard pipeline method.

Reimplemented from itk::ImageSource< TOutputImage >.

template<class TInputImage , class TOutputImage = LabelMap< LabelObject< SizeValueType, TInputImage::ImageDimension > >>
bool itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::CheckNeighbors ( const OutputIndexType A,
const OutputIndexType B 
)
private
template<class TInputImage , class TOutputImage = LabelMap< LabelObject< SizeValueType, TInputImage::ImageDimension > >>
void itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::CompareLines ( lineEncoding current,
const lineEncoding Neighbour 
)
private
template<class TInputImage , class TOutputImage = LabelMap< LabelObject< SizeValueType, TInputImage::ImageDimension > >>
virtual::itk::LightObject::Pointer itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::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.

template<class TInputImage , class TOutputImage = LabelMap< LabelObject< SizeValueType, TInputImage::ImageDimension > >>
LabelType itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::CreateConsecutive ( )
private
template<class TInputImage , class TOutputImage = LabelMap< LabelObject< SizeValueType, TInputImage::ImageDimension > >>
void itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::EnlargeOutputRequestedRegion ( DataObject )
protectedvirtual

BinaryImageToLabelMapFilter 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 = LabelMap< LabelObject< SizeValueType, TInputImage::ImageDimension > >>
void itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::FillOutput ( const LineMapType LineMap,
ProgressReporter progress 
)
private
template<class TInputImage , class TOutputImage = LabelMap< LabelObject< SizeValueType, TInputImage::ImageDimension > >>
virtual void itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::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 = LabelMap< LabelObject< SizeValueType, TInputImage::ImageDimension > >>
virtual void itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::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 = LabelMap< LabelObject< SizeValueType, TInputImage::ImageDimension > >>
void itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::GenerateInputRequestedRegion ( )
protectedvirtual

BinaryImageToLabelMapFilter 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 = LabelMap< LabelObject< SizeValueType, TInputImage::ImageDimension > >>
virtual const bool& itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::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 = LabelMap< LabelObject< SizeValueType, TInputImage::ImageDimension > >>
virtual InputPixelType itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::GetInputForegroundValue ( ) const
virtual

Set/Get the value to be consider "foreground" in the input image. Defaults to NumericTraits<InputPixelType>::max().

template<class TInputImage , class TOutputImage = LabelMap< LabelObject< SizeValueType, TInputImage::ImageDimension > >>
virtual const char* itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::GetNameOfClass ( ) const
virtual

Run-time type information (and related methods)

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

template<class TInputImage , class TOutputImage = LabelMap< LabelObject< SizeValueType, TInputImage::ImageDimension > >>
virtual const SizeValueType& itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::GetNumberOfObjects ( )
virtual
template<class TInputImage , class TOutputImage = LabelMap< LabelObject< SizeValueType, TInputImage::ImageDimension > >>
virtual OutputPixelType itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::GetOutputBackgroundValue ( ) const
virtual

Set/Get the value used as "background" in the output image. Defaults to NumericTraits<OutputPixelType>::NonpositiveMin().

template<class TInputImage , class TOutputImage = LabelMap< LabelObject< SizeValueType, TInputImage::ImageDimension > >>
void itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::InitUnion ( const LabelType  size)
inlineprivate

Definition at line 211 of file itkBinaryImageToLabelMapFilter.h.

template<class TInputImage , class TOutputImage = LabelMap< LabelObject< SizeValueType, TInputImage::ImageDimension > >>
void itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::InsertSet ( const LabelType  label)
private
template<class TInputImage , class TOutputImage = LabelMap< LabelObject< SizeValueType, TInputImage::ImageDimension > >>
void itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::LinkLabels ( const LabelType  lab1,
const LabelType  lab2 
)
private
template<class TInputImage , class TOutputImage = LabelMap< LabelObject< SizeValueType, TInputImage::ImageDimension > >>
LabelType itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::LookupSet ( const LabelType  label)
private
template<class TInputImage , class TOutputImage = LabelMap< LabelObject< SizeValueType, TInputImage::ImageDimension > >>
static Pointer itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::New ( )
static

Method for creation through the object factory.

template<class TInputImage , class TOutputImage = LabelMap< LabelObject< SizeValueType, TInputImage::ImageDimension > >>
void itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::operator= ( const Self )
private
template<class TInputImage , class TOutputImage = LabelMap< LabelObject< SizeValueType, TInputImage::ImageDimension > >>
void itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::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 = LabelMap< LabelObject< SizeValueType, TInputImage::ImageDimension > >>
virtual void itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::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 = LabelMap< LabelObject< SizeValueType, TInputImage::ImageDimension > >>
virtual void itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::SetInputForegroundValue ( InputPixelType  _arg)
virtual

Set/Get the value to be consider "foreground" in the input image. Defaults to NumericTraits<InputPixelType>::max().

template<class TInputImage , class TOutputImage = LabelMap< LabelObject< SizeValueType, TInputImage::ImageDimension > >>
virtual void itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::SetOutputBackgroundValue ( OutputPixelType  _arg)
virtual

Set/Get the value used as "background" in the output image. Defaults to NumericTraits<OutputPixelType>::NonpositiveMin().

template<class TInputImage , class TOutputImage = LabelMap< LabelObject< SizeValueType, TInputImage::ImageDimension > >>
void itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::SetupLineOffsets ( OffsetVectorType LineOffsets)
private
template<class TInputImage , class TOutputImage = LabelMap< LabelObject< SizeValueType, TInputImage::ImageDimension > >>
void itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::ThreadedGenerateData ( const RegionType outputRegionForThread,
ThreadIdType  threadId 
)
protected
template<class TInputImage , class TOutputImage = LabelMap< LabelObject< SizeValueType, TInputImage::ImageDimension > >>
itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::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 = LabelMap< LabelObject< SizeValueType, TInputImage::ImageDimension > >>
void itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::Wait ( )
inlineprivate

Definition at line 235 of file itkBinaryImageToLabelMapFilter.h.

Member Data Documentation

template<class TInputImage , class TOutputImage = LabelMap< LabelObject< SizeValueType, TInputImage::ImageDimension > >>
const unsigned int itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::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 96 of file itkBinaryImageToLabelMapFilter.h.

template<class TInputImage , class TOutputImage = LabelMap< LabelObject< SizeValueType, TInputImage::ImageDimension > >>
const unsigned int itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::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 98 of file itkBinaryImageToLabelMapFilter.h.

template<class TInputImage , class TOutputImage = LabelMap< LabelObject< SizeValueType, TInputImage::ImageDimension > >>
Barrier::Pointer itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::m_Barrier
private

Definition at line 254 of file itkBinaryImageToLabelMapFilter.h.

template<class TInputImage , class TOutputImage = LabelMap< LabelObject< SizeValueType, TInputImage::ImageDimension > >>
UnionFindType itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::m_Consecutive
private

Definition at line 209 of file itkBinaryImageToLabelMapFilter.h.

template<class TInputImage , class TOutputImage = LabelMap< LabelObject< SizeValueType, TInputImage::ImageDimension > >>
std::vector< SizeValueType > itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::m_FirstLineIdToJoin
private

Definition at line 252 of file itkBinaryImageToLabelMapFilter.h.

template<class TInputImage , class TOutputImage = LabelMap< LabelObject< SizeValueType, TInputImage::ImageDimension > >>
bool itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::m_FullyConnected
private

Definition at line 249 of file itkBinaryImageToLabelMapFilter.h.

template<class TInputImage , class TOutputImage = LabelMap< LabelObject< SizeValueType, TInputImage::ImageDimension > >>
InputPixelType itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::m_InputForegroundValue
private

Definition at line 245 of file itkBinaryImageToLabelMapFilter.h.

template<class TInputImage , class TOutputImage = LabelMap< LabelObject< SizeValueType, TInputImage::ImageDimension > >>
LineMapType itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::m_LineMap
private

Definition at line 257 of file itkBinaryImageToLabelMapFilter.h.

template<class TInputImage , class TOutputImage = LabelMap< LabelObject< SizeValueType, TInputImage::ImageDimension > >>
std::vector< SizeValueType > itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::m_NumberOfLabels
private

Definition at line 251 of file itkBinaryImageToLabelMapFilter.h.

template<class TInputImage , class TOutputImage = LabelMap< LabelObject< SizeValueType, TInputImage::ImageDimension > >>
SizeValueType itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::m_NumberOfObjects
private

Definition at line 247 of file itkBinaryImageToLabelMapFilter.h.

template<class TInputImage , class TOutputImage = LabelMap< LabelObject< SizeValueType, TInputImage::ImageDimension > >>
OutputPixelType itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::m_OutputBackgroundValue
private

Definition at line 244 of file itkBinaryImageToLabelMapFilter.h.

template<class TInputImage , class TOutputImage = LabelMap< LabelObject< SizeValueType, TInputImage::ImageDimension > >>
UnionFindType itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::m_UnionFind
private

Definition at line 208 of file itkBinaryImageToLabelMapFilter.h.

template<class TInputImage , class TOutputImage = LabelMap< LabelObject< SizeValueType, TInputImage::ImageDimension > >>
const unsigned int itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::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 97 of file itkBinaryImageToLabelMapFilter.h.


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