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
tovars.cpp
Go to the documentation of this file.
1 /**********************************************************************
2 * File: tovars.cpp (Formerly to_vars.c)
3 * Description: Variables used by textord.
4 * Author: Ray Smith
5 * Created: Tue Aug 24 16:55:02 BST 1993
6 *
7 * (C) Copyright 1993, Hewlett-Packard Ltd.
8 ** Licensed under the Apache License, Version 2.0 (the "License");
9 ** you may not use this file except in compliance with the License.
10 ** You may obtain a copy of the License at
11 ** http://www.apache.org/licenses/LICENSE-2.0
12 ** Unless required by applicable law or agreed to in writing, software
13 ** distributed under the License is distributed on an "AS IS" BASIS,
14 ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 ** See the License for the specific language governing permissions and
16 ** limitations under the License.
17 *
18 **********************************************************************/
19
20 #include "mfcpch.h"
21 #include "tovars.h"
22 #include "params.h"
23
24 #define EXTERN
25
26 EXTERN BOOL_VAR (textord_show_initial_words, FALSE, "Display separate words");
27 EXTERN BOOL_VAR (textord_show_new_words, FALSE, "Display separate words");
28 EXTERN BOOL_VAR (textord_show_fixed_words, FALSE,
29 "Display forced fixed pitch words");
30 EXTERN BOOL_VAR (textord_blocksall_fixed, FALSE, "Moan about prop blocks");
31 EXTERN BOOL_VAR (textord_blocksall_prop, FALSE,
32 "Moan about fixed pitch blocks");
33 EXTERN BOOL_VAR (textord_blocksall_testing, FALSE, "Dump stats when moaning");
34 EXTERN BOOL_VAR (textord_test_mode, FALSE, "Do current test");
35 EXTERN INT_VAR (textord_dotmatrix_gap, 3,
36 "Max pixel gap for broken pixed pitch");
37 EXTERN INT_VAR (textord_debug_block, 0, "Block to do debug on");
38 EXTERN INT_VAR (textord_pitch_range, 2, "Max range test on pitch");
39 EXTERN double_VAR (textord_wordstats_smooth_factor, 0.05,
40 "Smoothing gap stats");
41 EXTERN double_VAR (textord_width_smooth_factor, 0.10,
42 "Smoothing width stats");
43 EXTERN double_VAR (textord_words_width_ile, 0.4,
44 "Ile of blob widths for space est");
45 EXTERN double_VAR (textord_words_maxspace, 4.0, "Multiple of xheight");
46 EXTERN double_VAR (textord_words_default_maxspace, 3.5,
47 "Max believable third space");
48 EXTERN double_VAR (textord_words_default_minspace, 0.6,
49 "Fraction of xheight");
50 EXTERN double_VAR (textord_words_min_minspace, 0.3, "Fraction of xheight");
51 EXTERN double_VAR (textord_words_default_nonspace, 0.2,
52 "Fraction of xheight");
53 EXTERN double_VAR (textord_words_initial_lower, 0.25,
54 "Max inital cluster size");
55 EXTERN double_VAR (textord_words_initial_upper, 0.15,
56 "Min initial cluster spacing");
57 EXTERN double_VAR (textord_words_minlarge, 0.75,
58 "Fraction of valid gaps needed");
59 EXTERN double_VAR (textord_words_pitchsd_threshold, 0.040,
60 "Pitch sync threshold");
61 EXTERN double_VAR (textord_words_def_fixed, 0.016,
62 "Threshold for definite fixed");
63 EXTERN double_VAR (textord_words_def_prop, 0.090,
64 "Threshold for definite prop");
65 EXTERN INT_VAR (textord_words_veto_power, 5,
66 "Rows required to outvote a veto");
67 EXTERN double_VAR (textord_pitch_rowsimilarity, 0.08,
68 "Fraction of xheight for sameness");
69 EXTERN BOOL_VAR (textord_pitch_scalebigwords, FALSE,
70 "Scale scores on big words");
71 EXTERN double_VAR (words_initial_lower, 0.5, "Max inital cluster size");
72 EXTERN double_VAR (words_initial_upper, 0.15, "Min initial cluster spacing");
73 EXTERN double_VAR (words_default_prop_nonspace, 0.25, "Fraction of xheight");
74 EXTERN double_VAR (words_default_fixed_space, 0.75, "Fraction of xheight");
75 EXTERN double_VAR (words_default_fixed_limit, 0.6, "Allowed size variance");
76 EXTERN double_VAR (textord_words_definite_spread, 0.30,
77 "Non-fuzzy spacing region");
78 EXTERN double_VAR (textord_spacesize_ratiofp, 2.8,
79 "Min ratio space/nonspace");
80 EXTERN double_VAR (textord_spacesize_ratioprop, 2.0,
81 "Min ratio space/nonspace");
82 EXTERN double_VAR (textord_fpiqr_ratio, 1.5, "Pitch IQR/Gap IQR threshold");
83 EXTERN double_VAR (textord_max_pitch_iqr, 0.20, "Xh fraction noise in pitch");
84 EXTERN double_VAR (textord_fp_min_width, 0.5, "Min width of decent blobs");