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 template <
class TImageType>
Image ExecuteInternal (
const Image& image1 );
127 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) );