go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
itkAffineLogTransform.h
Go to the documentation of this file.
1/*=========================================================================
2 *
3 * Copyright UMC Utrecht and contributors
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 itkAffineLogTransform_h
19#define itkAffineLogTransform_h
20
21#include <iostream>
23
24namespace itk
25{
26
32template <class TScalarType = double, unsigned int Dimension = 2> // Data type for scalars (float or double)
33class AffineLogTransform : public AdvancedMatrixOffsetTransformBase<TScalarType, Dimension, Dimension>
34{
35public:
37
41 using Pointer = SmartPointer<Self>;
42 using ConstPointer = SmartPointer<const Self>;
43
45 itkNewMacro(Self);
46
49
51 itkStaticConstMacro(SpaceDimension, unsigned int, Dimension);
52 itkStaticConstMacro(OutputSpaceDimension, unsigned int, Dimension);
53 itkStaticConstMacro(InputSpaceDimension, unsigned int, Dimension);
54 itkStaticConstMacro(ParametersDimension, unsigned int, (Dimension + 1) * Dimension);
55
56 using typename Superclass::ParametersType;
57 using typename Superclass::NumberOfParametersType;
58 using typename Superclass::JacobianType;
59 using typename Superclass::ScalarType;
60 using typename Superclass::InputVectorType;
61 using typename Superclass::OutputVectorType;
62 using typename Superclass::InputCovariantVectorType;
63 using typename Superclass::OutputCovariantVectorType;
64 using typename Superclass::InputVnlVectorType;
65 using typename Superclass::OutputVnlVectorType;
66 using typename Superclass::InputPointType;
67 using typename Superclass::OutputPointType;
68 using typename Superclass::MatrixType;
69 using typename Superclass::InverseMatrixType;
70 using typename Superclass::CenterType;
71 using typename Superclass::TranslationType;
72 using typename Superclass::OffsetType;
73 using AngleType = typename Superclass::ScalarType;
74
78 using typename Superclass::SpatialHessianType;
80 using typename Superclass::InternalMatrixType;
81
82 using ScalarArrayType = FixedArray<ScalarType>;
83
84 void
85 SetParameters(const ParametersType & parameters) override;
86
87 const ParametersType &
88 GetParameters() const override;
89
91 void
92 GetJacobian(const InputPointType &, JacobianType &, NonZeroJacobianIndicesType &) const override;
93
94 void
95 SetIdentity() override;
96
97protected:
99 AffineLogTransform(const MatrixType & matrix, const OutputPointType & offset);
100 AffineLogTransform(unsigned int outputSpaceDims, unsigned int paramsSpaceDims);
101
102 ~AffineLogTransform() override = default;
103
104 void
105 PrintSelf(std::ostream & os, Indent indent) const override;
106
108 virtual void
110
111private:
113};
114
115} // namespace itk
116
117#ifndef ITK_MANUAL_INSTANTIATION
118# include "itkAffineLogTransform.hxx"
119#endif
120
121#endif /* itkAffineLogTransform_h */
Matrix< TScalarType, Self::InputSpaceDimension, Self::OutputSpaceDimension > InverseMatrixType
Matrix< TScalarType, Self::OutputSpaceDimension, Self::InputSpaceDimension > MatrixType
typename SpatialJacobianType::InternalMatrixType InternalMatrixType
FixedArray< Matrix< ScalarType, InputSpaceDimension, InputSpaceDimension >, OutputSpaceDimension > SpatialHessianType
Matrix< ScalarType, OutputSpaceDimension, InputSpaceDimension > SpatialJacobianType
std::vector< SpatialHessianType > JacobianOfSpatialHessianType
std::vector< SpatialJacobianType > JacobianOfSpatialJacobianType
std::vector< unsigned long > NonZeroJacobianIndicesType
itkStaticConstMacro(ParametersDimension, unsigned int,(Dimension+1) *Dimension)
void SetParameters(const ParametersType &parameters) override
void GetJacobian(const InputPointType &, JacobianType &, NonZeroJacobianIndicesType &) const override
~AffineLogTransform() override=default
FixedArray< ScalarType > ScalarArrayType
AffineLogTransform(unsigned int outputSpaceDims, unsigned int paramsSpaceDims)
ITK_DISALLOW_COPY_AND_MOVE(AffineLogTransform)
void PrintSelf(std::ostream &os, Indent indent) const override
itkStaticConstMacro(InputSpaceDimension, unsigned int, Dimension)
const ParametersType & GetParameters() const override
SmartPointer< const Self > ConstPointer
typename Superclass::ScalarType AngleType
AffineLogTransform(const MatrixType &matrix, const OutputPointType &offset)
itkStaticConstMacro(OutputSpaceDimension, unsigned int, Dimension)
Matrix< TScalarType, Self::OutputSpaceDimension, Self::InputSpaceDimension > MatrixType
virtual void PrecomputeJacobianOfSpatialJacobian()
itkStaticConstMacro(SpaceDimension, unsigned int, Dimension)
void SetIdentity() override


Generated on 2024-07-17 for elastix by doxygen 1.11.0 (9b424b03c9833626cd435af22a444888fbbb192d) elastix logo