I am trying to create vector graphics from an area in a bitmap, and although my current algorithm works in most cases, it has some problems and it is rather slow.
So, I was wondering if you know what simple algorithms or code examples how to do this efficiently.
My situation is simple. I have a bitmap with several flat, uniform areas. I want to convert these areas to a lot of points, which I can use to recreate them later as vector graphics. I will never have overlapping shapes, the shapes are always wrapped, and they always have the same color (the same RGB value for all pixels), so it's pretty easy to determine the outline, but it's harder to do.
EDIT: I pressed the submit button too quickly ...
Ideally, I would like the solution to work in .NET, but the pseudocode should also work well. Maybe you know about good resources for manipulating images?
EDIT again: So what I need is an algorithm or library that will give me a list of points or vectors that describe each area of ββthe image, and not the vectorized image itself.
source
share