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