ITK  4.8.0
Insight Segmentation and Registration Toolkit
Classes | Public Types | Public Member Functions | Static Public Member Functions | Protected Types | 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<typename TInputImage, typename 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:
Examples:
WikiExamples/ImageProcessing/BinaryImageToLabelMapFilter.cxx, WikiExamples/ImageProcessing/LabelMapOverlayImageFilter.cxx, WikiExamples/ImageProcessing/LabelMapToLabelImageFilter.cxx, WikiExamples/ImageProcessing/LabelOverlayImageFilter.cxx, WikiExamples/ImageProcessing/LabelShapeKeepNObjectsImageFilter.cxx, WikiExamples/ImageProcessing/LabelStatisticsImageFilter.cxx, WikiExamples/ImageProcessing/ManuallyRemovingLabels.cxx, and WikiExamples/Segmentation/LabelMapContourOverlayImageFilter.cxx.

Definition at line 63 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 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 () const
 
virtual const char * GetNameOfClass () const
 
virtual const SizeValueTypeGetNumberOfObjects () const
 
 typedef (Concept::SameDimension< itkGetStaticConstMacro(InputImageDimension), itkGetStaticConstMacro(OutputImageDimension) >) SameDimension
 
virtual void SetFullyConnected (bool _arg)
 
virtual const bool & GetFullyConnected () const
 
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 () const
 
const InputImageTypeGetInput (unsigned int idx) const
 
virtual void PopBackInput () override
 
virtual void PopFrontInput () override
 
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 (const DataObjectIdentifierType &key, DataObject *output)
 
OutputImageTypeGetOutput ()
 
const OutputImageTypeGetOutput () const
 
virtual void GraftOutput (DataObject *output)
 
virtual
ProcessObject::DataObjectPointer 
MakeOutput (ProcessObject::DataObjectPointerArraySizeType idx) override
 
virtual
ProcessObject::DataObjectPointer 
MakeOutput (const ProcessObject::DataObjectIdentifierType &) override
 
- Public Member Functions inherited from itk::ProcessObject
virtual void AbortGenerateDataOff ()
 
virtual void AbortGenerateDataOn ()
 
virtual const bool & GetAbortGenerateData () const
 
DataObjectPointerArray GetIndexedInputs ()
 
DataObjectPointerArray GetIndexedOutputs ()
 
NameArray GetInputNames () const
 
DataObjectPointerArray GetInputs ()
 
MultiThreader * GetMultiThreader () const
 
DataObjectPointerArraySizeType GetNumberOfIndexedInputs () const
 
DataObjectPointerArraySizeType GetNumberOfIndexedOutputs () const
 
DataObjectPointerArraySizeType GetNumberOfInputs () const
 
DataObjectPointerArraySizeType GetNumberOfOutputs () const
 
virtual
DataObjectPointerArraySizeType 
GetNumberOfValidRequiredInputs () const
 
NameArray GetOutputNames () const
 
DataObjectPointerArray GetOutputs ()
 
virtual const float & GetProgress () const
 
NameArray GetRequiredInputNames () const
 
bool HasInput (const DataObjectIdentifierType &key) const
 
bool HasOutput (const DataObjectIdentifierType &key) const
 
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)
 
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 ()
 
const MetaDataDictionaryGetMetaDataDictionary () 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 override
 
void RemoveAllObservers ()
 
void RemoveObserver (unsigned long tag)
 
void SetDebug (bool debugFlag) const
 
void SetMetaDataDictionary (const MetaDataDictionary &rhs)
 
virtual void SetReferenceCount (int) override
 
virtual void UnRegister () const noexceptoverride
 
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 Types

typedef SizeValueType InternalLabelType
 
- 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 Member Functions

void AfterThreadedGenerateData () override
 
void BeforeThreadedGenerateData () override
 
 BinaryImageToLabelMapFilter ()
 
void EnlargeOutputRequestedRegion (DataObject *) override
 
void GenerateInputRequestedRegion () override
 
virtual const
ImageRegionSplitterBase
GetImageRegionSplitter () const override
 
void PrintSelf (std::ostream &os, Indent indent) const override
 
void ThreadedGenerateData (const RegionType &outputRegionForThread, ThreadIdType threadId) override
 
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 () override
 
 ~ImageToImageFilter ()
 
void PushBackInput (const DataObject *input) override
 
void PushFrontInput (const DataObject *input) override
 
- Protected Member Functions inherited from itk::ImageSource< TOutputImage >
virtual void AllocateOutputs ()
 
virtual void GenerateData () override
 
 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)
 
bool AddRequiredInputName (const DataObjectIdentifierType &)
 
bool AddRequiredInputName (const DataObjectIdentifierType &, DataObjectPointerArraySizeType idx)
 
