Local neighbourhood suppression on hspace_max.

This commit is contained in:
Andrew Mark
2015-03-12 03:15:37 +01:00
parent 33e36542d5
commit bc52e4a411
+1 -1
View File
@@ -105,7 +105,7 @@ def hough_line_peaks(hspace, angles, dists, min_distance=9, min_angle=10,
angle_nh[angle_high] -= cols
# suppress neighbourhood
hspace[dist_nh, angle_nh] = 0
hspace_max[dist_nh, angle_nh] = 0
# add current line to peaks
hspace_peaks.append(accum)