tesseract
3.05.02
|
#include "blobbox.h"
Go to the source code of this file.
Namespaces | |
tesseract | |
Functions | |
void | compute_fixed_pitch (ICOORD page_tr, TO_BLOCK_LIST *port_blocks, float gradient, FCOORD rotation, BOOL8 testing_on) |
void | fix_row_pitch (TO_ROW *bad_row, TO_BLOCK *bad_block, TO_BLOCK_LIST *blocks, inT32 row_target, inT32 block_target) |
void | compute_block_pitch (TO_BLOCK *block, FCOORD rotation, inT32 block_index, BOOL8 testing_on) |
BOOL8 | compute_rows_pitch (TO_BLOCK *block, inT32 block_index, BOOL8 testing_on) |
BOOL8 | try_doc_fixed (ICOORD page_tr, TO_BLOCK_LIST *port_blocks, float gradient) |
BOOL8 | try_block_fixed (TO_BLOCK *block, inT32 block_index) |
BOOL8 | try_rows_fixed (TO_BLOCK *block, inT32 block_index, BOOL8 testing_on) |
void | print_block_counts (TO_BLOCK *block, inT32 block_index) |
void | count_block_votes (TO_BLOCK *block, inT32 &def_fixed, inT32 &def_prop, inT32 &maybe_fixed, inT32 &maybe_prop, inT32 &corr_fixed, inT32 &corr_prop, inT32 &dunno) |
BOOL8 | row_pitch_stats (TO_ROW *row, inT32 maxwidth, BOOL8 testing_on) |
BOOL8 | find_row_pitch (TO_ROW *row, inT32 maxwidth, inT32 dm_gap, TO_BLOCK *block, inT32 block_index, inT32 row_index, BOOL8 testing_on) |
BOOL8 | fixed_pitch_row (TO_ROW *row, BLOCK *block, inT32 block_index) |
BOOL8 | count_pitch_stats (TO_ROW *row, STATS *gap_stats, STATS *pitch_stats, float initial_pitch, float min_space, BOOL8 ignore_outsize, BOOL8 split_outsize, inT32 dm_gap) |
float | tune_row_pitch (TO_ROW *row, STATS *projection, inT16 projection_left, inT16 projection_right, float space_size, float &initial_pitch, float &best_sp_sd, inT16 &best_mid_cuts, ICOORDELT_LIST *best_cells, BOOL8 testing_on) |
float | tune_row_pitch2 (TO_ROW *row, STATS *projection, inT16 projection_left, inT16 projection_right, float space_size, float &initial_pitch, float &best_sp_sd, inT16 &best_mid_cuts, ICOORDELT_LIST *best_cells, BOOL8 testing_on) |
float | compute_pitch_sd (TO_ROW *row, STATS *projection, inT16 projection_left, inT16 projection_right, float space_size, float initial_pitch, float &sp_sd, inT16 &mid_cuts, ICOORDELT_LIST *row_cells, BOOL8 testing_on, inT16 start=0, inT16 end=0) |
float | compute_pitch_sd2 (TO_ROW *row, STATS *projection, inT16 projection_left, inT16 projection_right, float initial_pitch, inT16 &occupation, inT16 &mid_cuts, ICOORDELT_LIST *row_cells, BOOL8 testing_on, inT16 start=0, inT16 end=0) |
void | print_pitch_sd (TO_ROW *row, STATS *projection, inT16 projection_left, inT16 projection_right, float space_size, float initial_pitch) |
void | find_repeated_chars (TO_BLOCK *block, BOOL8 testing_on) |
void | plot_fp_word (TO_BLOCK *block, float pitch, float nonspace) |
Variables | |
bool | textord_debug_pitch_test = FALSE |
bool | textord_debug_pitch_metric = FALSE |
bool | textord_show_row_cuts = FALSE |
bool | textord_show_page_cuts = FALSE |
bool | textord_pitch_cheat = FALSE |
bool | textord_blockndoc_fixed = TRUE |
bool | textord_fast_pitch_test = FALSE |
double | textord_projection_scale = 0.125 |
double | textord_balance_factor = 2.0 |
Definition at line 308 of file topitch.cpp.
void compute_fixed_pitch | ( | ICOORD | page_tr, |
TO_BLOCK_LIST * | port_blocks, | ||
float | gradient, | ||
FCOORD | rotation, | ||
BOOL8 | testing_on | ||
) |
Definition at line 73 of file topitch.cpp.
float compute_pitch_sd | ( | TO_ROW * | row, |
STATS * | projection, | ||
inT16 | projection_left, | ||
inT16 | projection_right, | ||
float | space_size, | ||
float | initial_pitch, | ||
float & | sp_sd, | ||
inT16 & | mid_cuts, | ||
ICOORDELT_LIST * | row_cells, | ||
BOOL8 | testing_on, | ||
inT16 | start = 0 , |
||
inT16 | end = 0 |
||
) |
Definition at line 1373 of file topitch.cpp.
float compute_pitch_sd2 | ( | TO_ROW * | row, |
STATS * | projection, | ||
inT16 | projection_left, | ||
inT16 | projection_right, | ||
float | initial_pitch, | ||
inT16 & | occupation, | ||
inT16 & | mid_cuts, | ||
ICOORDELT_LIST * | row_cells, | ||
BOOL8 | testing_on, | ||
inT16 | start = 0 , |
||
inT16 | end = 0 |
||
) |
Definition at line 1536 of file topitch.cpp.
Definition at line 351 of file topitch.cpp.
void count_block_votes | ( | TO_BLOCK * | block, |
inT32 & | def_fixed, | ||
inT32 & | def_prop, | ||
inT32 & | maybe_fixed, | ||
inT32 & | maybe_prop, | ||
inT32 & | corr_fixed, | ||
inT32 & | corr_prop, | ||
inT32 & | dunno | ||
) |
Definition at line 654 of file topitch.cpp.
BOOL8 count_pitch_stats | ( | TO_ROW * | row, |
STATS * | gap_stats, | ||
STATS * | pitch_stats, | ||
float | initial_pitch, | ||
float | min_space, | ||
BOOL8 | ignore_outsize, | ||
BOOL8 | split_outsize, | ||
inT32 | dm_gap | ||
) |
Definition at line 1058 of file topitch.cpp.
Definition at line 1756 of file topitch.cpp.
BOOL8 find_row_pitch | ( | TO_ROW * | row, |
inT32 | maxwidth, | ||
inT32 | dm_gap, | ||
TO_BLOCK * | block, | ||
inT32 | block_index, | ||
inT32 | row_index, | ||
BOOL8 | testing_on | ||
) |
Definition at line 834 of file topitch.cpp.
void fix_row_pitch | ( | TO_ROW * | bad_row, |
TO_BLOCK * | bad_block, | ||
TO_BLOCK_LIST * | blocks, | ||
inT32 | row_target, | ||
inT32 | block_target | ||
) |
Definition at line 142 of file topitch.cpp.
Definition at line 974 of file topitch.cpp.
void plot_fp_word | ( | TO_BLOCK * | block, |
float | pitch, | ||
float | nonspace | ||
) |
Definition at line 1822 of file topitch.cpp.
Definition at line 617 of file topitch.cpp.
void print_pitch_sd | ( | TO_ROW * | row, |
STATS * | projection, | ||
inT16 | projection_left, | ||
inT16 | projection_right, | ||
float | space_size, | ||
float | initial_pitch | ||
) |
Definition at line 1628 of file topitch.cpp.
Definition at line 701 of file topitch.cpp.
Definition at line 535 of file topitch.cpp.
Definition at line 395 of file topitch.cpp.
Definition at line 549 of file topitch.cpp.
float tune_row_pitch | ( | TO_ROW * | row, |
STATS * | projection, | ||
inT16 | projection_left, | ||
inT16 | projection_right, | ||
float | space_size, | ||
float & | initial_pitch, | ||
float & | best_sp_sd, | ||
inT16 & | best_mid_cuts, | ||
ICOORDELT_LIST * | best_cells, | ||
BOOL8 | testing_on | ||
) |
Definition at line 1146 of file topitch.cpp.
float tune_row_pitch2 | ( | TO_ROW * | row, |
STATS * | projection, | ||
inT16 | projection_left, | ||
inT16 | projection_right, | ||
float | space_size, | ||
float & | initial_pitch, | ||
float & | best_sp_sd, | ||
inT16 & | best_mid_cuts, | ||
ICOORDELT_LIST * | best_cells, | ||
BOOL8 | testing_on | ||
) |
Definition at line 1258 of file topitch.cpp.
double textord_balance_factor = 2.0 |
"Ding rate for unbalanced char cells"
Definition at line 59 of file topitch.cpp.
bool textord_blockndoc_fixed = TRUE |
"Attempt whole doc/block fixed pitch"
Definition at line 56 of file topitch.cpp.
bool textord_debug_pitch_metric = FALSE |
"Write full metric stuff"
Definition at line 50 of file topitch.cpp.
bool textord_debug_pitch_test = FALSE |
"Debug on fixed pitch test"
Definition at line 44 of file topitch.cpp.
bool textord_fast_pitch_test = FALSE |
"Do even faster pitch algorithm"
Definition at line 48 of file topitch.cpp.
bool textord_pitch_cheat = FALSE |
"Use correct answer for fixed/prop"
Definition at line 54 of file topitch.cpp.
double textord_projection_scale = 0.125 |
"Ding rate for mid-cuts"
Definition at line 57 of file topitch.cpp.
bool textord_show_page_cuts = FALSE |
"Draw page-level cuts"
Definition at line 52 of file topitch.cpp.
bool textord_show_row_cuts = FALSE |
"Draw row-level cuts"
Definition at line 51 of file topitch.cpp.