00001 #ifndef __IFVanVieltLaplacianIirOp__ 00002 #define __IFVanVieltLaplacianIirOp__ 00003 00027 #include <stdio.h> 00028 00029 #include "IFMultiImageOp.hpp" 00030 00031 #include "Float3CImage.hpp" 00032 00033 00034 class IFVanVieltLaplacianIirOp: public IFMultiImageOp 00035 { 00036 private: 00037 00038 int direction; // 0= norme2, 1=x, 2=y 00039 00040 double sigma; 00041 00042 protected: 00043 00044 // mono channel 00045 00046 virtual AnImage* greyFilter(AnImage* src, AnImage* dest=0); 00047 virtual AnImage* greySelectedFilter(AnImage* mask, AnImage* src, AnImage* dest=0); 00048 00049 // separate color channels 00050 00051 virtual Float3CImage* scolorFilter(Float3CImage* src, Float3CImage* dest=0); 00052 virtual Float3CImage* scolorSelectedFilter(AnImage* mask, Float3CImage* src, Float3CImage* dest=0); 00053 00054 00055 // separate color channels 00056 00057 virtual Float3CImage* fcolorFilter(Float3CImage* src, Float3CImage* dest=0); 00058 virtual Float3CImage* fcolorSelectedFilter(AnImage* mask, Float3CImage* src, Float3CImage* dest=0); 00059 00060 public: 00061 00062 IFVanVieltLaplacianIirOp(int dir=0, double asigma=1.0, bool colorFlag= false):IFMultiImageOp(1,colorFlag) 00063 {direction= dir; sigma= asigma;} 00064 virtual ~IFVanVieltLaplacianIirOp(){} 00065 00066 virtual void setSigma(double asigma){ sigma= asigma;} 00067 virtual void setOrientation(int dir){ direction= dir;} 00068 00069 00070 virtual void report(FILE* file){} 00071 }; 00072 00073 00074 #endif