Learn R Programming

GSCAD (version 0.1.0)

AddNoise: Add noise to a clean image.

Description

Add white noise from N(0,sigma^2) to each pixel of clean image I

Usage

AddNoise(I, sigma)

Arguments

I

Clean image.

sigma

Noise level.

Value

A noisy image of the same size of I.

Examples

Run this code
# NOT RUN {
sigma=25; I=lena_crop
I_noise=AddNoise(I,sigma)
# }

Run the code above in your browser using DataLab