18 #ifndef sitkCropImageFilter_h
19 #define sitkCropImageFilter_h
61 SITK_RETURN_SELF_TYPE_HEADER
SetLowerBoundaryCropSize ( std::vector<unsigned int> LowerBoundaryCropSize ) { this->m_LowerBoundaryCropSize = std::move(LowerBoundaryCropSize);
return *
this; }
71 SITK_RETURN_SELF_TYPE_HEADER
SetUpperBoundaryCropSize ( std::vector<unsigned int> UpperBoundaryCropSize ) { this->m_UpperBoundaryCropSize = std::move(UpperBoundaryCropSize);
return *
this; }
79 std::string
GetName()
const {
return std::string (
"CropImageFilter"); }
82 std::string ToString()
const;
96 template <
class TImageType>
Image ExecuteInternal (
const Image& image1 );
105 std::vector<unsigned int> m_LowerBoundaryCropSize{std::vector<unsigned int>(3, 0)};
108 std::vector<unsigned int> m_UpperBoundaryCropSize{std::vector<unsigned int>(3, 0)};
111 bool m_InPlace{
false};
124 SITKBasicFilters_EXPORT Image Crop (
Image&& image1, std::vector<unsigned int> lowerBoundaryCropSize = std::vector<unsigned int>(3, 0), std::vector<unsigned int> upperBoundaryCropSize = std::vector<unsigned int>(3, 0) );
126 SITKBasicFilters_EXPORT Image Crop (
const Image& image1, std::vector<unsigned int> lowerBoundaryCropSize = std::vector<unsigned int>(3, 0), std::vector<unsigned int> upperBoundaryCropSize = std::vector<unsigned int>(3, 0) );