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 Language: C++
23 Date: $Date: 2007-02-13 21:46:04 $
24 Version: $Revision: 1.38 $
25
26 Copyright (c) Insight Software Consortium. All rights reserved.
27 See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
28
29 This software is distributed WITHOUT ANY WARRANTY; without even
30 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
31 PURPOSE. See the above copyright notices for more information.
32
33=========================================================================*/
34#ifndef __itkAdvancedRigid3DTransform_h
35#define __itkAdvancedRigid3DTransform_h
36
37#include <iostream>
39#include "itkMacro.h"
40#include "itkMatrix.h"
41#include "itkVersor.h"
42
43namespace itk
44{
45
65template< class TScalarType = double >
66// type for scalars (float or double)
68 public AdvancedMatrixOffsetTransformBase< TScalarType, 3, 3 >
69{
70public:
71
76 typedef SmartPointer< const Self > ConstPointer;
77
80
82 itkNewMacro( Self );
83
85 itkStaticConstMacro( SpaceDimension, unsigned int, 3 );
86 itkStaticConstMacro( InputSpaceDimension, unsigned int, 3 );
87 itkStaticConstMacro( OutputSpaceDimension, unsigned int, 3 );
88 itkStaticConstMacro( ParametersDimension, unsigned int, 12 );
89
109
110 typedef typename Superclass
113 typedef typename Superclass
116 typedef typename Superclass
119
130 void SetParameters( const ParametersType & parameters ) override;
131
137 void SetMatrix( const MatrixType & matrix ) override;
138
148 { return this->GetMatrix(); }
149
160 virtual void SetRotationMatrix( const MatrixType & matrix )
161 { this->SetMatrix( matrix ); }
162
170 void Translate( const OffsetType & offset, bool pre = false );
171
184 & point ) const;
185
187 & vector ) const;
188
190 & vector ) const;
191
193 & vector ) const;
194
199 bool MatrixIsOrthogonal( const MatrixType & matrix, double tol = 1e-10 );
200
201protected:
202
203 AdvancedRigid3DTransform( unsigned int paramDim );
205 const OutputVectorType & offset );
208
212 void PrintSelf( std::ostream & os, Indent indent ) const override;
213
214private:
215
216 AdvancedRigid3DTransform( const Self & ); // purposely not implemented
217 void operator=( const Self & ); // purposely not implemented
218
219};
220
221} // namespace itk
222
223#ifndef ITK_MANUAL_INSTANTIATION
224#include "itkAdvancedRigid3DTransform.hxx"
225#endif
226
227#endif /* __itkAdvancedRigid3DTransform_h */
Matrix< TScalarType, itkGetStaticConstMacro(InputSpaceDimension), itkGetStaticConstMacro(OutputSpaceDimension) > InverseMatrixType
Superclass::InputCovariantVectorType InputCovariantVectorType
Superclass::NonZeroJacobianIndicesType NonZeroJacobianIndicesType
Superclass::JacobianOfSpatialJacobianType JacobianOfSpatialJacobianType
Superclass::JacobianOfSpatialHessianType JacobianOfSpatialHessianType
Superclass::OutputCovariantVectorType OutputCovariantVectorType
Matrix< TScalarType, itkGetStaticConstMacro(OutputSpaceDimension), itkGetStaticConstMacro(InputSpaceDimension) > MatrixType
AdvancedRigid3DTransform of a vector space (e.g. space coordinates)
Superclass::NonZeroJacobianIndicesType NonZeroJacobianIndicesType
InputPointType BackTransform(const OutputPointType &point) const
Superclass::JacobianOfSpatialJacobianType JacobianOfSpatialJacobianType
Superclass::ParametersType ParametersType
itkStaticConstMacro(ParametersDimension, unsigned int, 12)
void SetParameters(const ParametersType &parameters) override
Superclass::InverseMatrixType InverseMatrixType
Superclass::OutputCovariantVectorType OutputCovariantVectorType
Superclass::InternalMatrixType InternalMatrixType
Superclass::InputVnlVectorType InputVnlVectorType
AdvancedRigid3DTransform(const MatrixType &matrix, const OutputVectorType &offset)
Superclass::SpatialHessianType SpatialHessianType
Superclass::SpatialJacobianType SpatialJacobianType
void operator=(const Self &)
AdvancedRigid3DTransform(const Self &)
Superclass::NumberOfParametersType NumberOfParametersType
itkStaticConstMacro(SpaceDimension, unsigned int, 3)
AdvancedMatrixOffsetTransformBase< TScalarType, 3, 3 > Superclass
Superclass::OutputVnlVectorType OutputVnlVectorType
Superclass::OutputVectorType OutputVectorType
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)
void Translate(const OffsetType &offset, bool pre=false)
InputCovariantVectorType BackTransform(const OutputCovariantVectorType &vector) const
InputVectorType BackTransform(const OutputVectorType &vector) const
virtual void SetRotationMatrix(const MatrixType &matrix)
Superclass::TranslationType TranslationType
Superclass::InputVectorType InputVectorType
Superclass::OutputPointType OutputPointType
InputVnlVectorType BackTransform(const OutputVnlVectorType &vector) const
Superclass::InputCovariantVectorType InputCovariantVectorType
SmartPointer< const Self > ConstPointer
Superclass::JacobianOfSpatialHessianType JacobianOfSpatialHessianType
AdvancedRigid3DTransform(unsigned int paramDim)
Superclass::InputPointType InputPointType


Generated on 1667476801 for elastix by doxygen 1.9.4 elastix logo