18 #ifndef __itkBinaryImageToLabelMapFilter_h
19 #define __itkBinaryImageToLabelMapFilter_h
58 template<
typename TInputImage,
59 typename TOutputImage =
60 LabelMap< LabelObject< SizeValueType, TInputImage::ImageDimension > > >
96 itkStaticConstMacro(
ImageDimension,
unsigned int, TOutputImage::ImageDimension);
126 itkSetMacro(FullyConnected,
bool);
127 itkGetConstReferenceMacro(FullyConnected,
bool);
128 itkBooleanMacro(FullyConnected);
150 #ifdef ITK_USE_CONCEPT_CHECKING
195 typename InputImageType::IndexType
where;
256 #if !defined( CABLE_CONFIGURATION )
262 #ifndef ITK_MANUAL_INSTANTIATION
263 #if !defined( CABLE_CONFIGURATION )
264 #include "itkBinaryImageToLabelMapFilter.hxx"
TInputImage::PixelType InputPixelType
std::vector< runLength > lineEncoding
SizeValueType m_NumberOfObjects
BinaryImageToLabelMapFilter()
OutputPixelType m_OutputBackgroundValue
LabelType CreateConsecutive()
void AfterThreadedGenerateData()
TInputImage::SizeValueType SizeValueType
TOutputImage::OffsetType OutputOffsetType
std::vector< LabelType > UnionFindType
void SetupLineOffsets(OffsetVectorType &LineOffsets)
void GenerateInputRequestedRegion()
signed long OffsetValueType
SmartPointer< const Self > ConstPointer
void InsertSet(const LabelType label)
std::vector< SizeValueType > m_FirstLineIdToJoin
InputImageType::Pointer InputImagePointer
void EnlargeOutputRequestedRegion(DataObject *)
static const unsigned int OutputImageDimension
TInputImage::OffsetValueType OffsetValueType
ImageToImageFilter< TInputImage, TOutputImage > Superclass
std::list< IndexType > ListType
TOutputImage OutputImageType
TInputImage::OffsetType OffsetType
void CompareLines(lineEncoding ¤t, const lineEncoding &Neighbour)
void InitUnion(const LabelType size)
Base class for all process objects that output image data.
TInputImage::SizeType SizeType
unsigned long SizeValueType
void PrintSelf(std::ostream &os, Indent indent) const
InputImageType::IndexType where
TOutputImage::SizeType OutputSizeType
UnionFindType m_UnionFind
static const unsigned int ImageDimension
void BeforeThreadedGenerateData()
virtual ~BinaryImageToLabelMapFilter()
Superclass::InputImagePointer InputImagePointer
TOutputImage::RegionType::SizeType OutSizeType
TOutputImage::PixelType OutputImagePixelType
TInputImage InputImageType
Implements progress tracking for a filter.
Barrier::Pointer m_Barrier
void LinkLabels(const LabelType lab1, const LabelType lab2)
BinaryImageToLabelMapFilter Self
std::vector< lineEncoding > LineMapType
SmartPointer< Self > Pointer
std::vector< SizeValueType > m_NumberOfLabels
Label the connected components in a binary image and produce a collection of label objects...
void ThreadedGenerateData(const RegionType &outputRegionForThread, ThreadIdType threadId)
void operator=(const Self &)
TOutputImage::PixelType OutputPixelType
static const unsigned int InputImageDimension
Base class for filters that take an image as input and produce an image as output.
UnionFindType m_Consecutive
TOutputImage::IndexType OutputIndexType
Control indentation during Print() invocation.
void FillOutput(const LineMapType &LineMap, ProgressReporter &progress)
bool CheckNeighbors(const OutputIndexType &A, const OutputIndexType &B)
TOutputImage::RegionType RegionType
std::vector< OffsetValueType > OffsetVectorType
LabelType LookupSet(const LabelType label)
#define itkConceptMacro(name, concept)
TInputImage::IndexType IndexType
Base class for all data objects in ITK.
InputPixelType m_InputForegroundValue
unsigned int ThreadIdType