18 #ifndef sitkBlackTopHatImageFilter_h
19 #define sitkBlackTopHatImageFilter_h
69 SITK_RETURN_SELF_TYPE_HEADER
SetSafeBorder (
bool SafeBorder ) { this->m_SafeBorder = SafeBorder;
return *
this; }
72 SITK_RETURN_SELF_TYPE_HEADER
SafeBorderOn() {
return this->SetSafeBorder(
true); }
73 SITK_RETURN_SELF_TYPE_HEADER
SafeBorderOff() {
return this->SetSafeBorder(
false); }
80 SITK_RETURN_SELF_TYPE_HEADER SetKernelRadius(
uint32_t r);
89 SITK_RETURN_SELF_TYPE_HEADER SetKernelRadius(
const std::vector<uint32_t> &r );
90 std::vector<uint32_t> GetKernelRadius()
const;
94 SITK_RETURN_SELF_TYPE_HEADER SetKernelType(
KernelEnum t);
96 SITK_RETURN_SELF_TYPE_HEADER SetKernelType(KernelType t);
101 std::string
GetName()
const {
return std::string (
"BlackTopHatImageFilter"); }
104 std::string ToString()
const;
112 Image Execute (
const Image& image1,
bool safeBorder );
119 typedef Image (Self::*MemberFunctionType)(
const Image& image1 );
120 template <
class TImageType>
Image ExecuteInternal (
const Image& image1 );
148 ,
bool safeBorder =
true );
159 ,
bool safeBorder =
true );
BasicPixelIDTypeList PixelIDTypeList
#define SITKBasicFilters_EXPORT
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
Self & SetSafeBorder(bool SafeBorder)
std::string GetName() const
nsstd::auto_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
BlackTopHatImageFilter Self
std::vector< uint32_t > m_KernelRadius
The main Image class for SimpleITK.
The base interface for SimpleITK filters that take one input image.
Black top hat extracts local minima that are smaller than the structuring element.
Image BlackTopHat(const Image &, uint32_t radius=1, KernelEnum kernel=sitkBall, bool safeBorder=true)
bool GetSafeBorder() const