Guest User

Untitled

a guest
Jun 18th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. buf = oiio.ImageBuf(file)
  2. data = buf.spec()
  3. print data.width
  4. print data.height
  5. resized = oiio.ImageBuf(oiio.ImageSpec (512, 512, 3, oiio.FLOAT))
  6. oiio.ImageBufAlgo.resize(resized, buf, roi=oiio.ROI.All, nthreads=4)
  7. resized.write(output)
Add Comment
Please, Sign In to add comment