SimpleITK  
sitkCenteredVersorTransformInitializerFilter.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 sitkCenteredVersorTransformInitializerFilter_h
19#define sitkCenteredVersorTransformInitializerFilter_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 "sitkProcessObject.h"
32
33namespace itk::simple
34{
35
50{
51public:
53
56
60
63
64
68 void
69 SetComputeRotation(bool ComputeRotation)
70 {
71 this->m_ComputeRotation = ComputeRotation;
72 }
73
75 void
77 {
78 return this->SetComputeRotation(true);
79 }
80 void
82 {
83 return this->SetComputeRotation(false);
84 }
85
89 bool
91 {
92 return this->m_ComputeRotation;
93 }
94
95 std::string
96 GetName() const override
97 {
98 return std::string("CenteredVersorTransformInitializerFilter");
99 }
100
102 std::string
103 ToString() const override;
104
105
108 Execute(const Image & fixedImage, const Image & movingImage, const Transform & transform);
109
110
111private:
113
114 typedef Transform (Self::*MemberFunctionType)(const Image * fixedImage,
115 const Image * movingImage,
116 const itk::simple::Transform * transform);
117 template <class TImageType>
119 ExecuteInternal(const Image * fixedImage, const Image * movingImage, const itk::simple::Transform * transform);
120
121
123
126
127
128 /* */
129 bool m_ComputeRotation{ false };
130};
131
132
144 const Image & movingImage,
145 const Transform & transform,
146 bool computeRotation = false);
147
148} // namespace itk::simple
149#endif
Transform Execute(const Image &fixedImage, const Image &movingImage, const Transform &transform)
Transform(Self::* MemberFunctionType)(const Image *fixedImage, const Image *movingImage, const itk::simple::Transform *transform)
static const detail::MemberFunctionFactory< MemberFunctionType > & GetMemberFunctionFactory()
Transform ExecuteInternal(const Image *fixedImage, const Image *movingImage, const itk::simple::Transform *transform)
The Image class for SimpleITK.
Definition sitkImage.h:77
A simplified wrapper around a variety of ITK transforms.
A class used to instantiate and generate function object to templated member functions.
Transform CenteredVersorTransformInitializer(const Image &fixedImage, const Image &movingImage, const Transform &transform, bool computeRotation=false)
CenteredVersorTransformInitializer is a helper class intended to initialize the center of rotation,...
typelist2::typelist< BasicPixelID< int8_t >, BasicPixelID< uint8_t >, BasicPixelID< int16_t >, BasicPixelID< uint16_t >, BasicPixelID< int32_t >, BasicPixelID< uint32_t >, BasicPixelID< float >, BasicPixelID< double > > BasicPixelIDTypeList
#define SITKBasicFilters_EXPORT