18 #ifndef sitkGrayscaleMorphologicalClosingImageFilter_h
19 #define sitkGrayscaleMorphologicalClosingImageFilter_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 (
"GrayscaleMorphologicalClosingImageFilter"); }
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 );
147 ,
bool safeBorder =
true );
158 ,
bool safeBorder =
true );
#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
bool GetSafeBorder() const
nsstd::auto_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
BasicPixelIDTypeList PixelIDTypeList
The Image class for SimpleITK.
std::string GetName() const
std::vector< uint32_t > m_KernelRadius
GrayscaleMorphologicalClosingImageFilter Self
Image GrayscaleMorphologicalClosing(const Image &, uint32_t radius=1, KernelEnum kernel=sitkBall, bool safeBorder=true)
gray scale dilation of an image
Self & SetSafeBorder(bool SafeBorder)
The base interface for SimpleITK filters that take one input image.