ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
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
23namespace itk
24{
54template <typename TParametersValueType = double>
55class ITK_TEMPLATE_EXPORT CenteredSimilarity2DTransform : public Similarity2DTransform<TParametersValueType>
56{
57public:
59
65
67 itkNewMacro(Self);
68
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
84 using typename Superclass::ParametersType;
86
88 using typename Superclass::JacobianType;
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
116 using InverseTransformBasePointer = typename InverseTransformBaseType::Pointer;
117
127 void
128 SetParameters(const ParametersType & parameters) override;
129
139 const ParametersType &
140 GetParameters() const override;
141
143 void
145
148 void
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
176protected:
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 */
OptimizerParameters< FixedParametersValueType > FixedParametersType
TParametersValueType ParametersValueType
OptimizerParameters< ParametersValueType > ParametersType
itkOverrideGetNameOfClassMacro(TransformBaseTemplate)
ITK_DISALLOW_COPY_AND_MOVE(TransformBaseTemplate)
void CloneInverseTo(Pointer &result) const
Similarity2DTransform< TParametersValueType > Superclass
void CloneTo(Pointer &result) const
const FixedParametersType & GetFixedParameters() const override
~CenteredSimilarity2DTransform() override=default
typename InverseTransformBaseType::Pointer InverseTransformBasePointer
InverseTransformBasePointer GetInverseTransform() const override
void SetParameters(const ParametersType &parameters) override
const ParametersType & GetParameters() const override
bool GetInverse(Self *inverse) const
void SetFixedParameters(const FixedParametersType &) override
typename InputPointType::ValueType InputPointValueType
CenteredSimilarity2DTransform(unsigned int spaceDimension, unsigned int parametersDimension)
void ComputeJacobianWithRespectToParameters(const InputPointType &p, JacobianType &jacobian) const override
typename Superclass::InverseTransformBaseType InverseTransformBaseType
void PrintSelf(std::ostream &os, Indent indent) const override
Control indentation during Print() invocation.
Definition itkIndent.h:50
Point< double, Self::InputSpaceDimension > InputPointType
vnl_matrix_fixed< ParametersValueType, VInputDimension, VOutputDimension > InverseJacobianPositionType
Array2D< ParametersValueType > JacobianType
Similarity2DTransform(unsigned int outputSpaceDimension, unsigned int parametersDimension)
typename Superclass::InverseTransformBaseType InverseTransformBaseType
vnl_matrix_fixed< ParametersValueType, VOutputDimension, VInputDimension > JacobianPositionType
Implements transparent reference counting.
OptimizerParameters< FixedParametersValueType > FixedParametersType
Point< TParametersValueType, VOutputDimension > OutputPointType
OptimizerParameters< ParametersValueType > ParametersType
CovariantVector< TParametersValueType, VOutputDimension > OutputCovariantVectorType
vnl_vector_fixed< TParametersValueType, VInputDimension > InputVnlVectorType
Point< TParametersValueType, VInputDimension > InputPointType
CovariantVector< TParametersValueType, VInputDimension > InputCovariantVectorType
Vector< TParametersValueType, VInputDimension > InputVectorType
Vector< TParametersValueType, VOutputDimension > OutputVectorType
vnl_vector_fixed< TParametersValueType, VOutputDimension > OutputVnlVectorType
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....