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", \
char * classify_training_file
FLOAT32 ClassProtoLength(CLASS_TYPE Class)
void PrintProtos(CLASS_TYPE Class)
int AddConfigToClass(CLASS_TYPE Class)
CLASS_STRUCT TrainingData[]
void FillABC(PROTO Proto)
UnicityTableEqEq< int > font_set
void FreeClass(CLASS_TYPE Class)
FLOAT32 ClassConfigLength(CLASS_TYPE Class, BIT_VECTOR Config)
#define STRING_VAR_H(name, val, comment)
int AddProtoToClass(CLASS_TYPE Class)
CLASS_STRUCT * CLASS_TYPE
CLASS_TYPE NewClass(int NumProtos, int NumConfigs)
void FreeClassFields(CLASS_TYPE Class)
void CopyProto(PROTO Src, PROTO Dest)