Defines | Functions | Variables
gsubUtil.c File Reference
#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>
Include dependency graph for lib/SRC/Gl/gsubUtil.c:

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 Documentation

#define CALIB_POS1_NUM   5

Definition at line 22 of file lib/SRC/Gl/gsubUtil.c.

#define CALIB_POS2_NUM   2

Definition at line 23 of file lib/SRC/Gl/gsubUtil.c.


Function Documentation

static void argCalibMainFunc ( void  ) [static]

Definition at line 145 of file lib/SRC/Gl/gsubUtil.c.

static void argCalibMouseFunc ( int  button,
int  state,
int  x,
int  y 
) [static]

Definition at line 81 of file lib/SRC/Gl/gsubUtil.c.

static int argDrawAttention ( double  pos[2],
int  color 
) [static]

Definition at line 238 of file 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.

Parameters:
targetIdthe target used for the calibration step.
thresh2lighting threshold value to use
postFunca 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 lib/SRC/Gl/gsubUtil.c.


Variable Documentation

int arFittingModeBak [static]

Definition at line 43 of file lib/SRC/Gl/gsubUtil.c.

double calib_pos[CALIB_POS1_NUM][2] [static]
Initial value:
 { { 160, 120 },
                                                 { 480, 120 },
                                                 { 320, 240 },
                                                 { 160, 360 },
                                                 { 480, 360 } }

Definition at line 25 of file lib/SRC/Gl/gsubUtil.c.

Definition at line 30 of file lib/SRC/Gl/gsubUtil.c.

Definition at line 31 of file lib/SRC/Gl/gsubUtil.c.

int co1 [static]

Definition at line 32 of file lib/SRC/Gl/gsubUtil.c.

int co2 [static]

Definition at line 33 of file lib/SRC/Gl/gsubUtil.c.

void(* gCalibPostFunc)(ARParam *lpara, ARParam *rpara) [static]

Definition at line 50 of file lib/SRC/Gl/gsubUtil.c.

void(* gKeyFunc)(unsigned char key, int x, int y) [static]

Definition at line 48 of file lib/SRC/Gl/gsubUtil.c.

void(* gMainFunc)(void) [static]

Definition at line 49 of file lib/SRC/Gl/gsubUtil.c.

int gMiniXnum [static]

Definition at line 46 of file lib/SRC/Gl/gsubUtil.c.

int gMiniYnum [static]

Definition at line 46 of file lib/SRC/Gl/gsubUtil.c.

void(* gMouseFunc)(int button, int state, int x, int y) [static]

Definition at line 47 of file lib/SRC/Gl/gsubUtil.c.

ARParam hmd_param[2] [static]

Definition at line 41 of file lib/SRC/Gl/gsubUtil.c.

int hmdMode [static]

Definition at line 45 of file lib/SRC/Gl/gsubUtil.c.

int left_right [static]

Definition at line 34 of file lib/SRC/Gl/gsubUtil.c.

double target_center[2] = { 0.0, 0.0 } [static]

Definition at line 38 of file lib/SRC/Gl/gsubUtil.c.

int target_id [static]

Definition at line 36 of file lib/SRC/Gl/gsubUtil.c.

double target_trans[3][4] [static]

Definition at line 35 of file lib/SRC/Gl/gsubUtil.c.

int target_visible [static]

Definition at line 37 of file lib/SRC/Gl/gsubUtil.c.

double target_width = 80.0 [static]

Definition at line 39 of file lib/SRC/Gl/gsubUtil.c.

int thresh [static]

Definition at line 42 of file lib/SRC/Gl/gsubUtil.c.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines


ar_recog
Author(s): Graylin Trevor Jay and Christopher Crick
autogenerated on Fri Jan 25 2013 12:15:01