Re: [Numpy-discussion] compiling c extension

2008-01-22 Thread Danny Chan
Ha, found the problem! I thought I had included arrayobject.h and import_array correctly, but due to the preprocessor it wasn't defined correctly! Danny Chan <[EMAIL PROTECTED]> schrieb: Yes, that is not the problem. The compiling of the source file works fine, it is when the link

Re: [Numpy-discussion] compiling c extension

2008-01-22 Thread Danny Chan
after the call to Py_InitModule() ? --- Danny Chan wrote: > Hi! > I am trying to compile a c extension that uses numpy > arrays on windows. I can compile the extension file, > but once I get to the linking stage I get unresolved > references to PyArray_API and import_array. Can

[Numpy-discussion] compiling c extension

2008-01-21 Thread Danny Chan
Hi! I am trying to compile a c extension that uses numpy arrays on windows. I can compile the extension file, but once I get to the linking stage I get unresolved references to PyArray_API and import_array. Can anyone help me with the correct linker flags? Thanks, Danny running build runnin

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 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 fro

[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