|
tesseract 3.04.01
|
#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 93 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 102 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 133 of file shapetable.h.
Definition at line 129 of file shapetable.h.
Definition at line 131 of file shapetable.h.
Definition at line 125 of file shapetable.h.
Definition at line 127 of file shapetable.h.
Definition at line 122 of file shapetable.h.