[vtkusers] Is it possible to convert data coordinates to world coordinate system?
chasank
chasank at gmail.com
Sat Aug 31 13:24:39 EDT 2013
Hi all,
It's possible to convert a point in world coordinate system to data
coordinate system with the following formula;
for (int i = 0; i <= 2; i++)
{
// Transforming world coordinates into data coordinates
dataCoordinates[i] = static_cast< int >(( worldPoint[i] - origin[i]
) / spacing[i] + 0.5 );
}
However I need a reverse conversion from data coordinate system to world
coordinate system?
Is it possible? if yes how?
Thanks
--
View this message in context: http://vtk.1045678.n5.nabble.com/Is-it-possible-to-convert-data-coordinates-to-world-coordinate-system-tp5723187.html
Sent from the VTK - Users mailing list archive at Nabble.com.
More information about the vtkusers
mailing list