tesseract
5.0.0-alpha-619-ge9db
|
Go to the documentation of this file.
20 #ifndef TESSERACT_CLASSIFY_INTFEATURESPACE_H_
21 #define TESSERACT_CLASSIFY_INTFEATURESPACE_H_
44 void Init(uint8_t xbuckets, uint8_t ybuckets, uint8_t thetabuckets);
104 #endif // TESSERACT_CLASSIFY_INTFEATURESPACE_H_
T ClipToRange(const T &x, const T &lower_bound, const T &upper_bound)
int ThetaBucket(int theta) const
void IndexAndSortFeatures(const INT_FEATURE_STRUCT *features, int num_features, GenericVector< int > *sorted_features) const
void Init(uint8_t xbuckets, uint8_t ybuckets, uint8_t thetabuckets)
const int kBoostDirBuckets
const int kBoostXYBuckets
INT_FEATURE_STRUCT PositionFromBuckets(int x, int y, int theta) const
int DivRounded(int a, int b)
INT_FEATURE_STRUCT PositionFromIndex(int index) const
bool Serialize(FILE *fp) const
int XYToFeatureIndex(int x, int y) const
const int kIntFeatureExtent
int Index(const INT_FEATURE_STRUCT &f) const
void IndexFeatures(const INT_FEATURE_STRUCT *features, int num_features, GenericVector< int > *mapped_features) const