denoise: Use a given dictionary D to denoise image.

Description Usage Arguments Details Value Examples

View source: R/Denoise.R

Description

Denoise Y give D in Y=DA.

Usage

1

Arguments

Y

Each column of Y is a vectorized image patch to be denoised.

D

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

sigma

Noise level.

Details

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

Value

The denoised matrix Y.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
I = lena_crop #use a smaller image as an example
## add noise
sigma=20;
I_noise=AddNoise(I,sigma)
## spliting image into patches
m=64;
Y_nc = ImageSplit(I_noise,sqrt(m),sqrt(m));
mu=colMeans(Y_nc)
Y=Y_nc-rep(mu,each=nrow(Y_nc))
## use ODCT dictionary
D0=ODCT(64,100)
## denoise
## Not run: 
Y_denoise=denoise(Y,D0,sigma)

## End(Not run)

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

Related to denoise in GSCAD...