how to set image from double values of pixels

J

jimgardener

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,015
Latest member
AmbrosePal

Latest Threads

Top