00001 #ifndef __Local_Ex2__ 00002 #define __Local_Ex2__ 00003 00004 00005 00032 #include "AnImage.hpp" 00033 #include "RImage.hpp" 00034 #include "FImage.hpp" 00035 00036 #include "AnImageOp.hpp" 00037 00038 class Local_Ex2 : public AnImageOp 00039 { 00040 protected: 00041 00042 int width; 00043 int height; 00044 00045 int wlocal, hlocal; 00046 00047 double minValue; 00048 double maxValue; 00049 00050 public: 00051 00052 Local_Ex2(int wWindow=3, int hWindow=3, double minVal=0.0, double maxVal=0.0); 00053 virtual ~Local_Ex2(){} 00054 00055 virtual void setMinVal(double minVal=0.0){ minValue= minVal; } 00056 virtual void setMaxVal(double maxVal=255.0){ maxValue= maxVal; } 00057 00059 virtual AnImage* filter(AnImage* src, AnImage* dest=0); 00060 virtual AnImage* selectedFilter(AnImage* mask, AnImage* src, AnImage* dest=0); 00061 00063 virtual FImage* ffilter(AnImage* src, FImage* dest=0, bool dmapFlag=false); 00064 virtual RImage* rfilter(AnImage* src, RImage* dest=0, bool dmapFlag=false); 00065 00066 virtual void report(){} 00067 }; 00068 00069 #endif