Understanding rho and theta in hough
이전 댓글 표시
Hi!
I use
[H, theta, rho] = hough(image);
to calculate the hough transform of a 27x27 image. Theta ranges from -90 to 89 and rho from -37 to 37. I am trying to figure out how to interpret these values. I know that theta is the angle between the x-axis and the normal of corresponding line and rho the length of the normal. But:
- Where is the origin of the space?
- I assume the x-axis goes from left to right, and the y-axis from top to bottom?
- How would you roughly describe a line that goes through the points (-1,0) and (0,1)?
- In which unit is rho calculated?
I hope 3. will help me understand why -90 to 89 for theta is sufficient. Also, I am trying to figure out when two lines exactly are parallel.
So far for now :)
답변 (1개)
카테고리
도움말 센터 및 File Exchange에서 Computer Vision with Simulink에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!