18 #ifndef sitkWhiteTopHatImageFilter_h
19 #define sitkWhiteTopHatImageFilter_h
67 SITK_RETURN_SELF_TYPE_HEADER
SetSafeBorder (
bool SafeBorder ) { this->m_SafeBorder = SafeBorder;
return *
this; }
70 SITK_RETURN_SELF_TYPE_HEADER
SafeBorderOn() {
return this->SetSafeBorder(
true); }
71 SITK_RETURN_SELF_TYPE_HEADER
SafeBorderOff() {
return this->SetSafeBorder(
false); }
78 SITK_RETURN_SELF_TYPE_HEADER SetKernelRadius(
uint32_t r);
87 SITK_RETURN_SELF_TYPE_HEADER SetKernelRadius(
const std::vector<uint32_t> &r );
88 std::vector<uint32_t> GetKernelRadius()
const;
92 SITK_RETURN_SELF_TYPE_HEADER SetKernelType(
KernelEnum t);
94 SITK_RETURN_SELF_TYPE_HEADER SetKernelType(KernelType t);
99 std::string
GetName()
const {
return std::string (
"WhiteTopHatImageFilter"); }
102 std::string ToString()
const;
110 Image Execute (
const Image& image1,
bool safeBorder );
118 template <
class TImageType>
Image ExecuteInternal (
const Image& image1 );
145 ,
bool safeBorder =
true );
156 ,
bool safeBorder =
true );