ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkScaleVersor3DTransform.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 itkScaleVersor3DTransform_h
19#define itkScaleVersor3DTransform_h
20
22
23namespace itk
24{
47template <typename TParametersValueType = double>
48class ITK_TEMPLATE_EXPORT ScaleVersor3DTransform : public VersorRigid3DTransform<TParametersValueType>
49{
50public:
52
58
60 itkNewMacro(Self);
61
64
66 static constexpr unsigned int InputSpaceDimension = 3;
67 static constexpr unsigned int OutputSpaceDimension = 3;
68 static constexpr unsigned int ParametersDimension = 9;
69
71 using typename Superclass::ParametersType;
73 using typename Superclass::JacobianType;
76 using typename Superclass::ScalarType;
77 using typename Superclass::InputPointType;
78 using typename Superclass::OutputPointType;
79 using typename Superclass::InputVectorType;
80 using typename Superclass::OutputVectorType;
81 using typename Superclass::InputVnlVectorType;
85 using typename Superclass::MatrixType;
86 using typename Superclass::InverseMatrixType;
87 using typename Superclass::CenterType;
88 using typename Superclass::OffsetType;
89 using typename Superclass::TranslationType;
90
91 using typename Superclass::VersorType;
92 using typename Superclass::AxisType;
93 using typename Superclass::AngleType;
94
97
103 void
104 SetMatrix(const MatrixType & matrix) override;
105 void
106 SetMatrix(const MatrixType & matrix, const TParametersValueType tolerance) override;
108
116 void
117 SetParameters(const ParametersType & parameters) override;
118
119 const ParametersType &
120 GetParameters() const override;
121
124 void
125 SetScale(const ScaleVectorType & scale);
126
128
131 void
132 SetIdentity() override;
133
138 void
140
141protected:
143#if !defined(ITK_LEGACY_REMOVE)
144 [[deprecated("Removed unused constructor")]] ScaleVersor3DTransform(const MatrixType & matrix,
145 const OutputVectorType & offset);
146#endif
147 ScaleVersor3DTransform(unsigned int parametersDimension);
148 ~ScaleVersor3DTransform() override = default;
149
150 void
151 PrintSelf(std::ostream & os, Indent indent) const override;
152
153 void
155 {
156 m_Scale = scale;
157 }
158
160 void
161 ComputeMatrix() override;
162
163 void
165
166private:
169}; // class ScaleVersor3DTransform
170} // namespace itk
171
172#ifndef ITK_MANUAL_INSTANTIATION
173# include "itkScaleVersor3DTransform.hxx"
174#endif
175
176#endif /* __ScaleVersor3DTransform_h */
OptimizerParameters< FixedParametersValueType > FixedParametersType
itkGetConstReferenceMacro(InputSpaceName, std::string)
OptimizerParameters< ParametersValueType > ParametersType
itkOverrideGetNameOfClassMacro(TransformBaseTemplate)
ITK_DISALLOW_COPY_AND_MOVE(TransformBaseTemplate)
Control indentation during Print() invocation.
Definition itkIndent.h:50
Point< double, Self::InputSpaceDimension > InputPointType
Vector< double, Self::OutputSpaceDimension > OutputVectorType
Matrix< TParametersValueType, Self::InputSpaceDimension, Self::OutputSpaceDimension > InverseMatrixType
Matrix< double, Self::OutputSpaceDimension, Self::InputSpaceDimension > MatrixType
VersorRigid3DTransform< TParametersValueType > Superclass
void SetScale(const ScaleVectorType &scale)
void SetMatrix(const MatrixType &matrix, const TParametersValueType tolerance) override
const ParametersType & GetParameters() const override
void PrintSelf(std::ostream &os, Indent indent) const override
static constexpr unsigned int InputSpaceDimension
void SetVarScale(const ScaleVectorType &scale)
void SetParameters(const ParametersType &parameters) override
~ScaleVersor3DTransform() override=default
static constexpr unsigned int OutputSpaceDimension
void ComputeMatrixParameters() override
void SetMatrix(const MatrixType &matrix) override
SmartPointer< const Self > ConstPointer
Vector< TParametersValueType, 3 > ScaleVectorType
void ComputeJacobianWithRespectToParameters(const InputPointType &p, JacobianType &jacobian) const override
void ComputeMatrix() override
ScaleVersor3DTransform(unsigned int parametersDimension)
void SetIdentity() override
static constexpr unsigned int ParametersDimension
Implements transparent reference counting.
Matrix< TParametersValueType, Self::OutputSpaceDimension, Self::InputSpaceDimension > MatrixType
Point< TParametersValueType, VOutputDimension > OutputPointType
OptimizerParameters< ParametersValueType > ParametersType
CovariantVector< TParametersValueType, VOutputDimension > OutputCovariantVectorType
vnl_vector_fixed< TParametersValueType, VInputDimension > InputVnlVectorType
vnl_matrix_fixed< ParametersValueType, VOutputDimension, VInputDimension > JacobianPositionType
vnl_matrix_fixed< ParametersValueType, VInputDimension, VOutputDimension > InverseJacobianPositionType
Point< TParametersValueType, VInputDimension > InputPointType
CovariantVector< TParametersValueType, VInputDimension > InputCovariantVectorType
Vector< TParametersValueType, VInputDimension > InputVectorType
Vector< TParametersValueType, VOutputDimension > OutputVectorType
vnl_vector_fixed< TParametersValueType, VOutputDimension > OutputVnlVectorType
A templated class holding a n-Dimensional vector.
Definition itkVector.h:63
VersorRigid3DTransform(unsigned int paramDim)
Array2D< ParametersValueType > JacobianType
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....