00001 #ifndef _BilinearImInterpolator_H 00002 #define _BilinearImInterpolator_H 00003 00004 00025 #include <stdio.h> 00026 00027 #include "AnImageInterpolator.hpp" 00028 00029 class BilinearImInterpolator : public AnImageInterpolator 00030 { 00031 public: 00032 00033 BilinearImInterpolator(AnImage* animage=0):AnImageInterpolator(animage){} 00034 virtual ~BilinearImInterpolator(){} 00035 00036 virtual int igetR(double x, double y, int c=0); // integer rounding 00037 virtual double getR(double x, double y, int c=0); // interpolated value 00038 }; 00039 00040 #endif