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