All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
intmatcher.h File Reference
#include "params.h"
#include "intproto.h"
#include "cutoffs.h"

Go to the source code of this file.

Classes

struct  CP_RESULT_STRUCT
 
struct  ScratchEvidence
 
class  IntegerMatcher
 

Namespaces

 tesseract
 

Macros

#define SE_TABLE_BITS   9
 
#define SE_TABLE_SIZE   512
 

Functions

void IMDebugConfiguration (INT_FEATURE FeatureNum, uinT16 ActualProtoNum, uinT8 Evidence, BIT_VECTOR ConfigMask, uinT32 ConfigWord)
 
void IMDebugConfigurationSum (INT_FEATURE FeatureNum, uinT8 *FeatureEvidence, inT32 ConfigCount)
 
void HeapSort (int n, register int ra[], register int rb[])
 

Variables

bool disable_character_fragments = FALSE
 
int classify_integer_matcher_multiplier = 10
 
int classify_adapt_proto_thresh = 230
 
int classify_adapt_feature_thresh = 230
 

Macro Definition Documentation

#define SE_TABLE_BITS   9

Public Function Prototypes

Definition at line 66 of file intmatcher.h.

#define SE_TABLE_SIZE   512

Definition at line 67 of file intmatcher.h.

Function Documentation

void HeapSort ( int  n,
register int  ra[],
register int  rb[] 
)

Sort Key array in ascending order using heap sort algorithm. Also sort Index array that is tied to the key array.

Parameters
nNumber of elements to sort
raKey array [1..n]
rbIndex array [1..n]
Returns
none
Note
Exceptions: none
History: Tue Feb 19 10:24:24 MST 1991, RWM, Created.

Definition at line 1242 of file intmatcher.cpp.

1242  {
1243  register int i, rra, rrb;
1244  int l, j, ir;
1245 
1246  l = (n >> 1) + 1;
1247  ir = n;
1248  for (;;) {
1249  if (l > 1) {
1250  rra = ra[--l];
1251  rrb = rb[l];
1252  }
1253  else {
1254  rra = ra[ir];
1255  rrb = rb[ir];
1256  ra[ir] = ra[1];
1257  rb[ir] = rb[1];
1258  if (--ir == 1) {
1259  ra[1] = rra;
1260  rb[1] = rrb;
1261  return;
1262  }
1263  }
1264  i = l;
1265  j = l << 1;
1266  while (j <= ir) {
1267  if (j < ir && ra[j] < ra[j + 1])
1268  ++j;
1269  if (rra < ra[j]) {
1270  ra[i] = ra[j];
1271  rb[i] = rb[j];
1272  j += (i = j);
1273  }
1274  else
1275  j = ir + 1;
1276  }
1277  ra[i] = rra;
1278  rb[i] = rrb;
1279  }
1280 }
void IMDebugConfiguration ( INT_FEATURE  FeatureNum,
uinT16  ActualProtoNum,
uinT8  Evidence,
BIT_VECTOR  ConfigMask,
uinT32  ConfigWord 
)

Private Function Prototypes

void IMDebugConfigurationSum ( INT_FEATURE  FeatureNum,
uinT8 FeatureEvidence,
inT32  ConfigCount 
)

Variable Documentation

int classify_adapt_feature_thresh = 230

"Threshold for good features during adaptive 0-255: "

int classify_adapt_proto_thresh = 230

"Threshold for good protos during adaptive 0-255: "

int classify_integer_matcher_multiplier = 10

"Integer Matcher Multiplier 0-255: "

bool disable_character_fragments = FALSE

"Do not include character fragments in the" " results of the classifier"