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

#include <intfeaturespace.h>

Public Member Functions

 IntFeatureSpace ()
 
void Init (uint8_t xbuckets, uint8_t ybuckets, uint8_t thetabuckets)
 
bool Serialize (FILE *fp) const
 
int Size () const
 
INT_FEATURE_STRUCT PositionFromIndex (int index) const
 
int Index (const INT_FEATURE_STRUCT &f) const
 
void IndexFeatures (const INT_FEATURE_STRUCT *features, int num_features, GenericVector< int > *mapped_features) const
 
void IndexAndSortFeatures (const INT_FEATURE_STRUCT *features, int num_features, GenericVector< int > *sorted_features) const
 
int XYToFeatureIndex (int x, int y) const
 

Protected Member Functions

int XBucket (int x) const
 
int YBucket (int y) const
 
int ThetaBucket (int theta) const
 
INT_FEATURE_STRUCT PositionFromBuckets (int x, int y, int theta) const
 

Protected Attributes

uint8_t x_buckets_
 
uint8_t y_buckets_
 
uint8_t theta_buckets_
 

Constructor & Destructor Documentation

◆ IntFeatureSpace()

tesseract::IntFeatureSpace::IntFeatureSpace ( )

Member Function Documentation

◆ Index()

int tesseract::IntFeatureSpace::Index ( const INT_FEATURE_STRUCT f) const
inline

◆ IndexAndSortFeatures()

void tesseract::IntFeatureSpace::IndexAndSortFeatures ( const INT_FEATURE_STRUCT features,
int  num_features,
GenericVector< int > *  sorted_features 
) const

◆ IndexFeatures()

void tesseract::IntFeatureSpace::IndexFeatures ( const INT_FEATURE_STRUCT features,
int  num_features,
GenericVector< int > *  mapped_features 
) const

◆ Init()

void tesseract::IntFeatureSpace::Init ( uint8_t  xbuckets,
uint8_t  ybuckets,
uint8_t  thetabuckets 
)

◆ PositionFromBuckets()

INT_FEATURE_STRUCT tesseract::IntFeatureSpace::PositionFromBuckets ( int  x,
int  y,
int  theta 
) const
protected

◆ PositionFromIndex()

INT_FEATURE_STRUCT tesseract::IntFeatureSpace::PositionFromIndex ( int  index) const

◆ Serialize()

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

◆ Size()

int tesseract::IntFeatureSpace::Size ( ) const
inline

◆ ThetaBucket()

int tesseract::IntFeatureSpace::ThetaBucket ( int  theta) const
inlineprotected

◆ XBucket()

int tesseract::IntFeatureSpace::XBucket ( int  x) const
inlineprotected

◆ XYToFeatureIndex()

int tesseract::IntFeatureSpace::XYToFeatureIndex ( int  x,
int  y 
) const

◆ YBucket()

int tesseract::IntFeatureSpace::YBucket ( int  y) const
inlineprotected

Member Data Documentation

◆ theta_buckets_

uint8_t tesseract::IntFeatureSpace::theta_buckets_
protected

◆ x_buckets_

uint8_t tesseract::IntFeatureSpace::x_buckets_
protected

◆ y_buckets_

uint8_t tesseract::IntFeatureSpace::y_buckets_
protected

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