OpenImageIO

Stéfan van der Walt stefan at sun.ac.za
Fri Oct 9 05:48:02 EDT 2009


Hey Ralph

2009/10/9 Ralf Gommers <ralf.gommers at googlemail.com>:
>> where all PNGs are access only as necessary, and are cached once
>> they've been read from disk.  You can also index into or iterate over
>> an ImageCollection (yielding the image arrays).  It sounds like a
>> multi-image could be interpreted as an ImageCollection.
>
> That sounds like a good option. Let me know if you want me to test it / work
> on it / send you some multi-image files.

I'd appreciate it if you could investigate a bit further.  The code I
was referring to is at

http://bazaar.launchpad.net/~stefanv/supreme/main/annotate/head%3A/supreme/misc/io.py

As you can see, it is very simplistic.  It also returns a bunch of
Image objects, that we don't need.  But the basic idea is there: a
container over which you can iterate, that loads images on demand and
keeps a cache as necessary.  I've never played with loading of
multi-layer images, so I hope you can get something going.

Cheers
Stéfan



More information about the scikit-image mailing list