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