imageproc
imageproc copied to clipboard
Hough transform seems to double account for virtical lines
A simple square on a plane background will have a single horizontal line for the top and bottom of the square. But will have two vertical lines on each side.
It looks like the suppression_radius is not applied across the 0 to 359 boundary of the hough space values.
Looking at the results it looks like the 0 and 179 degrees boundary are not being suppressed across
[PolarLine { r: 200.0, angle_in_degrees: 0 }, PolarLine { r: 599.0, angle_in_degrees: 0 }, PolarLine { r: 449.0, angle_in_degrees: 90 }, PolarLine { r: 549.0, angle_in_degrees: 90 }, PolarLine { r: -590.0, angle_in_degrees: 179 }, PolarLine { r: -190.0, angle_in_degrees: 179 }]