tesseract
4.0.0-1-g2a2b
|
#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 57 of file lm_pain_points.h.
|
inline |
Definition at line 70 of file lm_pain_points.h.
|
inline |
Definition at line 73 of file lm_pain_points.h.
|
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.
|
inline |
Definition at line 103 of file lm_pain_points.h.
void tesseract::LMPainPoints::GenerateFromAmbigs | ( | const DANGERR & | fixpt, |
ViterbiStateEntry * | vse, | ||
WERD_RES * | word_res | ||
) |
Definition at line 132 of file lm_pain_points.cpp.
void tesseract::LMPainPoints::GenerateFromPath | ( | float | rating_cert_scale, |
ViterbiStateEntry * | vse, | ||
WERD_RES * | word_res | ||
) |
Definition at line 70 of file lm_pain_points.cpp.
void tesseract::LMPainPoints::GenerateInitial | ( | WERD_RES * | word_res | ) |
Definition at line 50 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 148 of file lm_pain_points.cpp.
|
inline |
Definition at line 76 of file lm_pain_points.h.
|
inlinestatic |
Definition at line 66 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 211 of file lm_pain_points.cpp.
|
static |
Definition at line 60 of file lm_pain_points.h.
|
static |
Definition at line 64 of file lm_pain_points.h.