14 #ifndef JABCODE_DETECTOR_H 
   15 #define JABCODE_DETECTOR_H 
   22 #define MAX_MODULES             145     //the number of modules in side-version 32 
   23 #define MAX_SYMBOL_ROWS         3 
   24 #define MAX_SYMBOL_COLUMNS      3 
   25 #define MAX_FINDER_PATTERNS 200 
   27 #define CROSS_AREA_WIDTH        14      //the width of the area across the host and slave symbols 
   29 #define DIST(x1, y1, x2, y2) (jab_float)(sqrt((x1-x2)*(x1-x2) + (y1-y2)*(y1-y2))) 
   43         jab_float               module_size;
 
   45         jab_int32               found_count;
 
   54         jab_float               module_size;
 
   56         jab_int32               found_count;
 
   83                                                                                                                 jab_float x1, jab_float y1,
 
   84                                                                                                                 jab_float x2, jab_float y2,
 
   85                                                                                                                 jab_float x3, jab_float y3,
 
   86                                                                                                                 jab_float x0p, jab_float y0p,
 
   87                                                                                                                 jab_float x1p, jab_float y1p,
 
   88                                                                                                                 jab_float x2p, jab_float y2p,
 
   89                                                                                                                 jab_float x3p, jab_float y3p);
 
jab_bitmap * binarizerHist(jab_bitmap *bitmap, jab_int32 channel)
Binarize a color channel of a bitmap using histogram binarization algorithm. 
Definition: binarizer.c:105
2-dimensional float vector 
Definition: jabcode.h:79
jab_bitmap * binarizerHard(jab_bitmap *bitmap, jab_int32 channel, jab_int32 threshold)
Binarize a color channel of a bitmap using a given threshold. 
Definition: binarizer.c:183
Code bitmap. 
Definition: jabcode.h:95
jab_perspective_transform * getPerspectiveTransform(jab_point p0, jab_point p1, jab_point p2, jab_point p3, jab_vector2d side_size)
Get perspetive transformation matrix. 
Definition: transform.c:202
Finder pattern. 
Definition: detector.h:41
void warpPoints(jab_perspective_transform *pt, jab_point *points, jab_int32 length)
Warp points from source image to destination image in place. 
Definition: transform.c:225
jab_bitmap * sampleCrossArea(jab_bitmap *bitmap, jab_perspective_transform *pt)
Sample a cross area between the host and slave symbols. 
Definition: sample.c:233
2-dimensional integer vector 
Definition: jabcode.h:71
jab_bitmap * sampleSymbol(jab_bitmap *bitmap, jab_perspective_transform *pt, jab_vector2d side_size)
Sample a symbol. 
Definition: sample.c:31
Alignment pattern. 
Definition: detector.h:52
jab_bitmap * sampleSymbolwithNc(jab_bitmap *bitmap, jab_perspective_transform *pt, jab_vector2d side_size, jab_int32 symbol_type, jab_bitmap *ch[])
Sample a symbol. 
Definition: sample.c:114
jab_bitmap * binarizer(jab_bitmap *bitmap, jab_int32 channel)
Binarize a color channel of a bitmap using local binarization algorithm. 
Definition: binarizer.c:407
jab_perspective_transform * perspectiveTransform(jab_float x0, jab_float y0, jab_float x1, jab_float y1, jab_float x2, jab_float y2, jab_float x3, jab_float y3, jab_float x0p, jab_float y0p, jab_float x1p, jab_float y1p, jab_float x2p, jab_float y2p, jab_float x3p, jab_float y3p)
Calculate transformation matrix of quadrilateral to quadrilateral. 
Definition: transform.c:164