18 #ifndef itkBinaryImageToLabelMapFilter_h
19 #define itkBinaryImageToLabelMapFilter_h
60 template<
typename TInputImage,
61 typename TOutputImage =
62 LabelMap< LabelObject< SizeValueType, TInputImage::ImageDimension > > >
98 itkStaticConstMacro(
ImageDimension,
unsigned int, TOutputImage::ImageDimension);
126 itkSetMacro(FullyConnected,
bool);
127 itkGetConstReferenceMacro(FullyConnected,
bool);
128 itkBooleanMacro(FullyConnected);
150 #ifdef ITK_USE_CONCEPT_CHECKING
191 void operator=(const
Self &) ITK_DELETE_FUNCTION;
202 typename InputImageType::IndexType
where;
258 #if !defined( ITK_WRAPPING_PARSER )
264 #ifndef ITK_MANUAL_INSTANTIATION
265 #if !defined( ITK_WRAPPING_PARSER )
266 #include "itkBinaryImageToLabelMapFilter.hxx"
void AfterThreadedGenerateData() override
TInputImage::PixelType InputPixelType
std::vector< runLength > lineEncoding
SizeValueType m_NumberOfObjects
BinaryImageToLabelMapFilter()
OutputPixelType m_OutputBackgroundValue
TInputImage::SizeValueType SizeValueType
TOutputImage::OffsetType OutputOffsetType
void SetupLineOffsets(OffsetVectorType &LineOffsets)
signed long OffsetValueType
SmartPointer< const Self > ConstPointer
std::vector< OutputPixelType > ConsecutiveVectorType
void GenerateInputRequestedRegion() override
std::vector< SizeValueType > m_FirstLineIdToJoin
InputImageType::Pointer InputImagePointer
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 InsertSet(const InternalLabelType label)
void EnlargeOutputRequestedRegion(DataObject *) override
Base class for all process objects that output image data.
void PrintSelf(std::ostream &os, Indent indent) const override
SizeValueType CreateConsecutive()
TInputImage::SizeType SizeType
unsigned long SizeValueType
SizeValueType InternalLabelType
InputImageType::IndexType where
std::vector< InternalLabelType > UnionFindType
TOutputImage::SizeType OutputSizeType
ConsecutiveVectorType m_Consecutive
void InitUnion(const InternalLabelType size)
UnionFindType m_UnionFind
static const unsigned int ImageDimension
typedef(Concept::SameDimension< itkGetStaticConstMacro(InputImageDimension), itkGetStaticConstMacro(OutputImageDimension) >) SameDimension
virtual ~BinaryImageToLabelMapFilter()
Superclass::InputImagePointer InputImagePointer
TOutputImage::RegionType::SizeType OutSizeType
TOutputImage::PixelType OutputImagePixelType
TInputImage InputImageType
Divide an image region into several pieces.
virtual const ImageRegionSplitterBase * GetImageRegionSplitter() const override
ImageRegionSplitterDirection::Pointer m_ImageRegionSplitter
void LinkLabels(const InternalLabelType lab1, const InternalLabelType lab2)
unsigned int ThreadIdType
Implements progress tracking for a filter.
Barrier::Pointer m_Barrier
BinaryImageToLabelMapFilter Self
void BeforeThreadedGenerateData() override
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...
TOutputImage::PixelType OutputPixelType
static const unsigned int InputImageDimension
Base class for filters that take an image as input and produce an image as output.
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
InternalLabelType LookupSet(const InternalLabelType label)
#define itkConceptMacro(name, concept)
void ThreadedGenerateData(const RegionType &outputRegionForThread, ThreadIdType threadId) override
TInputImage::IndexType IndexType
Base class for all data objects in ITK.
InputPixelType m_InputForegroundValue