|
Tesseract
3.02
|
#include "bitvec.h"#include "cutil.h"#include "unichar.h"#include "unicity_table.h"#include "params.h"Go to the source code of this file.
Classes | |
| struct | PROTO_STRUCT |
| struct | CLASS_STRUCT |
Macros | |
| #define | NUMBER_OF_CLASSES MAX_NUM_CLASSES |
| #define | Y_OFFSET -40.0 |
| #define | FEATURE_SCALE 100.0 |
| #define | AddProtoToConfig(Pid, Config) (SET_BIT (Config, Pid)) |
| #define | RemoveProtoFromConfig(Pid, Config) (reset_bit (Config, Pid)) |
| #define | ClassOfChar(Char) |
| #define | ProtoIn(Class, Pid) (& (Class)->Prototypes [Pid]) |
| #define | PrintProto(Proto) |
| #define | PrintProtoLine(Proto) |
Typedefs | |
| typedef BIT_VECTOR * | CONFIGS |
| typedef PROTO_STRUCT * | PROTO |
| typedef CLASS_STRUCT * | CLASS_TYPE |
| typedef CLASS_STRUCT * | CLASSES |
Functions | |
| int | AddConfigToClass (CLASS_TYPE Class) |
| int | AddProtoToClass (CLASS_TYPE Class) |
| FLOAT32 | ClassConfigLength (CLASS_TYPE Class, BIT_VECTOR Config) |
| FLOAT32 | ClassProtoLength (CLASS_TYPE Class) |
| void | CopyProto (PROTO Src, PROTO Dest) |
| void | FillABC (PROTO Proto) |
| void | FreeClass (CLASS_TYPE Class) |
| void | FreeClassFields (CLASS_TYPE Class) |
| void | InitPrototypes () |
| CLASS_TYPE | NewClass (int NumProtos, int NumConfigs) |
| void | PrintProtos (CLASS_TYPE Class) |
| void | ReadClassFromFile (FILE *File, UNICHAR_ID unichar_id) |
| void | ReadConfigs (register FILE *File, CLASS_TYPE Class) |
| void | ReadProtos (register FILE *File, CLASS_TYPE Class) |
| int | SplitProto (CLASS_TYPE Class, int OldPid) |
| void | WriteOldConfigFile (FILE *File, CLASS_TYPE Class) |
| void | WriteOldProtoFile (FILE *File, CLASS_TYPE Class) |
Variables | |
| CLASS_STRUCT | TrainingData [] |
| char * | classify_training_file = "MicroFeatures" |
| #define ClassOfChar | ( | Char | ) |
ClassOfChar
Return the class of a particular ASCII character value.
| #define NUMBER_OF_CLASSES MAX_NUM_CLASSES |
| #define PrintProto | ( | Proto | ) |
| #define PrintProtoLine | ( | Proto | ) |
| #define ProtoIn | ( | Class, | |
| Pid | |||
| ) | (& (Class)->Prototypes [Pid]) |
| typedef CLASS_STRUCT* CLASS_TYPE |
| typedef CLASS_STRUCT* CLASSES |
| typedef BIT_VECTOR* CONFIGS |
| typedef PROTO_STRUCT* PROTO |
| int AddConfigToClass | ( | CLASS_TYPE | Class | ) |
Definition at line 63 of file protos.cpp.
| int AddProtoToClass | ( | CLASS_TYPE | Class | ) |
Definition at line 99 of file protos.cpp.
| FLOAT32 ClassConfigLength | ( | CLASS_TYPE | Class, |
| BIT_VECTOR | Config | ||
| ) |
| FLOAT32 ClassProtoLength | ( | CLASS_TYPE | Class | ) |
| void FillABC | ( | PROTO | Proto | ) |
Definition at line 198 of file protos.cpp.
| void FreeClass | ( | CLASS_TYPE | Class | ) |
Definition at line 215 of file protos.cpp.
| void FreeClassFields | ( | CLASS_TYPE | Class | ) |
Definition at line 228 of file protos.cpp.
| void InitPrototypes | ( | ) |
| CLASS_TYPE NewClass | ( | int | NumProtos, |
| int | NumConfigs | ||
| ) |
Definition at line 248 of file protos.cpp.
| void PrintProtos | ( | CLASS_TYPE | Class | ) |
Definition at line 273 of file protos.cpp.
| void ReadClassFromFile | ( | FILE * | File, |
| UNICHAR_ID | unichar_id | ||
| ) |
ReadClassFromFile
Read in a class description (protos and configs) from a file. Update the class structure record.
Definition at line 321 of file protos.cpp.
| void ReadConfigs | ( | register FILE * | File, |
| CLASS_TYPE | Class | ||
| ) |
ReadConfigs
Read the prototype configurations for this class from a file. Read the requested number of lines.
Definition at line 337 of file protos.cpp.
| void ReadProtos | ( | register FILE * | File, |
| CLASS_TYPE | Class | ||
| ) |
ReadProtos
Read in all the prototype information from a file. Read the number of lines requested.
Definition at line 367 of file protos.cpp.
| int SplitProto | ( | CLASS_TYPE | Class, |
| int | OldPid | ||
| ) |
Definition at line 399 of file protos.cpp.
| void WriteOldConfigFile | ( | FILE * | File, |
| CLASS_TYPE | Class | ||
| ) |
Definition at line 425 of file protos.cpp.
| void WriteOldProtoFile | ( | FILE * | File, |
| CLASS_TYPE | Class | ||
| ) |
Definition at line 457 of file protos.cpp.
| char* classify_training_file = "MicroFeatures" |
"Training file"
Definition at line 50 of file protos.cpp.
| CLASS_STRUCT TrainingData[] |
Definition at line 48 of file protos.cpp.