00001
00019 #ifndef INTFX_H
00020 #define INTFX_H
00021
00022
00023
00024
00025 #include "tessclas.h"
00026 #include "hideedge.h"
00027 #include "intproto.h"
00028 #include <math.h>
00029
00042 typedef struct
00043 {
00045 INT32 Length;
00047 INT16 Xmean;
00049 INT16 Ymean;
00051 INT16 Rx;
00053 INT16 Ry;
00055 INT16 NumBL;
00057 INT16 NumCN;
00058 } INT_FX_RESULT_STRUCT, *INT_FX_RESULT;
00059
00060
00061
00062
00063 void InitIntegerFX();
00064
00065 int ExtractIntFeat(TBLOB *Blob,
00066 INT_FEATURE_ARRAY BLFeat,
00067 INT_FEATURE_ARRAY CNFeat,
00068 INT_FX_RESULT Results);
00069
00070 UINT8 TableLookup(INT32 Y, INT32 X);
00071
00072 int SaveFeature(INT_FEATURE_ARRAY FeatureArray,
00073 UINT16 FeatureNum,
00074 INT16 X,
00075 INT16 Y,
00076 UINT8 Theta);
00077
00078 UINT16 MySqrt(INT32 X, INT32 Y);
00079
00080 UINT8 MySqrt2(UINT16 N, UINT32 I, UINT8 *Exp);
00081
00082 void ClipRadius(UINT8 *RxInv, UINT8 *RxExp, UINT8 *RyInv, UINT8 *RyExp);
00083 #endif