|
tesseract
5.0.0
|
#include <lm_pain_points.h>
Public Member Functions | |
| LMPainPoints (int max, float rat, bool fp, const Dict *d, int deb) | |
| ~LMPainPoints ()=default | |
| bool | HasPainPoints (LMPainPointsType pp_type) const |
| LMPainPointsType | Deque (MATRIX_COORD *pp, float *priority) |
| void | Clear () |
| void | GenerateInitial (WERD_RES *word_res) |
| void | GenerateFromPath (float rating_cert_scale, ViterbiStateEntry *vse, WERD_RES *word_res) |
| void | GenerateFromAmbigs (const DANGERR &fixpt, 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) |
| void | RemapForSplit (int index) |
Static Public Member Functions | |
| static const char * | PainPointDescription (LMPainPointsType type) |
Static Public Attributes | |
| static const float | kDefaultPainPointPriorityAdjustment = 2.0f |
| static const float | kLooseMaxCharWhRatio = 2.5f |
Definition at line 55 of file lm_pain_points.h.
|
inline |
Definition at line 67 of file lm_pain_points.h.
|
default |
|
inline |
Definition at line 86 of file lm_pain_points.h.
| LMPainPointsType tesseract::LMPainPoints::Deque | ( | MATRIX_COORD * | pp, |
| float * | priority | ||
| ) |
Definition at line 39 of file lm_pain_points.cpp.
| void tesseract::LMPainPoints::GenerateFromAmbigs | ( | const DANGERR & | fixpt, |
| ViterbiStateEntry * | vse, | ||
| WERD_RES * | word_res | ||
| ) |
Definition at line 129 of file lm_pain_points.cpp.
| void tesseract::LMPainPoints::GenerateFromPath | ( | float | rating_cert_scale, |
| ViterbiStateEntry * | vse, | ||
| WERD_RES * | word_res | ||
| ) |
Definition at line 72 of file lm_pain_points.cpp.
| void tesseract::LMPainPoints::GenerateInitial | ( | WERD_RES * | word_res | ) |
Definition at line 52 of file lm_pain_points.cpp.
| bool tesseract::LMPainPoints::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 at line 142 of file lm_pain_points.cpp.
|
inline |
Definition at line 76 of file lm_pain_points.h.
|
inlinestatic |
Definition at line 63 of file lm_pain_points.h.
| void tesseract::LMPainPoints::RemapForSplit | ( | int | index | ) |
Adjusts the pain point coordinates to cope with expansion of the ratings matrix due to a split of the blob with the given index.
Definition at line 203 of file lm_pain_points.cpp.
|
static |
Definition at line 57 of file lm_pain_points.h.
|
static |
Definition at line 61 of file lm_pain_points.h.