I have recently began to use SimpleITK for image registration. For my current project I need to register an X-Ray image and a CT image, and then apply the inverse matrix on a ROI mask traced on the X-Ray image.
I got the inverse matrix with this line:
inverse_transform = final_transform.GetInverse()
How can I apply the transform to the ROI mask?