[Image-SIG] help for conversion of NUMARRAY to PIL object
Zhenglong Li
zlli at nlpr.ia.ac.cn
Fri Sep 16 04:02:53 CEST 2005
Hi, Fredrik,
Thank you very much for your help. But there still exists a problem
that the code cann't deal with 3-channel RGB image. If I want to read a
len*width*3 matrix from PIL object into NumArray, and vice versa, what
should I do?
Thanks again!
Fredrik Lundh wrote:
> Zhenglong Li wrote:
>
>
>>I am a newbie to python. I encounter a problem that how to convert an
>>array of numarray to pil object. For example, the data in an image is
>>extracted using Image.getdata, then the data are converted into an
>>array in numarray. But when the array is needed to convert to the pil
>>object, I lose my mind. Could somebody here provide some solutions to
>>this problem? (In other words, all I need is the interface between
>>reading/writing image data and NUMARRAY.)
>
>
> this page might help:
>
> http://effbot.org/zone/pil-numpy.htm
>
> </F>
>
>
>
> _______________________________________________
> Image-SIG maillist - Image-SIG at python.org
> http://mail.python.org/mailman/listinfo/image-sig
>
>
More information about the Image-SIG
mailing list