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

Minmod.hpp

00001 #ifndef _Minmod_H
00002 #define _Minmod_H
00003 
00004 
00005 
00060 #include <math.h>
00061 
00062 
00063 class Minmod : public AbsLimiter
00064 {
00065 public:
00066 virtual ~Minmod(){}
00067 
00068 
00069 virtual double average(double a, double b)
00070         {
00071         double val=0.0;
00072 
00073         if( (a*b) > 0.0 )
00074                 val= fabs(a) <= fabs(b) ? a : b;
00075 
00076         return val;
00077         }
00078 };
00079 
00080 #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