18 #ifndef sitkVotingBinaryHoleFillingImageFilter_h
19 #define sitkVotingBinaryHoleFillingImageFilter_h
70 SITK_RETURN_SELF_TYPE_HEADER
SetRadius (
const std::vector<unsigned int> & Radius ) { this->m_Radius = Radius;
return *
this; }
73 SITK_RETURN_SELF_TYPE_HEADER
SetRadius(
unsigned int value ) { this->m_Radius = std::vector<unsigned int>(3, value);
return *
this; }
78 std::vector<unsigned int>
GetRadius()
const {
return this->m_Radius; }
83 SITK_RETURN_SELF_TYPE_HEADER
SetMajorityThreshold (
unsigned int MajorityThreshold ) { this->m_MajorityThreshold = MajorityThreshold;
return *
this; }
92 SITK_RETURN_SELF_TYPE_HEADER
SetForegroundValue (
double ForegroundValue ) { this->m_ForegroundValue = ForegroundValue;
return *
this; }
100 SITK_RETURN_SELF_TYPE_HEADER
SetBackgroundValue (
double BackgroundValue ) { this->m_BackgroundValue = BackgroundValue;
return *
this; }
106 std::string
GetName()
const {
return std::string (
"VotingBinaryHoleFillingImageFilter"); }
109 std::string ToString()
const;
117 Image Execute (
const Image& image1,
const std::vector<unsigned int> & radius,
unsigned int majorityThreshold,
double foregroundValue,
double backgroundValue );
124 template <
class TImageType>
Image ExecuteInternal (
const Image& image1 );