Go to the documentation of this file.
18 #ifndef sitkShrinkImageFilter_h
19 #define sitkShrinkImageFilter_h
68 SITK_RETURN_SELF_TYPE_HEADER
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 template <
class TImageType>
Image ExecuteInternal (
const Image& image1 );
The main Image class for SimpleITK.
NonLabelPixelIDTypeList PixelIDTypeList
nsstd::auto_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
typelist::Append< typelist::Append< BasicPixelIDTypeList, ComplexPixelIDTypeList >::Type, VectorPixelIDTypeList >::Type NonLabelPixelIDTypeList
Self & SetShrinkFactor(unsigned int s)
Self & SetShrinkFactors(const std::vector< unsigned int > &ShrinkFactors)
std::string GetName() const
#define SITKBasicFilters_EXPORT
std::vector< unsigned int > GetShrinkFactors() const
Reduce the size of an image by an integer factor in each dimension.
The base interface for SimpleITK filters that take one input image.
Base class for SimpleITK classes based on ProcessObject.
std::vector< unsigned int > m_ShrinkFactors
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.