Help with loading file into an array
Colin J. Williams
cjw at ncf.ca
Sun May 5 07:42:22 EDT 2013
On 05/05/2013 3:43 AM, Fábio Santos wrote:
> Using a nested array should waste a lot of memory. I think you should
> use PIL to load and read the image.
>
> >
> > I want to read the data from that gif file taking the red data
> (excluding the green and blue data) and store that in an array called
> Image[][] which is a nested array length 1024 with a list in each item
> of 1024 length (ie 1024 x 1024)
> >
>
Fabio,
Have you considered numpy?
Colin W.
More information about the Python-list
mailing list