Apply and save a transformation on an mha file

Hello everyone,
I have a question about the mha file. I have an mha file that has a basic transform written in the file. But, I would like to change this transform with another one and save it in the file. Do you know a way to do this and even automate it afterwards? Thanks for your help.

You can load the image file as a volume node, set the IJK to RAS matrix (origin, spacing, axis directions) by calling methods on the volume node, and then save the volume node.

1 Like