20 #ifndef TESSERACT_CLASSIFY_INTFEATURESPACE_H_ 21 #define TESSERACT_CLASSIFY_INTFEATURESPACE_H_ 96 return Modulo(bucket, theta_buckets_);
109 #endif // TESSERACT_CLASSIFY_INTFEATURESPACE_H_
INT_FEATURE_STRUCT PositionFromIndex(int index) const
void IndexFeatures(const INT_FEATURE_STRUCT *features, int num_features, GenericVector< int > *mapped_features) const
bool Serialize(FILE *fp) const
int ThetaBucket(int theta) const
int Index(const INT_FEATURE_STRUCT &f) const
void Init(uinT8 xbuckets, uinT8 ybuckets, uinT8 thetabuckets)
int XYToFeatureIndex(int x, int y) const
void IndexAndSortFeatures(const INT_FEATURE_STRUCT *features, int num_features, GenericVector< int > *sorted_features) const
const int kBoostDirBuckets
T ClipToRange(const T &x, const T &lower_bound, const T &upper_bound)
const int kIntFeatureExtent
bool DeSerialize(bool swap, FILE *fp)
const int kBoostXYBuckets
INT_FEATURE_STRUCT PositionFromBuckets(int x, int y, int theta) const
int DivRounded(int a, int b)