18#ifndef itkConnectedComponentImageFilter_h
19#define itkConnectedComponentImageFilter_h
58template <
typename TInputImage,
typename TOutputImage,
typename TMaskImage = TInputImage>
98 using SizeType =
typename TInputImage::SizeType;
133 itkSetMacro(FullyConnected,
bool);
134 itkGetConstReferenceMacro(FullyConnected,
bool);
135 itkBooleanMacro(FullyConnected);
210#ifndef ITK_MANUAL_INSTANTIATION
211# if !defined(ITK_WRAPPING_PARSER)
212# include "itkConnectedComponentImageFilter.hxx"
ScanlineFilterCommon< TInputImage, TOutputImage > ScanlineFunctions
void GenerateInputRequestedRegion() override
TInputImage InputImageType
typename MaskImageType::Pointer MaskImagePointer
ConnectedComponentImageFilter Self
typename ScanlineFunctions::InternalLabelType InternalLabelType
OutputPixelType m_BackgroundValue
void PrintSelf(std::ostream &os, Indent indent) const override
typename TInputImage::IndexType IndexType
typename ScanlineFunctions::LineEncodingType LineEncodingType
typename TInputImage::SizeType SizeType
TOutputImage OutputImageType
typename ScanlineFunctions::WorkUnitData WorkUnitData
typename TOutputImage::RegionType RegionType
void EnlargeOutputRequestedRegion(DataObject *output) override
typename ScanlineFunctions::LineEncodingConstIterator LineEncodingConstIterator
void DynamicThreadedGenerateData(const RegionType &) override
~ConnectedComponentImageFilter() override=default
itkGetInputMacro(MaskImage, MaskImageType)
typename ScanlineFunctions::OffsetVectorConstIterator OffsetVectorConstIterator
typename ScanlineFunctions::ConsecutiveVectorType ConsecutiveVectorType
typename TInputImage::InternalPixelType InputInternalPixelType
typename ScanlineFunctions::RunLength RunLength
typename TInputImage::PixelType InputPixelType
typename TInputImage::OffsetType OffsetType
void ThreadedWriteOutput(const RegionType &)
typename TOutputImage::IndexType OutputIndexType
SmartPointer< Self > Pointer
typename TOutputImage::PixelType OutputPixelType
typename ScanlineFunctions::OffsetVectorType OffsetVectorType
SmartPointer< const Self > ConstPointer
TInputImage::ConstPointer m_Input
typename ScanlineFunctions::LineEncodingIterator LineEncodingIterator
typename ScanlineFunctions::OutSizeType OutSizeType
typename TOutputImage::OffsetType OutputOffsetType
ImageToImageFilter< TInputImage, TOutputImage > Superclass
ConnectedComponentImageFilter()
void GenerateData() override
static constexpr unsigned int ImageDimension
static constexpr unsigned int OutputImageDimension
typename ScanlineFunctions::LineMapType LineMapType
itkSetInputMacro(MaskImage, MaskImageType)
typename TOutputImage::PixelType OutputImagePixelType
typename TOutputImage::InternalPixelType OutputInternalPixelType
std::list< IndexType > ListType
typename ScanlineFunctions::UnionFindType UnionFindType
typename TMaskImage::PixelType MaskPixelType
typename TOutputImage::SizeType OutputSizeType
static constexpr unsigned int InputImageDimension
Base class for all data objects in ITK.
typename InputImageType::Pointer InputImagePointer
Control indentation during Print() invocation.
virtual void UnRegister() const noexcept
virtual void Register() const
typename OffsetVectorType::const_iterator OffsetVectorConstIterator
typename TOutputImage::RegionType::SizeType OutSizeType
typename LineEncodingType::const_iterator LineEncodingConstIterator
SizeValueType InternalLabelType
typename LineEncodingType::iterator LineEncodingIterator
std::vector< LineEncodingType > LineMapType
std::vector< RunLength > LineEncodingType
std::vector< OffsetValueType > OffsetVectorType
std::vector< InternalLabelType > UnionFindType
std::vector< OutputPixelType > ConsecutiveVectorType
ScanlineFilterCommon(EnclosingFilter *enclosingFilter)
Implements transparent reference counting.
#define itkConceptMacro(name, concept)
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
SizeValueType IdentifierType