tesseract
5.0.0-alpha-619-ge9db
|
Go to the documentation of this file.
37 uint8_t ProtoVectorSize;
56 uint8_t NumPermConfigs;
57 uint8_t MaxNumTimesSeen;
68 int NumNonEmptyClasses;
69 uint8_t NumPermClasses;
77 #define NumNonEmptyClassesIn(Template) ((Template)->NumNonEmptyClasses)
79 #define IsEmptyAdaptedClass(Class) \
80 ((Class)->NumPermConfigs == 0 && (Class)->TempProtos == NIL_LIST)
82 #define ConfigIsPermanent(Class, ConfigId) \
83 (test_bit((Class)->PermConfigs, ConfigId))
85 #define MakeConfigPermanent(Class, ConfigId) \
86 (SET_BIT((Class)->PermConfigs, ConfigId))
88 #define MakeProtoPermanent(Class, ProtoId) \
89 (SET_BIT((Class)->PermProtos, ProtoId))
91 #define TempConfigFor(Class, ConfigId) ((Class)->Config[ConfigId].Temp)
93 #define PermConfigFor(Class, ConfigId) ((Class)->Config[ConfigId].Perm)
95 #define IncreaseConfidence(TempConfig) ((TempConfig)->NumTimesSeen++)
void WritePermConfig(FILE *File, PERM_CONFIG Config)
void AddAdaptedClass(ADAPT_TEMPLATES Templates, ADAPT_CLASS Class, CLASS_ID ClassId)
void WriteTempConfig(FILE *File, TEMP_CONFIG Config)
void free_adapted_templates(ADAPT_TEMPLATES templates)
TEMP_PROTO NewTempProto()
TEMP_CONFIG ReadTempConfig(tesseract::TFile *File)
void WriteAdaptedClass(FILE *File, ADAPT_CLASS Class, int NumConfigs)
PERM_CONFIG ReadPermConfig(tesseract::TFile *File)
void FreeTempProto(void *arg)
ADAPT_CLASS ReadAdaptedClass(tesseract::TFile *File)
TEMP_CONFIG NewTempConfig(int MaxProtoId, int FontinfoId)
ADAPT_CLASS NewAdaptedClass()
void free_adapted_class(ADAPT_CLASS adapt_class)
void FreeTempConfig(TEMP_CONFIG Config)