18 #ifndef sitkSliceImageFilter_h
19 #define sitkSliceImageFilter_h
67 SITK_RETURN_SELF_TYPE_HEADER
SetStart ( std::vector<int32_t> Start ) { this->m_Start = std::move(Start);
return *
this; }
72 std::vector<int32_t>
GetStart()
const {
return this->m_Start; }\
77 SITK_RETURN_SELF_TYPE_HEADER
SetStop ( std::vector<int32_t> Stop ) { this->m_Stop = std::move(Stop);
return *
this; }
82 std::vector<int32_t>
GetStop()
const {
return this->m_Stop; }\
87 SITK_RETURN_SELF_TYPE_HEADER
SetStep ( std::vector<int> Step ) { this->m_Step = std::move(Step);
return *
this; }
90 SITK_RETURN_SELF_TYPE_HEADER
SetStep(
int value ) { this->m_Step = std::vector<int>(3, value);
return *
this; }
95 std::vector<int>
GetStep()
const {
return this->m_Step; }
98 std::string
GetName()
const {
return std::string (
"SliceImageFilter"); }
101 std::string ToString()
const;
113 template <
class TImageType>
Image ExecuteInternal (
const Image& image1 );
121 std::vector<int32_t> m_Start{std::vector<int32_t>(3, 0)};
123 std::vector<int32_t> m_Stop{std::vector<int32_t>(3, std::numeric_limits<int32_t>::max())};
125 std::vector<int> m_Step{std::vector<int>(3, 1)};
140 SITKBasicFilters_EXPORT Image Slice (
const Image& image1, std::vector<int32_t> start = std::vector<int32_t>(3, 0), std::vector<int32_t> stop = std::vector<int32_t>(3, std::numeric_limits<int32_t>::max()), std::vector<int> step = std::vector<int>(3, 1) );