go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
itkAffineDTI2DTransform.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 itkAffineDTI2DTransform_h
19#define itkAffineDTI2DTransform_h
20
21#include <iostream>
23
24namespace itk
25{
26
63template <class TScalarType = double>
64// Data type for scalars (float or double)
66{
67public:
69
73 using Pointer = SmartPointer<Self>;
74 using ConstPointer = SmartPointer<const Self>;
75
77 itkNewMacro(Self);
78
81
83 itkStaticConstMacro(SpaceDimension, unsigned int, 2);
84 itkStaticConstMacro(InputSpaceDimension, unsigned int, 2);
85 itkStaticConstMacro(OutputSpaceDimension, unsigned int, 2);
86 itkStaticConstMacro(ParametersDimension, unsigned int, 7);
87
88 using typename Superclass::ParametersType;
89 using typename Superclass::NumberOfParametersType;
90 using typename Superclass::JacobianType;
91 using typename Superclass::ScalarType;
92 using typename Superclass::InputVectorType;
93 using typename Superclass::OutputVectorType;
94 using typename Superclass::InputCovariantVectorType;
95 using typename Superclass::OutputCovariantVectorType;
96 using typename Superclass::InputVnlVectorType;
97 using typename Superclass::OutputVnlVectorType;
98 using typename Superclass::InputPointType;
99 using typename Superclass::OutputPointType;
100 using typename Superclass::MatrixType;
101 using typename Superclass::InverseMatrixType;
102 using typename Superclass::CenterType;
103 using typename Superclass::TranslationType;
104 using typename Superclass::OffsetType;
105 using AngleType = typename Superclass::ScalarType;
106
108 using typename Superclass::SpatialJacobianType;
110 using typename Superclass::SpatialHessianType;
112 using typename Superclass::InternalMatrixType;
113
114 using ScalarArrayType = FixedArray<ScalarType>;
115
121 void
122 SetParameters(const ParametersType & parameters) override;
123
124 const ParametersType &
125 GetParameters() const override;
126
128 void
129 GetJacobian(const InputPointType &, JacobianType &, NonZeroJacobianIndicesType &) const override;
130
131 void
132 SetIdentity() override;
133
134protected:
136 AffineDTI2DTransform(const MatrixType & matrix, const OutputPointType & offset);
137 AffineDTI2DTransform(unsigned int outputSpaceDims, unsigned int paramsSpaceDims);
138
139 ~AffineDTI2DTransform() override = default;
140
141 void
142 PrintSelf(std::ostream & os, Indent indent) const override;
143
145 void
147
149 void
150 ComputeMatrix() override;
151
152 void
154
156 virtual void
158
159private:
163};
164
165} // namespace itk
166
167#ifndef ITK_MANUAL_INSTANTIATION
168# include "itkAffineDTI2DTransform.hxx"
169#endif
170
171#endif /* itkAffineDTI2DTransform_h */
Matrix< TScalarType, Self::InputSpaceDimension, Self::OutputSpaceDimension > InverseMatrixType
Matrix< TScalarType, Self::OutputSpaceDimension, Self::InputSpaceDimension > MatrixType
typename SpatialJacobianType::InternalMatrixType InternalMatrixType
Matrix< ScalarType, OutputSpaceDimension, InputSpaceDimension > SpatialJacobianType
std::vector< SpatialHessianType > JacobianOfSpatialHessianType
std::vector< SpatialJacobianType > JacobianOfSpatialJacobianType
FixedArray< Matrix< ScalarType, InputSpaceDimension, InputSpaceDimension >, OutputSpaceDimension > SpatialHessianType
std::vector< unsigned long > NonZeroJacobianIndicesType
FixedArray< ScalarType > ScalarArrayType
AffineDTI2DTransform(const MatrixType &matrix, const OutputPointType &offset)
virtual void PrecomputeJacobianOfSpatialJacobian()
itkStaticConstMacro(OutputSpaceDimension, unsigned int, 2)
void SetVarAngleScaleShear(ScalarArrayType angle, ScalarArrayType shear, ScalarArrayType scale)
void PrintSelf(std::ostream &os, Indent indent) const override
void SetIdentity() override
const ParametersType & GetParameters() const override
typename Superclass::ScalarType AngleType
SmartPointer< const Self > ConstPointer
AffineDTI2DTransform(unsigned int outputSpaceDims, unsigned int paramsSpaceDims)
void GetJacobian(const InputPointType &, JacobianType &, NonZeroJacobianIndicesType &) const override
void SetParameters(const ParametersType &parameters) override
itkStaticConstMacro(ParametersDimension, unsigned int, 7)
void ComputeMatrixParameters() override
void ComputeMatrix() override
ITK_DISALLOW_COPY_AND_MOVE(AffineDTI2DTransform)
Matrix< TScalarType, Self::OutputSpaceDimension, Self::InputSpaceDimension > MatrixType
~AffineDTI2DTransform() override=default
itkStaticConstMacro(SpaceDimension, unsigned int, 2)
itkStaticConstMacro(InputSpaceDimension, unsigned int, 2)


Generated on 2023-01-13 for elastix by doxygen 1.9.6 elastix logo