-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathphoto_frame.h
61 lines (44 loc) · 1.04 KB
/
photo_frame.h
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#ifndef PHOTO_FRAME_H
#define PHOTO_FRAME_H
#include <QDialog>
#include <opencv2/opencv.hpp> //all in one
#include <QString>
#include <QFileDialog>
#include <QPixmap>
#include <Qvector>
#include <QRgb>
#include <QPushButton>
#include <QVBoxLayout>
#include <QLabel>
#include <QMouseEvent>
#include <QMessageBox>
using namespace cv;
extern Mat image[];
extern int currentstep;
namespace Ui {
class photo_frame;
}
class photo_frame : public QDialog
{
Q_OBJECT
public:
explicit photo_frame(QWidget *parent = 0);
~photo_frame();
void frame_load(Mat);
void frame_update(Mat);
void mouseMoveEvent(QMouseEvent *event);
void mousePressEvent(QMouseEvent *event);
void mouseReleaseEvent(QMouseEvent *event);
public slots:
QImage Mat2QImage(Mat src);
private slots:
void on_zoomin_btn_clicked();
void on_zoomout_btn_clicked();
void on_fit_btn_clicked();
void on_ori_btn_clicked();
private:
Ui::photo_frame *ui;
QPixmap Pixmap;
//QLabel *Photo_label= new QLabel("");
};
#endif // PHOTO_FRAME_H