Understanding rho and theta in hough
Afficher commentaires plus anciens
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 :)
Réponses (1)
Catégories
En savoir plus sur Image Transforms dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!