mirror of
https://github.com/wassname/scikit-image.git
synced 2026-10-29 13:30:24 +08:00
Use new regionprops interface in hough_line_peaks
This commit is contained in:
1 parent
6a0d81a047
commit
e9f690d598
1 file changed
+2
-2
@@ -72,8 +72,8 @@ def hough_line_peaks(hspace, angles, dists, min_distance=9, min_angle=10,
|
||||
hspace_t = hspace > threshold
|
||||
|
||||
label_hspace = morphology.label(hspace_t)
|
||||
props = measure.regionprops(label_hspace, ['Centroid'])
|
||||
coords = np.array([np.round(p['Centroid']) for p in props], dtype=int)
|
||||
props = measure.regionprops(label_hspace)
|
||||
coords = np.array([np.round(p.centroid) for p in props], dtype=int)
|
||||
|
||||
hspace_peaks = []
|
||||
dist_peaks = []
|
||||
|
||||
Reference in new issue
Block a user