Mercurial > hg > smallbox
comparison examples/MajorizationMinimization tests/SMALL_ImgDenoise_DL_test_KSVDvsMajorizationMinimization.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 | b14209313ba4 |
children | 9c418bea7f6a |
comparison
equal
deleted
inserted
replaced
155:b14209313ba4 | 161:f42aa8bcb82f |
---|---|
101 % (backward compatiblity with SPARCO: solver structure communicate | 101 % (backward compatiblity with SPARCO: solver structure communicate |
102 % only with Problem structure, ie no direct communication between DL and | 102 % only with Problem structure, ie no direct communication between DL and |
103 % solver structures) | 103 % solver structures) |
104 | 104 |
105 SMALL.Problem.A = SMALL.DL(1).D; | 105 SMALL.Problem.A = SMALL.DL(1).D; |
106 SMALL.Problem.reconstruct = @(x) ImgDenoise_reconstruct(x, SMALL.Problem); | 106 SMALL.Problem.reconstruct = @(x) ImageDenoise_reconstruct(x, SMALL.Problem); |
107 | 107 |
108 %% | 108 %% |
109 % Initialising solver structure | 109 % Initialising solver structure |
110 % Setting solver structure fields (toolbox, name, param, solution, | 110 % Setting solver structure fields (toolbox, name, param, solution, |
111 % reconstructed and time) to zero values | 111 % reconstructed and time) to zero values |
182 % (backward compatiblity with SPARCO: solver structure communicate | 182 % (backward compatiblity with SPARCO: solver structure communicate |
183 % only with Problem structure, ie no direct communication between DL and | 183 % only with Problem structure, ie no direct communication between DL and |
184 % solver structures) | 184 % solver structures) |
185 | 185 |
186 SMALL.Problem.A = SMALL.DL(2).D; | 186 SMALL.Problem.A = SMALL.DL(2).D; |
187 SMALL.Problem.reconstruct = @(x) ImgDenoise_reconstruct(x, SMALL.Problem); | 187 SMALL.Problem.reconstruct = @(x) ImageDenoise_reconstruct(x, SMALL.Problem); |
188 | 188 |
189 % Denoising the image - find the sparse solution in the learned | 189 % Denoising the image - find the sparse solution in the learned |
190 % dictionary for all patches in the image and the end it uses | 190 % dictionary for all patches in the image and the end it uses |
191 % reconstruction function to reconstruct the patches and put them into a | 191 % reconstruction function to reconstruct the patches and put them into a |
192 % denoised image | 192 % denoised image |