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

itkVolumeSplineKernelTransform.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkVolumeSplineKernelTransform.h,v $
00005   Language:  C++
00006   Date:      $Date: 2009-05-17 14:27:03 $
00007   Version:   $Revision: 1.14 $
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 __itkVolumeSplineKernelTransform_h
00018 #define __itkVolumeSplineKernelTransform_h
00019 
00020 #include "itkKernelTransform.h"
00021 
00022 namespace itk
00023 {
00032 template <class TScalarType,         // Data type for scalars (float or
00033                                                               // double)
00034           unsigned int NDimensions = 3>          // Number of dimensions
00035 class ITK_EXPORT VolumeSplineKernelTransform : 
00036                 public KernelTransform<   TScalarType, NDimensions>
00037 {
00038 public:
00040   typedef VolumeSplineKernelTransform                 Self;
00041   typedef KernelTransform<TScalarType, NDimensions>   Superclass;
00042   typedef SmartPointer<Self>                          Pointer;
00043   typedef SmartPointer<const Self>                    ConstPointer;
00044 
00046   itkNewMacro( Self );
00047 
00049   itkTypeMacro( VolumeSplineKernelTransform, KernelTransform );
00050 
00052   typedef typename Superclass::ScalarType  ScalarType;
00053 
00055   typedef typename Superclass::ParametersType  ParametersType;
00056 
00058   typedef typename Superclass::JacobianType  JacobianType;
00059 
00061   itkStaticConstMacro(SpaceDimension, unsigned int,
00062                       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  
00071                                                 InputCovariantVectorType;
00072   typedef typename Superclass::OutputCovariantVectorType 
00073                                                 OutputCovariantVectorType;
00074   typedef typename Superclass::PointsIterator   PointsIterator;
00075 
00076 
00077 protected:
00078   VolumeSplineKernelTransform() {};
00079   virtual ~VolumeSplineKernelTransform() {}
00080   
00083   typedef typename Superclass::GMatrixType GMatrixType;
00084 
00093   virtual void ComputeG(const InputVectorType& landmarkVector,
00094                         GMatrixType & gmatrix) const;
00095 
00100   itkLegacyMacro( virtual const GMatrixType & ComputeG(
00101                                   const InputVectorType & landmarkVector 
00102                                   ) const );
00103 
00104 
00107   virtual void ComputeDeformationContribution(
00108                                   const InputPointType & inputPoint,
00109                                   OutputPointType & result ) const;
00110 
00111 private:
00112   VolumeSplineKernelTransform(const Self&); //purposely not implemented
00113   void operator=(const Self&); //purposely not implemented
00114 
00115 };
00116 
00117 } // namespace itk
00118 
00119 // Define instantiation macro for this template.
00120 #define ITK_TEMPLATE_VolumeSplineKernelTransform(_, EXPORT, x, y) \
00121   namespace itk { \
00122     _(2(class EXPORT VolumeSplineKernelTransform< ITK_TEMPLATE_2 x >)) \
00123     namespace Templates { typedef \
00124           VolumeSplineKernelTransform< ITK_TEMPLATE_2 x > \
00125                                      VolumeSplineKernelTransform##y; } \
00126   }
00127 
00128 #if ITK_TEMPLATE_EXPLICIT
00129 # include "Templates/itkVolumeSplineKernelTransform+-.h"
00130 #endif
00131 
00132 #if ITK_TEMPLATE_TXX
00133 # include "itkVolumeSplineKernelTransform.txx"
00134 #endif
00135 
00136 #endif // __itkVolumeSplineKernelTransform_h
00137 

Generated at Thu May 28 12:02:13 2009 for ITK by doxygen 1.5.5 written by Dimitri van Heesch, © 1997-2000