#include <stdlib.h>#include <stdio.h>#include <AR/ar.h>#include <string.h>
Go to the source code of this file.
Defines | |
| #define | HARDCODED_BUFFER_HEIGHT 1024 |
| #define | HARDCODED_BUFFER_WIDTH 1024 |
| #define | put_zero(p, s) memset((void *)p, 0, s) |
| #define | USE_OPTIMIZATIONS |
| #define | WORK_SIZE 1024*32 |
Functions | |
| void | arGetImgFeature (int *num, int **area, int **clip, double **pos) |
| XXXBK. | |
| ARInt16 * | arLabeling (ARUint8 *image, int thresh, int *label_num, int **area, double **pos, int **clip, int **label_ref) |
| extract connected components from image. | |
| void | arLabelingCleanup (void) |
| clean up static data allocated by arLabeling. | |
| void | arsGetImgFeature (int *num, int **area, int **clip, double **pos, int LorR) |
| ARInt16 * | arsLabeling (ARUint8 *image, int thresh, int *label_num, int **area, double **pos, int **clip, int **label_ref, int LorR) |
| static ARInt16 * | labeling2 (ARUint8 *image, int thresh, int *label_num, int **area, double **pos, int **clip, int **label_ref, int LorR) |
| static ARInt16 * | labeling3 (ARUint8 *image, int thresh, int *label_num, int **area, double **pos, int **clip, int **label_ref, int LorR) |
Variables | |
| static ARInt16 | l_imageL [HARDCODED_BUFFER_WIDTH *HARDCODED_BUFFER_HEIGHT] |
| static ARInt16 | l_imageR [HARDCODED_BUFFER_WIDTH *HARDCODED_BUFFER_HEIGHT] |
| static int | wareaL [WORK_SIZE] |
| static int | wareaR [WORK_SIZE] |
| static int | wclipL [WORK_SIZE *4] |
| static int | wclipR [WORK_SIZE *4] |
| static int | wlabel_numL |
| static int | wlabel_numR |
| static int | work2L [WORK_SIZE *7] |
| static int | work2R [WORK_SIZE *7] |
| static int | workL [WORK_SIZE] |
| static int | workR [WORK_SIZE] |
| static double | wposL [WORK_SIZE *2] |
| static double | wposR [WORK_SIZE *2] |
| #define HARDCODED_BUFFER_HEIGHT 1024 |
Definition at line 39 of file backup/lib/SRC/AR/arLabeling.c.
| #define HARDCODED_BUFFER_WIDTH 1024 |
Definition at line 38 of file backup/lib/SRC/AR/arLabeling.c.
Definition at line 23 of file backup/lib/SRC/AR/arLabeling.c.
| #define USE_OPTIMIZATIONS |
Definition at line 26 of file backup/lib/SRC/AR/arLabeling.c.
| #define WORK_SIZE 1024*32 |
Definition at line 27 of file backup/lib/SRC/AR/arLabeling.c.
| void arGetImgFeature | ( | int * | num, |
| int ** | area, | ||
| int ** | clip, | ||
| double ** | pos | ||
| ) |
XXXBK.
XXXBK
| num | XXXBK |
| area | XXXBK |
| clip | XXXBK |
| pos | XXXBK |
Definition at line 67 of file backup/lib/SRC/AR/arLabeling.c.
| ARInt16* arLabeling | ( | ARUint8 * | image, |
| int | thresh, | ||
| int * | label_num, | ||
| int ** | area, | ||
| double ** | pos, | ||
| int ** | clip, | ||
| int ** | label_ref | ||
| ) |
extract connected components from image.
Label the input image, i.e. extract connected components from the input video image.
| image | input image, as returned by arVideoGetImage() |
| thresh | lighting threshold |
| label_num | Ouput- number of detected components |
| area | On return, if label_num > 0, points to an array of ints, one for each detected component. |
| pos | On return, if label_num > 0, points to an array of doubles, one for each detected component. |
| clip | On return, if label_num > 0, points to an array of ints, one for each detected component. |
| label_ref | On return, if label_num > 0, points to an array of ints, one for each detected component. |
Definition at line 77 of file backup/lib/SRC/AR/arLabeling.c.
| void arLabelingCleanup | ( | void | ) |
clean up static data allocated by arLabeling.
In debug mode, arLabeling may allocate and use static storage. This function deallocates this storage.
Definition at line 776 of file backup/lib/SRC/AR/arLabeling.c.
| void arsGetImgFeature | ( | int * | num, |
| int ** | area, | ||
| int ** | clip, | ||
| double ** | pos, | ||
| int | LorR | ||
| ) |
Definition at line 90 of file backup/lib/SRC/AR/arLabeling.c.
| ARInt16* arsLabeling | ( | ARUint8 * | image, |
| int | thresh, | ||
| int * | label_num, | ||
| int ** | area, | ||
| double ** | pos, | ||
| int ** | clip, | ||
| int ** | label_ref, | ||
| int | LorR | ||
| ) |
Definition at line 107 of file backup/lib/SRC/AR/arLabeling.c.
| static ARInt16 * labeling2 | ( | ARUint8 * | image, |
| int | thresh, | ||
| int * | label_num, | ||
| int ** | area, | ||
| double ** | pos, | ||
| int ** | clip, | ||
| int ** | label_ref, | ||
| int | LorR | ||
| ) | [static] |
Definition at line 120 of file backup/lib/SRC/AR/arLabeling.c.
| static ARInt16 * labeling3 | ( | ARUint8 * | image, |
| int | thresh, | ||
| int * | label_num, | ||
| int ** | area, | ||
| double ** | pos, | ||
| int ** | clip, | ||
| int ** | label_ref, | ||
| int | LorR | ||
| ) | [static] |
Definition at line 465 of file backup/lib/SRC/AR/arLabeling.c.
Definition at line 41 of file backup/lib/SRC/AR/arLabeling.c.
Definition at line 42 of file backup/lib/SRC/AR/arLabeling.c.
Definition at line 53 of file backup/lib/SRC/AR/arLabeling.c.
Definition at line 54 of file backup/lib/SRC/AR/arLabeling.c.
Definition at line 55 of file backup/lib/SRC/AR/arLabeling.c.
Definition at line 56 of file backup/lib/SRC/AR/arLabeling.c.
int wlabel_numL [static] |
Definition at line 51 of file backup/lib/SRC/AR/arLabeling.c.
int wlabel_numR [static] |
Definition at line 52 of file backup/lib/SRC/AR/arLabeling.c.
Definition at line 48 of file backup/lib/SRC/AR/arLabeling.c.
Definition at line 49 of file backup/lib/SRC/AR/arLabeling.c.
Definition at line 46 of file backup/lib/SRC/AR/arLabeling.c.
Definition at line 47 of file backup/lib/SRC/AR/arLabeling.c.
Definition at line 57 of file backup/lib/SRC/AR/arLabeling.c.
Definition at line 58 of file backup/lib/SRC/AR/arLabeling.c.