Skip to main content

count_pixels_off_background

Function count_pixels_off_background 

Source
pub fn count_pixels_off_background(
    px: &[u8],
    background: [f64; 3],
    tolerance: u8,
) -> usize
Expand description

Count pixels whose colour differs from background beyond tolerance.