Mercurial > hg > smallbox
comparison examples/Image Denoising/SMALL_ImgDenoise_DL_test_TwoStep_KSVD_MOD_OLS_Mailhe.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 | 9c418bea7f6a |
comparison
equal
deleted
inserted
replaced
155:b14209313ba4 | 161:f42aa8bcb82f |
---|---|
109 % (backward compatiblity with SPARCO: solver structure communicate | 109 % (backward compatiblity with SPARCO: solver structure communicate |
110 % only with Problem structure, ie no direct communication between DL and | 110 % only with Problem structure, ie no direct communication between DL and |
111 % solver structures) | 111 % solver structures) |
112 | 112 |
113 SMALL.Problem.A = SMALL.DL(1).D; | 113 SMALL.Problem.A = SMALL.DL(1).D; |
114 SMALL.Problem.reconstruct = @(x) ImgDenoise_reconstruct(x, SMALL.Problem); | 114 SMALL.Problem.reconstruct = @(x) ImageDenoise_reconstruct(x, SMALL.Problem); |
115 | 115 |
116 % Denoising the image - find the sparse solution in the learned | 116 % Denoising the image - find the sparse solution in the learned |
117 % dictionary for all patches in the image and the end it uses | 117 % dictionary for all patches in the image and the end it uses |
118 % reconstruction function to reconstruct the patches and put them into a | 118 % reconstruction function to reconstruct the patches and put them into a |
119 % denoised image | 119 % denoised image |
168 % (backward compatiblity with SPARCO: solver structure communicate | 168 % (backward compatiblity with SPARCO: solver structure communicate |
169 % only with Problem structure, ie no direct communication between DL and | 169 % only with Problem structure, ie no direct communication between DL and |
170 % solver structures) | 170 % solver structures) |
171 | 171 |
172 SMALL.Problem.A = SMALL.DL(2).D; | 172 SMALL.Problem.A = SMALL.DL(2).D; |
173 SMALL.Problem.reconstruct = @(x) ImgDenoise_reconstruct(x, SMALL.Problem); | 173 SMALL.Problem.reconstruct = @(x) ImageDenoise_reconstruct(x, SMALL.Problem); |
174 | 174 |
175 % Denoising the image - find the sparse solution in the learned | 175 % Denoising the image - find the sparse solution in the learned |
176 % dictionary for all patches in the image and the end it uses | 176 % dictionary for all patches in the image and the end it uses |
177 % reconstruction function to reconstruct the patches and put them into a | 177 % reconstruction function to reconstruct the patches and put them into a |
178 % denoised image | 178 % denoised image |
228 % (backward compatiblity with SPARCO: solver structure communicate | 228 % (backward compatiblity with SPARCO: solver structure communicate |
229 % only with Problem structure, ie no direct communication between DL and | 229 % only with Problem structure, ie no direct communication between DL and |
230 % solver structures) | 230 % solver structures) |
231 | 231 |
232 SMALL.Problem.A = SMALL.DL(3).D; | 232 SMALL.Problem.A = SMALL.DL(3).D; |
233 SMALL.Problem.reconstruct = @(x) ImgDenoise_reconstruct(x, SMALL.Problem); | 233 SMALL.Problem.reconstruct = @(x) ImageDenoise_reconstruct(x, SMALL.Problem); |
234 | 234 |
235 % Denoising the image - find the sparse solution in the learned | 235 % Denoising the image - find the sparse solution in the learned |
236 % dictionary for all patches in the image and the end it uses | 236 % dictionary for all patches in the image and the end it uses |
237 % reconstruction function to reconstruct the patches and put them into a | 237 % reconstruction function to reconstruct the patches and put them into a |
238 % denoised image | 238 % denoised image |
288 % (backward compatiblity with SPARCO: solver structure communicate | 288 % (backward compatiblity with SPARCO: solver structure communicate |
289 % only with Problem structure, ie no direct communication between DL and | 289 % only with Problem structure, ie no direct communication between DL and |
290 % solver structures) | 290 % solver structures) |
291 | 291 |
292 SMALL.Problem.A = SMALL.DL(4).D; | 292 SMALL.Problem.A = SMALL.DL(4).D; |
293 SMALL.Problem.reconstruct = @(x) ImgDenoise_reconstruct(x, SMALL.Problem); | 293 SMALL.Problem.reconstruct = @(x) ImageDenoise_reconstruct(x, SMALL.Problem); |
294 | 294 |
295 % Denoising the image - find the sparse solution in the learned | 295 % Denoising the image - find the sparse solution in the learned |
296 % dictionary for all patches in the image and the end it uses | 296 % dictionary for all patches in the image and the end it uses |
297 % reconstruction function to reconstruct the patches and put them into a | 297 % reconstruction function to reconstruct the patches and put them into a |
298 % denoised image | 298 % denoised image |