18 #ifndef sitkBinaryMorphologicalClosingImageFilter_h
19 #define sitkBinaryMorphologicalClosingImageFilter_h
73 SITK_RETURN_SELF_TYPE_HEADER
SetForegroundValue (
double ForegroundValue ) { this->m_ForegroundValue = ForegroundValue;
return *
this; }
83 SITK_RETURN_SELF_TYPE_HEADER
SetSafeBorder (
bool SafeBorder ) { this->m_SafeBorder = SafeBorder;
return *
this; }
86 SITK_RETURN_SELF_TYPE_HEADER
SafeBorderOn() {
return this->SetSafeBorder(
true); }
87 SITK_RETURN_SELF_TYPE_HEADER
SafeBorderOff() {
return this->SetSafeBorder(
false); }
94 SITK_RETURN_SELF_TYPE_HEADER SetKernelRadius(
uint32_t r);
103 SITK_RETURN_SELF_TYPE_HEADER SetKernelRadius(
const std::vector<uint32_t> &r );
104 std::vector<uint32_t> GetKernelRadius()
const;
108 SITK_RETURN_SELF_TYPE_HEADER SetKernelType(
KernelEnum t);
110 SITK_RETURN_SELF_TYPE_HEADER SetKernelType(KernelType t);
115 std::string
GetName()
const {
return std::string (
"BinaryMorphologicalClosingImageFilter"); }
118 std::string ToString()
const;
126 Image Execute (
const Image& image1,
double foregroundValue,
bool safeBorder );
134 template <
class TImageType>
Image ExecuteInternal (
const Image& image1 );
162 ,
double foregroundValue = 1.0,
bool safeBorder =
true );
173 ,
double foregroundValue = 1.0,
bool safeBorder =
true );