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::NumberOfParametersType;
89 using typename Superclass::JacobianType;
90 using typename Superclass::ScalarType;
91 using typename Superclass::InputVectorType;
92 using typename Superclass::OutputVectorType;
93 using typename Superclass::InputCovariantVectorType;
94 using typename Superclass::OutputCovariantVectorType;
95 using typename Superclass::InputVnlVectorType;
96 using typename Superclass::OutputVnlVectorType;
97 using typename Superclass::InputPointType;
98 using typename Superclass::OutputPointType;
99 using typename Superclass::MatrixType;
100 using typename Superclass::InverseMatrixType;
101 using typename Superclass::CenterType;
102 using typename Superclass::TranslationType;
103 using typename Superclass::OffsetType;
104 using AngleType = typename Superclass::ScalarType;
105
107 using typename Superclass::SpatialJacobianType;
109 using typename Superclass::SpatialHessianType;
111 using typename Superclass::InternalMatrixType;
112
117 void
118 SetParameters(const ParametersType & parameters) override;
119
120 const ParametersType &
121 GetParameters() const override;
122
124 void
125 SetRotation(ScalarType angleX, ScalarType angleY, ScalarType angleZ);
126
127 itkGetConstMacro(AngleX, ScalarType);
128 itkGetConstMacro(AngleY, ScalarType);
129 itkGetConstMacro(AngleZ, ScalarType);
130
132 void
133 GetJacobian(const InputPointType &, JacobianType &, NonZeroJacobianIndicesType &) const override;
134
136 itkSetMacro(ComputeZYX, bool);
137 itkGetConstMacro(ComputeZYX, bool);
138
139 void
140 SetIdentity() override;
141
142protected:
144 ~AdvancedEuler3DTransform() override = default;
145
146 void
147 PrintSelf(std::ostream & os, Indent indent) const override;
148
150 void
151 ComputeMatrix() override;
152
153 void
155
157 virtual void
159
160private:
161 ScalarType m_AngleX;
162 ScalarType m_AngleY;
163 ScalarType m_AngleZ;
165};
166
167// class AdvancedEuler3DTransform
168
169} // namespace itk
170
171#ifndef ITK_MANUAL_INSTANTIATION
172# include "itkAdvancedEuler3DTransform.hxx"
173#endif
174
175#endif /* itkAdvancedEuler3DTransform_h */
AdvancedEuler3DTransform of a vector space (e.g. space coordinates)
itkStaticConstMacro(SpaceDimension, unsigned int, 3)
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
void GetJacobian(const InputPointType &, JacobianType &, NonZeroJacobianIndicesType &) const override
~AdvancedEuler3DTransform() override=default
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
Matrix< ScalarType, OutputSpaceDimension, InputSpaceDimension > SpatialJacobianType
std::vector< SpatialHessianType > JacobianOfSpatialHessianType
std::vector< SpatialJacobianType > JacobianOfSpatialJacobianType
FixedArray< Matrix< ScalarType, InputSpaceDimension, InputSpaceDimension >, OutputSpaceDimension > SpatialHessianType
std::vector< unsigned long > NonZeroJacobianIndicesType


Generated on 2023-01-13 for elastix by doxygen 1.9.6 elastix logo