18 #ifndef sitkVotingBinaryImageFilter_h
19 #define sitkVotingBinaryImageFilter_h
71 SITK_RETURN_SELF_TYPE_HEADER
SetRadius ( std::vector<unsigned int> Radius ) { this->m_Radius = std::move(Radius);
return *
this; }
74 SITK_RETURN_SELF_TYPE_HEADER
SetRadius(
unsigned int value ) { this->m_Radius = std::vector<unsigned int>(3, value);
return *
this; }
79 std::vector<unsigned int>
GetRadius()
const {
return this->m_Radius; }\
84 SITK_RETURN_SELF_TYPE_HEADER
SetBirthThreshold (
unsigned int BirthThreshold ) { this->m_BirthThreshold = BirthThreshold;
return *
this; }
94 SITK_RETURN_SELF_TYPE_HEADER
SetSurvivalThreshold (
unsigned int SurvivalThreshold ) { this->m_SurvivalThreshold = SurvivalThreshold;
return *
this; }
104 SITK_RETURN_SELF_TYPE_HEADER
SetForegroundValue (
double ForegroundValue ) { this->m_ForegroundValue = ForegroundValue;
return *
this; }
114 SITK_RETURN_SELF_TYPE_HEADER
SetBackgroundValue (
double BackgroundValue ) { this->m_BackgroundValue = BackgroundValue;
return *
this; }
122 std::string
GetName()
const {
return std::string (
"VotingBinaryImageFilter"); }
125 std::string ToString()
const;
137 template <
class TImageType>
Image ExecuteInternal (
const Image& image1 );
146 std::vector<unsigned int> m_Radius{std::vector<unsigned int>(3, 1)};
148 unsigned int m_BirthThreshold{1u};
150 unsigned int m_SurvivalThreshold{1u};
152 double m_ForegroundValue{1.0};
154 double m_BackgroundValue{0.0};
169 SITKBasicFilters_EXPORT Image VotingBinary (
const Image& image1, std::vector<unsigned int> radius = std::vector<unsigned int>(3, 1),
unsigned int birthThreshold = 1u,
unsigned int survivalThreshold = 1u,
double foregroundValue = 1.0,
double backgroundValue = 0.0 );