Re: [Numpy-discussion] reading 10 bit raw data into an array

2007-08-01 Thread Danny Chan
> > Quick comment : are you really sure your camera produces the 12 bit > data in a "12 bit stream" --- all I have ever seen is that cameras > would just use 16 bit for each pixel. (All you had to know if it uses > the left or the right part of those. In other words, you might have > to divide

Re: [Numpy-discussion] reading 10 bit raw data into an array

2007-08-01 Thread Sebastian Haase
On 8/1/07, Danny Chan <[EMAIL PROTECTED]> wrote: > Hi Travis! > I guess I will still have to pad my data to full bytes before reading it, > correct? > > Travis Oliphant <[EMAIL PROTECTED]> schrieb: > Danny Chan wrote: > > Hi all! > > I'm trying to read a data file that contains a raw image file. Ev

Re: [Numpy-discussion] reading 10 bit raw data into an array

2007-08-01 Thread Danny Chan
Hi Travis! I guess I will still have to pad my data to full bytes before reading it, correct? Travis Oliphant <[EMAIL PROTECTED]> schrieb: Danny Chan wrote: > Hi all! > I'm trying to read a data file that contains a raw image file. Every > pixel is assigned a value from 0 to 1023, and all pixels

Re: [Numpy-discussion] reading 10 bit raw data into an array

2007-07-30 Thread Travis Oliphant
Danny Chan wrote: > Hi all! > I'm trying to read a data file that contains a raw image file. Every > pixel is assigned a value from 0 to 1023, and all pixels are stored from > top left to bottom right pixel in binary format in this file. I know the > width and the height of the image, so all tha

Re: [Numpy-discussion] reading 10 bit raw data into an array

2007-07-30 Thread Stefan van der Walt
On Mon, Jul 30, 2007 at 04:01:46PM +0200, Danny Chan wrote: > I'm trying to read a data file that contains a raw image file. Every pixel is > assigned a value from 0 to 1023, and all pixels are stored from top left to > bottom right pixel in binary format in this file. I know the width and the > he

[Numpy-discussion] reading 10 bit raw data into an array

2007-07-30 Thread Danny Chan
Hi all! I'm trying to read a data file that contains a raw image file. Every pixel is assigned a value from 0 to 1023, and all pixels are stored from top left to bottom right pixel in binary format in this file. I know the width and the height of the image, so all that would be required is to re