go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
itkAdvancedRigid3DTransform.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: itkAdvancedRigid3DTransform.h,v $
22 Date: $Date: 2007-02-13 21:46:04 $
23 Version: $Revision: 1.38 $
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 itkAdvancedRigid3DTransform_h
34#define itkAdvancedRigid3DTransform_h
35
36#include <iostream>
38#include "itkMacro.h"
39#include "itkMatrix.h"
40#include "itkVersor.h"
41
42namespace itk
43{
44
64template <class TScalarType = double>
65// type for scalars (float or double)
66class ITK_TEMPLATE_EXPORT AdvancedRigid3DTransform : public AdvancedMatrixOffsetTransformBase<TScalarType, 3, 3>
67{
68public:
70
74 using Pointer = SmartPointer<Self>;
75 using ConstPointer = SmartPointer<const Self>;
76
79
81 itkNewMacro(Self);
82
84 itkStaticConstMacro(SpaceDimension, unsigned int, 3);
85 itkStaticConstMacro(InputSpaceDimension, unsigned int, 3);
86 itkStaticConstMacro(OutputSpaceDimension, unsigned int, 3);
87 itkStaticConstMacro(ParametersDimension, unsigned int, 12);
88
89 using typename Superclass::ParametersType;
90 using typename Superclass::NumberOfParametersType;
91 using typename Superclass::JacobianType;
92 using typename Superclass::ScalarType;
93 using typename Superclass::InputVectorType;
94 using typename Superclass::OutputVectorType;
95 using typename Superclass::InputCovariantVectorType;
96 using typename Superclass::OutputCovariantVectorType;
97 using typename Superclass::InputVnlVectorType;
98 using typename Superclass::OutputVnlVectorType;
99 using typename Superclass::InputPointType;
100 using typename Superclass::OutputPointType;
101 using typename Superclass::MatrixType;
102 using typename Superclass::InverseMatrixType;
103 using typename Superclass::CenterType;
104 using typename Superclass::TranslationType;
105 using typename Superclass::OffsetType;
106
108 using typename Superclass::SpatialJacobianType;
110 using typename Superclass::SpatialHessianType;
112 using typename Superclass::InternalMatrixType;
113
124 void
125 SetParameters(const ParametersType & parameters) override;
126
132 void
133 SetMatrix(const MatrixType & matrix) override;
134
139 bool
140 MatrixIsOrthogonal(const MatrixType & matrix, double tol = 1e-10);
141
142protected:
143 explicit AdvancedRigid3DTransform(unsigned int paramDim);
145 ~AdvancedRigid3DTransform() override = default;
146
150 void
151 PrintSelf(std::ostream & os, Indent indent) const override;
152};
153
154} // namespace itk
155
156#ifndef ITK_MANUAL_INSTANTIATION
157# include "itkAdvancedRigid3DTransform.hxx"
158#endif
159
160#endif /* itkAdvancedRigid3DTransform_h */
Matrix< TScalarType, Self::InputSpaceDimension, Self::OutputSpaceDimension > InverseMatrixType
Matrix< TScalarType, Self::OutputSpaceDimension, Self::InputSpaceDimension > MatrixType
AdvancedRigid3DTransform of a vector space (e.g. space coordinates)
~AdvancedRigid3DTransform() override=default
itkStaticConstMacro(ParametersDimension, unsigned int, 12)
void SetParameters(const ParametersType &parameters) override
SmartPointer< const Self > ConstPointer
itkStaticConstMacro(SpaceDimension, unsigned int, 3)
void PrintSelf(std::ostream &os, Indent indent) const override
bool MatrixIsOrthogonal(const MatrixType &matrix, double tol=1e-10)
void SetMatrix(const MatrixType &matrix) override
itkStaticConstMacro(InputSpaceDimension, unsigned int, 3)
itkStaticConstMacro(OutputSpaceDimension, unsigned int, 3)
Matrix< TScalarType, Self::OutputSpaceDimension, Self::InputSpaceDimension > MatrixType
AdvancedRigid3DTransform(unsigned int paramDim)
ITK_DISALLOW_COPY_AND_MOVE(AdvancedRigid3DTransform)
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


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