Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   Related Pages  

BayesObjectPotential.hpp

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
SourceForge.net Logo
Restoreinpaint sourceforge project `C++/Java Image Processing, Restoration, Inpainting Project'.

Bernard De Cuyper: Open Project Leader: Concept, design and development.
Bernard De Cuyper & Eddy Fraiha 2002, 2003. Bernard De Cuyper 2004. Open and free, for friendly usage only.
Modifications on Belgium ground of this piece of artistic work, by governement institutions or companies, must be notified to Bernard De Cuyper.
bern_bdc@hotmail.com