Re: [Numpy-discussion] Images and numpy

2008-10-18 Thread Robert Kern
On Sun, Oct 19, 2008 at 01:08, Nadav Horesh <[EMAIL PROTECTED]> wrote: > I encountered an exception: "nonstandard" format like 16 bits tiff I/O works > only via the tostring/fromstring interface. Yup. Internally, PIL doesn't necessarily represent the data in the same way that numpy does, so you h

Re: [Numpy-discussion] Images and numpy

2008-10-18 Thread Nadav Horesh
I encountered an exception: "nonstandard" format like 16 bits tiff I/O works only via the tostring/fromstring interface. Nadav -הודעה מקורית- מאת: [EMAIL PROTECTED] בשם Lane Brooks נשלח: א 19-אוקטובר-08 06:45 אל: Discussion of Numerical Python נושא: Re: [Numpy-discussion]

Re: [Numpy-discussion] Images and numpy

2008-10-18 Thread Lane Brooks
Robert Kern wrote: On Sat, Oct 18, 2008 at 23:07, Lane Brooks <[EMAIL PROTECTED]> wrote: What are the preferred ways to get images, like jpgs and pngs, from disk into a numpy array and from a numpy array to disk? I did some google searches and found a PEP thread where Travis was proposing an

Re: [Numpy-discussion] Images and numpy

2008-10-18 Thread Robert Kern
On Sat, Oct 18, 2008 at 23:07, Lane Brooks <[EMAIL PROTECTED]> wrote: > What are the preferred ways to get images, like jpgs and pngs, from disk > into a numpy array and from a numpy array to disk? > > I did some google searches and found a PEP thread where Travis was > proposing an extended buffer

[Numpy-discussion] Images and numpy

2008-10-18 Thread Lane Brooks
What are the preferred ways to get images, like jpgs and pngs, from disk into a numpy array and from a numpy array to disk? I did some google searches and found a PEP thread where Travis was proposing an extended buffer protocol that would make for easier interoperability with libraries such a