go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
itkAdvancedEuler3DTransform.h
Go to the documentation of this file.
1/*=========================================================================
2 *
3 * Copyright UMC Utrecht and contributors
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/*=========================================================================
19
20 Program: Insight Segmentation & Registration Toolkit
21 Module: $RCSfile: itkAdvancedEuler3DTransform.h,v $
22 Date: $Date: 2008-10-13 15:36:31 $
23 Version: $Revision: 1.14 $
24
25 Copyright (c) Insight Software Consortium. All rights reserved.
26 See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
27
28 This software is distributed WITHOUT ANY WARRANTY; without even
29 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
30 PURPOSE. See the above copyright notices for more information.
31
32=========================================================================*/
33#ifndef itkAdvancedEuler3DTransform_h
34#define itkAdvancedEuler3DTransform_h
35
36#include <iostream>
38
39namespace itk
40{
41
62template <class TScalarType = double>
63// Data type for scalars (float or double)
64class ITK_TEMPLATE_EXPORT AdvancedEuler3DTransform : public AdvancedRigid3DTransform<TScalarType>
65{
66public:
68
72 using Pointer = SmartPointer<Self>;
73 using ConstPointer = SmartPointer<const Self>;
74
76 itkNewMacro(Self);
77
80
82 itkStaticConstMacro(SpaceDimension, unsigned int, 3);
83 itkStaticConstMacro(InputSpaceDimension, unsigned int, 3);
84 itkStaticConstMacro(OutputSpaceDimension, unsigned int, 3);
85 itkStaticConstMacro(ParametersDimension, unsigned int, 6);
86
87 using typename Superclass::ParametersType;
88 using typename Superclass::FixedParametersType;
89 using typename Superclass::NumberOfParametersType;
90 using typename Superclass::JacobianType;
91 using typename Superclass::ScalarType;
92 using typename Superclass::InputVectorType;
93 using typename Superclass::OutputVectorType;
94 using typename Superclass::InputCovariantVectorType;
95 using typename Superclass::OutputCovariantVectorType;
96 using typename Superclass::InputVnlVectorType;
97 using typename Superclass::OutputVnlVectorType;
98 using typename Superclass::InputPointType;
99 using typename Superclass::OutputPointType;
100 using typename Superclass::MatrixType;
101 using typename Superclass::InverseMatrixType;
102 using typename Superclass::CenterType;
103 using typename Superclass::TranslationType;
104 using typename Superclass::OffsetType;
105 using AngleType = typename Superclass::ScalarType;
106
108 using typename Superclass::SpatialJacobianType;
110 using typename Superclass::SpatialHessianType;
112 using typename Superclass::InternalMatrixType;
113
118 void
119 SetParameters(const ParametersType & parameters) override;
120
121 const ParametersType &
122 GetParameters() const override;
123
124 const FixedParametersType &
125 GetFixedParameters() const override;
126
127 void
128 SetFixedParameters(const FixedParametersType & parameters) override;
129
131 void
132 SetRotation(ScalarType angleX, ScalarType angleY, ScalarType angleZ);
133
134 itkGetConstMacro(AngleX, ScalarType);
135 itkGetConstMacro(AngleY, ScalarType);
136 itkGetConstMacro(AngleZ, ScalarType);
137
139 void
140 GetJacobian(const InputPointType &, JacobianType &, NonZeroJacobianIndicesType &) const override;
141
148 virtual void
149 SetComputeZYX(const bool flag);
150
151 itkGetConstMacro(ComputeZYX, bool);
152
153 void
154 SetIdentity() override;
155
156protected:
158 ~AdvancedEuler3DTransform() override = default;
159
160 void
161 PrintSelf(std::ostream & os, Indent indent) const override;
162
164 void
165 ComputeMatrix() override;
166
167 void
169
171 virtual void
173
174private:
175 ScalarType m_AngleX{};
176 ScalarType m_AngleY{};
177 ScalarType m_AngleZ{};
178 bool m_ComputeZYX{};
179};
180
181// class AdvancedEuler3DTransform
182
183} // namespace itk
184
185#ifndef ITK_MANUAL_INSTANTIATION
186# include "itkAdvancedEuler3DTransform.hxx"
187#endif
188
189#endif /* itkAdvancedEuler3DTransform_h */
AdvancedEuler3DTransform of a vector space (e.g. space coordinates)
itkStaticConstMacro(SpaceDimension, unsigned int, 3)
const FixedParametersType & GetFixedParameters() const override
itkStaticConstMacro(OutputSpaceDimension, unsigned int, 3)
itkStaticConstMacro(InputSpaceDimension, unsigned int, 3)
itkStaticConstMacro(ParametersDimension, unsigned int, 6)
void SetParameters(const ParametersType &parameters) override
void SetRotation(ScalarType angleX, ScalarType angleY, ScalarType angleZ)
void PrintSelf(std::ostream &os, Indent indent) const override
virtual void SetComputeZYX(const bool flag)
void GetJacobian(const InputPointType &, JacobianType &, NonZeroJacobianIndicesType &) const override
~AdvancedEuler3DTransform() override=default
void SetFixedParameters(const FixedParametersType &parameters) override
SmartPointer< const Self > ConstPointer
typename Superclass::ScalarType AngleType
const ParametersType & GetParameters() const override
virtual void PrecomputeJacobianOfSpatialJacobian()
ITK_DISALLOW_COPY_AND_MOVE(AdvancedEuler3DTransform)
void ComputeMatrixParameters() override
AdvancedRigid3DTransform of a vector space (e.g. space coordinates)
Matrix< TScalarType, Self::InputSpaceDimension, Self::OutputSpaceDimension > InverseMatrixType
Matrix< TScalarType, Self::OutputSpaceDimension, Self::InputSpaceDimension > MatrixType
typename SpatialJacobianType::InternalMatrixType InternalMatrixType
FixedArray< Matrix< ScalarType, InputSpaceDimension, InputSpaceDimension >, OutputSpaceDimension > SpatialHessianType
Matrix< ScalarType, OutputSpaceDimension, InputSpaceDimension > SpatialJacobianType


Generated on 2024-07-17 for elastix by doxygen 1.11.0 (9b424b03c9833626cd435af22a444888fbbb192d) elastix logo