I'm trying to generate a vector graphic from an area in a bitmap image, and while my current algorithm works for most cases it has some problems and it is quite slow.
So I was wondering if you people know of any simple algorithms or code examples of how to do this efficiently.
My situation is simple. I have a bitmap image, with several flat uniform areas. I wish to convert these areas into sets of points that I can use to recreate them later as vector graphics. I will never have overlapping shapes, the shapes are always enclosed and they are always of one color (the same RGB value for all pixels) so it is quite easy to determine the outline, but doing efficiently is harder.
EDIT: I pressed the submit button too soon...
Ideally I would like a solution working in .NET, but pseudo code should also work well. Maybe you folks know of some good resources on image manipulation?
EDIT again: So what I am after is an algorithm or a library that will give me a list of points or vectors that describe each area in the image, not the vectorized image itself.