tesseract v5.3.3.20231005
protos.cpp File Reference
#include "protos.h"
#include "classify.h"
#include "intproto.h"
#include "params.h"
#include "tprintf.h"
#include <cmath>
#include <cstdio>

Go to the source code of this file.

Namespaces

namespace  tesseract
 

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.

Parameters
ClassThe class to add to
int tesseract::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.

Parameters
ClassThe class to add to
int tesseract::AddProtoToClass (CLASS_TYPE Class)
 
void tesseract::FillABC (PROTO_STRUCT *Proto)
 
void tesseract::FreeClass (CLASS_TYPE Class)
 
void tesseract::FreeClassFields (CLASS_TYPE Class)
 
CLASS_TYPE tesseract::NewClass (int NumProtos, int NumConfigs)
 

Macro Definition Documentation

◆ _USE_MATH_DEFINES

#define _USE_MATH_DEFINES

Definition at line 21 of file protos.cpp.

◆ CONFIG_INCREMENT

#define CONFIG_INCREMENT   16

Definition at line 36 of file protos.cpp.

◆ PROTO_INCREMENT

#define PROTO_INCREMENT   32

Definition at line 35 of file protos.cpp.