imgSaltPepperNoise {biOps} | R Documentation |
This function adds salt and pepper noise to an image.
imgSaltPepperNoise(imgdata, percent)
imgdata |
The image |
percent |
The percent of noise to add |
return an imagedata object
## Not run: x <- readJpeg(system.file("samples", "violet.jpg", package="biOps")) y <- imgSaltPepperNoise(x, 30) ## End(Not run)