18 #ifndef itkConnectedComponentImageFilter_h
19 #define itkConnectedComponentImageFilter_h
56 template<
typename TInputImage,
typename TOutputImage,
typename TMaskImage = TInputImage >
69 using Superclass::Register;
70 using Superclass::UnRegister;
86 static constexpr
unsigned int ImageDimension = TOutputImage::ImageDimension;
87 static constexpr
unsigned int OutputImageDimension = TOutputImage::ImageDimension;
88 static constexpr
unsigned int InputImageDimension = TInputImage::ImageDimension;
131 itkSetMacro(FullyConnected,
bool);
132 itkGetConstReferenceMacro(FullyConnected,
bool);
133 itkBooleanMacro(FullyConnected);
140 itkGetConstReferenceMacro(ObjectCount,
LabelType);
167 Self::AddOptionalInputName(
"MaskImage",1);
171 void PrintSelf(std::ostream & os,
Indent indent)
const override;
173 void GenerateData()
override;
175 void DynamicThreadedGenerateData(
const RegionType & )
override;
177 void ThreadedWriteOutput(
const RegionType & );
182 void GenerateInputRequestedRegion()
override;
188 void EnlargeOutputRequestedRegion(
DataObject * itkNotUsed(output) )
override;
213 #ifndef ITK_MANUAL_INSTANTIATION
214 #if !defined( ITK_WRAPPING_PARSER )
215 #include "itkConnectedComponentImageFilter.hxx"
typename TOutputImage::PixelType OutputPixelType
typename ScanlineFunctions::RunLength RunLength
Define numeric traits for std::vector.
TInputImage::ConstPointer m_Input
typename TOutputImage::IndexType OutputIndexType
typename LineEncodingType::iterator LineEncodingIterator
std::vector< RunLength > LineEncodingType
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
Base class for all process objects that output image data.
typename TInputImage::InternalPixelType InputInternalPixelType
TInputImage InputImageType
SizeValueType InternalLabelType
Helper class for a group of filters which operate on scan-lines.
typename TOutputImage::OffsetType OutputOffsetType
typename OutputImageType::PixelType OutputImagePixelType
typename InputImageType::Pointer InputImagePointer
typename ScanlineFunctions::WorkUnitData WorkUnitData
OutputRegionType RegionType
typename TOutputImage::InternalPixelType OutputInternalPixelType
ImageBaseType::SizeType SizeType
typename OffsetVectorType::const_iterator OffsetVectorConstIterator
SizeValueType IdentifierType
ImageBaseType::IndexType IndexType
typename MaskImageType::Pointer MaskImagePointer
TOutputImage OutputImageType
typename TInputImage::OffsetType OffsetType
typename TOutputImage::RegionType::SizeType OutSizeType
std::vector< OutputPixelType > ConsecutiveVectorType
ConnectedComponentImageFilter()
std::vector< OffsetValueType > OffsetVectorType
typename TOutputImage::SizeType OutputSizeType
typename TMaskImage::PixelType MaskPixelType
OutputPixelType m_BackgroundValue
Base class for filters that take an image as input and produce an image as output.
std::vector< LineEncodingType > LineMapType
std::list< IndexType > ListType
Control indentation during Print() invocation.
typename TInputImage::SizeType SizeType
typename LineEncodingType::const_iterator LineEncodingConstIterator
ImageBaseType::RegionType RegionType
#define itkConceptMacro(name, concept)
typename TInputImage::PixelType InputPixelType
typename TInputImage::IndexType IndexType
Base class for all data objects in ITK.
std::vector< InternalLabelType > UnionFindType
Label the objects in a binary image.