ITK users -<br><br>How does the ActiveIndexList store the offset values when defining the neighborhood shape?&nbsp; Does it keep a list of the OffsetType variables or just the values of the variables?<br><br>Like the ShapedNeighborhoodIterators1 example - the following 2 chunks of code should produce the same result.&nbsp; Is this correct?
<br><br><br>First Chunk:<br>ShapedNeighborhoodIterator&lt;ImageType&gt; it (radius, image, region);<br>ShapedNeighborhoodIterator&lt;ImageType&gt;::OffsetType offset1 = {{ 0,0,0 }};<br>ShapedNeighborhoodIterator&lt;ImageType&gt;::OffsetType offset2 = {{ 1,0,0 }};
<br>ShapedNeighborhoodIterator&lt;ImageType&gt;::OffsetType offset3 = {{ 2,0,0 }};<br>it.ActivateOffset(offset1); it.ActivateOffset(offset2); it.ActivateOffset(offset3);<br><br><br>Second Chunk:<br>
ShapedNeighborhoodIterator&lt;ImageType&gt; it (radius, image, region);<br>for( int i = 0 ; i &lt; 3 ; i++)&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp; ShapedNeighborhoodIterator&lt;ImageType&gt;::OffsetType offset = {{ i, 0, 0 }};<br>&nbsp;&nbsp;&nbsp;&nbsp; it.ActivateOffset
(offset);<br>}<br><br><br>Thanks.<br>Jared<br>