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.in to make changes.
25  */
26 
27 #include <memory>
28 
29 #include "sitkBasicFilters.h"
30 #include "sitkImageFilter.h"
31 
32 namespace itk::simple {
33 
45  public:
47 
50 
54 
57 \
58 
61  SITK_RETURN_SELF_TYPE_HEADER SetMaximumNumberOfIterations ( uint32_t MaximumNumberOfIterations ) { this->m_MaximumNumberOfIterations = MaximumNumberOfIterations; return *this; }
62 
65  uint32_t GetMaximumNumberOfIterations() const { return this->m_MaximumNumberOfIterations; }\
66 
69  SITK_RETURN_SELF_TYPE_HEADER SetMaxErrorToleranceThreshold ( double MaxErrorToleranceThreshold ) { this->m_MaxErrorToleranceThreshold = MaxErrorToleranceThreshold; return *this; }
70 
73  double GetMaxErrorToleranceThreshold() const { return this->m_MaxErrorToleranceThreshold; }\
74 
77  SITK_RETURN_SELF_TYPE_HEADER SetMeanErrorToleranceThreshold ( double MeanErrorToleranceThreshold ) { this->m_MeanErrorToleranceThreshold = MeanErrorToleranceThreshold; return *this; }
78 
81  double GetMeanErrorToleranceThreshold() const { return this->m_MeanErrorToleranceThreshold; }\
82 
85  SITK_RETURN_SELF_TYPE_HEADER SetEnforceBoundaryCondition ( bool EnforceBoundaryCondition ) { this->m_EnforceBoundaryCondition = EnforceBoundaryCondition; return *this; }
86 
88  SITK_RETURN_SELF_TYPE_HEADER EnforceBoundaryConditionOn() { return this->SetEnforceBoundaryCondition(true); }
89  SITK_RETURN_SELF_TYPE_HEADER EnforceBoundaryConditionOff() { return this->SetEnforceBoundaryCondition(false); }
90 
93  bool GetEnforceBoundaryCondition() const { return this->m_EnforceBoundaryCondition; }
100  double GetMaxErrorNorm() const { return this->m_MaxErrorNorm; };
101 
108  double GetMeanErrorNorm() const { return this->m_MeanErrorNorm; };
109 
110 
112  std::string GetName() const { return std::string ("InvertDisplacementFieldImageFilter"); }
113 
115  std::string ToString() const;
116 
117 
120  Image Execute ( const Image& image1 );
121 
122  private:
123 
126  using MemberFunctionType = Image (Self::*)( const Image& image1 );
127  template <class TImageType> Image ExecuteInternal ( const Image& image1 );
128 
129 
131 
132  std::unique_ptr<detail::MemberFunctionFactory<MemberFunctionType> > m_MemberFactory;
133 
134 
135  /* Number of iterations to run */
136  uint32_t m_MaximumNumberOfIterations{10u};
137 
138  double m_MaxErrorToleranceThreshold{0.1};
139 
140  double m_MeanErrorToleranceThreshold{0.001};
141 
142  bool m_EnforceBoundaryCondition{true};
143 
144 
145  double m_MaxErrorNorm{0.0};
146 
147  double m_MeanErrorNorm{0.0};
148 
149 
150  };
151 
162  SITKBasicFilters_EXPORT Image InvertDisplacementField ( const Image& image1, uint32_t maximumNumberOfIterations = 10u, double maxErrorToleranceThreshold = 0.1, double meanErrorToleranceThreshold = 0.001, bool enforceBoundaryCondition = true );
163 
165 }
166 #endif
itk::simple::Image
The Image class for SimpleITK.
Definition: sitkImage.h:76
itk::simple::InvertDisplacementFieldImageFilter::MemberFunctionType
Image(Self::*)(const Image &image1) MemberFunctionType
Definition: sitkInvertDisplacementFieldImageFilter.h:126
sitkBasicFilters.h
itk::simple::InvertDisplacementFieldImageFilter::GetName
std::string GetName() const
Definition: sitkInvertDisplacementFieldImageFilter.h:112
itk::simple::detail::MemberFunctionAddressor
Definition: sitkDetail.h:29
itk::simple::InvertDisplacementFieldImageFilter::GetMeanErrorToleranceThreshold
double GetMeanErrorToleranceThreshold() const
Definition: sitkInvertDisplacementFieldImageFilter.h:81
sitkImageFilter.h
itk::simple::InvertDisplacementFieldImageFilter::SetMaximumNumberOfIterations
Self & SetMaximumNumberOfIterations(uint32_t MaximumNumberOfIterations)
Definition: sitkInvertDisplacementFieldImageFilter.h:61
itk::simple::InvertDisplacementFieldImageFilter::EnforceBoundaryConditionOn
Self & EnforceBoundaryConditionOn()
Definition: sitkInvertDisplacementFieldImageFilter.h:88
itk::simple::InvertDisplacementFieldImageFilter::GetEnforceBoundaryCondition
bool GetEnforceBoundaryCondition() const
Definition: sitkInvertDisplacementFieldImageFilter.h:93
itk::simple::InvertDisplacementFieldImageFilter::PixelIDTypeList
RealVectorPixelIDTypeList PixelIDTypeList
Definition: sitkInvertDisplacementFieldImageFilter.h:56
itk::simple::InvertDisplacementField
Image InvertDisplacementField(const Image &image1, uint32_t maximumNumberOfIterations=10u, double maxErrorToleranceThreshold=0.1, double meanErrorToleranceThreshold=0.001, bool enforceBoundaryCondition=true)
Iteratively estimate the inverse field of a displacement field.
itk::simple::InvertDisplacementFieldImageFilter
Iteratively estimate the inverse field of a displacement field.
Definition: sitkInvertDisplacementFieldImageFilter.h:44
itk::simple::InvertDisplacementFieldImageFilter::SetEnforceBoundaryCondition
Self & SetEnforceBoundaryCondition(bool EnforceBoundaryCondition)
Definition: sitkInvertDisplacementFieldImageFilter.h:85
itk::simple::InvertDisplacementFieldImageFilter::GetMaxErrorNorm
double GetMaxErrorNorm() const
Definition: sitkInvertDisplacementFieldImageFilter.h:100
itk::simple::InvertDisplacementFieldImageFilter::GetMeanErrorNorm
double GetMeanErrorNorm() const
Definition: sitkInvertDisplacementFieldImageFilter.h:108
SITKBasicFilters_EXPORT
#define SITKBasicFilters_EXPORT
Definition: sitkBasicFilters.h:52
itk::simple::InvertDisplacementFieldImageFilter::GetMaxErrorToleranceThreshold
double GetMaxErrorToleranceThreshold() const
Definition: sitkInvertDisplacementFieldImageFilter.h:73
itk::simple::InvertDisplacementFieldImageFilter::SetMaxErrorToleranceThreshold
Self & SetMaxErrorToleranceThreshold(double MaxErrorToleranceThreshold)
Definition: sitkInvertDisplacementFieldImageFilter.h:69
itk::simple::RealVectorPixelIDTypeList
typelist2::typelist< VectorPixelID< float >, VectorPixelID< double > > RealVectorPixelIDTypeList
Definition: sitkPixelIDTypeLists.h:143
itk::simple::InvertDisplacementFieldImageFilter::SetMeanErrorToleranceThreshold
Self & SetMeanErrorToleranceThreshold(double MeanErrorToleranceThreshold)
Definition: sitkInvertDisplacementFieldImageFilter.h:77
itk::simple::ImageFilter
The base interface for SimpleITK filters that take one input image.
Definition: sitkImageFilter.h:35
itk::simple::InvertDisplacementFieldImageFilter::m_MemberFactory
std::unique_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
Definition: sitkInvertDisplacementFieldImageFilter.h:132
itk::Image
Definition: sitkPixelIDTypes.h:28
itk::simple
Definition: sitkAdditionalProcedures.h:28
itk::simple::InvertDisplacementFieldImageFilter::GetMaximumNumberOfIterations
uint32_t GetMaximumNumberOfIterations() const
Definition: sitkInvertDisplacementFieldImageFilter.h:65
itk::simple::InvertDisplacementFieldImageFilter::EnforceBoundaryConditionOff
Self & EnforceBoundaryConditionOff()
Definition: sitkInvertDisplacementFieldImageFilter.h:89