Ask Your Question
1

what is the differences between lines and contours

asked 2013-03-18 05:06:53 -0600

Heshan Sandeepa gravatar image

hi,

i tried the tutorial of Canny edge detection and Hough Line Transformation. In Canny we can get contours of a image. And using Hough Line Transform we can get lines, but i didn't understand is there any difference between lines and contours or are both same ? plz can anyone explain ?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
3

answered 2013-03-18 06:40:39 -0600

Barry Thomas gravatar image

updated 2013-03-18 09:02:17 -0600

Canny detects edges of things in an image, returning a black and white version of the image, where white pixels indicate part of an edge - the contours. The returned object is still an image (in effect a bitmap, if not a Bitmap).

Hough Lines takes the results from the Canny process and looks for straight sections among the highlighted edges and returns the end points of those straight lines, giving you a set of vector lines to play with.

edit flag offensive delete link more

Comments

Hi Barry, thank you very much for your effort and time. really appreciate.

Heshan Sandeepa gravatar imageHeshan Sandeepa ( 2015-03-14 09:12:06 -0600 )edit

Question Tools

Stats

Asked: 2013-03-18 05:06:53 -0600

Seen: 703 times

Last updated: Mar 18 '13