help for conversion of NUMARRAY to PIL object

A. L. bathing at gmail.com
Thu Sep 15 22:09:51 EDT 2005


Thanks. But some problems remain.

I have known using Image.tostring/fromstring and
numarray.tostring/fromstring can do the job. But when confronting
multi-spectral images, e.g., RGB color images, I don't know how to do
it. Could you give some advices on that?

You wrote "In [14]: img = Image.frombuffer('RGBA', (256,256), a) ", but
it seems that "a" cannot work in "frombuffer".




More information about the Python-list mailing list