<div class="gmail_quote">On Mon, Jul 18, 2011 at 1:00 PM, Dawood AlMasslawi <span dir="ltr">&lt;<a href="mailto:masslawi@gmail.com">masslawi@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div></div><div class="h5"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Yes, that makes sense!<div><br></div><div>In the past I also had some trouble with neighborhood iterators  of a </div>

<div><br></div><div>large radius, so I guess they are not utilized for that use. Probably</div><div><br>
</div><div>it has something to do with the boundary condition, every time I</div><div><br></div><div>iterated near the boundaries somethings went wrong!</div><div><br></div><font color="#888888"><div>Dawood</div></font></blockquote>
</div></div></div></blockquote><div><br></div>I&#39;m not sure if this was the same problem you were having, but I have figured out why the indices were higher than 100.</div><div class="gmail_quote"><br></div><div class="gmail_quote">
I was setting up the iterator with:</div><div class="gmail_quote"><br></div><div class="gmail_quote">IteratorType iterator(image-&gt;GetLargestPossibleRegion().GetSize(), image, image-&gt;GetLargestPossibleRegion());</div>
<div class="gmail_quote"><br></div><div class="gmail_quote">However, this first parameter is interpreted as a radius. So the iterator was actually 21x21 instead of 10x10 in the example, for a total of 441 indices. The indices 199 and 241 differ 42, exactly the right amount so that they are still at offsets (0,1) and (0,-1) (two rows apart).</div>
<div class="gmail_quote"><br><div>David</div></div>