27 extern BOOL_VAR_H(disable_character_fragments, FALSE,
28 "Do not include character fragments in the" 29 " results of the classifier");
31 extern INT_VAR_H(classify_integer_matcher_multiplier, 10,
32 "Integer Matcher Multiplier 0-255: ");
56 extern INT_VAR_H(classify_adapt_proto_thresh, 230,
57 "Threshold for good protos during adaptive 0-255: ");
59 extern INT_VAR_H(classify_adapt_feature_thresh, 230,
60 "Threshold for good features during adaptive 0-255: ");
66 #define SE_TABLE_BITS 9 67 #define SE_TABLE_SIZE 512 70 uint8_t feature_evidence_[MAX_NUM_CONFIGS];
71 int sum_feature_evidence_[MAX_NUM_CONFIGS];
72 uint8_t proto_evidence_[MAX_NUM_PROTOS][MAX_PROTO_INDEX];
74 void Clear(
const INT_CLASS class_template);
75 void ClearFeatureEvidence(
const INT_CLASS class_template);
76 void NormalizeSums(
INT_CLASS ClassTemplate, int16_t NumFeatures,
77 int32_t used_features);
78 void UpdateSumOfProtoEvidences(
79 INT_CLASS ClassTemplate, BIT_VECTOR ConfigMask, int16_t NumFeatures);
86 static const int kIntThetaFudge = 128;
88 static const int kEvidenceTableBits = 9;
90 static const int kIntEvidenceTruncBits = 14;
100 BIT_VECTOR ConfigMask,
104 int AdaptFeatureThreshold,
106 bool SeparateDebugWindows);
110 float ApplyCNCorrection(
float rating,
int blob_length,
111 int normalization_factor,
int matcher_multiplier);
113 int FindGoodProtos(
INT_CLASS ClassTemplate,
114 BIT_VECTOR ProtoMask,
115 BIT_VECTOR ConfigMask,
118 INT_FEATURE_ARRAY Features,
119 PROTO_ID *ProtoArray,
120 int AdaptProtoThreshold,
123 int FindBadFeatures(
INT_CLASS ClassTemplate,
124 BIT_VECTOR ProtoMask,
125 BIT_VECTOR ConfigMask,
128 INT_FEATURE_ARRAY Features,
129 FEATURE_ID *FeatureArray,
130 int AdaptFeatureThreshold,
134 int UpdateTablesForFeature(
136 BIT_VECTOR ProtoMask,
137 BIT_VECTOR ConfigMask,
143 int FindBestMatch(
INT_CLASS ClassTemplate,
147 #ifndef GRAPHICS_DISABLED 148 void DebugFeatureProtoError(
150 BIT_VECTOR ProtoMask,
151 BIT_VECTOR ConfigMask,
156 void DisplayProtoDebugInfo(
158 BIT_VECTOR ProtoMask,
159 BIT_VECTOR ConfigMask,
161 bool SeparateDebugWindows);
163 void DisplayFeatureDebugInfo(
165 BIT_VECTOR ProtoMask,
166 BIT_VECTOR ConfigMask,
169 int AdaptFeatureThreshold,
171 bool SeparateDebugWindows);
176 uint8_t similarity_evidence_table_[SE_TABLE_SIZE];
187 uint16_t ActualProtoNum,
189 BIT_VECTOR ConfigMask,
190 uint32_t ConfigWord);
192 void IMDebugConfigurationSum(
INT_FEATURE FeatureNum,
193 uint8_t *FeatureEvidence,
194 int32_t ConfigCount);
196 void HeapSort (
int n,
int ra[],
int rb[]);
uint32_t mult_trunc_shift_bits_
Definition: intmatcher.h:178
uint32_t evidence_mult_mask_
Definition: intmatcher.h:180
Definition: intmatcher.h:83
uint32_t evidence_table_mask_
Definition: intmatcher.h:177
Definition: baseapi.cpp:94
uint32_t table_trunc_shift_bits_
Definition: intmatcher.h:179
Definition: intproto.h:105
CLASS_ID Class
Definition: intmatcher.h:49
Definition: intmatcher.h:69
tesseract::IntParam * classify_debug_level_
Definition: intmatcher.h:175
float Rating
Definition: intmatcher.h:48
static const float kSimilarityCenter
Definition: intmatcher.h:94
CP_RESULT_STRUCT()
Definition: intmatcher.h:46
Definition: intproto.h:132
Definition: shapetable.h:41
Definition: intmatcher.h:45
static const float kSEExponentialMultiplier
Definition: intmatcher.h:92