30 #define NORMAL_X_HEIGHT (0.5)
31 #define NORMAL_BASELINE (0.0)
60 #define AverageOf(A,B) (((A) + (B)) / 2)
63 #define MF_SCALE_FACTOR (NORMAL_X_HEIGHT / kBlnXHeight)
66 #define DegenerateOutline(O) (((O) == NIL_LIST) || ((O) == list_rest(O)))
67 #define PointAt(O) ((MFEDGEPT *) first_node (O))
68 #define NextPointAfter(E) (list_rest (E))
69 #define MakeOutlineCircular(O) (set_rest (last (O), (O)))
72 #define ClearMark(P) ((P)->ExtremityMark = FALSE)
73 #define MarkPoint(P) ((P)->ExtremityMark = TRUE)
85 LIST ConvertedOutlines,
void ComputeBlobCenter(TBLOB *Blob, TPOINT *BlobCenter)
MFEDGEPT * NewEdgePoint()
void FindDirectionChanges(MFOUTLINE Outline, FLOAT32 MinSlope, FLOAT32 MaxSlope)
void NormalizeOutline(MFOUTLINE Outline, FLOAT32 XOrigin)
void MarkDirectionChanges(MFOUTLINE Outline)
MFOUTLINE NextDirectionChange(MFOUTLINE EdgePoint)
void FreeMFOutline(void *agr)
LIST ConvertBlob(TBLOB *Blob)
MFOUTLINE ConvertOutline(TESSLINE *Outline)
void CharNormalizeOutline(MFOUTLINE Outline, const DENORM &cn_denorm)
void ChangeDirection(MFOUTLINE Start, MFOUTLINE End, DIRECTION Direction)
void ComputeDirection(MFEDGEPT *Start, MFEDGEPT *Finish, FLOAT32 MinSlope, FLOAT32 MaxSlope)
void FreeOutlines(LIST Outlines)
MFOUTLINE NextExtremity(MFOUTLINE EdgePoint)
void FilterEdgeNoise(MFOUTLINE Outline, FLOAT32 NoiseSegmentLength)
LIST ConvertOutlines(TESSLINE *Outline, LIST ConvertedOutlines, OUTLINETYPE OutlineType)