SimpleITK  
sitkTransformToDisplacementFieldFilter.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 sitkTransformToDisplacementFieldFilter_h
19#define sitkTransformToDisplacementFieldFilter_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 sitkImageSourceTemplate.h.jinja to make changes.
25 */
26
27#include <memory>
28
29#include "sitkBasicFilters.h"
31
32#include "sitkImageFilter.h"
33
34namespace itk::simple {
35
60public:
62
65
69
72
73
74
75
76
77
81 void
83 { this->m_OutputPixelType = OutputPixelType; }
84
88 GetOutputPixelType() const { return this->m_OutputPixelType; }
89
90
94 void
95 SetSize(std::vector<unsigned int> Size )
96 { this->m_Size = std::move(Size); }
97
100 std::vector<unsigned int>
101 GetSize() const { return this->m_Size; }
102
103
107 void
108 SetOutputOrigin(std::vector<double> OutputOrigin )
109 { this->m_OutputOrigin = std::move(OutputOrigin); }
110
113 std::vector<double>
114 GetOutputOrigin() const { return this->m_OutputOrigin; }
115
116
120 void
121 SetOutputSpacing(std::vector<double> OutputSpacing )
122 { this->m_OutputSpacing = std::move(OutputSpacing); }
123
126 std::vector<double>
127 GetOutputSpacing() const { return this->m_OutputSpacing; }
128
129
133 void
134 SetOutputDirection(std::vector<double> OutputDirection )
135 { this->m_OutputDirection = OutputDirection; }
136
139 std::vector<double>
140 GetOutputDirection() const { return this->m_OutputDirection; }
141
142
144 std::string GetName() const { return std::string("TransformToDisplacementFieldFilter"); }
145
147 std::string ToString() const;
148
149
151 Image Execute(const Transform &transform);
154 const Image & refImage
155 );
156
157
158
159
160private:
163 transform);
164 template <class TImageType> Image ExecuteInternal(const Transform *
165 transform);
166
169
170
171
172 PixelIDValueEnum m_OutputPixelType{ itk::simple::sitkVectorFloat64 };
173
174 std::vector<unsigned int> m_Size{ std::vector<unsigned int>(3, 64) };
175
176 std::vector<double> m_OutputOrigin{ std::vector<double>(3, 0.0) };
177
178 std::vector<double> m_OutputSpacing{ std::vector<double>(3, 1.0) };
179
180 /* 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. */
181 std::vector<double> m_OutputDirection{ std::vector<double>() };
182
183
184
185
186
187
188
189
190};
191
192
193
204
205 const Transform &transform
206 , PixelIDValueEnum outputPixelType = itk::simple::sitkVectorFloat64, std::vector<unsigned int> size = std::vector<unsigned int>(3, 64), std::vector<double> outputOrigin = std::vector<double>(3, 0.0), std::vector<double> outputSpacing = std::vector<double>(3, 1.0), std::vector<double> outputDirection = std::vector<double>()
207);
208}
209#endif
The Image class for SimpleITK.
Definition sitkImage.h:77
void SetOutputPixelType(PixelIDValueEnum OutputPixelType)
Set the output pixel type, only sitkVectorFloat32 and sitkVectorFloat64 are supported.
Image ExecuteInternal(const Transform *transform)
void SetReferenceImage(const Image &refImage)
PixelIDValueEnum GetOutputPixelType() const
Get the ouput pixel type.
Image Execute(const Transform &transform)
static const detail::MemberFunctionFactory< MemberFunctionType > & GetMemberFunctionFactory()
A simplified wrapper around a variety of ITK transforms.
A class used to instantiate and generate function object to templated member functions.
typelist2::typelist< VectorPixelID< float >, VectorPixelID< double > > RealVectorPixelIDTypeList
Image TransformToDisplacementField(const Transform &transform, PixelIDValueEnum outputPixelType=itk::simple::sitkVectorFloat64, std::vector< unsigned int > size=std::vector< unsigned int >(3, 64), std::vector< double > outputOrigin=std::vector< double >(3, 0.0), std::vector< double > outputSpacing=std::vector< double >(3, 1.0), std::vector< double > outputDirection=std::vector< double >())
Generate a displacement field from a coordinate transform.
PixelIDValueEnum
Enumerated values of pixelIDs.
#define SITKBasicFilters_EXPORT