ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkCenteredAffineTransform.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 itkCenteredAffineTransform_h
19#define itkCenteredAffineTransform_h
20
21#include "itkAffineTransform.h"
22
23namespace itk
24{
33template <typename TParametersValueType = double, unsigned int VDimension = 3>
34class ITK_TEMPLATE_EXPORT CenteredAffineTransform : public AffineTransform<TParametersValueType, VDimension>
35{
36public:
38
44
47
50
52 static constexpr unsigned int SpaceDimension = VDimension;
53 static constexpr unsigned int ParametersDimension = VDimension * (VDimension + 2);
54
56 using typename Superclass::ParametersType;
60 using typename Superclass::JacobianType;
63 using typename Superclass::ScalarType;
64 using typename Superclass::InputVectorType;
65 using typename Superclass::OutputVectorType;
68
69 using typename Superclass::InputVnlVectorType;
71 using typename Superclass::InputPointType;
74 using typename Superclass::OutputPointType;
75 using typename Superclass::MatrixType;
76 using typename Superclass::MatrixValueType;
77 using typename Superclass::OffsetType;
78
82 using InverseTransformBasePointer = typename InverseTransformBaseType::Pointer;
83
92 void
93 SetParameters(const ParametersType & parameters) override;
94
95 const ParametersType &
96 GetParameters() const override;
97
104 void
106
108 bool
109 GetInverse(Self * inverse) const;
110
113 GetInverseTransform() const override;
114
115protected:
118
120 ~CenteredAffineTransform() override = default;
121}; // class CenteredAffineTransform
122} // namespace itk
123
124#ifndef ITK_MANUAL_INSTANTIATION
125# include "itkCenteredAffineTransform.hxx"
126#endif
127
128#endif /* itkCenteredAffineTransform_h */
OptimizerParameters< FixedParametersValueType > FixedParametersType
TParametersValueType ParametersValueType
OptimizerParameters< ParametersValueType > ParametersType
Vector< TParametersValueType, Self::InputSpaceDimension > InputVectorType
Point< TParametersValueType, Self::InputSpaceDimension > InputPointType
vnl_vector_fixed< TParametersValueType, Self::OutputSpaceDimension > OutputVnlVectorType
typename Superclass::InverseTransformBaseType InverseTransformBaseType
Matrix< TParametersValueType, Self::OutputSpaceDimension, Self::InputSpaceDimension > MatrixType
AffineTransform(const MatrixType &matrix, const OutputVectorType &offset)
vnl_vector_fixed< TParametersValueType, Self::InputSpaceDimension > InputVnlVectorType
Vector< TParametersValueType, Self::OutputSpaceDimension > OutputVectorType
ITK_DISALLOW_COPY_AND_MOVE(AffineTransform)
CovariantVector< TParametersValueType, Self::InputSpaceDimension > InputCovariantVectorType
Point< TParametersValueType, Self::OutputSpaceDimension > OutputPointType
itkOverrideGetNameOfClassMacro(AffineTransform)
CovariantVector< TParametersValueType, Self::OutputSpaceDimension > OutputCovariantVectorType
bool GetInverse(Self *inverse) const
typename InverseTransformBaseType::Pointer InverseTransformBasePointer
void SetParameters(const ParametersType &parameters) override
AffineTransform< TParametersValueType, VDimension > Superclass
SmartPointer< const Self > ConstPointer
Point< TParametersValueType, Self::InputSpaceDimension > InputPointType
~CenteredAffineTransform() override=default
const ParametersType & GetParameters() const override
InverseTransformBasePointer GetInverseTransform() const override
static constexpr unsigned int SpaceDimension
static constexpr unsigned int ParametersDimension
typename Superclass::InverseTransformBaseType InverseTransformBaseType
void ComputeJacobianWithRespectToParameters(const InputPointType &p, JacobianType &jacobian) const override
Implements transparent reference counting.
OptimizerParameters< ParametersValueType > ParametersType
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....