Crate contour_tracing
source[−]Expand description
A 2D library to trace contours.
Features
Core features:
- Trace contours using the Theo Pavlidis’ algorithm (connectivity: 4-connected)
- Trace outlines in clockwise direction
- Trace holes in counterclockwise direction
- Input format: a 2D array of bits or an image buffer
- Output format: a string of SVG Path commands
Manual parameters:
- User can specify to close or not the paths (with the SVG Path Z command)
Examples
Have a look at the different functions below.