classify/fxdefs.h

Go to the documentation of this file.
00001 
00019 #ifndef   FXDEFS_H
00020 #define   FXDEFS_H
00021 
00022 /* =================
00023           Include Files and Type Defines
00024  ==================== */
00025 #include "tessclas.h"
00026 #include "general.h"
00027 
00029 #define LEARN_MODE      0
00030 
00031 #define CLASSIFY_MODE   1
00032 
00040 typedef struct
00041 {
00043   SPLINE_SPEC *Baseline;
00045   SPLINE_SPEC *XHeightLine;
00047   FLOAT32 xheight;
00049   FLOAT32 AscRise;
00051   FLOAT32 DescDrop;
00054   TEXTROW *TextRow;
00055 } LINE_STATS;
00056 
00067 typedef char *CHAR_FEATURES;
00068 
00069 
00070 /* =================
00071             Macros
00072  ==================== */
00079 #define SetExtractMode(M) (ExtractMode = (M))
00080 #define EnterLearnMode    (SetExtractMode (LEARN_MODE))
00081 #define EnterClassifyMode (SetExtractMode (CLASSIFY_MODE))
00082 
00083 /*----------------------------------------------------------------------------
00084           Public Function Prototypes
00085 -----------------------------------------------------------------------------*/
00086 void SetupExtractors();
00087 
00088 void GetLineStatsFromRow(TEXTROW *Row, LINE_STATS *LineStats);
00089 
00090 /*
00091 #if defined(__STDC__) || defined(__cplusplus)
00092 # define        _ARGS(s) s
00093 #else
00094 # define        _ARGS(s) ()
00095 #endif*/
00096 
00097 /* fxdefs.c
00098 void GetLineStatsFromRow
00099     _ARGS((TEXTROW *Row,
00100   LINE_STATS *LineStats));
00101 
00102 #undef _ARGS
00103 */
00104 
00105 /* =================
00106         Global Data Definitions and Declarations
00107  ==================== */
00108 /* flag to control learn mode vs. classify mode */
00109 extern int ExtractMode;
00110 #endif

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