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.in to make changes.
25 */
26
27#include <memory>
28
29#include "sitkImageFilter.h"
31#include "sitkBasicFilters.h"
32
33namespace itk::simple {
34
53 public:
55
58
62
65
66\
67
71 SITK_RETURN_SELF_TYPE_HEADER SetSize ( std::vector<uint32_t> Size ) { this->m_Size = std::move(Size); return *this; }
72
76 std::vector<uint32_t> GetSize() const { return this->m_Size; }\
77
80 SITK_RETURN_SELF_TYPE_HEADER SetTransform ( Transform Transform ) { this->m_Transform = Transform; return *this; }
81
84 Transform GetTransform() const { return this->m_Transform; }\
85
89 SITK_RETURN_SELF_TYPE_HEADER SetInterpolator ( InterpolatorEnum Interpolator ) { this->m_Interpolator = Interpolator; return *this; }
90
95
99 SITK_RETURN_SELF_TYPE_HEADER SetOutputOrigin ( std::vector<double> OutputOrigin ) { this->m_OutputOrigin = std::move(OutputOrigin); return *this; }
100
104 std::vector<double> GetOutputOrigin() const { return this->m_OutputOrigin; }\
105
109 SITK_RETURN_SELF_TYPE_HEADER SetOutputSpacing ( std::vector<double> OutputSpacing ) { this->m_OutputSpacing = std::move(OutputSpacing); return *this; }
110
114 std::vector<double> GetOutputSpacing() const { return this->m_OutputSpacing; }\
115
119 SITK_RETURN_SELF_TYPE_HEADER SetOutputDirection ( std::vector<double> OutputDirection ) { this->m_OutputDirection = OutputDirection; return *this; }
120
124 std::vector<double> GetOutputDirection() const { return this->m_OutputDirection; }\
125
129 SITK_RETURN_SELF_TYPE_HEADER SetDefaultPixelValue ( double DefaultPixelValue ) { this->m_DefaultPixelValue = DefaultPixelValue; return *this; }
130
134 double GetDefaultPixelValue() const { return this->m_DefaultPixelValue; }\
135
139 SITK_RETURN_SELF_TYPE_HEADER SetOutputPixelType ( PixelIDValueEnum OutputPixelType ) { this->m_OutputPixelType = OutputPixelType; return *this; }
140
145
149 SITK_RETURN_SELF_TYPE_HEADER SetUseNearestNeighborExtrapolator ( bool UseNearestNeighborExtrapolator ) { this->m_UseNearestNeighborExtrapolator = UseNearestNeighborExtrapolator; return *this; }
150
152 SITK_RETURN_SELF_TYPE_HEADER UseNearestNeighborExtrapolatorOn() { return this->SetUseNearestNeighborExtrapolator(true); }
153 SITK_RETURN_SELF_TYPE_HEADER UseNearestNeighborExtrapolatorOff() { return this->SetUseNearestNeighborExtrapolator(false); }
154
158
160 std::string GetName() const { return std::string ("ResampleImageFilter"); }
161
163 std::string ToString() const;
164
165
167
168 Image Execute ( const Image& image1 );
169
170
172 void SetReferenceImage(const Image & refImage );
173
174
175 private:
177 using MemberFunctionType = Image (Self::*)( const Image& image1 );
178
180 template <class TImageType1, class TImageType2> Image DualExecuteInternal ( const Image& image1 );
182 template <class TImageType1, class TImageType2> Image DualExecuteInternalVector ( const Image& image1 );
183
184 std::unique_ptr<detail::DualMemberFunctionFactory<MemberFunctionType> > m_DualMemberFactory;
185
186
187
188 /* */
189 std::vector<uint32_t> m_Size{std::vector<uint32_t>(3, 0)};
190
192
193 /* */
195
196 /* */
197 std::vector<double> m_OutputOrigin{std::vector<double>(3, 0.0)};
198
199 /* */
200 std::vector<double> m_OutputSpacing{std::vector<double>(3, 1.0)};
201
202 /* 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. */
203 std::vector<double> m_OutputDirection{std::vector<double>()};
204
206
208
210
211
212 };
213
214
215}
216#endif
The Image class for SimpleITK.
Definition sitkImage.h:77
Image Execute(const Image &image1)
Self & SetOutputSpacing(std::vector< double > OutputSpacing)
Self & SetTransform(Transform Transform)
std::vector< double > GetOutputSpacing() const
std::vector< double > GetOutputOrigin() const
Self & SetOutputOrigin(std::vector< double > OutputOrigin)
std::unique_ptr< detail::DualMemberFunctionFactory< MemberFunctionType > > m_DualMemberFactory
PixelIDValueEnum GetOutputPixelType() const
Get the ouput pixel type.
Self & SetUseNearestNeighborExtrapolator(bool UseNearestNeighborExtrapolator)
Enables the nearest neighbor extrapolator as opposed to the constant pixel value.
void SetReferenceImage(const Image &refImage)
Image(Self::*)(const Image &image1) MemberFunctionType
std::vector< double > GetOutputDirection() const
Image DualExecuteInternal(const Image &image1)
Self & SetInterpolator(InterpolatorEnum Interpolator)
Image DualExecuteInternalVector(const Image &image1)
Self & SetSize(std::vector< uint32_t > Size)
Self & SetOutputDirection(std::vector< double > OutputDirection)
std::vector< uint32_t > GetSize() const
Self & SetOutputPixelType(PixelIDValueEnum OutputPixelType)
Set the output pixel type, if sitkUnknown then the input type is used.
Self & SetDefaultPixelValue(double DefaultPixelValue)
std::string ToString() const
A simplified wrapper around a variety of ITK transforms.
@ 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