18 #ifndef sitkBinaryErodeImageFilter_h
19 #define sitkBinaryErodeImageFilter_h
81 SITK_RETURN_SELF_TYPE_HEADER
SetBackgroundValue (
double BackgroundValue ) { this->m_BackgroundValue = BackgroundValue;
return *
this; }
89 SITK_RETURN_SELF_TYPE_HEADER
SetForegroundValue (
double ForegroundValue ) { this->m_ForegroundValue = ForegroundValue;
return *
this; }
97 SITK_RETURN_SELF_TYPE_HEADER
SetBoundaryToForeground (
bool BoundaryToForeground ) { this->m_BoundaryToForeground = BoundaryToForeground;
return *
this; }
107 SITK_RETURN_SELF_TYPE_HEADER SetKernelRadius(
uint32_t r);
116 SITK_RETURN_SELF_TYPE_HEADER SetKernelRadius(
const std::vector<uint32_t> &r );
117 std::vector<uint32_t> GetKernelRadius()
const;
121 SITK_RETURN_SELF_TYPE_HEADER SetKernelType(
KernelEnum t);
123 SITK_RETURN_SELF_TYPE_HEADER SetKernelType(KernelType t);
128 std::string
GetName()
const {
return std::string (
"BinaryErodeImageFilter"); }
131 std::string ToString()
const;
139 Image Execute (
const Image& image1,
double backgroundValue,
double foregroundValue,
bool boundaryToForeground );
146 typedef Image (Self::*MemberFunctionType)(
const Image& image1 );
147 template <
class TImageType>
Image ExecuteInternal (
const Image& image1 );
179 ,
double backgroundValue = 0.0,
double foregroundValue = 1.0,
bool boundaryToForeground =
true );
190 ,
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 main 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