how to set image from double values of pixels

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • jimgardener

    how to set image from double values of pixels

    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?
Working...