Functions
contrib/oxl/osl/internals/osl_reorder_chain.h File Reference

Go to the source code of this file.

Functions

void osl_reorder_chain (osl_edgel_chain *)
 Takes a DigitalCurve that is assumed to form a closed loop and finds the largest corner in the chain.

Function Documentation

void osl_reorder_chain ( osl_edgel_chain dc)

Takes a DigitalCurve that is assumed to form a closed loop and finds the largest corner in the chain.

This point is then used as the starting point for the chain and the rest of the points are reordered. Doing this improves the segmentation for osl_edgel_chains composed of many straight lines.

Definition at line 22 of file osl_reorder_chain.cxx.