fn label6(
fg: &[bool],
dims: (usize, usize, usize),
) -> (Vec<Option<usize>>, Vec<usize>)Expand description
6-connected components (bwconncomp(·, 6)), numbered in the order of their first voxel in
memory order (x fastest, as MATLAB’s column-major order). Returns each voxel’s component and
the component sizes.