-
Notifications
You must be signed in to change notification settings - Fork 0
/
mainwindow.h
63 lines (47 loc) · 1.23 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
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
// Defines
#define FPS 30
// OpenCV main image processing includes //
#include <opencv2/core/core.hpp>
#include <opencv2/imgproc.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>
// OpenCV label to Mat additional function includes //
#include "Qt-OpenCV-AdditionalLibrary.h"
// General QT includes:
#include <QTimer>
#include <QString>
// General functions
#include "settingshandler.h"
#include "algorithms.h"
namespace Ui
{
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = nullptr);
~MainWindow();
private slots:
void captureImage();
void on_contrastSpinBox_valueChanged(int arg1);
void on_brightnesspinBox_valueChanged(int arg1);
void on_saturationSpinBox_valueChanged(int arg1);
void on_zoomSpinBox_valueChanged(int arg1);
void on_focusButton_pressed();
void on_focusSpinBox_valueChanged(int arg1);
private:
Ui::MainWindow *ui;
// Variables //
QTimer videoFPSTimer;
Settings projectSettings;
//_- Live Feed
cv::Mat currentFrameMat;
QPixmap currentFramePixmap;
// Functions //
};
#endif // MAINWINDOW_H