#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.
79 LIST RemainingOutlines;
87 if (!
ExtractIntFeat(Blob, denorm, blfeatures, cnfeatures, &results))
89 XScale = 0.2f / results.
Ry;
90 YScale = 0.2f / results.
Rx;
92 RemainingOutlines = Outlines;
100 RemainingOutlines = Outlines;
void FindDirectionChanges(MFOUTLINE Outline, FLOAT32 MinSlope, FLOAT32 MaxSlope)
void CharNormalizeOutline(MFOUTLINE Outline, FLOAT32 XCenter, FLOAT32 YCenter, FLOAT32 XScale, FLOAT32 YScale)
void MarkDirectionChanges(MFOUTLINE Outline)
void FreeOutlines(LIST Outlines)
double classify_max_slope
LIST ConvertBlob(TBLOB *blob)
INT_FEATURE_STRUCT INT_FEATURE_ARRAY[MAX_NUM_INT_FEATURES]
int ExtractIntFeat(TBLOB *Blob, const DENORM &denorm, INT_FEATURE_ARRAY BLFeat, INT_FEATURE_ARRAY CNFeat, INT_FX_RESULT_STRUCT *Results, inT32 *FeatureOutlineArray)
MICROFEATURES ConvertToMicroFeatures(MFOUTLINE Outline, MICROFEATURES MicroFeatures)
double classify_min_slope
Definition at line 118 of file mfx.cpp.
142 if ((Orientation < 0) || (Orientation >= 1))
144 return (Orientation);
#define NormalizeAngle(A)
Definition at line 149 of file mfx.cpp.
168 return (MicroFeatures);
174 if (!
PointAt(Current)->Hidden) {
176 if (NewFeature !=
NULL)
177 MicroFeatures =
push (MicroFeatures, NewFeature);
181 while (Last != First);
183 return (MicroFeatures);
LIST push(LIST list, void *element)
FEATURE NewFeature(const FEATURE_DESC_STRUCT *FeatureDesc)
#define DegenerateOutline(O)
MICROFEATURE ExtractMicroFeature(MFOUTLINE Start, MFOUTLINE End)
MFOUTLINE NextExtremity(MFOUTLINE EdgePoint)
Definition at line 188 of file mfx.cpp.
FLOAT32 NormalizedAngleFrom(FPOINT *Point1, FPOINT *Point2, FLOAT32 FullScale)
FEATURE NewFeature(const FEATURE_DESC_STRUCT *FeatureDesc)
FLOAT32 DistanceBetween(FPOINT A, FPOINT B)
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.