View source: R/addNoiseToImage.R
addNoiseToImage | R Documentation |
Add noise to image using additive Guassian, salt-and-pepper, shot, or speckle noise.
addNoiseToImage(
image,
noiseModel = c("additivegaussian", "saltandpepper", "shot", "speckle"),
noiseParameters
)
image |
input image |
noiseModel |
either "additivegaussian", "saltandpepper", "shot", or "speckle". |
noiseParameters |
vector defining the noise models.
|
noise corrupted image.
NJ Tustison
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))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.