18 #ifndef sitkBoxMeanImageFilter_h
19 #define sitkBoxMeanImageFilter_h
62 SITK_RETURN_SELF_TYPE_HEADER
SetRadius (
const std::vector<unsigned int> & Radius ) { this->m_Radius = Radius;
return *
this; }
65 SITK_RETURN_SELF_TYPE_HEADER
SetRadius(
unsigned int value ) { this->m_Radius = std::vector<unsigned int>(3, value);
return *
this; }
70 std::vector<unsigned int>
GetRadius()
const {
return this->m_Radius; }
72 std::string
GetName()
const {
return std::string (
"BoxMeanImageFilter"); }
75 std::string ToString()
const;
83 Image Execute (
const Image& image1,
const std::vector<unsigned int> & radius );
90 typedef Image (Self::*MemberFunctionType)(
const Image& image1 );
91 template <
class TImageType>
Image ExecuteInternal (
const Image& image1 );
94 template <
class TImageType>
Image ExecuteInternalVectorImage (
const Image& image );
98 nsstd::auto_ptr<detail::MemberFunctionFactory<MemberFunctionType> >
m_MemberFactory;
nsstd::auto_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
#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
BasicPixelIDTypeList PixelIDTypeList
Implements a fast rectangular mean filter using the accumulator approach.
Self & SetRadius(unsigned int value)
std::string GetName() const
Self & SetRadius(const std::vector< unsigned int > &Radius)
The main Image class for SimpleITK.
Image BoxMean(const Image &image1, const std::vector< unsigned int > &radius=std::vector< unsigned int >(3, 1))
Implements a fast rectangular mean filter using the accumulator approach.
std::vector< unsigned int > GetRadius() const
std::vector< unsigned int > m_Radius
The base interface for SimpleITK filters that take one input image.