addNoiseToImage.Rd
Add noise to image using additive Guassian, salt-and-pepper, shot, or speckle noise.
addNoiseToImage(
image,
noiseModel = c("additivegaussian", "saltandpepper", "shot", "speckle"),
noiseParameters
)
noise corrupted image.
image <- antsImageRead(getANTsRData("r16"))
noiseImage <- addNoiseToImage(image, "additivegaussian", c(0, 1))
noiseImage <- addNoiseToImage(image, "saltandpepper", c(0.1, 0, 100))
noiseImage <- addNoiseToImage(image, "shot", c(1.0))
noiseImage <- addNoiseToImage(image, "speckle", c(1.0))