73 #define NUMBER_OF_CLASSES MAX_NUM_CLASSES 74 #define Y_OFFSET -40.0 75 #define FEATURE_SCALE 100.0 93 #define AddProtoToConfig(Pid,Config) \ 94 (SET_BIT (Config, Pid)) 102 #define RemoveProtoFromConfig(Pid,Config) \ 103 (reset_bit (Config, Pid)) 111 #define ClassOfChar(Char) \ 112 ((TrainingData [Char].NumProtos) ? \ 113 (& TrainingData [Char]) : \ 123 #define ProtoIn(Class,Pid) \ 124 (& (Class)->Prototypes [Pid]) 133 #define PrintProto(Proto) \ 134 (tprintf("X=%4.2f, Y=%4.2f, Length=%4.2f, Angle=%4.2f", \ 148 #define PrintProtoLine(Proto) \ 149 (cprintf ("A=%4.2f, B=%4.2f, C=%4.2f", \ int AddConfigToClass(CLASS_TYPE Class)
int AddProtoToClass(CLASS_TYPE Class)
FLOAT32 ClassProtoLength(CLASS_TYPE Class)
#define STRING_VAR_H(name, val, comment)
char * classify_training_file
void FreeClassFields(CLASS_TYPE Class)
UnicityTableEqEq< int > font_set
CLASS_STRUCT TrainingData[]
void FillABC(PROTO Proto)
CLASS_STRUCT * CLASS_TYPE
void PrintProtos(CLASS_TYPE Class)
void TESS_API FreeClass(CLASS_TYPE Class)
FLOAT32 ClassConfigLength(CLASS_TYPE Class, BIT_VECTOR Config)
void CopyProto(PROTO Src, PROTO Dest)
CLASS_TYPE TESS_API NewClass(int NumProtos, int NumConfigs)