00001 #ifndef __IFAosPeronaOp__ 00002 #define __IFAosPeronaOp__ 00003 00029 #include <stdio.h> 00030 00031 #include "IFMultiImageOp.hpp" 00032 00033 #include "Float3CImage.hpp" 00034 00035 00036 class IFAosPeronaOp : public IFMultiImageOp 00037 { 00038 private: 00039 00040 int type; 00041 00042 int iter; 00043 float tau; 00044 float sigmaDelta; 00045 float sigmaBlur; 00046 00047 bool iir; 00048 bool nonLinear; 00049 00050 protected: 00051 00052 // mono channel 00053 00054 virtual AnImage* greyFilter(AnImage* src, AnImage* dest=0); 00055 virtual AnImage* greySelectedFilter(AnImage* mask, AnImage* src, AnImage* dest=0); 00056 00057 // separate color channels 00058 00059 virtual Float3CImage* scolorFilter(Float3CImage* src, Float3CImage* dest=0); 00060 virtual Float3CImage* scolorSelectedFilter(AnImage* mask, Float3CImage* src, Float3CImage* dest=0); 00061 00062 00063 // separate color channels 00064 00065 virtual Float3CImage* fcolorFilter(Float3CImage* src, Float3CImage* dest=0); 00066 virtual Float3CImage* fcolorSelectedFilter(AnImage* mask, Float3CImage* src, Float3CImage* dest=0); 00067 00068 public: 00069 00070 IFAosPeronaOp(int atype=0, int iterations=1, float t=0.5, 00071 float K=1.0, float sigma=3.0, 00072 bool iirF=false, bool colorFlag= false, bool nonLinearF=true) 00073 :IFMultiImageOp(1,colorFlag) 00074 {type= atype; iter= iterations; tau= t; sigmaDelta= K; sigmaBlur=sigma; 00075 iir= iirF; nonLinear=nonLinearF; } 00076 virtual ~IFAosPeronaOp(){} 00077 00078 00079 virtual void report(FILE* file){} 00080 }; 00081 00082 00083 #endif