00001 #ifndef __SelectiveValueOp__ 00002 #define __SelectiveValueOp__ 00003 00004 00005 00024 #include "AnImageOp.hpp" 00025 00026 00027 class SelectiveValueOp : public AnImageOp 00028 { 00029 private: 00030 00031 int r,g,b; 00032 00033 int newValue; 00034 00035 public: 00036 SelectiveValueOp(int grey, int newValue=255); 00037 SelectiveValueOp(int red, int green, int blue, int newValue=255); 00038 virtual ~SelectiveValueOp(){} 00039 00040 00041 00042 AnImage* filter(AnImage* src, AnImage* dest); 00043 00044 virtual void report(FILE* file){} 00045 00046 }; 00047 00048 #endif