Skip to main content

extract_surface_voxels

Function extract_surface_voxels 

Source
fn extract_surface_voxels(
    mask: &[u8],
    nx: usize,
    ny: usize,
    nz: usize,
) -> Vec<usize>
Expand description

Extract surface voxels from a binary mask

Matches MATLAB’s approach: curvMask = mask - imerode(mask, strel(‘sphere’,1)) Surface voxels are those in the mask but not in the eroded mask.