[vtkusers] Access voxel data from vtkImageData

David Doria daviddoria at gmail.com
Wed Nov 13 11:11:20 EST 2013


> I want to access voxel values in a vtkimageData* class.. I tried using
> GetScalarPointer() but I wasn't able to get anything..

Can you provide a small, compilable example that demonstrates the
problem? What do you mean you weren't "able to get anything"?

This example should show you how to do what you're looking for:
http://www.vtk.org/Wiki/VTK/Examples/Cxx/ImageData/IterateImageData

David


More information about the vtkusers mailing list