18 #ifndef itkVotingBinaryHoleFillingImageFilter_h
19 #define itkVotingBinaryHoleFillingImageFilter_h
41 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
101 PrintSelf(std::ostream & os,
Indent indent)
const override;
109 this->Superclass::SetBirthThreshold(value);
114 this->Superclass::SetSurvivalThreshold(value);
129 ThreadedGenerateData(
const OutputImageRegionType & outputRegionForThread,
ThreadIdType threadId)
override;
134 itkExceptionMacro(
"This class requires threadId so it must use classic multi-threading model");
140 BeforeThreadedGenerateData()
override;
143 AfterThreadedGenerateData()
override;
146 unsigned int m_MajorityThreshold{};
155 #ifndef ITK_MANUAL_INSTANTIATION
156 # include "itkVotingBinaryHoleFillingImageFilter.hxx"