Skip to main content

sphere_erode

Function sphere_erode 

Source
pub(crate) fn sphere_erode(mask: &[u8], grid: &Grid, radius: i32) -> Vec<u8> 
Expand description

Binary erosion by a solid sphere of the given radius (voxels), matching scipy.ndimage.binary_erosion with border_value=0 (out-of-bounds = false).