mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-19 11:27:45 +08:00
Fix missing peaks in hough_line_peaks.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user