QMRITools`MaskingTools`
QMRITools`MaskingTools`

RemoveMaskOverlaps

RemoveMaskOverlaps[mask]

removes the overlaps between multiple masks. Mask is a 4D dataset with {z, masks, x, y}.