00001 #ifndef __BayesObjectPotential__ 00002 #define __BayesObjectPotential__ 00003 00025 #include "IndependentBayesClassifier.hpp" 00026 #include "ImagePotential.hpp" 00027 00028 class BayesObjectPotential : public ImagePotential 00029 { 00030 protected: 00031 00032 double gval; // computation data 00033 RealVector cval; 00034 00035 IndependentBayesClassifier* classifier; 00036 00037 public: 00038 00039 BayesObjectPotential(IndependentBayesClassifier* cl=0, double aw=0.0001, bool reg=false) 00040 :ImagePotential(aw, reg), cval(3){gval=0.0; classifier=cl;} 00041 virtual ~BayesObjectPotential(){} 00042 00043 virtual void set(IndependentBayesClassifier* cl){ classifier= cl; } 00044 00045 virtual double getTermination(int x, int y); 00046 00047 virtual double getP(int x, int y); 00048 virtual double getPotential(int x, int y); 00049 00050 virtual void report(FILE* file){} 00051 }; 00052 00053 00054 #endif