ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
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
69 GetInverseTransform() const override;
70
72 static constexpr unsigned int SpaceDimension = 3;
73 static constexpr unsigned int InputSpaceDimension = 3;
74 static constexpr unsigned int OutputSpaceDimension = 3;
75 static constexpr unsigned int ParametersDimension = 6;
76
77 using typename Superclass::ParametersType;
81 using typename Superclass::JacobianType;
84 using typename Superclass::ScalarType;
85 using typename Superclass::InputVectorType;
86 using typename Superclass::OutputVectorType;
89 using typename Superclass::InputVnlVectorType;
91 using typename Superclass::InputPointType;
92 using typename Superclass::OutputPointType;
93 using typename Superclass::MatrixType;
94 using typename Superclass::InverseMatrixType;
95 using typename Superclass::CenterType;
96 using typename Superclass::TranslationType;
97 using typename Superclass::OffsetType;
99
104 void
105 SetParameters(const ParametersType & parameters) override;
106
107 const ParametersType &
108 GetParameters() const override;
109
110 const FixedParametersType &
111 GetFixedParameters() const override;
112 void
113 SetFixedParameters(const FixedParametersType & parameters) override;
114
116 void
118
119 itkGetConstMacro(AngleX, ScalarType);
120 itkGetConstMacro(AngleY, ScalarType);
121 itkGetConstMacro(AngleZ, ScalarType);
122
127 void
130
138 virtual void
139 SetComputeZYX(const bool flag);
140 itkGetConstMacro(ComputeZYX, bool);
146 void
147 SetIdentity() override;
148
149protected:
150 Euler3DTransform(const MatrixType & matrix, const OutputPointType & offset);
151 Euler3DTransform(unsigned int parametersDimension);
153
154 ~Euler3DTransform() override = default;
155
156 void
157 PrintSelf(std::ostream & os, Indent indent) const override;
158
160 void
162
164 void
165 ComputeMatrix() override;
166
168 void
170
171private:
176}; // class Euler3DTransform
177} // namespace itk
178
179#ifndef ITK_MANUAL_INSTANTIATION
180# include "itkEuler3DTransform.hxx"
181#endif
182
183#endif /* itkEuler3DTransform_h */
void PrintSelf(std::ostream &os, Indent indent) const override
void SetIdentity() override
~Euler3DTransform() override=default
void ComputeMatrixParameters() override
static constexpr unsigned int ParametersDimension
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)
InverseTransformBasePointer GetInverseTransform() const override
const FixedParametersType & GetFixedParameters() const override
void ComputeMatrix() override
static constexpr unsigned int InputSpaceDimension
void SetVarRotation(ScalarType angleX, ScalarType angleY, ScalarType angleZ)
Euler3DTransform(const MatrixType &matrix, const OutputPointType &offset)
typename InverseTransformBaseType::Pointer InverseTransformBasePointer
static constexpr unsigned int OutputSpaceDimension
Rigid3DTransform< TParametersValueType > Superclass
Euler3DTransform(unsigned int parametersDimension)
Control indentation during Print() invocation.
Definition itkIndent.h:51
Point< TParametersValueType, Self::InputSpaceDimension > InputPointType
Point< TParametersValueType, Self::OutputSpaceDimension > OutputPointType
void ComputeJacobianWithRespectToPosition(const InputPointType &x, JacobianPositionType &jac) const override
Matrix< TParametersValueType, Self::InputSpaceDimension, Self::OutputSpaceDimension > InverseMatrixType
Matrix< TParametersValueType, Self::OutputSpaceDimension, Self::InputSpaceDimension > MatrixType
typename InverseTransformBaseType::Pointer InverseTransformBasePointer
vnl_matrix_fixed< ParametersValueType, VInputDimension, VOutputDimension > InverseJacobianPositionType
Array2D< ParametersValueType > JacobianType
Rigid3DTransform(unsigned int paramDim)
vnl_matrix_fixed< ParametersValueType, VOutputDimension, VInputDimension > JacobianPositionType
Implements transparent reference counting.
OptimizerParameters< ParametersValueType > ParametersType
TParametersValueType ParametersValueType
OptimizerParameters< FixedParametersValueType > FixedParametersType
Matrix< TParametersValueType, Self::OutputSpaceDimension, Self::InputSpaceDimension > MatrixType
Point< TParametersValueType, VOutputDimension > OutputPointType
OptimizerParameters< FixedParametersValueType > FixedParametersType
CovariantVector< TParametersValueType, VOutputDimension > OutputCovariantVectorType
vnl_vector_fixed< TParametersValueType, VInputDimension > InputVnlVectorType
Point< TParametersValueType, VInputDimension > InputPointType
CovariantVector< TParametersValueType, VInputDimension > InputCovariantVectorType
Vector< TParametersValueType, VInputDimension > InputVectorType
Vector< TParametersValueType, VOutputDimension > OutputVectorType
vnl_vector_fixed< TParametersValueType, VOutputDimension > OutputVnlVectorType
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....