classify/outfeat.h

Go to the documentation of this file.
00001 
00019 #ifndef   OUTFEAT_H
00020 #define   OUTFEAT_H
00021 
00022 /* =================
00023 Include Files and Type Defines
00024  ==================== */
00025 #include "ocrfeatures.h"
00026 #include "fpoint.h"
00027 #include "mfoutline.h"
00028 
00033 typedef enum {
00034   OutlineFeatX,
00035   OutlineFeatY,
00036   OutlineFeatLength,
00037   OutlineFeatDir
00038 } OUTLINE_FEAT_PARAM_NAME;
00039 
00040 #define MAX_OUTLINE_FEATURES  (100)
00041 /* =================
00042           Public Function Prototypes
00043  ==================== */
00044 FEATURE_SET ExtractOutlineFeatures(TBLOB *Blob, LINE_STATS *LineStats); 
00045 
00046 void InitOutlineFXVars(); 
00047 
00048 /*---------------------------------------------------------------------------
00049           Privat Function Prototypes
00050 ----------------------------------------------------------------------------*/
00051 void AddOutlineFeatureToSet(FPOINT *Start,
00052                             FPOINT *End,
00053                             FEATURE_SET FeatureSet);
00054 
00055 void ConvertToOutlineFeatures(MFOUTLINE Outline, FEATURE_SET FeatureSet); 
00056 
00057 void NormalizeOutlineX(FEATURE_SET FeatureSet); 
00058 
00059 /*
00060 #if defined(__STDC__) || defined(__cplusplus)
00061 # define        _ARGS(s) s
00062 #else
00063 # define        _ARGS(s) ()
00064 #endif*/
00065 
00066 /* outfeat.c *
00067 FEATURE_SET ExtractOutlineFeatures
00068     _ARGS((BLOB *Blob,
00069   LINE_STATS *LineStats));
00070 
00071 void InitOutlineFXVars
00072     _ARGS((void));
00073 
00074 #undef _ARGS
00075 */
00076 
00077 /* =================
00078         Global Data Definitions and Declarations
00079  ==================== */
00080 extern FEATURE_DESC_STRUCT OutlineFeatDesc;
00081 #endif

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