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 );
117 typedef Image (Self::*MemberFunctionType)(
const Image& image1 );
118 template <
class TImageType>
Image ExecuteInternal (
const Image& image1 );
145 ,
bool safeBorder =
true );
156 ,
bool safeBorder =
true );
#define SITKBasicFilters_EXPORT
BasicPixelIDTypeList PixelIDTypeList
bool GetSafeBorder() const
typelist::MakeTypeList< BasicPixelID< int8_t >, BasicPixelID< uint8_t >, BasicPixelID< int16_t >, BasicPixelID< uint16_t >, BasicPixelID< int32_t >, BasicPixelID< uint32_t >, BasicPixelID< float >, BasicPixelID< double > >::Type BasicPixelIDTypeList
WhiteTopHatImageFilter Self
std::vector< uint32_t > m_KernelRadius
Self & SetSafeBorder(bool SafeBorder)
White top hat extracts local maxima that are larger than the structuring element. ...
nsstd::auto_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
The Image class for SimpleITK.
Image WhiteTopHat(const Image &, uint32_t radius=1, KernelEnum kernel=sitkBall, bool safeBorder=true)
std::string GetName() const
The base interface for SimpleITK filters that take one input image.