fn sti_rim(mask: &[u8], dims: (usize, usize, usize)) -> Vec<u8> ⓘExpand description
STI’s boundary rim: mask voxels where SMVFiltering(mask, 3), the mean of the mask over
the 146 neighbours of ball3D(3) (offsets with 1 ≤ |d|² ≤ 10 voxels², periodic), is
below 0.99, i.e. more than one of those neighbours is outside the mask.