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
109 
110  typedef typename Superclass
113  typedef typename Superclass
116  typedef typename Superclass
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 
160  AdvancedVersorTransform( const MatrixType & matrix,
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 
183  void ComputeMatrixParameters( void );
184 
185 private:
186 
188  AdvancedVersorTransform( const Self & other ); // Not implemented
189 
191  const Self & operator=( const Self & ); // Not implemented
192 
194  VersorType m_Versor;
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 */
Superclass::NumberOfParametersType NumberOfParametersType
AdvancedRigid3DTransform< TScalarType > Superclass
Superclass::JacobianOfSpatialJacobianType JacobianOfSpatialJacobianType
Superclass::OutputPointType OutputPointType
Superclass::OutputCovariantVectorType OutputCovariantVectorType
Superclass::SpatialJacobianType SpatialJacobianType
Superclass::InverseMatrixType InverseMatrixType
Superclass::NonZeroJacobianIndicesType NonZeroJacobianIndicesType
Superclass::InputCovariantVectorType InputCovariantVectorType
Superclass::InternalMatrixType InternalMatrixType
AdvancedRigid3DTransform of a vector space (e.g. space coordinates)
SmartPointer< const Self > ConstPointer
Superclass::ParametersType ParametersType
void SetVarVersor(const VersorType &newVersor)
Superclass::JacobianType JacobianType
Superclass::InputVnlVectorType InputVnlVectorType
virtual void SetRotationMatrix(const MatrixType &matrix)
Superclass::SpatialHessianType SpatialHessianType
Superclass::OutputVnlVectorType OutputVnlVectorType
Superclass::OutputVectorType OutputVectorType
Superclass::InputPointType InputPointType
Superclass::InputVectorType InputVectorType
vnl_quaternion< TScalarType > VnlQuaternionType
Superclass::JacobianOfSpatialHessianType JacobianOfSpatialHessianType


Generated on 04-09-2015 for elastix by doxygen 1.8.9.1 elastix logo