_ _
| |_ ___ __| |____ ___ _ _
| __/ _ \/ _` |_ / / _ \ | | |
| || __/ (_| |/ / | __/ |_| |
\__\___|\__,_/___(_)___|\__,_|
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;
}