Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to detect curves in a binary image?

I have a binary image, i want to detect/trace curves in that image. I don't know any thing (coordinates, angle etc). Can any one guide me how should i start? suppose i have this image enter image description here

I want to separate out curves and other lines. I am only interested in curved lines and their parameters. I want to store information of curves (in array) to use afterward.

like image 329
Developer Avatar asked Aug 13 '11 16:08

Developer


1 Answers

It really depends on what you mean by "curve".

If you want to simply identify each discrete collection of pixels as a "curve", you could use a connected-components algorithm. Each component would correspond to a collection of pixels. You could then apply some test to determine linearity or some other feature of the component.

If you're looking for straight lines, circular curves, or any other parametric curve you could use the Hough transform to detect the elements from the image.

The best approach is really going to depend on which curves you're looking for, and what information you need about the curves.

reference links:

like image 133
John Percival Hackworth Avatar answered Sep 23 '22 10:09

John Percival Hackworth