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?

Eduardo

> From: jcup...@gmail.com
> Date: Tue, 28 Apr 2009 09:14:38 +0100
> Subject: Re: [Image-SIG] Removing specific range of colors from scanned image
> To: ei...@hotmail.com
> CC: image-sig@python.org
> 
> Hi Eduardo,
> 
> 2009/4/28 Eduardo Ismael <ei...@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.
> 
> John

_________________________________________________________________
Novo Windows Live: Messenger 2009 e muito mais. Descubra!
http://www.windowslive.com.br
_______________________________________________
Image-SIG maillist  -  Image-SIG@python.org
http://mail.python.org/mailman/listinfo/image-sig

Reply via email to