|
Tesseract
3.02
|
#include <shapeclassifier.h>
Public Member Functions | |
| ShapeRating () | |
| ShapeRating (int s, float r) | |
Static Public Member Functions | |
| static int | SortDescendingRating (const void *t1, const void *t2) |
Public Attributes | |
| int | shape_id |
| float | rating |
| float | raw |
| float | font |
Definition at line 36 of file shapeclassifier.h.
| tesseract::ShapeRating::ShapeRating | ( | ) | [inline] |
| tesseract::ShapeRating::ShapeRating | ( | int | s, |
| float | r | ||
| ) | [inline] |
| static int tesseract::ShapeRating::SortDescendingRating | ( | const void * | t1, |
| const void * | t2 | ||
| ) | [inline, static] |
Definition at line 42 of file shapeclassifier.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 62 of file shapeclassifier.h.
Definition at line 58 of file shapeclassifier.h.
Definition at line 60 of file shapeclassifier.h.
Definition at line 55 of file shapeclassifier.h.