classify/mfdefs.h File Reference

#include "oldlist.h"
#include "matchdefs.h"
#include "xform2d.h"

Go to the source code of this file.

Defines

Typedefs

Functions


Define Documentation

#define BULGENORMALIZER   0.942809041

maximum size of a bulge for length=1 is sqrt(2)/3

Definition at line 30 of file mfdefs.h.

Referenced by ComputeBulges(), and SmearBulges().

#define CenterX (  )     ( (M)[XPOSITION] )

Definition at line 62 of file mfdefs.h.

Referenced by ExtractMicroFeature(), ExtractMicros(), and MakeNewFromOld().

#define CenterY (  )     ( (M)[YPOSITION] )

Definition at line 63 of file mfdefs.h.

Referenced by ExtractMicroFeature(), ExtractMicros(), and MakeNewFromOld().

#define FIRSTBULGE   4

Definition at line 55 of file mfdefs.h.

#define FirstBulgeOf (  )     ( (M)[FIRSTBULGE] )

Definition at line 66 of file mfdefs.h.

Referenced by ComputeBulges(), and SmearBulges().

#define LengthOf (  )     ( (M)[MFLENGTH] )

Definition at line 64 of file mfdefs.h.

Referenced by ComputeBulges(), ExtractMicroFeature(), ExtractMicros(), MakeNewFromOld(), and SmearBulges().

#define MFLENGTH   2

Definition at line 53 of file mfdefs.h.

#define MFSIZE   6

definition of structure of micro-features

Definition at line 38 of file mfdefs.h.

#define NextFeatureOf (  )     ( (MICROFEATURE) first( L ) )

macros for accessing micro-feature lists

Definition at line 70 of file mfdefs.h.

Referenced by SmearBulges().

#define ORIENTATION   3

Definition at line 54 of file mfdefs.h.

#define OrientationOf (  )     ( (M)[ORIENTATION] )

Definition at line 65 of file mfdefs.h.

Referenced by ComputeBulges(), ExtractMicroFeature(), ExtractMicros(), MakeNewFromOld(), and SmearBulges().

#define SECONDBULGE   5

Definition at line 56 of file mfdefs.h.

#define SecondBulgeOf (  )     ( (M)[SECONDBULGE] )

Definition at line 67 of file mfdefs.h.

Referenced by ComputeBulges(), and SmearBulges().

#define XPOSITION   0

Definition at line 51 of file mfdefs.h.

#define YPOSITION   1

Definition at line 52 of file mfdefs.h.


Typedef Documentation

MFBLOCK

FIX:

Definition at line 43 of file mfdefs.h.

MICROFEATURE

FIX:

Definition at line 48 of file mfdefs.h.

MICROFEATURES

Definition of a list of micro-features

Definition at line 36 of file mfdefs.h.


Function Documentation

void FreeMicroFeatures ( MICROFEATURES  MicroFeatures  ) 

Deallocates all of the memory consumed by a list of micro-features.

Parameters:
MicroFeatures list of micro-features to be freed
Returns:
none
Note:
Exceptions: none
Date:
7/27/89, DSJ, Created.

Definition at line 52 of file mfdefs.cpp.

References destroy_nodes(), and Efree().

Referenced by ExtractMicros().

00052                                                     { 
00053   destroy_nodes(MicroFeatures, Efree); 
00054 }                                /* FreeMicroFeatures */

MICROFEATURE NewMicroFeature (  ) 

Allocates and returns a new micro-feature data structure.

Parameters:
none 
Returns:
New micro-feature.
Note:
Exceptions: none
Date:
7/27/89, DSJ, Created.

Definition at line 38 of file mfdefs.cpp.

References Emalloc().

Referenced by ExtractMicroFeature().

00038                                { 
00039   return ((MICROFEATURE) Emalloc (sizeof (MFBLOCK)));
00040 }                                /* NewMicroFeature */


Generated on Wed Feb 28 19:49:20 2007 for Tesseract by  doxygen 1.5.1