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 ComputePaddedBoundingBox(PROTO Proto, float TangentPad, float OrthogonalPad, FRECT *BoundingBox)
float SubfeatureEvidence(FEATURE Feature, PROTO Proto)
double EvidenceOf(double Similarity)
int FindClosestExistingProto(CLASS_TYPE Class, int NumMerged[], PROTOTYPE *Prototype)
float CompareProtos(PROTO p1, PROTO p2)
bool PointInside(FRECT *Rectangle, float X, float Y)
void ComputeMergedProto(PROTO p1, PROTO p2, float w1, float w2, PROTO MergedProto)
bool DummyFastMatch(FEATURE Feature, PROTO Proto)
void MakeNewFromOld(PROTO New, PROTOTYPE *Old)