virtual void CacheInputReleaseDataFlags ()
 
virtual void GenerateOutputInformation ()
 
virtual void GenerateOutputRequestedRegion (DataObject *output)
 
DataObjectGetInput (const DataObjectIdentifierType &key)
 
const DataObjectGetInput (const DataObjectIdentifierType &key) const
 
virtual const
DataObjectPointerArraySizeType
GetNumberOfRequiredInputs () const
 
virtual const
DataObjectPointerArraySizeType
GetNumberOfRequiredOutputs () const
 
bool IsIndexedInputName (const DataObjectIdentifierType &) const
 
bool IsIndexedOutputName (const DataObjectIdentifierType &) const
 
bool IsRequiredInputName (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)
 
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 (DataObjectPointerArraySizeType idx)
 
const DataObjectGetInput (DataObjectPointerArraySizeType idx) const
 
DataObjectGetPrimaryInput ()
 
const DataObjectGetPrimaryInput () const
 
virtual void SetPrimaryInputName (const DataObjectIdentifierType &key)
 
virtual const char * GetPrimaryInputName (void) const
 
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
< OutputPixelType
ConsecutiveVectorType
 
typedef std::vector< runLengthlineEncoding
 
typedef std::vector< lineEncodingLineMapType
 
typedef std::vector
< OffsetValueType
OffsetVectorType
 
typedef
TOutputImage::RegionType::SizeType 
OutSizeType
 
typedef std::vector
< InternalLabelType
UnionFindType
 

Private Member Functions

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

Private Attributes

Barrier::Pointer m_Barrier
 
ConsecutiveVectorType m_Consecutive
 
std::vector< SizeValueTypem_FirstLineIdToJoin
 
bool m_FullyConnected
 
ImageRegionSplitterDirection::Pointer m_ImageRegionSplitter
 
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
 
- Static Public Attributes inherited from itk::ImageSource< TOutputImage >
static const unsigned int OutputImageDimension = TOutputImage::ImageDimension
 
- 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
 
- Protected Attributes inherited from itk::LightObject
AtomicInt< int > m_ReferenceCount
 

Member Typedef Documentation

template<typename TInputImage , typename TOutputImage = LabelMap< LabelObject< SizeValueType, TInputImage::ImageDimension > >>
typedef std::vector< OutputPixelType > itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::ConsecutiveVectorType
private

Definition at line 217 of file itkBinaryImageToLabelMapFilter.h.

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

Definition at line 73 of file itkBinaryImageToLabelMapFilter.h.

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

Definition at line 107 of file itkBinaryImageToLabelMapFilter.h.

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

Types from the Superclass

Definition at line 83 of file itkBinaryImageToLabelMapFilter.h.

template<typename TInputImage , typename 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<typename TInputImage , typename 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 95 of file itkBinaryImageToLabelMapFilter.h.

template<typename TInputImage , typename TOutputImage = LabelMap< LabelObject< SizeValueType, TInputImage::ImageDimension > >>
typedef SizeValueType itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::InternalLabelType
protected

Definition at line 162 of file itkBinaryImageToLabelMapFilter.h.

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

Definition at line 206 of file itkBinaryImageToLabelMapFilter.h.

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

Definition at line 209 of file itkBinaryImageToLabelMapFilter.h.

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

Definition at line 118 of file itkBinaryImageToLabelMapFilter.h.

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

Definition at line 109 of file itkBinaryImageToLabelMapFilter.h.

template<typename TInputImage , typename 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 97 of file itkBinaryImageToLabelMapFilter.h.

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

Definition at line 211 of file itkBinaryImageToLabelMapFilter.h.

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

Definition at line 116 of file itkBinaryImageToLabelMapFilter.h.

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

Definition at line 111 of file itkBinaryImageToLabelMapFilter.h.

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

Definition at line 113 of file itkBinaryImageToLabelMapFilter.h.

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

Definition at line 115 of file itkBinaryImageToLabelMapFilter.h.

template<typename TInputImage , typename 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 94 of file itkBinaryImageToLabelMapFilter.h.

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

Definition at line 114 of file itkBinaryImageToLabelMapFilter.h.

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

Definition at line 194 of file itkBinaryImageToLabelMapFilter.h.

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

Definition at line 72 of file itkBinaryImageToLabelMapFilter.h.

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

Definition at line 112 of file itkBinaryImageToLabelMapFilter.h.

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

Standard "Self" & Superclass typedef.

Definition at line 70 of file itkBinaryImageToLabelMapFilter.h.

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

Definition at line 108 of file itkBinaryImageToLabelMapFilter.h.

template<typename TInputImage , typename 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 96 of file itkBinaryImageToLabelMapFilter.h.

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

Definition at line 71 of file itkBinaryImageToLabelMapFilter.h.

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

