mirror of
https://github.com/wassname/scikit-image.git
synced 2026-09-11 12:43:04 +08:00
Add a note about sequential access.
This commit is contained in:
committed by
Stefan van der Walt
parent
1c0d86a48d
commit
bf9bcaaf0d
@@ -74,6 +74,7 @@ def pil_to_ndarray(im, dtype=None, img_num=None):
|
|||||||
while 1:
|
while 1:
|
||||||
frame = im.seek(i)
|
frame = im.seek(i)
|
||||||
|
|
||||||
|
# seeking must be done sequentially
|
||||||
if img_num and not i == img_num:
|
if img_num and not i == img_num:
|
||||||
i += 1
|
i += 1
|
||||||
continue
|
continue
|
||||||
|
|||||||
Reference in New Issue
Block a user