Fix missing peaks in hough_line_peaks.

This commit is contained in:
Andrew Mark
2015-03-12 02:52:38 +01:00
parent d4463ba537
commit 33e36542d5
+1 -1
View File
@@ -84,7 +84,7 @@ def hough_line_peaks(hspace, angles, dists, min_distance=9, min_angle=10,
-min_angle:min_angle + 1]
for dist_idx, angle_idx in coords:
accum = hspace[dist_idx, angle_idx]
accum = hspace_max[dist_idx, angle_idx]
if accum > threshold:
# absolute coordinate grid for local neighbourhood suppression
dist_nh = dist_idx + dist_ext