115 int parent_path_length,
117 float max_char_wh_ratio,
129 int start_blob,
int last_blob);
133 return (last_chunk >= 0 && last_chunk < width_record->num_chars - 1) ?
134 width_record->
widths[last_chunk * 2 + 1] : 0;
139 bool end_pos,
float max_char_wh_ratio);
144 return (norm_gap < 0.05 && !end_pos) ? 5.0f : 0.0f;
WIDTH_RECORD * char_widths
static float FixedPitchGapCost(float norm_gap, bool end_pos)
inT16 BLOB_WEIGHTS[MAX_NUM_CHUNKS]
bool bad_fixed_pitch_wh_ratio
static void ComputeStats(int col, int row, const AssociateStats *parent_stats, int parent_path_length, bool fixed_pitch, float max_char_wh_ratio, const DENORM *denorm, CHUNKS_RECORD *chunks_record, int debug_level, AssociateStats *stats)
static const float kMinGap
EVALUATION_RECORD EVALUATION_ARRAY[MAX_NUM_CHUNKS]
static int GetChunksWidth(WIDTH_RECORD *width_record, int start_blob, int last_blob)
static float FixedPitchWidthCost(float norm_width, float right_gap, bool end_pos, float max_char_wh_ratio)
static int GetChunksGap(WIDTH_RECORD *width_record, int last_chunk)
DLLSYM void tprintf(const char *format,...)
bool bad_fixed_pitch_right_gap
static const float kMaxFixedPitchCharAspectRatio
WIDTH_RECORD * chunk_widths
float full_wh_ratio_total