[Numpy-discussion] Creating a RGB-image from BW
Johannes Bauer
dfnsonfsduifb at gmx.de
Wed Apr 29 11:55:41 EDT 2009
Hi Zach,
Zachary Pincus schrieb:
> According to http://www.pygtk.org/pygtk2reference/class-
> gdkpixbuf.html , the pixels_array is a numeric python array (a
> predecessor to numpy). The upshot is that perhaps the nice
> broadcasting machinery will work fine:
>
> pb_pixels[...] = fits_pixels[..., numpy.newaxis]
Ayyyyyyyyyyyyyyyy! *jump*
That does what I want so fast that my current implementation can't even
measure it. You're a genius!
Thanks so much!
Kind regards,
Johannes
More information about the NumPy-Discussion
mailing list