18 #ifndef sitkGrayscaleMorphologicalOpeningImageFilter_h
19 #define sitkGrayscaleMorphologicalOpeningImageFilter_h
69 SITK_RETURN_SELF_TYPE_HEADER
SetSafeBorder (
bool SafeBorder ) { this->m_SafeBorder = SafeBorder;
return *
this; }
72 SITK_RETURN_SELF_TYPE_HEADER
SafeBorderOn() {
return this->SetSafeBorder(
true); }
73 SITK_RETURN_SELF_TYPE_HEADER
SafeBorderOff() {
return this->SetSafeBorder(
false); }
80 SITK_RETURN_SELF_TYPE_HEADER SetKernelRadius(
uint32_t r);
89 SITK_RETURN_SELF_TYPE_HEADER SetKernelRadius(
const std::vector<uint32_t> &r );
90 std::vector<uint32_t> GetKernelRadius()
const;
94 SITK_RETURN_SELF_TYPE_HEADER SetKernelType(
KernelEnum t);
96 SITK_RETURN_SELF_TYPE_HEADER SetKernelType(KernelType t);
101 std::string
GetName()
const {
return std::string (
"GrayscaleMorphologicalOpeningImageFilter"); }
104 std::string ToString()
const;
112 Image Execute (
const Image& image1,
bool safeBorder );
120 template <
class TImageType>
Image ExecuteInternal (
const Image& image1 );
147 ,
bool safeBorder =
true );
158 ,
bool safeBorder =
true );