Skip to main content

label_components

Function label_components 

Source
pub fn label_components(
    mask: &[bool],
    width: u32,
    height: u32,
    connectivity: u8,
) -> Vec<u32>
Expand description

Label connected components in a boolean diff mask.

Returns a Vec of the same length as mask, where 0 = background and 1+ = component label.