ITK  6.0.0
Insight Toolkit
itkEuler3DTransform.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 * https://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 itkEuler3DTransform_h
19#define itkEuler3DTransform_h
20
21#include <iostream>
22#include "itkRigid3DTransform.h"
23
24namespace itk
25{
47template <typename TParametersValueType = double>
48class ITK_TEMPLATE_EXPORT Euler3DTransform : public Rigid3DTransform<TParametersValueType>
49{
50public:
51 ITK_DISALLOW_COPY_AND_MOVE(Euler3DTransform);
52
58
60 itkNewMacro(Self);
61
63 itkOverrideGetNameOfClassMacro(Euler3DTransform);
64
66 static constexpr unsigned int SpaceDimension = 3;
67 static constexpr unsigned int InputSpaceDimension = 3;
68 static constexpr unsigned int OutputSpaceDimension = 3;
69 static constexpr unsigned int ParametersDimension = 6;
70
71 using typename Superclass::ParametersType;
75 using typename Superclass::JacobianType;
78 using typename Superclass::ScalarType;
79 using typename Superclass::InputVectorType;
80 using typename Superclass::OutputVectorType;
83 using typename Superclass::InputVnlVectorType;
85 using typename Superclass::InputPointType;
86 using typename Superclass::OutputPointType;
87 using typename Superclass::MatrixType;
88 using typename Superclass::InverseMatrixType;
89 using typename Superclass::CenterType;
90 using typename Superclass::TranslationType;
91 using typename Superclass::OffsetType;
93
98 void
99 SetParameters(const ParametersType & parameters) override;
100
101 const ParametersType &
102 GetParameters() const override;
103
104 const FixedParametersType &
105 GetFixedParameters() const override;
106 void
107 SetFixedParameters(const FixedParametersType & parameters) override;
108
110 void
112
113 itkGetConstMacro(AngleX, ScalarType);
114 itkGetConstMacro(AngleY, ScalarType);
115 itkGetConstMacro(AngleZ, ScalarType);
116
121 void
123 using Superclass::ComputeJacobianWithRespectToPosition;
124
131 virtual void
132 SetComputeZYX(const bool flag);
133 itkGetConstMacro(ComputeZYX, bool);
140 void
141 SetIdentity() override;
142
143protected:
144 Euler3DTransform(const MatrixType & matrix, const OutputPointType & offset);
145 Euler3DTransform(unsigned int parametersDimension);
147
148 ~Euler3DTransform() override = default;
149
150 void
151 PrintSelf(std::ostream & os, Indent indent) const override;
152
154 void
156
158 void
159 ComputeMatrix() override;
160
162 void
164
165private:
166 ScalarType m_AngleX{};
167 ScalarType m_AngleY{};
168 ScalarType m_AngleZ{};
169 bool m_ComputeZYX{};
170}; // class Euler3DTransform
171} // namespace itk
172
173#ifndef ITK_MANUAL_INSTANTIATION
174# include "itkEuler3DTransform.hxx"
175#endif
176
177#endif /* itkEuler3DTransform_h */
Array2D class representing a 2D array.
Definition: itkArray2D.h:43
A templated class holding a n-Dimensional covariant vector.
Euler3DTransform of a vector space (e.g. space coordinates)
void PrintSelf(std::ostream &os, Indent indent) const override
typename Superclass::ScalarType AngleType
void SetIdentity() override
~Euler3DTransform() override=default
void ComputeMatrixParameters() override
virtual void SetComputeZYX(const bool flag)
void ComputeJacobianWithRespectToParameters(const InputPointType &p, JacobianType &jacobian) const override
void SetFixedParameters(const FixedParametersType &parameters) override
void SetParameters(const ParametersType &parameters) override
const ParametersType & GetParameters() const override
void SetRotation(ScalarType angleX, ScalarType angleY, ScalarType angleZ)
const FixedParametersType & GetFixedParameters() const override
void ComputeMatrix() override
void SetVarRotation(ScalarType angleX, ScalarType angleY, ScalarType angleZ)
Euler3DTransform(const MatrixType &matrix, const OutputPointType &offset)
Euler3DTransform(unsigned int parametersDimension)
Control indentation during Print() invocation.
Definition: itkIndent.h:50
A templated class holding a M x N size Matrix.
Definition: itkMatrix.h:53
Class to hold and manage different parameter types used during optimization.
A templated class holding a geometric point in n-Dimensional space.
Definition: itkPoint.h:54
Rigid3DTransform of a vector space (e.g. space coordinates)
vnl_vector_fixed< TParametersValueType, Self::InputSpaceDimension > InputVnlVectorType
vnl_vector_fixed< TParametersValueType, Self::OutputSpaceDimension > OutputVnlVectorType
vnl_matrix_fixed< ParametersValueType, VOutputDimension, VInputDimension > JacobianPositionType
Definition: itkTransform.h:131
vnl_matrix_fixed< ParametersValueType, VInputDimension, VOutputDimension > InverseJacobianPositionType
Definition: itkTransform.h:132
ParametersValueType ScalarType
Definition: itkTransform.h:127
A templated class holding a n-Dimensional vector.
Definition: itkVector.h:63
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....