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
The current API offers mimread/mvolread and the new API will offer iter as ways to read multiple images from containers that store more than a single image.
I was wondering if it would make sense to expand this functionality to paths and treat them as a container, i.e., mimread("some/path") will return a list of all the images inside the given path. Whether or not this should be recursive we can discuss.
On the same token, mimread("some/file.zip") can allow reading multiple files from a zip-compressed file which could significantly decrease loading time if we operate on multiple images. I could simply zip my dataset and trivially enjoy the benefits of compressed IO while having imageIO inflate the file(s) on-demand.
I feel this should not be in the scope of imageio. This is easily solved with from fname in os.listdir(path): imagio.imread(fname). There are also potentially different plugins involved, which can all fail in their own way.
mimread("some/file.zip")
I can see the advantage, but still think it's out of scope. It's still a rather specific use-case which can become complex quickly. Let's avoid feature creep. I'd much rather add an example to our docs that demonstrates how to implement this:
Activity
almarklein commentedon Apr 6, 2021
I feel this should not be in the scope of imageio. This is easily solved with
from fname in os.listdir(path): imagio.imread(fname). There are also potentially different plugins involved, which can all fail in their own way.I can see the advantage, but still think it's out of scope. It's still a rather specific use-case which can become complex quickly. Let's avoid feature creep. I'd much rather add an example to our docs that demonstrates how to implement this:
FirefoxMetzger commentedon Apr 6, 2021
Fair enough. This would sound like a nice first issue; I'll update the tags.
This could make a great "good-first-issue". How come we don't have this label?
almarklein commentedon Apr 7, 2021
I think new GH repos have this by default, but not at the time that this repo was created.
almarklein commentedon Apr 7, 2021
I jusr created that label and assigned it to this issue.