Mercurial > hg > smallbox
comparison examples/Image Denoising/SMALL_ImgDenoise_DL_test_KSVDvsRLSDLA.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 |
---|---|
97 % (backward compatiblity with SPARCO: solver structure communicate | 97 % (backward compatiblity with SPARCO: solver structure communicate |
98 % only with Problem structure, ie no direct communication between DL and | 98 % only with Problem structure, ie no direct communication between DL and |
99 % solver structures) | 99 % solver structures) |
100 | 100 |
101 SMALL.Problem.A = SMALL.DL(1).D; | 101 SMALL.Problem.A = SMALL.DL(1).D; |
102 SMALL.Problem.reconstruct = @(x) ImgDenoise_reconstruct(x, SMALL.Problem); | 102 SMALL.Problem.reconstruct = @(x) ImageDenoise_reconstruct(x, SMALL.Problem); |
103 | 103 |
104 %% | 104 %% |
105 % Initialising solver structure | 105 % Initialising solver structure |
106 % Setting solver structure fields (toolbox, name, param, solution, | 106 % Setting solver structure fields (toolbox, name, param, solution, |
107 % reconstructed and time) to zero values | 107 % reconstructed and time) to zero values |
138 SMALL.DL(2).D=SMALL.Problem.initdict; | 138 SMALL.DL(2).D=SMALL.Problem.initdict; |
139 | 139 |
140 % Setting up reconstruction function | 140 % Setting up reconstruction function |
141 | 141 |
142 SparseDict=0; | 142 SparseDict=0; |
143 SMALL.Problem.reconstruct = @(x) ImgDenoise_reconstruct(x, SMALL.Problem, SparseDict); | 143 SMALL.Problem.reconstruct = @(x) ImageDenoise_reconstruct(x, SMALL.Problem, SparseDict); |
144 | 144 |
145 % Initialising solver structure | 145 % Initialising solver structure |
146 % Setting solver structure fields (toolbox, name, param, solution, | 146 % Setting solver structure fields (toolbox, name, param, solution, |
147 % reconstructed and time) to zero values | 147 % reconstructed and time) to zero values |
148 | 148 |
215 % Initialising solver structure | 215 % Initialising solver structure |
216 % Setting solver structure fields (toolbox, name, param, solution, | 216 % Setting solver structure fields (toolbox, name, param, solution, |
217 % reconstructed and time) to zero values | 217 % reconstructed and time) to zero values |
218 | 218 |
219 SMALL.Problem.A = SMALL.DL(3).D; | 219 SMALL.Problem.A = SMALL.DL(3).D; |
220 SMALL.Problem.reconstruct = @(x) ImgDenoise_reconstruct(x, SMALL.Problem); | 220 SMALL.Problem.reconstruct = @(x) ImageDenoise_reconstruct(x, SMALL.Problem); |
221 | 221 |
222 SMALL.solver(3)=SMALL_init_solver; | 222 SMALL.solver(3)=SMALL_init_solver; |
223 | 223 |
224 % Defining the parameters needed for image denoising | 224 % Defining the parameters needed for image denoising |
225 | 225 |