SimpleITK  
sitkInvertDisplacementFieldImageFilter.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 sitkInvertDisplacementFieldImageFilter_h
19#define sitkInvertDisplacementFieldImageFilter_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
104public:
106
109
113
116
117
118
119
122 void
123 SetMaximumNumberOfIterations(uint32_t MaximumNumberOfIterations )
124 { this->m_MaximumNumberOfIterations = MaximumNumberOfIterations; }
125
127 uint32_t
129
130
133 void
134 SetMaxErrorToleranceThreshold(double MaxErrorToleranceThreshold )
135 { this->m_MaxErrorToleranceThreshold = MaxErrorToleranceThreshold; }
136
138 double
140
141
144 void
145 SetMeanErrorToleranceThreshold(double MeanErrorToleranceThreshold )
146 { this->m_MeanErrorToleranceThreshold = MeanErrorToleranceThreshold; }
147
149 double
151
152
155 void
156 SetEnforceBoundaryCondition(bool EnforceBoundaryCondition )
157 { this->m_EnforceBoundaryCondition = EnforceBoundaryCondition; }
158
160 void
162 void
166 bool
168
169
175 double GetMaxErrorNorm() const { return this->m_MaxErrorNorm; }
176
182 double GetMeanErrorNorm() const { return this->m_MeanErrorNorm; }
183
185 std::string GetName() const { return std::string("InvertDisplacementFieldImageFilter"); }
186
188 std::string ToString() const;
189
190
192 Image Execute(const Image &displacementField, const Image &inverseFieldInitialEstimate);
193 Image Execute(const Image &displacementField);
194
195
196private:
198 using MemberFunctionType = Image (Self::*)(const Image *
199 displacementField, const Image *
200 inverseFieldInitialEstimate);
201 template <class TImageType> Image ExecuteInternal(const Image *
202 displacementField, const Image *
203 inverseFieldInitialEstimate);
206
207
208 /* Number of iterations to run */
210
212
214
216
217
218
219 double m_MaxErrorNorm{ 0.0 };
220 double m_MeanErrorNorm{ 0.0 };
221
222
223
224
225};
226
227
237 const Image &displacementField, const Image &inverseFieldInitialEstimate, uint32_t maximumNumberOfIterations = 10u, double maxErrorToleranceThreshold = 0.1, double meanErrorToleranceThreshold = 0.001, bool enforceBoundaryCondition = true
238);
239
241 const Image &displacementField, uint32_t maximumNumberOfIterations = 10u, double maxErrorToleranceThreshold = 0.1, double meanErrorToleranceThreshold = 0.001, bool enforceBoundaryCondition = true
242);
243
245
246}
247#endif
The Image class for SimpleITK.
Definition sitkImage.h:77
static const detail::MemberFunctionFactory< MemberFunctionType > & GetMemberFunctionFactory()
void SetMeanErrorToleranceThreshold(double MeanErrorToleranceThreshold)
Image ExecuteInternal(const Image *displacementField, const Image *inverseFieldInitialEstimate)
Image Execute(const Image &displacementField, const Image &inverseFieldInitialEstimate)
Image(Self::*)(const Image * displacementField, const Image * inverseFieldInitialEstimate) MemberFunctionType
Image Execute(const Image &displacementField)
A class used to instantiate and generate function object to templated member functions.
Image InvertDisplacementField(const Image &displacementField, const Image &inverseFieldInitialEstimate, uint32_t maximumNumberOfIterations=10u, double maxErrorToleranceThreshold=0.1, double meanErrorToleranceThreshold=0.001, bool enforceBoundaryCondition=true)
Iteratively estimates the inverse of a displacement field by fixed-point composition.
typelist2::typelist< VectorPixelID< float >, VectorPixelID< double > > RealVectorPixelIDTypeList
#define SITKBasicFilters_EXPORT