85 float cert,
int width) {
86 return static_cast<float>(width) * cert / rating_cert_scale;
101 static void ComputeStats(
int col,
int row,
103 int parent_path_length,
105 float max_char_wh_ratio,
111 static float FixedPitchWidthCost(
float norm_width,
float right_gap,
112 bool end_pos,
float max_char_wh_ratio);
117 return (norm_gap < 0.05 && !end_pos) ? 5.0f : 0.0f;
bool bad_fixed_pitch_right_gap
Definition: associate.h:58
bool bad_shape
Definition: associate.h:53
bool bad_fixed_pitch_wh_ratio
Definition: associate.h:60
static const float kMinGap
Definition: associate.h:70
Definition: associate.h:67
float certainty() const
Definition: ratngs.h:83
float full_wh_ratio_total
Definition: associate.h:55
float full_wh_ratio_var
Definition: associate.h:57
static float ComputeOutlineLength(float rating_cert_scale, const BLOB_CHOICE &b)
Definition: associate.h:80
Definition: baseapi.cpp:94
float full_wh_ratio
Definition: associate.h:54
float rating() const
Definition: ratngs.h:80
static float ComputeRating(float rating_cert_scale, float cert, int width)
Definition: associate.h:84
static const float kMaxFixedPitchCharAspectRatio
Definition: associate.h:69
int gap_sum
Definition: associate.h:62
Definition: pageres.h:169
float shape_cost
Definition: associate.h:52
AssociateStats()
Definition: associate.h:37
void Print()
Definition: associate.h:50
void Clear()
Definition: associate.h:39
static float FixedPitchGapCost(float norm_gap, bool end_pos)
Definition: associate.h:116
Definition: associate.h:36