mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-08 05:06:38 +08:00
Fix implementation errors
This commit is contained in:
committed by
Stefan van der Walt
parent
09e6439310
commit
caaf37ec0c
@@ -139,7 +139,6 @@ class MultiImage(object):
|
||||
|
||||
def _find_numframes(self, img):
|
||||
"""Find the number of frames in the multi-img."""
|
||||
|
||||
if self.tif_img:
|
||||
return len(img.pages)
|
||||
i = 0
|
||||
@@ -153,8 +152,8 @@ class MultiImage(object):
|
||||
|
||||
def _getframe(self, framenum):
|
||||
"""Open the image and extract the frame."""
|
||||
if self._tif_img:
|
||||
return self._tif_img[framenum].asarray()
|
||||
if self.tif_img:
|
||||
return self.tif_img[framenum].asarray()
|
||||
from PIL import Image
|
||||
img = Image.open(self.filename)
|
||||
img.seek(framenum)
|
||||
|
||||
Reference in New Issue
Block a user