00001 #ifndef __IPixelLabelMappingOp__ 00002 #define __IPixelLabelMappingOp__ 00003 00004 00005 00023 #include <stdio.h> 00024 00025 #include "AnImageOp.hpp" 00026 00027 #include "IndependentBayesClassifier.hpp" 00028 00029 00030 class IPixelLabelMappingOp : public AnImageOp 00031 { 00032 public: 00033 00034 const static int lookupTable[256][3]; 00035 00036 private: 00037 00038 IndependentBayesClassifier* classifier; 00039 00040 bool sourceFlag; // source is bg 00041 00042 public: 00043 00044 IPixelLabelMappingOp(IndependentBayesClassifier* aclassifier, bool srcFlag=false) 00045 {classifier= aclassifier; sourceFlag= srcFlag;} 00046 virtual ~IPixelLabelMappingOp(){} 00047 00048 virtual AnImage* filter(AnImage* src, AnImage* dest=0); 00049 00050 virtual void report(FILE* file){} 00051 }; 00052 00053 00054 #endif