mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-19 11:27:45 +08:00
Fix missing conversion of typed memoryview to numpy array
This commit is contained in:
@@ -86,7 +86,7 @@ def line(Py_ssize_t y, Py_ssize_t x, Py_ssize_t y2, Py_ssize_t x2):
|
||||
rr[dx] = y2
|
||||
cc[dx] = x2
|
||||
|
||||
return rr, cc
|
||||
return np.asarray(rr), np.asarray(cc)
|
||||
|
||||
|
||||
def polygon(y, x, shape=None):
|
||||
|
||||
Reference in New Issue
Block a user