-
Notifications
You must be signed in to change notification settings - Fork 0
/
helper.h
44 lines (38 loc) · 851 Bytes
/
helper.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
#ifndef HELPER_H
#define HELPER_H
#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 Helper
{
public:
Helper();
Helper(Mat &disp,Rect & pos,Mat &Q);
Point3f getD3pos();
Point3f cluster(vector<Point3f>& D3points);
Point3f postProcess(Point3f D3points);
private:
Mat disp;
cv::Rect pos;
Mat Q;
};
#endif // HELPER_H