Rescale/reshape mask to match sample image dimension

I have a binarized mask of dimension 182 * 218 * 182 and I want to rescale image dimension into my zmap dimension 256 * 256 * 256

Are there any tools to do that so I can apply it to my image. Both images are in MNI space.

Would one of the functions from nilearn fit your needs, like resample_to_image (tutorial)? Since you’re working with a mask, you’ll probably want interpolation to be set to “nearest”.

2 Likes