#include "commontraining.h"#include "oldlist.h"#include "globals.h"#include "mf.h"#include "clusttool.h"#include "cluster.h"#include "mergenf.h"#include "protos.h"#include "ocrfeatures.h"#include "callcpp.h"#include "picofeat.h"#include "tessopt.h"#include "featdefs.h"#include "efio.h"#include "emalloc.h"#include "tprintf.h"#include "freelist.h"#include "unicity_table.h"#include <math.h>Defines | |
| #define | round(x, frag) (floor(x/frag+.5)*frag) |
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) |
| CLUSTERER * | SetUpForClustering (LABELEDLIST CharSample, const char *program_feature_type) |
| void | MergeInsignificantProtos (LIST ProtoList, const char *label, CLUSTERER *Clusterer, CLUSTERCONFIG *Config) |
| void | CleanUpUnusedData (LIST ProtoList) |
| LIST | RemoveInsignificantProtos (LIST ProtoList, BOOL8 KeepSigProtos, BOOL8 KeepInsigProtos, int N) |
| MERGE_CLASS | FindClass (LIST List, char *Label) |
| MERGE_CLASS | NewLabeledClass (char *Label) |
| void | FreeLabeledClassList (LIST ClassList) |
| 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) |
Variables | |
| char * | Directory = NULL |
| const char * | InputUnicharsetFile = NULL |
| const char * | OutputUnicharsetFile = NULL |
| const char * | InputFontInfoFile = NULL |
| BOOL8 | ShowSignificantProtos = TRUE |
| BOOL8 | ShowInsignificantProtos = FALSE |
| FLOAT32 | RoundingAccuracy = 0.0f |
| char | CTFontName [MAXNAMESIZE] |
| const char * | test_ch = "" |
| UNICHARSET | unicharset_training |
| #define round | ( | x, | |||
| frag | ) | (floor(x/frag+.5)*frag) |
| void CleanUpUnusedData | ( | LIST | ProtoList | ) |
| MERGE_CLASS FindClass | ( | LIST | List, | |
| char * | Label | |||
| ) |
| LABELEDLIST FindList | ( | LIST | List, | |
| char * | Label | |||
| ) |
| void FreeLabeledClassList | ( | LIST | ClassList | ) |
| void FreeLabeledList | ( | LABELEDLIST | LabeledList | ) |
| void FreeNormProtoList | ( | LIST | CharList | ) |
| void FreeTrainingSamples | ( | LIST | CharList | ) |
| char* GetNextFilename | ( | int | Argc, | |
| char ** | Argv | |||
| ) |
| void MergeInsignificantProtos | ( | LIST | ProtoList, | |
| const char * | label, | |||
| CLUSTERER * | Clusterer, | |||
| CLUSTERCONFIG * | Config | |||
| ) |
| MERGE_CLASS NewLabeledClass | ( | char * | Label | ) |
| LABELEDLIST NewLabeledList | ( | const char * | Label | ) |
| void Normalize | ( | float * | Values | ) |
| void ParseArguments | ( | int | argc, | |
| char ** | argv | |||
| ) |
| LIST RemoveInsignificantProtos | ( | LIST | ProtoList, | |
| BOOL8 | KeepSigProtos, | |||
| BOOL8 | KeepInsigProtos, | |||
| int | N | |||
| ) |
| CLUSTERER* SetUpForClustering | ( | LABELEDLIST | CharSample, | |
| const char * | program_feature_type | |||
| ) |
| void SetUpForFloat2Int | ( | LIST | LabeledClassList | ) |
SetUpForFloat2Int
| void WriteTrainingSamples | ( | char * | Directory, | |
| LIST | CharList, | |||
| const char * | program_feature_type | |||
| ) |
| char CTFontName[MAXNAMESIZE] |
| char* Directory = NULL |
| const char* InputFontInfoFile = NULL |
| const char* InputUnicharsetFile = NULL |
| const char* OutputUnicharsetFile = NULL |
| FLOAT32 RoundingAccuracy = 0.0f |
| BOOL8 ShowInsignificantProtos = FALSE |
| const char* test_ch = "" |
1.6.3