tesseract::AssociateUtils Class Reference
#include <associate.h>
List of all members.
Static Public Member Functions |
static void | ComputeStats (int col, int row, const AssociateStats *parent_stats, int parent_path_length, bool fixed_pitch, float max_char_wh_ratio, const DENORM *denorm, CHUNKS_RECORD *chunks_record, int debug_level, AssociateStats *stats) |
static int | GetChunksWidth (WIDTH_RECORD *width_record, int start_blob, int last_blob) |
static int | GetChunksGap (WIDTH_RECORD *width_record, int last_chunk) |
static float | FixedPitchWidthCost (float norm_width, float right_gap, bool end_pos, float max_char_wh_ratio) |
static float | FixedPitchGapCost (float norm_gap, bool end_pos) |
Static Public Attributes |
static const float | kMaxFixedPitchCharAspectRatio = 2.0f |
static const float | kMinGap = 0.03f |
Member Function Documentation
void tesseract::AssociateUtils::ComputeStats |
( |
int |
col, |
|
|
int |
row, |
|
|
const AssociateStats * |
parent_stats, |
|
|
int |
parent_path_length, |
|
|
bool |
fixed_pitch, |
|
|
float |
max_char_wh_ratio, |
|
|
const DENORM * |
denorm, |
|
|
CHUNKS_RECORD * |
chunks_record, |
|
|
int |
debug_level, |
|
|
AssociateStats * |
stats | |
|
) |
| | [static] |
static float tesseract::AssociateUtils::FixedPitchGapCost |
( |
float |
norm_gap, |
|
|
bool |
end_pos | |
|
) |
| | [inline, static] |
float tesseract::AssociateUtils::FixedPitchWidthCost |
( |
float |
norm_width, |
|
|
float |
right_gap, |
|
|
bool |
end_pos, |
|
|
float |
max_char_wh_ratio | |
|
) |
| | [static] |
static int tesseract::AssociateUtils::GetChunksGap |
( |
WIDTH_RECORD * |
width_record, |
|
|
int |
last_chunk | |
|
) |
| | [inline, static] |
int tesseract::AssociateUtils::GetChunksWidth |
( |
WIDTH_RECORD * |
width_record, |
|
|
int |
start_blob, |
|
|
int |
last_blob | |
|
) |
| | [static] |
Member Data Documentation
The documentation for this class was generated from the following files: