#include <imagedata.h>
Definition at line 40 of file imagedata.h.
tesseract::WordFeature::WordFeature |
( |
| ) |
|
tesseract::WordFeature::WordFeature |
( |
const FCOORD & |
fcoord, |
|
|
uinT8 |
dir |
|
) |
| |
Definition at line 34 of file imagedata.cpp.
T ClipToRange(const T &x, const T &lower_bound, const T &upper_bound)
int IntCastRounded(double x)
Definition at line 41 of file imagedata.cpp.
45 for (
int f = 0; f < features.
size(); ++f) {
46 if (features[f].x_ > *max_x) *max_x = features[f].x_;
47 if (features[f].y_ > *max_y) *max_y = features[f].y_;
bool tesseract::WordFeature::DeSerialize |
( |
bool |
swap, |
|
|
FILE * |
fp |
|
) |
| |
Definition at line 77 of file imagedata.cpp.
78 if (fread(&x_,
sizeof(x_), 1, fp) != 1)
return false;
80 if (fread(&y_,
sizeof(y_), 1, fp) != 1)
return false;
81 if (fread(&dir_,
sizeof(dir_), 1, fp) != 1)
return false;
void ReverseN(void *ptr, int num_bytes)
int tesseract::WordFeature::dir |
( |
| ) |
const |
|
inline |
Definition at line 52 of file imagedata.cpp.
54 #ifndef GRAPHICS_DISABLED
55 for (
int f = 0; f < features.
size(); ++f) {
56 FCOORD pos(features[f].x_, features[f].y_);
void DrawTo(int x, int y)
void SetCursor(int x, int y)
void from_direction(uinT8 direction)
int IntCastRounded(double x)
bool tesseract::WordFeature::Serialize |
( |
FILE * |
fp | ) |
const |
Definition at line 69 of file imagedata.cpp.
70 if (fwrite(&x_,
sizeof(x_), 1, fp) != 1)
return false;
71 if (fwrite(&y_,
sizeof(y_), 1, fp) != 1)
return false;
72 if (fwrite(&dir_,
sizeof(dir_), 1, fp) != 1)
return false;
int tesseract::WordFeature::x |
( |
| ) |
const |
|
inline |
int tesseract::WordFeature::y |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following files: