18 #ifndef sitkBinaryMedianImageFilter_h
19 #define sitkBinaryMedianImageFilter_h
74 SITK_RETURN_SELF_TYPE_HEADER
SetRadius ( std::vector<unsigned int> Radius ) { this->m_Radius = std::move(Radius);
return *
this; }
77 SITK_RETURN_SELF_TYPE_HEADER
SetRadius(
unsigned int value ) { this->m_Radius = std::vector<unsigned int>(3, value);
return *
this; }
82 std::vector<unsigned int>
GetRadius()
const {
return this->m_Radius; }\
87 SITK_RETURN_SELF_TYPE_HEADER
SetForegroundValue (
double ForegroundValue ) { this->m_ForegroundValue = ForegroundValue;
return *
this; }
97 SITK_RETURN_SELF_TYPE_HEADER
SetBackgroundValue (
double BackgroundValue ) { this->m_BackgroundValue = BackgroundValue;
return *
this; }
105 std::string
GetName()
const {
return std::string (
"BinaryMedianImageFilter"); }
108 std::string ToString()
const;
120 template <
class TImageType>
Image ExecuteInternal (
const Image& image1 );
129 std::vector<unsigned int> m_Radius{std::vector<unsigned int>(3, 1)};
131 double m_ForegroundValue{1.0};
133 double m_BackgroundValue{0.0};