mirror of
https://github.com/wassname/scikit-image.git
synced 2026-08-12 12:30:16 +08:00
Make list of zip in Python 3 explicitely
This commit is contained in:
@@ -103,7 +103,7 @@ def _probabilistic_hough(np.ndarray img, int value_threshold,
|
||||
|
||||
# find the nonzero indexes
|
||||
y_idxs, x_idxs = np.nonzero(img)
|
||||
points = zip(x_idxs, y_idxs)
|
||||
points = list(zip(x_idxs, y_idxs))
|
||||
# mask all non-zero indexes
|
||||
mask[y_idxs, x_idxs] = 1
|
||||
|
||||
|
||||
Reference in New Issue
Block a user