00001 #ifndef __IAosTvOp__ 00002 #define __IAosTvOp__ 00003 00041 #include <stdio.h> 00042 00043 #include "IMultiImageOp.hpp" 00044 00045 #include "Real3CImage.hpp" 00046 00047 00048 class IAosTvOp : public IMultiImageOp 00049 { 00050 private: 00051 00052 int iter; 00053 double tau; 00054 00055 double lambda; 00056 00057 double sigmaBlur; 00058 00059 bool iir; 00060 00061 protected: 00062 00063 // mono channel 00064 00065 virtual AnImage* greyFilter(AnImage* src, AnImage* dest=0); 00066 virtual AnImage* greySelectedFilter(AnImage* mask, AnImage* src, AnImage* dest=0); 00067 00068 // separate color channels 00069 00070 virtual Real3CImage* scolorFilter(Real3CImage* src, Real3CImage* dest=0); 00071 virtual Real3CImage* scolorSelectedFilter(AnImage* mask, Real3CImage* src, Real3CImage* dest=0); 00072 00073 00074 // separate color channels 00075 00076 virtual Real3CImage* fcolorFilter(Real3CImage* src, Real3CImage* dest=0); 00077 virtual Real3CImage* fcolorSelectedFilter(AnImage* mask, Real3CImage* src, Real3CImage* dest=0); 00078 00079 public: 00080 00081 IAosTvOp(int iterations=1, double t=0.5, double alambda=0.1, 00082 double sigma=3.0, bool iirF=false, bool colorFlag= false):IMultiImageOp(1,colorFlag) 00083 {iter= iterations; tau= t; lambda= alambda; sigmaBlur=sigma; iir= iirF; } 00084 virtual ~IAosTvOp(){} 00085 00086 00087 virtual void report(FILE* file){} 00088 }; 00089 00090 00091 #endif