Function imageproc::noise::salt_and_pepper_noise_mut
source · pub fn salt_and_pepper_noise_mut<P>(image: &mut Image<P>, rate: f64, seed: u64)
Expand description
Converts pixels to black or white in place at the given rate
(between 0.0 and 1.0).
Black and white occur with equal probability.