Details | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 204 | chris | 1 | #ifndef CALIB_DIST_H |
| 2 | #define CALIB_DIST_H |
||
| 3 | |||
| 4 | #include <AR/gsub_lite.h> |
||
| 5 | |||
| 6 | #define THRESH 100 |
||
| 7 | #define H_NUM 6 |
||
| 8 | #define V_NUM 4 |
||
| 9 | #define LOOP_MAX 20 |
||
| 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 *point[LOOP_MAX]; |
||
| 20 | int h_num; // Number of dots horizontally in the calibration pattern. |
||
| 21 | int v_num; // Number of dots vertically in the calibration pattern. |
||
| 22 | int loop_num; // How many images of the complete calibration patterns we have completed. |
||
| 23 | } CALIB_PATT_T; |
||
| 24 | |||
| 25 | void calc_distortion( CALIB_PATT_T *patt, int xsize, int ysize, double dist_factor[4] ); |
||
| 26 | |||
| 27 | #endif |