18 #ifndef sitkBlackTopHatImageFilter_h
19 #define sitkBlackTopHatImageFilter_h
64 SITK_RETURN_SELF_TYPE_HEADER
SetKernelRadius ( std::vector<unsigned int> KernelRadius ) { this->m_KernelRadius = std::move(KernelRadius);
return *
this; }
67 SITK_RETURN_SELF_TYPE_HEADER
SetKernelRadius(
unsigned int value ) { this->m_KernelRadius = std::vector<unsigned int>(3, value);
return *
this; }
72 std::vector<unsigned int>
GetKernelRadius()
const {
return this->m_KernelRadius; }\
87 SITK_RETURN_SELF_TYPE_HEADER
SetSafeBorder (
bool SafeBorder ) { this->m_SafeBorder = SafeBorder;
return *
this; }
90 SITK_RETURN_SELF_TYPE_HEADER
SafeBorderOn() {
return this->SetSafeBorder(
true); }
91 SITK_RETURN_SELF_TYPE_HEADER
SafeBorderOff() {
return this->SetSafeBorder(
false); }
99 std::string
GetName()
const {
return std::string (
"BlackTopHatImageFilter"); }
102 std::string ToString()
const;
114 template <
class TImageType>
Image ExecuteInternal (
const Image& image1 );
123 std::vector<unsigned int> m_KernelRadius{std::vector<uint32_t>(3, 1)};
128 bool m_SafeBorder{
true};