tesseract-doxygen/training/mergenf.h File Reference
#include "protos.h"
#include "cluster.h"
#include "ocrfeatures.h"
#include "callcpp.h"
#include "picofeat.h"
Go to the source code of this file.
Classes |
struct | FRECT |
Defines |
#define | WORST_MATCH_ALLOWED (0.9) |
#define | WORST_EVIDENCE (1.0) |
#define | MAX_LENGTH_MISMATCH (2.0 * GetPicoFeatureLength ()) |
#define | PROTO_SUFFIX ".mf.p" |
#define | CONFIG_SUFFIX ".cl" |
#define | NO_PROTO (-1) |
#define | XPOSITION 0 |
#define | YPOSITION 1 |
#define | MFLENGTH 2 |
#define | ORIENTATION 3 |
#define | CenterX(M) ( (M)[XPOSITION] ) |
#define | CenterY(M) ( (M)[YPOSITION] ) |
#define | LengthOf(M) ( (M)[MFLENGTH] ) |
#define | OrientationOf(M) ( (M)[ORIENTATION] ) |
Functions |
FLOAT32 | CompareProtos (PROTO p1, PROTO p2) |
void | ComputeMergedProto (PROTO p1, PROTO p2, FLOAT32 w1, FLOAT32 w2, PROTO MergedProto) |
int | FindClosestExistingProto (CLASS_TYPE Class, int NumMerged[], PROTOTYPE *Prototype) |
void | MakeNewFromOld (PROTO New, PROTOTYPE *Old) |
FLOAT32 | SubfeatureEvidence (FEATURE Feature, PROTO Proto) |
FLOAT32 | EvidenceOf (register FLOAT32 Similarity) |
BOOL8 | DummyFastMatch (FEATURE Feature, PROTO Proto) |
void | ComputePaddedBoundingBox (PROTO Proto, FLOAT32 TangentPad, FLOAT32 OrthogonalPad, FRECT *BoundingBox) |
BOOL8 | PointInside (FRECT *Rectangle, FLOAT32 X, FLOAT32 Y) |
Variables |
FEATURE_DESC_STRUCT | PicoFeatDesc |
Define Documentation
#define CenterX |
( |
M |
|
) |
( (M)[XPOSITION] ) |
---------------------------------------------------------------------------- Public Macros ----------------------------------------------------------------------------
#define CenterY |
( |
M |
|
) |
( (M)[YPOSITION] ) |
#define CONFIG_SUFFIX ".cl" |
#define LengthOf |
( |
M |
|
) |
( (M)[MFLENGTH] ) |
#define MAX_LENGTH_MISMATCH (2.0 * GetPicoFeatureLength ()) |
#define OrientationOf |
( |
M |
|
) |
( (M)[ORIENTATION] ) |
#define PROTO_SUFFIX ".mf.p" |
#define WORST_EVIDENCE (1.0) |
#define WORST_MATCH_ALLOWED (0.9) |
---------------------------------------------------------------------------- Include Files and Type Defines ----------------------------------------------------------------------------
Function Documentation
---------------------------------------------------------------------------- Public Function Prototypes ----------------------------------------------------------------------------
---------------------------------------------------------------------------- Global Data Definitions and Declarations ---------------------------------------------------------------------------- ---------------------------------------------------------------------------- Public Code ----------------------------------------------------------------------------
Variable Documentation