tesseract-doxygen/classify/adaptive.h File Reference
#include "oldlist.h"
#include "intproto.h"
#include <stdio.h>
Go to the source code of this file.
Classes |
struct | TEMP_PROTO_STRUCT |
struct | TEMP_CONFIG_STRUCT |
union | ADAPTED_CONFIG |
struct | ADAPT_CLASS_STRUCT |
struct | ADAPT_TEMPLATES_STRUCT |
Defines |
#define | NumNonEmptyClassesIn(Template) ((Template)->NumNonEmptyClasses) |
#define | IsEmptyAdaptedClass(Class) |
#define | ConfigIsPermanent(Class, ConfigId) (test_bit ((Class)->PermConfigs, ConfigId)) |
#define | MakeConfigPermanent(Class, ConfigId) (SET_BIT ((Class)->PermConfigs, ConfigId)) |
#define | MakeProtoPermanent(Class, ProtoId) (SET_BIT ((Class)->PermProtos, ProtoId)) |
#define | TempConfigFor(Class, ConfigId) ((Class)->Config[ConfigId].Temp) |
#define | PermConfigFor(Class, ConfigId) ((Class)->Config[ConfigId].Perm) |
#define | IncreaseConfidence(TempConfig) ((TempConfig)->NumTimesSeen++) |
Typedefs |
typedef TEMP_PROTO_STRUCT * | TEMP_PROTO |
typedef TEMP_CONFIG_STRUCT * | TEMP_CONFIG |
typedef UNICHAR_ID * | PERM_CONFIG |
typedef ADAPT_CLASS_STRUCT * | ADAPT_CLASS |
typedef ADAPT_TEMPLATES_STRUCT * | ADAPT_TEMPLATES |
Functions |
void | AddAdaptedClass (ADAPT_TEMPLATES Templates, ADAPT_CLASS Class, CLASS_ID ClassId) |
void | FreeTempProto (void *arg) |
void | FreeTempConfig (TEMP_CONFIG Config) |
ADAPT_CLASS | NewAdaptedClass () |
void | free_adapted_class (ADAPT_CLASS adapt_class) |
void | free_adapted_templates (ADAPT_TEMPLATES templates) |
TEMP_CONFIG | NewTempConfig (int MaxProtoId) |
TEMP_PROTO | NewTempProto () |
ADAPT_CLASS | ReadAdaptedClass (FILE *File) |
PERM_CONFIG | ReadPermConfig (FILE *File) |
TEMP_CONFIG | ReadTempConfig (FILE *File) |
void | WriteAdaptedClass (FILE *File, ADAPT_CLASS Class, int NumConfigs) |
void | WritePermConfig (FILE *File, PERM_CONFIG Config) |
void | WriteTempConfig (FILE *File, TEMP_CONFIG Config) |
Define Documentation
#define ConfigIsPermanent |
( |
Class, |
|
|
ConfigId |
|
) |
(test_bit ((Class)->PermConfigs, ConfigId)) |
#define IncreaseConfidence |
( |
TempConfig |
|
) |
((TempConfig)->NumTimesSeen++) |
#define IsEmptyAdaptedClass |
( |
Class |
|
) |
|
Value:((Class)->NumPermConfigs == 0 && \
(Class)->TempProtos == NIL)
#define MakeConfigPermanent |
( |
Class, |
|
|
ConfigId |
|
) |
(SET_BIT ((Class)->PermConfigs, ConfigId)) |
#define MakeProtoPermanent |
( |
Class, |
|
|
ProtoId |
|
) |
(SET_BIT ((Class)->PermProtos, ProtoId)) |
#define NumNonEmptyClassesIn |
( |
Template |
|
) |
((Template)->NumNonEmptyClasses) |
---------------------------------------------------------------------------- Public Function Prototypes ----------------------------------------------------------------------------
#define PermConfigFor |
( |
Class, |
|
|
ConfigId |
|
) |
((Class)->Config[ConfigId].Perm) |
#define TempConfigFor |
( |
Class, |
|
|
ConfigId |
|
) |
((Class)->Config[ConfigId].Temp) |
Typedef Documentation
Function Documentation
---------------------------------------------------------------------------- Include Files and Type Defines ---------------------------------------------------------------------------- ---------------------------------------------------------------------------- Public Code ----------------------------------------------------------------------------
void FreeTempProto |
( |
void * |
arg |
) |
|
void WriteAdaptedClass |
( |
FILE * |
File, |
|
|
ADAPT_CLASS |
Class, |
|
|
int |
NumConfigs | |
|
) |
| | |
void WritePermConfig |
( |
FILE * |
File, |
|
|
PERM_CONFIG |
Config | |
|
) |
| | |
void WriteTempConfig |
( |
FILE * |
File, |
|
|
TEMP_CONFIG |
Config | |
|
) |
| | |