[Image-SIG] Is getdata() or load() more efficient for accessing pixels?
Fredrik Lundh
fredrik at pythonware.com
Sun Dec 2 14:30:11 CET 2007
jorma kala wrote:
> 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?
I suggest benchmarking this for your specific use case.
</F>
More information about the Image-SIG
mailing list