[Image-SIG] PIL and NumPy
justin at justinzane.com
Fri Apr 23 08:19:16 CEST 2010
I'm trying to find some documentation about the methods used to convert Image
objects to arrays and back. The following methods seem to work
im = Image.open('monkey.jpg')
ar = numpy.asarray(im)
outim = Image.fromarray(outar)
however, I get gibberish for an output image even if I attempt to write my
original arrays back. Can someone kindly point me to the appropriate
documentation on this so I can RTFM.
5040 Saddlehorn Rd, Weed, CA 96094
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Image-SIG