Hi,

I try to read a mixed depth image with python, it has float and half float channels. Unfortunaetly the python api only recognizes all channels as float. This is what I tried:

import OpenImageIO as oi

buf  = oi.ImageBuf("test.exr")
spec = buf.spec()
print spec
for i in range(0, spec.nchannels, 1):
    print i, spec.channelnames[i]

formats = spec.get_channelformats()
for f in formats:
    print f.basetype, f.basesize()

Output for all channel types and sizes is "float" and "4".

Is this a python API problem or is something in my code not correct?
I use OIIO 2.1.

Thanks for any hints.

haggi
_______________________________________________
Oiio-dev mailing list
[email protected]
http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org

Reply via email to