Subversion Repositories seema-scanner

Rev

Rev 100 | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 100 Rev 103
1
#ifndef SMVideoWidget_H
1
#ifndef SMVideoWidget_H
2
#define SMVideoWidget_H
2
#define SMVideoWidget_H
3
 
3
 
4
#include <QLabel>
4
#include <QLabel>
5
#include <QResizeEvent>
5
#include <QResizeEvent>
6
 
6
 
7
#include <opencv2/opencv.hpp>
7
#include <opencv2/opencv.hpp>
8
 
8
 
9
class SMVideoWidget : public QLabel{
9
class SMVideoWidget : public QLabel{
10
 
10
 
11
    Q_OBJECT
11
    Q_OBJECT
12
    public:
12
    public:
13
        explicit SMVideoWidget(QWidget *parent = 0);
13
        explicit SMVideoWidget(QWidget *parent = 0);
14
    public slots:
14
    public slots:
15
        void showImageCV(cv::Mat image);
15
        void showImageCV(cv::Mat image);
16
        void showImageCV(std::vector<unsigned char> compressedImage);
-
 
17
        void resizeEvent(QResizeEvent *event);
16
        void resizeEvent(QResizeEvent *event);
18
    private:
17
    private:
19
        QPixmap pixmap;
18
        QPixmap pixmap;
20
};
19
};
21
 
20
 
22
#endif // SMVideoWidget_H
21
#endif // SMVideoWidget_H
23
 
22