ITK  6.0.0
Insight Toolkit
itkCenteredRigid2DTransform.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 itkCenteredRigid2DTransform_h
19 #define itkCenteredRigid2DTransform_h
20 
21 #include <iostream>
22 #include "itkRigid2DTransform.h"
23 
24 namespace itk
25 {
51 template <typename TParametersValueType = double>
52 class ITK_TEMPLATE_EXPORT CenteredRigid2DTransform : public Rigid2DTransform<TParametersValueType>
53 {
54 public:
55  ITK_DISALLOW_COPY_AND_MOVE(CenteredRigid2DTransform);
56 
62 
64  itkNewMacro(Self);
65 
67  itkOverrideGetNameOfClassMacro(CenteredRigid2DTransform);
68 
70  static constexpr unsigned int SpaceDimension = 2;
71  static constexpr unsigned int OutputSpaceDimension = 2;
72  static constexpr unsigned int ParametersDimension = 5;
73 
75  using typename Superclass::ScalarType;
76  using typename Superclass::FixedParametersType;
77  using typename Superclass::FixedParametersValueType;
78  using typename Superclass::ParametersType;
79  using typename Superclass::ParametersValueType;
80 
82  using typename Superclass::JacobianType;
83  using typename Superclass::JacobianPositionType;
85 
87  using typename Superclass::OffsetType;
88 
90  using typename Superclass::InputPointType;
91  using typename Superclass::OutputPointType;
92  using typename Superclass::InputPointValueType;
93 
95  using typename Superclass::InputVectorType;
96  using typename Superclass::OutputVectorType;
97  using typename Superclass::OutputVectorValueType;
98 
102 
104  using typename Superclass::InputVnlVectorType;
105  using typename Superclass::OutputVnlVectorType;
106 
111 
120  void
121  SetParameters(const ParametersType & parameters) override;
122 
131  const ParametersType &
132  GetParameters() const override;
133 
137  void
138  ComputeJacobianWithRespectToParameters(const InputPointType & p, JacobianType & jacobian) const override;
139 
142  void
143  SetFixedParameters(const FixedParametersType &) override;
144 
147  const FixedParametersType &
148  GetFixedParameters() const override;
149 
153  void
154  CloneInverseTo(Pointer & result) const;
155 
157  bool
158  GetInverse(Self * inverse) const;
159 
162  GetInverseTransform() const override;
163 
167  void
168  CloneTo(Pointer & result) const;
169 
170 protected:
172  ~CenteredRigid2DTransform() override = default;
173 
174  CenteredRigid2DTransform(unsigned int spaceDimension, unsigned int parametersDimension);
175 
176  void
177  PrintSelf(std::ostream & os, Indent indent) const override;
178 }; // class CenteredRigid2DTransform
179 } // namespace itk
180 
181 #ifndef ITK_MANUAL_INSTANTIATION
182 # include "itkCenteredRigid2DTransform.hxx"
183 #endif
184 
185 #endif /* itkCenteredRigid2DTransform_h */
Pointer
SmartPointer< Self > Pointer
Definition: itkAddImageFilter.h:93
itkRigid2DTransform.h
itk::Transform::OutputVnlVectorType
vnl_vector_fixed< TParametersValueType, VOutputDimension > OutputVnlVectorType
Definition: itkTransform.h:157
itk::CenteredRigid2DTransform
CenteredRigid2DTransform of a vector space (e.g. space coordinates)
Definition: itkCenteredRigid2DTransform.h:52
itk::Vector
A templated class holding a n-Dimensional vector.
Definition: itkVector.h:62
itk::SmartPointer< Self >
itk::Indent
Control indentation during Print() invocation.
Definition: itkIndent.h:49
itk::Rigid2DTransform
Rigid2DTransform of a vector space (e.g. space coordinates)
Definition: itkRigid2DTransform.h:56
itk::MatrixOffsetTransformBase< TParametersValueType, 2, 2 >::OutputVectorValueType
typename OutputVectorType::ValueType OutputVectorValueType
Definition: itkMatrixOffsetTransformBase.h:150
itk::CenteredRigid2DTransform::InverseTransformBaseType
typename Superclass::InverseTransformBaseType InverseTransformBaseType
Definition: itkCenteredRigid2DTransform.h:109
itk::Transform::ScalarType
ParametersValueType ScalarType
Definition: itkTransform.h:127
itk::MatrixOffsetTransformBase< TParametersValueType, 2, 2 >::InputPointValueType
typename InputPointType::ValueType InputPointValueType
Definition: itkMatrixOffsetTransformBase.h:175
itk::CovariantVector
A templated class holding a n-Dimensional covariant vector.
Definition: itkCovariantVector.h:70
itk::CenteredRigid2DTransform::InverseTransformBasePointer
typename InverseTransformBaseType::Pointer InverseTransformBasePointer
Definition: itkCenteredRigid2DTransform.h:110
itk::Transform::JacobianPositionType
vnl_matrix_fixed< ParametersValueType, VOutputDimension, VInputDimension > JacobianPositionType
Definition: itkTransform.h:131
itk
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Definition: itkAnatomicalOrientation.h:29
itk::Transform::InverseJacobianPositionType
vnl_matrix_fixed< ParametersValueType, VInputDimension, VOutputDimension > InverseJacobianPositionType
Definition: itkTransform.h:132
itk::Point
A templated class holding a geometric point in n-Dimensional space.
Definition: itkPoint.h:53
itk::Array2D
Array2D class representing a 2D array.
Definition: itkArray2D.h:42
itk::Rigid2DTransform::InverseTransformBaseType
typename Superclass::InverseTransformBaseType InverseTransformBaseType
Definition: itkRigid2DTransform.h:119
itk::Transform::InputVnlVectorType
vnl_vector_fixed< TParametersValueType, VInputDimension > InputVnlVectorType
Definition: itkTransform.h:156