I have to mask a .nii MRI image for an internship I'm doing. The method I'm using involves multiplying the proton density weighted version of the image (captured during the inversion pulse) by the original mp2rage image. In order to do this I'm using Convert3D, however I'm getting a weird error that says "Images Do Not Occupy Same Physical Space". I am really lost here, and don't have much experience with this software, so if anyone knows how to fix this, or a better way to multiply .nii/nifti files, it would be really helpful. I am completely stuck. It looks like their origins are slightly different, maybe this is causing the problem, however I still have no idea how to fix it. I have tried setting the origin on both images to the same value 100x100x100mm using -origin, and then multiplying. This allows multiplication, however, I'm not sure if the result is what I want or if this is the right way to go about multiplying these images. I've attached the result below, as well as the commands I used to get it. 


