#include "mfdefs.h"#include "mfoutline.h"#include "clusttool.h"#include "const.h"#include "intfx.h"#include "varable.h"#include <math.h>Defines | |
| #define | NormalizeAngle(A) ( (((A)<0)?((A)+2*PI):(A)) / (2*PI) ) |
| #define | angle_of(x1, y1, x2, y2) |
| #define | scale_angle(x) (((x<0) ? (2.0 * PI + x) : (x)) * 0.5 / PI) \ |
Functions | |
| void | ComputeBulges (MFOUTLINE Start, MFOUTLINE End, MICROFEATURE MicroFeature) |
| FLOAT32 | ComputeOrientation (MFEDGEPT *Start, MFEDGEPT *End) |
| MICROFEATURES | ConvertToMicroFeatures (MFOUTLINE Outline, MICROFEATURES MicroFeatures) |
| MICROFEATURE | ExtractMicroFeature (MFOUTLINE Start, MFOUTLINE End) |
| void | SmearBulges (MICROFEATURES MicroFeatures, FLOAT32 XScale, FLOAT32 YScale) |
| CHAR_FEATURES | BlobMicroFeatures (TBLOB *Blob, LINE_STATS *LineStats) |
Variables | |
| double | classify_min_slope = 0.414213562 |
| double | classify_max_slope = 2.414213562 |
| double | classify_noise_segment_length = 0.00 |
| #define angle_of | ( | x1, | |||
| y1, | |||||
| x2, | |||||
| y2 | ) |
| #define NormalizeAngle | ( | A | ) | ( (((A)<0)?((A)+2*PI):(A)) / (2*PI) ) |
---------------------------------------------------------------------------- Macros ----------------------------------------------------------------------------
| #define scale_angle | ( | x | ) | (((x<0) ? (2.0 * PI + x) : (x)) * 0.5 / PI) \ |
| CHAR_FEATURES BlobMicroFeatures | ( | TBLOB * | Blob, | |
| LINE_STATS * | LineStats | |||
| ) |
---------------------------------------------------------------------------- Public Code ----------------------------------------------------------------------------
| void ComputeBulges | ( | MFOUTLINE | Start, | |
| MFOUTLINE | End, | |||
| MICROFEATURE | MicroFeature | |||
| ) |
| MICROFEATURES ConvertToMicroFeatures | ( | MFOUTLINE | Outline, | |
| MICROFEATURES | MicroFeatures | |||
| ) |
| MICROFEATURE ExtractMicroFeature | ( | MFOUTLINE | Start, | |
| MFOUTLINE | End | |||
| ) |
| void SmearBulges | ( | MICROFEATURES | MicroFeatures, | |
| FLOAT32 | XScale, | |||
| FLOAT32 | YScale | |||
| ) |
| double classify_max_slope = 2.414213562 |
"Slope above which lines are called vertical"
| double classify_min_slope = 0.414213562 |
---------------------------------------------------------------------------- Include Files and Type Defines ---------------------------------------------------------------------------- ---------------------------------------------------------------------------- Variables ---------------------------------------------------------------------------- "Slope below which lines are called horizontal"
| double classify_noise_segment_length = 0.00 |
"Length below which outline segments are treated as noise"
1.6.3