<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><br>Dear all<br><br>I've compiled and built the 2D test version of the code using ITK 3.8. I used the IJ_324_Neuroninput.mha input data.<br><br>http://www.insight-journal.org/browse/publication/324<br><br><br>Upon debugging, I obtain a runtime error : <span style="font-weight: bold;">map/set iterator not incrementable</span>.<br><br>When I execute the **** lines below..... it fails on the next iteration.<br><br><br> while( !distQueue.empty() )<br> {<br> IndexType oneIndex = distQueue.front();<br> distQueue.pop();<br> for(dsIt = distSet.begin(); dsIt!=distSet.end();
++dsIt)<br>
{<br> IndexType anotherIndex = *dsIt;<br> OffsetType offset = anotherIndex - oneIndex;<br> typename OffsetType::OffsetValueType offsetSumSquared = 0;<br> for(int j=0; j<ImageDimension; j++)<br> offsetSumSquared += offset[j]*offset[j];<br> if( offsetSumSquared <= 3 )<br> {<br> ****
distQueue.push(anotherIndex);<br> **** distSet.erase(dsIt);<br> <br> }<br> }<br> }<br><br><br><br>Any clues on this would be appreciated.<br><br>regards<br><br>Pascal<br></td></tr></table><br>
<hr size=1>Instant message from any web browser! Try the new <a href="http://ca.messenger.yahoo.com/webmessengerpromo.php"><b> Yahoo! Canada Messenger for the Web BETA</b></a>