[−][src]Function imageproc::noise::salt_and_pepper_noise_mut
pub fn salt_and_pepper_noise_mut<P>(image: &mut Image<P>, rate: f64, seed: u64) where
P: Pixel + HasBlack + HasWhite + 'static,
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.