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
I notice that currently after I read an image from skimage, there is no metadata that is further provided. For example, if I want to check if the image is greyscale or not, In Pillow I could do:
But the ndim checkingmethods are not very nice because I may have a GIF file or TIFF file with multiple pages which is black and white - Making the ndim == 3.
Another story is how to improve type/ndim checking, which we have almost everythere. And that one could be addressed via some kind of fused types - #2126 (comment). I think we need to start a discussion some day on this as well. :)
scikit-image operates on numpy arrays exclusively, so we have no way of knowing (independently of the underlying plugin used) metadata about the image.
I think we can extend all io plugins to have imread_metadata that returns both the image and any metadata available, in a dictionary with well specified keys, which should solve the problem.
@stefanv yes, I think we've converged on this: #1995, #2240 (comment). I'll prepare SKIEP on this soon as the topic is being raised over and over again.
Activity
soupault commentedon Jun 30, 2016
@AbdealiJK yes, that is a well known issue. See the following related pages: #1940, #1995.
The discussion in #1995 is still open, feel free to contribute to it.
soupault commentedon Jun 30, 2016
Another story is how to improve type/ndim checking, which we have almost everythere. And that one could be addressed via some kind of fused types - #2126 (comment). I think we need to start a discussion some day on this as well. :)
stefanv commentedon Feb 15, 2017
scikit-image operates on numpy arrays exclusively, so we have no way of knowing (independently of the underlying plugin used) metadata about the image.
I think we can extend all io plugins to have imread_metadata that returns both the image and any metadata available, in a dictionary with well specified keys, which should solve the problem.
Any thoughts? /cc @jni
soupault commentedon Feb 15, 2017
@stefanv yes, I think we've converged on this: #1995, #2240 (comment). I'll prepare SKIEP on this soon as the topic is being raised over and over again.
jni commentedon Feb 20, 2017
@stefanv I think the goal is to outsource IO to imageio sometime soon. At that point, we can just do
and forget about "plugins"...
stefanv commentedon Jul 15, 2017
See #2709