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

G1Contrast.hpp

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