/home/rays/src/opensrc/tesseract-ocr/classify/mfx.cpp File Reference

#include "mfdefs.h"
#include "mfoutline.h"
#include "clusttool.h"
#include "const.h"
#include "intfx.h"
#include "normalis.h"
#include "params.h"
#include <math.h>

Defines

#define NormalizeAngle(A)   ( (((A)<0)?((A)+2*PI):(A)) / (2*PI) )

Functions

FLOAT32 ComputeOrientation (MFEDGEPT *Start, MFEDGEPT *End)
MICROFEATURES ConvertToMicroFeatures (MFOUTLINE Outline, MICROFEATURES MicroFeatures)
MICROFEATURE ExtractMicroFeature (MFOUTLINE Start, MFOUTLINE End)
CHAR_FEATURES BlobMicroFeatures (TBLOB *Blob, const DENORM &denorm)

Variables

double classify_min_slope = 0.414213562
double classify_max_slope = 2.414213562

Define Documentation

#define NormalizeAngle (  )     ( (((A)<0)?((A)+2*PI):(A)) / (2*PI) )

---------------------------------------------------------------------------- Macros ----------------------------------------------------------------------------


Function Documentation

CHAR_FEATURES BlobMicroFeatures ( TBLOB Blob,
const DENORM denorm 
)

---------------------------------------------------------------------------- Public Code ----------------------------------------------------------------------------

FLOAT32 ComputeOrientation ( MFEDGEPT Start,
MFEDGEPT End 
)
MICROFEATURES ConvertToMicroFeatures ( MFOUTLINE  Outline,
MICROFEATURES  MicroFeatures 
)
MICROFEATURE ExtractMicroFeature ( MFOUTLINE  Start,
MFOUTLINE  End 
)

Variable Documentation

double classify_max_slope = 2.414213562

"Slope above which lines are called vertical"

double classify_min_slope = 0.414213562

---------------------------------------------------------------------------- Include Files and Type Defines ---------------------------------------------------------------------------- ---------------------------------------------------------------------------- Variables ---------------------------------------------------------------------------- "Slope below which lines are called horizontal"

Generated on Thu Feb 2 08:19:22 2012 for Tesseract by  doxygen 1.6.3