[SciPy-User] I want something like numpy.put
Andy Fraser
afraser@lanl....
Thu Jan 28 14:37:09 CST 2010
I want to "paint" a distorted image onto a background. The distorted
map is described by an array of ordered pairs called "ij". I get the
effect that I want from the following loop:
for x in xrange(w):
for y in xrange(h):
dest[ij[x,y,0],ij[x,y,1]] = source[x,y]
Each assignment operates on an rgb pixel vector. Is there a single
fast numpy call that achieves the same effect?
Andy
More information about the SciPy-User
mailing list