#include <stdio.h>#include <math.h>#include <AR/ar.h>#include <AR/matrix.h>#include <AR/config.h>

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 DEBUG 0 |
Definition at line 17 of file arGetCode.c.
| #define EVEC_MAX 10 |
Definition at line 18 of file arGetCode.c.
| int arActivatePatt | ( | int | pat_no | ) |
activate a pattern on the recognition procedure.
Activate a pattern to be check during the template matching operation.
| patt_no | number of pattern to activate |
Definition at line 126 of file 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.
| patt_no | number of pattern to desactivate |
Definition at line 135 of file 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.
| patt_no | number of pattern to free |
Definition at line 114 of file arGetCode.c.
| int arGetCode | ( | ARUint8 * | image, | |
| int * | x_coord, | |||
| int * | y_coord, | |||
| int * | vertex, | |||
| int * | code, | |||
| int * | dir, | |||
| double * | cf | |||
| ) |
XXXBK.
XXXBK
| image | XXXBK | |
| x_coord | XXXBK | |
| y_coord | XXXBK | |
| vertex | XXXBK | |
| code | XXXBK | |
| dir | XXXBK | |
| cf | XXXBK |
Definition at line 144 of file 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
| image | video input image | |
| x_coord | XXXBK | |
| y_coord | XXXBK | |
| vertex | XXXBK | |
| ext_pat | detected pattern. |
Definition at line 183 of file 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.
| filename | name of the file containing the pattern bitmap to be loaded |
Definition at line 43 of file arGetCode.c.
| static void gen_evec | ( | void | ) | [static] |
Definition at line 653 of file 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 arGetCode.c.
| static int pattern_match | ( | ARUint8 * | data, | |
| int * | code, | |||
| int * | dir, | |||
| double * | cf | |||
| ) | [static] |
Definition at line 531 of file arGetCode.c.
| static void put_zero | ( | ARUint8 * | p, | |
| int | size | |||
| ) | [static] |
Definition at line 648 of file arGetCode.c.
double epat[AR_PATT_NUM_MAX][4][EVEC_MAX] [static] |
Definition at line 28 of file arGetCode.c.
double evec[EVEC_MAX][AR_PATT_SIZE_Y *AR_PATT_SIZE_X *3] [static] |
Definition at line 27 of file arGetCode.c.
int evec_dim [static] |
Definition at line 29 of file arGetCode.c.
int evecBWf = 0 [static] |
Definition at line 34 of file arGetCode.c.
int evecf = 0 [static] |
Definition at line 30 of file arGetCode.c.
int pat[AR_PATT_NUM_MAX][4][AR_PATT_SIZE_Y *AR_PATT_SIZE_X *3] [static] |
Definition at line 22 of file arGetCode.c.
int patBW[AR_PATT_NUM_MAX][4][AR_PATT_SIZE_Y *AR_PATT_SIZE_X *3] [static] |
Definition at line 24 of file arGetCode.c.
int patf[AR_PATT_NUM_MAX] = { 0 } [static] |
Definition at line 21 of file arGetCode.c.
double patpow[AR_PATT_NUM_MAX][4] [static] |
Definition at line 23 of file arGetCode.c.
double patpowBW[AR_PATT_NUM_MAX][4] [static] |
Definition at line 25 of file arGetCode.c.
int pattern_num = -1 [static] |
Definition at line 20 of file arGetCode.c.