Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

itkThinPlateR2LogRSplineKernelTransform.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkThinPlateR2LogRSplineKernelTransform.h,v $
00005   Language:  C++
00006   Date:      $Date: 2007/01/30 20:56:09 $
00007   Version:   $Revision: 1.8 $
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 #ifndef __itkThinPlateR2LogRSplineKernelTransform_h
00018 #define __itkThinPlateR2LogRSplineKernelTransform_h
00019 
00020 #include "itkKernelTransform.h"
00021 
00022 namespace itk
00023 {
00034 template <class TScalarType,         // Data type for scalars (float or double)
00035           unsigned int NDimensions = 3>          // Number of dimensions
00036 class ITK_EXPORT ThinPlateR2LogRSplineKernelTransform : 
00037                 public KernelTransform<   TScalarType, NDimensions>
00038 {
00039 public:
00041   typedef ThinPlateR2LogRSplineKernelTransform Self;
00042   typedef KernelTransform<    TScalarType, NDimensions>   Superclass;
00043   typedef SmartPointer<Self>        Pointer;
00044   typedef SmartPointer<const Self>  ConstPointer;
00045 
00047   itkNewMacro( Self );
00048 
00050   itkTypeMacro( ThinPlateR2LogRSplineKernelTransform, KernelTransform );
00051 
00053   typedef typename Superclass::ScalarType  ScalarType;
00054 
00056   typedef typename Superclass::ParametersType  ParametersType;
00057 
00059   typedef typename Superclass::JacobianType  JacobianType;
00060 
00062   itkStaticConstMacro(SpaceDimension, unsigned int,Superclass::SpaceDimension);
00063 
00066   typedef typename Superclass::InputPointType  InputPointType;
00067   typedef typename Superclass::OutputPointType  OutputPointType;
00068   typedef typename Superclass::InputVectorType InputVectorType;
00069   typedef typename Superclass::OutputVectorType OutputVectorType;
00070   typedef typename Superclass::InputCovariantVectorType InputCovariantVectorType;
00071   typedef typename Superclass::OutputCovariantVectorType OutputCovariantVectorType;
00072   typedef typename Superclass::PointsIterator PointsIterator;
00073 
00074 
00075 protected:
00076   ThinPlateR2LogRSplineKernelTransform() {};
00077   virtual ~ThinPlateR2LogRSplineKernelTransform() {}
00078   
00081   typedef typename Superclass::GMatrixType GMatrixType;
00082 
00091   const GMatrixType & ComputeG(const InputVectorType & x) const;
00092 
00093 
00096   virtual void ComputeDeformationContribution( const InputPointType & inputPoint,
00097                                                      OutputPointType & result ) const;
00098 
00099  private:
00100   ThinPlateR2LogRSplineKernelTransform(const Self&); //purposely not implemented
00101   void operator=(const Self&); //purposely not implemented
00102 
00103 };
00104 
00105 } // namespace itk
00106 
00107 // Define instantiation macro for this template.
00108 #define ITK_TEMPLATE_ThinPlateR2LogRSplineKernelTransform(_, EXPORT, x, y) namespace itk { \
00109   _(2(class EXPORT ThinPlateR2LogRSplineKernelTransform< ITK_TEMPLATE_2 x >)) \
00110   namespace Templates { typedef ThinPlateR2LogRSplineKernelTransform< ITK_TEMPLATE_2 x > \
00111                                                   ThinPlateR2LogRSplineKernelTransform##y; } \
00112   }
00113 
00114 #if ITK_TEMPLATE_EXPLICIT
00115 # include "Templates/itkThinPlateR2LogRSplineKernelTransform+-.h"
00116 #endif
00117 
00118 #if ITK_TEMPLATE_TXX
00119 # include "itkThinPlateR2LogRSplineKernelTransform.txx"
00120 #endif
00121 
00122 #endif // __itkThinPlateR2LogRSplineKernelTransform_h
00123 

Generated at Sun Sep 23 14:24:32 2007 for ITK by doxygen 1.5.1 written by Dimitri van Heesch, © 1997-2000