JargonReliability.h

Go to the documentation of this file.
00001 #ifndef JARGONRELIABILITY_H
00002 #define JARGONRELIABILITY_H
00003 
00004 #include "JMorphology.h"
00005 #include "JStatistics.h"
00006 #include "JScript.h"
00007 
00008 #include "DLConnectedComponentsUtils.h"
00009 #include "DLImage.h"
00010 #include "DLConnectedComponents.h"
00011 #include "DLComponent.h"
00012 #include "JargonUtils.h"
00013 
00014 #include <vector>
00015 #include <cstdio>
00016 #include <cstdlib>
00017 #include <cmath>
00018 #include <iostream>
00019 #include <fstream>
00020 #include <vector>
00021 #include <string>
00022 using namespace std;
00023 /***
00024  * Jargon Reliability class is used to computer the "reliability" metric for each cluster
00025  * formed during the training (cluster formation) process.  The reliability number is between
00026  * 0 and 1 and serves as a measure for how unique a particular cluster is to a script.  
00027  * output.
00028  */
00029 
00031 
00032 class JargonReliability
00033 {
00034    public:
00036    JargonReliability(void);
00038    ~JargonReliability(void);
00039 
00052    static void compute_reliability(char *file_list_path, char *language_list_path,
00053                                    int max_height, int max_width, int min_component_size,
00054                                    int scaled_height, int scaled_width,
00055                                    char *reliability_directory_path, char *identifier,
00056                                    int *hamming_lookup); 
00057    private:
00058 
00064    static bool makeDirectory(string dir);
00071    static void Tokenize(const string& str,
00072                         vector<string>& tokens,
00073                         const string& delimiters);
00074 
00081    static bool copyFile(string org, string dest);
00082 };
00083 
00084 #endif

Generated on Fri Feb 23 15:32:33 2007 for Jargon by  doxygen 1.5.1