#include <stdio.h>
#include <stdlib.h>
#include <GL/glut.h>
#include <AR/config.h>
#include <AR/param.h>
#include <AR/ar.h>
#include <AR/gsub.h>
#include <AR/video.h>
#include <AR/gsubUtil.h>
Go to the source code of this file.
Defines | |
#define | CALIB_POS1_NUM 5 |
#define | CALIB_POS2_NUM 2 |
Functions | |
static void | argCalibMainFunc (void) |
static void | argCalibMouseFunc (int button, int state, int x, int y) |
static int | argDrawAttention (double pos[2], int color) |
void | argUtilCalibHMD (int targetId, int thresh2, void(*postFunc)(ARParam *lpara, ARParam *rpara)) |
utility function for calibrate an HMD. | |
Variables | |
static int | arFittingModeBak |
static double | calib_pos [CALIB_POS1_NUM][2] |
static double | calib_pos2d [CALIB_POS1_NUM][CALIB_POS2_NUM][2] |
static double | calib_pos3d [CALIB_POS1_NUM][CALIB_POS2_NUM][3] |
static int | co1 |
static int | co2 |
static void(* | gCalibPostFunc )(ARParam *lpara, ARParam *rpara) |
static void(* | gKeyFunc )(unsigned char key, int x, int y) |
static void(* | gMainFunc )(void) |
static int | gMiniXnum |
static int | gMiniYnum |
static void(* | gMouseFunc )(int button, int state, int x, int y) |
static ARParam | hmd_param [2] |
static int | hmdMode |
static int | left_right |
static double | target_center [2] = { 0.0, 0.0 } |
static int | target_id |
static double | target_trans [3][4] |
static int | target_visible |
static double | target_width = 80.0 |
static int | thresh |
#define CALIB_POS1_NUM 5 |
Definition at line 22 of file backup/lib/SRC/Gl/gsubUtil.c.
#define CALIB_POS2_NUM 2 |
Definition at line 23 of file backup/lib/SRC/Gl/gsubUtil.c.
static void argCalibMainFunc | ( | void | ) | [static] |
Definition at line 145 of file backup/lib/SRC/Gl/gsubUtil.c.
static void argCalibMouseFunc | ( | int | button, |
int | state, | ||
int | x, | ||
int | y | ||
) | [static] |
Definition at line 81 of file backup/lib/SRC/Gl/gsubUtil.c.
static int argDrawAttention | ( | double | pos[2], |
int | color | ||
) | [static] |
Definition at line 238 of file backup/lib/SRC/Gl/gsubUtil.c.
void argUtilCalibHMD | ( | int | targetId, |
int | thresh2, | ||
void(*)(ARParam *lpara, ARParam *rpara) | postFunc | ||
) |
utility function for calibrate an HMD.
This function offers a full calibration run-time routines for an optical HMD (mono or stereo). It is useful for estimate transformation between user eye position and camera position. You will find more informations on the calibration routine on opticalcalibration.html .This function modify gsub state of left and right camera intrinsic parameters.
targetId | the target used for the calibration step. |
thresh2 | lighting threshold value to use |
postFunc | a callback function used to analysis computed internal camera parameters. if your application is mono display, only lpara contains a value. lpara and rpara are NULL if the calibration failed. |
Definition at line 56 of file backup/lib/SRC/Gl/gsubUtil.c.
int arFittingModeBak [static] |
Definition at line 43 of file backup/lib/SRC/Gl/gsubUtil.c.
double calib_pos[CALIB_POS1_NUM][2] [static] |
{ { 160, 120 }, { 480, 120 }, { 320, 240 }, { 160, 360 }, { 480, 360 } }
Definition at line 25 of file backup/lib/SRC/Gl/gsubUtil.c.
double calib_pos2d[CALIB_POS1_NUM][CALIB_POS2_NUM][2] [static] |
Definition at line 30 of file backup/lib/SRC/Gl/gsubUtil.c.
double calib_pos3d[CALIB_POS1_NUM][CALIB_POS2_NUM][3] [static] |
Definition at line 31 of file backup/lib/SRC/Gl/gsubUtil.c.
int co1 [static] |
Definition at line 32 of file backup/lib/SRC/Gl/gsubUtil.c.
int co2 [static] |
Definition at line 33 of file backup/lib/SRC/Gl/gsubUtil.c.
void(* gCalibPostFunc)(ARParam *lpara, ARParam *rpara) [static] |
Definition at line 50 of file backup/lib/SRC/Gl/gsubUtil.c.
void(* gKeyFunc)(unsigned char key, int x, int y) [static] |
Definition at line 48 of file backup/lib/SRC/Gl/gsubUtil.c.
void(* gMainFunc)(void) [static] |
Definition at line 49 of file backup/lib/SRC/Gl/gsubUtil.c.
int gMiniXnum [static] |
Definition at line 46 of file backup/lib/SRC/Gl/gsubUtil.c.
int gMiniYnum [static] |
Definition at line 46 of file backup/lib/SRC/Gl/gsubUtil.c.
void(* gMouseFunc)(int button, int state, int x, int y) [static] |
Definition at line 47 of file backup/lib/SRC/Gl/gsubUtil.c.
Definition at line 41 of file backup/lib/SRC/Gl/gsubUtil.c.
int hmdMode [static] |
Definition at line 45 of file backup/lib/SRC/Gl/gsubUtil.c.
int left_right [static] |
Definition at line 34 of file backup/lib/SRC/Gl/gsubUtil.c.
double target_center[2] = { 0.0, 0.0 } [static] |
Definition at line 38 of file backup/lib/SRC/Gl/gsubUtil.c.
int target_id [static] |
Definition at line 36 of file backup/lib/SRC/Gl/gsubUtil.c.
double target_trans[3][4] [static] |
Definition at line 35 of file backup/lib/SRC/Gl/gsubUtil.c.
int target_visible [static] |
Definition at line 37 of file backup/lib/SRC/Gl/gsubUtil.c.
double target_width = 80.0 [static] |
Definition at line 39 of file backup/lib/SRC/Gl/gsubUtil.c.
int thresh [static] |
Definition at line 42 of file backup/lib/SRC/Gl/gsubUtil.c.