<div class="gmail_quote">On Wed, Feb 16, 2011 at 1:11 PM, robert tamburo <span dir="ltr"><<a href="mailto:robert.tamburo@gmail.com">robert.tamburo@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
As you iterate the image, check to see if you're on the grid. If you are, then set and iterate the neighborhood. Something like:<div><br></div><div>while(!it.IsAtEnd())</div><div> {</div><div> index = it.GetIndex();</div>
<div> if( (index[0] % 2 == 0) && (index[1] % 3 == 0) ) // or whatever</div><div> {</div><div> neighborhoodIt.SetLocation(index);</div>
<div> // iterateTheNeighborhood</div><div> .</div><div> .</div><div> .</div><div> }</div><div><br></div><div> ++it;</div><div><div></div><div class="h5"><div> }<br></div><div><br></div></div></div></blockquote>
<div>I think there is a concept of this grid by setting the "Stride" (I think this is like a step length per dimension). After a very quick look, I see a GetStride function in NeighborhoodIterator (but not a SetStride?) - maybe you can do some grepping and see if you come up with anything.</div>
<br><div>David </div></div>