ITK  5.2.0
Insight Toolkit
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  * 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 #ifndef itkCenteredAffineTransform_h
19 #define itkCenteredAffineTransform_h
20 
21 #include "itkAffineTransform.h"
22 
23 namespace itk
24 {
33 template <typename TParametersValueType = double, unsigned int NDimensions = 3>
34 class ITK_TEMPLATE_EXPORT CenteredAffineTransform : public AffineTransform<TParametersValueType, NDimensions>
35 {
36 public:
37  ITK_DISALLOW_COPY_AND_MOVE(CenteredAffineTransform);
38 
44 
47 
49  itkNewMacro(Self);
50 
52  static constexpr unsigned int SpaceDimension = NDimensions;
53  static constexpr unsigned int ParametersDimension = NDimensions * (NDimensions + 2);
54 
56  using ParametersType = typename Superclass::ParametersType;
57  using ParametersValueType = typename Superclass::ParametersValueType;
58  using FixedParametersType = typename Superclass::FixedParametersType;
59  using FixedParametersValueType = typename Superclass::FixedParametersValueType;
60  using JacobianType = typename Superclass::JacobianType;
61  using JacobianPositionType = typename Superclass::JacobianPositionType;
62  using InverseJacobianPositionType = typename Superclass::InverseJacobianPositionType;
63  using ScalarType = typename Superclass::ScalarType;
64  using InputVectorType = typename Superclass::InputVectorType;
65  using OutputVectorType = typename Superclass::OutputVectorType;
66  using InputCovariantVectorType = typename Superclass::InputCovariantVectorType;
67  using OutputCovariantVectorType = typename Superclass::OutputCovariantVectorType;
68 
69  using InputVnlVectorType = typename Superclass::InputVnlVectorType;
70  using OutputVnlVectorType = typename Superclass::OutputVnlVectorType;
71  using InputPointType = typename Superclass::InputPointType;
72  using InputPointValueType = typename Superclass::InputPointValueType;
73  using OutputVectorValueType = typename Superclass::OutputVectorValueType;
74  using OutputPointType = typename Superclass::OutputPointType;
75  using MatrixType = typename Superclass::MatrixType;
76  using MatrixValueType = typename Superclass::MatrixValueType;
77  using OffsetType = typename Superclass::OffsetType;
78 
81  using InverseTransformBaseType = typename Superclass::InverseTransformBaseType;
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
105  ComputeJacobianWithRespectToParameters(const InputPointType & p, JacobianType & jacobian) const override;
106 
108  bool
109  GetInverse(Self * inverse) const;
110 
113  GetInverseTransform() const override;
114 
115 protected:
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 */
itk::AffineTransform::OffsetType
typename Superclass::OffsetType OffsetType
Definition: itkAffineTransform.h:144
itk::AffineTransform::OutputVnlVectorType
typename Superclass::OutputVnlVectorType OutputVnlVectorType
Definition: itkAffineTransform.h:138
itk::CenteredAffineTransform::FixedParametersValueType
typename Superclass::FixedParametersValueType FixedParametersValueType
Definition: itkCenteredAffineTransform.h:59
itk::CenteredAffineTransform::OutputVectorValueType
typename Superclass::OutputVectorValueType OutputVectorValueType
Definition: itkCenteredAffineTransform.h:73
itk::CenteredAffineTransform::ParametersValueType
typename Superclass::ParametersValueType ParametersValueType
Definition: itkCenteredAffineTransform.h:57
itk::AffineTransform::ScalarType
typename Superclass::ScalarType ScalarType
Definition: itkAffineTransform.h:132
itk::SmartPointer< Self >
itkAffineTransform.h
itk::AffineTransform
Definition: itkAffineTransform.h:101
itk::AffineTransform::MatrixType
typename Superclass::MatrixType MatrixType
Definition: itkAffineTransform.h:141
itk::AffineTransform::InputVnlVectorType
typename Superclass::InputVnlVectorType InputVnlVectorType
Definition: itkAffineTransform.h:137
itk::AffineTransform::ParametersType
typename Superclass::ParametersType ParametersType
Definition: itkAffineTransform.h:127
itk::AffineTransform::OutputVectorType
typename Superclass::OutputVectorType OutputVectorType
Definition: itkAffineTransform.h:136
itk::LightObject
Light weight base class for most itk classes.
Definition: itkLightObject.h:59
itk::AffineTransform::FixedParametersType
typename Superclass::FixedParametersType FixedParametersType
Definition: itkAffineTransform.h:128
itk::CenteredAffineTransform::InputPointValueType
typename Superclass::InputPointValueType InputPointValueType
Definition: itkCenteredAffineTransform.h:72
itk::AffineTransform::InputCovariantVectorType
typename Superclass::InputCovariantVectorType InputCovariantVectorType
Definition: itkAffineTransform.h:139
itk::AffineTransform::InverseJacobianPositionType
typename Superclass::InverseJacobianPositionType InverseJacobianPositionType
Definition: itkAffineTransform.h:131
itk::AffineTransform::InverseTransformBasePointer
typename InverseTransformBaseType::Pointer InverseTransformBasePointer
Definition: itkAffineTransform.h:150
itk::AffineTransform::JacobianPositionType
typename Superclass::JacobianPositionType JacobianPositionType
Definition: itkAffineTransform.h:130
itk::CenteredAffineTransform
Affine transformation with a specified center of rotation.
Definition: itkCenteredAffineTransform.h:34
itk::AffineTransform::InverseTransformBaseType
typename Superclass::InverseTransformBaseType InverseTransformBaseType
Definition: itkAffineTransform.h:149
itk::AffineTransform::OutputCovariantVectorType
typename Superclass::OutputCovariantVectorType OutputCovariantVectorType
Definition: itkAffineTransform.h:140
itk
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Definition: itkAnnulusOperator.h:24
itk::AffineTransform::OutputPointType
typename Superclass::OutputPointType OutputPointType
Definition: itkAffineTransform.h:134
itk::AffineTransform::InputPointType
typename Superclass::InputPointType InputPointType
Definition: itkAffineTransform.h:133
itk::CenteredAffineTransform::MatrixValueType
typename Superclass::MatrixValueType MatrixValueType
Definition: itkCenteredAffineTransform.h:76
itk::AffineTransform::InputVectorType
typename Superclass::InputVectorType InputVectorType
Definition: itkAffineTransform.h:135
itk::AffineTransform::JacobianType
typename Superclass::JacobianType JacobianType
Definition: itkAffineTransform.h:129