19 #ifndef TESSERACT_TRAINING_MERGENF_H_ 20 #define TESSERACT_TRAINING_MERGENF_H_ 27 #include "ocrfeatures.h" 31 #define WORST_MATCH_ALLOWED (0.9) 32 #define WORST_EVIDENCE (1.0) 33 #define MAX_LENGTH_MISMATCH (2.0 * GetPicoFeatureLength()) 35 #define PROTO_SUFFIX ".mf.p" 36 #define CONFIG_SUFFIX ".cl" 44 float MinX, MaxX,
MinY, MaxY;
50 #define CenterX(M) ((M)[XPOSITION]) 51 #define CenterY(M) ((M)[YPOSITION]) 52 #define LengthOf(M) ((M)[MFLENGTH]) 53 #define OrientationOf(M) ((M)[ORIENTATION]) 60 void ComputeMergedProto(
PROTO p1,
PROTO p2,
float w1,
float w2,
63 int FindClosestExistingProto(
CLASS_TYPE Class,
int NumMerged[],
70 double EvidenceOf(
double Similarity);
74 void ComputePaddedBoundingBox(
PROTO Proto,
float TangentPad,
75 float OrthogonalPad,
FRECT* BoundingBox);
77 bool PointInside(
FRECT* Rectangle,
float X,
float Y);
79 #endif // TESSERACT_TRAINING_MERGENF_H_
Definition: ocrfeatures.h:60
float MinY
Definition: mergenf.h:44