ITK users -<br><br>How does the ActiveIndexList store the offset values when defining the neighborhood shape? 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. Is this correct?
<br><br><br>First Chunk:<br>ShapedNeighborhoodIterator<ImageType> it (radius, image, region);<br>ShapedNeighborhoodIterator<ImageType>::OffsetType offset1 = {{ 0,0,0 }};<br>ShapedNeighborhoodIterator<ImageType>::OffsetType offset2 = {{ 1,0,0 }};
<br>ShapedNeighborhoodIterator<ImageType>::OffsetType offset3 = {{ 2,0,0 }};<br>it.ActivateOffset(offset1); it.ActivateOffset(offset2); it.ActivateOffset(offset3);<br><br><br>Second Chunk:<br>
ShapedNeighborhoodIterator<ImageType> it (radius, image, region);<br>for( int i = 0 ; i < 3 ; i++) {<br> ShapedNeighborhoodIterator<ImageType>::OffsetType offset = {{ i, 0, 0 }};<br> it.ActivateOffset
(offset);<br>}<br><br><br>Thanks.<br>Jared<br>