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_STRUCTTEMP_PROTO
typedef TEMP_CONFIG_STRUCTTEMP_CONFIG
typedef UNICHAR_IDPERM_CONFIG
typedef ADAPT_CLASS_STRUCTADAPT_CLASS
typedef ADAPT_TEMPLATES_STRUCTADAPT_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

void AddAdaptedClass ( ADAPT_TEMPLATES  Templates,
ADAPT_CLASS  Class,
CLASS_ID  ClassId 
)

---------------------------------------------------------------------------- Include Files and Type Defines ---------------------------------------------------------------------------- ---------------------------------------------------------------------------- Public Code ----------------------------------------------------------------------------

void free_adapted_class ( ADAPT_CLASS  adapt_class  ) 
void free_adapted_templates ( ADAPT_TEMPLATES  templates  ) 
void FreeTempConfig ( TEMP_CONFIG  Config  ) 
void FreeTempProto ( void *  arg  ) 
ADAPT_CLASS NewAdaptedClass (  ) 
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 
)
Generated on Sun Jul 18 17:10:50 2010 for Tesseract by  doxygen 1.6.3