-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathSLCalibrationDialog.h
More file actions
57 lines (50 loc) · 1.46 KB
/
SLCalibrationDialog.h
File metadata and controls
57 lines (50 loc) · 1.46 KB
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
/*
*
SLStudio - Platform for Real-Time Structured Light
(c) 2013 -- 2014 Jakob Wilm, DTU, Kgs.Lyngby, Denmark
*
*/
#ifndef SLCALIBRATAIONDIALOG_H
#define SLCALIBRATAIONDIALOG_H
#include <QDialog>
#include <QModelIndex>
#include <QListWidgetItem>
#include "Camera.h"
#include "Projector.h"
#include "Calibrator.h"
#include "SLStudio.h"
namespace Ui {
class SLCalibrationDialog;
}
class SLCalibrationDialog : public QDialog {
Q_OBJECT
public:
explicit SLCalibrationDialog(SLStudio *parent = 0);
~SLCalibrationDialog();
void timerEvent(QTimerEvent *event);
void closeEvent(QCloseEvent *);
private slots:
void on_snapButton_clicked();
void on_calibrateButton_clicked();
void on_listWidget_itemSelectionChanged();
void on_saveButton_clicked();
void onNewSequenceResult(cv::Mat img, unsigned int idx, bool success);
signals:
void newCalibrationSaved(CalibrationData _calib);
private:
Ui::SLCalibrationDialog *ui;
Camera *camera;
Projector *projector;
Calibrator *calibrator;
CalibrationData calib;
int liveViewTimer;
vector< vector<cv::Mat> > frameSeqs;
vector<unsigned int> activeFrameSeqs;
bool reviewMode;
unsigned int timerInterval; //ms
unsigned int delay; //ms
bool diamondPattern;
unsigned int screenCols;
unsigned int screenRows;
};
#endif // SLCALIBRATAIONDIALOG_H