This is really cool. Do you have some code that you are willing to showcase?
The other parts, the rasterization and vectorization, I haven't cleaned up to the point where the source isn't terribly embarrassing! One of the weird things about this project was the code became more of a means to an end than an artifact in itself, so it's littered with a lot of dead experiments, swear words, and so on.