|
tesseract
5.0.0-alpha-619-ge9db
|
#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 20 of file protos.cpp.
| #define CONFIG_INCREMENT 16 |
Definition at line 32 of file protos.cpp.
| #define PROTO_INCREMENT 32 |
Definition at line 31 of file protos.cpp.
| int AddConfigToClass | ( | CLASS_TYPE | Class | ) |
Definition at line 45 of file protos.cpp.
| int AddProtoToClass | ( | CLASS_TYPE | Class | ) |
Definition at line 82 of file protos.cpp.
| void FillABC | ( | PROTO | Proto | ) |
| void FreeClass | ( | CLASS_TYPE | Class | ) |
Definition at line 121 of file protos.cpp.
| void FreeClassFields | ( | CLASS_TYPE | Class | ) |
Definition at line 133 of file protos.cpp.
| CLASS_TYPE NewClass | ( | int | NumProtos, |
| int | NumConfigs | ||
| ) |
Definition at line 151 of file protos.cpp.