File Exchange

image thumbnail

Lossless Line Drawing to SVG Conversion

version 1.2 (70.6 KB) by Karson Sommer
Library for lossless conversion of raster line drawings to vectorized SVG files.

1 Download

Updated 16 Jul 2020

From GitHub

View license on GitHub

Functions that provide different ways for lossless conversion of bitmaps to the SVG file format. Supports creating output files composed of polylines, 8-connectivity lines, and pixel connections.

These functions improve upon alternatives by using 1:1 conversion by examining the pixels rather than using edge detection or machine learning approaches.

This library provides an intermediate step in importing processed files to other applications which require vector files as input. It was designed for the purpose of importing skeletonized heatmap data to OpenStreetMap.

Cite As

Karson Sommer (2021). Lossless Line Drawing to SVG Conversion (, GitHub. Retrieved .

Comments and Ratings (0)

MATLAB Release Compatibility
Created with R2018b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!