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

itkThinPlateSplineKernelTransform.h

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

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