comparison examples/Image Denoising/SMALL_ImgDenoise_DL_test_KSVDvsRLSDLAvsTwoStepMOD.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 af307f247ac7
children 855025f4c779
comparison
equal deleted inserted replaced
155:b14209313ba4 161:f42aa8bcb82f
100 % (backward compatiblity with SPARCO: solver structure communicate 100 % (backward compatiblity with SPARCO: solver structure communicate
101 % only with Problem structure, ie no direct communication between DL and 101 % only with Problem structure, ie no direct communication between DL and
102 % solver structures) 102 % solver structures)
103 103
104 SMALL.Problem.A = SMALL.DL(1).D; 104 SMALL.Problem.A = SMALL.DL(1).D;
105 SMALL.Problem.reconstruct = @(x) ImgDenoise_reconstruct(x, SMALL.Problem); 105 SMALL.Problem.reconstruct = @(x) ImageDenoise_reconstruct(x, SMALL.Problem);
106 106
107 %% 107 %%
108 % Initialising solver structure 108 % Initialising solver structure
109 % Setting solver structure fields (toolbox, name, param, solution, 109 % Setting solver structure fields (toolbox, name, param, solution,
110 % reconstructed and time) to zero values 110 % reconstructed and time) to zero values
181 % (backward compatiblity with SPARCO: solver structure communicate 181 % (backward compatiblity with SPARCO: solver structure communicate
182 % only with Problem structure, ie no direct communication between DL and 182 % only with Problem structure, ie no direct communication between DL and
183 % solver structures) 183 % solver structures)
184 184
185 SMALL.Problem.A = SMALL.DL(2).D; 185 SMALL.Problem.A = SMALL.DL(2).D;
186 SMALL.Problem.reconstruct = @(x) ImgDenoise_reconstruct(x, SMALL.Problem); 186 SMALL.Problem.reconstruct = @(x) ImageDenoise_reconstruct(x, SMALL.Problem);
187 187
188 % Denoising the image - find the sparse solution in the learned 188 % Denoising the image - find the sparse solution in the learned
189 % dictionary for all patches in the image and the end it uses 189 % dictionary for all patches in the image and the end it uses
190 % reconstruction function to reconstruct the patches and put them into a 190 % reconstruction function to reconstruct the patches and put them into a
191 % denoised image 191 % denoised image
245 % Initialising solver structure 245 % Initialising solver structure
246 % Setting solver structure fields (toolbox, name, param, solution, 246 % Setting solver structure fields (toolbox, name, param, solution,
247 % reconstructed and time) to zero values 247 % reconstructed and time) to zero values
248 248
249 SMALL.Problem.A = SMALL.DL(3).D; 249 SMALL.Problem.A = SMALL.DL(3).D;
250 SMALL.Problem.reconstruct = @(x) ImgDenoise_reconstruct(x, SMALL.Problem); 250 SMALL.Problem.reconstruct = @(x) ImageDenoise_reconstruct(x, SMALL.Problem);
251 251
252 SMALL.solver(3)=SMALL_init_solver; 252 SMALL.solver(3)=SMALL_init_solver;
253 253
254 % Defining the parameters needed for image denoising 254 % Defining the parameters needed for image denoising
255 255