00001 #ifndef __IFAosRofOp__ 00002 #define __IFAosRofOp__ 00003 00029 #include <stdio.h> 00030 00031 #include "IFMultiImageOp.hpp" 00032 00033 #include "Float3CImage.hpp" 00034 00035 00036 class IFAosRofOp : public IFMultiImageOp 00037 { 00038 private: 00039 00040 int iter; 00041 float tau; 00042 float sigmaBlur; 00043 00044 bool iir; 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 Float3CImage* scolorFilter(Float3CImage* src, Float3CImage* dest=0); 00056 virtual Float3CImage* scolorSelectedFilter(AnImage* mask, Float3CImage* src, Float3CImage* dest=0); 00057 00058 00059 // separate color channels 00060 00061 virtual Float3CImage* fcolorFilter(Float3CImage* src, Float3CImage* dest=0); 00062 virtual Float3CImage* fcolorSelectedFilter(AnImage* mask, Float3CImage* src, Float3CImage* dest=0); 00063 00064 public: 00065 00066 IFAosRofOp(int iterations=1, float t=0.5, 00067 float sigma=3.0, bool iirF=false, bool colorFlag= false):IFMultiImageOp(1,colorFlag) 00068 {iter= iterations; tau= t; sigmaBlur=sigma; iir= iirF; } 00069 virtual ~IFAosRofOp(){} 00070 00071 00072 virtual void report(FILE* file){} 00073 }; 00074 00075 00076 #endif