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

G2Contrast.hpp

00001 #ifndef _G2Contrast_H
00002 #define _G2Contrast_H
00003 
00004 
00005 
00026 #include <math.h>
00027 #include "AContrastFunction.hpp"
00028 
00029 class G2Contrast : public AContrastFunction
00030 {
00031 private:
00032 
00033 double  a;
00034 
00035 public:
00036 G2Contrast(double ax=1.0){a=ax;}
00037 virtual ~G2Contrast(){}
00038 
00039 virtual double G(double u){double val=-a*u*u; return (-1.0*exp(val))/a;}
00040 virtual double g(double u){double val=-a*u*u; return u*exp(val);}
00041 virtual double gdiff(double u){double val=-a*u*u; return a*u*u*exp(val); }
00042 };
00043 
00044 #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