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.in to make changes.
25 */
26
27#include <memory>
28
29#include "sitkBasicFilters.h"
30#include "sitkImageFilter.h"
31
32namespace itk::simple {
33
50 public:
52
55
59
62\
63
67 SITK_RETURN_SELF_TYPE_HEADER SetSize ( std::vector<uint32_t> Size ) { this->m_Size = std::move(Size); return *this; }
68
72 std::vector<uint32_t> GetSize() const { return this->m_Size; }\
73
77 SITK_RETURN_SELF_TYPE_HEADER SetOutputOrigin ( std::vector<double> OutputOrigin ) { this->m_OutputOrigin = std::move(OutputOrigin); return *this; }
78
82 std::vector<double> GetOutputOrigin() const { return this->m_OutputOrigin; }\
83
87 SITK_RETURN_SELF_TYPE_HEADER SetOutputSpacing ( std::vector<double> OutputSpacing ) { this->m_OutputSpacing = std::move(OutputSpacing); return *this; }
88
92 std::vector<double> GetOutputSpacing() const { return this->m_OutputSpacing; }\
93
97 SITK_RETURN_SELF_TYPE_HEADER SetSubsamplingFactor ( unsigned int SubsamplingFactor ) { this->m_SubsamplingFactor = SubsamplingFactor; return *this; }
98
102 unsigned int GetSubsamplingFactor() const { return this->m_SubsamplingFactor; }
103
105 std::string GetName() const { return std::string ("InverseDisplacementFieldImageFilter"); }
106
108 std::string ToString() const;
109
110
112
113 Image Execute ( const Image& image1 );
114
115
117 void SetReferenceImage(const Image & refImage );
118
119 private:
120
122
123 using MemberFunctionType = Image (Self::*)( const Image& image1 );
124 template <class TImageType> Image ExecuteInternal ( const Image& image1 );
125
126
128
129 std::unique_ptr<detail::MemberFunctionFactory<MemberFunctionType> > m_MemberFactory;
130
131
132 /* */
133 std::vector<uint32_t> m_Size{std::vector<uint32_t>(3, 0)};
134
135 /* */
136 std::vector<double> m_OutputOrigin{std::vector<double>(3, 0.0)};
137
138 /* */
139 std::vector<double> m_OutputSpacing{std::vector<double>(3, 1.0)};
140
141 unsigned int m_SubsamplingFactor{16u};
142
143
144
145 };
146
156
157 SITKBasicFilters_EXPORT 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 );
158
160}
161#endif
The Image class for SimpleITK.
Definition sitkImage.h:77
void SetReferenceImage(const Image &refImage)
std::unique_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
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