#include <imagedata.h>
Definition at line 57 of file imagedata.h.
◆ WordFeature() [1/2]
tesseract::WordFeature::WordFeature |
( |
| ) |
|
◆ WordFeature() [2/2]
tesseract::WordFeature::WordFeature |
( |
const FCOORD & |
fcoord, |
|
|
uint8_t |
dir |
|
) |
| |
◆ ComputeSize()
Definition at line 58 of file imagedata.cpp.
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_;
◆ DeSerialize()
bool tesseract::WordFeature::DeSerialize |
( |
bool |
swap, |
|
|
FILE * |
fp |
|
) |
| |
Definition at line 93 of file imagedata.cpp.
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.
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_);
void DrawTo(int x, int y)
void SetCursor(int x, int y)
int IntCastRounded(double x)
◆ Serialize()
bool tesseract::WordFeature::Serialize |
( |
FILE * |
fp | ) |
const |
Definition at line 86 of file imagedata.cpp.
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: