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

Go to the source code of this file.

Classes

struct  INT_RESULT_STRUCT
 
struct  CP_RESULT_STRUCT
 
struct  ScratchEvidence
 
class  IntegerMatcher
 

Macros

#define SE_TABLE_BITS   9
 
#define SE_TABLE_SIZE   512
 

Typedefs

typedef INT_RESULT_STRUCTINT_RESULT
 
typedef CP_RESULT_STRUCT CLASS_PRUNER_RESULTS [MAX_NUM_CLASSES]
 

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 = 14
 
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 73 of file intmatcher.h.

#define SE_TABLE_SIZE   512

Definition at line 74 of file intmatcher.h.

Typedef Documentation

typedef CP_RESULT_STRUCT CLASS_PRUNER_RESULTS[MAX_NUM_CLASSES]

Definition at line 57 of file intmatcher.h.

Definition at line 48 of file intmatcher.h.

Function Documentation

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

Definition at line 1305 of file intmatcher.cpp.

1305  {
1306 /*
1307  ** Parameters:
1308  ** n Number of elements to sort
1309  ** ra Key array [1..n]
1310  ** rb Index array [1..n]
1311  ** Globals:
1312  ** Operation:
1313  ** Sort Key array in ascending order using heap sort
1314  ** algorithm. Also sort Index array that is tied to
1315  ** the key array.
1316  ** Return:
1317  ** Exceptions: none
1318  ** History: Tue Feb 19 10:24:24 MST 1991, RWM, Created.
1319  */
1320  register int i, rra, rrb;
1321  int l, j, ir;
1322 
1323  l = (n >> 1) + 1;
1324  ir = n;
1325  for (;;) {
1326  if (l > 1) {
1327  rra = ra[--l];
1328  rrb = rb[l];
1329  }
1330  else {
1331  rra = ra[ir];
1332  rrb = rb[ir];
1333  ra[ir] = ra[1];
1334  rb[ir] = rb[1];
1335  if (--ir == 1) {
1336  ra[1] = rra;
1337  rb[1] = rrb;
1338  return;
1339  }
1340  }
1341  i = l;
1342  j = l << 1;
1343  while (j <= ir) {
1344  if (j < ir && ra[j] < ra[j + 1])
1345  ++j;
1346  if (rra < ra[j]) {
1347  ra[i] = ra[j];
1348  rb[i] = rb[j];
1349  j += (i = j);
1350  }
1351  else
1352  j = ir + 1;
1353  }
1354  ra[i] = rra;
1355  rb[i] = rrb;
1356  }
1357 }
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 = 14

"Integer Matcher Multiplier 0-255: "

bool disable_character_fragments = FALSE

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