18 #ifndef sitkSliceImageFilter_h
19 #define sitkSliceImageFilter_h
68 SITK_RETURN_SELF_TYPE_HEADER
SetStart ( std::vector<int32_t> Start ) { this->m_Start = std::move(Start);
return *
this; }
73 std::vector<int32_t>
GetStart()
const {
return this->m_Start; }\
78 SITK_RETURN_SELF_TYPE_HEADER
SetStop ( std::vector<int32_t> Stop ) { this->m_Stop = std::move(Stop);
return *
this; }
83 std::vector<int32_t>
GetStop()
const {
return this->m_Stop; }\
88 SITK_RETURN_SELF_TYPE_HEADER
SetStep ( std::vector<int> Step ) { this->m_Step = std::move(Step);
return *
this; }
91 SITK_RETURN_SELF_TYPE_HEADER
SetStep(
int value ) { this->m_Step = std::vector<int>(3, value);
return *
this; }
96 std::vector<int>
GetStep()
const {
return this->m_Step; }
99 std::string
GetName()
const {
return std::string (
"SliceImageFilter"); }
102 std::string ToString()
const;
114 template <
class TImageType>
Image ExecuteInternal (
const Image& image1 );
122 std::vector<int32_t> m_Start{std::vector<int32_t>(3, 0)};
124 std::vector<int32_t> m_Stop{std::vector<int32_t>(3, std::numeric_limits<int32_t>::max())};
126 std::vector<int> m_Step{std::vector<int>(3, 1)};
141 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) );