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 
42 namespace itk
43 {
44 
66 template< class TScalarType = double >
67 //Data type for scalars (float or double)
68 class ITK_EXPORT AdvancedVersorTransform : public AdvancedRigid3DTransform< TScalarType >
69 {
70 public:
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 
101  typedef typename Superclass::InputCovariantVectorType
105  typedef typename Superclass::MatrixType MatrixType;
106  typedef typename Superclass::InverseMatrixType InverseMatrixType;
107  typedef typename Superclass::CenterType CenterType;
108  typedef typename Superclass::OffsetType OffsetType;
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 );
137 
139  const ParametersType & GetParameters( void ) const;
140 
142  void SetRotation( const VersorType & versor );
143 
144  void SetRotation( const AxisType & axis, AngleType angle );
145 
146  itkGetConstReferenceMacro( Versor, VersorType );
147 
149  virtual void SetIdentity( void );
150 
152  virtual void GetJacobian(
153  const InputPointType &,
154  JacobianType &,
155  NonZeroJacobianIndicesType & ) const;
156 
157 protected:
158 
161  const OutputVectorType & offset );
162  AdvancedVersorTransform( unsigned int paramDims );
164 
167 
170  virtual void SetRotationMatrix( const MatrixType & matrix )
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;
178 
181  void ComputeMatrix( void );
182 
184 
185 private:
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 */
itk::AdvancedVersorTransform::InputVnlVectorType
Superclass::InputVnlVectorType InputVnlVectorType
Definition: itkAdvancedVersorTransform.h:99
itk::AdvancedTransform< float, NInputDimensions, NOutputDimensions >::OutputPointType
Superclass::OutputPointType OutputPointType
Definition: itkAdvancedTransform.h:125
itk::AdvancedVersorTransform::Self
AdvancedVersorTransform Self
Definition: itkAdvancedVersorTransform.h:73
itk::AdvancedTransform< float, NInputDimensions, NOutputDimensions >::SpatialJacobianType
Matrix< ScalarType, OutputSpaceDimension, InputSpaceDimension > SpatialJacobianType
Definition: itkAdvancedTransform.h:143
itk::AdvancedVersorTransform::OutputCovariantVectorType
Superclass::OutputCovariantVectorType OutputCovariantVectorType
Definition: itkAdvancedVersorTransform.h:104
itk::AdvancedVersorTransform::Superclass
AdvancedRigid3DTransform< TScalarType > Superclass
Definition: itkAdvancedVersorTransform.h:74
itk::AdvancedVersorTransform::GetJacobian
virtual void GetJacobian(const InputPointType &, JacobianType &, NonZeroJacobianIndicesType &) const
itk::AdvancedVersorTransform::ScalarType
Superclass::ScalarType ScalarType
Definition: itkAdvancedVersorTransform.h:94
itk::AdvancedMatrixOffsetTransformBase< float, 3, 3 >::ParametersType
Superclass::ParametersType ParametersType
Definition: itkAdvancedMatrixOffsetTransformBase.h:123
itk::AdvancedTransform< float, NInputDimensions, NOutputDimensions >::InputCovariantVectorType
Superclass ::InputCovariantVectorType InputCovariantVectorType
Definition: itkAdvancedTransform.h:119
itk::AdvancedTransform< float, NInputDimensions, NOutputDimensions >::InputPointType
Superclass::InputPointType InputPointType
Definition: itkAdvancedTransform.h:124
SmartPointer< Self >
itk::AdvancedTransform< float, NInputDimensions, NOutputDimensions >::InputVnlVectorType
Superclass::InputVnlVectorType InputVnlVectorType
Definition: itkAdvancedTransform.h:122
itk::AdvancedVersorTransform::InverseMatrixType
Superclass::InverseMatrixType InverseMatrixType
Definition: itkAdvancedVersorTransform.h:106
itk::AdvancedVersorTransform::itkStaticConstMacro
itkStaticConstMacro(ParametersDimension, unsigned int, 3)
itk::AdvancedVersorTransform::itkStaticConstMacro
itkStaticConstMacro(InputSpaceDimension, unsigned int, 3)
itk::AdvancedMatrixOffsetTransformBase
Definition: itkAdvancedMatrixOffsetTransformBase.h:99
itk::AdvancedVersorTransform::AxisType
VersorType::VectorType AxisType
Definition: itkAdvancedVersorTransform.h:125
itk::AdvancedVersorTransform
Definition: itkAdvancedVersorTransform.h:69
itk::AdvancedVersorTransform::~AdvancedVersorTransform
~AdvancedVersorTransform()
Definition: itkAdvancedVersorTransform.h:166
itk::AdvancedVersorTransform::AdvancedVersorTransform
AdvancedVersorTransform()
itk::AdvancedVersorTransform::JacobianType
Superclass::JacobianType JacobianType
Definition: itkAdvancedVersorTransform.h:93
itk::AdvancedTransform< float, NInputDimensions, NOutputDimensions >::ScalarType
Superclass::ScalarType ScalarType
Definition: itkAdvancedTransform.h:109
itk::AdvancedVersorTransform::ComputeMatrix
void ComputeMatrix(void)
itk::AdvancedVersorTransform::MatrixType
Superclass::MatrixType MatrixType
Definition: itkAdvancedVersorTransform.h:105
itk::AdvancedVersorTransform::AdvancedVersorTransform
AdvancedVersorTransform(unsigned int paramDims)
itk::AdvancedVersorTransform::SpatialJacobianType
Superclass::SpatialJacobianType SpatialJacobianType
Definition: itkAdvancedVersorTransform.h:112
itkAdvancedRigid3DTransform.h
itk::AdvancedVersorTransform::InputPointType
Superclass::InputPointType InputPointType
Definition: itkAdvancedVersorTransform.h:95
itk::AdvancedVersorTransform::PrintSelf
void PrintSelf(std::ostream &os, Indent indent) const
itk::AdvancedVersorTransform::AngleType
VersorType::ValueType AngleType
Definition: itkAdvancedVersorTransform.h:126
itk::AdvancedVersorTransform::SetRotation
void SetRotation(const VersorType &versor)
itk::AdvancedMatrixOffsetTransformBase< float, 3, 3 >::NonZeroJacobianIndicesType
Superclass ::NonZeroJacobianIndicesType NonZeroJacobianIndicesType
Definition: itkAdvancedMatrixOffsetTransformBase.h:141
itk::AdvancedVersorTransform::VnlQuaternionType
vnl_quaternion< TScalarType > VnlQuaternionType
Definition: itkAdvancedVersorTransform.h:121
itk::AdvancedVersorTransform::operator=
const Self & operator=(const Self &)
itk::AdvancedVersorTransform::SpatialHessianType
Superclass::SpatialHessianType SpatialHessianType
Definition: itkAdvancedVersorTransform.h:115
itk::AdvancedTransform< float, NInputDimensions, NOutputDimensions >::JacobianType
Superclass::JacobianType JacobianType
Definition: itkAdvancedTransform.h:115
itk::AdvancedVersorTransform::Pointer
SmartPointer< Self > Pointer
Definition: itkAdvancedVersorTransform.h:75
itk::AdvancedVersorTransform::OutputPointType
Superclass::OutputPointType OutputPointType
Definition: itkAdvancedVersorTransform.h:96
itk::AdvancedMatrixOffsetTransformBase< float, 3, 3 >::InputPointType
Superclass::InputPointType InputPointType
Definition: itkAdvancedMatrixOffsetTransformBase.h:136
itk::AdvancedVersorTransform::ParametersType
Superclass::ParametersType ParametersType
Definition: itkAdvancedVersorTransform.h:91
itk::AdvancedVersorTransform::SetVarVersor
void SetVarVersor(const VersorType &newVersor)
Definition: itkAdvancedVersorTransform.h:173
itk::AdvancedVersorTransform::OffsetType
Superclass::OffsetType OffsetType
Definition: itkAdvancedVersorTransform.h:108
itk::AdvancedVersorTransform::SetRotation
void SetRotation(const AxisType &axis, AngleType angle)
itk::AdvancedVersorTransform::SetIdentity
virtual void SetIdentity(void)
itk::AdvancedVersorTransform::m_Versor
VersorType m_Versor
Definition: itkAdvancedVersorTransform.h:194
itk::AdvancedTransform< float, NInputDimensions, NOutputDimensions >::InternalMatrixType
SpatialJacobianType::InternalMatrixType InternalMatrixType
Definition: itkAdvancedTransform.h:151
itk::AdvancedVersorTransform::NumberOfParametersType
Superclass::NumberOfParametersType NumberOfParametersType
Definition: itkAdvancedVersorTransform.h:92
itk::AdvancedVersorTransform::OutputVnlVectorType
Superclass::OutputVnlVectorType OutputVnlVectorType
Definition: itkAdvancedVersorTransform.h:100
itk::AdvancedVersorTransform::OutputVectorType
Superclass::OutputVectorType OutputVectorType
Definition: itkAdvancedVersorTransform.h:98
itk::AdvancedVersorTransform::AdvancedVersorTransform
AdvancedVersorTransform(const MatrixType &matrix, const OutputVectorType &offset)
itk::AdvancedTransform< float, NInputDimensions, NOutputDimensions >::SpatialHessianType
FixedArray< Matrix< ScalarType, InputSpaceDimension, InputSpaceDimension >, OutputSpaceDimension > SpatialHessianType
Definition: itkAdvancedTransform.h:149
itk::AdvancedVersorTransform::InputCovariantVectorType
Superclass::InputCovariantVectorType InputCovariantVectorType
Definition: itkAdvancedVersorTransform.h:102
itk::AdvancedTransform< float, NInputDimensions, NOutputDimensions >::InputVectorType
Superclass::InputVectorType InputVectorType
Definition: itkAdvancedTransform.h:116
itk::AdvancedVersorTransform::VersorType
Versor< TScalarType > VersorType
Definition: itkAdvancedVersorTransform.h:124
itk::AdvancedVersorTransform::AdvancedVersorTransform
AdvancedVersorTransform(const Self &other)
itk::AdvancedVersorTransform::JacobianOfSpatialHessianType
Superclass ::JacobianOfSpatialHessianType JacobianOfSpatialHessianType
Definition: itkAdvancedVersorTransform.h:117
Matrix< float, itkGetStaticConstMacro(OutputSpaceDimension), itkGetStaticConstMacro(InputSpaceDimension) >
itk::AdvancedVersorTransform::JacobianOfSpatialJacobianType
Superclass ::JacobianOfSpatialJacobianType JacobianOfSpatialJacobianType
Definition: itkAdvancedVersorTransform.h:114
itk::AdvancedVersorTransform::itkStaticConstMacro
itkStaticConstMacro(SpaceDimension, unsigned int, 3)
itk::AdvancedMatrixOffsetTransformBase< float, 3, 3 >::OutputVectorType
Superclass::OutputVectorType OutputVectorType
Definition: itkAdvancedMatrixOffsetTransformBase.h:129
itk::AdvancedVersorTransform::InternalMatrixType
Superclass::InternalMatrixType InternalMatrixType
Definition: itkAdvancedVersorTransform.h:118
itk::AdvancedVersorTransform::SetParameters
void SetParameters(const ParametersType &parameters)
itk
Definition: itkAdvancedImageToImageMetric.h:40
itk::AdvancedRigid3DTransform
AdvancedRigid3DTransform of a vector space (e.g. space coordinates)
Definition: itkAdvancedRigid3DTransform.h:69
itk::AdvancedTransform< float, NInputDimensions, NOutputDimensions >::OutputVectorType
Superclass::OutputVectorType OutputVectorType
Definition: itkAdvancedTransform.h:117
itk::AdvancedVersorTransform::ComputeMatrixParameters
void ComputeMatrixParameters(void)
itk::AdvancedVersorTransform::InputVectorType
Superclass::InputVectorType InputVectorType
Definition: itkAdvancedVersorTransform.h:97
itk::AdvancedMatrixOffsetTransformBase< float, 3, 3 >::JacobianType
Superclass::JacobianType JacobianType
Definition: itkAdvancedMatrixOffsetTransformBase.h:127
itk::AdvancedTransform< float, NInputDimensions, NOutputDimensions >::NumberOfParametersType
Superclass::NumberOfParametersType NumberOfParametersType
Definition: itkAdvancedTransform.h:113
itk::AdvancedVersorTransform::itkStaticConstMacro
itkStaticConstMacro(OutputSpaceDimension, unsigned int, 3)
itk::AdvancedVersorTransform::SetRotationMatrix
virtual void SetRotationMatrix(const MatrixType &matrix)
Definition: itkAdvancedVersorTransform.h:170
itk::AdvancedVersorTransform::ConstPointer
SmartPointer< const Self > ConstPointer
Definition: itkAdvancedVersorTransform.h:76
Versor< float >
itk::AdvancedTransform< float, NInputDimensions, NOutputDimensions >::ParametersType
Superclass::ParametersType ParametersType
Definition: itkAdvancedTransform.h:110
itk::AdvancedVersorTransform::GetParameters
const ParametersType & GetParameters(void) const
itk::AdvancedVersorTransform::NonZeroJacobianIndicesType
Superclass ::NonZeroJacobianIndicesType NonZeroJacobianIndicesType
Definition: itkAdvancedVersorTransform.h:111
itk::AdvancedTransform< float, NInputDimensions, NOutputDimensions >::OutputVnlVectorType
Superclass::OutputVnlVectorType OutputVnlVectorType
Definition: itkAdvancedTransform.h:123
itk::AdvancedVersorTransform::CenterType
Superclass::CenterType CenterType
Definition: itkAdvancedVersorTransform.h:107
itk::AdvancedTransform< float, NInputDimensions, NOutputDimensions >::OutputCovariantVectorType
Superclass ::OutputCovariantVectorType OutputCovariantVectorType
Definition: itkAdvancedTransform.h:121


Generated on OURCE_DATE_EPOCH for elastix by doxygen 1.8.18 elastix logo