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 dependency graph for gsubUtil.c:
This graph shows which files directly or indirectly include this file:

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 gsubUtil.c.

#define CALIB_POS2_NUM   2

Definition at line 23 of file gsubUtil.c.


Function Documentation

static void argCalibMainFunc ( void   )  [static]

Definition at line 146 of file gsubUtil.c.

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

Definition at line 82 of file gsubUtil.c.

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

Definition at line 239 of file 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:
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 57 of file gsubUtil.c.


Variable Documentation

int arFittingModeBak [static]

Definition at line 44 of file 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 26 of file gsubUtil.c.

double calib_pos2d[CALIB_POS1_NUM][CALIB_POS2_NUM][2] [static]

Definition at line 31 of file gsubUtil.c.

double calib_pos3d[CALIB_POS1_NUM][CALIB_POS2_NUM][3] [static]

Definition at line 32 of file gsubUtil.c.

int co1 [static]

Definition at line 33 of file gsubUtil.c.

int co2 [static]

Definition at line 34 of file gsubUtil.c.

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

Definition at line 51 of file gsubUtil.c.

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

Definition at line 49 of file gsubUtil.c.

void(* gMainFunc)(void) [static]

Definition at line 50 of file gsubUtil.c.

int gMiniXnum [static]

Definition at line 47 of file gsubUtil.c.

int gMiniYnum [static]

Definition at line 47 of file gsubUtil.c.

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

Definition at line 48 of file gsubUtil.c.

ARParam hmd_param[2] [static]

Definition at line 42 of file gsubUtil.c.

int hmdMode [static]

Definition at line 46 of file gsubUtil.c.

int left_right [static]

Definition at line 35 of file gsubUtil.c.

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

Definition at line 39 of file gsubUtil.c.

int target_id [static]

Definition at line 37 of file gsubUtil.c.

double target_trans[3][4] [static]

Definition at line 36 of file gsubUtil.c.

int target_visible [static]

Definition at line 38 of file gsubUtil.c.

double target_width = 80.0 [static]

Definition at line 40 of file gsubUtil.c.

int thresh [static]

Definition at line 43 of file gsubUtil.c.

 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines


artoolkit
Author(s): Gautier Dumonteil
autogenerated on Fri Jan 11 10:05:48 2013