Get volume orientation after hardening a transformation

Hi, I just would like the get the volume orientation after hardening a transformation. Is it possible?

Thank you in advance, excellent software.

You can get IJK axis directions in RAS coordinate system by calling GetIJKToRASDirections() or GetIJKToRASMatrix() method of the volume node.

1 Like

Thank you Andras. Solved my problem.

1 Like

Hi andras,
I used the following on volume node n.
mRAS=vtk.vtkMatrix4x4();
n.GetIJKToRASMatrix(mRAS)

I need to get the data of image in world coordinates. How can I do that.

Also, is it possible to align fiducials along the vtk model automatically.

Or if I have fiducials in ijk coordinates how can I convert them into RAS coordinates

Conversion between voxel (IJK) and world (RAS) are described in the script repository.

Markup fiducial points are placed on visible surfaces and when you drag-and-drop them they remain on surfaces.

If you want to snap to a particular surface then you need to iterate through the points and modify point coordinates to the closest point on the surface. Within days we expect tonhave this feature added to Markups module (or is currently under review).