A 2D library to trace contours.
- 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
- User can specify to close or not the paths (with the SVG Path Z command)
Have a look at the different functions inside the modules below.