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);
132 itkGetConstReferenceMacro(NumberOfObjects, SizeValueType);
138 itkSetMacro(OutputBackgroundValue, OutputPixelType);
139 itkGetConstMacro(OutputBackgroundValue, OutputPixelType);
146 itkSetMacro(InputForegroundValue, InputPixelType);
147 itkGetConstMacro(InputForegroundValue, InputPixelType);
150 #ifdef ITK_USE_CONCEPT_CHECKING 191 void operator=(const Self &) ITK_DELETE_FUNCTION;
202 typename InputImageType::IndexType
where;
221 void InitUnion(
const InternalLabelType size);
223 void InsertSet(
const InternalLabelType label);
225 InternalLabelType
LookupSet(
const InternalLabelType label);
227 void LinkLabels(
const InternalLabelType lab1,
const InternalLabelType lab2);
233 const OutputIndexType & B);
235 void CompareLines(lineEncoding & current,
const lineEncoding & Neighbour);
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
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes...
void CompareLines(lineEncoding ¤t, const lineEncoding &Neighbour)
void InsertSet(const InternalLabelType label)
void EnlargeOutputRequestedRegion(DataObject *) 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
void PrintSelf(std::ostream &os, Indent indent) const override
static const unsigned int ImageDimension
virtual ~BinaryImageToLabelMapFilter()
Superclass::InputImagePointer InputImagePointer
TOutputImage::RegionType::SizeType OutSizeType
TOutputImage::PixelType OutputImagePixelType
TInputImage InputImageType
Divide an image region into several pieces.
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)
virtual const ImageRegionSplitterBase * GetImageRegionSplitter() const override
void ThreadedGenerateData(const RegionType &outputRegionForThread, ThreadIdType threadId) override
TInputImage::IndexType IndexType
Base class for all data objects in ITK.
InputPixelType m_InputForegroundValue