pub(crate) fn sphere_erode(mask: &[u8], grid: &Grid, radius: i32) -> Vec<u8> ⓘ
Binary erosion by a solid sphere of the given radius (voxels), matching scipy.ndimage.binary_erosion with border_value=0 (out-of-bounds = false).
scipy.ndimage.binary_erosion
border_value=0