Skip to main content

erode_sphere

Function erode_sphere 

Source
fn erode_sphere(
    mask: &[bool],
    (nx, ny, nz): (usize, usize, usize),
    r: i64,
) -> Vec<bool>
Expand description

imerode(mask, strel('sphere', r)): a voxel stays if every voxel of the ball of radius r voxels around it is in the mask, counting voxels outside the array as in the mask (MATLAB’s border rule for erosion).