<p><br>
On Aug 10, 2012 12:34 AM, "Giuseppe Amatulli" <<a href="mailto:giuseppe.amatulli@gmail.com">giuseppe.amatulli@gmail.com</a>> wrote:<br>
><br>
> Ciao,<br>
> is 12 minutes for 5000x5000 pixel image. half of the time is for<br>
> reading the arrays.<br>
> and the other half for making the loop.<br>
> I will try again to incorporate the mask action in the loop<br>
> and<br>
> read the image line by line.<br>
> Thanks<br>
> ciao</p>
<p>That does seem slow. I'm sure it can be a lot faster than that.</p>
<p>Did you also write the code for reading the arrays? The loop can certainly be made faster but if you can't make the array reading faster there's not much point spending a long time trying to speed up the rest.</p>

<p>Oscar.</p>