tesseract
4.0.0-1-g2a2b
|
#include "protos.h"
#include "emalloc.h"
#include "callcpp.h"
#include "tprintf.h"
#include "globals.h"
#include "classify.h"
#include "params.h"
#include <cstdio>
#include <cmath>
Go to the source code of this file.
Macros | |
#define | PROTO_INCREMENT 32 |
#define | CONFIG_INCREMENT 16 |
Functions | |||||
AddConfigToClass | |||||
Add a new config to this class. Malloc new space and copy the old configs if necessary. Return the config id for the new config.
| |||||
int | AddConfigToClass (CLASS_TYPE Class) | ||||
AddProtoToClass | |||||
Add a new proto to this class. Malloc new space and copy the old protos if necessary. Return the proto id for the new proto.
| |||||
int | AddProtoToClass (CLASS_TYPE Class) | ||||
ClassConfigLength | |||||
Return the length of all the protos in this class.
| |||||
float | ClassConfigLength (CLASS_TYPE Class, BIT_VECTOR Config) | ||||
ClassProtoLength | |||||
Return the length of all the protos in this class.
| |||||
float | ClassProtoLength (CLASS_TYPE Class) | ||||
CopyProto | |||||
Copy the first proto into the second.
| |||||
void | CopyProto (PROTO Src, PROTO Dest) | ||||
void | FillABC (PROTO Proto) | ||||
void | FreeClass (CLASS_TYPE Class) | ||||
void | FreeClassFields (CLASS_TYPE Class) | ||||
CLASS_TYPE | NewClass (int NumProtos, int NumConfigs) | ||||
void | PrintProtos (CLASS_TYPE Class) | ||||
Variables | |
CLASS_STRUCT | TrainingData [NUMBER_OF_CLASSES] |
char * | classify_training_file = "MicroFeatures" |
#define CONFIG_INCREMENT 16 |
Definition at line 40 of file protos.cpp.
#define PROTO_INCREMENT 32 |
Definition at line 39 of file protos.cpp.
int AddConfigToClass | ( | CLASS_TYPE | Class | ) |
Definition at line 60 of file protos.cpp.
int AddProtoToClass | ( | CLASS_TYPE | Class | ) |
Definition at line 96 of file protos.cpp.
float ClassConfigLength | ( | CLASS_TYPE | Class, |
BIT_VECTOR | Config | ||
) |
Definition at line 139 of file protos.cpp.
float ClassProtoLength | ( | CLASS_TYPE | Class | ) |
Definition at line 160 of file protos.cpp.
Definition at line 179 of file protos.cpp.
void FillABC | ( | PROTO | Proto | ) |
Definition at line 195 of file protos.cpp.
void FreeClass | ( | CLASS_TYPE | Class | ) |
Definition at line 212 of file protos.cpp.
void FreeClassFields | ( | CLASS_TYPE | Class | ) |
Definition at line 225 of file protos.cpp.
CLASS_TYPE NewClass | ( | int | NumProtos, |
int | NumConfigs | ||
) |
Definition at line 244 of file protos.cpp.
void PrintProtos | ( | CLASS_TYPE | Class | ) |
Definition at line 269 of file protos.cpp.
char* classify_training_file = "MicroFeatures" |
"Training file"
Definition at line 47 of file protos.cpp.
CLASS_STRUCT TrainingData[NUMBER_OF_CLASSES] |
Definition at line 45 of file protos.cpp.