tesseract-doxygen/classify/mfx.cpp File Reference

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

Defines

#define NormalizeAngle(A)   ( (((A)<0)?((A)+2*PI):(A)) / (2*PI) )
#define angle_of(x1, y1, x2, y2)
#define scale_angle(x)   (((x<0) ? (2.0 * PI + x) : (x)) * 0.5 / PI) \

Functions

void ComputeBulges (MFOUTLINE Start, MFOUTLINE End, MICROFEATURE MicroFeature)
FLOAT32 ComputeOrientation (MFEDGEPT *Start, MFEDGEPT *End)
MICROFEATURES ConvertToMicroFeatures (MFOUTLINE Outline, MICROFEATURES MicroFeatures)
MICROFEATURE ExtractMicroFeature (MFOUTLINE Start, MFOUTLINE End)
void SmearBulges (MICROFEATURES MicroFeatures, FLOAT32 XScale, FLOAT32 YScale)
CHAR_FEATURES BlobMicroFeatures (TBLOB *Blob, LINE_STATS *LineStats)

Variables

double classify_min_slope = 0.414213562
double classify_max_slope = 2.414213562
double classify_noise_segment_length = 0.00

Define Documentation

#define angle_of ( x1,
y1,
x2,
y2   ) 
Value:
((x2-x1) ?                                    \
  (atan2 (y2-y1, x2-x1)) :                     \
  ((y2<y1) ? (- PI / 2.0) : (PI / 2.0)))   \

---------------------------------------------------------------------------- Private Macros ----------------------------------------------------------------------------

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

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

#define scale_angle (  )     (((x<0) ? (2.0 * PI + x) : (x)) * 0.5 / PI) \

Function Documentation

CHAR_FEATURES BlobMicroFeatures ( TBLOB Blob,
LINE_STATS LineStats 
)

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

void ComputeBulges ( MFOUTLINE  Start,
MFOUTLINE  End,
MICROFEATURE  MicroFeature 
)
FLOAT32 ComputeOrientation ( MFEDGEPT Start,
MFEDGEPT End 
)
MICROFEATURES ConvertToMicroFeatures ( MFOUTLINE  Outline,
MICROFEATURES  MicroFeatures 
)
MICROFEATURE ExtractMicroFeature ( MFOUTLINE  Start,
MFOUTLINE  End 
)
void SmearBulges ( MICROFEATURES  MicroFeatures,
FLOAT32  XScale,
FLOAT32  YScale 
)

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"

"Length below which outline segments are treated as noise"

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