Subversion Repositories seema-scanner

Rev

Rev 24 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
9 jakw 1
/*
2
 *
3
 SLStudio - Platform for Real-Time  Structured Light
4
 (c) 2013 -- 2014 Jakob Wilm, DTU, Kgs.Lyngby, Denmark
5
 *
6
*/
7
 
8
#ifndef SMTriangulationWorker_H
9
#define SMTriangulationWorker_H
10
 
11
#include <QObject>
12
#include <QTime>
13
 
14
#include "SMCalibrationParams.h"
15
#include "Triangulator.h"
16
 
17
#include <pcl/point_cloud.h>
18
#include <pcl/point_types.h>
19
 
20
class SMTriangulationWorker : public QObject {
21
    Q_OBJECT
22
 
23
    public:
24
        SMTriangulationWorker(unsigned int _frameWidth, unsigned int _frameHeight) : frameWidth(_frameWidth), frameHeight(_frameHeight), writeToDisk(false){}
25
        ~SMTriangulationWorker();
26
    public slots:
27
        void setup();
28
        void triangulatePointCloud(cv::Mat up, cv::Mat vp, cv::Mat mask, cv::Mat shading);
29
    signals:
30
        void imshow(const char* windowName, cv::Mat mat, unsigned int x, unsigned int y);
31
        void newPointCloud(pcl::PointCloud<pcl::PointXYZRGB>::Ptr pointCloud);
32
        void error(QString err);
33
        //void finished();
34
    private:
35
        unsigned int frameWidth, frameHeight;
36
        bool writeToDisk;
37
        SMCalibrationParams *calibration;
38
        Triangulator *triangulator;
39
        QTime time;
40
};
41
 
42
#endif