18 #ifndef sitkVotingBinaryIterativeHoleFillingImageFilter_h
19 #define sitkVotingBinaryIterativeHoleFillingImageFilter_h
75 SITK_RETURN_SELF_TYPE_HEADER
SetRadius (
const std::vector<unsigned int> & Radius ) { this->m_Radius = Radius;
return *
this; }
78 SITK_RETURN_SELF_TYPE_HEADER
SetRadius(
unsigned int value ) { this->m_Radius = std::vector<unsigned int>(3, value);
return *
this; }
84 std::vector<unsigned int>
GetRadius()
const {
return this->m_Radius; }
89 SITK_RETURN_SELF_TYPE_HEADER
SetMaximumNumberOfIterations (
unsigned int MaximumNumberOfIterations ) { this->m_MaximumNumberOfIterations = MaximumNumberOfIterations;
return *
this; }
99 SITK_RETURN_SELF_TYPE_HEADER
SetMajorityThreshold (
unsigned int MajorityThreshold ) { this->m_MajorityThreshold = MajorityThreshold;
return *
this; }
109 SITK_RETURN_SELF_TYPE_HEADER
SetForegroundValue (
double ForegroundValue ) { this->m_ForegroundValue = ForegroundValue;
return *
this; }
119 SITK_RETURN_SELF_TYPE_HEADER
SetBackgroundValue (
double BackgroundValue ) { this->m_BackgroundValue = BackgroundValue;
return *
this; }
126 std::string
GetName()
const {
return std::string (
"VotingBinaryIterativeHoleFillingImageFilter"); }
129 std::string ToString()
const;
137 Image Execute (
const Image& image1,
const std::vector<unsigned int> & radius,
unsigned int maximumNumberOfIterations,
unsigned int majorityThreshold,
double foregroundValue,
double backgroundValue );
144 template <
class TImageType>
Image ExecuteInternal (
const Image& image1 );