Go to the documentation of this file.
18 #ifndef sitkMedianImageFilter_h
19 #define sitkMedianImageFilter_h
74 SITK_RETURN_SELF_TYPE_HEADER
SetRadius ( std::vector<unsigned int> Radius ) { this->m_Radius = std::move(Radius);
return *
this; }
77 SITK_RETURN_SELF_TYPE_HEADER
SetRadius(
unsigned int value ) { this->m_Radius = std::vector<unsigned int>(3, value);
return *
this; }
81 std::vector<unsigned int>
GetRadius()
const {
return this->m_Radius; }
84 std::string
GetName()
const {
return std::string (
"MedianImageFilter"); }
87 std::string ToString()
const;
99 template <
class TImageType>
Image ExecuteInternal (
const Image& image1 );
101 template <
class TImageType>
Image ExecuteInternalVectorImage (
const Image& image );
109 std::vector<unsigned int> m_Radius{std::vector<unsigned int>(3, 1)};
The Image class for SimpleITK.
Image Median(const Image &image1, std::vector< unsigned int > radius=std::vector< unsigned int >(3, 1))
Applies a median filter to an image.
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
#define SITKBasicFilters_EXPORT
The base interface for SimpleITK filters that take one input image.