How to compute the angle of the lines of an image in matlab?
6 views (last 30 days)
Show older comments
Hi guys
I need to find all the angles of the line of an image. I found a Standard Hough Transform (SHT) function in matlab,
[H, theta, rho] = hough(BW, ParameterName, ParameterValue)
Will theta be the angles of the lines? I need to represent all the angles in a histogram. I appreciate if someone could help me with this. Thanks in advance.
Marcus
0 Comments
Accepted Answer
Walter Roberson
on 24 Jan 2013
No, theta and rho will correspond to the range of angles used to generate H. See the example http://www.mathworks.com/help/images/ref/hough.html and note that T (theta) and R (rho) are used as XData and YData for imshow() and so correspond to the range of values rather than individual line angles.
For line detection using hough() see http://www.mathworks.com/help/images/analyzing-images.html#f11-27827
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!