We have been learning about methods like Sobel and Roberts' convolution matrices to detect edges within images, extending to the Canny method to clear them up. But now, we are learning about 'Line' detection, as opposed to 'Edge' detection - with methods like Hough Transform.
Problem is - I've no idea how to even conceptualize the difference between a 'Line' and an 'Edge'. Can someone explain this difference to me without the use of complex mathematical equations etc?
An edge is a transition from one phase/object/thing to another. On one side you have one color, on the other side you have another color. Or on one side you have foreground, and on the other side you have background.
A line is a 1D structure. It has the same phase/object/thing on either side. On one side you have background, on the other side you have background also.
A gradient magnitude filter turns an edge into a line.
An edge has a direction (the normal), a line has an orientation (if you rotate it by 180 degrees, it looks the same).
You can think of a line as being two opposite edges very close together.
Lines and edges are both local properties of an image. Any sufficiently small portion of an image will appear as either an edge or a line.
They are both locally straight, since something curved, considered in a sufficiently small region, will appear straight.
Methods like Sobel and Roberts help you to detect edges in the image. Methods like Hough Transform help to identify if these edges are actually geometrical shapes such as lines, circles and ellipses.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With