I would like to resample a 3D binary matrix (512x512x80). The input is the 3D NumPy array, which is a 3D binary mask. In the mask, the region of interest is 1 and other valu