Go to the documentation of this file.
18 #ifndef sitkErodeObjectMorphologyImageFilter_h
19 #define sitkErodeObjectMorphologyImageFilter_h
66 SITK_RETURN_SELF_TYPE_HEADER
SetKernelRadius ( std::vector<unsigned int> KernelRadius ) { this->m_KernelRadius = std::move(KernelRadius);
return *
this; }
69 SITK_RETURN_SELF_TYPE_HEADER
SetKernelRadius(
unsigned int value ) { this->m_KernelRadius = std::vector<unsigned int>(3, value);
return *
this; }
74 std::vector<unsigned int>
GetKernelRadius()
const {
return this->m_KernelRadius; }\
88 SITK_RETURN_SELF_TYPE_HEADER
SetObjectValue (
double ObjectValue ) { this->m_ObjectValue = ObjectValue;
return *
this; }
97 SITK_RETURN_SELF_TYPE_HEADER
SetBackgroundValue (
double BackgroundValue ) { this->m_BackgroundValue = BackgroundValue;
return *
this; }
105 std::string
GetName()
const {
return std::string (
"ErodeObjectMorphologyImageFilter"); }
108 std::string ToString()
const;
120 template <
class TImageType>
Image ExecuteInternal (
const Image& image1 );
129 std::vector<unsigned int> m_KernelRadius{std::vector<uint32_t>(3, 1)};
134 double m_ObjectValue{1};
136 double m_BackgroundValue{0};
The Image class for SimpleITK.
Self & SetKernelRadius(unsigned int value)
std::unique_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
std::vector< unsigned int > GetKernelRadius() const
typelist2::typelist< BasicPixelID< int8_t >, BasicPixelID< uint8_t >, BasicPixelID< int16_t >, BasicPixelID< uint16_t >, BasicPixelID< int32_t >, BasicPixelID< uint32_t >, BasicPixelID< float >, BasicPixelID< double > > BasicPixelIDTypeList
KernelEnum GetKernelType() const
BasicPixelIDTypeList PixelIDTypeList
double GetBackgroundValue() const
Self & SetObjectValue(double ObjectValue)
@ sitkBall
Ball (sphere in 3D, circle in 2D) shaped structuring element.
double GetObjectValue() const
Erosion of an object in an image.
Self & SetKernelType(KernelEnum KernelType)
#define SITKBasicFilters_EXPORT
Image ErodeObjectMorphology(const Image &image1, std::vector< unsigned int > kernelRadius=std::vector< uint32_t >(3, 1), KernelEnum kernelType=itk::simple::sitkBall, double objectValue=1, double backgroundValue=0)
Erosion of an object in an image.
The base interface for SimpleITK filters that take one input image.
Self & SetBackgroundValue(double BackgroundValue)
std::string GetName() const
Self & SetKernelRadius(std::vector< unsigned int > KernelRadius)
Image(Self::*)(const Image &image1) MemberFunctionType