ITK  6.0.0
Insight Toolkit
itkCenteredSimilarity2DTransform.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 itkCenteredSimilarity2DTransform_h
19 #define itkCenteredSimilarity2DTransform_h
20 
22 
23 namespace itk
24 {
54 template <typename TParametersValueType = double>
55 class ITK_TEMPLATE_EXPORT CenteredSimilarity2DTransform : public Similarity2DTransform<TParametersValueType>
56 {
57 public:
58  ITK_DISALLOW_COPY_AND_MOVE(CenteredSimilarity2DTransform);
59 
65 
67  itkNewMacro(Self);
68 
70  itkOverrideGetNameOfClassMacro(CenteredSimilarity2DTransform);
71 
73  static constexpr unsigned int SpaceDimension = 2;
74  static constexpr unsigned int InputSpaceDimension = 2;
75  static constexpr unsigned int OutputSpaceDimension = 2;
76  static constexpr unsigned int ParametersDimension = 6;
77 
79  using typename Superclass::ScalarType;
80 
82  using typename Superclass::FixedParametersType;
83  using typename Superclass::FixedParametersValueType;
84  using typename Superclass::ParametersType;
85  using typename Superclass::ParametersValueType;
86 
88  using typename Superclass::JacobianType;
89  using typename Superclass::JacobianPositionType;
91 
93  using typename Superclass::OffsetType;
94  using typename Superclass::OffsetValueType;
95 
97  using typename Superclass::InputPointType;
98  using typename Superclass::OutputPointType;
100 
102  using typename Superclass::InputVectorType;
103  using typename Superclass::OutputVectorType;
104 
108 
110  using typename Superclass::InputVnlVectorType;
111  using typename Superclass::OutputVnlVectorType;
112 
117 
127  void
128  SetParameters(const ParametersType & parameters) override;
129 
139  const ParametersType &
140  GetParameters() const override;
141 
143  void
144  ComputeJacobianWithRespectToParameters(const InputPointType & p, JacobianType & jacobian) const override;
145 
148  void
149  SetFixedParameters(const FixedParametersType &) override;
150 
153  const FixedParametersType &
154  GetFixedParameters() const override;
155 
159  void
160  CloneInverseTo(Pointer & result) const;
161 
163  bool
164  GetInverse(Self * inverse) const;
165 
168  GetInverseTransform() const override;
169 
173  void
174  CloneTo(Pointer & result) const;
175 
176 protected:
178  CenteredSimilarity2DTransform(unsigned int spaceDimension, unsigned int parametersDimension);
179 
180  ~CenteredSimilarity2DTransform() override = default;
181  void
182  PrintSelf(std::ostream & os, Indent indent) const override;
183 };
184 
185 } // end namespace itk
186 
187 #ifndef ITK_MANUAL_INSTANTIATION
188 # include "itkCenteredSimilarity2DTransform.hxx"
189 #endif
190 
191 #endif /* itkCenteredSimilarity2DTransform_h */
Pointer
SmartPointer< Self > Pointer
Definition: itkAddImageFilter.h:93
itkSimilarity2DTransform.h
itk::CenteredSimilarity2DTransform::InputPointValueType
typename InputPointType::ValueType InputPointValueType
Definition: itkCenteredSimilarity2DTransform.h:99
itk::Transform::OutputVnlVectorType
vnl_vector_fixed< TParametersValueType, VOutputDimension > OutputVnlVectorType
Definition: itkTransform.h:157
itk::Vector
A templated class holding a n-Dimensional vector.
Definition: itkVector.h:62
itk::Point::ValueType
TCoordRep ValueType
Definition: itkPoint.h:63
itk::SmartPointer< Self >
itk::Indent
Control indentation during Print() invocation.
Definition: itkIndent.h:49
itk::CenteredSimilarity2DTransform::InverseTransformBasePointer
typename InverseTransformBaseType::Pointer InverseTransformBasePointer
Definition: itkCenteredSimilarity2DTransform.h:116
itk::Similarity2DTransform
Similarity2DTransform of a vector space (e.g. space coordinates)
Definition: itkSimilarity2DTransform.h:62
itk::OffsetValueType
long OffsetValueType
Definition: itkIntTypes.h:97
itk::Transform::ScalarType
ParametersValueType ScalarType
Definition: itkTransform.h:127
itk::CovariantVector
A templated class holding a n-Dimensional covariant vector.
Definition: itkCovariantVector.h:70
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::Similarity2DTransform::InverseTransformBaseType
typename Superclass::InverseTransformBaseType InverseTransformBaseType
Definition: itkSimilarity2DTransform.h:125
itk::Array2D
Array2D class representing a 2D array.
Definition: itkArray2D.h:42
itk::CenteredSimilarity2DTransform
CenteredSimilarity2DTransform of a vector space (e.g. space coordinates)
Definition: itkCenteredSimilarity2DTransform.h:55
itk::CenteredSimilarity2DTransform::InverseTransformBaseType
typename Superclass::InverseTransformBaseType InverseTransformBaseType
Definition: itkCenteredSimilarity2DTransform.h:115
itk::Transform::InputVnlVectorType
vnl_vector_fixed< TParametersValueType, VInputDimension > InputVnlVectorType
Definition: itkTransform.h:156