0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012 clear
0013 close all
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026
0027 mname = mfilename;
0028 mpath = mfilename('fullpath');
0029 mdir = mpath(1:end-length(mname));
0030 cd(mdir);
0031
0032 addpath ../Pursuits_Homotopy/
0033 addpath ../utils/
0034 addpath ../utils/utils_Wavelet
0035 addpath ../utils/utils_meas
0036 addpath ../solvers/
0037 addpath src/
0038
0039 disp(['--------------------',datestr(now),'-------------------------'])
0040
0041
0042 rwt_mode = 5;
0043 lambda = 0;
0044
0045
0046 SAVE_RESULTS = false;
0047
0048
0049
0050 largescale = 1;
0051 SNR = 40;
0052 R = 2;
0053
0054 IMG_LIST = {'barbara','boats', 'cameraman','house','peppers','shapes','lena','airplane','baboon','sailboat','tiffany'};
0055 sType = IMG_LIST{3};
0056
0057 if largescale
0058 mType = 'noiselets';
0059
0060
0061
0062
0063
0064
0065 N = (256)^2;
0066 M = round(N/R);
0067
0068 T = N;
0069 str0 = sprintf('mType-%s, sType-%s, SNR = %d, (N,M) = %d, %d, rwt_mode-%d, lambda%3.4g.', mType, sType, SNR, N, M, rwt_mode, lambda);
0070 disp(str0);
0071 else
0072 mType = 'randn';
0073 sType = 'HeaviSine';
0074 N = 512;
0075 M = round(N/2);
0076 T = round(M/3);
0077 str0 = sprintf('mType-%s, sType-%s, SNR = %d, (N,M,T) = %d, %d, %d, rwt_mode-%d, lambda%3.4g.', mType, sType, SNR, N, M, T, rwt_mode, lambda);
0078 disp(str0);
0079 end
0080
0081
0082 delx_mode = 'mil';
0083
0084
0085 maxsim = 1;
0086 script_simulation_adpWBPDN