Subversion Repositories seema-scanner

Rev

Rev 9 | Rev 23 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 9 Rev 20
1
/*
1
/*
2
 *
2
 *
3
 MVTracker - Multi View Tracking for Pose Estimation
3
 MVTracker - Multi View Tracking for Pose Estimation
4
 (c) 2014 Jakob Wilm, DTU, Kgs.Lyngby, Denmark
4
 (c) 2014 Jakob Wilm, DTU, Kgs.Lyngby, Denmark
5
 *
5
 *
6
*/
6
*/
7
 
7
 
8
#ifndef SMCaptureWorker_H
8
#ifndef SMCaptureWorker_H
9
#define SMCaptureWorker_H
9
#define SMCaptureWorker_H
10
 
10
 
11
#include <QObject>
11
#include <QObject>
12
 
12
 
13
#include <opencv2/opencv.hpp>
13
#include <opencv2/opencv.hpp>
14
#include "Camera.h"
14
#include "Camera.h"
15
 
15
 
16
enum tAquisition{ aquisitionContinuous, aquisitionSingle };
16
enum tAquisition{ aquisitionContinuous, aquisitionSingle };
17
enum tTriggerMode{ triggerModeHardware, triggerModeSoftware };
-
 
18
 
17
 
19
class SMCaptureWorker : public QObject{
18
class SMCaptureWorker : public QObject{
20
    Q_OBJECT
19
    Q_OBJECT
21
 
20
 
22
    public:
21
    public:
23
        SMCaptureWorker(): isWorking(false){}
22
        SMCaptureWorker(): isWorking(false){}
24
        ~SMCaptureWorker();
23
        ~SMCaptureWorker();
25
    public slots:
24
    public slots:
26
        void setup();
25
        void setup();
27
        void doWork();
26
        void doWork();
28
        void stopWorking();
27
        void stopWorking();
29
    signals:
28
    signals:
30
        void newFrame(unsigned int camID, cv::Mat frame);
29
        void newFrame(unsigned int camID, cv::Mat frame);
31
        void newFrameSet(std::vector<cv::Mat> frameSet);
30
        void newFrameSet(std::vector<cv::Mat> frameSet);
32
        void finished();
31
        void finished();
33
    private:
32
    private:
34
        bool isWorking;
33
        bool isWorking;
35
 
34
 
36
        Camera* camera0;
35
        Camera* camera0;
37
        Camera* camera1;
36
        Camera* camera1;
38
        tTriggerMode triggerMode;
-
 
39
 
37
 
40
};
38
};
41
 
39
 
42
#endif // SMCaptureWorker_H
40
#endif // SMCaptureWorker_H
43
 
41