18 #ifndef sitkWhiteTopHatImageFilter_h
19 #define sitkWhiteTopHatImageFilter_h
62 SITK_RETURN_SELF_TYPE_HEADER
SetKernelRadius ( std::vector<unsigned int> KernelRadius ) { this->m_KernelRadius = std::move(KernelRadius);
return *
this; }
65 SITK_RETURN_SELF_TYPE_HEADER
SetKernelRadius(
unsigned int value ) { this->m_KernelRadius = std::vector<unsigned int>(3, value);
return *
this; }
70 std::vector<unsigned int>
GetKernelRadius()
const {
return this->m_KernelRadius; }\
85 SITK_RETURN_SELF_TYPE_HEADER
SetSafeBorder (
bool SafeBorder ) { this->m_SafeBorder = SafeBorder;
return *
this; }
88 SITK_RETURN_SELF_TYPE_HEADER
SafeBorderOn() {
return this->SetSafeBorder(
true); }
89 SITK_RETURN_SELF_TYPE_HEADER
SafeBorderOff() {
return this->SetSafeBorder(
false); }
97 std::string
GetName()
const {
return std::string (
"WhiteTopHatImageFilter"); }
100 std::string ToString()
const;
112 template <
class TImageType>
Image ExecuteInternal (
const Image& image1 );
121 std::vector<unsigned int> m_KernelRadius{std::vector<uint32_t>(3, 1)};
126 bool m_SafeBorder{
true};