What does Hough transform do?
The Hough transform is a popular feature extraction technique that converts an image from Cartesian to polar coordinates. Any point within the image space is represented by a sinusoidal curve in the Hough space.
How do you find the lines in an image using the Hough transform?
Detect Lines in Images Using Hough
Find the edges in the image using the edge function. BW = edge(rotI,'canny'); imshow(BW); Compute the Hough transform of the binary image returned by edge . [H,theta,rho] = hough(BW);