Learn R Programming

imager (version 0.14)

imnoise: Generate (Gaussian) white-noise image

Description

A white-noise image is an image where all pixel values are drawn IID from a certain distribution. Here they are drawn from a Gaussian.

Usage

imnoise(x = 1, y = 1, z = 1, cc = 1, mean = 0, sd = 1)

Arguments

x
width
y
height
z
depth
cc
spectrum
mean
mean pixel value (default 0)
sd
std. deviation of pixel values (default 1)

Value

  • a cimg object

Examples

Run this code
imnoise(100,100,cc=3) %>% plot(main="White noise in RGB")
imnoise(100,100,cc=3) %>% isoblur(5) %>% plot(main="Filtered (non-white) noise")

Run the code above in your browser using DataLab