go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
itkAdvancedVersorTransform.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: itkAdvancedVersorTransform.h,v $
22 Language: C++
23 Date: $Date: 2006-08-09 04:35:32 $
24 Version: $Revision: 1.17 $
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 __itkAdvancedVersorTransform_h
35#define __itkAdvancedVersorTransform_h
36
37#include <iostream>
39#include "vnl/vnl_quaternion.h"
40#include "itkVersor.h"
41
42namespace itk
43{
44
66template< class TScalarType = double >
67//Data type for scalars (float or double)
68class ITK_EXPORT AdvancedVersorTransform : public AdvancedRigid3DTransform< TScalarType >
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, 3 );
89
109
110 typedef typename Superclass
111 ::NonZeroJacobianIndicesType NonZeroJacobianIndicesType;
113 typedef typename Superclass
114 ::JacobianOfSpatialJacobianType JacobianOfSpatialJacobianType;
116 typedef typename Superclass
117 ::JacobianOfSpatialHessianType JacobianOfSpatialHessianType;
119
121 typedef vnl_quaternion< TScalarType > VnlQuaternionType;
122
124 typedef Versor< TScalarType > VersorType;
125 typedef typename VersorType::VectorType AxisType;
126 typedef typename VersorType::ValueType AngleType;
127
136 void SetParameters( const ParametersType & parameters ) override;
137
139 const ParametersType & GetParameters( void ) const override;
140
142 void SetRotation( const VersorType & versor );
143
144 void SetRotation( const AxisType & axis, AngleType angle );
145
146 itkGetConstReferenceMacro( Versor, VersorType );
147
149 void SetIdentity( void ) override;
150
153 const InputPointType &,
154 JacobianType &,
155 NonZeroJacobianIndicesType & ) const override;
156
157protected:
158
161 const OutputVectorType & offset );
162 AdvancedVersorTransform( unsigned int paramDims );
164
167
170 void SetRotationMatrix( const MatrixType & matrix ) override
171 { this->Superclass::SetRotationMatrix( matrix ); }
172
173 void SetVarVersor( const VersorType & newVersor )
174 { m_Versor = newVersor; }
175
177 void PrintSelf( std::ostream & os, Indent indent ) const override;
178
181 void ComputeMatrix( void ) override;
182
183 void ComputeMatrixParameters( void ) override;
184
185private:
186
188 AdvancedVersorTransform( const Self & other ); // Not implemented
189
191 const Self & operator=( const Self & ); // Not implemented
192
195
196};
197
198//class AdvancedVersorTransform
199
200} // namespace itk
201
202#ifndef ITK_MANUAL_INSTANTIATION
203#include "itkAdvancedVersorTransform.hxx"
204#endif
205
206#endif /* __itkAdvancedVersorTransform_h */
AdvancedRigid3DTransform of a vector space (e.g. space coordinates)
Superclass::ParametersType ParametersType
Superclass::InverseMatrixType InverseMatrixType
Superclass::OutputCovariantVectorType OutputCovariantVectorType
Superclass::InternalMatrixType InternalMatrixType
Superclass::InputVnlVectorType InputVnlVectorType
Superclass::SpatialHessianType SpatialHessianType
Superclass::SpatialJacobianType SpatialJacobianType
Superclass::NumberOfParametersType NumberOfParametersType
Superclass::OutputVnlVectorType OutputVnlVectorType
Superclass::OutputVectorType OutputVectorType
Superclass::InputVectorType InputVectorType
Superclass::OutputPointType OutputPointType
Superclass::InputCovariantVectorType InputCovariantVectorType
Superclass::InputPointType InputPointType
Superclass::ParametersType ParametersType
AdvancedVersorTransform(unsigned int paramDims)
Superclass::OutputPointType OutputPointType
Superclass::InputPointType InputPointType
void PrintSelf(std::ostream &os, Indent indent) const override
AdvancedVersorTransform(const Self &other)
const Self & operator=(const Self &)
Superclass::InputCovariantVectorType InputCovariantVectorType
void GetJacobian(const InputPointType &, JacobianType &, NonZeroJacobianIndicesType &) const override
SmartPointer< const Self > ConstPointer
AdvancedVersorTransform(const MatrixType &matrix, const OutputVectorType &offset)
void ComputeMatrixParameters(void) override
void SetRotationMatrix(const MatrixType &matrix) override
Superclass::InputVnlVectorType InputVnlVectorType
itkStaticConstMacro(OutputSpaceDimension, unsigned int, 3)
vnl_quaternion< TScalarType > VnlQuaternionType
Superclass::SpatialJacobianType SpatialJacobianType
Superclass::JacobianType JacobianType
const ParametersType & GetParameters(void) const override
void SetRotation(const AxisType &axis, AngleType angle)
itkStaticConstMacro(InputSpaceDimension, unsigned int, 3)
Superclass::JacobianOfSpatialHessianType JacobianOfSpatialHessianType
itkStaticConstMacro(ParametersDimension, unsigned int, 3)
Superclass::NumberOfParametersType NumberOfParametersType
itkStaticConstMacro(SpaceDimension, unsigned int, 3)
Superclass::JacobianOfSpatialJacobianType JacobianOfSpatialJacobianType
Superclass::InverseMatrixType InverseMatrixType
void SetIdentity(void) override
Superclass::OutputCovariantVectorType OutputCovariantVectorType
Superclass::OutputVnlVectorType OutputVnlVectorType
void SetParameters(const ParametersType &parameters) override
Superclass::NonZeroJacobianIndicesType NonZeroJacobianIndicesType
Superclass::InputVectorType InputVectorType
Superclass::SpatialHessianType SpatialHessianType
Superclass::InternalMatrixType InternalMatrixType
void SetVarVersor(const VersorType &newVersor)
AdvancedRigid3DTransform< TScalarType > Superclass
void SetRotation(const VersorType &versor)
void ComputeMatrix(void) override
Superclass::OutputVectorType OutputVectorType


Generated on 1667476801 for elastix by doxygen 1.9.4 elastix logo