Mercurial > hg > smallbox
comparison DL/Majorization Minimization DL/ExactDicoRecovery/ksvd_exactRec_demo.m @ 159:23763c5fbda5 danieleb
Merge
author | Daniele Barchiesi <daniele.barchiesi@eecs.qmul.ac.uk> |
---|---|
date | Wed, 31 Aug 2011 10:43:32 +0100 |
parents | b14209313ba4 |
children |
comparison
equal
deleted
inserted
replaced
158:855aa3288394 | 159:23763c5fbda5 |
---|---|
1 function ksvd_exactRec_demo(it,k,sn) | |
2 tic | |
3 IT = it; | |
4 K = k; | |
5 SN = sn; | |
6 if SN<10, | |
7 samnum = ['0',num2str(SN)]; | |
8 else | |
9 samnum = num2str(SN); | |
10 end | |
11 load(['Param',num2str(K),'kS',samnum,'.mat']) | |
12 lambda = 2*.2; % 2 * Smallest coefficients (Soft Thresholding) | |
13 %%%%%%%%% | |
14 Phi = Phio; | |
15 M = size(Phi,1); | |
16 [Phi,unhat,ert] = ksvd_cn(x,Phi,lambda,IT); | |
17 | |
18 save(['KSVDl1',num2str(M),'t',num2str(IT),'ikiun',num2str(K),'v1d',num2str(SN),'.mat'],'Phi','Phid','x','ud','unhat','ert') | |
19 | |
20 toc |