Description Usage Arguments Examples
Take a numeric and, with a specified probability to do so, set it equal to either 0 or 1 with a 50 percent probability for each option, or otherwise leave it as is.
1 | salt_and_pepper_noise(image, noise_density = 0.05)
|
image |
A numeric. Should be an element of an array. |
noise_density |
The probability with which the function will then set the numeric equal to 0 or 1. |
1 2 | salt_and_pepper_noise(0.54, 0.6)
salt_and_pepper_noise(0.3)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.