18 #ifndef sitkBinaryMedianImageFilter_h
19 #define sitkBinaryMedianImageFilter_h
73 SITK_RETURN_SELF_TYPE_HEADER
SetRadius (
const std::vector<unsigned int> & Radius ) { this->m_Radius = Radius;
return *
this; }
76 SITK_RETURN_SELF_TYPE_HEADER
SetRadius(
unsigned int value ) { this->m_Radius = std::vector<unsigned int>(3, value);
return *
this; }
82 std::vector<unsigned int>
GetRadius()
const {
return this->m_Radius; }
87 SITK_RETURN_SELF_TYPE_HEADER
SetForegroundValue (
double ForegroundValue ) { this->m_ForegroundValue = ForegroundValue;
return *
this; }
97 SITK_RETURN_SELF_TYPE_HEADER
SetBackgroundValue (
double BackgroundValue ) { this->m_BackgroundValue = BackgroundValue;
return *
this; }
104 std::string
GetName()
const {
return std::string (
"BinaryMedianImageFilter"); }
107 std::string ToString()
const;
115 Image Execute (
const Image& image1,
const std::vector<unsigned int> & radius,
double foregroundValue,
double backgroundValue );
121 typedef Image (Self::*MemberFunctionType)(
const Image& image1 );
122 template <
class TImageType>
Image ExecuteInternal (
const Image& image1 );
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
Image BinaryMedian(const Image &image1, const std::vector< unsigned int > &radius=std::vector< unsigned int >(3, 1), double foregroundValue=1.0, double backgroundValue=0.0)
Applies a version of the median filter optimized for binary images.
The Image class for SimpleITK.
The base interface for SimpleITK filters that take one input image.