#include "mfdefs.h"
#include "mfoutline.h"
#include "clusttool.h"
#include "const.h"
#include "intfx.h"
#include "normalis.h"
#include "params.h"
#include <math.h>
Go to the source code of this file.
#define NormalizeAngle |
( |
|
A | ) |
( (((A)<0)?((A)+2*PI):(A)) / (2*PI) ) |
Macros
Definition at line 45 of file mfx.cpp.
Public Code
Definition at line 62 of file mfx.cpp.
78 LIST RemainingOutlines;
84 RemainingOutlines = Outlines;
90 RemainingOutlines = Outlines;
void FindDirectionChanges(MFOUTLINE Outline, FLOAT32 MinSlope, FLOAT32 MaxSlope)
double classify_max_slope
void MarkDirectionChanges(MFOUTLINE Outline)
LIST ConvertBlob(TBLOB *blob)
double classify_min_slope
void CharNormalizeOutline(MFOUTLINE Outline, const DENORM &cn_denorm)
MICROFEATURES ConvertToMicroFeatures(MFOUTLINE Outline, MICROFEATURES MicroFeatures)
void FreeOutlines(LIST Outlines)
Definition at line 108 of file mfx.cpp.
132 if ((Orientation < 0) || (Orientation >= 1))
134 return (Orientation);
#define NormalizeAngle(A)
Definition at line 139 of file mfx.cpp.
158 return (MicroFeatures);
164 if (!
PointAt(Current)->Hidden) {
166 if (NewFeature !=
NULL)
167 MicroFeatures =
push (MicroFeatures, NewFeature);
171 while (Last != First);
173 return (MicroFeatures);
LIST push(LIST list, void *element)
#define DegenerateOutline(O)
FEATURE NewFeature(const FEATURE_DESC_STRUCT *FeatureDesc)
MFOUTLINE NextExtremity(MFOUTLINE EdgePoint)
MICROFEATURE ExtractMicroFeature(MFOUTLINE Start, MFOUTLINE End)
Definition at line 178 of file mfx.cpp.
FLOAT32 DistanceBetween(FPOINT A, FPOINT B)
FLOAT32 NormalizedAngleFrom(FPOINT *Point1, FPOINT *Point2, FLOAT32 FullScale)
FEATURE NewFeature(const FEATURE_DESC_STRUCT *FeatureDesc)
MICROFEATURE NewMicroFeature()
double classify_max_slope = 2.414213562 |
"Slope above which lines are called vertical"
Definition at line 39 of file mfx.cpp.
double classify_min_slope = 0.414213562 |
Include Files and Type Defines
Variables
"Slope below which lines are called horizontal"
Definition at line 37 of file mfx.cpp.