[vtkusers] Mapping vtkImageData coordinates to vtkDataArray and back?
Manuel Corrales
manuelcorrales at gmail.com
Thu Aug 22 12:49:46 EDT 2013
Hello,
does VTK provides a way of mapping a vtkImageData 3d coordinate to an
vtkArray 1d coordinate and back? I.e: can I get the relation between the 3
indices that I have to pass to GetScalarPointer and the 1 index I have to
pass to GetTuple()?
vtkImageData->GetScalarPointer(indices[0], indices[1], indices[2])
vtkImageData->GetPointData()->GetScalars()->GetTuple(0);
Thanks in advance.
Regards,
Manuel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130822/f06b4a86/attachment.htm>
More information about the vtkusers
mailing list