23 #ifndef TESSERACT_WORDREC_PAIN_POINTS_H_ 24 #define TESSERACT_WORDREC_PAIN_POINTS_H_ 46 static const char *
const LMPainPointsTypeName[] = {
63 return LMPainPointsTypeName[type];
67 max_heap_size_(max), max_char_wh_ratio_(rat), fixed_pitch_(fp),
68 dict_(d), debug_level_(deb) {}
73 return !pain_points_heaps_[pp_type].
empty();
83 for (
int h = 0; h <
LM_PPTYPE_NUM; ++h) pain_points_heaps_[h].clear();
102 max_char_wh_ratio, word_res);
111 float special_priority,
bool ok_to_extend,
112 float max_char_wh_ratio,
127 float max_char_wh_ratio_;
138 #endif // TESSERACT_WORDREC_PAIN_POINTS_H_
void RemapForSplit(int index)
bool GenerateForBlamer(double max_char_wh_ratio, WERD_RES *word_res, int col, int row)
GenericHeap< MatrixCoordPair > PainPointHeap
static const float kDefaultPainPointPriorityAdjustment
LMPainPointsType Deque(MATRIX_COORD *pp, float *priority)
void GenerateFromAmbigs(const DANGERR &fixpt, ViterbiStateEntry *vse, WERD_RES *word_res)
void GenerateFromPath(float rating_cert_scale, ViterbiStateEntry *vse, WERD_RES *word_res)
bool GeneratePainPoint(int col, int row, LMPainPointsType pp_type, float special_priority, bool ok_to_extend, float max_char_wh_ratio, WERD_RES *word_res)
LMPainPoints(int max, float rat, bool fp, const Dict *d, int deb)
static const float kLooseMaxCharWhRatio
static const char * PainPointDescription(LMPainPointsType type)
void GenerateInitial(WERD_RES *word_res)
bool HasPainPoints(LMPainPointsType pp_type) const