Definition at line 214 of file itkBinaryImageToLabelMapFilter.h.

Constructor & Destructor Documentation

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

Definition at line 159 of file itkBinaryImageToLabelMapFilter.h.

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

Member Function Documentation

template<typename TInputImage , typename TOutputImage = LabelMap< LabelObject< SizeValueType, TInputImage::ImageDimension > >>
void itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::AfterThreadedGenerateData ( void  )
overrideprotectedvirtual

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

Standard pipeline method.

Reimplemented from itk::ImageSource< TOutputImage >.

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

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

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

See Also
ProcessObject::GenerateInputRequestedRegion().

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

template<typename TInputImage , typename TOutputImage = LabelMap< LabelObject< SizeValueType, TInputImage::ImageDimension > >>
virtual const bool& itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::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 = LabelMap< LabelObject< SizeValueType, TInputImage::ImageDimension > >>
virtual const ImageRegionSplitterBase* itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::GetImageRegionSplitter ( ) const
overrideprotectedvirtual

Provide an ImageRegionSplitter that does not split along the first dimension – we assume the data is complete along this dimension when threading.

Reimplemented from itk::ImageSource< TOutputImage >.

template<typename TInputImage , typename 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<typename TInputImage , typename 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<typename TInputImage , typename TOutputImage = LabelMap< LabelObject< SizeValueType, TInputImage::ImageDimension > >>
virtual const SizeValueType& itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::GetNumberOfObjects ( ) const
virtual
template<typename TInputImage , typename 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<typename TInputImage , typename TOutputImage = LabelMap< LabelObject< SizeValueType, TInputImage::ImageDimension > >>
void itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::InitUnion ( const InternalLabelType  size)
private
template<typename TInputImage , typename TOutputImage = LabelMap< LabelObject< SizeValueType, TInputImage::ImageDimension > >>
void itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::InsertSet ( const InternalLabelType  label)
private
template<typename TInputImage , typename TOutputImage = LabelMap< LabelObject< SizeValueType, TInputImage::ImageDimension > >>
void itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::LinkLabels ( const InternalLabelType  lab1,
const InternalLabelType  lab2 
)
private
template<typename TInputImage , typename TOutputImage = LabelMap< LabelObject< SizeValueType, TInputImage::ImageDimension > >>
InternalLabelType itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::LookupSet ( const InternalLabelType  label)
private
template<typename TInputImage , typename TOutputImage = LabelMap< LabelObject< SizeValueType, TInputImage::ImageDimension > >>
static Pointer itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::New ( )
static

Method for creation through the object factory.

template<typename TInputImage , typename TOutputImage = LabelMap< LabelObject< SizeValueType, TInputImage::ImageDimension > >>
void itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::operator= ( const Self )
private
template<typename TInputImage , typename TOutputImage = LabelMap< LabelObject< SizeValueType, TInputImage::ImageDimension > >>
void itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::PrintSelf ( std::ostream &  os,
Indent  indent 
) const
overrideprotectedvirtual

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

Member Data Documentation

template<typename TInputImage , typename 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 98 of file itkBinaryImageToLabelMapFilter.h.

template<typename TInputImage , typename 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 100 of file itkBinaryImageToLabelMapFilter.h.

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

Definition at line 254 of file itkBinaryImageToLabelMapFilter.h.

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

Definition at line 218 of file itkBinaryImageToLabelMapFilter.h.

template<typename TInputImage , typename 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<typename TInputImage , typename TOutputImage = LabelMap< LabelObject< SizeValueType, TInputImage::ImageDimension > >>
bool itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::m_FullyConnected
private

Definition at line 249 of file itkBinaryImageToLabelMapFilter.h.

template<typename TInputImage , typename TOutputImage = LabelMap< LabelObject< SizeValueType, TInputImage::ImageDimension > >>
ImageRegionSplitterDirection::Pointer itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::m_ImageRegionSplitter
private

Definition at line 256 of file itkBinaryImageToLabelMapFilter.h.

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

Definition at line 245 of file itkBinaryImageToLabelMapFilter.h.

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

Definition at line 259 of file itkBinaryImageToLabelMapFilter.h.

template<typename TInputImage , typename 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<typename TInputImage , typename TOutputImage = LabelMap< LabelObject< SizeValueType, TInputImage::ImageDimension > >>
SizeValueType itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::m_NumberOfObjects
private

Definition at line 247 of file itkBinaryImageToLabelMapFilter.h.

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

Definition at line 244 of file itkBinaryImageToLabelMapFilter.h.

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

Definition at line 215 of file itkBinaryImageToLabelMapFilter.h.

template<typename TInputImage , typename 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 99 of file itkBinaryImageToLabelMapFilter.h.


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