[−][src]Function imageproc::noise::salt_and_pepper_noise
pub fn salt_and_pepper_noise<P>(
image: &Image<P>,
rate: f64,
seed: u64
) -> Image<P> where
P: Pixel + HasBlack + HasWhite + 'static,
Converts pixels to black or white at the given rate
(between 0.0 and 1.0).
Black and white occur with equal probability.