/vol/vipdata/irtk/image++/include/irtkLinearInterpolateImageFunction2D.h

00001 /*=========================================================================
00002 
00003   Library   : Image Registration Toolkit (IRTK)
00004   Module    : $Id: irtkLinearInterpolateImageFunction2D.h 8 2009-03-02 16:12:58Z dr $
00005   Copyright : Imperial College, Department of Computing
00006               Visual Information Processing (VIP), 2008 onwards
00007   Date      : $Date: 2009-03-02 16:12:58 +0000 (Mon, 02 Mar 2009) $
00008   Version   : $Revision: 8 $
00009   Changes   : $Author: dr $
00010 
00011 =========================================================================*/
00012 
00013 #ifndef _IRTKLINEARINTERPOLATEIMAGEFUNCTION2D_H
00014 
00015 #define _IRTKLINEARINTERPOLATEIMAGEFUNCTION2D_H
00016 
00024 class irtkLinearInterpolateImageFunction2D : public irtkInterpolateImageFunction
00025 {
00026 
00027 private:
00028 
00030   int _x;
00031 
00033   int _y;
00034 
00036   int _offset1, _offset2, _offset3, _offset4;
00037 
00038 public:
00039 
00041   irtkLinearInterpolateImageFunction2D();
00042 
00044   ~irtkLinearInterpolateImageFunction2D();
00045 
00047   virtual const char *NameOfClass();
00048 
00050   virtual void Initialize();
00051 
00053   virtual double Evaluate(double, double, double = 0, double = 0);
00054 
00058   virtual double EvaluateInside(double, double, double = 0, double = 0);
00059 
00060 };
00061 
00062 #endif