itkVolumeSplineKernelTransform.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef __itkVolumeSplineKernelTransform_h
00018 #define __itkVolumeSplineKernelTransform_h
00019
00020 #include "itkKernelTransform.h"
00021
00022 namespace itk
00023 {
00032 template <class TScalarType,
00033 unsigned int NDimensions = 3>
00034 class ITK_EXPORT VolumeSplineKernelTransform :
00035 public KernelTransform< TScalarType, NDimensions>
00036 {
00037 public:
00039 typedef VolumeSplineKernelTransform 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( VolumeSplineKernelTransform, 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
00069 InputCovariantVectorType;
00070 typedef typename Superclass::OutputCovariantVectorType
00071 OutputCovariantVectorType;
00072 typedef typename Superclass::PointsIterator PointsIterator;
00073
00074
00075 protected:
00076 VolumeSplineKernelTransform() {};
00077 virtual ~VolumeSplineKernelTransform() {}
00078
00081 typedef typename Superclass::GMatrixType GMatrixType;
00082
00091 virtual void ComputeG(const InputVectorType& landmarkVector, GMatrixType & gmatrix) const;
00092
00096 itkLegacyMacro( virtual const GMatrixType & ComputeG(const InputVectorType& landmarkVector) const );
00097
00098
00101 virtual void ComputeDeformationContribution(const InputPointType & inputPoint,
00102 OutputPointType & result ) const;
00103
00104 private:
00105 VolumeSplineKernelTransform(const Self&);
00106 void operator=(const Self&);
00107
00108 };
00109
00110 }
00111
00112
00113 #define ITK_TEMPLATE_VolumeSplineKernelTransform(_, EXPORT, x, y) namespace itk { \
00114 _(2(class EXPORT VolumeSplineKernelTransform< ITK_TEMPLATE_2 x >)) \
00115 namespace Templates { typedef VolumeSplineKernelTransform< ITK_TEMPLATE_2 x > \
00116 VolumeSplineKernelTransform##y; } \
00117 }
00118
00119 #if ITK_TEMPLATE_EXPLICIT
00120 # include "Templates/itkVolumeSplineKernelTransform+-.h"
00121 #endif
00122
00123 #if ITK_TEMPLATE_TXX
00124 # include "itkVolumeSplineKernelTransform.txx"
00125 #endif
00126
00127 #endif // __itkVolumeSplineKernelTransform_h
00128