[Image-SIG] Removing specific range of colors from scanned image
eismb at hotmail.com
Tue Apr 28 16:13:20 CEST 2009
Thanks, John - I'll have a look at numpy and vips (and CIELAB) right away.
I'm having trouble thinking out of the "for pixel in image" loop. Is it possible to calculate with images and not pixels with PIL?
> From: jcupitt at gmail.com
> Date: Tue, 28 Apr 2009 09:14:38 +0100
> Subject: Re: [Image-SIG] Removing specific range of colors from scanned image
> To: eismb at hotmail.com
> CC: image-sig at python.org
> Hi Eduardo,
> 2009/4/28 Eduardo Ismael <eismb at hotmail.com>:
> > Would you please make comments on what I could do to improve the code below?
> You could make it hundreds of times faster if you calculate with
> images, not pixels. But maybe it's fast enough already? It depends on
> your needs.
> CIELAB would be a better colour space than RGB, but I don't think PIL
> supports CIELAB colour space, so you'd need to look into another image
> processing system, like numpy or vips.
Novo Windows Live: Messenger 2009 e muito mais. Descubra!
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Image-SIG