18 #ifndef sitkVotingBinaryIterativeHoleFillingImageFilter_h
19 #define sitkVotingBinaryIterativeHoleFillingImageFilter_h
78 SITK_RETURN_SELF_TYPE_HEADER
SetRadius ( std::vector<unsigned int> Radius ) { this->m_Radius = std::move(Radius);
return *
this; }
81 SITK_RETURN_SELF_TYPE_HEADER
SetRadius(
unsigned int value ) { this->m_Radius = std::vector<unsigned int>(3, value);
return *
this; }
86 std::vector<unsigned int>
GetRadius()
const {
return this->m_Radius; }\
91 SITK_RETURN_SELF_TYPE_HEADER
SetMaximumNumberOfIterations (
unsigned int MaximumNumberOfIterations ) { this->m_MaximumNumberOfIterations = MaximumNumberOfIterations;
return *
this; }
101 SITK_RETURN_SELF_TYPE_HEADER
SetMajorityThreshold (
unsigned int MajorityThreshold ) { this->m_MajorityThreshold = MajorityThreshold;
return *
this; }
111 SITK_RETURN_SELF_TYPE_HEADER
SetForegroundValue (
double ForegroundValue ) { this->m_ForegroundValue = ForegroundValue;
return *
this; }
121 SITK_RETURN_SELF_TYPE_HEADER
SetBackgroundValue (
double BackgroundValue ) { this->m_BackgroundValue = BackgroundValue;
return *
this; }
129 std::string
GetName()
const {
return std::string (
"VotingBinaryIterativeHoleFillingImageFilter"); }
132 std::string ToString()
const;
144 template <
class TImageType>
Image ExecuteInternal (
const Image& image1 );
153 std::vector<unsigned int> m_Radius{std::vector<unsigned int>(3, 1)};
155 unsigned int m_MaximumNumberOfIterations{10u};
157 unsigned int m_MajorityThreshold{1u};
159 double m_ForegroundValue{1.0};
161 double m_BackgroundValue{0.0};