Click here to Skip to main content
15,887,027 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
As in the title, i need help with making this app.
I'm new in c# so i don't really know where to start.
I know that there are open source tools for this but problem is i don't know how to use them, for example, Cspotrace. Better would be if this could be done without any outside libraries.
Image i'm converting is simple black and white figures(squares, triangles etc.)

Any ideas on how to do this?
Posted
Updated 4-May-14 3:31am
v2

1 solution

This is a complicated task I did the first part of a task in an old article

Connected Component Labeling and Vectorization[^]

That creates little line segments that form the connected part of the image but to really do anything useful you now have to run recognition and/or filters on it. This next part of the process is the subject of an article I am currently writing and you really need to know what you desire as the end point.

For example I wrote commercial code that then took that output and ran fitters to recognize arcs and lines for CNC machines which is not that complicated. However to do things like text and number recognition that is not the best approach and a totally different kettle of fish.

So really what approach to take depends on what you are actually trying to do.
 
Share this answer
 
Comments
Member 10793720 4-May-14 10:21am    
For output i'm trying to get something like svg file with the same figure but in vectors. I've got simple black filled figure to vectorize so i want the output to look the same but to be able to scale it indefinitely(like svg file). Input is going to be bmp file. I hope i explained it the right way.
leon de boer 4-May-14 10:46am    
Download my test app and just run the compiled EXE and load your image and vectorize them. Here let me do a triangle for you

original image: http://postimg.org/image/vteq9h5o1/<br>
Here is the result of my app: http://postimg.org/image/l6yqwvj5r/
However zoom in (the ability to go x9) is on the app:http://postimg.org/image/zeyhy30f9/

See the jaggies I am assuming you don't want them so what you need is line detection post the vectorize process.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900