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

FMinBiasedSlopeOp.hpp

00001 #ifndef __FMinBiasedSlopeOp__
00002 #define __FMinBiasedSlopeOp__
00003 
00004 
00005 
00027 #include <stdio.h>
00028 #include <math.h>
00029 
00030 #include "FGradientNormOp.hpp"
00031 
00032 
00033 
00034 class FMinBiasedSlopeOp : public  FGradientNormOp
00035 {
00036 private:
00037 
00038 float invroot2;
00039 
00040 public:
00041         
00042 FMinBiasedSlopeOp(){invroot2= 0.5*sqrt(2.0);}
00043 virtual ~FMinBiasedSlopeOp(){}
00044 
00045 // point based computations
00046 // ------------------------
00047 virtual float get(int x, int y);                        // if no side effects
00048 // borders
00049 virtual float getN(int x);
00050 virtual float getE(int y);
00051 virtual float getS(int x);
00052 virtual float getW(int y);
00053 // corners
00054 virtual float getNW();
00055 virtual float getNE();
00056 virtual float getSE();
00057 virtual float getSW();
00058 
00059 virtual void report(FILE* file){ fprintf(file,"MinBiasedSlope Gradient Norm Approximation\n"); }
00060 };
00061 
00062 
00063 #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