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

CAMSmoothShockFlow.hpp

00001 #ifndef __CAMSmoothShockFlow__
00002 #define __CAMSmoothShockFlow__
00003 
00032 #include <stdio.h>
00033 #include <math.h>
00034 
00035 #include "CImage.hpp"
00036 
00037 #include "AbsCImageFlow.hpp"
00038 
00039 class CAMSmoothShockFlow : public AbsCImageFlow
00040 {
00041 protected:
00042 
00043 double  PIinverse;
00044 double  a;                      // allows smooth shocks with a>1.0
00045 
00046 double  theta;
00047 double  thetaInv;
00048 
00049 RComplex        lambda;
00050 double  lambdaT;
00051 
00052 public:
00053         
00054 CAMSmoothShockFlow(double atheta=0.001, double ax=2.0, double rlambda=1.0, double lambdaTg=1.0)
00055         {
00056         a= ax; PIinverse= 1.0/(4.0*atan(1.0)); 
00057         theta=atheta; thetaInv= 1.0/theta; 
00058         lambda=RComplex(rlambda,theta,1);
00059         lambdaT= lambdaTg;
00060         }
00061 virtual ~CAMSmoothShockFlow(){}
00062 
00063 virtual RComplex flow(CImage& image, int x, int y);
00064 virtual RComplex flow(CImage& image0, CImage& imSmooth, int x, int y);
00065 
00066 virtual void report(FILE* file){}
00067 };
00068 
00069 
00070 #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