_ _
(_) ___ | |_ ____
| |/ _ \| __|_ /
| | (_) | |_ / /
_/ |\___/ \__/___|
|__/
Idea for converting raster image of hand drawing to SVG paths
//
// trace.c - convert hand-drawn lines in a raster
// image into SVG paths.
// Author: Ted Burke
// Date: 11 Apr 2024
//
#define W 800
#define H 600
uint8_t p_og[H][W];
uint8_t p_bg[H][W];
uint8_t p_bi[H][W];
uint8_t p_og[H][W];
int main(int argc, char **argv)
{
int x, y;
// Load image
// Generate background model
// Convert to bilevel image
// Iteratively erode to obtain skeleton
// Write skeleton to file
// Write path to SVG file
return 0;
}