Details | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 204 | chris | 1 | #ifndef CALIB_CAMERA_H |
| 2 | #define CALIB_CAMERA_H |
||
| 3 | |||
| 4 | #include <AR/gsub_lite.h> |
||
| 5 | |||
| 6 | #define H_NUM 6 |
||
| 7 | #define V_NUM 4 |
||
| 8 | #define LOOP_MAX 20 |
||
| 9 | #define THRESH 100 |
||
| 10 | |||
| 11 | typedef struct { |
||
| 12 | double x_coord; |
||
| 13 | double y_coord; |
||
| 14 | } CALIB_COORD_T; |
||
| 15 | |||
| 16 | typedef struct patt { |
||
| 17 | unsigned char *savedImage[LOOP_MAX]; |
||
| 18 | ARGL_CONTEXT_SETTINGS_REF arglSettings[LOOP_MAX]; |
||
| 19 | CALIB_COORD_T *world_coord; |
||
| 20 | CALIB_COORD_T *point[LOOP_MAX]; |
||
| 21 | int h_num; // Number of dots horizontally in the calibration pattern. |
||
| 22 | int v_num; // Number of dots vertically in the calibration pattern. |
||
| 23 | int loop_num; // How many images of the complete calibration patterns we have completed. |
||
| 24 | } CALIB_PATT_T; |
||
| 25 | |||
| 26 | void calc_distortion( CALIB_PATT_T *patt, int xsize, int ysize, double dist_factor[3] ); |
||
| 27 | int calc_inp( CALIB_PATT_T *patt, double dist_factor[4], int xsize, int ysize, double mat[3][4] ); |
||
| 28 | |||
| 29 | #endif // CALIB_CAMERA_H |