go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
itkAdvancedRigid2DTransform.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: itkAdvancedRigid2DTransform.h,v $
22 Date: $Date: 2009-01-14 18:39:05 $
23 Version: $Revision: 1.22 $
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 itkAdvancedRigid2DTransform_h
34#define itkAdvancedRigid2DTransform_h
35
36#include <iostream>
38#include "itkMacro.h"
39
40namespace itk
41{
42
73template <class TScalarType = double>
74// Data type for scalars (float or double)
75class ITK_TEMPLATE_EXPORT AdvancedRigid2DTransform
76 : public AdvancedMatrixOffsetTransformBase<TScalarType, 2, 2> // Dimensions of input and output spaces
77{
78public:
80
84 using Pointer = SmartPointer<Self>;
85 using ConstPointer = SmartPointer<const Self>;
86
89
91 itkNewMacro(Self);
92
94 itkStaticConstMacro(InputSpaceDimension, unsigned int, 2);
95 itkStaticConstMacro(OutputSpaceDimension, unsigned int, 2);
96 itkStaticConstMacro(ParametersDimension, unsigned int, 3);
97
99 using typename Superclass::ScalarType;
100
102 using typename Superclass::ParametersType;
103 using typename Superclass::NumberOfParametersType;
104
106 using typename Superclass::JacobianType;
107
109 using typename Superclass::MatrixType;
110
112 using typename Superclass::OffsetType;
113
115 using typename Superclass::InputVectorType;
116 using typename Superclass::OutputVectorType;
117
119 using typename Superclass::InputCovariantVectorType;
120 using typename Superclass::OutputCovariantVectorType;
121
123 using typename Superclass::InputVnlVectorType;
124 using typename Superclass::OutputVnlVectorType;
125
127 using typename Superclass::InputPointType;
128 using typename Superclass::OutputPointType;
129
131 using typename Superclass::SpatialJacobianType;
133 using typename Superclass::SpatialHessianType;
135 using typename Superclass::InternalMatrixType;
136
149 void
150 SetMatrix(const MatrixType & matrix) override;
151
153 void
155
156 itkGetConstReferenceMacro(Angle, TScalarType);
157
166 void
167 SetParameters(const ParametersType & parameters) override;
168
177 const ParametersType &
178 GetParameters() const override;
179
184 void
185 GetJacobian(const InputPointType &, JacobianType &, NonZeroJacobianIndicesType &) const override;
186
188 void
189 SetIdentity() override;
190
191protected:
193 explicit AdvancedRigid2DTransform(unsigned int parametersDimension);
194 ~AdvancedRigid2DTransform() override = default;
195
199 void
200 PrintSelf(std::ostream & os, Indent indent) const override;
201
206 void
207 ComputeMatrix() override;
208
213 void
215
217 void
219 {
220 m_Angle = angle;
221 }
222
224 virtual void
226
227private:
228 TScalarType m_Angle{};
229};
230
231
232} // namespace itk
233
234#ifndef ITK_MANUAL_INSTANTIATION
235# include "itkAdvancedRigid2DTransform.hxx"
236#endif
237
238#endif /* itkAdvancedRigid2DTransform_h */
Matrix< TScalarType, Self::OutputSpaceDimension, Self::InputSpaceDimension > MatrixType
AdvancedRigid2DTransform of a vector space (e.g. space coordinates)
void PrintSelf(std::ostream &os, Indent indent) const override
virtual void PrecomputeJacobianOfSpatialJacobian()
itkStaticConstMacro(OutputSpaceDimension, unsigned int, 2)
void ComputeMatrixParameters() override
SmartPointer< const Self > ConstPointer
void SetParameters(const ParametersType &parameters) override
const ParametersType & GetParameters() const override
void GetJacobian(const InputPointType &, JacobianType &, NonZeroJacobianIndicesType &) const override
itkStaticConstMacro(InputSpaceDimension, unsigned int, 2)
void SetAngle(TScalarType angle)
AdvancedRigid2DTransform(unsigned int parametersDimension)
ITK_DISALLOW_COPY_AND_MOVE(AdvancedRigid2DTransform)
Matrix< TScalarType, Self::OutputSpaceDimension, Self::InputSpaceDimension > MatrixType
void SetMatrix(const MatrixType &matrix) override
~AdvancedRigid2DTransform() override=default
itkStaticConstMacro(ParametersDimension, unsigned int, 3)
typename SpatialJacobianType::InternalMatrixType InternalMatrixType
FixedArray< Matrix< ScalarType, InputSpaceDimension, InputSpaceDimension >, OutputSpaceDimension > SpatialHessianType
Matrix< ScalarType, OutputSpaceDimension, InputSpaceDimension > SpatialJacobianType
std::vector< SpatialHessianType > JacobianOfSpatialHessianType
std::vector< SpatialJacobianType > JacobianOfSpatialJacobianType
std::vector< unsigned long > NonZeroJacobianIndicesType


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