00001 #ifndef __MultiResolutionInpainting__ 00002 #define __MultiResolutionInpainting__ 00003 00004 00005 00027 #include <stdio.h> 00028 00029 #include "AnInpaintingOp.hpp" 00030 00031 00032 00033 class MultiResolutionInpainting : public AnInpaintingOp 00034 { 00035 private: 00036 00037 int n; // nInpaints; 00038 int levels; 00039 00040 AnImageOp* inpaint; // stage Inpainting 00041 00042 protected: 00043 00044 virtual AnImage* stagedFilter(int level, AnImage* mask, 00045 AnImage* src, AnImage* previous=0); 00046 00047 public: 00048 00049 MultiResolutionInpainting(int nlevels=4, int np=10); 00050 MultiResolutionInpainting(AnImageOp* anInpainting, int nlevels=4, int np=200); 00051 virtual ~MultiResolutionInpainting(); 00052 00053 virtual AnImage* filter(AnImage* src, AnImage* dest=0){return 0;} 00054 00055 virtual AnImage* selectedFilter(AnImage* mask, 00056 AnImage* src, AnImage* dest=0); 00057 00058 virtual void report(FILE* file){} 00059 }; 00060 00061 00062 #endif