go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
itkAdvancedSimilarity3DTransform.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkAdvancedSimilarity3DTransform.h,v $
00005   Language:  C++
00006   Date:      $Date: 2006-08-09 04:35:32 $
00007   Version:   $Revision: 1.3 $
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 __itkAdvancedSimilarity3DTransform_h
00019 #define __itkAdvancedSimilarity3DTransform_h
00020 
00021 #include <iostream>
00022 #include "itkAdvancedVersorRigid3DTransform.h"
00023 
00024 namespace itk
00025 {
00026 
00046 template < class TScalarType=double >    // Data type for scalars (float or double)
00047 class ITK_EXPORT AdvancedSimilarity3DTransform :
00048       public AdvancedVersorRigid3DTransform< TScalarType >
00049 {
00050 public:
00052   typedef AdvancedSimilarity3DTransform                  Self;
00053   typedef AdvancedVersorRigid3DTransform< TScalarType >  Superclass;
00054   typedef SmartPointer<Self>                     Pointer;
00055   typedef SmartPointer<const Self>               ConstPointer;
00056 
00058   itkNewMacro( Self );
00059 
00061   itkTypeMacro( AdvancedSimilarity3DTransform, AdvancedVersorRigid3DTransform );
00062 
00064   itkStaticConstMacro(SpaceDimension, unsigned int, 3);
00065   itkStaticConstMacro(InputSpaceDimension, unsigned int, 3);
00066   itkStaticConstMacro(OutputSpaceDimension, unsigned int, 3);
00067   itkStaticConstMacro(ParametersDimension, unsigned int, 7);
00068 
00070   typedef typename Superclass::ParametersType         ParametersType;
00071   typedef typename Superclass::JacobianType           JacobianType;
00072   typedef typename Superclass::ScalarType             ScalarType;
00073   typedef typename Superclass::InputPointType         InputPointType;
00074   typedef typename Superclass::OutputPointType        OutputPointType;
00075   typedef typename Superclass::InputVectorType        InputVectorType;
00076   typedef typename Superclass::OutputVectorType       OutputVectorType;
00077   typedef typename Superclass::InputVnlVectorType     InputVnlVectorType;
00078   typedef typename Superclass::OutputVnlVectorType    OutputVnlVectorType;
00079   typedef typename Superclass::InputCovariantVectorType
00080                                                       InputCovariantVectorType;
00081   typedef typename Superclass::OutputCovariantVectorType
00082                                                       OutputCovariantVectorType;
00083   typedef typename Superclass::MatrixType             MatrixType;
00084   typedef typename Superclass::InverseMatrixType      InverseMatrixType;
00085   typedef typename Superclass::CenterType             CenterType;
00086   typedef typename Superclass::OffsetType             OffsetType;
00087   typedef typename Superclass::TranslationType        TranslationType;
00088 
00090   typedef typename Superclass::VersorType             VersorType;
00091   typedef typename Superclass::AxisType               AxisType;
00092   typedef typename Superclass::AngleType              AngleType;
00093   typedef          TScalarType                        ScaleType;
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 
00110   virtual void SetMatrix(const MatrixType &matrix);
00111 
00116   void SetParameters( const ParametersType & parameters );
00117   virtual const ParametersType& GetParameters(void) const;
00118 
00120   void SetScale( ScaleType scale );
00121   itkGetConstReferenceMacro( Scale, ScaleType );
00122 
00124   virtual void GetJacobian(
00125     const InputPointType &,
00126     JacobianType &,
00127     NonZeroJacobianIndicesType & ) const;
00128 
00129 protected:
00130   AdvancedSimilarity3DTransform(unsigned int outputSpaceDim,
00131                          unsigned int paramDim);
00132   AdvancedSimilarity3DTransform(const MatrixType & matrix,
00133                          const OutputVectorType & offset);
00134   AdvancedSimilarity3DTransform();
00135   ~AdvancedSimilarity3DTransform(){};
00136 
00137   void PrintSelf(std::ostream &os, Indent indent) const;
00138 
00141   void ComputeMatrix();
00142 
00144   void ComputeMatrixParameters();
00145 
00147   virtual void PrecomputeJacobianOfSpatialJacobian(void);
00148 
00149 private:
00150   AdvancedSimilarity3DTransform(const Self&); //purposely not implemented
00151   void operator=(const Self&); //purposely not implemented
00152 
00153   ScaleType    m_Scale;
00154 
00155 }; //class AdvancedSimilarity3DTransform
00156 
00157 
00158 }  // namespace itk
00159 
00160 // Define instantiation macro for this template.
00161 #define ITK_TEMPLATE_AdvancedSimilarity3DTransform(_, EXPORT, x, y) namespace itk { \
00162   _(1(class EXPORT AdvancedSimilarity3DTransform< ITK_TEMPLATE_1 x >)) \
00163   namespace Templates { typedef AdvancedSimilarity3DTransform< ITK_TEMPLATE_1 x > AdvancedSimilarity3DTransform##y; } \
00164   }
00165 
00166 #if ITK_TEMPLATE_EXPLICIT
00167 # include "Templates/itkAdvancedSimilarity3DTransform+-.h"
00168 #endif
00169 
00170 #if ITK_TEMPLATE_TXX
00171 # include "itkAdvancedSimilarity3DTransform.txx"
00172 #endif
00173 
00174 #endif /* __itkAdvancedSimilarity3DTransform_h */


Generated on 24-10-2011 for elastix by doxygen 1.7.4 elastix logo