00001 #ifndef __ColorGradPotential__ 00002 #define __ColorGradPotential__ 00003 00025 #include "RImage.hpp" 00026 00027 #include "ImagePotential.hpp" 00028 00029 class ColorGradPotential : public ImagePotential 00030 { 00031 private: 00032 00033 int type; 00034 RImage* gradImage; 00035 00036 public: 00037 00038 ColorGradPotential(double aw=1.0, bool reg=false, double sigmaR=2.0, int atype=0) 00039 :ImagePotential(aw, reg, sigmaR){type=atype;} 00040 virtual ~ColorGradPotential(){} 00041 00042 virtual void set(AnImage* im); 00043 00044 virtual double getP(int x, int y); 00045 00046 virtual void report(FILE* file){} 00047 }; 00048 00049 00050 #endif