[vtkusers] Get imageData value from axis coordinates
David Doria
daviddoria at gmail.com
Wed Feb 12 08:52:28 EST 2014
On Wed, Feb 12, 2014 at 8:42 AM, Tony <bowler0_uk at yahoo.com> wrote:
> Dear list,
>
> I would like to find the ijk cordinates of a cell in an image data from the xyz 'world' coordinates, that is the cordinates the origin and the spacing are defined in. I can do the reverse, that is getting the physical coordinates from ijk cordinates, using FindCell. However I have been unable to do the reverse. Is this possible?
>
> Thanks
Is vtkImageData::ComputeStructuredCoordinates what you're looking for?
http://www.vtk.org/doc/nightly/html/classvtkImageData.html#a8fab1a7146f3adc1fb884cbcbfea184f
David
More information about the vtkusers
mailing list