#include <imagedata.h>
Definition at line 87 of file imagedata.h.
◆ FromWordFeatures()
Definition at line 96 of file imagedata.cpp.
99 for (
int i = 0; i < word_features.
size(); ++i) {
101 f.x = word_features[i].x();
102 f.y = word_features[i].y();
103 f.dir = word_features[i].dir();
◆ SortByXBucket()
int tesseract::FloatWordFeature::SortByXBucket |
( |
const void * |
v1, |
|
|
const void * |
v2 |
|
) |
| |
|
static |
Definition at line 111 of file imagedata.cpp.
112 const auto* f1 = static_cast<const FloatWordFeature*>(v1);
113 const auto* f2 = static_cast<const FloatWordFeature*>(v2);
114 int x_diff = f1->x_bucket - f2->x_bucket;
115 if (x_diff == 0)
return f1->y - f2->y;
◆ dir
float tesseract::FloatWordFeature::dir |
float tesseract::FloatWordFeature::x |
◆ x_bucket
int tesseract::FloatWordFeature::x_bucket |
float tesseract::FloatWordFeature::y |
The documentation for this struct was generated from the following files: