-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcalibrationmodule.h
76 lines (52 loc) · 1.51 KB
/
calibrationmodule.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
#ifndef CALIBRATIONMODULE_H
#define CALIBRATIONMODULE_H
#include <QObject>
#include <QDebug>
#include <QString>
#include <QLineEdit>
#include <QPushButton>
#include <QLabel>
#include "qlabelwmouse.h"
#include "calibration.h"
#include "autoresize.h"
class calibrationModule : public QObject
{
Q_OBJECT
calibration* cam1Calibration;
QLineEdit* pixelsText;
QLineEdit* unitText;
QLineEdit *cropFactorEdit, *aCal, *bCal, *cCal;
autoResize* cam1Display;
QLabelWMouse* imgDisplay;
QLabel* pixelEURatioLabel;
bool lensCorrectionOn;
float imageResizeCoef;
private:
public:
explicit calibrationModule(calibration *cam1Calibration,
autoResize *cam1Display, QLabelWMouse *imgDisplay,
QLineEdit *cropFactorEdit, QLineEdit *aCal, QLineEdit *bCal, QLineEdit *cCal);
signals:
void scaleFactorLabel(QString);
void cropFactor(QString);
void calA(QString);
void calB(QString);
void calC(QString);
public slots:
void updateDistortionCorrection();
void cameraMakerChanged(int val);
void cameraModelChanged(int val);
void lensMakerChanged(int val);
void lensModelChanged(int val);
void focalLengthChanged(int val);
void cropFactorEdited();
void aCalEdited();
void bCalEdited();
void cCalEdited();
void enableLensCorrection(bool val);
void Mouse_current_pos();
void Mouse_Entered();
void Mouse_Pressed();
void Key_Pressed();
};
#endif // CALIBRATIONMODULE_H