ITK  6.0.0
Insight Toolkit
itkRigid3DTransform.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 itkRigid3DTransform_h
19#define itkRigid3DTransform_h
20
21#include <iostream>
23#include "itkVersor.h"
24
25namespace itk
26{
56template <typename TParametersValueType = double>
57class ITK_TEMPLATE_EXPORT Rigid3DTransform : public MatrixOffsetTransformBase<TParametersValueType, 3, 3>
58{
59public:
60 ITK_DISALLOW_COPY_AND_MOVE(Rigid3DTransform);
61
67
69 itkNewMacro(Self);
70
72 itkOverrideGetNameOfClassMacro(Rigid3DTransform);
73
75 static constexpr unsigned int SpaceDimension = 3;
76 static constexpr unsigned int InputSpaceDimension = 3;
77 static constexpr unsigned int OutputSpaceDimension = 3;
78 static constexpr unsigned int ParametersDimension = 12;
79
80 using typename Superclass::ParametersType;
84 using typename Superclass::JacobianType;
87 using typename Superclass::ScalarType;
88 using typename Superclass::InputVectorType;
89 using typename Superclass::OutputVectorType;
93 using typename Superclass::InputVnlVectorType;
95 using typename Superclass::InputPointType;
96 using typename Superclass::OutputPointType;
97 using typename Superclass::MatrixType;
98 using typename Superclass::InverseMatrixType;
99 using typename Superclass::MatrixValueType;
100 using typename Superclass::CenterType;
101 using typename Superclass::TranslationType;
102 using typename Superclass::OffsetType;
103
108
119 void
120 SetParameters(const ParametersType & parameters) override;
121
127 void
128 SetMatrix(const MatrixType & matrix) override;
129
135 virtual void
136 SetMatrix(const MatrixType & matrix, const TParametersValueType tolerance);
137
145 void
146 Translate(const OffsetType & offset, bool pre = false);
147
152 bool
154 const MatrixType & matrix,
155 const TParametersValueType tolerance = MatrixOrthogonalityTolerance<TParametersValueType>::GetTolerance());
156
157
158protected:
159#if !defined(ITK_LEGACY_REMOVE)
160 [[deprecated("Removed unused constructor")]] Rigid3DTransform(const MatrixType & matrix,
161 const OutputVectorType & offset);
162#endif
163 Rigid3DTransform(unsigned int paramDim);
165 ~Rigid3DTransform() override = default;
166
170 void
171 PrintSelf(std::ostream & os, Indent indent) const override;
172}; // class Rigid3DTransform
173} // namespace itk
174
175#ifndef ITK_MANUAL_INSTANTIATION
176# include "itkRigid3DTransform.hxx"
177#endif
178
179#endif /* itkRigid3DTransform_h */
Array2D class representing a 2D array.
Definition: itkArray2D.h:43
A templated class holding a n-Dimensional covariant vector.
Control indentation during Print() invocation.
Definition: itkIndent.h:50
Matrix and Offset transformation of a vector space (e.g. space coordinates)
vnl_vector_fixed< TParametersValueType, Self::InputSpaceDimension > InputVnlVectorType
typename MatrixType::ValueType MatrixValueType
vnl_vector_fixed< TParametersValueType, Self::OutputSpaceDimension > OutputVnlVectorType
typename OutputVectorType::ValueType OutputVectorValueType
typename Superclass::InverseTransformBaseType InverseTransformBaseType
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 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)
void Translate(const OffsetType &offset, bool pre=false)
typename InverseTransformBaseType::Pointer InverseTransformBasePointer
bool MatrixIsOrthogonal(const MatrixType &matrix, const TParametersValueType tolerance=MatrixOrthogonalityTolerance< TParametersValueType >::GetTolerance())
virtual void SetMatrix(const MatrixType &matrix, const TParametersValueType tolerance)
~Rigid3DTransform() override=default
void PrintSelf(std::ostream &os, Indent indent) const override
void SetParameters(const ParametersType &parameters) override
void SetMatrix(const MatrixType &matrix) override
Rigid3DTransform(unsigned int paramDim)
typename Superclass::InverseTransformBaseType InverseTransformBaseType
A templated class holding a n-Dimensional vector.
Definition: itkVector.h:63
SmartPointer< Self > Pointer
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....