23 #ifndef TESSERACT_WORDREC_PAIN_POINTS_H_ 24 #define TESSERACT_WORDREC_PAIN_POINTS_H_ 26 #include "genericheap.h" 35 struct ViterbiStateEntry;
67 return LMPainPointsTypeName[type];
106 max_char_wh_ratio, word_res);
115 float special_priority,
bool ok_to_extend,
116 float max_char_wh_ratio,
142 #endif // TESSERACT_WORDREC_PAIN_POINTS_H_
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)
Definition: lm_pain_points.cpp:148
int max_heap_size_
Definition: lm_pain_points.h:129
Definition: lm_pain_points.h:57
static const char * PainPointDescription(LMPainPointsType type)
Definition: lm_pain_points.h:66
void GenerateFromPath(float rating_cert_scale, ViterbiStateEntry *vse, WERD_RES *word_res)
Definition: lm_pain_points.cpp:70
Definition: lm_pain_points.h:47
void GenerateFromAmbigs(const DANGERR &fixpt, ViterbiStateEntry *vse, WERD_RES *word_res)
Definition: lm_pain_points.cpp:132
Definition: lm_state.h:93
int debug_level_
Definition: lm_pain_points.h:137
LMPainPointsType Deque(MATRIX_COORD *pp, float *priority)
Definition: lm_pain_points.cpp:39
bool GenerateForBlamer(double max_char_wh_ratio, WERD_RES *word_res, int col, int row)
Definition: lm_pain_points.h:103
Definition: baseapi.cpp:94
LMPainPointsType
Definition: lm_pain_points.h:41
const Dict * dict_
Definition: lm_pain_points.h:135
Definition: lm_pain_points.h:42
Definition: lm_pain_points.h:43
static const char *const LMPainPointsTypeName[]
Definition: lm_pain_points.h:50
float max_char_wh_ratio_
Definition: lm_pain_points.h:131
Definition: lm_pain_points.h:45
LMPainPoints(int max, float rat, bool fp, const Dict *d, int deb)
Definition: lm_pain_points.h:70
PainPointHeap pain_points_heaps_[LM_PPTYPE_NUM]
Definition: lm_pain_points.h:127
bool HasPainPoints(LMPainPointsType pp_type) const
Definition: lm_pain_points.h:76
bool fixed_pitch_
Definition: lm_pain_points.h:133
static const float kDefaultPainPointPriorityAdjustment
Definition: lm_pain_points.h:60
void GenerateInitial(WERD_RES *word_res)
Definition: lm_pain_points.cpp:50
bool empty() const
Definition: genericheap.h:68
void RemapForSplit(int index)
Definition: lm_pain_points.cpp:211
Definition: lm_pain_points.h:44
Definition: pageres.h:169
void Clear()
Definition: lm_pain_points.h:86
~LMPainPoints()
Definition: lm_pain_points.h:73
static const float kLooseMaxCharWhRatio
Definition: lm_pain_points.h:64