Moving volume overwritten with BRAINSfit General Registration Module

Hello,

When I use the BRAINSFit registration module, the moving volume is overwritten (i.e. transformed and resampled in the same space as the fixed volume, and similar to the output volume). Is there any way to prevent it and keep the moving volume as it is originally ?
I am using the BRAINSfit module with slicer.cli.run and I am running several successive local registration using the different segments of a segmentation (ROI moving mask) but with the same fixed and moving volumes, and it is a problem if the moving volume is modified each time.
Thanks for your help,

The moving volume is not modified, just the computed transform is set as parent transform. You can remove it by calling movingVolume.SetAndObserveTransformNodeID(None).

1 Like

Thanks, it solves the problem!

1 Like