The issue is in your geometric information.
Both image and mask have size (xyz) (260x320x24), and in-plane spacing of 0.6875x0.6875. However, the mask has slice thickness 1 (vs 6.5 for the image), and the origin is (0, 0, 0) (vs. (83.3, 115.8, -61.45).
Most likely this is due to some conversion issue somewhere. How did you create/convert the mask?
I was able to get the mask over the image by copying the information:
import SimpleITK as sitk
im = sitk.ReadImage('Image_Vol.nrrd')
ma = sitk.ReadImage('Mask_Tumor.nrrd')
ma.CopyInformation(im)
sitk.WriteImage(ma, 'mask.nrrd', True)
Regards,
Joost
Op vrijdag 15 november 2019 16:02:25 UTC+1 schreef Tony Alexandre Medeiros: