18 #ifndef sitkBinaryErodeImageFilter_h
19 #define sitkBinaryErodeImageFilter_h
73 SITK_RETURN_SELF_TYPE_HEADER
SetKernelRadius ( std::vector<unsigned int> KernelRadius ) { this->m_KernelRadius = std::move(KernelRadius);
return *
this; }
76 SITK_RETURN_SELF_TYPE_HEADER
SetKernelRadius(
unsigned int value ) { this->m_KernelRadius = std::vector<unsigned int>(3, value);
return *
this; }
81 std::vector<unsigned int>
GetKernelRadius()
const {
return this->m_KernelRadius; }\
95 SITK_RETURN_SELF_TYPE_HEADER
SetBackgroundValue (
double BackgroundValue ) { this->m_BackgroundValue = BackgroundValue;
return *
this; }
103 SITK_RETURN_SELF_TYPE_HEADER
SetForegroundValue (
double ForegroundValue ) { this->m_ForegroundValue = ForegroundValue;
return *
this; }
111 SITK_RETURN_SELF_TYPE_HEADER
SetBoundaryToForeground (
bool BoundaryToForeground ) { this->m_BoundaryToForeground = BoundaryToForeground;
return *
this; }
122 std::string
GetName()
const {
return std::string (
"BinaryErodeImageFilter"); }
125 std::string ToString()
const;
137 template <
class TImageType>
Image ExecuteInternal (
const Image& image1 );
146 std::vector<unsigned int> m_KernelRadius{std::vector<uint32_t>(3, 1)};
151 double m_BackgroundValue{0.0};
154 double m_ForegroundValue{1.0};
157 bool m_BoundaryToForeground{
true};