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.
151 lines
2.2 KiB
151 lines
2.2 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 "usbcontrol.h" |
|
#include "usbthread.h" |
|
#include "protocol.h" |
|
|
|
|
|
#include "avgfilter.h" |
|
#include "bila.h" |
|
#include "dde.h" |
|
#include "sagauss.h" |
|
#include "twopoint.h" |
|
#include "clhe.h" |
|
#include "multipoint.h" |
|
|
|
#include "qfluentwidgets" |
|
#include <QMap> |
|
|
|
QT_BEGIN_NAMESPACE |
|
namespace Ui { class MainWindow; } |
|
QT_END_NAMESPACE |
|
|
|
class MainWindow : public QMainWindow |
|
{ |
|
Q_OBJECT |
|
|
|
public: |
|
MainWindow(QWidget *parent = nullptr); |
|
~MainWindow(); |
|
|
|
|
|
|
|
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(); |
|
|
|
|
|
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(); |
|
|
|
private: |
|
void initIns(); |
|
void initUI(); |
|
void initConnect(); |
|
|
|
void hideui(); |
|
private: |
|
Ui::MainWindow *ui; |
|
|
|
menu1* m1; |
|
menu2* m2; |
|
menu3* m3; |
|
menu4* m4; |
|
menu5* m5; |
|
|
|
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; |
|
|
|
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; |
|
|
|
}; |
|
#endif // MAINWINDOW_H
|
|
|