00001 #ifndef __IAfiPeronaOp__ 00002 #define __IAfiPeronaOp__ 00003 00029 #include <stdio.h> 00030 00031 #include "IMultiImageOp.hpp" 00032 00033 #include "Real3CImage.hpp" 00034 00035 00036 class IAfiPeronaOp : public IMultiImageOp 00037 { 00038 private: 00039 00040 int iter; 00041 double tau; 00042 00043 double contrast; 00044 00045 00046 protected: 00047 00048 // mono channel 00049 00050 virtual AnImage* greyFilter(AnImage* src, AnImage* dest=0); 00051 virtual AnImage* greySelectedFilter(AnImage* mask, AnImage* src, AnImage* dest=0); 00052 00053 // separate color channels 00054 00055 virtual Real3CImage* scolorFilter(Real3CImage* src, Real3CImage* dest=0); 00056 virtual Real3CImage* scolorSelectedFilter(AnImage* mask, Real3CImage* src, Real3CImage* dest=0); 00057 00058 00059 // separate color channels 00060 00061 virtual Real3CImage* fcolorFilter(Real3CImage* src, Real3CImage* dest=0); 00062 virtual Real3CImage* fcolorSelectedFilter(AnImage* mask, Real3CImage* src, Real3CImage* dest=0); 00063 00064 public: 00065 00066 IAfiPeronaOp(int iterations=1, double t=0.5,double aK=3.0, bool colorFlag= false):IMultiImageOp(1,colorFlag) 00067 {iter= iterations; tau= t; contrast=aK; } 00068 virtual ~IAfiPeronaOp(){} 00069 00070 00071 virtual void report(FILE* file){} 00072 }; 00073 00074 00075 #endif