<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>> From: jcupitt@gmail.com<br>> Date: Tue, 28 Apr 2009 09:14:38 +0100<br>> Subject: Re: [Image-SIG] Removing specific range of colors from scanned image<br>> To: eismb@hotmail.com<br>> CC: image-sig@python.org<br>> <br>> Hi Eduardo,<br>> <br>> 2009/4/28 Eduardo Ismael <eismb@hotmail.com>:<br>> > Would you please make comments on what I could do to improve the code below?<br>> <br>> You could make it hundreds of times faster if you calculate with<br>> images, not pixels. But maybe it's fast enough already? It depends on<br>> your needs.<br>> <br>> CIELAB would be a better colour space than RGB, but I don't think PIL<br>> supports CIELAB colour space, so you'd need to look into another image<br>> processing system, like numpy or vips.<br>> <br>> 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>