tesseract
3.03
|
#include <shapetable.h>
Public Member Functions | |
ShapeRating () | |
ShapeRating (int s, float r) | |
Static Public Member Functions | |
static int | SortDescendingRating (const void *t1, const void *t2) |
static int | FirstResultWithUnichar (const GenericVector< ShapeRating > &results, const ShapeTable &shape_table, UNICHAR_ID unichar_id) |
Public Attributes | |
int | shape_id |
float | rating |
float | raw |
float | font |
bool | joined |
bool | broken |
Definition at line 78 of file shapetable.h.
tesseract::ShapeRating::ShapeRating | ( | ) | [inline] |
tesseract::ShapeRating::ShapeRating | ( | int | s, |
float | r | ||
) | [inline] |
int tesseract::ShapeRating::FirstResultWithUnichar | ( | const GenericVector< ShapeRating > & | results, |
const ShapeTable & | shape_table, | ||
UNICHAR_ID | unichar_id | ||
) | [static] |
Definition at line 38 of file shapetable.cpp.
static int tesseract::ShapeRating::SortDescendingRating | ( | const void * | t1, |
const void * | t2 | ||
) | [inline, static] |
Definition at line 87 of file shapetable.h.
{ const ShapeRating* a = reinterpret_cast<const ShapeRating *>(t1); const ShapeRating* b = reinterpret_cast<const ShapeRating *>(t2); if (a->rating > b->rating) { return -1; } else if (a->rating < b->rating) { return 1; } else { return a->shape_id - b->shape_id; } }
Definition at line 118 of file shapetable.h.
Definition at line 114 of file shapetable.h.
Definition at line 116 of file shapetable.h.
Definition at line 110 of file shapetable.h.
Definition at line 112 of file shapetable.h.
Definition at line 107 of file shapetable.h.