ITK  4.1.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
itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage > Class Template Reference

#include <itkBinaryImageToLabelMapFilter.h>

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

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

Static Public Member Functions

static Pointer New ()

Protected Member Functions

void AfterThreadedGenerateData ()
void BeforeThreadedGenerateData ()
 BinaryImageToLabelMapFilter ()
void GenerateInputRequestedRegion ()
void PrintSelf (std::ostream &os, Indent indent) const
void ThreadedGenerateData (const RegionType &outputRegionForThread, ThreadIdType threadId)
virtual ~BinaryImageToLabelMapFilter ()

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

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 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
void EnlargeOutputRequestedRegion (DataObject *)
 BinaryImageToLabelMapFilter (const Self &)
void operator= (const Self &)

Detailed Description

template<class TInputImage, class TOutputImage = LabelMap< LabelObject< SizeValueType, ::itk::GetImageDimension< 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.


Member Typedef Documentation

template<class TInputImage , class TOutputImage = LabelMap< LabelObject< SizeValueType, ::itk::GetImageDimension< TInputImage >::ImageDimension > >>
typedef SmartPointer< const Self > itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::ConstPointer
template<class TInputImage , class TOutputImage = LabelMap< LabelObject< SizeValueType, ::itk::GetImageDimension< 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, ::itk::GetImageDimension< TInputImage >::ImageDimension > >>
typedef Superclass::InputImagePointer itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::InputImagePointer

Types from the Superclass

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

Definition at line 81 of file itkBinaryImageToLabelMapFilter.h.

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

Image typedef support

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

Definition at line 106 of file itkBinaryImageToLabelMapFilter.h.

template<class TInputImage , class TOutputImage = LabelMap< LabelObject< SizeValueType, ::itk::GetImageDimension< 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, ::itk::GetImageDimension< 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, ::itk::GetImageDimension< TInputImage >::ImageDimension > >>
typedef std::vector< runLength > itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::lineEncoding [private]

Definition at line 198 of file itkBinaryImageToLabelMapFilter.h.

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

Definition at line 201 of file itkBinaryImageToLabelMapFilter.h.

template<class TInputImage , class TOutputImage = LabelMap< LabelObject< SizeValueType, ::itk::GetImageDimension< 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, ::itk::GetImageDimension< 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, ::itk::GetImageDimension< 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, ::itk::GetImageDimension< TInputImage >::ImageDimension > >>
typedef std::vector< OffsetValueType > itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::OffsetVectorType [private]

Definition at line 203 of file itkBinaryImageToLabelMapFilter.h.

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

Some convenient typedefs.

Reimplemented from itk::ImageSource< TOutputImage >.

Definition at line 111 of file itkBinaryImageToLabelMapFilter.h.

template<class TInputImage , class TOutputImage = LabelMap< LabelObject< SizeValueType, ::itk::GetImageDimension< 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, ::itk::GetImageDimension< 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, ::itk::GetImageDimension< 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, ::itk::GetImageDimension< 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, ::itk::GetImageDimension< TInputImage >::ImageDimension > >>
typedef TOutputImage::RegionType::SizeType itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::OutSizeType [private]

Definition at line 186 of file itkBinaryImageToLabelMapFilter.h.

template<class TInputImage , class TOutputImage = LabelMap< LabelObject< SizeValueType, ::itk::GetImageDimension< TInputImage >::ImageDimension > >>
typedef SmartPointer< Self > itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::Pointer
template<class TInputImage , class TOutputImage = LabelMap< LabelObject< SizeValueType, ::itk::GetImageDimension< 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, ::itk::GetImageDimension< TInputImage >::ImageDimension > >>
typedef BinaryImageToLabelMapFilter itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::Self

Standard "Self" & Superclass typedef.

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

Definition at line 68 of file itkBinaryImageToLabelMapFilter.h.

template<class TInputImage , class TOutputImage = LabelMap< LabelObject< SizeValueType, ::itk::GetImageDimension< 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, ::itk::GetImageDimension< 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, ::itk::GetImageDimension< TInputImage >::ImageDimension > >>
typedef ImageToImageFilter< TInputImage, TOutputImage > itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::Superclass
template<class TInputImage , class TOutputImage = LabelMap< LabelObject< SizeValueType, ::itk::GetImageDimension< TInputImage >::ImageDimension > >>
typedef std::vector< LabelType > itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::UnionFindType [private]

