Defines | Functions | Variables
arLabeling.c File Reference
#include <stdlib.h>
#include <stdio.h>
#include <AR/ar.h>
#include <string.h>
Include dependency graph for backup/lib/SRC/AR/arLabeling.c:

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.
ARInt16arLabeling (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)
ARInt16arsLabeling (ARUint8 *image, int thresh, int *label_num, int **area, double **pos, int **clip, int **label_ref, int LorR)
static ARInt16labeling2 (ARUint8 *image, int thresh, int *label_num, int **area, double **pos, int **clip, int **label_ref, int LorR)
static ARInt16labeling3 (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 Documentation

#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.

#define put_zero (   p,
  s 
)    memset((void *)p, 0, s)

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

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.


Function Documentation

void arGetImgFeature ( int *  num,
int **  area,
int **  clip,
double **  pos 
)

XXXBK.

XXXBK

Parameters:
numXXXBK
areaXXXBK
clipXXXBK
posXXXBK

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.

Parameters:
imageinput image, as returned by arVideoGetImage()
threshlighting threshold
label_numOuput- number of detected components
areaOn return, if label_num > 0, points to an array of ints, one for each detected component.
posOn return, if label_num > 0, points to an array of doubles, one for each detected component.
clipOn return, if label_num > 0, points to an array of ints, one for each detected component.
label_refOn return, if label_num > 0, points to an array of ints, one for each detected component.
Returns:
returns a pointer to the labeled output image, ready for passing onto the next stage of processing.

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.


Variable Documentation

Definition at line 41 of file backup/lib/SRC/AR/arLabeling.c.

Definition at line 42 of file backup/lib/SRC/AR/arLabeling.c.

int wareaL[WORK_SIZE] [static]

Definition at line 53 of file backup/lib/SRC/AR/arLabeling.c.

int wareaR[WORK_SIZE] [static]

Definition at line 54 of file backup/lib/SRC/AR/arLabeling.c.

int wclipL[WORK_SIZE *4] [static]

Definition at line 55 of file backup/lib/SRC/AR/arLabeling.c.

int wclipR[WORK_SIZE *4] [static]

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.

int work2L[WORK_SIZE *7] [static]

Definition at line 48 of file backup/lib/SRC/AR/arLabeling.c.

int work2R[WORK_SIZE *7] [static]

Definition at line 49 of file backup/lib/SRC/AR/arLabeling.c.

int workL[WORK_SIZE] [static]

Definition at line 46 of file backup/lib/SRC/AR/arLabeling.c.

int workR[WORK_SIZE] [static]

Definition at line 47 of file backup/lib/SRC/AR/arLabeling.c.

double wposL[WORK_SIZE *2] [static]

Definition at line 57 of file backup/lib/SRC/AR/arLabeling.c.

double wposR[WORK_SIZE *2] [static]

Definition at line 58 of file backup/lib/SRC/AR/arLabeling.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