38 TO_BLOCK_LIST *port_blocks,
45 TO_BLOCK_LIST *blocks,
60 TO_BLOCK_LIST *port_blocks,
79 int32_t &def_prop, int32_t &maybe_fixed, int32_t &maybe_prop, int32_t &corr_fixed,
80 int32_t &corr_prop, int32_t &dunno);
113 int16_t projection_left,
114 int16_t projection_right,
116 float &initial_pitch,
118 int16_t &best_mid_cuts,
119 ICOORDELT_LIST *best_cells,
125 int16_t projection_left,
126 int16_t projection_right,
128 float &initial_pitch,
130 int16_t &best_mid_cuts,
131 ICOORDELT_LIST *best_cells,
137 int16_t projection_left,
138 int16_t projection_right,
143 ICOORDELT_LIST *row_cells,
151 int16_t projection_left,
152 int16_t projection_right,
156 ICOORDELT_LIST *row_cells,
164 int16_t projection_left,
165 int16_t projection_right,
float space_size,
void compute_fixed_pitch(ICOORD page_tr, TO_BLOCK_LIST *port_blocks, float gradient, FCOORD rotation, bool testing_on)
bool try_block_fixed(TO_BLOCK *block, int32_t block_index)
void compute_block_pitch(TO_BLOCK *block, FCOORD rotation, int32_t block_index, bool testing_on)
bool fixed_pitch_row(TO_ROW *row, BLOCK *block, int32_t block_index)
void plot_fp_word(TO_BLOCK *block, float pitch, float nonspace)
double_VAR_H(classify_min_slope)
float compute_pitch_sd2(TO_ROW *row, STATS *projection, int16_t projection_left, int16_t projection_right, float initial_pitch, int16_t &occupation, int16_t &mid_cuts, ICOORDELT_LIST *row_cells, bool testing_on, int16_t start, int16_t end)
float compute_pitch_sd(TO_ROW *row, STATS *projection, int16_t projection_left, int16_t projection_right, float space_size, float initial_pitch, float &sp_sd, int16_t &mid_cuts, ICOORDELT_LIST *row_cells, bool testing_on, int16_t start, int16_t end)
bool try_rows_fixed(TO_BLOCK *block, int32_t block_index, bool testing_on)
void find_repeated_chars(TO_BLOCK *block, bool testing_on)
double textord_projection_scale
void print_pitch_sd(TO_ROW *row, STATS *projection, int16_t projection_left, int16_t projection_right, float space_size, float initial_pitch)
bool textord_blockndoc_fixed
bool count_pitch_stats(TO_ROW *row, STATS *gap_stats, STATS *pitch_stats, float initial_pitch, float min_space, bool ignore_outsize, bool split_outsize, int32_t dm_gap)
bool find_row_pitch(TO_ROW *row, int32_t maxwidth, int32_t dm_gap, TO_BLOCK *block, int32_t block_index, int32_t row_index, bool testing_on)
void fix_row_pitch(TO_ROW *bad_row, TO_BLOCK *bad_block, TO_BLOCK_LIST *blocks, int32_t row_target, int32_t block_target)
bool textord_debug_pitch_metric
float tune_row_pitch2(TO_ROW *row, STATS *projection, int16_t projection_left, int16_t projection_right, float space_size, float &initial_pitch, float &best_sp_sd, int16_t &best_mid_cuts, ICOORDELT_LIST *best_cells, bool testing_on)
void print_block_counts(TO_BLOCK *block, int32_t block_index)
BOOL_VAR_H(wordrec_display_splits)
bool textord_debug_pitch_test
bool row_pitch_stats(TO_ROW *row, int32_t maxwidth, bool testing_on)
double textord_balance_factor
bool textord_show_row_cuts
bool try_doc_fixed(ICOORD page_tr, TO_BLOCK_LIST *port_blocks, float gradient)
bool textord_fast_pitch_test
float tune_row_pitch(TO_ROW *row, STATS *projection, int16_t projection_left, int16_t projection_right, float space_size, float &initial_pitch, float &best_sp_sd, int16_t &best_mid_cuts, ICOORDELT_LIST *best_cells, bool testing_on)
void count_block_votes(TO_BLOCK *block, int32_t &def_fixed, int32_t &def_prop, int32_t &maybe_fixed, int32_t &maybe_prop, int32_t &corr_fixed, int32_t &corr_prop, int32_t &dunno)
bool textord_show_page_cuts
bool compute_rows_pitch(TO_BLOCK *block, int32_t block_index, bool testing_on)