[Numpy-discussion] Quicker image transfer, tobuffer?
Travis Oliphant
oliphant at ee.byu.edu
Tue Jul 11 18:01:53 EDT 2006
Filip Wasilewski wrote:
>Hi Travis,
>
>this is a great example of the __array_interface__ usage.
>
>
>
Just to complete the example:
With the Image.py patch that adds the __array_interface__
you can do
import Image, pylab
im = Image.open('somefile.jpg')
pylab.imshow(im, origin='lower')
and get a nice picture in the matplotlib window (at least if you are
running NumPy).
-Travis
More information about the NumPy-Discussion
mailing list