-
Notifications
You must be signed in to change notification settings - Fork 54
/
mainwindow.h
121 lines (81 loc) · 2.77 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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QListWidget>
#include <QPixmap>
#include <QList>
#include "imagelook.h"
#include "histogtamdlg.h"
#include "showhistogtamresult.h"
#include <math.h>
#include <QWheelEvent>
#include <opencv/cv.h>
#include <opencv/highgui.h>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <opencv2/core/core.hpp>
using namespace cv;
//class ImageLook;
class MyImageList;
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
void closeEvent(QCloseEvent *event);
MyImageList *myimagelists;
HistogtamDlg *his_dlg;
ShowHistogtamResult *show_his_image;
// QString lineEditStr1;
// QString lineEditStr2;
// int lineInt1;
// int lineInt2;
signals:
void sendDataMW(Mat,QString,QString,int,int); //给图元窗口发送信号,将Mat,图像变量名称,操作名称,行号,标记号发送给图元窗口
void sendAction(); //给图元窗口发送信号,让其刷新数据
void sendStr(int,QString); //程序流程窗口,将操作函数文本发送给程序流程窗口
// void sendDataToHistogtamdlg(QList<Mat>,QList<QString>,int);
void sendDataToHistogtamdlg(QList<QString>,QList<Mat>);
void sendHistogtamResult(Mat);
void sendHistogtam_Mat(Mat);
private slots:
void mesgbox();
void receiveDataList(Mat imageData,QString textData,QString controlName);
void receiveHistogtamResult(Mat,int,int);
void receiveDataHd(Mat,QString,QString,int,int);//灰度阈值分割处理结果
void receiveStrHd(int,QString);//灰度阈值分割处理结果code
// void receiveDlg(QString,QString,int,int);
void on_ac_openfile_triggered();
void on_ac_savefile_triggered();
// void on_ac_horizontal_triggered();
// void on_ac_vertial_triggered();
void on_ac_imageOriginal_triggered();
void on_ac_codeFlow_triggered();
void on_ac_order_triggered();
void on_ac_stacking_triggered();
void on_ac_closeAll_triggered();
void on_ac_nextOne_triggered();
void on_ac_preOne_triggered();
void on_ac_gray_triggered();
void on_ac_h_v_triggered();
void on_ac_erode_triggered();
void on_ac_dilate_triggered();
void on_ac_programme_triggered();
void on_ac_histogram_triggered();
void on_ac_demo_triggered();
private:
Ui::MainWindow *ui;
Mat pImgMat;
QList<QString> listVariableMainWid;//对应图像变量名字
QList<Mat> listMatMainWid;//图像数据
QList<QString> listNameMainWid;//图像操作名
QList<QString> listCodeMainWid;//code流程
bool saveOffOn;
QString fileExist;
QString filePathExist;
};
#endif // MAINWINDOW_H