/*! \file AlgorithmFluorescence.h \brief A brief file description. A more elaborated file description. Created: 2016/04/05, author: bang.jin. */ #ifndef __AlgorithmFluorescence_h_ #define __AlgorithmFluorescence_h_ #include "iAlgorithm.h" #include "qmap.h" #include #include "opencv/highgui.h" #include class IWheelModel; class ImageCompareModel; class CLocalWheel; class CAlgorithmFluorescence : public IAlgorithm { public: CAlgorithmFluorescence(void); virtual ~CAlgorithmFluorescence(void); //void imageSegementation(const cv::Mat &srcImage); //static cv::BackgroundSubtractorMOG bgSubtractor; private: virtual int IImageAnalysis(class IImageObject* pImgObj, TP_ALGORITHM_OPTION* pOpt, class IDetectorEngine* pDE); QString bestMatch(const QMap* modelMap, CLocalWheel*pLocal, double* pMinDis /*= NULL*/, int minDisNum /*= -1*/) const; QMap *getWheelMapPtr(class IImageObject *pObj); QString getPath(class IImageObject *pObj); cv::Mat getImage(class IImageObject *pObj); cv::Mat getBackGroundImage(class IImageObject *pObj, bool bReLoad = false); QStringList *getDefectListPtr(class IImageObject *pImgObj); QMutex mutex; }; #endif // __AlgorithmFluorescence_h_