00001 #ifndef __ISimpleExtensionOp__ 00002 #define __ISimpleExtensionOp__ 00003 00004 00005 00026 #include <stdio.h> 00027 00028 #include "ISimpleMorphologicalOp.hpp" 00029 00030 #include "ISimpleDilatationOp.hpp" 00031 00032 class ISimpleExtensionOp : public ISimpleMorphologicalOp 00033 { 00034 protected: 00035 00036 ISimpleDilatationOp dilatation; 00037 00038 public: 00039 00040 ISimpleExtensionOp(int n, int greyFg):dilatation(n,greyFg){} 00041 ISimpleExtensionOp(int n, int red, int green, int blue) 00042 :dilatation(n, red, green, blue){} 00043 virtual ~ISimpleExtensionOp(){} 00044 00045 virtual void setIterations(int iter){dilatation.setIterations(iter); } 00046 00047 virtual void setSource(AnImage* src){dilatation.setSource(src);} 00048 00049 virtual AnImage* filter(AnImage* src, AnImage* dest=0); 00050 00051 virtual void report(FILE* file){} 00052 }; 00053 00054 00055 #endif