#include <ctype.h>
#include "shapeclassifier.h"
#include "ambigs.h"
#include "blobclass.h"
#include "blobs.h"
#include "callcpp.h"
#include "classify.h"
#include "const.h"
#include "dict.h"
#include "efio.h"
#include "emalloc.h"
#include "featdefs.h"
#include "float2int.h"
#include "genericvector.h"
#include "globals.h"
#include "helpers.h"
#include "intfx.h"
#include "intproto.h"
#include "mfoutline.h"
#include "ndminx.h"
#include "normfeat.h"
#include "normmatch.h"
#include "outfeat.h"
#include "pageres.h"
#include "params.h"
#include "picofeat.h"
#include "shapetable.h"
#include "tessclassifier.h"
#include "trainingsample.h"
#include "unicharset.h"
#include "werd.h"
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <math.h>
Go to the source code of this file.
◆ ADAPT_TEMPLATE_SUFFIX
#define ADAPT_TEMPLATE_SUFFIX ".a" |
◆ ADAPTABLE_WERD_ADJUSTMENT
#define ADAPTABLE_WERD_ADJUSTMENT (0.05) |
◆ MAX_ADAPTABLE_WERD_SIZE
#define MAX_ADAPTABLE_WERD_SIZE 40 |
◆ MAX_MATCHES
◆ NO_DEBUG
◆ UNLIKELY_NUM_FEAT
#define UNLIKELY_NUM_FEAT 200 |
◆ WORST_POSSIBLE_RATING
#define WORST_POSSIBLE_RATING (0.0f) |
◆ Y_DIM_OFFSET
◆ InitMatcherRatings()
void InitMatcherRatings |
( |
register FLOAT32 * |
Rating | ) |
|
◆ MakeTempProtoPerm()
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 2041 of file adaptmatch.cpp.
#define TempConfigFor(Class, ConfigId)
void AddProtoToClassPruner(PROTO Proto, CLASS_ID ClassId, INT_TEMPLATES Templates)
TEMP_PROTO_STRUCT * TEMP_PROTO
#define MakeProtoPermanent(Class, ProtoId)
ADAPT_TEMPLATES Templates
void FreeTempProto(void *arg)
#define test_bit(array, bit)
ADAPT_CLASS Class[MAX_NUM_CLASSES]
◆ MarginalMatch()
bool MarginalMatch |
( |
float |
confidence, |
|
|
float |
matcher_great_threshold |
|
) |
| |
|
inline |
Definition at line 122 of file adaptmatch.cpp.
123 return (1.0f - confidence) > matcher_great_threshold;
◆ SetAdaptiveThreshold()
void SetAdaptiveThreshold |
( |
FLOAT32 |
Threshold | ) |
|