Fix imports and suppress deprecation warnings

This commit is contained in:
Stefan van der Walt
2014-05-08 19:14:38 +02:00
parent 46829c6a33
commit 5ba3ea421c
4 changed files with 11 additions and 9 deletions
+1 -1
View File
@@ -71,7 +71,7 @@ def hough_line_peaks(hspace, angles, dists, min_distance=9, min_angle=10,
hspace *= mask
hspace_t = hspace > threshold
label_hspace = morphology.label(hspace_t)
label_hspace = measure.label(hspace_t)
props = measure.regionprops(label_hspace)
coords = np.array([np.round(p.centroid) for p in props], dtype=int)