mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-06 05:16:40 +08:00
numpy 1.6 compat fix
This commit is contained in:
@@ -323,7 +323,7 @@ def label(input, DTYPE_t neighbors=8, background=None, return_num=False):
|
||||
|
||||
# Having data a 2D array slows down access considerably using linear
|
||||
# indices even when using the data_p pointer :-(
|
||||
data = np.copy(input.flatten().astype(DTYPE), order="C")
|
||||
data = np.copy(input.flatten().astype(DTYPE))
|
||||
forest = np.arange(data.size, dtype=DTYPE)
|
||||
|
||||
cdef DTYPE_t *forest_p = <DTYPE_t*>forest.data
|
||||
|
||||
Reference in New Issue
Block a user