SimpleITK  
sitkResampleImageFilter.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 sitkResampleImageFilter_h
19#define sitkResampleImageFilter_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 sitkDualImageFilterTemplate.h.jinja to make changes.
25 */
26
27#include <memory>
28
29#include "sitkImageFilter.h"
31#include "sitkBasicFilters.h"
33
34namespace itk::simple {
35
68public:
70
73
77
80
81
82
83
87 void
88 SetSize(std::vector<uint32_t> Size )
89 { this->m_Size = std::move(Size); }
90
93 std::vector<uint32_t>
94 GetSize() const { return this->m_Size; }
95
96
99 void
102
105 GetTransform() const { return this->m_Transform; }
106
107
114 void
116 { this->m_Interpolator = Interpolator; }
117
124 GetInterpolator() const { return this->m_Interpolator; }
125
126
130 void
131 SetOutputOrigin(std::vector<double> OutputOrigin )
132 { this->m_OutputOrigin = std::move(OutputOrigin); }
133
136 std::vector<double>
137 GetOutputOrigin() const { return this->m_OutputOrigin; }
138
139
143 void
144 SetOutputSpacing(std::vector<double> OutputSpacing )
145 { this->m_OutputSpacing = std::move(OutputSpacing); }
146
149 std::vector<double>
150 GetOutputSpacing() const { return this->m_OutputSpacing; }
151
152
156 void
157 SetOutputDirection(std::vector<double> OutputDirection )
158 { this->m_OutputDirection = OutputDirection; }
159
162 std::vector<double>
163 GetOutputDirection() const { return this->m_OutputDirection; }
164
165
169 void
170 SetDefaultPixelValue(double DefaultPixelValue )
171 { this->m_DefaultPixelValue = DefaultPixelValue; }
172
175 double
177
178
182 void
184 { this->m_OutputPixelType = OutputPixelType; }
185
189 GetOutputPixelType() const { return this->m_OutputPixelType; }
190
191
195 void
196 SetUseNearestNeighborExtrapolator(bool UseNearestNeighborExtrapolator )
197 { this->m_UseNearestNeighborExtrapolator = UseNearestNeighborExtrapolator; }
198
200 void
202 void
206 bool
208
209
211 std::string GetName() const { return std::string("ResampleImageFilter"); }
212
214 std::string ToString() const;
215
216
218 Image Execute(const Image &image1);
221 const Image & refImage
222 );
223
224
225private:
226
228 using MemberFunctionType = Image (Self::*)(const Image &image1);
229
231 template <class TImageType1, class TImageType2> Image DualExecuteInternal(const Image &image1);
232
234 template <class TImageType1, class TImageType2> Image DualExecuteInternalVector(const Image &image1);
235
236
238
239
240
241 std::vector<uint32_t> m_Size{ std::vector<uint32_t>(3, 0) };
242
244
246
247 std::vector<double> m_OutputOrigin{ std::vector<double>(3, 0.0) };
248
249 std::vector<double> m_OutputSpacing{ std::vector<double>(3, 1.0) };
250
251 /* Passing a zero sized array, defaults to identiy matrix. The size of the array must exactly match the direction matrix for the dimension of the image. */
252 std::vector<double> m_OutputDirection{ std::vector<double>() };
253
254 double m_DefaultPixelValue{ 0.0 };
255
257
259
260
261
262
263
264
265
266};
267
268
269}
270#endif
The Image class for SimpleITK.
Definition sitkImage.h:77
void SetOutputSpacing(std::vector< double > OutputSpacing)
void SetUseNearestNeighborExtrapolator(bool UseNearestNeighborExtrapolator)
Enables the nearest neighbor extrapolator as opposed to the constant pixel value.
void SetSize(std::vector< uint32_t > Size)
Image Execute(const Image &image1)
void SetOutputPixelType(PixelIDValueEnum OutputPixelType)
Set the output pixel type, if sitkUnknown then the input type is used.
std::vector< double > GetOutputSpacing() const
static const detail::DualMemberFunctionFactory< MemberFunctionType > & GetMemberFunctionFactory()
std::vector< double > GetOutputOrigin() const
void SetInterpolator(InterpolatorEnum Interpolator)
PixelIDValueEnum GetOutputPixelType() const
Get the ouput pixel type.
Image(Self::*)(const Image &image1) MemberFunctionType
void SetReferenceImage(const Image &refImage)
void SetOutputDirection(std::vector< double > OutputDirection)
std::vector< double > GetOutputDirection() const
void SetDefaultPixelValue(double DefaultPixelValue)
void SetOutputOrigin(std::vector< double > OutputOrigin)
Image DualExecuteInternal(const Image &image1)
Image DualExecuteInternalVector(const Image &image1)
std::vector< uint32_t > GetSize() const
std::string ToString() const
A simplified wrapper around a variety of ITK transforms.
A class used to instantiate and generate function objects of templated member functions with two temp...
@ sitkLinear
N-D linear interpolation.
typelist2::typelist< BasicPixelID< int8_t >, BasicPixelID< uint8_t >, BasicPixelID< int16_t >, BasicPixelID< uint16_t >, BasicPixelID< int32_t >, BasicPixelID< uint32_t >, BasicPixelID< float >, BasicPixelID< double > > BasicPixelIDTypeList
PixelIDValueEnum
Enumerated values of pixelIDs.
#define SITKBasicFilters_EXPORT