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

SmoothShockFlow.hpp

00001 #ifndef __SmoothShockFlow__
00002 #define __SmoothShockFlow__
00003 
00032 #include <stdio.h>
00033 #include <math.h>
00034 
00035 #include "RImage.hpp"
00036 
00037 #include "AbsRImageFlow.hpp"
00038 
00039 class SmoothShockFlow : public AbsRImageFlow
00040 {
00041 protected:
00042 
00043 double  PIinverse;
00044 double  a;                      // allows smooth shocks with a>1.0
00045 
00046 double  t;
00047 
00048 public:
00049         
00050 SmoothShockFlow(double ax=2.0)
00051         {a= ax; PIinverse= 1.0/(4.0*atan(1.0)); t=1.0;}
00052 virtual ~SmoothShockFlow(){}
00053 
00054 virtual void setTime(int atime){t= atime;}
00055 virtual double getTime(){return t;}
00056 
00057 virtual double flow(RImage& image, int x, int y);
00058 virtual double flow(RImage& image0, RImage& imSmooth, int x, int y);
00059 
00060 virtual void report(FILE* file){}
00061 };
00062 
00063 
00064 #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