#include <ctype.h>
#include "ambigs.h"
#include "blobclass.h"
#include "blobs.h"
#include "helpers.h"
#include "normfeat.h"
#include "mfoutline.h"
#include "picofeat.h"
#include "float2int.h"
#include "outfeat.h"
#include "emalloc.h"
#include "intfx.h"
#include "speckle.h"
#include "efio.h"
#include "normmatch.h"
#include "permute.h"
#include "ndminx.h"
#include "intproto.h"
#include "const.h"
#include "globals.h"
#include "werd.h"
#include "callcpp.h"
#include "pageres.h"
#include "params.h"
#include "classify.h"
#include "shapetable.h"
#include "tessclassifier.h"
#include "trainingsample.h"
#include "unicharset.h"
#include "dict.h"
#include "featdefs.h"
#include "genericvector.h"
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <math.h>
Go to the source code of this file.
Macro Definition Documentation
#define ADAPT_TEMPLATE_SUFFIX ".a" |
#define ADAPTABLE_WERD_ADJUSTMENT (0.05) |
#define InitIntFX |
( |
| ) |
(FeaturesHaveBeenExtracted = FALSE) |
#define MarginalMatch |
( |
|
Rating | ) |
((Rating) > matcher_great_threshold) |
#define MAX_ADAPTABLE_WERD_SIZE 40 |
#define UNLIKELY_NUM_FEAT 200 |
#define WORST_POSSIBLE_RATING (1.0) |
Function Documentation
int CompareByRating |
( |
const void * |
arg1, |
|
|
const void * |
arg2 |
|
) |
| |
Definition at line 1650 of file adaptmatch.cpp.
{
return -1;
return 1;
return -1;
return 1;
return 0;
}
void InitMatcherRatings |
( |
register FLOAT32 * |
Rating | ) |
|
int MakeTempProtoPerm |
( |
void * |
item1, |
|
|
void * |
item2 |
|
) |
| |
This routine converts TempProto to be permanent if its proto id is used by the configuration specified in ProtoKey.
- Parameters:
-
item1 | (TEMP_PROTO) temporary proto to compare to key |
item2 | (PROTO_KEY) defines which protos to make permanent |
Globals: none
- Returns:
- TRUE if TempProto is converted, FALSE otherwise
- Note:
- Exceptions: none
-
History: Thu Mar 14 18:49:54 1991, DSJ, Created.
Definition at line 2387 of file adaptmatch.cpp.
Definition at line 1640 of file adaptmatch.cpp.
{
kBlankFontinfoId, kBlankFontinfoId};
return (entry ==
NULL) ? poor_result : *entry;
}
void SetAdaptiveThreshold |
( |
FLOAT32 |
Threshold | ) |
|