MCPcopy Create free account
hub / github.com/creatale/node-dv / MarkDirectionChanges

Function MarkDirectionChanges

deps/tesseract/classify/mfoutline.cpp:199–216  ·  view source on GitHub ↗

---------------------------------------------------------------------------*/ * This routine searches through the specified outline and finds * the points at which the outline changes direction. These * points are then marked as "extremities". This routine is * used as an alternative to FindExtremities(). It forces the * endpoints of the microfeatures to be at the direction * changes rathe

Source from the content-addressed store, hash-verified

197 * @note History: 6/29/90, DSJ, Created.
198 */
199void MarkDirectionChanges(MFOUTLINE Outline) {
200 MFOUTLINE Current;
201 MFOUTLINE Last;
202 MFOUTLINE First;
203
204 if (DegenerateOutline (Outline))
205 return;
206
207 First = NextDirectionChange (Outline);
208 Last = First;
209 do {
210 Current = NextDirectionChange (Last);
211 MarkPoint (PointAt (Current));
212 Last = Current;
213 }
214 while (Last != First);
215
216} /* MarkDirectionChanges */
217
218
219/*---------------------------------------------------------------------------*/

Callers 1

iterateFunction · 0.85

Calls 1

NextDirectionChangeFunction · 0.85

Tested by

no test coverage detected