-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmainwindow.h
99 lines (63 loc) · 2 KB
/
mainwindow.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QFileDialog>
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <opencv2/video/video.hpp>
#include <QTimer>
using namespace cv;
using namespace std;
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
Mat getcurrent_image();
private slots:
void on_pushButton_clicked();
void flip_h();
void on_actionSalt_pepper_triggered();
void on_save_imageButton_3_clicked();
void on_actionReduce_color_triggered();
void on_actionImage_gray_triggered();
void on_actionSharpen_triggered();
void on_actionChannel_split_B_triggered();
void on_actionChannel_split_G_triggered();
void on_actionCahnnel_split_R_triggered();
void on_actionColor_detection_triggered();
void on_actionImage_histogram_triggered();
void on_actionThreshold_image_triggered();
void on_actionHorizontal_flip_triggered();
void on_actionLookup_inverse_triggered();
void on_actionStretch_histogram_triggered();
void on_actionHistogram_equalization_triggered();
static void MouseCallback(int mouseEvent,int x,int y,int flags,void* param);
void on_actionRegion_extration_triggered();
void on_pushButton_2_clicked();
void on_actionMorphological_image_triggered();
void on_actionWatershed_segment_triggered();
void on_actionEdge_detection_triggered();
void on_actionHarris_corner_triggered();
void on_actionImage_match_triggered();
void on_open_video_clicked();
void updateImage();
void on_actionOpen_forward_camera_triggered();
void on_actionOpen_video_triggered();
private:
Ui::MainWindow *ui;
Mat image;
QImage img;
QString filename;
QTimer theTimer;
Mat srcImage;
VideoCapture videoCap;
protected:
void paintEvent(QPaintEvent *e);
};
#endif // MAINWINDOW_H