What is the difference between a Line and an Edge in image detection?

前端 未结 3 505
旧巷少年郎
旧巷少年郎 2020-12-11 21:06

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

3条回答
  •  旧时难觅i
    2020-12-11 21:51

    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.

提交回复
热议问题