how to get which line contributes to which accumulator array cells in matlab

3 views (last 30 days)
I have a binary image which contains only some points. I have applied "hough" method of Matlab on that image and got an accumulator array. Now i have selected the maximum value of the cell (rho, theta) of accumulator array.
Suppose the max value is 15 which is contained by cell (0.5,30). From my understanding it means that 15 curved lines has gone through (0.5,30) space and that why it's vote count is 15.
These curved lines also have gone through other (rho, theta) spaces and also voted there.
My problems are these
  • Which points of binary image contribute to the (0.5,30) space in the accumulator array?
  • If any point (x,y) is a voter of (0.5,30) space, at which (rho, theta) space, (x,y) has also voted?
Assume ' RhoResolution'is 0.5 and ' Theta' is [-90:1:-85, 85:1:89.5].
Code will be very helpful.
  1 Comment
Image Analyst
Image Analyst on 30 Aug 2015
"Code will be very helpful." <--- the same applies from you to us.
Without it, we don't know what you did. Use a standard demo image. Their example with the gantry crane demo image finds the lines so why can't you do the same?

Sign in to comment.

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!