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
"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
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
"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/
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
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".
>
That will definatly help. Thanks!
--
http://mail.python.org/mailman/listinfo/python-list
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
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