18 #ifndef sitkShrinkImageFilter_h
19 #define sitkShrinkImageFilter_h
62 SITK_RETURN_SELF_TYPE_HEADER
SetShrinkFactor(
unsigned int s ) { this->m_ShrinkFactors = std::vector<unsigned int>(3, s );
return *
this; }
69 SITK_RETURN_SELF_TYPE_HEADER
SetShrinkFactors (
const std::vector<unsigned int> & ShrinkFactors ) { this->m_ShrinkFactors = ShrinkFactors;
return *
this; }
76 std::string
GetName()
const {
return std::string (
"ShrinkImageFilter"); }
79 std::string ToString()
const;
87 Image Execute (
const Image& image1,
const std::vector<unsigned int> & shrinkFactors );
93 typedef Image (Self::*MemberFunctionType)(
const Image& image1 );
94 template <
class TImageType>
Image ExecuteInternal (
const Image& image1 );
99 nsstd::auto_ptr<detail::MemberFunctionFactory<MemberFunctionType> >
m_MemberFactory;
std::string GetName() const
typelist::Append< typelist::Append< BasicPixelIDTypeList, ComplexPixelIDTypeList >::Type, VectorPixelIDTypeList >::Type NonLabelPixelIDTypeList
#define SITKBasicFilters_EXPORT
Image Shrink(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.
std::vector< unsigned int > m_ShrinkFactors
NonLabelPixelIDTypeList PixelIDTypeList
nsstd::auto_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
Self & SetShrinkFactors(const std::vector< unsigned int > &ShrinkFactors)
The Image class for SimpleITK.
Reduce the size of an image by an integer factor in each dimension.
Self & SetShrinkFactor(unsigned int s)
std::vector< unsigned int > GetShrinkFactors() const
The base interface for SimpleITK filters that take one input image.