Make list of zip in Python 3 explicitely

This commit is contained in:
Johannes Schönberger
2013-02-22 17:05:39 +01:00
parent aedd12faeb
commit 6cb47a6e3b
+1 -1
View File
@@ -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