tesseract-doxygen/classify/intmatcher.h File Reference

#include "varable.h"
#include "intproto.h"
#include "cutoffs.h"

Go to the source code of this file.

Classes

struct  INT_RESULT_STRUCT
struct  CP_RESULT_STRUCT

Typedefs

typedef struct INT_RESULT_STRUCTINT_RESULT
typedef CP_RESULT_STRUCT CLASS_PRUNER_RESULTS [MAX_NUM_CLASSES]
typedef uinT8 CLASS_NORMALIZATION_ARRAY [MAX_NUM_CLASSES]

Functions

void IntegerMatcher (INT_CLASS ClassTemplate, BIT_VECTOR ProtoMask, BIT_VECTOR ConfigMask, uinT16 BlobLength, inT16 NumFeatures, INT_FEATURE_ARRAY Features, uinT8 NormalizationFactor, INT_RESULT Result, int Debug)
int FindGoodProtos (INT_CLASS ClassTemplate, BIT_VECTOR ProtoMask, BIT_VECTOR ConfigMask, uinT16 BlobLength, inT16 NumFeatures, INT_FEATURE_ARRAY Features, PROTO_ID *ProtoArray, int Debug)
int FindBadFeatures (INT_CLASS ClassTemplate, BIT_VECTOR ProtoMask, BIT_VECTOR ConfigMask, uinT16 BlobLength, inT16 NumFeatures, INT_FEATURE_ARRAY Features, FEATURE_ID *FeatureArray, int Debug)
void InitIntegerMatcher ()
void PrintIntMatcherStats (FILE *f)
void SetProtoThresh (FLOAT32 Threshold)
void SetFeatureThresh (FLOAT32 Threshold)
void SetBaseLineMatch ()
void SetCharNormMatch ()
void IMClearTables (INT_CLASS ClassTemplate, int SumOfFeatureEvidence[MAX_NUM_CONFIGS], uinT8 ProtoEvidence[MAX_NUM_PROTOS][MAX_PROTO_INDEX])
void IMClearFeatureEvidenceTable (uinT8 FeatureEvidence[MAX_NUM_CONFIGS], int NumConfigs)
void IMDebugConfiguration (INT_FEATURE FeatureNum, uinT16 ActualProtoNum, uinT8 Evidence, BIT_VECTOR ConfigMask, uinT32 ConfigWord)
void IMDebugConfigurationSum (INT_FEATURE FeatureNum, uinT8 *FeatureEvidence, inT32 ConfigCount)
int IMUpdateTablesForFeature (INT_CLASS ClassTemplate, BIT_VECTOR ProtoMask, BIT_VECTOR ConfigMask, int FeatureNum, INT_FEATURE Feature, uinT8 FeatureEvidence[MAX_NUM_CONFIGS], int SumOfFeatureEvidence[MAX_NUM_CONFIGS], uinT8 ProtoEvidence[MAX_NUM_PROTOS][MAX_PROTO_INDEX], int Debug)
void IMDebugFeatureProtoError (INT_CLASS ClassTemplate, BIT_VECTOR ProtoMask, BIT_VECTOR ConfigMask, int SumOfFeatureEvidence[MAX_NUM_CONFIGS], uinT8 ProtoEvidence[MAX_NUM_PROTOS][MAX_PROTO_INDEX], inT16 NumFeatures, int Debug)
void IMDisplayProtoDebugInfo (INT_CLASS ClassTemplate, BIT_VECTOR ProtoMask, BIT_VECTOR ConfigMask, uinT8 ProtoEvidence[MAX_NUM_PROTOS][MAX_PROTO_INDEX], int Debug)
void IMDisplayFeatureDebugInfo (INT_CLASS ClassTemplate, BIT_VECTOR ProtoMask, BIT_VECTOR ConfigMask, inT16 NumFeatures, INT_FEATURE_ARRAY Features, int Debug)
void IMUpdateSumOfProtoEvidences (INT_CLASS ClassTemplate, BIT_VECTOR ConfigMask, int SumOfFeatureEvidence[MAX_NUM_CONFIGS], uinT8 ProtoEvidence[MAX_NUM_PROTOS][MAX_PROTO_INDEX], inT16 NumFeatures)
void IMNormalizeSumOfEvidences (INT_CLASS ClassTemplate, int SumOfFeatureEvidence[MAX_NUM_CONFIGS], inT16 NumFeatures, inT32 used_features)
int IMFindBestMatch (INT_CLASS ClassTemplate, int SumOfFeatureEvidence[MAX_NUM_CONFIGS], uinT16 BlobLength, uinT8 NormalizationFactor, INT_RESULT Result)
void IMDebugBestMatch (int BestMatch, INT_RESULT Result, uinT16 BlobLength, uinT8 NormalizationFactor)
void HeapSort (int n, register int ra[], register int rb[])

Variables

bool disable_character_fragments = FALSE
int classify_integer_matcher_multiplier = 14
int classify_adapt_proto_thresh = 230
int classify_adapt_feature_thresh = 230
uinT32 EvidenceMultMask

Typedef Documentation

typedef uinT8 CLASS_NORMALIZATION_ARRAY[MAX_NUM_CLASSES]
typedef CP_RESULT_STRUCT CLASS_PRUNER_RESULTS[MAX_NUM_CLASSES]
typedef struct INT_RESULT_STRUCT * INT_RESULT

Function Documentation

