Different image processing algorithms for the browser using only JavaScript and the HTML5 canvas.
- Binarization with threshold and automatic determination of best threshold (ISODATA)
- Flood filling algorithms (breadth-first, depth-first and sequential region labeling)
- Identifying contours of a binary image (Potrace algorithm)
- Approximating the contours of
3.
with polygons (Potrace algorithm) - Smoothing the polygons of
4.
with bezier curves and converting to SVG (Potrace algorithm)