87 #define NumNonEmptyClassesIn(Template) ((Template)->NumNonEmptyClasses) 89 #define IsEmptyAdaptedClass(Class) ((Class)->NumPermConfigs == 0 && \ 90 (Class)->TempProtos == NIL_LIST) 92 #define ConfigIsPermanent(Class,ConfigId) \ 93 (test_bit ((Class)->PermConfigs, ConfigId)) 95 #define MakeConfigPermanent(Class,ConfigId) \ 96 (SET_BIT ((Class)->PermConfigs, ConfigId)) 98 #define MakeProtoPermanent(Class,ProtoId) \ 99 (SET_BIT ((Class)->PermProtos, ProtoId)) 101 #define TempConfigFor(Class,ConfigId) \ 102 ((Class)->Config[ConfigId].Temp) 104 #define PermConfigFor(Class,ConfigId) \ 105 ((Class)->Config[ConfigId].Perm) 107 #define IncreaseConfidence(TempConfig) \ 108 ((TempConfig)->NumTimesSeen++) void free_adapted_templates(ADAPT_TEMPLATES templates)
TEMP_CONFIG NewTempConfig(int MaxProtoId, int FontinfoId)
TEMP_CONFIG_STRUCT * TEMP_CONFIG
ADAPT_CLASS_STRUCT * ADAPT_CLASS
TEMP_CONFIG ReadTempConfig(tesseract::TFile *File)
void AddAdaptedClass(ADAPT_TEMPLATES Templates, ADAPT_CLASS Class, CLASS_ID ClassId)
void free_adapted_class(ADAPT_CLASS adapt_class)
ADAPT_CLASS NewAdaptedClass()
void FreeTempConfig(TEMP_CONFIG Config)
ADAPT_TEMPLATES_STRUCT * ADAPT_TEMPLATES
ADAPT_CLASS ReadAdaptedClass(tesseract::TFile *File)
TEMP_PROTO NewTempProto()
void WriteAdaptedClass(FILE *File, ADAPT_CLASS Class, int NumConfigs)
PERM_CONFIG ReadPermConfig(tesseract::TFile *File)
void WritePermConfig(FILE *File, PERM_CONFIG Config)
PERM_CONFIG_STRUCT * PERM_CONFIG
void FreeTempProto(void *arg)
TEMP_PROTO_STRUCT * TEMP_PROTO
void WriteTempConfig(FILE *File, TEMP_CONFIG Config)