18 #ifndef sitkCropImageFilter_h
19 #define sitkCropImageFilter_h
69 SITK_RETURN_SELF_TYPE_HEADER
SetLowerBoundaryCropSize (
const std::vector<unsigned int> & LowerBoundaryCropSize ) { this->m_LowerBoundaryCropSize = LowerBoundaryCropSize;
return *
this; }
79 SITK_RETURN_SELF_TYPE_HEADER
SetUpperBoundaryCropSize (
const std::vector<unsigned int> & UpperBoundaryCropSize ) { this->m_UpperBoundaryCropSize = UpperBoundaryCropSize;
return *
this; }
86 std::string
GetName()
const {
return std::string (
"CropImageFilter"); }
89 std::string ToString()
const;
97 Image Execute (
const Image& image1,
const std::vector<unsigned int> & lowerBoundaryCropSize,
const std::vector<unsigned int> & upperBoundaryCropSize );
104 typedef Image (Self::*MemberFunctionType)(
const Image& image1 );
105 template <
class TImageType>
Image ExecuteInternal (
const Image& image1 );
130 SITKBasicFilters_EXPORT Image Crop (
const Image& image1,
const std::vector<unsigned int> & lowerBoundaryCropSize = std::vector<unsigned int>(3, 0),
const std::vector<unsigned int> & upperBoundaryCropSize = std::vector<unsigned int>(3, 0) );
typelist::Append< typelist::Append< BasicPixelIDTypeList, ComplexPixelIDTypeList >::Type, VectorPixelIDTypeList >::Type NonLabelPixelIDTypeList
#define SITKBasicFilters_EXPORT
NonLabelPixelIDTypeList PixelIDTypeList
std::vector< unsigned int > GetUpperBoundaryCropSize() const
Decrease the image size by cropping the image by an itk::Size at both the upper and lower bounds of t...
std::vector< unsigned int > m_LowerBoundaryCropSize
Self & SetLowerBoundaryCropSize(const std::vector< unsigned int > &LowerBoundaryCropSize)
The main Image class for SimpleITK.
std::vector< unsigned int > GetLowerBoundaryCropSize() const
std::string GetName() const
nsstd::auto_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
Image Crop(const Image &image1, const std::vector< unsigned int > &lowerBoundaryCropSize=std::vector< unsigned int >(3, 0), const std::vector< unsigned int > &upperBoundaryCropSize=std::vector< unsigned int >(3, 0))
Decrease the image size by cropping the image by an itk::Size at both the upper and lower bounds of t...
std::vector< unsigned int > m_UpperBoundaryCropSize
The base interface for SimpleITK filters that take one input image.
Self & SetUpperBoundaryCropSize(const std::vector< unsigned int > &UpperBoundaryCropSize)