[vtkusers] Order of scalars in vtkImageData

Charles Monty Burns ch.monty.burns at googlemail.com
Thu Dec 11 01:47:27 EST 2008


Hello,

I am trying to get a scalar from a computed id of a structured index
([index_x, index_y, index_z]). In my opinion is that contiunues cell id not
the id of the scalar in .GetPointData().GetScalars().

For example:

image # type vtkImageData

cid = image.ComputeCellId([210, 409, 245])
scalar = image.GetPointData().GetScalars().GetValue(cid) # not right ....

My image is in 3D-space ...

Whats the right way to get exactly the right scalar of the voxel?

Greetings
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20081211/aa1839a3/attachment.htm>


More information about the vtkusers mailing list