00001 00020 #ifndef ASSOCIATE_H 00021 #define ASSOCIATE_H 00022 00023 /* 00024 ---------------------------------------------------------------------- 00025 I n c l u d e s 00026 ---------------------------------------------------------------------- 00027 */ 00028 00029 #include "matrix.h" 00030 #include "states.h" 00031 #include "blobs.h" 00032 #include "split.h" 00033 #include "seam.h" 00034 00035 /* 00036 ---------------------------------------------------------------------- 00037 T y p e s 00038 ---------------------------------------------------------------------- 00039 */ 00040 00047 typedef LIST BLOBS; /* List of (BLOB*) */ 00048 00055 typedef LIST OUTLINES; /* List of (TESSLINE*) */ 00056 00063 typedef LIST EDGEPTS; /* List of (EDGEPT*) */ 00064 00069 typedef INT16 BLOB_WEIGHTS[MAX_NUM_CHUNKS]; 00070 00075 typedef struct 00076 { 00077 float match; 00078 float certainty; 00079 char character; 00080 int width; 00081 int gap; 00082 } EVALUATION_RECORD; 00083 00088 typedef EVALUATION_RECORD EVALUATION_ARRAY[MAX_NUM_CHUNKS]; 00089 00094 typedef struct 00095 { 00097 MATRIX ratings; 00098 TBLOB *chunks; 00099 SEAMS splits; 00100 TEXTROW *row; 00102 int fx; 00104 int x_height; 00105 WIDTH_RECORD *chunk_widths; 00106 WIDTH_RECORD *char_widths; 00107 INT16 *weights; 00108 } CHUNKS_RECORD; 00109 00110 /*---------------------------------------------------------------------- 00111 V a r i a b l e s 00112 ----------------------------------------------------------------------*/ 00117 extern int enable_assoc; 00119 extern EVALUATION_ARRAY last_segmentation; 00120 extern WIDTH_RECORD *char_widths; 00121 00122 /*---------------------------------------------------------------------- 00123 F u n c t i o n s 00124 ----------------------------------------------------------------------*/ 00125 void init_associate_vars(); 00126 #endif