Blame view
VideoFrameProcessor.h
761 Bytes
3f2992b2c
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
#ifndef VIDEOFRAMEPROCESSOR_H #define VIDEOFRAMEPROCESSOR_H #include <QObject> #include <opencv2/core/core.hpp> class VideoFrameProcessor: public QObject { Q_OBJECT public: enum HistoType { Lum, Hs, Hsv }; VideoFrameProcessor(int metrics = 0, QObject *parent = 0); public slots: cv::Mat genVHisto(const cv::Mat &frame, int vBins); cv::Mat genHsHisto(const cv::Mat &frame, int hBins, int sBins); cv::Mat genHsvHisto(const cv::Mat &frame, int hBins, int sBins, int vBins); double distanceFromPrev(const cv::Mat &hist, const cv::Mat &prevHist); void activL1(); void activL2(); void activCorrel(); void activChiSqr(); void activIntersect(); void activHellinger(); private: int m_metrics; qreal m_normFactor; }; #endif |