Subversion Repositories seema-scanner

Rev

Rev 9 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 9 Rev 24
Line 3... Line 3...
3
 SLStudio - Platform for Real-Time  Structured Light
3
 SLStudio - Platform for Real-Time  Structured Light
4
 (c) 2013 -- 2014 Jakob Wilm, DTU, Kgs.Lyngby, Denmark
4
 (c) 2013 -- 2014 Jakob Wilm, DTU, Kgs.Lyngby, Denmark
5
 *
5
 *
6
*/
6
*/
7
 
7
 
8
#ifndef SMTriangulationWorker_H
8
#ifndef SMTriangulator_H
9
#define SMTriangulationWorker_H
9
#define SMTriangulator_H
10
 
10
 
11
#include <QObject>
11
#include <QObject>
12
#include <QTime>
12
#include <QTime>
13
 
13
 
14
#include "SMCalibrationParams.h"
14
#include "SMCalibrationParams.h"
15
#include "Triangulator.h"
15
#include "Triangulator.h"
16
 
16
 
17
#include <pcl/point_cloud.h>
17
#include <pcl/point_cloud.h>
18
#include <pcl/point_types.h>
18
#include <pcl/point_types.h>
19
 
19
 
20
class SMTriangulationWorker : public QObject {
20
class SMTriangulator : public QObject {
21
    Q_OBJECT
21
    Q_OBJECT
22
 
22
 
23
    public:
23
    public:
24
        SMTriangulationWorker(unsigned int _frameWidth, unsigned int _frameHeight) : frameWidth(_frameWidth), frameHeight(_frameHeight), writeToDisk(false){}
24
        SMTriangulator(unsigned int _frameWidth, unsigned int _frameHeight) : frameWidth(_frameWidth), frameHeight(_frameHeight), writeToDisk(false){}
25
        ~SMTriangulationWorker();
25
        ~SMTriangulator();
-
 
26
        void triangulateFromUp(cv::Mat &up, cv::Mat &xyz);
-
 
27
        void triangulateFromVp(cv::Mat &vp, cv::Mat &xyz);
-
 
28
        void triangulateFromUpVp(cv::Mat &up, cv::Mat &vp, cv::Mat &xyz);
-
 
29
        void triangulate(cv::Mat &up, cv::Mat &vp, cv::Mat &mask, cv::Mat &shading, cv::Mat &pointCloud);
-
 
30
 
26
    public slots:
31
    public slots:
27
        void setup();
32
        void setup();
28
        void triangulatePointCloud(cv::Mat up, cv::Mat vp, cv::Mat mask, cv::Mat shading);
33
        void triangulatePointCloud(cv::Mat up, cv::Mat vp, cv::Mat mask, cv::Mat shading);
29
    signals:
34
    signals:
30
        void imshow(const char* windowName, cv::Mat mat, unsigned int x, unsigned int y);
35
        void imshow(const char* windowName, cv::Mat mat, unsigned int x, unsigned int y);
Line 35... Line 40...
35
        unsigned int frameWidth, frameHeight;
40
        unsigned int frameWidth, frameHeight;
36
        bool writeToDisk;
41
        bool writeToDisk;
37
        SMCalibrationParams *calibration;
42
        SMCalibrationParams *calibration;
38
        Triangulator *triangulator;
43
        Triangulator *triangulator;
39
        QTime time;
44
        QTime time;
-
 
45
        SMCalibrationParams calibration;
-
 
46
        cv::Mat determinantTensor;
-
 
47
        cv::Mat uc, vc;
-
 
48
        cv::Mat lensMap1, lensMap2;
40
};
49
};
41
 
50
 
42
#endif
51
#endif