ITK  5.0.0
Insight Segmentation and Registration Toolkit
itkCenteredAffineTransform.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright Insight Software Consortium
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,
34  unsigned int NDimensions = 3>
35 class ITK_TEMPLATE_EXPORT CenteredAffineTransform : public AffineTransform<TParametersValueType,
36  NDimensions>
37 {
38 public:
41  using Superclass = AffineTransform<TParametersValueType,
42  NDimensions >;
45 
48 
50  itkNewMacro(Self);
51 
53  static constexpr unsigned int SpaceDimension = NDimensions;
54  static constexpr unsigned int ParametersDimension = NDimensions * ( NDimensions + 2 );
55 
57  using ParametersType = typename Superclass::ParametersType;
58  using ParametersValueType = typename Superclass::ParametersValueType;
59  using FixedParametersType = typename Superclass::FixedParametersType;
60  using FixedParametersValueType = typename Superclass::FixedParametersValueType;
61  using JacobianType = typename Superclass::JacobianType;
62  using JacobianPositionType = typename Superclass::JacobianPositionType;
63  using InverseJacobianPositionType = typename Superclass::InverseJacobianPositionType;
64  using ScalarType = typename Superclass::ScalarType;
65  using InputVectorType = typename Superclass::InputVectorType;
66  using OutputVectorType = typename Superclass::OutputVectorType;
67  using InputCovariantVectorType = typename Superclass::InputCovariantVectorType;
68  using OutputCovariantVectorType = typename Superclass::OutputCovariantVectorType;
69 
70  using InputVnlVectorType = typename Superclass::InputVnlVectorType;
71  using OutputVnlVectorType = typename Superclass::OutputVnlVectorType;
72  using InputPointType = typename Superclass::InputPointType;
73  using InputPointValueType = typename Superclass::InputPointValueType;
74  using OutputVectorValueType = typename Superclass::OutputVectorValueType;
75  using OutputPointType = typename Superclass::OutputPointType;
76  using MatrixType = typename Superclass::MatrixType;
77  using MatrixValueType = typename Superclass::MatrixValueType;
78  using OffsetType = typename Superclass::OffsetType;
79 
82  using InverseTransformBaseType = typename Superclass::InverseTransformBaseType;
83  using InverseTransformBasePointer = typename InverseTransformBaseType::Pointer;
84 
93  void SetParameters(const ParametersType & parameters) override;
94 
95  const ParametersType & GetParameters() const override;
96 
103  void ComputeJacobianWithRespectToParameters( const InputPointType & p, JacobianType & jacobian) const override;
104 
106  bool GetInverse(Self *inverse) const;
107 
109  InverseTransformBasePointer GetInverseTransform() const override;
110 
111 protected:
114 
116  ~CenteredAffineTransform() override = default;
117 
118 private:
119  CenteredAffineTransform(const Self & other) = delete;
120  const Self & operator=(const Self &) = delete;
121 
122 }; // class CenteredAffineTransform
123 } // namespace itk
124 
125 #ifndef ITK_MANUAL_INSTANTIATION
126 #include "itkCenteredAffineTransform.hxx"
127 #endif
128 
129 #endif /* itkCenteredAffineTransform_h */
typename Superclass::InverseTransformBaseType InverseTransformBaseType
typename Superclass::InputPointValueType InputPointValueType
Light weight base class for most itk classes.
typename Superclass::JacobianType JacobianType
typename Superclass::ParametersValueType ParametersValueType
typename Superclass::InputVnlVectorType InputVnlVectorType
typename Superclass::MatrixValueType MatrixValueType
typename Superclass::JacobianPositionType JacobianPositionType
typename Superclass::OutputVectorType OutputVectorType
typename Superclass::OffsetType OffsetType
typename Superclass::MatrixType MatrixType
typename Superclass::FixedParametersType FixedParametersType
typename Superclass::InputVectorType InputVectorType
typename Superclass::InputCovariantVectorType InputCovariantVectorType
typename Superclass::OutputVnlVectorType OutputVnlVectorType
typename InverseTransformBaseType::Pointer InverseTransformBasePointer
Affine transformation with a specified center of rotation.
typename Superclass::OutputPointType OutputPointType
typename Superclass::InputPointType InputPointType
typename Superclass::FixedParametersValueType FixedParametersValueType
typename Superclass::OutputVectorValueType OutputVectorValueType
typename Superclass::ParametersType ParametersType
typename Superclass::ScalarType ScalarType
typename Superclass::OutputCovariantVectorType OutputCovariantVectorType
typename Superclass::InverseJacobianPositionType InverseJacobianPositionType