Hi all,<br><br>I am currently using a PathIterator to try to move through some pixels between two indices. My iterator moves successfully most of the way and then decides to calculate a very small step size, so small that it becomes #DEN when I look at it with the debugger.<br>

Here is the relevant code:<br><br><br>    ImageType::IndexType node1 = cell-&gt;critical_points_queue[node_from];<br>    ImageType::IndexType node2 = cell-&gt;critical_points_queue[node_to];<br><br>    typedef itk::PolyLineParametricPath&lt; 3 &gt; PathType;<br>

    PathType::Pointer path = PathType::New();<br>    path-&gt;Initialize();<br><br>    std::cout &lt;&lt; &quot;Start Index: &quot; &lt;&lt; start_index &lt;&lt; &quot; &quot; &lt;&lt; &quot;End Index: &quot; &lt;&lt; end_index &lt;&lt; std::endl;<br>

<br>    path-&gt;AddVertex(node1);<br>    path-&gt;AddVertex(node2);<br><br>    typedef itk::PathConstIterator&lt; VesselnessImageType, PathType &gt; PathIteratorType;<br>    PathIteratorType path_iter(cell-&gt;vesselness_image, path);<br>

<br>    double sum_of_vesselness_values = 0;<br>    itk::uint64_t path_length = 0;<br>    path_iter.GoToBegin();<br>    while (!path_iter.IsAtEnd())<br>    {<br>        std::cout &lt;&lt; &quot;Path iterator position: &quot; &lt;&lt; path_iter.GetPathPosition() &lt;&lt; std::endl;<br>

        std::cout &lt;&lt; &quot;Path iterator index: &quot; &lt;&lt; path_iter.GetIndex() &lt;&lt; std::endl;<br>        sum_of_vesselness_values += path_iter.Get();<br>        ++path_iter;<br>    }<br><br><br>And here is the relevant output:<br>

<br>Start Index: [100, 81, 17] End Index: [114, 81, 17]<br>Path iterator position: 0<br>Path iterator index: [100, 81, 17]<br>Path iterator position: 0.0888889<br>Path iterator index: [101, 81, 17]<br>Path iterator position: 0.177778<br>

Path iterator index: [102, 81, 17]<br>Path iterator position: 0.237037<br>Path iterator index: [103, 81, 17]<br>Path iterator position: 0.296296<br>Path iterator index: [104, 81, 17]<br>Path iterator position: 0.385185<br>

Path iterator index: [105, 81, 17]<br>Path iterator position: 0.444444<br>Path iterator index: [106, 81, 17]<br>Path iterator position: 0.533333<br>Path iterator index: [107, 81, 17]<br>Path iterator position: 0.592593<br>

Path iterator index: [108, 81, 17]<br>Path iterator position: 0.651852<br>Path iterator index: [109, 81, 17]<br>Path iterator position: 0.740741<br>Path iterator index: [110, 81, 17]<br>Path iterator position: 0.8<br>Path iterator index: [111, 81, 17]<br>

&lt;Crash&gt;<br><br>Thanks,<br><br clear="all">Ho Cheung<br>Research Assistant<br>Bio-Image Analytics Lab - University of Houston<br><a href="mailto:hocheung20@gmail.com" target="_blank">hocheung20@gmail.com</a><br>Cell: (832) 215-6347<br>