mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-24 13:20:43 +08:00
Local neighbourhood suppression on hspace_max.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user