I have the following problem:
I have an mri image and a mask. Both have the same dimensions but the x-axes of the mask is the other way around:
So I tried to save my mask with another affine matrix (the one from the image):
mask = nib.Nifti1Image(mask, affine=image.affine)
But when I mask later on my image left and right side are mirrored.