18 #ifndef sitkMedianImageFilter_h
19 #define sitkMedianImageFilter_h
80 SITK_RETURN_SELF_TYPE_HEADER
SetRadius (
const std::vector<unsigned int> & Radius ) { this->m_Radius = Radius;
return *
this; }
83 SITK_RETURN_SELF_TYPE_HEADER
SetRadius(
unsigned int value ) { this->m_Radius = std::vector<unsigned int>(3, value);
return *
this; }
88 std::vector<unsigned int>
GetRadius()
const {
return this->m_Radius; }
90 std::string
GetName()
const {
return std::string (
"MedianImageFilter"); }
93 std::string ToString()
const;
101 Image Execute (
const Image& image1,
const std::vector<unsigned int> & radius );
108 typedef Image (Self::*MemberFunctionType)(
const Image& image1 );
109 template <
class TImageType>
Image ExecuteInternal (
const Image& image1 );
112 template <
class TImageType>
Image ExecuteInternalVectorImage (
const Image& image );
#define SITKBasicFilters_EXPORT
typelist::MakeTypeList< BasicPixelID< int8_t >, BasicPixelID< uint8_t >, BasicPixelID< int16_t >, BasicPixelID< uint16_t >, BasicPixelID< int32_t >, BasicPixelID< uint32_t >, BasicPixelID< float >, BasicPixelID< double > >::Type BasicPixelIDTypeList
Image Median(const Image &image1, const std::vector< unsigned int > &radius=std::vector< unsigned int >(3, 1))
Applies a median filter to an image.
The main Image class for SimpleITK.
The base interface for SimpleITK filters that take one input image.