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.

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).

Hi Andras,
I have a silly question for this hardening topic:
Should I have to (or optionally) remove the observers of a volume node before I do hardening on this volume-node? I mean, you say, we do transform on a volume-node which is associated with a transformed node, right? so when we do the volume-node transform-hardening, the transform-node is still connecting to the volume-node or it is being stopped after the hardening process?

Thanks a lot.

There is no need to change any observers when the parent transform of an observed volume node changes (due to hardening a transform or for any other reason).