I'm looking for a C++ solution/technique that can find outlines in an image (image may be cartoonish looking one, not a photo) and create array of lines.
Basically I am not looking for filled shapes, neither for hatch detection etc. - just outlines.
For instance, if I have a black-and-white png with some hand drawing of a :-) smiley, I would like to be able to process this image and create an array of lines as data and store them into my own binary format, so later these can be used in vector-based drawing engine.
Is anyone experienced in this?
Even theory (not c++ sample code) is fine, I'm just looking for directions.