0

I am currently detecting the corners of an image using SusanCornersDetector class from Aforge. What I wanted to get is the set of edges from an image by pairing the corners that I got from SusanCornersDetector.

Like:

SusanCornersDetector scd = new SusanCornersDetector();
Bitmap image = pictureBoxA.Image;
List<IntPoint> corners = scd.ProcessImage(image)
List<IntPoint,Intpoint> edges = new List<IntPoint,Intpoint>();
/**
code goes here
**/

I searched for other edge detection algorithm but what most of them does is they detect all the points from an image. I only wanted the starting and end points of an edge

Edit: These are the sample images that I will be using in my project

  • Is this the real image that you have to process ? Because it is very easy to handle by just following the black pixels and finding the changes in direction. Susan and edge detection would be overkill. –  Sep 12 '17 at 08:29
  • Most of the image that I will use is like that but I'm having trouble when the lines are too wide when I follow the black pixels –  Sep 13 '17 at 00:00
  • So this one is not representative enough. –  Sep 13 '17 at 06:53
  • I added some more images that I will be using. I just wanted to get all the edges even the intersections in the image –  Sep 14 '17 at 04:38
  • I can't see any "wide" line, what did you mean ? –  Sep 14 '17 at 06:26
  • You'd better turn the image to a graph by following the edges and analyzing the configurations around every pixel to detect corners and crossings. –  Sep 14 '17 at 06:27
  • Thickness I mean –  Sep 14 '17 at 06:29
  • Hem, I can't see any **thick** line, what did you mean ? –  Sep 14 '17 at 06:30
  • Basically it's just like those but some of the lines of the image that i will feed are 4-8 pixels thick –  Sep 14 '17 at 08:45
  • I had been asking you representative samples, but you didn't provide them. Use thinning. –  Sep 14 '17 at 08:53

0 Answers0