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
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.