Dear David Doria,<br><br>ShapedNeighborhoodIterator is certainly full of details. What I did when I first used it was to follow the software guide examples. <br><br>You are activating the offsets you need every time you move the ShapedNeighborhoodIterator on a valid pixel in the current face and that is fine, but I believe you are missing a second iterator, called ::ConstIterator, that acts like a stencil iterator. It lets you iterate over the active offsets of the shaped iterator at current location. Check Software guide on page 741. <br>
<br>I hope it can be useful to you.<br><br>Bye,<br><br>Nicolás Gallego-Ortiz<br>Universidad de Antioquia<br>Medellín, Colombia<br><a href="mailto:nicgallego@ieee.org">nicgallego@ieee.org</a><br>