tesseract-doxygen/training/commontraining.h File Reference
#include "oldlist.h"
#include "cluster.h"
#include "intproto.h"
Go to the source code of this file.
Classes |
struct | LABELEDLISTNODE |
struct | MERGE_CLASS_NODE |
Defines |
#define | MAXNAMESIZE 80 |
#define | MINSD_ANGLE (1.0f / 64.0f) |
Typedefs |
typedef struct LABELEDLISTNODE * | LABELEDLIST |
typedef MERGE_CLASS_NODE * | MERGE_CLASS |
Functions |
void | ParseArguments (int argc, char **argv) |
char * | GetNextFilename (int Argc, char **argv) |
LABELEDLIST | FindList (LIST List, char *Label) |
LABELEDLIST | NewLabeledList (const char *Label) |
void | WriteTrainingSamples (char *Directory, LIST CharList, const char *program_feature_type) |
void | FreeTrainingSamples (LIST CharList) |
void | FreeLabeledList (LABELEDLIST LabeledList) |
void | FreeLabeledClassList (LIST ClassListList) |
CLUSTERER * | SetUpForClustering (LABELEDLIST CharSample, const char *program_feature_type) |
LIST | RemoveInsignificantProtos (LIST ProtoList, BOOL8 KeepSigProtos, BOOL8 KeepInsigProtos, int N) |
void | CleanUpUnusedData (LIST ProtoList) |
void | MergeInsignificantProtos (LIST ProtoList, const char *label, CLUSTERER *Clusterer, CLUSTERCONFIG *Config) |
MERGE_CLASS | FindClass (LIST List, char *Label) |
MERGE_CLASS | NewLabeledClass (char *Label) |
void | SetUpForFloat2Int (LIST LabeledClassList) |
void | Normalize (float *Values) |
void | FreeNormProtoList (LIST CharList) |
void | AddToNormProtosList (LIST *NormProtoList, LIST ProtoList, char *CharName) |
int | NumberOfProtos (LIST ProtoList, BOOL8 CountSigProtos, BOOL8 CountInsigProtos) |
void | allocNormProtos () |
Variables |
BOOL8 | ShowSignificantProtos |
BOOL8 | ShowInsignificantProtos |
BOOL8 | ShowAllSamples |
CLUSTERCONFIG | Config |
FLOAT32 | RoundingAccuracy |
char | CTFontName [MAXNAMESIZE] |
char * | Directory |
const char * | test_ch |
const char * | InputUnicharsetFile |
const char * | OutputUnicharsetFile |
const char * | InputFontInfoFile |
UNICHARSET | unicharset_training |
Define Documentation
#define MINSD_ANGLE (1.0f / 64.0f) |
Typedef Documentation
Function Documentation
void AddToNormProtosList |
( |
LIST * |
NormProtoList, |
|
|
LIST |
ProtoList, |
|
|
char * |
CharName | |
|
) |
| | |
void CleanUpUnusedData |
( |
LIST |
ProtoList |
) |
|
void FreeLabeledClassList |
( |
LIST |
ClassListList |
) |
|
void FreeNormProtoList |
( |
LIST |
CharList |
) |
|
void FreeTrainingSamples |
( |
LIST |
CharList |
) |
|
char* GetNextFilename |
( |
int |
Argc, |
|
|
char ** |
argv | |
|
) |
| | |
void Normalize |
( |
float * |
Values |
) |
|
int NumberOfProtos |
( |
LIST |
ProtoList, |
|
|
BOOL8 |
CountSigProtos, |
|
|
BOOL8 |
CountInsigProtos | |
|
) |
| | |
void ParseArguments |
( |
int |
argc, |
|
|
char ** |
argv | |
|
) |
| | |
LIST RemoveInsignificantProtos |
( |
LIST |
ProtoList, |
|
|
BOOL8 |
KeepSigProtos, |
|
|
BOOL8 |
KeepInsigProtos, |
|
|
int |
N | |
|
) |
| | |
void SetUpForFloat2Int |
( |
LIST |
LabeledClassList |
) |
|
void WriteTrainingSamples |
( |
char * |
Directory, |
|
|
LIST |
CharList, |
|
|
const char * |
program_feature_type | |
|
) |
| | |
Variable Documentation
---------------------------------------------------------------------------- Global Data Definitions and Declarations ----------------------------------------------------------------------------