Correction of MRI image distortion

Slicer version:4.10.1
Hi 3D Slicer experts and all
I have 2 images( CT and MRI). We calculated the displacement (distortion) of each point in MRI relative to CT image(Slicer B splin Tranform). Now, I have a question. How can I apply a matrix on my MRI image to correct these distortions, to different points of the MRI image be without distortion? (As CT image).
Thanks a lot

You can use the transform module. The transformation type is grid transform, whose parameter is the displacement matrix. Then this transform is applied to your MR image.