Dear experts,
I have image and mask and I want to subtract the mask from the image. Meaning I want to get image free of specific anatomical region. For example,

I have image T1.nii for the brain and mask for the thalamus. How can I remove the thalamus from the T1 image to get T1 image free of the thalamus.
Thanks you for any help
Jon