[−][src]Crate contour_tracing
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
- 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
For examples, have a look at the bits_to_paths function below.
Functions
bits_to_paths | A function that takes a 2D array of bits and an option as input and return a string of SVG Path commands as output. |