Click here to Skip to main content
15,887,746 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have an Image and I am applying an edge detection algorithm (Canny) to it.

I get the edges in image but for my work I need to get the detected edges as a list of points, specially the ones that are connected. (list of contours), in order to perform meaningful operations on the detected edges.

If anyone can point me to some relevant algorithm/ paper/ method, i ll be very thankful.
If u can suggest some relevant function in OpenCV, that would be big help also.
Posted
Updated 9-Oct-15 21:14pm
v2
Comments
Patrice T 10-Oct-15 13:54pm    
You should dig in your library, because your curves are probably made from a list of points.
Abhishrek 25-Oct-15 4:16am    
I am using OpenCV Canny edge detector. it doesn't give any quantitative information. only detected edges become available on the ouput image.

1 solution

There are resources here on CodeProject for:

1. Discriminating contours (shapes) which is what I think you are after : [^].

2. several articles on edge-detection using Canny, Susan, Prewitt: [^]
 
Share this answer
 
Comments
Abhishrek 25-Oct-15 4:21am    
@BillWoodruff, thanks for the resources. It helped much. I had to do some dialation and smoothing etc and then findContour() to get the edges as contours. Now i can proceed for some meaningful analysis of them. Thanks again.

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