-
Notifications
You must be signed in to change notification settings - Fork 0
/
stereocamera.h
64 lines (48 loc) · 1.2 KB
/
stereocamera.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
#ifndef STEREOCAMERA_H
#define STEREOCAMERA_H
#include "DUOLib.h"
#include "Dense3DMT.h"
#include <opencv2/opencv.hpp>
#include <stdexcept>
#include <QDebug>
#include "distance_point.h"
class StereoCamera
{
private:
DUOInstance duo;
Dense3DMTInstance dense;
unsigned width;
unsigned height;
unsigned fps;
std::string license;
DUOResolutionInfo resolutionInfo;
Dense3DParams params;
public:
StereoCamera(unsigned initWidth, unsigned initHeight, unsigned initFps, const std::string initLicense);
~StereoCamera();
void open();
void stop();
void setParams();
Dense3DParams getParams();
void start(Dense3DFrameCallback callback, void *userData){
Dense3DStart(dense, callback, userData);
}
DUOInstance getCamera(){
return duo;
}
Dense3DMTInstance getDense(){
return dense;
}
void setExposure(double value);
double getExposure();
void setVerticalFlip(bool isSet);
bool getVerticalFlip();
void setUndistort(bool isSet);
bool getUndistort();
void setGain(double value);
double getGain();
void setLed(double value);
double getLed();
void printInfo();
};
#endif // STEREOCAMERA_H