tesseract 4.1.1
|
#include "protos.h"
#include <cmath>
#include <cstdio>
#include "emalloc.h"
#include "callcpp.h"
#include "tprintf.h"
#include "classify.h"
#include "params.h"
#include "intproto.h"
Go to the source code of this file.
Macros | |
#define | _USE_MATH_DEFINES |
#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) | ||
void | FillABC (PROTO Proto) | ||
void | FreeClass (CLASS_TYPE Class) | ||
void | FreeClassFields (CLASS_TYPE Class) | ||
CLASS_TYPE | NewClass (int NumProtos, int NumConfigs) | ||
#define _USE_MATH_DEFINES |
Definition at line 22 of file protos.cpp.
#define CONFIG_INCREMENT 16 |
Definition at line 34 of file protos.cpp.
#define PROTO_INCREMENT 32 |
Definition at line 33 of file protos.cpp.
int AddConfigToClass | ( | CLASS_TYPE | Class | ) |
Definition at line 47 of file protos.cpp.
int AddProtoToClass | ( | CLASS_TYPE | Class | ) |
Definition at line 84 of file protos.cpp.
void FillABC | ( | PROTO | Proto | ) |
void FreeClass | ( | CLASS_TYPE | Class | ) |
Definition at line 125 of file protos.cpp.
void FreeClassFields | ( | CLASS_TYPE | Class | ) |
Definition at line 138 of file protos.cpp.
CLASS_TYPE NewClass | ( | int | NumProtos, |
int | NumConfigs | ||
) |
Definition at line 157 of file protos.cpp.