mirror of
https://github.com/wassname/scikit-image.git
synced 2026-06-28 20:40:21 +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:
|
||||
frame = im.seek(i)
|
||||
|
||||
# seeking must be done sequentially
|
||||
if img_num and not i == img_num:
|
||||
i += 1
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user