Trainer Class Reference

The Trainer class provides for computing the clusters for a script. More...

#include <Trainer.h>

List of all members.

Public Member Functions

 Trainer (void)
 Constructor.
 ~Trainer (void)
 Destrucotr.

Static Public Member Functions

static int train (char *training_file_list, char *language, int hamming_distance, int min_component_size, int max_height, int max_width, int blob_percent, int symbol_cnt, int scaled_width, int scaled_height, int small_cluster_threshold, char *results_file)


Detailed Description

The Trainer class provides for computing the clusters for a script.

Trainer is a class used to compute the clusters for a particular script It is provided a list of images and generates the clusters based on the connected components within the images.

Definition at line 24 of file Trainer.h.


Constructor & Destructor Documentation

Trainer::Trainer ( void   ) 

Constructor.

Trainer::~Trainer ( void   ) 

Destrucotr.


Member Function Documentation

static int Trainer::train ( char *  training_file_list,
char *  language,
int  hamming_distance,
int  min_component_size,
int  max_height,
int  max_width,
int  blob_percent,
int  symbol_cnt,
int  scaled_width,
int  scaled_height,
int  small_cluster_threshold,
char *  results_file 
) [static]

Train is the main function to train language scripts and generate data to be used for the Jargon script ID

/param training_file_list file containing list of training files for the script /param language language /param hamming_distance hamming distance /param min_component_size minimum component size /param max_height max_height of component /param max_width max_width of component /param blob_percent min_black_area (percentage value used to filter blob-like symbols - not currently used in training. This is used in id. /param symbol_cnt ymbol count (for debut only normally all symbols are processed /param scaled_width escale_width /param scaled_height rescale_height /param small_cluster_threshold small_cluster_threshold /param results_file file to which results should be stored


The documentation for this class was generated from the following file:
Generated on Fri Feb 23 15:32:33 2007 for Jargon by  doxygen 1.5.1