how to find hough lines in gradient image ?

5 views (last 30 days)
I want to use gradient image as the representative of edges and outlines of the normal image to find lines by hough transformation. Hough function needs edge map to find lines while gradient magnitude generated by imgradient function is not binary.
[Gmag, Gdir] = imgradient(ImgResamp2,'sobel'); [H,T,R] = hough(Gmag); %here Gmag is not binary image
  1 Comment
Bilal
Bilal on 20 Jan 2016
I want to use as a gradient image as the representative of edges, not the thresholded one

Sign in to comment.

Accepted Answer

Image Analyst
Image Analyst on 20 Jan 2016
Try edge() - it uses imgradient() and then thresholds it to get a binary image. See the demo where they start out with the gantry crane image.

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!