18 #ifndef sitkBinaryMorphologicalClosingImageFilter_h
19 #define sitkBinaryMorphologicalClosingImageFilter_h
73 SITK_RETURN_SELF_TYPE_HEADER
SetForegroundValue (
double ForegroundValue ) { this->m_ForegroundValue = ForegroundValue;
return *
this; }
83 SITK_RETURN_SELF_TYPE_HEADER
SetSafeBorder (
bool SafeBorder ) { this->m_SafeBorder = SafeBorder;
return *
this; }
86 SITK_RETURN_SELF_TYPE_HEADER
SafeBorderOn() {
return this->SetSafeBorder(
true); }
87 SITK_RETURN_SELF_TYPE_HEADER
SafeBorderOff() {
return this->SetSafeBorder(
false); }
94 SITK_RETURN_SELF_TYPE_HEADER SetKernelRadius(
uint32_t r);
103 SITK_RETURN_SELF_TYPE_HEADER SetKernelRadius(
const std::vector<uint32_t> &r );
104 std::vector<uint32_t> GetKernelRadius()
const;
108 SITK_RETURN_SELF_TYPE_HEADER SetKernelType(
KernelEnum t);
110 SITK_RETURN_SELF_TYPE_HEADER SetKernelType(KernelType t);
115 std::string
GetName()
const {
return std::string (
"BinaryMorphologicalClosingImageFilter"); }
118 std::string ToString()
const;
126 Image Execute (
const Image& image1,
double foregroundValue,
bool safeBorder );
133 typedef Image (Self::*MemberFunctionType)(
const Image& image1 );
134 template <
class TImageType>
Image ExecuteInternal (
const Image& image1 );
162 ,
double foregroundValue = 1.0,
bool safeBorder =
true );
173 ,
double foregroundValue = 1.0,
bool safeBorder =
true );
Self & SetSafeBorder(bool SafeBorder)
typelist::MakeTypeList< BasicPixelID< int8_t >, BasicPixelID< uint8_t >, BasicPixelID< int16_t >, BasicPixelID< uint16_t >, BasicPixelID< int32_t >, BasicPixelID< uint32_t > >::Type IntegerPixelIDTypeList
#define SITKBasicFilters_EXPORT
binary morphological closing of an image.
Image BinaryMorphologicalClosing(const Image &, uint32_t radius=1, KernelEnum kernel=sitkBall, double foregroundValue=1.0, bool safeBorder=true)
nsstd::auto_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
bool GetSafeBorder() const
std::vector< uint32_t > m_KernelRadius
BinaryMorphologicalClosingImageFilter Self
The Image class for SimpleITK.
std::string GetName() const
double GetForegroundValue() const
Self & SetForegroundValue(double ForegroundValue)
IntegerPixelIDTypeList PixelIDTypeList
The base interface for SimpleITK filters that take one input image.