How to convert image into numpy.ndarray

anti-suho antisuho at gmail.com
Wed Feb 25 16:52:03 CET 2009


In scipy module, there is a function named misc.lena which can return
an array of numpy.ndarray type. If you use this array as parameter of
matplotlib.pyplot.imshow and then call the matplotlib.pyplot.imshow
function, an image will be shown. The shown image is generated by the
numpy.ndarray array.

How to convert an arbitrary image into an array of numpy.ndarray type?



More information about the Python-list mailing list