ITK  5.0.0
Insight Segmentation and Registration Toolkit
itkCenteredSimilarity2DTransform.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 itkCenteredSimilarity2DTransform_h
19 #define itkCenteredSimilarity2DTransform_h
20 
22 
23 namespace itk
24 {
54 template<typename TParametersValueType=double>
55 class ITK_TEMPLATE_EXPORT CenteredSimilarity2DTransform :
56  public Similarity2DTransform<TParametersValueType>
57 {
58 public:
59  ITK_DISALLOW_COPY_AND_ASSIGN(CenteredSimilarity2DTransform);
60 
66 
68  itkNewMacro(Self);
69 
72 
74  static constexpr unsigned int SpaceDimension = 2;
75  static constexpr unsigned int InputSpaceDimension = 2;
76  static constexpr unsigned int OutputSpaceDimension = 2;
77  static constexpr unsigned int ParametersDimension = 6;
78 
80  using ScalarType = typename Superclass::ScalarType;
81 
83  using FixedParametersType = typename Superclass::FixedParametersType;
84  using FixedParametersValueType = typename Superclass::FixedParametersValueType;
85  using ParametersType = typename Superclass::ParametersType;
86  using ParametersValueType = typename Superclass::ParametersValueType;
87 
89  using JacobianType = typename Superclass::JacobianType;
90  using JacobianPositionType = typename Superclass::JacobianPositionType;
91  using InverseJacobianPositionType = typename Superclass::InverseJacobianPositionType;
92 
94  using OffsetType = typename Superclass::OffsetType;
96 
98  using InputPointType = typename Superclass::InputPointType;
99  using OutputPointType = typename Superclass::OutputPointType;
100  using InputPointValueType = typename InputPointType::ValueType;
101 
103  using InputVectorType = typename Superclass::InputVectorType;
104  using OutputVectorType = typename Superclass::OutputVectorType;
105 
107  using InputCovariantVectorType = typename Superclass::InputCovariantVectorType;
108  using OutputCovariantVectorType = typename Superclass::OutputCovariantVectorType;
109 
111  using InputVnlVectorType = typename Superclass::InputVnlVectorType;
112  using OutputVnlVectorType = typename Superclass::OutputVnlVectorType;
113 
116  using InverseTransformBaseType = typename Superclass::InverseTransformBaseType;
117  using InverseTransformBasePointer = typename InverseTransformBaseType::Pointer;
118 
128  void SetParameters(const ParametersType & parameters) override;
129 
139  const ParametersType & GetParameters() const override;
140 
142  void ComputeJacobianWithRespectToParameters( const InputPointType & p, JacobianType & jacobian) const override;
143 
146  void SetFixedParameters(const FixedParametersType &) override;
147 
150  const FixedParametersType & GetFixedParameters() const override;
151 
155  void CloneInverseTo(Pointer & newinverse) const;
156 
158  bool GetInverse(Self *inverse) const;
159 
161  InverseTransformBasePointer GetInverseTransform() const override;
162 
166  void CloneTo(Pointer & clone) const;
167 
168 protected:
170  CenteredSimilarity2DTransform(unsigned int spaceDimension, unsigned int parametersDimension);
171 
172  ~CenteredSimilarity2DTransform() override = default;
173  void PrintSelf(std::ostream & os, Indent indent) const override;
174 };
175 
176 } // end namespace itk
177 
178 #ifndef ITK_MANUAL_INSTANTIATION
179 #include "itkCenteredSimilarity2DTransform.hxx"
180 #endif
181 
182 #endif /* itkCenteredSimilarity2DTransform_h */
typename Superclass::JacobianType JacobianType
typename Superclass::ParametersValueType ParametersValueType
Light weight base class for most itk classes.
Similarity2DTransform of a vector space (e.g. space coordinates)
typename Superclass::InverseTransformBaseType InverseTransformBaseType
typename Superclass::OffsetValueType OffsetValueType
typename Superclass::InputVnlVectorType InputVnlVectorType
typename Superclass::FixedParametersType FixedParametersType
typename InverseTransformBaseType::Pointer InverseTransformBasePointer
typename Superclass::JacobianPositionType JacobianPositionType
typename Superclass::InputPointType InputPointType
typename Superclass::OutputVectorType OutputVectorType
typename Superclass::InputCovariantVectorType InputCovariantVectorType
typename Superclass::OutputPointType OutputPointType
typename Superclass::FixedParametersValueType FixedParametersValueType
typename Superclass::InverseJacobianPositionType InverseJacobianPositionType
CenteredSimilarity2DTransform of a vector space (e.g. space coordinates)
typename Superclass::OutputCovariantVectorType OutputCovariantVectorType
typename Superclass::InputVectorType InputVectorType
Control indentation during Print() invocation.
Definition: itkIndent.h:49
typename Superclass::ParametersType ParametersType
signed long OffsetValueType
Definition: itkIntTypes.h:94
typename Superclass::OutputVnlVectorType OutputVnlVectorType
typename InputPointType::ValueType InputPointValueType