Processing an image with numarray.nd image

Raphaël MARC raphael.marc at free.fr
Tue Oct 4 05:56:51 EDT 2005


Hello,

Can anyone tell me how to open an image
and transform it into a list so that
the functions of the multi dimensionnal module of
numarray (numarray.nd image) can process it ?

Do I have to use PIL ?

So I would code something like :
import Image
im = Image.open("Python.jpg")
data = list(im.getdata())
import numarray.nd image as ti
ti.median filter(data,...)

Is that the correct way to do ?


Thanks for any help.


Raphaël



More information about the Python-list mailing list