18 #ifndef sitkShrinkImageFilter_h
19 #define sitkShrinkImageFilter_h
68 Self &
SetShrinkFactor(
unsigned int s ) { this->m_ShrinkFactors = std::vector<unsigned int>(3, s );
return *
this; }
75 SITK_RETURN_SELF_TYPE_HEADER
SetShrinkFactors (
const std::vector<unsigned int> & ShrinkFactors ) { this->m_ShrinkFactors = ShrinkFactors;
return *
this; }
82 std::string
GetName()
const {
return std::string (
"ShrinkImageFilter"); }
85 std::string ToString()
const;
93 Image Execute (
const Image& image1,
const std::vector<unsigned int> & shrinkFactors );
100 typedef Image (Self::*MemberFunctionType)(
const Image& image1 );
101 template <
class TImageType>
Image ExecuteInternal (
const Image& image1 );
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 main 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.