28 "Do not include character fragments in the" 29 " results of the classifier");
32 "Integer Matcher Multiplier 0-255: ");
57 "Threshold for good protos during adaptive 0-255: ");
60 "Threshold for good features during adaptive 0-255: ");
66 #define SE_TABLE_BITS 9 67 #define SE_TABLE_SIZE 512 77 int32_t used_features);
104 int AdaptFeatureThreshold,
106 bool SeparateDebugWindows);
111 int normalization_factor,
int matcher_multiplier);
120 int AdaptProtoThreshold,
130 int AdaptFeatureThreshold,
134 int UpdateTablesForFeature(
143 int FindBestMatch(
INT_CLASS ClassTemplate,
147 #ifndef GRAPHICS_DISABLED 148 void DebugFeatureProtoError(
156 void DisplayProtoDebugInfo(
161 bool SeparateDebugWindows);
163 void DisplayFeatureDebugInfo(
169 int AdaptFeatureThreshold,
171 bool SeparateDebugWindows);
177 uint32_t evidence_table_mask_;
178 uint32_t mult_trunc_shift_bits_;
179 uint32_t table_trunc_shift_bits_;
180 uint32_t evidence_mult_mask_;
187 uint16_t ActualProtoNum,
190 uint32_t ConfigWord);
193 uint8_t *FeatureEvidence,
194 int32_t ConfigCount);
196 void HeapSort (
int n,
int ra[],
int rb[]);
void NormalizeSums(INT_CLASS ClassTemplate, int16_t NumFeatures, int32_t used_features)
#define INT_VAR_H(name, val, comment)
static const float kSEExponentialMultiplier
static const int kIntEvidenceTruncBits
void IMDebugConfigurationSum(INT_FEATURE FeatureNum, uint8_t *FeatureEvidence, int32_t ConfigCount)
#define BOOL_VAR_H(name, val, comment)
int FindGoodProtos(INT_CLASS ClassTemplate, BIT_VECTOR ProtoMask, BIT_VECTOR ConfigMask, uint16_t BlobLength, int16_t NumFeatures, INT_FEATURE_ARRAY Features, PROTO_ID *ProtoArray, int AdaptProtoThreshold, int Debug)
static const float kSimilarityCenter
static const int kEvidenceTableBits
void UpdateSumOfProtoEvidences(INT_CLASS ClassTemplate, BIT_VECTOR ConfigMask, int16_t NumFeatures)
void Match(INT_CLASS ClassTemplate, BIT_VECTOR ProtoMask, BIT_VECTOR ConfigMask, int16_t NumFeatures, const INT_FEATURE_STRUCT *Features, tesseract::UnicharRating *Result, int AdaptFeatureThreshold, int Debug, bool SeparateDebugWindows)
void HeapSort(int n, int ra[], int rb[])
void Clear(const INT_CLASS class_template)
void ClearFeatureEvidence(const INT_CLASS class_template)
float ApplyCNCorrection(float rating, int blob_length, int normalization_factor, int matcher_multiplier)
void IMDebugConfiguration(INT_FEATURE FeatureNum, uint16_t ActualProtoNum, uint8_t Evidence, BIT_VECTOR ConfigMask, uint32_t ConfigWord)
IntegerMatcher(tesseract::IntParam *classify_debug_level)
int classify_adapt_proto_thresh
uint8_t feature_evidence_[MAX_NUM_CONFIGS]
INT_FEATURE_STRUCT INT_FEATURE_ARRAY[MAX_NUM_INT_FEATURES]
static const int kIntThetaFudge
int FindBadFeatures(INT_CLASS ClassTemplate, BIT_VECTOR ProtoMask, BIT_VECTOR ConfigMask, uint16_t BlobLength, int16_t NumFeatures, INT_FEATURE_ARRAY Features, FEATURE_ID *FeatureArray, int AdaptFeatureThreshold, int Debug)
bool disable_character_fragments
int classify_adapt_feature_thresh
int sum_feature_evidence_[MAX_NUM_CONFIGS]
int classify_integer_matcher_multiplier
uint8_t proto_evidence_[MAX_NUM_PROTOS][MAX_PROTO_INDEX]