#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 38 of file imagedata.cpp.
int IntCastRounded(double x)
T ClipToRange(const T &x, const T &lower_bound, const T &upper_bound)
Definition at line 45 of file imagedata.cpp.
49 for (
int f = 0; f < features.
size(); ++f) {
50 if (features[f].x_ > *max_x) *max_x = features[f].x_;
51 if (features[f].y_ > *max_y) *max_y = features[f].y_;
| bool tesseract::WordFeature::DeSerialize |
( |
bool |
swap, |
|
|
FILE * |
fp |
|
) |
| |
Definition at line 81 of file imagedata.cpp.
82 if (fread(&x_,
sizeof(x_), 1, fp) != 1)
return false;
84 if (fread(&y_,
sizeof(y_), 1, fp) != 1)
return false;
85 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 56 of file imagedata.cpp.
58 #ifndef GRAPHICS_DISABLED
59 for (
int f = 0; f < features.
size(); ++f) {
60 FCOORD pos(features[f].x_, features[f].y_);
int IntCastRounded(double x)
void SetCursor(int x, int y)
void DrawTo(int x, int y)
void from_direction(uinT8 direction)
| bool tesseract::WordFeature::Serialize |
( |
FILE * |
fp | ) |
const |
Definition at line 73 of file imagedata.cpp.
74 if (fwrite(&x_,
sizeof(x_), 1, fp) != 1)
return false;
75 if (fwrite(&y_,
sizeof(y_), 1, fp) != 1)
return false;
76 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: