[Numpy-discussion] Creating a RGB-image from BW
Wed Apr 29 10:55:41 CDT 2009
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]
That does what I want so fast that my current implementation can't even
measure it. You're a genius!
Thanks so much!
More information about the Numpy-discussion