cutil/const.h

Go to the documentation of this file.
00001 
00018 #ifndef CONST_H
00019 #define CONST_H
00020 
00022 #define PATHSIZE      8192
00023 
00024 #define OUTLINESIZE     256
00025 
00026 #define BLOBSIZE      10000
00027 
00029 #define FIRSTCHAR       '!'
00030 
00031 #define LASTCHAR        '~'
00032 
00033 #define CHARSETSIZE     (LASTCHAR-FIRSTCHAR+1)
00034 
00035 #define MERGESIZE     10
00036 
00037 #define MAXCHARSIZE     159
00038 
00039 #define CLASSIZE      256
00040 
00041 #define SPLITSIZE     4
00042 
00043 #define BADCLASS      255
00044 
00045 #define BADMATCH      255
00046 
00047 #define CLASSLENGTH     16
00048 
00049 #define VECSCALE      3
00050 
00051 #define REALSCALE       ((double)(1<<VECSCALE))
00052 
00053 #define SPLINESIZE      23
00054 
00055 #ifndef NULL
00056 #define NULL        0            /*null pointer array index */
00057 #endif
00058 
00060 #define MAXINT        2147483647
00061 //#define MAXSHORT         32767                /*max value of short*/
00062 //#define MAXCHAR            127                /*max value of a char*/
00064 #define MAXUCHAR      255
00065 
00066 #define PI          3.14159265359
00067 #ifndef __UNIX__
00068 #define MAXFLOAT      2000000000.0f /*approximate!! */
00069 #endif
00070 
00072 #define FILENAMESIZE    1024
00073 
00075 #define MAX_WO_CLASSES    3
00076 //#define BLOBFLAGS          4                    /*No of flags in a blob*/
00078 #define ITALIC        0
00079 
00080 #define ASPECT_RATIO    2
00081 
00083 #define NODEFLAGS     4
00084 
00086 #define EDGEPTFLAGS     4
00087 
00088 #define FLAGS       0
00089 
00090 #define CONVEX        1
00091 
00092 #define CONCAVE       2
00093 /*used and set only in edges */
00094 //#define FIXED          4                       /*TESSLINE point is fixed*/
00096 #define ONHULL        8
00097 
00099 #define RUNLENGTH     1
00100 
00102 #define DIR         2
00103 
00105 #define CORRECTION      3
00106 
00108 #define OUTLINES_PER_BLOB 8
00109 
00111 #define PLUS        1
00112 
00113 #define CIRCLE        3
00114 
00115 //#define WHITE                         1                                                       /*starbase colours*/
00116 //#define RED                                   2
00117 //#define YELLOW                                3
00118 //#define GREEN                         4
00119 //#define CYAN                          5
00120 //#define BLUE                          6
00121 
00123 #define SMD         0x100000
00124 
00126 #define SCAN        0
00127 
00128 #define EDGE        1
00129 
00130 #define FX          2
00131 
00132 #define TO          3
00133 
00134 #define OCR         4
00135 #define MAXPROC       (OCR+1)    /*no of processes */
00136 
00138 #define STRINGCMPS      0x1      /*show ocrdiff compares */
00139 
00141 #define CHECKS        0x1        /*run accuracy checks */
00142 #define WRITEERRORS     0x2      /*write error output */
00143 #define WRITECORRECTS   0x4      /*write correct blobs as errors */
00144 #define WRITEWERDS      0x8      /*write whole words */
00145 #define FXSELECT      0x10       /*write error output */
00146 #define WRITEROWFILE    0x06     /*any write errors */
00147 #define LEARN       0x100        /*learn mode */
00148 #define WRITELEARNFILE    0xf00  /*any learning */
00149 #define EACHWERD      0x2000     /*clear vdc after each word */
00150 #endif

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