00001 #ifndef __CGradientOp__ 00002 #define __CGradientOp__ 00003 00004 00005 00024 #include <stdio.h> 00025 00026 #include "AbsCImageFilter.hpp" 00027 00028 00029 00035 #include "RGradientOp.hpp" 00036 00037 class CGradientOp : public AbsCImageFilter 00038 { 00039 private: 00040 00041 Direction direction; 00042 00043 public: 00044 00045 CGradientOp(Direction dir=Norme2){ direction=dir; } 00046 virtual ~CGradientOp(){} 00047 00048 // single shot filtering 00049 virtual CImage* filter(CImage* src, CImage* dest=0); 00050 virtual CImage* selectedFilter(AnImage* mask, CImage* src, CImage* dest=0); 00051 00052 virtual void report(FILE* file){ fprintf(file,"Complex Gradient Operator\n"); } 00053 }; 00054 00055 00056 #endif