Definition at line 206 of file itkBinaryImageToLabelMapFilter.h.


Constructor & Destructor Documentation

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

Definition at line 158 of file itkBinaryImageToLabelMapFilter.h.

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

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

See also:
ProcessObject::EnlargeOutputRequestedRegion()

Member Function Documentation

template<class TInputImage , class TOutputImage = LabelMap< LabelObject< SizeValueType, ::itk::GetImageDimension< TInputImage >::ImageDimension > >>
void itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::AfterThreadedGenerateData ( void  ) [protected, virtual]

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, ::itk::GetImageDimension< TInputImage >::ImageDimension > >>
void itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::BeforeThreadedGenerateData ( ) [protected, virtual]

Standard pipeline method.

Reimplemented from itk::ImageSource< TOutputImage >.

template<class TInputImage , class TOutputImage = LabelMap< LabelObject< SizeValueType, ::itk::GetImageDimension< TInputImage >::ImageDimension > >>
bool itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::CheckNeighbors ( const OutputIndexType A,
const OutputIndexType B 
) [private]
template<class TInputImage , class TOutputImage = LabelMap< LabelObject< SizeValueType, ::itk::GetImageDimension< TInputImage >::ImageDimension > >>
void itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::CompareLines ( lineEncoding current,
const lineEncoding Neighbour 
) [private]
template<class TInputImage , class TOutputImage = LabelMap< LabelObject< SizeValueType, ::itk::GetImageDimension< 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, ::itk::GetImageDimension< TInputImage >::ImageDimension > >>
LabelType itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::CreateConsecutive ( ) [private]
template<class TInputImage , class TOutputImage = LabelMap< LabelObject< SizeValueType, ::itk::GetImageDimension< TInputImage >::ImageDimension > >>
void itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::EnlargeOutputRequestedRegion ( DataObject ) [protected, virtual]

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

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, ::itk::GetImageDimension< 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, ::itk::GetImageDimension< 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, ::itk::GetImageDimension< 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, ::itk::GetImageDimension< TInputImage >::ImageDimension > >>
virtual const SizeValueType& itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::GetNumberOfObjects ( ) [virtual]
template<class TInputImage , class TOutputImage = LabelMap< LabelObject< SizeValueType, ::itk::GetImageDimension< 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, ::itk::GetImageDimension< TInputImage >::ImageDimension > >>
void itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::InitUnion ( const LabelType  size) [inline, private]

Definition at line 210 of file itkBinaryImageToLabelMapFilter.h.

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

Method for creation through the object factory.

Reimplemented from itk::Object.

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

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

See also:
ProcessObject::EnlargeOutputRequestedRegion()

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

template<class TInputImage , class TOutputImage = LabelMap< LabelObject< SizeValueType, ::itk::GetImageDimension< TInputImage >::ImageDimension > >>
void itk::BinaryImageToLabelMapFilter< TInputImage, TOutputImage >::PrintSelf ( std::ostream &  os,
Indent  indent 
) const [protected, virtual]

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

Definition at line 234 of file itkBinaryImageToLabelMapFilter.h.


Member Data Documentation

template<class TInputImage , class TOutputImage = LabelMap< LabelObject< SizeValueType, ::itk::GetImageDimension< 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, ::itk::GetImageDimension< 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.

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

Definition at line 98 of file itkBinaryImageToLabelMapFilter.h.

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

Definition at line 253 of file itkBinaryImageToLabelMapFilter.h.

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

Definition at line 208 of file itkBinaryImageToLabelMapFilter.h.

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

Definition at line 251 of file itkBinaryImageToLabelMapFilter.h.

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

Definition at line 248 of file itkBinaryImageToLabelMapFilter.h.

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

Definition at line 244 of file itkBinaryImageToLabelMapFilter.h.

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

Definition at line 256 of file itkBinaryImageToLabelMapFilter.h.

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

Definition at line 250 of file itkBinaryImageToLabelMapFilter.h.

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

Definition at line 246 of file itkBinaryImageToLabelMapFilter.h.

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

Definition at line 243 of file itkBinaryImageToLabelMapFilter.h.

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

Definition at line 207 of file itkBinaryImageToLabelMapFilter.h.

template<class TInputImage , class TOutputImage = LabelMap< LabelObject< SizeValueType, ::itk::GetImageDimension< 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.

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

Definition at line 97 of file itkBinaryImageToLabelMapFilter.h.


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