18 #ifndef itkVotingBinaryHoleFillingImageFilter_h
19 #define itkVotingBinaryHoleFillingImageFilter_h
40 template<
typename TInputImage,
typename TOutputImage >
48 static constexpr
unsigned int InputImageDimension = TInputImage::ImageDimension;
49 static constexpr
unsigned int OutputImageDimension = TOutputImage::ImageDimension;
83 itkGetConstReferenceMacro(MajorityThreshold,
unsigned int);
84 itkSetMacro(MajorityThreshold,
unsigned int);
88 itkGetConstReferenceMacro(NumberOfPixelsChanged,
SizeValueType);
90 #ifdef ITK_USE_CONCEPT_CHECKING
102 void PrintSelf(std::ostream & os,
Indent indent)
const override;
108 { this->Superclass::SetBirthThreshold(value); }
110 { this->Superclass::SetSurvivalThreshold(value); }
123 void ThreadedGenerateData(
const OutputImageRegionType & outputRegionForThread,
128 itkExceptionMacro(
"This class requires threadId so it must use classic multi-threading model");
133 void BeforeThreadedGenerateData()
override;
135 void AfterThreadedGenerateData()
override;
147 #ifndef ITK_MANUAL_INSTANTIATION
148 #include "itkVotingBinaryHoleFillingImageFilter.hxx"
void DynamicThreadedGenerateData(const OutputImageRegionType &) override
unsigned long SizeValueType
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 InputImageType::SizeValueType SizeValueType
Fills in holes and cavities by applying a voting operation on each pixel.
TInputImage InputImageType
SizeValueType m_NumberOfPixelsChanged
void SetBirthThreshold(const unsigned int value) override
typename OutputImageType::PixelType OutputPixelType
unsigned int m_MajorityThreshold
ImageBaseType::SizeType SizeType
typename OutputImageType::RegionType OutputImageRegionType
TOutputImage OutputImageType
unsigned int ThreadIdType
void SetSurvivalThreshold(const unsigned int value) override
typename InputImageType::RegionType InputImageRegionType
Array< SizeValueType > m_Count
typename InputImageType::PixelType InputPixelType
Control indentation during Print() invocation.
Applies a voting operation in a neighborhood of each pixel.
ImageBaseType::RegionType RegionType
#define itkConceptMacro(name, concept)
typename InputImageType::SizeType InputSizeType