tesseract-doxygen/training/mergenf.cpp File Reference

#include "mergenf.h"
#include "general.h"
#include "efio.h"
#include "clusttool.h"
#include "cluster.h"
#include "oldlist.h"
#include "protos.h"
#include "ndminx.h"
#include "ocrfeatures.h"
#include "const.h"
#include "featdefs.h"
#include "intproto.h"
#include "varable.h"
#include <stdio.h>
#include <string.h>
#include <math.h>

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

double training_angle_match_scale = 1.0
double training_similarity_midpoint = 0.0075
double training_similarity_curl = 2.0
double training_tangent_bbox_pad = 0.5
double training_orthogonal_bbox_pad = 2.5
double training_angle_pad = 45.0

Function Documentation

FLOAT32 CompareProtos ( PROTO  p1,
PROTO  p2 
)

---------------------------------------------------------------------------- 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

---------------------------------------------------------------------------- Include Files and Type Defines ---------------------------------------------------------------------------- ---------------------------------------------------------------------------- Variables ----------------------------------------------------------------------------- "Angle Match Scale ..."

double training_angle_pad = 45.0

"Angle pad ..."

"Orthogonal bounding box pad ..."

"Similarity Curl ..."

"Similarity Midpoint ..."

"Tangent bounding box pad ..."

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