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