licornea_tools
kinect_internal_parameters.h
Go to the documentation of this file.
1 #ifndef LICORNEA_KINECT_INTERNAL_PARAMETERS_H_
2 #define LICORNEA_KINECT_INTERNAL_PARAMETERS_H_
3 
4 #include <string>
5 #include "../../lib/common.h"
6 #include "../../lib/json.h"
7 
8 #define KINECT_INTERNAL_PARAMETERS_COLOR_ELEMENTS \
9  COLOR_PARAM(fx); \
10  COLOR_PARAM(fy); \
11  COLOR_PARAM(cx); \
12  COLOR_PARAM(cy); \
13  COLOR_PARAM(shift_d); \
14  COLOR_PARAM(shift_m); \
15  COLOR_PARAM(mx_x3y0); \
16  COLOR_PARAM(mx_x0y3); \
17  COLOR_PARAM(mx_x2y1); \
18  COLOR_PARAM(mx_x1y2); \
19  COLOR_PARAM(mx_x2y0); \
20  COLOR_PARAM(mx_x0y2); \
21  COLOR_PARAM(mx_x1y1); \
22  COLOR_PARAM(mx_x1y0); \
23  COLOR_PARAM(mx_x0y1); \
24  COLOR_PARAM(mx_x0y0); \
25  COLOR_PARAM(my_x3y0); \
26  COLOR_PARAM(my_x0y3); \
27  COLOR_PARAM(my_x2y1); \
28  COLOR_PARAM(my_x1y2); \
29  COLOR_PARAM(my_x2y0); \
30  COLOR_PARAM(my_x0y2); \
31  COLOR_PARAM(my_x1y1); \
32  COLOR_PARAM(my_x1y0); \
33  COLOR_PARAM(my_x0y1); \
34  COLOR_PARAM(my_x0y0);
35 
36 #define KINECT_INTERNAL_PARAMETERS_IR_ELEMENTS \
37  IR_PARAM(fx); \
38  IR_PARAM(fy); \
39  IR_PARAM(cx); \
40  IR_PARAM(cy); \
41  IR_PARAM(k1); \
42  IR_PARAM(k2); \
43  IR_PARAM(k3); \
44  IR_PARAM(p1); \
45  IR_PARAM(p2);
46 
47 
48 
49 namespace tlz {
50 
51 #define COLOR_PARAM(__field__) real __field__ = 0.0;
52 #define IR_PARAM(__field__) real __field__ = 0.0;
53 
55  struct {
57  } color;
58  struct {
60  } ir;
61 };
62 
63 #undef COLOR_PARAM
64 #undef IR_PARAM
65 
68 
69 }
70 
71 #endif
#define KINECT_INTERNAL_PARAMETERS_COLOR_ELEMENTS
kinect_internal_parameters decode_kinect_internal_parameters(const json &j)
struct tlz::kinect_internal_parameters::@1 ir
#define KINECT_INTERNAL_PARAMETERS_IR_ELEMENTS
json encode_kinect_internal_parameters(const kinect_internal_parameters &param)
struct tlz::kinect_internal_parameters::@0 color
nlohmann::json json
Definition: json.h:11