Hi all,<div><br></div><div>How can I access points in an image without bounds checking?</div><div><br></div><div>Right now, there&#39;s <span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; ">GetScalarComponentAsDouble, but this is s-l-o-w when iterating through all the points in an image.  Is there an iterator class similar to ITK?  As I mentioned earlier, I&#39;m trying to speed up </span><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; ">vtkDijkstraImageGeodesicPath::BuildAdjacency.  This method&#39;s major time sink is </span><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; ">GetScalarComponentAsDouble.  Can I just use vtkImageIterator and make the path templated to the image type?  Is that the kosher VTK way of rewriting this method, or is it not OK to use an image iterator when I don&#39;t necessarily know the base type of the data?</span></div>
<meta charset="utf-8"><meta charset="utf-8"><div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; "><br></span></div><div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; ">Thanks,</span></div>
<div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; ">Mark</span></div><meta charset="utf-8">