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 "itkExceptionObject.h"
40 #include "itkMatrix.h"
41 #include "itkVersor.h"
42 
43 namespace itk
44 {
45 
65 template< class TScalarType = double >
66 // type for scalars (float or double)
68  public AdvancedMatrixOffsetTransformBase< TScalarType, 3, 3 >
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, 12 );
89 
109 
110  typedef typename Superclass
113  typedef typename Superclass
116  typedef typename Superclass
119 
130  virtual void SetParameters( const ParametersType & parameters );
131 
137  virtual void SetMatrix( const MatrixType & matrix );
138 
147  const MatrixType & GetRotationMatrix()
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 
183  InputPointType BackTransform( const OutputPointType
184  & point ) const;
185 
186  InputVectorType BackTransform( const OutputVectorType
187  & vector ) const;
188 
189  InputVnlVectorType BackTransform( const OutputVnlVectorType
190  & vector ) const;
191 
193  & vector ) const;
194 
199  bool MatrixIsOrthogonal( const MatrixType & matrix, double tol = 1e-10 );
200 
201 protected:
202 
203  AdvancedRigid3DTransform( unsigned int paramDim );
204  AdvancedRigid3DTransform( const MatrixType & matrix,
205  const OutputVectorType & offset );
208 
212  void PrintSelf( std::ostream & os, Indent indent ) const;
213 
214 private:
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 */
virtual void SetParameters(const ParametersType &parameters)
Superclass::NonZeroJacobianIndicesType NonZeroJacobianIndicesType
Superclass::SpatialHessianType SpatialHessianType
SmartPointer< const Self > ConstPointer
Superclass::SpatialJacobianType SpatialJacobianType
Superclass::TranslationType TranslationType
Superclass::OutputVnlVectorType OutputVnlVectorType
Superclass::JacobianOfSpatialJacobianType JacobianOfSpatialJacobianType
Superclass::OutputVectorType OutputVectorType
AdvancedRigid3DTransform of a vector space (e.g. space coordinates)
Superclass::InternalMatrixType InternalMatrixType
Superclass::JacobianOfSpatialHessianType JacobianOfSpatialHessianType
virtual void SetMatrix(const MatrixType &matrix)
void operator=(const Self &)
Superclass::InputCovariantVectorType InputCovariantVectorType
void Translate(const OffsetType &offset, bool pre=false)
Superclass::InputVectorType InputVectorType
virtual void SetRotationMatrix(const MatrixType &matrix)
AdvancedMatrixOffsetTransformBase< TScalarType, 3, 3 > Superclass
void PrintSelf(std::ostream &os, Indent indent) const
Superclass::NumberOfParametersType NumberOfParametersType
Superclass::OutputCovariantVectorType OutputCovariantVectorType
Superclass::ParametersType ParametersType
itkStaticConstMacro(SpaceDimension, unsigned int, 3)
InputPointType BackTransform(const OutputPointType &point) const
bool MatrixIsOrthogonal(const MatrixType &matrix, double tol=1e-10)
Superclass::OutputPointType OutputPointType
Superclass::InputPointType InputPointType
Superclass::InverseMatrixType InverseMatrixType
Superclass::InputVnlVectorType InputVnlVectorType


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