-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcamera.h
63 lines (52 loc) · 1.18 KB
/
camera.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
#ifndef CAMERA_H
#define CAMERA_H
#include <QMainWindow>
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include "opencv2/calib3d/calib3d.hpp"
#include "opencv2/imgproc.hpp"
#include "opencv2/imgcodecs.hpp"
#include "opencv2/highgui.hpp"
#include "opencv2/core/utility.hpp"
#include <algorithm>
#include <iomanip>
#include <iosfwd>
#include <memory>
#include <string>
#include <utility>
#include <vector>
#include <stdio.h>
#include<iostream>
#include<sstream>
#include<fstream>
#include<string>
using namespace cv;
using namespace std;
class Camera : public QMainWindow
{
Q_OBJECT
public:
explicit Camera(QWidget *parent = 0);
Camera(const string & intrinsic_filename,const string &extrinsic_filename);
vector<Mat> RectifyImg(Mat &src);
Mat getMatQ();
private:
// param
const int imageWidth=640;
const int imageHeight=480;
Mat cameraMatrixL;
Mat distCoeffL;
Mat cameraMatrixR;
Mat distCoeffR;
Mat R;
Mat T;
Mat Q;
Mat mapLx;
Mat mapLy;
Mat mapRx;
Mat mapRy;
signals:
public slots:
};
#endif // CAMERA_H