classify/adaptmatch.h

Go to the documentation of this file.
00001 
00020 #ifndef ADAPTMATCH_H
00021 #define ADAPTMATCH_H
00022 
00023 /* =================
00024           Include Files and Type Defines
00025  ==================== */
00026 #include "oldlist.h"
00027 #include "tessclas.h"
00028 #include "fxdefs.h"
00029 #include "matchdefs.h"
00030 #include "adaptive.h"
00031 #include "ocrfeatures.h"
00032 
00033 /*---------------------------------------------------------------------------
00034           Variables
00035 ----------------------------------------------------------------------------*/
00036 extern float GoodAdaptiveMatch;
00037 extern float GreatAdaptiveMatch;
00038 extern int ReliableConfigThreshold;
00039 extern int tess_cn_matching;
00040 extern int tess_bn_matching;
00041 extern int LearningDebugLevel;
00042 
00043 /*
00044 =================
00045 Public Function Prototypes
00046 =================
00047 */
00048 LIST AdaptiveClassifier(TBLOB *Blob, TBLOB *DotBlob, TEXTROW *Row); 
00049 
00050 void AdaptToWord(TWERD *Word,
00051                  TEXTROW *Row,
00052                  const char *BestChoice,
00053                  const char *BestRawChoice,
00054                  const char *rejmap);
00055 
00056 void EndAdaptiveClassifier(); 
00057 
00058 void InitAdaptiveClassifier(); 
00059 
00060 void ResetAdaptiveClassifier();
00061 
00062 void InitAdaptiveClassifierVars(); 
00063 
00064 void PrintAdaptiveStatistics(FILE *File); 
00065 
00066 void SettupPass1(); 
00067 
00068 void SettupPass2(); 
00069 
00070 void MakeNewAdaptedClass(TBLOB *Blob,
00071                          LINE_STATS *LineStats,
00072                          CLASS_ID ClassId,
00073                          ADAPT_TEMPLATES Templates);
00074 
00075 int GetAdaptiveFeatures(TBLOB *Blob,
00076                         LINE_STATS *LineStats,
00077                         INT_FEATURE_ARRAY IntFeatures,
00078                         FEATURE_SET *FloatFeatures);
00079 
00080 int AdaptableWord(TWERD *Word,
00081                   const char *BestChoice,
00082                   const char *BestRawChoice);
00083 
00084 /* =================
00085         Global Data Definitions and Declarations
00086  ==================== */
00087 #endif

Generated on Wed Feb 28 19:49:09 2007 for Tesseract by  doxygen 1.5.1