[Image-SIG] Is getdata() or load() more efficient for accessing pixels?

jorma kala jjkk73 at gmail.com
Fri Nov 30 19:42:15 CET 2007


Hi,
I read that the getpixel function of the PIL library is relatively slow.
Which alternative is therefore faster and more efficient, accesing the
result of getdata() as a flat list or
using  the function load(), and accessing pixels through the resulting
2-dimensional array?

Thanks a lot.

j. kala
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/image-sig/attachments/20071130/a788790c/attachment.htm 


More information about the Image-SIG mailing list