Merge pull request #1007 from stefanv/label_refactor

Move `morphology.label` to `measure.label` and prepare for 0-label transition
This commit is contained in:
Johannes L. Schönberger
2014-05-25 21:56:42 -04:00
15 changed files with 76 additions and 35 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)