#include "ocrfeatures.h"
#include "fpoint.h"
#include "mfoutline.h"
Go to the source code of this file.
      
        
          | #define MAX_OUTLINE_FEATURES   (100) | 
      
 
 
 Include Files and Type Defines 
| Enumerator | 
|---|
| OutlineFeatX |  | 
| OutlineFeatY |  | 
| OutlineFeatLength |  | 
| OutlineFeatDir |  | 
Definition at line 28 of file outfeat.h.
 
 
This routine computes the midpoint between Start and End to obtain the x,y position of the outline-feature. It also computes the direction from Start to End as the direction of the outline-feature and the distance from Start to End as the length of the outline-feature. This feature is then inserted into the next feature slot in FeatureSet. 
- Parameters
- 
  
    | Start | starting point of outline-feature |  | End | ending point of outline-feature |  | FeatureSet | set to add outline-feature to |  
 
- Returns
- none (results are placed in FeatureSet) 
- Note
- Globals: none 
- 
Exceptions: none 
- 
History: 11/13/90, DSJ, Created. 
Definition at line 93 of file outfeat.cpp.
FEATURE NewFeature(const FEATURE_DESC_STRUCT *FeatureDesc)
FLOAT32 NormalizedAngleFrom(FPOINT *Point1, FPOINT *Point2, FLOAT32 FullScale)
FLOAT32 DistanceBetween(FPOINT A, FPOINT B)
BOOL8 AddFeature(FEATURE_SET FeatureSet, FEATURE Feature)
const FEATURE_DESC_STRUCT OutlineFeatDesc
 
 
 
This routine steps converts each section in the specified outline to a feature described by its x,y position, length and angle. 
- Parameters
- 
  
    | Outline | outline to extract outline-features from |  | FeatureSet | set of features to add outline-features to |  
 
- Returns
- none (results are returned in FeatureSet) 
- Note
- Globals: none 
- 
Exceptions: none 
- 
History:
- 11/13/90, DSJ, Created.
- 5/24/91, DSJ, Added hidden edge capability. 
 
Definition at line 122 of file outfeat.cpp.
  134     FeatureStart = 
PointAt(Next)->Point;
 
  143       FeatureEnd = 
PointAt(Next)->Point;
 
  147   while (Next != First);
 
#define DegenerateOutline(O)
#define NextPointAfter(E)
void AddOutlineFeatureToSet(FPOINT *Start, FPOINT *End, FEATURE_SET FeatureSet)
 
 
 
This routine computes the weighted average x position over all of the outline-features in FeatureSet and then renormalizes the outline-features to force this average to be the x origin (i.e. x=0). 
- Parameters
- 
  
    | FeatureSet | outline-features to be normalized |  
 
- Returns
- none (FeatureSet is changed) 
- Note
- Globals: none 
- 
Exceptions: none 
- 
History: 11/13/90, DSJ, Created. 
Definition at line 163 of file outfeat.cpp.
  178     TotalWeight += Length;
 
  180   Origin = TotalX / TotalWeight;