Does anyone have a good/simple example of working with OIIO in python. I can get at the raw pixels nicely enough with ImageBuf.get_pixels(), but it's not clear the best way to get those pixels back into an ImageBuf for writing. (There is no set_pixels.)
As a side note, get_pixels returns a Python array, which I can convert easily enough to a numpy.ndarray. Is there a better way to get from a ImageBuf to a numpy.ndarray and back again in a reasonably efficient manner? --jono
_______________________________________________ Oiio-dev mailing list [email protected] http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org
