SimpleITK  
sitkSliceImageFilter.h
Go to the documentation of this file.
1/*=========================================================================
2*
3* Copyright NumFOCUS
4*
5* Licensed under the Apache License, Version 2.0 (the "License");
6* you may not use this file except in compliance with the License.
7* You may obtain a copy of the License at
8*
9* http://www.apache.org/licenses/LICENSE-2.0.txt
10*
11* Unless required by applicable law or agreed to in writing, software
12* distributed under the License is distributed on an "AS IS" BASIS,
13* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14* See the License for the specific language governing permissions and
15* limitations under the License.
16*
17*=========================================================================*/
18#ifndef sitkSliceImageFilter_h
19#define sitkSliceImageFilter_h
20
21/*
22 * WARNING: DO NOT EDIT THIS FILE!
23 * THIS FILE IS AUTOMATICALLY GENERATED BY THE SIMPLEITK BUILD PROCESS.
24 * Please look at sitkImageFilterTemplate.h.jinja to make changes.
25 */
26
27#include <memory>
28
29#include "sitkBasicFilters.h"
30#include "sitkImageFilter.h"
32
33namespace itk::simple {
34
59public:
61
64
68
71
72
73
74
78 void
79 SetStart(std::vector<int32_t> Start )
80 { this->m_Start = std::move(Start); }
81
84 std::vector<int32_t>
85 GetStart() const { return this->m_Start; }
86
87
91 void
92 SetStop(std::vector<int32_t> Stop )
93 { this->m_Stop = std::move(Stop); }
94
97 std::vector<int32_t>
98 GetStop() const { return this->m_Stop; }
99
100
104 void
105 SetStep(std::vector<int> Step )
106 { this->m_Step = std::move(Step); }
107
109 void
110 SetStep( int value ) { this->m_Step = std::vector<int>(3, value); }
114 std::vector<int>
115 GetStep() const { return this->m_Step; }
116
117
119 std::string GetName() const { return std::string("SliceImageFilter"); }
120
122 std::string ToString() const;
123
124
126 Image Execute(const Image &image1);
127
128
129private:
131 using MemberFunctionType = Image (Self::*)(const Image &image1);
132 template <class TImageType> Image ExecuteInternal(const Image &image1);
135
136
137 std::vector<int32_t> m_Start{ std::vector<int32_t>(SITK_MAX_DIMENSION, 0) };
138
139 std::vector<int32_t> m_Stop{ std::vector<int32_t>(SITK_MAX_DIMENSION, std::numeric_limits<int32_t>::max()) };
140
141 std::vector<int> m_Step{ std::vector<int>(SITK_MAX_DIMENSION, 1) };
142
143
144
145
146
147
148
149};
150
151
161 const Image &image1, std::vector<int32_t> start = std::vector<int32_t>(SITK_MAX_DIMENSION, 0), std::vector<int32_t> stop = std::vector<int32_t>(SITK_MAX_DIMENSION, std::numeric_limits<int32_t>::max()), std::vector<int> step = std::vector<int>(SITK_MAX_DIMENSION, 1)
162);
163
165
166}
167#endif
The Image class for SimpleITK.
Definition sitkImage.h:77
void SetStep(std::vector< int > Step)
void SetStop(std::vector< int32_t > Stop)
void SetStart(std::vector< int32_t > Start)
Image(Self::*)(const Image &image1) MemberFunctionType
std::vector< int32_t > GetStop() const
std::vector< int > GetStep() const
std::string ToString() const
Image Execute(const Image &image1)
std::vector< int32_t > GetStart() const
NonLabelPixelIDTypeList PixelIDTypeList
static const detail::MemberFunctionFactory< MemberFunctionType > & GetMemberFunctionFactory()
Image ExecuteInternal(const Image &image1)
A class used to instantiate and generate function object to templated member functions.
typelist2::append< BasicPixelIDTypeList, ComplexPixelIDTypeList, VectorPixelIDTypeList >::type NonLabelPixelIDTypeList
Image Slice(const Image &image1, std::vector< int32_t > start=std::vector< int32_t >(SITK_MAX_DIMENSION, 0), std::vector< int32_t > stop=std::vector< int32_t >(SITK_MAX_DIMENSION, std::numeric_limits< int32_t >::max()), std::vector< int > step=std::vector< int >(SITK_MAX_DIMENSION, 1))
Slices an image based on a starting index and a stopping index, and a step size.
#define SITKBasicFilters_EXPORT
#define SITK_MAX_DIMENSION