tesseract 3.04.01

classify/mfdefs.h File Reference

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

Go to the source code of this file.

Defines

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

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

This routine deallocates all of the memory consumed by a list of micro-features.

Parameters:
MicroFeatureslist of micro-features to be freed
Returns:
none
Note:
History: 7/27/89, DSJ, Created.

Definition at line 48 of file mfdefs.cpp.

                                                    { 
  destroy_nodes(MicroFeatures, Efree); 
}                                /* FreeMicroFeatures */
MICROFEATURE NewMicroFeature ( )

---------------------------------------------------------------------------- Public Function Prototypes ----------------------------------------------------------------------------

This routine allocates and returns a new micro-feature data structure.

Returns:
New MICROFEATURE
Note:
History: 7/27/89, DSJ, Created.

Definition at line 35 of file mfdefs.cpp.

                               { 
  return ((MICROFEATURE) Emalloc (sizeof (MFBLOCK)));
}                                /* NewMicroFeature */
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines