Hi,
I am wondering how I can get a numpy array from a oiio buffer.
I understand that 

img_input = oiio.ImageInput.open(path)img = img_input.read_image(format="uint8")
will open the image as an array, but I am not sure what the right way to get a 
numpy array from an ImageBuf:

buf = ImageBuf(ImageSpec(640, 480, 3, oiio.FLOAT))ImageBufAlgo.fill(buf, 
(1,0,0), oiio.ROI(50, 100, 75, 85))
I am trying to create a gradient image here, but want to do processing with 
numpy afterwards.
Just ask if you need more clarification. :)

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

Reply via email to