Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > how to set image from double values of pixels

Reply
Thread Tools

how to set image from double values of pixels

 
 
jimgardener
Guest
Posts: n/a
 
      02-17-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?
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
Can hot pixels become dead pixels? kl_tom Digital Photography 4 10-05-2006 06:52 PM
cannot convert parameter from 'double (double)' to 'double (__cdecl *)(double)' error Sydex C++ 12 02-17-2005 06:30 PM
Pse explain "3.1m effective pixels and 6.0m redorded pixels" notreallyme Digital Photography 14 12-28-2003 03:41 PM
What's the difference between effective pixels and recorded pixels? Mark Grady Digital Photography 10 09-28-2003 11:11 PM



Advertisments