18 #ifndef sitkBinShrinkImageFilter_h
19 #define sitkBinShrinkImageFilter_h
65 SITK_RETURN_SELF_TYPE_HEADER
SetShrinkFactor(
unsigned int s ) { this->m_ShrinkFactors = std::vector<unsigned int>(3, s );
return *
this; }
72 SITK_RETURN_SELF_TYPE_HEADER
SetShrinkFactors (
const std::vector<unsigned int> & ShrinkFactors ) { this->m_ShrinkFactors = ShrinkFactors;
return *
this; }
79 std::string
GetName()
const {
return std::string (
"BinShrinkImageFilter"); }
82 std::string ToString()
const;
90 Image Execute (
const Image& image1,
const std::vector<unsigned int> & shrinkFactors );
96 typedef Image (Self::*MemberFunctionType)(
const Image& image1 );
97 template <
class TImageType>
Image ExecuteInternal (
const Image& image1 );
typelist::Append< typelist::Append< BasicPixelIDTypeList, ComplexPixelIDTypeList >::Type, VectorPixelIDTypeList >::Type NonLabelPixelIDTypeList
Self & SetShrinkFactor(unsigned int s)
#define SITKBasicFilters_EXPORT
std::vector< unsigned int > m_ShrinkFactors
Reduce the size of an image by an integer factor in each dimension while performing averaging of an i...
Image BinShrink(const Image &image1, const std::vector< unsigned int > &shrinkFactors=std::vector< unsigned int >(3, 1))
Reduce the size of an image by an integer factor in each dimension while performing averaging of an i...
NonLabelPixelIDTypeList PixelIDTypeList
nsstd::auto_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
The Image class for SimpleITK.
std::vector< unsigned int > GetShrinkFactors() const
BinShrinkImageFilter Self
std::string GetName() const
Self & SetShrinkFactors(const std::vector< unsigned int > &ShrinkFactors)
The base interface for SimpleITK filters that take one input image.