how to set image from double values of pixels

jimgardener jimgardener at gmail.com
Sun Feb 17 10:09:19 EST 2008


hi
i am using PIL to get and set image data.Using image.getdata() i can
get a tuple of  ints  for each pixel. also i can use im.putdata(data)
to set pixels .

suppose i am given a double value as a pixel value (say 7245654.32456
which i may get from some image processing calc..)  and thus i have an
array of doubles to represent the image.can i use im.putdata() to set
the pixel values without loss of information?

can someone help?



More information about the Python-list mailing list