Description Usage Arguments Details Value Examples
Denoise Y give D in Y=DA.
1 |
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. |
See https://arxiv.org/abs/1605.07870
The denoised matrix Y.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.