#include <shapetable.h>
Definition at line 93 of file shapetable.h.
◆ ShapeRating() [1/2]
tesseract::ShapeRating::ShapeRating |
( |
| ) |
|
|
inline |
◆ ShapeRating() [2/2]
tesseract::ShapeRating::ShapeRating |
( |
int |
s, |
|
|
float |
r |
|
) |
| |
|
inline |
◆ FirstResultWithUnichar()
Definition at line 40 of file shapetable.cpp.
44 for (
int r = 0; r < results.
size(); ++r) {
45 const int shape_id = results[r].shape_id;
46 const Shape& shape = shape_table.GetShape(
shape_id);
47 if (shape.ContainsUnichar(unichar_id)) {
◆ SortDescendingRating()
static int tesseract::ShapeRating::SortDescendingRating |
( |
const void * |
t1, |
|
|
const void * |
t2 |
|
) |
| |
|
inlinestatic |
Definition at line 102 of file shapetable.h.
105 if (a->rating > b->rating) {
107 }
else if (a->rating < b->rating) {
110 return a->shape_id - b->shape_id;
◆ broken
bool tesseract::ShapeRating::broken |
◆ font
float tesseract::ShapeRating::font |
◆ joined
bool tesseract::ShapeRating::joined |
◆ rating
float tesseract::ShapeRating::rating |
◆ raw
float tesseract::ShapeRating::raw |
◆ shape_id
int tesseract::ShapeRating::shape_id |
The documentation for this struct was generated from the following files: