tesseract  3.04.00
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
mfdefs.h File Reference
#include "oldlist.h"
#include "matchdefs.h"

Go to the source code of this file.

Macros

#define MFSIZE   6
 
#define XPOSITION   0
 
#define YPOSITION   1
 
#define MFLENGTH   2
 
#define ORIENTATION   3
 
#define FIRSTBULGE   4
 
#define SECONDBULGE   5
 
#define NextFeatureOf(L)   ( (MICROFEATURE) first_node ( L ) )
 

Typedefs

typedef LIST MICROFEATURES
 
typedef FLOAT32 MFBLOCK [MFSIZE]
 
typedef FLOAT32MICROFEATURE
 

Functions

MICROFEATURE NewMicroFeature ()
 
void FreeMicroFeatures (MICROFEATURES MicroFeatures)
 

Macro Definition Documentation

#define FIRSTBULGE   4

Definition at line 40 of file mfdefs.h.

#define MFLENGTH   2

Definition at line 38 of file mfdefs.h.

#define MFSIZE   6

Definition at line 31 of file mfdefs.h.

#define NextFeatureOf (   L)    ( (MICROFEATURE) first_node ( L ) )

Macros

Definition at line 48 of file mfdefs.h.

#define ORIENTATION   3

Definition at line 39 of file mfdefs.h.

#define SECONDBULGE   5

Definition at line 41 of file mfdefs.h.

#define XPOSITION   0

Definition at line 36 of file mfdefs.h.

#define YPOSITION   1

Definition at line 37 of file mfdefs.h.

Typedef Documentation

typedef FLOAT32 MFBLOCK[MFSIZE]

Definition at line 32 of file mfdefs.h.

Definition at line 33 of file mfdefs.h.


Include Files and Type Defines

Definition at line 28 of file mfdefs.h.

Function Documentation

void FreeMicroFeatures ( MICROFEATURES  MicroFeatures)

Definition at line 45 of file mfdefs.cpp.

45  {
46 /*
47  ** Parameters:
48  ** MicroFeatures list of micro-features to be freed
49  ** Globals: none
50  ** Operation:
51  ** This routine deallocates all of the memory consumed by
52  ** a list of micro-features.
53  ** Return: none
54  ** Exceptions: none
55  ** History: 7/27/89, DSJ, Created.
56  */
57  destroy_nodes(MicroFeatures, Efree);
58 } /* FreeMicroFeatures */
void destroy_nodes(LIST list, void_dest destructor)
Definition: oldlist.cpp:204
void Efree(void *ptr)
Definition: emalloc.cpp:85
MICROFEATURE NewMicroFeature ( )

Public Function Prototypes


Include Files and Type Defines

Public Code

Definition at line 29 of file mfdefs.cpp.

29  {
30 /*
31  ** Parameters: none
32  ** Globals: none
33  ** Operation:
34  ** This routine allocates and returns a new micro-feature
35  ** data structure.
36  ** Return: New micro-feature.
37  ** Exceptions: none
38  ** History: 7/27/89, DSJ, Created.
39  */
40  return ((MICROFEATURE) Emalloc (sizeof (MFBLOCK)));
41 } /* NewMicroFeature */
FLOAT32 * MICROFEATURE
Definition: mfdefs.h:33
FLOAT32 MFBLOCK[MFSIZE]
Definition: mfdefs.h:32
void * Emalloc(int Size)
Definition: emalloc.cpp:35