how to set image from double values of pixels

Discussion in 'Python' started by jimgardener, Feb 17, 2008.

  1. jimgardener

    jimgardener Guest

    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?
    jimgardener, Feb 17, 2008
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Trint Smith
    Replies:
    2
    Views:
    351
    Brad Williams
    Feb 17, 2004
  2. Peter the Swede

    Pixels colorvalue in an image.

    Peter the Swede, Nov 11, 2003, in forum: Java
    Replies:
    0
    Views:
    312
    Peter the Swede
    Nov 11, 2003
  3. Sydex
    Replies:
    12
    Views:
    6,442
    Victor Bazarov
    Feb 17, 2005
  4. Read pixels from a PGM/PPM Image

    , May 23, 2005, in forum: C Programming
    Replies:
    2
    Views:
    1,627
    Malcolm
    May 24, 2005
  5. ssecorp
    Replies:
    2
    Views:
    286
    Tom Anderson
    Jul 7, 2008
Loading...

Share This Page