Re: [Numpy-discussion] Using where with tuples

2009-04-11 Thread Nadav Horesh
: [Numpy-discussion] Using where with tuples Hello I am trying to use the where function on a numpy array which was obtained from an image using the asarray function. The code is as follows: from numpy import * from Image import * im=open("a.gif") im2=im.convert("RGBA"

[Numpy-discussion] Using where with tuples

2009-04-10 Thread Frank Peacock
Hello I am trying to use the where function on a numpy array which was obtained from an image using the asarray function. The code is as follows: from numpy import * from Image import * im=open("a.gif") im2=im.convert("RGBA") a2 = asarray(im2,uint8) c = zeros((140,90,4),uint8) c[:,:]