Search code examples
matlabcurves

Identify curves in binary image


I have a binary image in which I would like to detect curves and output the coordinate pixel positions of the curves. The image is a noisy one and I would like to detect the two curves that run horizontally.

I am using MATLAB to perform image analysis. It will be great if you can provide me some hints towards identifying these curves.

An example picture:

enter image description here


Solution

  • Use a canny edge detector. But, in order to make it work well, you'll have to read about the parameters that go into it, and "fiddle" with them. I expect Canny edge detection to do pretty well on this data set.

    edge(yourImageHere, 'canny')