go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
itkAffineDTI3DTransform.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/*=========================================================================
19
20 Program: Insight Segmentation & Registration Toolkit
21 Module: $RCSfile: itkAffineDTI3DTransform.h,v $
22 Date: $Date: 2008-10-13 15:36:31 $
23 Version: $Revision: 1.14 $
24
25 Copyright (c) Insight Software Consortium. All rights reserved.
26 See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
27
28 This software is distributed WITHOUT ANY WARRANTY; without even
29 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
30 PURPOSE. See the above copyright notices for more information.
31
32=========================================================================*/
33#ifndef itkAffineDTI3DTransform_h
34#define itkAffineDTI3DTransform_h
35
36#include <iostream>
38
39namespace itk
40{
41
76template <class TScalarType = double>
77// Data type for scalars (float or double)
79{
80public:
82
86 using Pointer = SmartPointer<Self>;
87 using ConstPointer = SmartPointer<const Self>;
88
90 itkNewMacro(Self);
91
94
96 itkStaticConstMacro(SpaceDimension, unsigned int, 3);
97 itkStaticConstMacro(InputSpaceDimension, unsigned int, 3);
98 itkStaticConstMacro(OutputSpaceDimension, unsigned int, 3);
99 itkStaticConstMacro(ParametersDimension, unsigned int, 12);
100
101 using typename Superclass::ParametersType;
102 using typename Superclass::NumberOfParametersType;
103 using typename Superclass::JacobianType;
104 using typename Superclass::ScalarType;
105 using typename Superclass::InputVectorType;
106 using typename Superclass::OutputVectorType;
107 using typename Superclass::InputCovariantVectorType;
108 using typename Superclass::OutputCovariantVectorType;
109 using typename Superclass::InputVnlVectorType;
110 using typename Superclass::OutputVnlVectorType;
111 using typename Superclass::InputPointType;
112 using typename Superclass::OutputPointType;
113 using typename Superclass::MatrixType;
114 using typename Superclass::InverseMatrixType;
115 using typename Superclass::CenterType;
116 using typename Superclass::TranslationType;
117 using typename Superclass::OffsetType;
118 using AngleType = typename Superclass::ScalarType;
119
121 using typename Superclass::SpatialJacobianType;
123 using typename Superclass::SpatialHessianType;
125 using typename Superclass::InternalMatrixType;
126
127 using ScalarArrayType = FixedArray<ScalarType>;
128
134 void
135 SetParameters(const ParametersType & parameters) override;
136
137 const ParametersType &
138 GetParameters() const override;
139
141 void
142 GetJacobian(const InputPointType &, JacobianType &, NonZeroJacobianIndicesType &) const override;
143
144 void
145 SetIdentity() override;
146
147protected:
149 AffineDTI3DTransform(const MatrixType & matrix, const OutputPointType & offset);
150 AffineDTI3DTransform(unsigned int outputSpaceDims, unsigned int paramsSpaceDims);
151
152 ~AffineDTI3DTransform() override = default;
153
154 void
155 PrintSelf(std::ostream & os, Indent indent) const override;
156
158 void
160
162 void
163 ComputeMatrix() override;
164
165 void
167
169 virtual void
171
172private:
176};
177
178} // namespace itk
179
180#ifndef ITK_MANUAL_INSTANTIATION
181# include "itkAffineDTI3DTransform.hxx"
182#endif
183
184#endif /* itkAffineDTI3DTransform_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
AffineDTI3DTransform of a vector space (e.g. space coordinates)
itkStaticConstMacro(InputSpaceDimension, unsigned int, 3)
ITK_DISALLOW_COPY_AND_MOVE(AffineDTI3DTransform)
typename Superclass::ScalarType AngleType
void GetJacobian(const InputPointType &, JacobianType &, NonZeroJacobianIndicesType &) const override
AffineDTI3DTransform(unsigned int outputSpaceDims, unsigned int paramsSpaceDims)
void PrintSelf(std::ostream &os, Indent indent) const override
void SetParameters(const ParametersType &parameters) override
itkStaticConstMacro(OutputSpaceDimension, unsigned int, 3)
void ComputeMatrixParameters() override
void SetVarAngleScaleShear(ScalarArrayType angle, ScalarArrayType shear, ScalarArrayType scale)
const ParametersType & GetParameters() const override
itkStaticConstMacro(ParametersDimension, unsigned int, 12)
virtual void PrecomputeJacobianOfSpatialJacobian()
AffineDTI3DTransform(const MatrixType &matrix, const OutputPointType &offset)
FixedArray< ScalarType > ScalarArrayType
Matrix< TScalarType, Self::OutputSpaceDimension, Self::InputSpaceDimension > MatrixType
SmartPointer< const Self > ConstPointer
itkStaticConstMacro(SpaceDimension, unsigned int, 3)
~AffineDTI3DTransform() override=default
void SetIdentity() override
void ComputeMatrix() override


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