tesseract
5.0.0-alpha-619-ge9db
|
Go to the documentation of this file.
27 #define MAX_INT_CHAR_NORM (INT_CHAR_NORM_RANGE - 1)
45 memset(char_norm_array, 0,
sizeof(*char_norm_array) *
unicharset.
size());
63 uint8_t* char_norm_array) {
65 if (i < PreTrainedTemplates->NumClasses) {
99 for (
int Fid = 0; Fid < Features->
NumFeatures; Fid++) {
108 IntFeatures[Fid].CP_misses = 0;
T ClipToRange(const T &x, const T &lower_bound, const T &upper_bound)
void ClearCharNormArray(uint8_t *char_norm_array)
#define MAX_INT_CHAR_NORM
uint8_t Bucket8For(float param, float offset, int num_buckets)
float ComputeNormMatch(CLASS_ID ClassId, const FEATURE_STRUCT &feature, bool DebugMatch)
#define INT_CHAR_NORM_RANGE
uint8_t CircBucketFor(float param, float offset, int num_buckets)
void ComputeIntFeatures(FEATURE_SET Features, INT_FEATURE_ARRAY IntFeatures)
INT_FEATURE_STRUCT INT_FEATURE_ARRAY[MAX_NUM_INT_FEATURES]
void ComputeIntCharNormArray(const FEATURE_STRUCT &norm_feature, uint8_t *char_norm_array)