comparison examples/Pierre Villars/Pierre_Villars_Example.m @ 224:fd0b5d36f6ad danieleb

Updated the contents of this branch with the contents of the default branch.
author luisf <luis.figueira@eecs.qmul.ac.uk>
date Thu, 12 Apr 2012 13:52:28 +0100
parents 8b3c71bb44eb
children
comparison
equal deleted inserted replaced
196:82b0d3f982cb 224:fd0b5d36f6ad
17 % License, or (at your option) any later version. See the file 17 % License, or (at your option) any later version. See the file
18 % COPYING included with this distribution for more information. 18 % COPYING included with this distribution for more information.
19 % 19 %
20 %% 20 %%
21 21
22 clear all; 22 clear;
23 23
24 % Defining the Problem structure 24 % Defining the Problem structure
25 25
26 SMALL.Problem = generatePierreProblem(); 26 SMALL.Problem = generatePierreProblem();
27 27
42 dictsize=zeros(1,n); 42 dictsize=zeros(1,n);
43 time = zeros(1,n); 43 time = zeros(1,n);
44 psnr = zeros(1,n); 44 psnr = zeros(1,n);
45 45
46 for i=1:n 46 for i=1:n
47
48
49 % Set reconstruction function 47 % Set reconstruction function
50 48
51 SMALL.Problem.reconstruct=@(x) Pierre_reconstruct(x, SMALL.Problem); 49 SMALL.Problem.reconstruct=@(x) Pierre_reconstruct(x, SMALL.Problem);
52
53
54 50
55 % Defining the parameters sparse representation 51 % Defining the parameters sparse representation
56 SMALL.solver(i)=SMALL_init_solver; 52 SMALL.solver(i)=SMALL_init_solver;
57 SMALL.solver(i).toolbox='SMALL'; 53 SMALL.solver(i).toolbox='SMALL';
58 SMALL.solver(i).name='SMALL_MP'; 54 SMALL.solver(i).name='SMALL_MP';