![]() |
Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages |
00001 /*========================================================================= 00002 00003 Program: Insight Segmentation & Registration Toolkit 00004 Module: $RCSfile: itkThinPlateSplineKernelTransform2.h,v $ 00005 Language: C++ 00006 Date: $Date: 2006-11-28 14:22:18 $ 00007 Version: $Revision: 1.1 $ 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 __itkThinPlateSplineKernelTransform2_h 00018 #define __itkThinPlateSplineKernelTransform2_h 00019 00020 #include "itkKernelTransform2.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 ThinPlateSplineKernelTransform2 00035 : public KernelTransform2<TScalarType, NDimensions> 00036 { 00037 public: 00039 typedef ThinPlateSplineKernelTransform2 Self; 00040 typedef KernelTransform2<TScalarType, NDimensions> Superclass; 00041 typedef SmartPointer<Self> Pointer; 00042 typedef SmartPointer<const Self> ConstPointer; 00043 00045 itkNewMacro( Self ); 00046 00048 itkTypeMacro( ThinPlateSplineKernelTransform2, KernelTransform2 ); 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 00065 typedef typename Superclass::InputPointType InputPointType; 00066 typedef typename Superclass::OutputPointType OutputPointType; 00067 typedef typename Superclass::InputVectorType InputVectorType; 00068 typedef typename Superclass::OutputVectorType OutputVectorType; 00069 typedef typename Superclass::InputCovariantVectorType InputCovariantVectorType; 00070 typedef typename Superclass::OutputCovariantVectorType OutputCovariantVectorType; 00071 typedef typename Superclass::PointsIterator PointsIterator; 00072 00073 protected: 00074 ThinPlateSplineKernelTransform2() 00075 { 00076 this->m_FastComputationPossible = true; 00077 }; 00078 virtual ~ThinPlateSplineKernelTransform2() {} 00079 00083 typedef typename Superclass::GMatrixType GMatrixType; 00084 00094 void ComputeG( const InputVectorType & x, GMatrixType & GMatrix ) const; 00095 00096 00100 virtual void ComputeDeformationContribution( 00101 const InputPointType & inputPoint, OutputPointType & result ) const; 00102 00103 private: 00104 ThinPlateSplineKernelTransform2(const Self&); //purposely not implemented 00105 void operator=(const Self&); //purposely not implemented 00106 00107 }; 00108 00109 } // namespace itk 00110 00111 #ifndef ITK_MANUAL_INSTANTIATION 00112 #include "itkThinPlateSplineKernelTransform2.txx" 00113 #endif 00114 00115 #endif // __itkThinPlateSplineKernelTransform2_h
Generated on 11-05-2012 for elastix by ![]() |
![]() |