Operating system: MacOS Ventura 13.4.1
Slicer version: 5.2.2
Expected behavior: Save .json file with transform applied
Actual behavior: Transform is not applied and markups are in the same position as the original file
I’m applying a transform in the ‘transforms’ module. Visually I can see that the markups move to the correct position. However, when I go to save or export the transformed file, the markups do not save in this transformed position. When I try to harden the transform it simply moves the markups back to the original spot.
Thank you for the prompt response Andras. I have tried both of your options but neither of them appear to work for me.
Option A - when I click on the harden transform, the markups file moves from the ‘transformed’ section back into the ‘transformable’ section, as if I had clicked on the green arrow button.
Option B - when I export the markup and select the apply transforms box it still saves in the original position…
Can I provide you with any further information to help solve this issue?
Please try with the latest Slicer Preview Release as well. If the behavior is still the same then share the scene (saved as a single .mrb file) so that we can investigate.
Just tried the latest Slicer Preview Release and the behaviour is still the same.
I can’t seem to attach the mrb file - what is the best way to send this to you?
Once the matrix is applied, the markups should move closer to the model in the scene.
Not sure I understand this. If the points are under the transform and you hard it, you should see no displacement. They are already at the places that they are supposed to be and you are simply making this permanent by hardening the transform.
If you want to see the effect of the transform, take the points out of transform (which will bring them to their original positions they were created under) and the put them back in.
Sorry can’t replicate this on the preview on MacOS. See the screenshot, I created two points (red), cloned them (green), put the cloned ones under a transform that moved them some random place and then I hardened the transform. As you can see the points end it up in the modified spots. If the hardening didn’t work, they would have gone back on top of the red points.
So my guess you are either missing a step, or you have somewhat different expectation of what hardening does.
Thank you for your assistance.
I have found a solution using the ‘split’ function on the transforms module.
My .tfm file would apply the transform to the markups so that I could visualise the markups in the transformed orientation, but not export the .json file with the coordinates.
After selecting the ‘split’ function and applying a single component of the transform (h5 file), the markups could be transformed, hardened and exported.
It seems that something is wrong with the transform. Could you please share at least your transform file (but preferable the whole scene, saved as a single .mrb file)?