denoiseImage: Use a given dictionary D to denoise image.

Description Usage Arguments Details Value Examples

View source: R/Denoise.R

Description

The noisy image is split into sqrt(m) by sqrt(m) patches. Each patch is vectorized into a column of matrix Y. Using the given D, the sparse coding A_hat in Y=DA is obtained. Then Y_denoise=DA_hat. The final denoised image is reconstruncted on the denoised patches.

Usage

1
denoiseImage(I_noise, D, sigma, stepsize = 1)

Arguments

I_noise

The image to be denoised. In form of matrix.

D

D is the dictionary used in Y=DA to denoise.

sigma

Noise level.

stepsize

(optional) The stepsize when splicting the image. Default is 1

Details

See https://arxiv.org/abs/1605.07870

Value

The denoised image in for of a matrix.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
I = lena_crop #use a smaller image as an example
## add noise
sigma=20;
I_noise=AddNoise(I,sigma)
## use ODCT dictionary
D0=ODCT(64,100)
## denoise
## Not run: 
I_clean=denoiseImage(I_noise,D0,sigma)

## End(Not run)

GSCAD documentation built on Oct. 6, 2017, 5:04 p.m.

Related to denoiseImage in GSCAD...