-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathSLStudio.h
85 lines (63 loc) · 2.04 KB
/
SLStudio.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
77
78
79
80
81
82
83
84
85
/*
*
SLStudio - Platform for Real-Time Structured Light
(c) 2013 -- 2014 Jakob Wilm, DTU, Kgs.Lyngby, Denmark
*
*/
#ifndef SLSTUDIO_H
#define SLSTUDIO_H
#include <QMainWindow>
#include <QTimer>
#include <QPointer>
#include <QSettings>
#include "SLScanWorker.h"
#include "SLTrackerWorker.h"
#include "SLPointCloudWidget.h"
#include "SLVideoDialog.h"
#include "SLTrackerDialog.h"
namespace Ui {
class SLStudio;
}
class SLStudio : public QMainWindow {
Q_OBJECT
public:
explicit SLStudio(QWidget *parent = 0);
void closeEvent(QCloseEvent *event);
~SLStudio();
private slots:
void onActionStart();
void onActionStop();
void onScanWorkerFinished();
void onActionCalibration();
void onActionLoadCalibration();
void onActionPreferences();
void onActionExportCalibration();
void updateDisplayRate();
void receiveNewPointCloud(PointCloudConstPtr pointCloud);
void imshow(const char* windowName, cv::Mat im, unsigned int x, unsigned int y);
void hist(const char* windowName, cv::Mat im, unsigned int x, unsigned int y);
void onShowHistogram(cv::Mat im);
void onShowShading(cv::Mat im);
void onShowCameraFrames(std::vector<cv::Mat> frameSeq);
void onShowDecoderUp(cv::Mat im);
void onShowDecoderVp(cv::Mat im);
void onShowDepth(cv::Mat im);
void onActionAbout();
signals:
void newPointCloud(PointCloudConstPtr pointCloud);
private:
Ui::SLStudio *ui;
std::vector<unsigned int> displayIntervals;
SLScanWorker *scanWorker;
QThread *scanWorkerThread;
SLDecoderWorker *decoderWorker;
QThread *decoderThread;
SLTriangulatorWorker *triangulatorWorker;
QThread *triangulatorThread;
QTime *time;
QSettings *settings;
SLVideoDialog *histogramDialog, *shadingDialog, *cameraFramesDialog, *decoderUpDialog, *decoderVpDialog, *depthDialog;
SLTrackerDialog *trackerDialog;
public:
};
#endif