tesseract
5.0.0-alpha-619-ge9db
|
Go to the documentation of this file.
19 #ifndef TESSERACT_TRAINING_MERGENF_H_
20 #define TESSERACT_TRAINING_MERGENF_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])
75 float OrthogonalPad,
FRECT* BoundingBox);
79 #endif // TESSERACT_TRAINING_MERGENF_H_
void MakeNewFromOld(PROTO New, PROTOTYPE *Old)
void ComputeMergedProto(PROTO p1, PROTO p2, float w1, float w2, PROTO MergedProto)
void ComputePaddedBoundingBox(PROTO Proto, float TangentPad, float OrthogonalPad, FRECT *BoundingBox)
double EvidenceOf(double Similarity)
int FindClosestExistingProto(CLASS_TYPE Class, int NumMerged[], PROTOTYPE *Prototype)
float SubfeatureEvidence(FEATURE Feature, PROTO Proto)
bool PointInside(FRECT *Rectangle, float X, float Y)
float CompareProtos(PROTO p1, PROTO p2)
bool DummyFastMatch(FEATURE Feature, PROTO Proto)