-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathSLTriangulatorWorker.h
46 lines (38 loc) · 1.14 KB
/
SLTriangulatorWorker.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
/*
*
SLStudio - Platform for Real-Time Structured Light
(c) 2013 -- 2014 Jakob Wilm, DTU, Kgs.Lyngby, Denmark
*
*/
#ifndef SLRECONSTRUCTORWORKER_H
#define SLRECONSTRUCTORWORKER_H
#include <QObject>
#include <QTime>
#include "CalibrationData.h"
#include "Triangulator.h"
#include <pcl/point_cloud.h>
#include <pcl/point_types.h>
#include "SLPointCloudWidget.h"
class SLTriangulatorWorker : public QObject {
Q_OBJECT
public:
SLTriangulatorWorker() : frameWidth(0), frameHeight(0), writeToDisk(false){}
~SLTriangulatorWorker();
public slots:
void setup();
void triangulatePointCloud(cv::Mat up, cv::Mat vp, cv::Mat mask, cv::Mat shading);
signals:
void imshow(const char* windowName, cv::Mat mat, unsigned int x, unsigned int y);
void newPointCloud(PointCloudConstPtr pointCloud);
void newDepthImage(cv::Mat im);
void error(QString err);
//void finished();
private:
unsigned int frameWidth, frameHeight;
bool writeToDisk;
CalibrationData *calibration;
Triangulator *triangulator;
QTime time;
bool busy;
};
#endif