18 #ifndef sitkBinaryErodeImageFilter_h
19 #define sitkBinaryErodeImageFilter_h
75 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; }
91 SITK_RETURN_SELF_TYPE_HEADER
SetBoundaryToForeground (
bool BoundaryToForeground ) { this->m_BoundaryToForeground = BoundaryToForeground;
return *
this; }
101 SITK_RETURN_SELF_TYPE_HEADER SetKernelRadius(
uint32_t r);
110 SITK_RETURN_SELF_TYPE_HEADER SetKernelRadius(
const std::vector<uint32_t> &r );
111 std::vector<uint32_t> GetKernelRadius()
const;
115 SITK_RETURN_SELF_TYPE_HEADER SetKernelType(
KernelEnum t);
117 SITK_RETURN_SELF_TYPE_HEADER SetKernelType(KernelType t);
122 std::string
GetName()
const {
return std::string (
"BinaryErodeImageFilter"); }
125 std::string ToString()
const;
133 Image Execute (
const Image& image1,
double backgroundValue,
double foregroundValue,
bool boundaryToForeground );
140 typedef Image (Self::*MemberFunctionType)(
const Image& image1 );
141 template <
class TImageType>
Image ExecuteInternal (
const Image& image1 );
172 ,
double backgroundValue = 0.0,
double foregroundValue = 1.0,
bool boundaryToForeground =
true );
183 ,
double backgroundValue = 0.0,
double foregroundValue = 1.0,
bool boundaryToForeground =
true );
Self & SetBoundaryToForeground(bool BoundaryToForeground)
typelist::MakeTypeList< BasicPixelID< int8_t >, BasicPixelID< uint8_t >, BasicPixelID< int16_t >, BasicPixelID< uint16_t >, BasicPixelID< int32_t >, BasicPixelID< uint32_t > >::Type IntegerPixelIDTypeList
Self & BoundaryToForegroundOff()
bool GetBoundaryToForeground() const
std::vector< uint32_t > m_KernelRadius
#define SITKBasicFilters_EXPORT
BinaryErodeImageFilter Self
double GetBackgroundValue() const
double GetForegroundValue() const
std::string GetName() const
Self & BoundaryToForegroundOn()
bool m_BoundaryToForeground
The Image class for SimpleITK.
Self & SetBackgroundValue(double BackgroundValue)
Self & SetForegroundValue(double ForegroundValue)
The base interface for SimpleITK filters that take one input image.
Image BinaryErode(const Image &, uint32_t radius=1, KernelEnum kernel=sitkBall, double backgroundValue=0.0, double foregroundValue=1.0, bool boundaryToForeground=true)
nsstd::auto_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
IntegerPixelIDTypeList PixelIDTypeList