Skip to main content

pixel_difference

Function pixel_difference 

Source
pub fn pixel_difference(lhs: [u8; 4], rhs: [u8; 4]) -> u32
Expand description

Sums the absolute per-channel differences between two RGBA pixels, from 0 to 1020.