Re: [Image-SIG] How to create a new RGB image from an mxnx3 numpy array

2008-10-04 Thread Ned Batchelder
I use code like this: pixels = numpy.zeros((200, 300, 3), dtype=numpy.uint8) //.. write data into the pixels array .. im = Image.fromarray(pixels) --Ned. http://nedbatchelder.com David Goldsmith wrote: Hi! I've been over and over the handbook, tried everything I could think of, an

Re: [Image-SIG] How to create a new RGB image from an mxnx3 numpy array

2008-10-04 Thread David Goldsmith
Awesome, thanks Ned! FTR (in case it helps others): Ned's "solution" was, formally, among the first things (if not the first thing) I tried, but...for my RGB table, I was using a colormap salvaged from some previous work in matlab using the scipy sub-package scipy.io.mio. All that data was in