00001 #ifndef __IPixel2ClassLabellingOp__ 00002 #define __IPixel2ClassLabellingOp__ 00003 00004 00005 00025 #include "AnImageOp.hpp" 00026 #include "BiPartitionBayesClassifier.hpp" 00027 00028 class IPixel2ClassLabellingOp : public AnImageOp 00029 { 00030 private: 00031 00032 BiPartitionBayesClassifier* classifier; 00033 00034 int foregroundLabel; 00035 int newValue; 00036 00037 public: 00038 IPixel2ClassLabellingOp(BiPartitionBayesClassifier* aclassifier, int foreground=1, int newValue=255); 00039 virtual ~IPixel2ClassLabellingOp(){} 00040 00041 AnImage* filter(AnImage* src, AnImage* dest=0); 00042 00043 virtual void report(FILE* file){} 00044 }; 00045 00046 #endif