int FindBadFeatures ( INT_CLASS  ClassTemplate,
BIT_VECTOR  ProtoMask,
BIT_VECTOR  ConfigMask,
uinT16  BlobLength,
inT16  NumFeatures,
INT_FEATURE_ARRAY  Features,
FEATURE_ID FeatureArray,
int  Debug 
)
int FindGoodProtos ( INT_CLASS  ClassTemplate,
BIT_VECTOR  ProtoMask,
BIT_VECTOR  ConfigMask,
uinT16  BlobLength,
inT16  NumFeatures,
INT_FEATURE_ARRAY  Features,
PROTO_ID ProtoArray,
int  Debug 
)
void HeapSort ( int  n,
register int  ra[],
register int  rb[] 
)
void IMClearFeatureEvidenceTable ( uinT8  FeatureEvidence[MAX_NUM_CONFIGS],
int  NumConfigs 
)
void IMClearTables ( INT_CLASS  ClassTemplate,
int  SumOfFeatureEvidence[MAX_NUM_CONFIGS],
uinT8  ProtoEvidence[MAX_NUM_PROTOS][MAX_PROTO_INDEX] 
)

---------------------------------------------------------------------------- Private Function Prototypes ----------------------------------------------------------------------------

---------------------------------------------------------------------------- Private Code ----------------------------------------------------------------------------

void IMDebugBestMatch ( int  BestMatch,
INT_RESULT  Result,
uinT16  BlobLength,
uinT8  NormalizationFactor 
)
void IMDebugConfiguration ( INT_FEATURE  FeatureNum,
uinT16  ActualProtoNum,
uinT8  Evidence,
BIT_VECTOR  ConfigMask,
uinT32  ConfigWord 
)
void IMDebugConfigurationSum ( INT_FEATURE  FeatureNum,
uinT8 FeatureEvidence,
inT32  ConfigCount 
)
void IMDebugFeatureProtoError ( INT_CLASS  ClassTemplate,
BIT_VECTOR  ProtoMask,
BIT_VECTOR  ConfigMask,
int  SumOfFeatureEvidence[MAX_NUM_CONFIGS],
uinT8  ProtoEvidence[MAX_NUM_PROTOS][MAX_PROTO_INDEX],
inT16  NumFeatures,
int  Debug 
)
void IMDisplayFeatureDebugInfo ( INT_CLASS  ClassTemplate,
BIT_VECTOR  ProtoMask,
BIT_VECTOR  ConfigMask,
inT16  NumFeatures,
INT_FEATURE_ARRAY  Features,
int  Debug 
)
void IMDisplayProtoDebugInfo ( INT_CLASS  ClassTemplate,
BIT_VECTOR  ProtoMask,
BIT_VECTOR  ConfigMask,
uinT8  ProtoEvidence[MAX_NUM_PROTOS][MAX_PROTO_INDEX],
int  Debug 
)
int IMFindBestMatch ( INT_CLASS  ClassTemplate,
int  SumOfFeatureEvidence[MAX_NUM_CONFIGS],
uinT16  BlobLength,
uinT8  NormalizationFactor,
INT_RESULT  Result 
)
void IMNormalizeSumOfEvidences ( INT_CLASS  ClassTemplate,
int  SumOfFeatureEvidence[MAX_NUM_CONFIGS],
inT16  NumFeatures,
inT32  used_features 
)
void IMUpdateSumOfProtoEvidences ( INT_CLASS  ClassTemplate,
BIT_VECTOR  ConfigMask,
int  SumOfFeatureEvidence[MAX_NUM_CONFIGS],
uinT8  ProtoEvidence[MAX_NUM_PROTOS][MAX_PROTO_INDEX],
inT16  NumFeatures 
)
int IMUpdateTablesForFeature ( INT_CLASS  ClassTemplate,
BIT_VECTOR  ProtoMask,
BIT_VECTOR  ConfigMask,
int  FeatureNum,
INT_FEATURE  Feature,
uinT8  FeatureEvidence[MAX_NUM_CONFIGS],
int  SumOfFeatureEvidence[MAX_NUM_CONFIGS],
uinT8  ProtoEvidence[MAX_NUM_PROTOS][MAX_PROTO_INDEX],
int  Debug 
)
void InitIntegerMatcher (  ) 
void IntegerMatcher ( INT_CLASS  ClassTemplate,
BIT_VECTOR  ProtoMask,
BIT_VECTOR  ConfigMask,
uinT16  BlobLength,
inT16  NumFeatures,
INT_FEATURE_ARRAY  Features,
uinT8  NormalizationFactor,
INT_RESULT  Result,
int  Debug 
)

---------------------------------------------------------------------------- Public Function Prototypes ----------------------------------------------------------------------------

void PrintIntMatcherStats ( FILE *  f  ) 
void SetBaseLineMatch (  ) 
void SetCharNormMatch (  ) 
void SetFeatureThresh ( FLOAT32  Threshold  ) 
void SetProtoThresh ( FLOAT32  Threshold  ) 

Variable Documentation

"Threshold for good features during adaptive 0-255: "

"Threshold for good protos during adaptive 0-255: "

"Integer Matcher Multiplier 0-255: "

"Do not include character fragments in the" " results of the classifier"

---------------------------------------------------------------------------- Global Data Definitions and Declarations ----------------------------------------------------------------------------

Generated on Sun Jul 18 17:10:50 2010 for Tesseract by  doxygen 1.6.3