go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
itkAdvancedVersorRigid3DTransform.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkAdvancedVersorRigid3DTransform.h,v $
00005   Language:  C++
00006   Date:      $Date: 2006-08-09 04:35:32 $
00007   Version:   $Revision: 1.27 $
00008 
00009   Copyright (c) Insight Software Consortium. All rights reserved.
00010   See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
00011 
00012      This software is distributed WITHOUT ANY WARRANTY; without even
00013      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00014      PURPOSE.  See the above copyright notices for more information.
00015 
00016 =========================================================================*/
00017 
00018 #ifndef __itkAdvancedVersorRigid3DTransform_h
00019 #define __itkAdvancedVersorRigid3DTransform_h
00020 
00021 #include <iostream>
00022 #include "itkAdvancedVersorTransform.h"
00023 
00024 namespace itk
00025 {
00026 
00047 template < class TScalarType=double >//Data type for scalars (float or double)
00048 class ITK_EXPORT AdvancedVersorRigid3DTransform :
00049       public AdvancedVersorTransform< TScalarType >
00050 {
00051 public:
00053   typedef AdvancedVersorRigid3DTransform            Self;
00054   typedef AdvancedVersorTransform< TScalarType >    Superclass;
00055   typedef SmartPointer<Self>                Pointer;
00056   typedef SmartPointer<const Self>          ConstPointer;
00057 
00059   itkNewMacro( Self );
00060 
00062   itkTypeMacro( AdvancedVersorRigid3DTransform, AdvancedVersorTransform );
00063 
00065   itkStaticConstMacro(SpaceDimension, unsigned int, 3);
00066   itkStaticConstMacro(InputSpaceDimension, unsigned int, 3);
00067   itkStaticConstMacro(OutputSpaceDimension, unsigned int, 3);
00068   itkStaticConstMacro(ParametersDimension, unsigned int, 6);
00069 
00071   typedef typename Superclass::ParametersType         ParametersType;
00072   typedef typename Superclass::JacobianType           JacobianType;
00073   typedef typename Superclass::ScalarType             ScalarType;
00074   typedef typename Superclass::InputPointType         InputPointType;
00075   typedef typename Superclass::OutputPointType        OutputPointType;
00076   typedef typename Superclass::InputVectorType        InputVectorType;
00077   typedef typename Superclass::OutputVectorType       OutputVectorType;
00078   typedef typename Superclass::InputVnlVectorType     InputVnlVectorType;
00079   typedef typename Superclass::OutputVnlVectorType    OutputVnlVectorType;
00080   typedef typename Superclass::InputCovariantVectorType
00081                                                       InputCovariantVectorType;
00082   typedef typename Superclass::OutputCovariantVectorType
00083                                                       OutputCovariantVectorType;
00084   typedef typename Superclass::MatrixType             MatrixType;
00085   typedef typename Superclass::InverseMatrixType      InverseMatrixType;
00086   typedef typename Superclass::CenterType             CenterType;
00087   typedef typename Superclass::OffsetType             OffsetType;
00088   typedef typename Superclass::TranslationType        TranslationType;
00089 
00091   typedef typename Superclass::VersorType             VersorType;
00092   typedef typename Superclass::AxisType               AxisType;
00093   typedef typename Superclass::AngleType              AngleType;
00094 
00095   typedef typename Superclass
00096     ::NonZeroJacobianIndicesType                    NonZeroJacobianIndicesType;
00097   typedef typename Superclass::SpatialJacobianType  SpatialJacobianType;
00098   typedef typename Superclass
00099     ::JacobianOfSpatialJacobianType                 JacobianOfSpatialJacobianType;
00100   typedef typename Superclass::SpatialHessianType   SpatialHessianType;
00101   typedef typename Superclass
00102     ::JacobianOfSpatialHessianType                  JacobianOfSpatialHessianType;
00103   typedef typename Superclass::InternalMatrixType   InternalMatrixType;
00104 
00109   void SetParameters( const ParametersType & parameters );
00110   virtual const ParametersType& GetParameters(void) const;
00111 
00113   virtual void GetJacobian(
00114     const InputPointType &,
00115     JacobianType &,
00116     NonZeroJacobianIndicesType & ) const;
00117 
00118 protected:
00119   AdvancedVersorRigid3DTransform(unsigned int outputSpaceDim,
00120                          unsigned int paramDim);
00121   AdvancedVersorRigid3DTransform(const MatrixType & matrix,
00122                          const OutputVectorType & offset);
00123   AdvancedVersorRigid3DTransform();
00124   ~AdvancedVersorRigid3DTransform(){};
00125 
00126   void PrintSelf(std::ostream &os, Indent indent) const;
00127 
00130   virtual void SetRotationMatrix(const MatrixType & matrix)
00131     { this->Superclass::SetRotationMatrix( matrix ); }
00132 
00133 private:
00134   AdvancedVersorRigid3DTransform(const Self&); //purposely not implemented
00135   void operator=(const Self&); //purposely not implemented
00136 
00137 }; //class AdvancedVersorRigid3DTransform
00138 
00139 
00140 }  // namespace itk
00141 
00142 // Define instantiation macro for this template.
00143 #define ITK_TEMPLATE_AdvancedVersorRigid3DTransform(_, EXPORT, x, y) namespace itk { \
00144   _(1(class EXPORT AdvancedVersorRigid3DTransform< ITK_TEMPLATE_1 x >)) \
00145   namespace Templates { typedef AdvancedVersorRigid3DTransform< ITK_TEMPLATE_1 x > AdvancedVersorRigid3DTransform##y; } \
00146   }
00147 
00148 #if ITK_TEMPLATE_EXPLICIT
00149 # include "Templates/itkAdvancedVersorRigid3DTransform+-.h"
00150 #endif
00151 
00152 #if ITK_TEMPLATE_TXX
00153 # include "itkAdvancedVersorRigid3DTransform.txx"
00154 #endif
00155 
00156 #endif /* __itkAdvancedVersorRigid3DTransform_h */


Generated on 11-05-2012 for elastix by doxygen 1.7.6.1 elastix logo