comparison examples/Image Denoising/SMALL_ImgDenoise_DL_test_KSVDvsSPAMS.m @ 161:f42aa8bcb82f ivand_dev

debug and clean the SMALLbox Problems code
author Ivan Damnjanovic lnx <ivan.damnjanovic@eecs.qmul.ac.uk>
date Wed, 31 Aug 2011 12:02:19 +0100
parents 8e660fd14774
children 9c418bea7f6a
comparison
equal deleted inserted replaced
155:b14209313ba4 161:f42aa8bcb82f
95 % (backward compatiblity with SPARCO: solver structure communicate 95 % (backward compatiblity with SPARCO: solver structure communicate
96 % only with Problem structure, ie no direct communication between DL and 96 % only with Problem structure, ie no direct communication between DL and
97 % solver structures) 97 % solver structures)
98 98
99 SMALL.Problem.A = SMALL.DL(1).D; 99 SMALL.Problem.A = SMALL.DL(1).D;
100 SMALL.Problem.reconstruct = @(x) ImgDenoise_reconstruct(x, SMALL.Problem); 100 SMALL.Problem.reconstruct = @(x) ImageDenoise_reconstruct(x, SMALL.Problem);
101 101
102 %% 102 %%
103 % Initialising solver structure 103 % Initialising solver structure
104 % Setting solver structure fields (toolbox, name, param, solution, 104 % Setting solver structure fields (toolbox, name, param, solution,
105 % reconstructed and time) to zero values 105 % reconstructed and time) to zero values
173 SMALL.Problem.basedict{2} = SMALL.DL(2).param.basedict{2}; 173 SMALL.Problem.basedict{2} = SMALL.DL(2).param.basedict{2};
174 174
175 % Setting up reconstruction function 175 % Setting up reconstruction function
176 176
177 SparseDict=1; 177 SparseDict=1;
178 SMALL.Problem.reconstruct = @(x) ImgDenoise_reconstruct(x, SMALL.Problem, SparseDict); 178 SMALL.Problem.reconstruct = @(x) ImageDenoise_reconstruct(x, SMALL.Problem, SparseDict);
179 179
180 % Initialising solver structure 180 % Initialising solver structure
181 % Setting solver structure fields (toolbox, name, param, solution, 181 % Setting solver structure fields (toolbox, name, param, solution,
182 % reconstructed and time) to zero values 182 % reconstructed and time) to zero values
183 183
235 235
236 SMALL.Problem.A = SMALL.DL(3).D; 236 SMALL.Problem.A = SMALL.DL(3).D;
237 237
238 % Setting up reconstruction function 238 % Setting up reconstruction function
239 239
240 SMALL.Problem.reconstruct = @(x) ImgDenoise_reconstruct(x, SMALL.Problem); 240 SMALL.Problem.reconstruct = @(x) ImageDenoise_reconstruct(x, SMALL.Problem);
241 241
242 % Initialising solver structure 242 % Initialising solver structure
243 % Setting solver structure fields (toolbox, name, param, solution, 243 % Setting solver structure fields (toolbox, name, param, solution,
244 % reconstructed and time) to zero values 244 % reconstructed and time) to zero values
245 245