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

itkElasticBodySplineKernelTransform.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkElasticBodySplineKernelTransform.h,v $
00005   Language:  C++
00006   Date:      $Date: 2009-06-14 12:30:08 $
00007   Version:   $Revision: 1.37 $
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 __itkElasticBodySplineKernelTransform_h
00018 #define __itkElasticBodySplineKernelTransform_h
00019 
00020 #include "itkKernelTransform.h"
00021 
00022 
00023 namespace itk
00024 {
00025 
00038 template <class TScalarType = double,   // Data type for scalars (float or double)
00039           unsigned int NDimensions = 3>          // Number of dimensions
00040 class ITK_EXPORT ElasticBodySplineKernelTransform : 
00041           public KernelTransform<  TScalarType, NDimensions>
00042 {
00043 public:
00045   typedef ElasticBodySplineKernelTransform   Self;
00046   typedef KernelTransform<  TScalarType, 
00047                             NDimensions> Superclass;
00048 
00049   typedef SmartPointer<Self>        Pointer;
00050   typedef SmartPointer<const Self>  ConstPointer;
00051     
00053   itkTypeMacro( ElasticBodySplineKernelTransform, KernelTransform );
00054 
00056   itkNewMacro( Self );
00057 
00059   typedef typename Superclass::ScalarType  ScalarType;
00060 
00062   typedef typename Superclass::ParametersType  ParametersType;
00063 
00065   typedef typename Superclass::JacobianType  JacobianType;
00066 
00068   itkStaticConstMacro(SpaceDimension, unsigned int,Superclass::SpaceDimension);
00069 
00073   itkSetMacro( Alpha, TScalarType );
00074 
00076   itkGetConstMacro( Alpha, TScalarType );
00077 
00080   typedef typename Superclass::InputPointType           InputPointType;
00081   typedef typename Superclass::OutputPointType          OutputPointType;
00082   typedef typename Superclass::InputVectorType          InputVectorType;
00083   typedef typename Superclass::OutputVectorType         OutputVectorType;
00084   typedef typename Superclass::InputCovariantVectorType InputCovariantVectorType;
00085   typedef typename Superclass::OutputCovariantVectorType OutputCovariantVectorType;
00086 
00087 
00088 protected:
00089   ElasticBodySplineKernelTransform();
00090   virtual ~ElasticBodySplineKernelTransform();
00091   void PrintSelf(std::ostream& os, Indent indent) const;
00092   
00095   typedef typename Superclass::GMatrixType GMatrixType;
00096 
00108   virtual void ComputeG(const InputVectorType& landmarkVector, GMatrixType & gmatrix) const;
00109 
00113   itkLegacyMacro( virtual const GMatrixType & ComputeG(const InputVectorType& landmarkVector) const );
00114 
00118   TScalarType m_Alpha;
00119 
00120 private:
00121   ElasticBodySplineKernelTransform(const Self&); //purposely not implemented
00122   void operator=(const Self&); //purposely not implemented
00123 
00124 };
00125 
00126 } // namespace itk
00127 
00128 // Define instantiation macro for this template.
00129 #define ITK_TEMPLATE_ElasticBodySplineKernelTransform(_, EXPORT, x, y) namespace itk { \
00130   _(2(class EXPORT ElasticBodySplineKernelTransform< ITK_TEMPLATE_2 x >)) \
00131   namespace Templates { typedef ElasticBodySplineKernelTransform< ITK_TEMPLATE_2 x > \
00132                                             ElasticBodySplineKernelTransform##y; } \
00133   }
00134 
00135 #if ITK_TEMPLATE_EXPLICIT
00136 # include "Templates/itkElasticBodySplineKernelTransform+-.h"
00137 #endif
00138 
00139 #if ITK_TEMPLATE_TXX
00140 # include "itkElasticBodySplineKernelTransform.txx"
00141 #endif
00142 
00143 #endif // __itkElasticBodySplineKernelTransform_h
00144 

Generated at Tue Sep 15 02:50:32 2009 for ITK by doxygen 1.5.8 written by Dimitri van Heesch, © 1997-2000