tesseract-doxygen/wordrec/heuristic.cpp File Reference

#include <math.h>
#include "heuristic.h"
#include "baseline.h"
#include "freelist.h"
#include "metrics.h"
#include "measure.h"
#include "ratngs.h"
#include "wordrec.h"

Namespaces

namespace  tesseract

Defines

#define MAX_SQUAT   2.0
#define BAD_RATING   1000.0

Functions

WIDTH_RECORDtesseract::state_char_widths (WIDTH_RECORD *chunk_widths, STATE *state, int num_joints)
FLOAT32 tesseract::get_width_variance (WIDTH_RECORD *wrec, float norm_height)
FLOAT32 tesseract::get_gap_variance (WIDTH_RECORD *wrec, float norm_height)
FLOAT32 tesseract::fp_width_cost (float norm_width, bool end_pos)
FLOAT32 tesseract::fp_gap_cost (float norm_gap, bool end_pos)

Variables

int segment_adjust_debug = 0
bool assume_fixed_pitch_char_segment = 0
bool use_new_state_cost = 0
double heuristic_segcost_rating_base = 1.25
double heuristic_weight_rating = 1
double heuristic_weight_width = 0
double heuristic_weight_seamcut = 0
double heuristic_max_char_wh_ratio = 2.0

Define Documentation

#define BAD_RATING   1000.0
#define MAX_SQUAT   2.0

Variable Documentation

"include fixed-pitch heuristics in char segmentation"

"max char width-to-height ratio allowed in segmentation"

"base factor for adding segmentation cost into word rating." "It's a multiplying factor, the larger the value above 1, " "the bigger the effect of segmentation cost."

"weight associated with char rating in combined cost of state"

"weight associated with seam cut in combined cost of state"

"weight associated with width evidence in combined cost of state"

"Segmentation adjustment debug"

"use new state cost heuristics for segmentation state evaluation"

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