ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkFixedCenterOfRotationAffineTransform.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 itkFixedCenterOfRotationAffineTransform_h
19#define itkFixedCenterOfRotationAffineTransform_h
20
22
23namespace itk
24{
32
33template <typename TParametersValueType = double, unsigned int VDimension = 3>
34// Number of dimensions in the input space
35class ITK_TEMPLATE_EXPORT FixedCenterOfRotationAffineTransform
36 : public ScalableAffineTransform<TParametersValueType, VDimension>
37{
38public:
39 ITK_DISALLOW_COPY_AND_MOVE(FixedCenterOfRotationAffineTransform);
40
46
48 itkOverrideGetNameOfClassMacro(FixedCenterOfRotationAffineTransform);
49
51
54 GetInverseTransform() const override;
55
57 itkNewMacro(Self);
58
60 static constexpr unsigned int InputSpaceDimension = VDimension;
61 static constexpr unsigned int OutputSpaceDimension = VDimension;
62 static constexpr unsigned int SpaceDimension = VDimension;
63 static constexpr unsigned int ParametersDimension = VDimension * (VDimension + 2);
64
66 using typename Superclass::ParametersType;
68 using typename Superclass::JacobianType;
71 using typename Superclass::ScalarType;
72 using typename Superclass::InputVectorType;
73 using typename Superclass::OutputVectorType;
76 using typename Superclass::InputVnlVectorType;
78 using typename Superclass::InputPointType;
79 using typename Superclass::OutputPointType;
80 using typename Superclass::MatrixType;
81 using typename Superclass::InverseMatrixType;
82 using typename Superclass::CenterType;
83 using typename Superclass::TranslationType;
84 using typename Superclass::OffsetType;
85
88 void
90 {
91 this->SetCenter(cor);
92 }
93 InputPointType
95 {
96 return this->GetCenter();
97 }
98
101 void
103 {
104 this->SetMatrix(matrix);
105 }
106
108 const MatrixType &
110 {
111 return this->GetMatrix();
112 }
113
115 void
117 {
118 this->SetTranslation(offset);
119 }
120
122 const OffsetType &
124 {
125 return this->GetTranslation();
126 }
127
128protected:
131#if !defined(ITK_LEGACY_REMOVE)
132 [[deprecated("Removed unused constructor")]] FixedCenterOfRotationAffineTransform(const MatrixType & matrix,
133 const OutputVectorType & offset);
134#endif
135 FixedCenterOfRotationAffineTransform(unsigned int outputSpaceDims, unsigned int paramsDims);
140}; // class FixedCenterOfRotationAffineTransform
141} // namespace itk
142
143#ifndef ITK_MANUAL_INSTANTIATION
144# include "itkFixedCenterOfRotationAffineTransform.hxx"
145#endif
146
147#endif /* itkFixedCenterOfRotationAffineTransform_h */
Affine transformation with a specified center of rotation.
ScalableAffineTransform< TParametersValueType, VDimension > Superclass
InverseTransformBasePointer GetInverseTransform() const override
typename InverseTransformBaseType::Pointer InverseTransformBasePointer
~FixedCenterOfRotationAffineTransform() override=default
FixedCenterOfRotationAffineTransform(unsigned int outputSpaceDims, unsigned int paramsDims)
CovariantVector< TParametersValueType, Self::InputSpaceDimension > InputCovariantVectorType
ScalableAffineTransform(unsigned int outputSpaceDimension, unsigned int parametersDimension)
vnl_vector_fixed< TParametersValueType, Self::InputSpaceDimension > InputVnlVectorType
Vector< TParametersValueType, Self::OutputSpaceDimension > OutputVectorType
Matrix< TParametersValueType, Self::OutputSpaceDimension, Self::InputSpaceDimension > MatrixType
Point< TParametersValueType, Self::InputSpaceDimension > InputPointType
CovariantVector< TParametersValueType, Self::OutputSpaceDimension > OutputCovariantVectorType
Matrix< TParametersValueType, Self::InputSpaceDimension, Self::OutputSpaceDimension > InverseMatrixType
Point< TParametersValueType, Self::OutputSpaceDimension > OutputPointType
vnl_vector_fixed< TParametersValueType, Self::OutputSpaceDimension > OutputVnlVectorType
Vector< TParametersValueType, Self::InputSpaceDimension > InputVectorType
Implements transparent reference counting.
OptimizerParameters< ParametersValueType > ParametersType
OptimizerParameters< FixedParametersValueType > FixedParametersType
vnl_matrix_fixed< ParametersValueType, VOutputDimension, VInputDimension > JacobianPositionType
vnl_matrix_fixed< ParametersValueType, VInputDimension, VOutputDimension > InverseJacobianPositionType
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....