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)[XPOSITION] )

---------------------------------------------------------------------------- Public Macros ----------------------------------------------------------------------------

#define CenterY (  )     ( (M)[YPOSITION] )
#define CONFIG_SUFFIX   ".cl"
#define LengthOf (  )     ( (M)[MFLENGTH] )
#define MAX_LENGTH_MISMATCH   (2.0 * GetPicoFeatureLength ())
#define MFLENGTH   2
#define NO_PROTO   (-1)
#define ORIENTATION   3
#define OrientationOf (  )     ( (M)[ORIENTATION] )
#define PROTO_SUFFIX   ".mf.p"
#define WORST_EVIDENCE   (1.0)
#define WORST_MATCH_ALLOWED   (0.9)

---------------------------------------------------------------------------- Include Files and Type Defines ----------------------------------------------------------------------------

#define XPOSITION   0
#define YPOSITION   1

Function Documentation

FLOAT32 CompareProtos ( PROTO  p1,
PROTO  p2 
)

---------------------------------------------------------------------------- Public Function Prototypes ----------------------------------------------------------------------------

---------------------------------------------------------------------------- Global Data Definitions and Declarations ---------------------------------------------------------------------------- ---------------------------------------------------------------------------- Public Code ----------------------------------------------------------------------------

void ComputeMergedProto ( PROTO  p1,
PROTO  p2,
FLOAT32  w1,
FLOAT32  w2,
PROTO  MergedProto 
)
void ComputePaddedBoundingBox ( PROTO  Proto,
FLOAT32  TangentPad,
FLOAT32  OrthogonalPad,
FRECT BoundingBox 
)
BOOL8 DummyFastMatch ( FEATURE  Feature,
PROTO  Proto 
)
FLOAT32 EvidenceOf ( register FLOAT32  Similarity  ) 
int FindClosestExistingProto ( CLASS_TYPE  Class,
int  NumMerged[],
PROTOTYPE Prototype 
)
void MakeNewFromOld ( PROTO  New,
PROTOTYPE Old 
)
BOOL8 PointInside ( FRECT Rectangle,
FLOAT32  X,
FLOAT32  Y 
)
FLOAT32 SubfeatureEvidence ( FEATURE  Feature,
PROTO  Proto 
)

Variable Documentation

Generated on Sun Jul 18 17:10:51 2010 for Tesseract by  doxygen 1.6.3