[vtkusers] access points quickly
Mark Roden
mmroden at gmail.com
Mon Nov 29 23:37:55 EST 2010
Hi all,
How can I access points in an image without bounds checking?
Right now, there's 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'm trying to speed up
vtkDijkstraImageGeodesicPath::BuildAdjacency.
This method's major time sink is 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't necessarily know the base type of the data?
Thanks,
Mark
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20101129/8d949c71/attachment.htm>
More information about the vtkusers
mailing list