18 #ifndef sitkBinaryMorphologicalOpeningImageFilter_h
19 #define sitkBinaryMorphologicalOpeningImageFilter_h
73 SITK_RETURN_SELF_TYPE_HEADER
SetBackgroundValue (
double BackgroundValue ) { this->m_BackgroundValue = BackgroundValue;
return *
this; }
83 SITK_RETURN_SELF_TYPE_HEADER
SetForegroundValue (
double ForegroundValue ) { this->m_ForegroundValue = ForegroundValue;
return *
this; }
90 SITK_RETURN_SELF_TYPE_HEADER SetKernelRadius(
uint32_t r);
99 SITK_RETURN_SELF_TYPE_HEADER SetKernelRadius(
const std::vector<uint32_t> &r );
100 std::vector<uint32_t> GetKernelRadius()
const;
104 SITK_RETURN_SELF_TYPE_HEADER SetKernelType(
KernelEnum t);
106 SITK_RETURN_SELF_TYPE_HEADER SetKernelType(KernelType t);
111 std::string
GetName()
const {
return std::string (
"BinaryMorphologicalOpeningImageFilter"); }
114 std::string ToString()
const;
122 Image Execute (
const Image& image1,
double backgroundValue,
double foregroundValue );
129 typedef Image (Self::*MemberFunctionType)(
const Image& image1 );
130 template <
class TImageType>
Image ExecuteInternal (
const Image& image1 );
158 ,
double backgroundValue = 0.0,
double foregroundValue = 1.0 );
169 ,
double backgroundValue = 0.0,
double foregroundValue = 1.0 );
typelist::MakeTypeList< BasicPixelID< int8_t >, BasicPixelID< uint8_t >, BasicPixelID< int16_t >, BasicPixelID< uint16_t >, BasicPixelID< int32_t >, BasicPixelID< uint32_t > >::Type IntegerPixelIDTypeList
BinaryMorphologicalOpeningImageFilter Self
nsstd::auto_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
#define SITKBasicFilters_EXPORT
double GetForegroundValue() const
double GetBackgroundValue() const
std::string GetName() const
binary morphological opening of an image.
The main Image class for SimpleITK.
Self & SetForegroundValue(double ForegroundValue)
std::vector< uint32_t > m_KernelRadius
Image BinaryMorphologicalOpening(const Image &, uint32_t radius=1, KernelEnum kernel=sitkBall, double backgroundValue=0.0, double foregroundValue=1.0)
The base interface for SimpleITK filters that take one input image.
Self & SetBackgroundValue(double BackgroundValue)
IntegerPixelIDTypeList PixelIDTypeList