Re: Raw images

2005-12-21 Thread Tuvas
That did the trick, I can now remove the bad tag statement, and it all works just nicely. Thank you very much! -- http://mail.python.org/mailman/listinfo/python-list

Re: Raw images

2005-12-20 Thread Fredrik Lundh
"Tuvas" wrote: > 1. Read string > 2. Form an array by combining 2 chars together. > 3. Divide by 256 so as to have a 8 bit number, which PIL likes alot > better than a 16 bit number. The string is called data. > 4. Use im = Image.fromstring('L', (xsize, ysize), data) to create image PIL can do th

Re: Raw images

2005-12-20 Thread Tuvas
Well, it's a custum-built camera, so it's not standard by any means. That being the case, I know it's exact format, which is as follows. It is a stream of 16 bit numbers, each representing a point on a grid. The grid is define in a seporate way, outside of the format, but is given a number of rows

Re: Raw images

2005-12-20 Thread Paul Rubin
"Tuvas" <[EMAIL PROTECTED]> writes: > I have an image that is in a "raw" format, Do you mean a RAW file from a digital camera? Those files have complex and sometimes secret formats. Google "dcraw.c" for a decoding program that works for many cameras. -- http://mail.python.org/mailman/listinfo/

Re: Raw images

2005-12-20 Thread Tuvas
Well, the numbers are in a string of variable length. My camera can read specific parts of it's display, so an image of 1024x1024 is just as likely to happen as one of 16x342. Well, not really, but they both could happen. The data is passed by giving the dimentions via a seperate protocol, and then

Re: Raw images

2005-12-20 Thread Bryan Olson
Tuvas wrote: > I have an image that is in a "raw" format, ei, no place markers to tell > the dimensions, just a big group of numbers. The adjective "raw", apt as it may be, is a long way from specifying the representation of an image. *Every* digital format is "just a big group of numbers". >

Re: Raw images

2005-12-20 Thread Tuvas
That will definatly help. Thanks! -- http://mail.python.org/mailman/listinfo/python-list

Re: Raw images

2005-12-20 Thread Peter Hansen
Tuvas wrote: > I have an image that is in a "raw" format, ei, no place markers to tell > the dimensions, just a big group of numbers. I happen to know the > dimension of this array from a different source. I would like to be > able to display it. Is there a way to do this easily? I know that > seve

Raw images

2005-12-20 Thread Tuvas
I have an image that is in a "raw" format, ei, no place markers to tell the dimensions, just a big group of numbers. I happen to know the dimension of this array from a different source. I would like to be able to display it. Is there a way to do this easily? I know that several libraries use a "ra