xuepengqiang
2019-12-26 025429cbd5dd3dc6f130b8de07664665b0c4b55a
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
#include "camera_config.h"
 
 
 
CameraInfo::CameraInfo()
{
    this->bottom_distance = 295;
    int p1x = 587, p1y = 396;
    int p2x = 309, p2y = 402;
    int p3x = 378, p3y = 190;
    int p4x = 522, p4y = 181;
 
 
    vector<int> vec1;
    vector<int> vec2;
    vector<int> vec3;
    vector<int> vec4;
    vec1.push_back(p1x);
    vec1.push_back(p1y);
    vec2.push_back(p2x);
    vec2.push_back(p2y);
    vec3.push_back(p3x);
    vec3.push_back(p3y);
    vec4.push_back(p4x);
    vec4.push_back(p4y);
 
    this->vec_ray.push_back(vec1);
    this->vec_ray.push_back(vec2);
    this->vec_ray.push_back(vec3);
    this->vec_ray.push_back(vec4);
 
}
 
vector<vector<int>> CameraInfo::get_vec_ray()
{
    return this->vec_ray;
}
 
int get_BASE_DISTANCE()
{
    return BASE_LENGTH;
}
int get_BASE_LENGTH()
{
    return BASE_DISTANCE;
}
int get_ANGLE()
{
    return ANGLE;
}