18 #ifndef sitkGrayscaleMorphologicalOpeningImageFilter_h
19 #define sitkGrayscaleMorphologicalOpeningImageFilter_h
63 SITK_RETURN_SELF_TYPE_HEADER
SetKernelRadius ( std::vector<unsigned int> KernelRadius ) { this->m_KernelRadius = std::move(KernelRadius);
return *
this; }
66 SITK_RETURN_SELF_TYPE_HEADER
SetKernelRadius(
unsigned int value ) { this->m_KernelRadius = std::vector<unsigned int>(3, value);
return *
this; }
71 std::vector<unsigned int>
GetKernelRadius()
const {
return this->m_KernelRadius; }\
86 SITK_RETURN_SELF_TYPE_HEADER
SetSafeBorder (
bool SafeBorder ) { this->m_SafeBorder = SafeBorder;
return *
this; }
89 SITK_RETURN_SELF_TYPE_HEADER
SafeBorderOn() {
return this->SetSafeBorder(
true); }
90 SITK_RETURN_SELF_TYPE_HEADER
SafeBorderOff() {
return this->SetSafeBorder(
false); }
98 std::string
GetName()
const {
return std::string (
"GrayscaleMorphologicalOpeningImageFilter"); }
101 std::string ToString()
const;
113 template <
class TImageType>
Image ExecuteInternal (
const Image& image1 );
122 std::vector<unsigned int> m_KernelRadius{std::vector<uint32_t>(3, 1)};
127 bool m_SafeBorder{
true};