75 #define NUMBER_OF_CLASSES MAX_NUM_CLASSES 76 #define Y_OFFSET -40.0 77 #define FEATURE_SCALE 100.0 95 #define AddProtoToConfig(Pid, Config) (SET_BIT(Config, Pid)) 103 #define RemoveProtoFromConfig(Pid, Config) (reset_bit(Config, Pid)) 111 #define ClassOfChar(Char) \ 112 ((TrainingData[Char].NumProtos) ? (&TrainingData[Char]) : NO_CLASS) 121 #define ProtoIn(Class, Pid) (&(Class)->Prototypes[Pid]) 130 #define PrintProto(Proto) \ 131 (tprintf("X=%4.2f, Y=%4.2f, Length=%4.2f, Angle=%4.2f", Proto->X, Proto->Y, \ 132 Proto->Length, Proto->Angle)) 141 #define PrintProtoLine(Proto) \ 142 (cprintf("A=%4.2f, B=%4.2f, C=%4.2f", Proto->A, Proto->B, Proto->C))
float ClassConfigLength(CLASS_TYPE Class, BIT_VECTOR Config)
int AddConfigToClass(CLASS_TYPE Class)
CLASS_TYPE NewClass(int NumProtos, int NumConfigs)
#define STRING_VAR_H(name, val, comment)
void FreeClassFields(CLASS_TYPE Class)
UnicityTableEqEq< int > font_set
CLASS_STRUCT TrainingData[]
void FreeClass(CLASS_TYPE Class)
void FillABC(PROTO Proto)
float ClassProtoLength(CLASS_TYPE Class)
void CopyProto(PROTO Src, PROTO Dest)
char * classify_training_file
void PrintProtos(CLASS_TYPE Class)
int AddProtoToClass(CLASS_TYPE Class)