<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
Thanks, John - I'll have a look at numpy and vips (and CIELAB) right away.<br><br>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?<br><br>Eduardo<br><br>&gt; From: jcupitt@gmail.com<br>&gt; Date: Tue, 28 Apr 2009 09:14:38 +0100<br>&gt; Subject: Re: [Image-SIG] Removing specific range of colors from scanned image<br>&gt; To: eismb@hotmail.com<br>&gt; CC: image-sig@python.org<br>&gt; <br>&gt; Hi Eduardo,<br>&gt; <br>&gt; 2009/4/28 Eduardo Ismael &lt;eismb@hotmail.com&gt;:<br>&gt; &gt; Would you please make comments on what I could do to improve the code below?<br>&gt; <br>&gt; You could make it hundreds of times faster if you calculate with<br>&gt; images, not pixels. But maybe it's fast enough already? It depends on<br>&gt; your needs.<br>&gt; <br>&gt; CIELAB would be a better colour space than RGB, but I don't think PIL<br>&gt; supports CIELAB colour space, so you'd need to look into another image<br>&gt; processing system,  like numpy or vips.<br>&gt; <br>&gt; John<br><br /><hr />Quer saber qual produto Windows Live combina melhor com o seu perfil? <a href='http://www.windowslive.com.br' target='_new'>Clique aqui e descubra!</a></body>
</html>