Tesseract
3.02
|
00001 #ifndef GAP_MAP_H 00002 #define GAP_MAP_H 00003 00004 #include "blobbox.h" 00005 #include "notdll.h" 00006 00007 class GAPMAP 00008 { 00009 public: 00010 GAPMAP( //constructor 00011 TO_BLOCK *block); 00012 00013 ~GAPMAP () { //destructor 00014 if (map != NULL) 00015 free_mem(map); 00016 } 00017 00018 BOOL8 table_gap( //Is gap a table? 00019 inT16 left, //From here 00020 inT16 right); //To here 00021 00022 private: 00023 inT16 total_rows; //in block 00024 inT16 min_left; //Left extreme 00025 inT16 max_right; //Right extreme 00026 inT16 bucket_size; // half an x ht 00027 inT16 *map; //empty counts 00028 inT16 map_max; //map[0..max_map] defind 00029 BOOL8 any_tabs; 00030 }; 00031 00032 /*-----------------------------*/ 00033 00034 extern BOOL_VAR_H (gapmap_debug, FALSE, "Say which blocks have tables"); 00035 extern BOOL_VAR_H (gapmap_use_ends, FALSE, 00036 "Use large space at start and end of rows"); 00037 extern BOOL_VAR_H (gapmap_no_isolated_quanta, FALSE, 00038 "Ensure gaps not less than 2quanta wide"); 00039 extern double_VAR_H (gapmap_big_gaps, 1.75, "xht multiplier"); 00040 #endif