tesseract  v4.0.0-17-g361f3264
Open Source OCR Engine
tesseract::WordFeature Class Reference

#include <imagedata.h>

Public Member Functions

 WordFeature ()
 
 WordFeature (const FCOORD &fcoord, uint8_t dir)
 
int x () const
 
int y () const
 
int dir () const
 
bool Serialize (FILE *fp) const
 
bool DeSerialize (bool swap, FILE *fp)
 

Static Public Member Functions

static void ComputeSize (const GenericVector< WordFeature > &features, int *max_x, int *max_y)
 
static void Draw (const GenericVector< WordFeature > &features, ScrollView *window)
 

Private Attributes

int16_t x_
 
uint8_t y_
 
uint8_t dir_
 

Constructor & Destructor Documentation

◆ WordFeature() [1/2]

tesseract::WordFeature::WordFeature ( )

◆ WordFeature() [2/2]

tesseract::WordFeature::WordFeature ( const FCOORD fcoord,
uint8_t  dir 
)

Member Function Documentation

◆ ComputeSize()

void tesseract::WordFeature::ComputeSize ( const GenericVector< WordFeature > &  features,
int *  max_x,
int *  max_y 
)
static

◆ DeSerialize()

bool tesseract::WordFeature::DeSerialize ( bool  swap,
FILE *  fp 
)

◆ dir()

int tesseract::WordFeature::dir ( ) const
inline

◆ Draw()

void tesseract::WordFeature::Draw ( const GenericVector< WordFeature > &  features,
ScrollView window 
)
static

◆ Serialize()

bool tesseract::WordFeature::Serialize ( FILE *  fp) const

◆ x()

int tesseract::WordFeature::x ( ) const
inline

◆ y()

int tesseract::WordFeature::y ( ) const
inline

Member Data Documentation

◆ dir_

uint8_t tesseract::WordFeature::dir_
private

◆ x_

int16_t tesseract::WordFeature::x_
private

◆ y_

uint8_t tesseract::WordFeature::y_
private

The documentation for this class was generated from the following files: