cutil/tordvars.cpp

Go to the documentation of this file.
00001 
00020 /*----------------------------------------------------------------------
00021               I n c l u d e s
00022 ----------------------------------------------------------------------*/
00023 #include "mfcpch.h"
00024 #include "debug.h"
00025 
00026 /*----------------------------------------------------------------------
00027               V a r i a b l e s
00028 ----------------------------------------------------------------------*/
00030 FILE *rawfile;
00032 FILE *textfile;
00034 FILE *matcher_fp;
00036 FILE *correct_fp;
00037 
00039 int write_output;
00041 int write_raw_output;
00042 
00043 int similarity_enable = 0;
00044 int similarity_debug = 0;
00045 
00048 make_float_var (certainty_threshold, -2.25, make_certainty_threshold,
00049 4, 5, set_certainty_value, "Certainty Value");
00050 
00051 make_int_var (num_word_choices, 30, make_num_word_choices,
00052 4, 6, set_num_choices, "Number of choices");
00053 
00054 make_toggle_var (blob_skip, 0, make_blob_skip,
00055 4, 7, toggle_skip, "Skip to Next selection");
00056 
00057 make_float_var (overlap_threshold, 0.33, make_overlap_threshold,
00058 9, 7, set_overlap, "Overlap Threshold");
00059 
00060 make_toggle_var (debug_3, 0, make_debug_3, 6, 3, toggle_debug_3, "Debug #3");
00061 
00062 make_toggle_var (debug_5, 0, make_debug_5, 6, 5, toggle_debug_5, "Debug #5");
00063 
00064 make_toggle_var (debug_8, 0, make_debug_8, 6, 8, toggle_debug_8, "Debug #8");
00065 
00066 make_toggle_var (display_ratings, 0, make_display_ratings,
00067 6, 9, toggle_ratings, "Ratings display");
00068 
00069 make_toggle_var (display_text, 1, make_display_text,
00070 6, 10, toggle_text, "Display Text");
00071 
00072 make_toggle_var (show_bold, 1, make_show_bold,
00073 6, 17, set_show_bold, "Show Bold Text");
00076 /*----------------------------------------------------------------------
00077               F u n c t i o n s
00078 ----------------------------------------------------------------------*/
00082 void init_textord_vars() { 
00083   int_variable (write_output, "write_output", 0);
00084   int_variable (write_raw_output, "write_raw_output", 0);
00085   make_certainty_threshold();
00086   make_num_word_choices();
00087   make_blob_skip();
00088   make_overlap_threshold();
00089   make_show_bold();
00090 
00091   make_debug_3();
00092   make_debug_5();
00093   make_debug_8();
00094 
00095   make_display_ratings();
00096   make_display_text();
00097 }

Generated on Wed Feb 28 19:49:10 2007 for Tesseract by  doxygen 1.5.1