Defines | Functions | Variables
arGetCode.c File Reference
#include <stdio.h>
#include <math.h>
#include <AR/ar.h>
#include <AR/matrix.h>
Include dependency graph for lib/SRC/AR/arGetCode.c:

Go to the source code of this file.

Defines

#define DEBUG   0
#define EVEC_MAX   10

Functions

int arActivatePatt (int patno)
 activate a pattern on the recognition procedure.
int arDeactivatePatt (int patno)
 desactivate a pattern on the recognition procedure.
int arFreePatt (int patno)
 remove a pattern from memory.
int arGetCode (ARUint8 *image, int *x_coord, int *y_coord, int *vertex, int *code, int *dir, double *cf)
 XXXBK.
int arGetPatt (ARUint8 *image, int *x_coord, int *y_coord, int *vertex, ARUint8 ext_pat[AR_PATT_SIZE_Y][AR_PATT_SIZE_X][3])
 Get a normalized pattern from a video image.
int arLoadPatt (const char *filename)
 load markers description from a file
static void gen_evec (void)
static void get_cpara (double world[4][2], double vertex[4][2], double para[3][3])
static int pattern_match (ARUint8 *data, int *code, int *dir, double *cf)
static void put_zero (ARUint8 *p, int size)

Variables

static double epat [AR_PATT_NUM_MAX][4][EVEC_MAX]
static double evec [EVEC_MAX][AR_PATT_SIZE_Y *AR_PATT_SIZE_X *3]
static int evec_dim
static int evecBWf = 0
static int evecf = 0
static int pat [AR_PATT_NUM_MAX][4][AR_PATT_SIZE_Y *AR_PATT_SIZE_X *3]
static int patBW [AR_PATT_NUM_MAX][4][AR_PATT_SIZE_Y *AR_PATT_SIZE_X *3]
static int patf [AR_PATT_NUM_MAX] = { 0 }
static double patpow [AR_PATT_NUM_MAX][4]
static double patpowBW [AR_PATT_NUM_MAX][4]
static int pattern_num = -1

Define Documentation

#define DEBUG   0

Definition at line 17 of file lib/SRC/AR/arGetCode.c.

#define EVEC_MAX   10

Definition at line 18 of file lib/SRC/AR/arGetCode.c.


Function Documentation

int arActivatePatt ( int  pat_no)

activate a pattern on the recognition procedure.

Activate a pattern to be check during the template matching operation.

Parameters:
patt_nonumber of pattern to activate
Returns:
return 1 in success, -1 if error

Definition at line 126 of file lib/SRC/AR/arGetCode.c.

int arDeactivatePatt ( int  pat_no)

desactivate a pattern on the recognition procedure.

Desactivate a pattern for not be check during the template matching operation.

Parameters:
patt_nonumber of pattern to desactivate
Returns:
return 1 in success, -1 if error

Definition at line 135 of file lib/SRC/AR/arGetCode.c.

int arFreePatt ( int  patt_no)

remove a pattern from memory.

desactivate a pattern and remove from memory. post-condition of this function is unavailability of the pattern.

Parameters:
patt_nonumber of pattern to free
Returns:
return 1 in success, -1 if error

Definition at line 114 of file lib/SRC/AR/arGetCode.c.

int arGetCode ( ARUint8 image,
int *  x_coord,
int *  y_coord,
int *  vertex,
int *  code,
int *  dir,
double *  cf 
)

XXXBK.

XXXBK

Parameters:
imageXXXBK
x_coordXXXBK
y_coordXXXBK
vertexXXXBK
codeXXXBK
dirXXXBK
cfXXXBK
Returns:
XXXBK

Definition at line 144 of file lib/SRC/AR/arGetCode.c.

int arGetPatt ( ARUint8 image,
int *  x_coord,
int *  y_coord,
int *  vertex,
ARUint8  ext_pat[AR_PATT_SIZE_Y][AR_PATT_SIZE_X][3] 
)

Get a normalized pattern from a video image.

This function returns a normalized pattern from a video image. The format is a table with AR_PATT_SIZE_X by AR_PATT_SIZE_Y

Parameters:
imagevideo input image
x_coordXXXBK
y_coordXXXBK
vertexXXXBK
ext_patdetected pattern.
Returns:
XXXBK

Definition at line 183 of file lib/SRC/AR/arGetCode.c.

int arLoadPatt ( const char *  filename)

load markers description from a file

load the bitmap pattern specified in the file filename into the pattern matching array for later use by the marker detection routines.

Parameters:
filenamename of the file containing the pattern bitmap to be loaded
Returns:
the identity number of the pattern loaded or –1 if the pattern load failed.

Definition at line 43 of file lib/SRC/AR/arGetCode.c.

static void gen_evec ( void  ) [static]

Definition at line 653 of file lib/SRC/AR/arGetCode.c.

static void get_cpara ( double  world[4][2],
double  vertex[4][2],
double  para[3][3] 
) [static]

Definition at line 487 of file lib/SRC/AR/arGetCode.c.

static int pattern_match ( ARUint8 data,
int *  code,
int *  dir,
double *  cf 
) [static]

Definition at line 531 of file lib/SRC/AR/arGetCode.c.

static void put_zero ( ARUint8 p,
int  size 
) [static]

Definition at line 648 of file lib/SRC/AR/arGetCode.c.


Variable Documentation

double epat[AR_PATT_NUM_MAX][4][EVEC_MAX] [static]

Definition at line 28 of file lib/SRC/AR/arGetCode.c.

double evec[EVEC_MAX][AR_PATT_SIZE_Y *AR_PATT_SIZE_X *3] [static]

Definition at line 27 of file lib/SRC/AR/arGetCode.c.

int evec_dim [static]

Definition at line 29 of file lib/SRC/AR/arGetCode.c.

int evecBWf = 0 [static]

Definition at line 34 of file lib/SRC/AR/arGetCode.c.

int evecf = 0 [static]

Definition at line 30 of file lib/SRC/AR/arGetCode.c.

Definition at line 22 of file lib/SRC/AR/arGetCode.c.

Definition at line 24 of file lib/SRC/AR/arGetCode.c.

int patf[AR_PATT_NUM_MAX] = { 0 } [static]

Definition at line 21 of file lib/SRC/AR/arGetCode.c.

double patpow[AR_PATT_NUM_MAX][4] [static]

Definition at line 23 of file lib/SRC/AR/arGetCode.c.

double patpowBW[AR_PATT_NUM_MAX][4] [static]

Definition at line 25 of file lib/SRC/AR/arGetCode.c.

int pattern_num = -1 [static]

Definition at line 20 of file lib/SRC/AR/arGetCode.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:00