Displacement field visualization

Hello all,

I have one cardiac CT volume and one displacement field. I would like to apply a transform to both the volume node and the displacement field node to see the short axis view of the heart and how the deformation field looks like on the view. First, I created new transform for the CT volume, and checked the Interaction in 3D view box. Then, I applied the transform on my displacement field. Finally, I rotated the interactive volume to get a new view. Below is what I got


original view (before the rotation)


view after the rotation

Capture2
transform info

The volume after transformation looks good but the displacement field looks wrong. I was wondering if you could show me how to display the displacement field on my rotated view. Thank you in advance for your help.

In transform visualization the measurement frame is always the same as the visualization frame, which is the world coordinates system. If you simply rotate the displacement field then that rotation is concatenated to the transformation - and this is what you show in the screenshot above. This is the correct and expected behavior.

If you want to show the volume’s displacements in the rotated coordinate system, then you need to do a change of basis. If BulkTransform is your change-of-basis transform then you need to clone that transform and invert it (BulkTransform Copy (-)) and make it the child transform of your transformed displacement field transform (implementing the basis transform inv(P) * M * P). If you visualize this BulkTransform Copy (-) transform then you will see the displacement vectors that you wanted.

image

Thank you so much for your help. It worked.

1 Like