You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
read an indexed image with io.imread on two computers with same skimage version using the same code, one computer return (512,152,4), the other one returns (512,512,3)
Way to reproduce
fromskimageimportioimportmatplotlib.pylabaspltfrommatplotlib.colorsimportListedColormapimportnumpyasnpimg_index=io.imread('images/lenna_index.bmp')
img_index.shape# upload all necessary images to github too!
Version information
# Paste the output of the following python commandsfrom __future__ importprint_functionimportsys; print(sys.version)
importplatform; print(platform.platform())
importskimage; print(f'scikit-image version: {skimage.__version__}')
importnumpy; print(f'numpy version: {numpy.__version__}')
Hi @xactbupt, the image I/O operations will get sent to an underlying package such as imageio, tifffile or pillow so it is likely the difference in one of these that is the cause of the difference here. You may want to compare the versions of imageio for example as this may explain the difference (not 100% sure off-hand which backend is the default for BMP files).
On an unrelated note, you may want to reconsider use of the Lena image per her wishes. It was removed from skimage.data several years ago (replaced by skimage.data.astronaut()). An article with some additional context
Hey, there hasn't been any activity on this issue for more than 180 days. For now, we have marked it as "dormant" until there is some new activity. You are welcome to reach out to people by mentioning them here or on our forum if you need more feedback! If you think that this issue is no longer relevant, you may close it by yourself; otherwise, we may do it at some point (either way, it will be done manually). In any case, thank you for your contributions so far!
Description
read an indexed image with io.imread on two computers with same skimage version using the same code, one computer return (512,152,4), the other one returns (512,512,3)
Way to reproduce
Version information
lenna_index.bmp.zip
The text was updated successfully, but these errors were encountered: