Tesseract
3.02
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
gap_map.h
Go to the documentation of this file.
1
#ifndef GAP_MAP_H
2
#define GAP_MAP_H
3
4
#include "
blobbox.h
"
5
#include "
notdll.h
"
6
7
class
GAPMAP
8
{
9
public
:
10
GAPMAP
(
//constructor
11
TO_BLOCK
*block);
12
13
~GAPMAP
() {
//destructor
14
if
(map !=
NULL
)
15
free_mem
(map);
16
}
17
18
BOOL8
table_gap
(
//Is gap a table?
19
inT16
left,
//From here
20
inT16
right);
//To here
21
22
private
:
23
inT16
total_rows;
//in block
24
inT16
min_left;
//Left extreme
25
inT16
max_right;
//Right extreme
26
inT16
bucket_size;
// half an x ht
27
inT16
*map;
//empty counts
28
inT16
map_max;
//map[0..max_map] defind
29
BOOL8
any_tabs;
30
};
31
32
/*-----------------------------*/
33
34
extern
BOOL_VAR_H
(
gapmap_debug
,
FALSE
,
"Say which blocks have tables"
);
35
extern
BOOL_VAR_H
(
gapmap_use_ends
,
FALSE
,
36
"Use large space at start and end of rows"
);
37
extern
BOOL_VAR_H
(
gapmap_no_isolated_quanta
,
FALSE
,
38
"Ensure gaps not less than 2quanta wide"
);
39
extern
double_VAR_H
(
gapmap_big_gaps
, 1.75,
"xht multiplier"
);
40
#endif
mnt
data
src
tesseract-ocr
textord
gap_map.h
Generated on Thu Nov 1 2012 20:19:50 for Tesseract by
1.8.1