[Image-SIG] Handling 16 bit images with PIL

Robert B. Klimek klimek@grc.nasa.gov
Fri, 13 Oct 2000 13:20:18 -0400


At 02:28 PM 10/13/00 +0200, you wrote:
>
>
>
>I am using PIL and would like to read and process 16 bits raw ushort images.
>Which data format would be the best choice? Has anybody already develop such 
>a file decoder?
>thanks.
>
This is a question I'm also interested in, but have no good answer for. I
don't see a way of doing it with PIL (unless I overlooked something) but
maybe Numeric Python might do something. I was thinking on converting the
image (whether its 10-bit, 12-bit, of 16-bit) to a floating pt. array,
doing your processing, and converting back to the right format.  Haven't
tried it yet so can't say whether its even possible.

Bob
-------------------------------------------------
Robert B. Klimek
NASA Glenn Research Center 
robert.klimek@grc.nasa.gov
(216) 433-2837
--------------------------------------------------