Re: [Numpy-discussion] setting rows of a numpy array

2008-04-28 Thread Christopher Barker
A couple suggestions: wilson wrote: > I am setting > the each row using pixel values of each image in some folder. As an image is generally a 2-d array of pixels, you may want to use a N X Width X Height 3-d array, rather than flattening each image to a single row. > def putrow(myarray,inrow ,

[Numpy-discussion] setting rows of a numpy array

2008-04-27 Thread wilson
hi all, i have a numpy array of floats whose rows i need to set. i am setting the each row using pixel values of each image in some folder.I wrote a class MyImage that has a field pixelarray which stores the pixels of that image as a numpy array.I made several MyImage instances and stored them in a