#include <imagedata.h>
Definition at line 57 of file imagedata.h.
◆ WordFeature() [1/2]
tesseract::WordFeature::WordFeature |
( |
| ) |
|
Definition at line 48 of file imagedata.cpp.
48 : x_(0), y_(0), dir_(0) {
49}
◆ WordFeature() [2/2]
tesseract::WordFeature::WordFeature |
( |
const FCOORD & |
fcoord, |
|
|
uint8_t |
dir |
|
) |
| |
Definition at line 51 of file imagedata.cpp.
55}
int IntCastRounded(double x)
◆ ComputeSize()
Definition at line 58 of file imagedata.cpp.
59 {
60 *max_x = 0;
61 *max_y = 0;
62 for (
int f = 0; f < features.
size(); ++f) {
63 if (features[f].x_ > *max_x) *max_x = features[f].x_;
64 if (features[f].y_ > *max_y) *max_y = features[f].y_;
65 }
66}
◆ DeSerialize()
bool tesseract::WordFeature::DeSerialize |
( |
bool |
swap, |
|
|
FILE * |
fp |
|
) |
| |
Definition at line 93 of file imagedata.cpp.
93 {
98}
void ReverseN(void *ptr, int num_bytes)
bool DeSerialize(FILE *fp, char *data, size_t n)
◆ dir()
int tesseract::WordFeature::dir |
( |
| ) |
const |
|
inline |
◆ Draw()
Definition at line 69 of file imagedata.cpp.
70 {
71#ifndef GRAPHICS_DISABLED
72 for (
int f = 0; f < features.
size(); ++f) {
73 FCOORD pos(features[f].x_, features[f].y_);
75 dir.from_direction(features[f].dir_);
81 }
82#endif
83}
void DrawTo(int x, int y)
void SetCursor(int x, int y)
◆ Serialize()
bool tesseract::WordFeature::Serialize |
( |
FILE * |
fp | ) |
const |
Definition at line 86 of file imagedata.cpp.
86 {
90}
bool Serialize(FILE *fp, const char *data, size_t n)
◆ x()
int tesseract::WordFeature::x |
( |
| ) |
const |
|
inline |
◆ y()
int tesseract::WordFeature::y |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following files: