tesseract-doxygen/dict/stopper.cpp File Reference

#include "stopper.h"
#include "emalloc.h"
#include "matchdefs.h"
#include "general.h"
#include <stdio.h>
#include "unichar.h"
#include "callcpp.h"
#include "permute.h"
#include "context.h"
#include "danerror.h"
#include "const.h"
#include "freelist.h"
#include "efio.h"
#include "scanutils.h"
#include "varable.h"
#include "dict.h"
#include "image.h"
#include "ccutil.h"
#include "ratngs.h"
#include "ambigs.h"
#include <string.h>
#include <ctype.h>
#include <math.h>

Classes

struct  EXPANDED_CHOICE

Namespaces

namespace  tesseract

Defines

#define MAX_WERD_SIZE   100
#define BestCertainty(Choices)   (((VIABLE_CHOICE) first_node (Choices))->Certainty)
#define BestRating(Choices)   (((VIABLE_CHOICE) first_node (Choices))->Rating)
#define BestFactor(Choices)   (((VIABLE_CHOICE) first_node (Choices))->AdjustFactor)
#define AmbigThreshold(F1, F2)

Functions

void AddNewChunk (VIABLE_CHOICE Choice, int Blob)
int CmpChoiceRatings (void *arg1, void *arg2)
void ExpandChoice (VIABLE_CHOICE Choice, EXPANDED_CHOICE *ExpandedChoice)
int FreeBadChoice (void *item1, void *item2)
int UniformCertainties (const BLOB_CHOICE_LIST_VECTOR &Choices, const WERD_CHOICE &BestChoice)

Variables

double certainty_scale = 20.0
double stopper_nondict_certainty_base = -2.50
double stopper_phase2_certainty_rejection_offset = 1.0
int stopper_smallword_size = 2
double stopper_certainty_per_char = -0.50
double stopper_allowable_character_badness = 3.0
int stopper_debug_level = 0
double stopper_ambiguity_threshold_gain = 8.0
double stopper_ambiguity_threshold_offset = 1.5
bool stopper_no_acceptable_choices = false
bool save_raw_choices = false
int tessedit_truncate_wordchoice_log = 10
char * word_to_debug = ""
char * word_to_debug_lengths = ""

Define Documentation

#define AmbigThreshold ( F1,
F2   ) 
#define BestCertainty ( Choices   )     (((VIABLE_CHOICE) first_node (Choices))->Certainty)

---------------------------------------------------------------------------- Macros ----------------------------------------------------------------------------

#define BestFactor ( Choices   )     (((VIABLE_CHOICE) first_node (Choices))->AdjustFactor)
#define BestRating ( Choices   )     (((VIABLE_CHOICE) first_node (Choices))->Rating)
#define MAX_WERD_SIZE   100

---------------------------------------------------------------------------- Include Files and Type Defines ----------------------------------------------------------------------------


Function Documentation

void AddNewChunk ( VIABLE_CHOICE  Choice,
int  Blob 
)

---------------------------------------------------------------------------- Private Code ----------------------------------------------------------------------------

int CmpChoiceRatings ( void *  arg1,
void *  arg2 
)
void ExpandChoice ( VIABLE_CHOICE  Choice,
EXPANDED_CHOICE ExpandedChoice 
)
int FreeBadChoice ( void *  item1,
void *  item2 
)
int UniformCertainties ( const BLOB_CHOICE_LIST_VECTOR Choices,
const WERD_CHOICE BestChoice 
)

Variable Documentation

double certainty_scale = 20.0

---------------------------------------------------------------------- V a r i a b l e s ---------------------------------------------------------------------- "Certainty scaling factor"

"Save all explored raw choices"

"Max certaintly variation allowed in a word (in sigma)"

"Gain factor for ambiguity threshold"

"Certainty offset for ambiguity threshold"

"Certainty to add for each dict char above small word size."

"Stopper debug level"

"Make AcceptableChoice() always return false. Useful" " when there is a need to explore all segmentations"

"Certainty threshold for non-dict words"

"Reject certainty offset"

"Size of dict word to be treated as non-dict word"

"Max words to keep in list"

char* word_to_debug = ""

"Word for which stopper debug information" " should be printed to stdout"

"Lengths of unichars in word_to_debug"

Generated on Sun Jul 18 17:10:51 2010 for Tesseract by  doxygen 1.6.3