-
Notifications
You must be signed in to change notification settings - Fork 4
/
configdata.h
73 lines (70 loc) · 1.92 KB
/
configdata.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
65
66
67
68
69
70
71
72
73
#ifndef CONFIGDATA_H
#define CONFIGDATA_H
#include <string>
#include <iostream>
#include <math.h>
#define PI 3.1415926
using namespace std;
class ConfigData
{
public:
double cameraSensorWidth;
double cameraSensorHeight;
double iCx;
double iCy;
double dCx;
double dCy;
double ratio;
double imageWidth;
double imageHeight;
double para0;
double para1;
double para2;
double para3;
double para4;
double para5;
double calibrationRatio;
string cameraName;
int alphaToRho_Table[1800]; // degree /10
int rhoToAlpha_Table[3600]; // pixel
ConfigData();
void setCameraSensorWidth(double cameraSensorWidth);
void setCameraSensorHeight(double cameraSensorHieght);
void setIcx(double iCx);
void setIcy(double iCy);
void setDcx(double dCx);
void setDcy(double dCy);
void setRatio(double ratio);
void setImageWidth(double imageWidth);
void setImageHeight(double imageHeight);
void setParameter0(double parameter0);
void setParameter1(double parameter1);
void setParameter2(double parameter2);
void setParameter3(double parameter3);
void setParameter4(double parameter4);
void setParameter5(double parameter5);
void setCalibrationRatio(double calibrationRatio);
void setCameraName(string cameraName);
double getCameraSensorWidth();
double getCameraSensorHeight();
double getIcx();
double getIcy();
ConfigData *getcd();
double getDcx();
double getDcy();
double getRatio();
double getImageWidth();
double getImageHeight();
double getParameter0();
double getParameter1();
double getParameter2();
double getParameter3();
double getParameter4();
double getParameter5();
double getCalibrationRatio();
string getCameraName();
void initAlphaRho_Table();
int getRhoFromAlpha( double alpha );
double getAlphaFromRho( int rho );
};
#endif // CONFIGDATA_H