[vtkusers] Fast element access of vtkImageData?

Georg Ziegler gziegler at mail.zserv.tuwien.ac.at
Thu Jul 28 11:20:00 EDT 2011


Am 28.07.2011 17:00, schrieb David Doria:
> On Thu, Jul 28, 2011 at 10:57 AM, John Drescher<drescherjm at gmail.com>  wrote:
>> BTW, David Doria has a repository on github that implements some fast
>> access iterators for vtk here:
>>
>> https://github.com/daviddoria/vtkImageTraversal
>>
>> John
> No, no, please don't use those. They were never finished and were a
> very bad approach to start with. However, if someone wants to puck up
> that work, that'd be a great idea!
>
> David

Also vtk has a built-in iterator.
http://www.vtk.org/doc/nightly/html/classvtkImageIterator.html

I use them only for 1-component images though.
As speed is an issue here. Has anyone compared the performance of that 
iterator and the pointer access method described in previous mails in 
this thread?

Georg



More information about the vtkusers mailing list