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

CentralPotential.hpp

00001 #ifndef __CentralPotential__
00002 #define __CentralPotential__
00003 
00026 #include "ImagePotential.hpp"
00027 
00028 class CentralPotential : public ImagePotential 
00029 {
00030 protected:
00031 
00032 int             x0, y0;
00033 int             wWindow;
00034 
00035 double  alpha;
00036 
00037 double  Imean[3];
00038 
00039 public:
00040         
00041 CentralPotential(double aw=0.015, bool reg=false, double sigmaR=2.0, int awWindow=2)
00042                 :ImagePotential(aw, reg, sigmaR){x0=0; y0=0; wWindow=awWindow; alpha=2;}
00043 virtual ~CentralPotential(){}
00044 
00045 
00046 virtual void setPoint0(int x, int y);
00047 virtual void setPoint1(int x, int y){setPoint0(x,y);}
00048 
00049 virtual int getX0(){return x0;}
00050 virtual int getY0(){return y0;}
00051 
00052 virtual int getX1(){return x0;}
00053 virtual int getY1(){return y0;}
00054 
00055 virtual double getP(int x, int y);
00056 virtual double getPotential(int x, int y);
00057 
00058 virtual void report(FILE* file){}
00059 };
00060 
00061 
00062 #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