18 #ifndef sitkCropImageFilter_h
19 #define sitkCropImageFilter_h
62 SITK_RETURN_SELF_TYPE_HEADER
SetLowerBoundaryCropSize ( std::vector<unsigned int> LowerBoundaryCropSize ) { this->m_LowerBoundaryCropSize = std::move(LowerBoundaryCropSize);
return *
this; }
72 SITK_RETURN_SELF_TYPE_HEADER
SetUpperBoundaryCropSize ( std::vector<unsigned int> UpperBoundaryCropSize ) { this->m_UpperBoundaryCropSize = std::move(UpperBoundaryCropSize);
return *
this; }
80 std::string
GetName()
const {
return std::string (
"CropImageFilter"); }
83 std::string ToString()
const;
97 template <
class TImageType>
Image ExecuteInternal (
const Image& image1 );
106 std::vector<unsigned int> m_LowerBoundaryCropSize{std::vector<unsigned int>(3, 0)};
109 std::vector<unsigned int> m_UpperBoundaryCropSize{std::vector<unsigned int>(3, 0)};
112 bool m_InPlace{
false};
125 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) );
127 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) );