#include "oldlist.h"
#include "efio.h"
#include "emalloc.h"
#include "featdefs.h"
#include "tessopt.h"
#include "ocrfeatures.h"
#include "mf.h"
#include "general.h"
#include "clusttool.h"
#include "cluster.h"
#include "protos.h"
#include "ndminx.h"
#include "tprintf.h"
#include "const.h"
#include "mergenf.h"
#include "name2char.h"
#include "intproto.h"
#include "freelist.h"
#include "danerror.h"
#include "globals.h"
#include "commontraining.h"
#include "unicity_table.h"
#include "genericvector.h"
#include "classify.h"
#include <string.h>
#include <stdio.h>
#include <math.h>
Defines | |
#define | _USE_MATH_DEFINES |
#define | PROGRAM_FEATURE_TYPE "mf" |
#define | MINSD (1.0f / 128.0f) |
Functions | |
int | main (int argc, char **argv) |
LIST | ReadTrainingSamples (FILE *File) |
void | WriteClusteredTrainingSamples (char *Directory, LIST ProtoList, CLUSTERER *Clusterer, LABELEDLIST CharSample) |
void | WriteMergedTrainingSamples (char *Directory, LIST ClassList) |
void | WriteMicrofeat (char *Directory, LIST ClassList) |
void | WriteProtos (FILE *File, MERGE_CLASS MergeClass) |
void | WriteConfigs (FILE *File, CLASS_TYPE Class) |
void | WritePFFMTable (INT_TEMPLATES Templates, const char *filename) |
void | DisplayProtoList (const char *ch, LIST protolist) |
char * | new_dup (const char *str) |
Variables | |
CLUSTERCONFIG | Config |
#define _USE_MATH_DEFINES |
---------------------------------------------------------------------------- Include Files and Type Defines ----------------------------------------------------------------------------
#define MINSD (1.0f / 128.0f) |
#define PROGRAM_FEATURE_TYPE "mf" |
void DisplayProtoList | ( | const char * | ch, | |
LIST | protolist | |||
) |
int main | ( | int | argc, | |
char ** | argv | |||
) |
---------------------------------------------------------------------------- Public Function Prototypes ----------------------------------------------------------------------------
char* new_dup | ( | const char * | str | ) |
LIST ReadTrainingSamples | ( | FILE * | File | ) |
---------------------------------------------------------------------------- Private Function Prototypes ----------------------------------------------------------------------------
---------------------------------------------------------------------------- Private Code ----------------------------------------------------------------------------
void WriteClusteredTrainingSamples | ( | char * | Directory, | |
LIST | ProtoList, | |||
CLUSTERER * | Clusterer, | |||
LABELEDLIST | CharSample | |||
) |
void WriteConfigs | ( | FILE * | File, | |
CLASS_TYPE | Class | |||
) |
void WriteMergedTrainingSamples | ( | char * | Directory, | |
LIST | ClassList | |||
) |
void WriteMicrofeat | ( | char * | Directory, | |
LIST | ClassList | |||
) |
void WritePFFMTable | ( | INT_TEMPLATES | Templates, | |
const char * | filename | |||
) |
void WriteProtos | ( | FILE * | File, | |
MERGE_CLASS | MergeClass | |||
) |
{ elliptical, 0.625, 0.05, 1.0, 1e-6, 0 }
---------------------------------------------------------------------------- Global Data Definitions and Declarations ----------------------------------------------------------------------------