Tuesday, January 15, 2008

Hough is working better but not there yet

The change I made was first taking the gradient of the image before running edge.m on it (and finally the hough transform). This seemed to get rid of a lot of the extra lines towards the top of the image without sacrificing the lines on the bottom of the image.

I still have the problem that the lines that are detected seemed to not be oriented correctly - perhaps the angle is off.

Here is what I get now just looking at the vertical gradient and thresholding at 50% of the accumulator:



The next step is to get the lines detected on target (have the right angle) and also detect the vertical lines (which has proven to be significantly more difficult).

No comments: