|
tesseract
4.00.00dev
|
#include <lm_pain_points.h>
Public Member Functions | |
| LMPainPoints (int max, float rat, bool fp, const Dict *d, int deb) | |
| ~LMPainPoints () | |
| 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 | GenerateForBlamer (double max_char_wh_ratio, WERD_RES *word_res, int col, int row) |
| 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 53 of file lm_pain_points.h.
|
inline |
Definition at line 66 of file lm_pain_points.h.
|
inline |
Definition at line 69 of file lm_pain_points.h.
|
inline |
Definition at line 82 of file lm_pain_points.h.
| LMPainPointsType tesseract::LMPainPoints::Deque | ( | MATRIX_COORD * | pp, |
| float * | priority | ||
| ) |
Definition at line 37 of file lm_pain_points.cpp.
|
inline |
Definition at line 99 of file lm_pain_points.h.
| void tesseract::LMPainPoints::GenerateFromAmbigs | ( | const DANGERR & | fixpt, |
| ViterbiStateEntry * | vse, | ||
| WERD_RES * | word_res | ||
| ) |
Definition at line 130 of file lm_pain_points.cpp.
| void tesseract::LMPainPoints::GenerateFromPath | ( | float | rating_cert_scale, |
| ViterbiStateEntry * | vse, | ||
| WERD_RES * | word_res | ||
| ) |
Definition at line 68 of file lm_pain_points.cpp.
| void tesseract::LMPainPoints::GenerateInitial | ( | WERD_RES * | word_res | ) |
Definition at line 48 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 146 of file lm_pain_points.cpp.
|
inline |
Definition at line 72 of file lm_pain_points.h.
|
inlinestatic |
Definition at line 62 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 209 of file lm_pain_points.cpp.
|
static |
Definition at line 56 of file lm_pain_points.h.
|
static |
Definition at line 60 of file lm_pain_points.h.