pub fn label_components( mask: &[bool], width: u32, height: u32, connectivity: u8, ) -> Vec<u32>
Label connected components in a boolean diff mask.
Returns a Vec of the same length as mask, where 0 = background and 1+ = component label.