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

ShockProximityFlow.hpp

00001 #ifndef __ShockProximityFlow__
00002 #define __ShockProximityFlow__
00003 
00025 #include <stdio.h>
00026 
00027 
00028 #include "RImage.hpp"
00029 
00030 #include "AbsRImageFlow.hpp"
00031 
00032 class ShockProximityFlow : public AbsRImageFlow
00033 {
00034 protected:
00035 
00036 double                  limitDistance2;         // balance shock / diffusion
00037 RImage*                 distanceMapEdges;
00038 
00039 double                  lambda;
00040 
00041 public:
00042         
00043 ShockProximityFlow(RImage* distanceMap=0, double dlimit=5.0, double lambdaD=1.0)
00044         {distanceMapEdges= distanceMap; limitDistance2= dlimit*dlimit; lambda= lambdaD;}
00045 virtual ~ShockProximityFlow(){}
00046 
00047 virtual double flow(RImage& image, int x, int y);
00048 virtual double flow(RImage& image0, RImage& imSmooth, int x, int y);
00049 
00050 virtual void   setEdgeDistance(RImage* distanceMap){ distanceMapEdges= distanceMap; }
00051 
00052 virtual void report(FILE* file){}
00053 };
00054 
00055 
00056 #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