You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
1.2 KiB
C++
40 lines
1.2 KiB
C++
/*! \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 <opencv2/opencv.hpp>
|
|
#include "opencv/highgui.h"
|
|
#include <QMutex>
|
|
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<QString, IWheelModel*>* modelMap, CLocalWheel*pLocal, double* pMinDis /*= NULL*/, int minDisNum /*= -1*/) const;
|
|
QMap<QString, IWheelModel*> *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_
|
|
|