I guess there is a multiplication of the sizes in each dimension somewhere, since that is the number of datapoints it has to iterate over.<div><br clear="all"><div><em>Wyke Huizinga</em></div>
<div><br></div><br>
<br><br><div class="gmail_quote">2012/11/2 Wyke Huizinga <span dir="ltr">&lt;<a href="mailto:wykehuizinga@gmail.com" target="_blank">wykehuizinga@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi all,<div><br></div><div>I found the problem. The size of the last dimension should not be set to 0 but to 1. </div><div>I cannot explain why, but maybe somebody else has an idea.</div><div><br></div><div>Thank you for help. Next time I will post code so you can reproduce the error!</div>
<span class="HOEnZb"><font color="#888888">
</font></span><div><span class="HOEnZb"><font color="#888888"><br clear="all"><div><em>Wyke Huizinga</em></div></font></span><div><div class="h5">
<div><br></div><br>
<br><br><div class="gmail_quote">2012/11/2 David Doria <span dir="ltr">&lt;<a href="mailto:daviddoria@gmail.com" target="_blank">daviddoria@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div>On Fri, Nov 2, 2012 at 7:41 AM, Wyke Huizinga &lt;<a href="mailto:wykehuizinga@gmail.com" target="_blank">wykehuizinga@gmail.com</a>&gt; wrote:<br>
&gt; ah yes,sorry.<br>
&gt;<br>
&gt; Here&#39;s the new paste: <a href="http://pastebin.com/miMz8xt0" target="_blank">http://pastebin.com/miMz8xt0</a><br>
&gt;<br>
&gt; (though it is still 73 lines, but I don&#39;t know where it goes wrong, so I<br>
&gt; don&#39;t know what to put in and what to leave out)<br>
&gt;<br>
&gt; Wyke Huizinga<br>
<br>
</div>Wyke,<br>
<br>
Closer, but there are no headers included, and you are still reading<br>
an image from a file - you need to programmatically create a similar<br>
image (in size/shape, the contents don&#39;t matter here) so we can<br>
exactly reproduce the error.<br>
<span><font color="#888888"><br>
David<br>
</font></span></blockquote></div><br></div></div></div>
</blockquote></div><br></div>