00001 00019 #ifndef NORMFEAT_H 00020 #define NORMFEAT_H 00021 00022 /* ================= 00023 Include Files and Type Defines 00024 ==================== */ 00025 #include "ocrfeatures.h" 00026 #include "tessclas.h" 00027 #include "fxdefs.h" 00028 00029 #define LENGTH_COMPRESSION (10.0) 00030 00035 typedef enum 00036 { 00037 CharNormY, 00038 CharNormLength, 00039 CharNormRx, 00040 CharNormRy 00041 } NORM_PARAM_NAME; 00042 00043 /* ================= 00044 Public Function Prototypes 00045 ==================== */ 00046 FLOAT32 ActualOutlineLength(FEATURE Feature); 00047 00048 FEATURE_SET ExtractCharNormFeatures(TBLOB *Blob, LINE_STATS *LineStats); 00049 00050 /* 00051 #if defined(__STDC__) || defined(__cplusplus) 00052 # define _ARGS(s) s 00053 #else 00054 # define _ARGS(s) () 00055 #endif*/ 00056 00057 /* normfeat.c 00058 FLOAT32 ActualOutlineLength 00059 _ARGS((FEATURE Feature)); 00060 00061 FEATURE_SET ExtractCharNormFeatures 00062 _ARGS((BLOB *Blob, 00063 LINE_STATS *LineStats)); 00064 00065 #undef _ARGS 00066 */ 00067 00068 /* ================= 00069 Global Data Definitions and Declarations 00070 ==================== */ 00071 extern FEATURE_DESC_STRUCT CharNormDesc; 00072 #endif