SimpleITK  
sitkInverseDisplacementFieldImageFilter.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 sitkInverseDisplacementFieldImageFilter_h
19#define sitkInverseDisplacementFieldImageFilter_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
64public:
66
69
73
76
77
78
79
83 void
84 SetSize(std::vector<uint32_t> Size )
85 { this->m_Size = std::move(Size); }
86
89 std::vector<uint32_t>
90 GetSize() const { return this->m_Size; }
91
92
96 void
97 SetOutputOrigin(std::vector<double> OutputOrigin )
98 { this->m_OutputOrigin = std::move(OutputOrigin); }
99
102 std::vector<double>
103 GetOutputOrigin() const { return this->m_OutputOrigin; }
104
105
109 void
110 SetOutputSpacing(std::vector<double> OutputSpacing )
111 { this->m_OutputSpacing = std::move(OutputSpacing); }
112
115 std::vector<double>
116 GetOutputSpacing() const { return this->m_OutputSpacing; }
117
118
124 void
125 SetSubsamplingFactor(unsigned int SubsamplingFactor )
126 { this->m_SubsamplingFactor = SubsamplingFactor; }
127
132 unsigned int
134
135
137 std::string GetName() const { return std::string("InverseDisplacementFieldImageFilter"); }
138
140 std::string ToString() const;
141
142
144 Image Execute(const Image &image1);
147 const Image & refImage
148 );
149
150
151
152private:
154 using MemberFunctionType = Image (Self::*)(const Image &image1);
155 template <class TImageType> Image ExecuteInternal(const Image &image1);
158
159
160 std::vector<uint32_t> m_Size{ std::vector<uint32_t>(3, 0) };
161
162 std::vector<double> m_OutputOrigin{ std::vector<double>(3, 0.0) };
163
164 std::vector<double> m_OutputSpacing{ std::vector<double>(3, 1.0) };
165
166 unsigned int m_SubsamplingFactor{ 16u };
167
168
169
170
171
172
173
174};
175
176
186 const Image &image1, std::vector<uint32_t> size = std::vector<uint32_t>(3, 0), std::vector<double> outputOrigin = std::vector<double>(3, 0.0), std::vector<double> outputSpacing = std::vector<double>(3, 1.0), unsigned int subsamplingFactor = 16u
187);
188
190
191}
192#endif
The Image class for SimpleITK.
Definition sitkImage.h:77
void SetReferenceImage(const Image &refImage)
static const detail::MemberFunctionFactory< MemberFunctionType > & GetMemberFunctionFactory()
A class used to instantiate and generate function object to templated member functions.
typelist2::typelist< VectorPixelID< float >, VectorPixelID< double > > RealVectorPixelIDTypeList
Image InverseDisplacementField(const Image &image1, std::vector< uint32_t > size=std::vector< uint32_t >(3, 0), std::vector< double > outputOrigin=std::vector< double >(3, 0.0), std::vector< double > outputSpacing=std::vector< double >(3, 1.0), unsigned int subsamplingFactor=16u)
Computes the inverse of a displacement field.
#define SITKBasicFilters_EXPORT