Hi, I want to do some image processing using Python - is there a simple way to import .png image files as a matrix of greyscale/RGB values (possibly using PIL)?
Thanks - but I couldn't figure out which attribute to access from the return value of im.load()...
Stephen
2010-08-16 21:27:24
Seems you didn't read PIL manual, there is a simple case =>pix = im.load()print pix[x, y]What's unclear here ?
0x69
2010-08-28 20:12:17
A:
Yes. Use PIL.
Do you have a more specific question? Perhaps some code you tried?
S.Lott
2010-08-16 12:38:02
+2
A:
you can use PyGame image and use PixelArray to access the pixeldata
Nikolaus Gradwohl
2010-08-16 12:40:54
thanks - i will have to look into that. for now, i happened to have scipy and PIL installed already...
Stephen
2010-08-16 21:28:23