You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
231 lines
3.6 KiB
231 lines
3.6 KiB
#ifndef MAINWINDOW_H |
|
#define MAINWINDOW_H |
|
|
|
#include <QMainWindow> |
|
#include <QFile> |
|
#include <QLabel> |
|
#include "menu1.h" |
|
#include "menu2.h" |
|
#include "menu3.h" |
|
#include "menu4.h" |
|
#include "menu5.h" |
|
#include "menu5_1.h" |
|
#include "menu6.h" |
|
#include "menu7.h" |
|
#include "passwd.h" |
|
#include "devicelist.h" |
|
|
|
#include "usbcontrol.h" |
|
#include "usbthread.h" |
|
#include "protocol.h" |
|
#include "docthread.h" |
|
|
|
#include "avgfilter.h" |
|
#include "bila.h" |
|
#include "dde.h" |
|
#include "sagauss.h" |
|
#include "twopoint.h" |
|
#include "clhe.h" |
|
#include "multipoint.h" |
|
#include "autoflash.h" |
|
|
|
|
|
#include "qfluentwidgets" |
|
#include <QMap> |
|
#include <QDir> |
|
|
|
QT_BEGIN_NAMESPACE |
|
namespace Ui { class MainWindow; } |
|
QT_END_NAMESPACE |
|
|
|
class MainWindow : public QMainWindow |
|
{ |
|
Q_OBJECT |
|
|
|
public: |
|
MainWindow(QWidget *parent = nullptr); |
|
~MainWindow(); |
|
|
|
|
|
void drawbackground(); |
|
public slots: |
|
void on_pushButton_clicked(); |
|
|
|
void on_pushButton_2_clicked(); |
|
|
|
void on_pushButton_3_clicked(); |
|
|
|
|
|
|
|
|
|
|
|
void slotShowImage(cv::Mat); |
|
|
|
|
|
void slotlogtext(QString); |
|
void slotlogstatus(); |
|
|
|
void slotsavelow(QString id); |
|
void slotsavehigh(QString id); |
|
|
|
protected: |
|
bool eventFilter(QObject* obj,QEvent *e) override; |
|
void keyPressEvent(QKeyEvent* ev) override; |
|
|
|
private slots: |
|
void on_spinBox_valueChanged(int arg1); |
|
|
|
void on_spinBox_2_valueChanged(int arg1); |
|
|
|
|
|
|
|
void on_pushButton_4_clicked(); |
|
|
|
void on_pushButton_5_clicked(); |
|
|
|
void on_pushButton_6_clicked(); |
|
|
|
void on_pushButton_7_clicked(); |
|
|
|
void on_pushButton_8_clicked(); |
|
|
|
void on_pushButton_9_clicked(); |
|
|
|
void on_pushButton_10_clicked(); |
|
|
|
void on_comboBox_currentIndexChanged(int index); |
|
|
|
void on_spinBox_3_valueChanged(int arg1); |
|
|
|
void on_pushButton_11_clicked(); |
|
|
|
void on_pushButton_12_clicked(); |
|
|
|
void on_pushButton_13_clicked(); |
|
|
|
void on_pushButton_14_clicked(); |
|
|
|
void on_pushButton_15_clicked(); |
|
|
|
void slotnoise(cv::Mat); |
|
|
|
|
|
private: |
|
void initIns(); |
|
void initUI(); |
|
void initConnect(); |
|
|
|
void hideui(); |
|
private: |
|
Ui::MainWindow *ui; |
|
|
|
menu1* m1; |
|
menu2* m2; |
|
menu3* m3; |
|
menu4* m4; |
|
menu5* m5; |
|
menu5_1* m5_1; |
|
|
|
QLabel* lfps ; |
|
HyperlinkLabel* lpath; |
|
|
|
avgfilter* m_avg; |
|
bila* m_bila; |
|
dde* m_dde; |
|
sagauss* m_sagauss; |
|
twoPoint* m_tp; |
|
clhe* m_clhe; |
|
MultiPoint* m_mp; |
|
|
|
usbcontrol* ucontrol; |
|
usbthread* usb; |
|
|
|
autoFlash* m_af; |
|
|
|
int type; |
|
int rows; |
|
int cols; |
|
|
|
QString path; |
|
|
|
bool flip0; |
|
bool flip1; |
|
bool turnl; |
|
bool turnf; |
|
bool turnr; |
|
bool b_stat;// |
|
|
|
|
|
bool b_fullscreen; |
|
int imageY; |
|
int imageX; |
|
|
|
|
|
bool shotimg; |
|
bool shotbin; |
|
bool savevideo; |
|
bool savebin; |
|
bool savesbin; |
|
int sbinnum; |
|
|
|
int colortype; |
|
cv::VideoWriter* writer; |
|
QFile* purefile; |
|
QFile* spurefile; |
|
|
|
int fps; |
|
int fpscount; |
|
|
|
|
|
bool b_con; |
|
double d_con; |
|
double d_con_bright; |
|
|
|
|
|
cv::Mat lastimage; |
|
|
|
|
|
|
|
bool saveeeee; |
|
QMap<double , uint*> birghts; |
|
|
|
int mpnum; |
|
int mpidx; |
|
double mpsum; |
|
|
|
bool b_temp; |
|
bool b_temp_save; |
|
double d_temp; |
|
QMap<double, double> m_temp; |
|
|
|
double d_it;// 积分时间 |
|
QString deviceid; |
|
|
|
|
|
cv::Mat bpimg;//盲元点 |
|
bool b_bp;//盲元替换 |
|
|
|
bool b_af; |
|
|
|
QFile* tf; |
|
bool savelowtemp; |
|
bool savehightemp; |
|
int lowcount; |
|
int highcount; |
|
QString lowfilename; |
|
QString highfilename; |
|
docthread* dthread ;//= new docthread; |
|
|
|
|
|
|
|
bool b_noise; |
|
int n_noise; |
|
QVector<cv::Mat> v_noise; |
|
|
|
bool b_testmode; |
|
QPushButton* ptest; |
|
|
|
QPixmap curimage; |
|
double imagerate; |
|
}; |
|
#endif // MAINWINDOW_H
|
|
|