Nobody has any experiences using neighborhood iterator? Please help out. Thanks.<br><br><div class="gmail_quote">On Fri, Feb 20, 2009 at 6:53 PM, Ming Chao <span dir="ltr">&lt;<a href="mailto:mingchao2005@gmail.com">mingchao2005@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;">Hi all,<div><br></div><div>I am learning how to use neighborhood iterator and apply it to study a toy model. I found the following:</div>
<div><br></div><div>when looping the neighborhood iterator, it still acts like the regular image iterator, ie, running all pixels. This feature is not what I feel like.&nbsp;</div>
<div><br></div><div>My toy model is like this: &nbsp;I have a 2D image with, say, 4X4 pixels. I randomly assign gray values 0 or 1000 to these 16 pixels. For those with 1000, I try to put those which has at least 1 common side (1-connectivity) and count how many of these connected pixels. I thought neighborhood iterator would be ideal in this study.</div>

<div><br></div><div>If you anyone can help me out on either neighborhood iterator or the toy model, I would greatly appreciate it.</div><div><br></div><font color="#888888"><div>Ming</div>
</font></blockquote></div><br>