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 106 int AdaptFeatureThreshold,
108 bool SeparateDebugWindows);
113 int normalization_factor,
int matcher_multiplier);
122 int AdaptProtoThreshold,
132 int AdaptFeatureThreshold,
136 int UpdateTablesForFeature(
145 int FindBestMatch(
INT_CLASS ClassTemplate,
149 #ifndef GRAPHICS_DISABLED 150 void DebugFeatureProtoError(
158 void DisplayProtoDebugInfo(
163 bool SeparateDebugWindows);
165 void DisplayFeatureDebugInfo(
171 int AdaptFeatureThreshold,
173 bool SeparateDebugWindows);
179 uinT32 evidence_table_mask_;
180 uinT32 mult_trunc_shift_bits_;
181 uinT32 table_trunc_shift_bits_;
183 uinT32 evidence_mult_mask_;
196 uinT8 *FeatureEvidence,
199 void HeapSort (
int n,
register int ra[],
register int rb[]);
int FindGoodProtos(INT_CLASS ClassTemplate, BIT_VECTOR ProtoMask, BIT_VECTOR ConfigMask, uinT16 BlobLength, inT16 NumFeatures, INT_FEATURE_ARRAY Features, PROTO_ID *ProtoArray, int AdaptProtoThreshold, int Debug)
uinT8 feature_evidence_[MAX_NUM_CONFIGS]
static const int kEvidenceTableBits
int classify_adapt_proto_thresh
void Init(tesseract::IntParam *classify_debug_level)
void UpdateSumOfProtoEvidences(INT_CLASS ClassTemplate, BIT_VECTOR ConfigMask, inT16 NumFeatures)
INT_FEATURE_STRUCT INT_FEATURE_ARRAY[MAX_NUM_INT_FEATURES]
#define INT_VAR_H(name, val, comment)
void Match(INT_CLASS ClassTemplate, BIT_VECTOR ProtoMask, BIT_VECTOR ConfigMask, inT16 NumFeatures, const INT_FEATURE_STRUCT *Features, tesseract::UnicharRating *Result, int AdaptFeatureThreshold, int Debug, bool SeparateDebugWindows)
int sum_feature_evidence_[MAX_NUM_CONFIGS]
bool disable_character_fragments
int classify_integer_matcher_multiplier
void HeapSort(int n, register int ra[], register int rb[])
void IMDebugConfigurationSum(INT_FEATURE FeatureNum, uinT8 *FeatureEvidence, inT32 ConfigCount)
void Clear(const INT_CLASS class_template)
void IMDebugConfiguration(INT_FEATURE FeatureNum, uinT16 ActualProtoNum, uinT8 Evidence, BIT_VECTOR ConfigMask, uinT32 ConfigWord)
int classify_adapt_feature_thresh
#define BOOL_VAR_H(name, val, comment)
static const float kSimilarityCenter
static const int kIntEvidenceTruncBits
uinT8 proto_evidence_[MAX_NUM_PROTOS][MAX_PROTO_INDEX]
float ApplyCNCorrection(float rating, int blob_length, int normalization_factor, int matcher_multiplier)
static const int kIntThetaFudge
void ClearFeatureEvidence(const INT_CLASS class_template)
void NormalizeSums(INT_CLASS ClassTemplate, inT16 NumFeatures, inT32 used_features)
static const float kSEExponentialMultiplier
int FindBadFeatures(INT_CLASS ClassTemplate, BIT_VECTOR ProtoMask, BIT_VECTOR ConfigMask, uinT16 BlobLength, inT16 NumFeatures, INT_FEATURE_ARRAY Features, FEATURE_ID *FeatureArray, int AdaptFeatureThreshold, int Debug)