how to find hough lines in gradient image ?
5 views (last 30 days)
Show older comments
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
Accepted Answer
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.
0 Comments
More Answers (0)
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!