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

ZadehOp.hpp

00001 #ifndef __ZadehOp__
00002 #define __ZadehOp__
00003 
00024 #include <stdio.h>
00025 
00026 
00027 #include "AFuzzyOp.hpp"
00028 
00029 class ZadehOp : public AFuzzyOp 
00030 {
00031 public:
00032 ZadehOp(){}
00033 virtual ~ZadehOp(){}
00034 
00035 
00036 virtual double not(double value){ return (1.0 - value); }
00037 virtual double and(double v1, double v2){ return ( v1 <= v2 ? v1 : v2 ); }
00038 virtual double or(double v1, double v2){ return ( v1 >= v2 ? v1 : v2 ); }
00039 
00040 
00041 virtual void report(FILE* file){}
00042 };
00043 
00044 
00045 #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