[vtkusers] Rapid access to scalar data in vtkImageData
Jothy
jothybasu at gmail.com
Mon Oct 10 10:00:51 EDT 2011
Hi all,
I need to access the scalar values in a vtkImageData at a huge list of
(random) points.
Currentlt I ma using imgData->GetScalarComponentAsDouble(x,y,z,0).
But it is slow. This is the key step in the function I will be using. Is
there any other way to access it rapidly, may be with the pointer to scalar
values?
I need to copy the values to a std::vector.
Any suggestions?
Thanks
Jothy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20111010/8a3498e6/attachment.htm>
More information about the vtkusers
mailing list