comparison util/SMALL_denoise.m @ 128:8e660fd14774 ivand_dev

Feature 186
author Ivan Damnjanovic lnx <ivan.damnjanovic@eecs.qmul.ac.uk>
date Mon, 13 Jun 2011 14:55:45 +0100
parents fc395272d53e
children
comparison
equal deleted inserted replaced
126:db5a7fe1a404 128:8e660fd14774
1 function solver=SMALL_denoise(Problem, solver) 1 function solver=SMALL_denoise(Problem, solver)
2 %%% SMALL denoising 2 %% SMALL denoising - old replaced denoising function, would go out in v2.0
3 %
4 % Function gets as input SMALL structure that contains SPARCO problem to
5 % be solved, name of the toolbox and solver, and parameters file for
6 % particular solver.
7 % It is based on omp/omps denoising by Ron Rubenstein (KSVD toolbox)
8 %
9 % Outputs are denoised image, psnr, number of non-zero coeficients and
10 % time spent
11
3 % 12 %
4 % Centre for Digital Music, Queen Mary, University of London. 13 % Centre for Digital Music, Queen Mary, University of London.
5 % This file copyright 2009 Ivan Damnjanovic. 14 % This file copyright 2009 Ivan Damnjanovic.
6 % 15 %
7 % This program is free software; you can redistribute it and/or 16 % This program is free software; you can redistribute it and/or
8 % modify it under the terms of the GNU General Public License as 17 % modify it under the terms of the GNU General Public License as
9 % published by the Free Software Foundation; either version 2 of the 18 % published by the Free Software Foundation; either version 2 of the
10 % License, or (at your option) any later version. See the file 19 % License, or (at your option) any later version. See the file
11 % COPYING included with this distribution for more information. 20 % COPYING included with this distribution for more information.
12 % 21 %
13 % Function gets as input SMALL structure that contains SPARCO problem to 22
14 % be solved, name of the toolbox and solver, and parameters file for
15 % particular solver.
16 % It is based on omp/omps denoising by Ron Rubenstein (KSVD toolbox)
17 %
18 % Outputs are denoised image, psnr, number of non-zero coeficients and
19 % time spent
20 %% 23 %%
21 24
22 %%%%% denoise the signal %%%%% 25 %%%%% denoise the signal %%%%%
23 fprintf('\nStarting %s... \n', solver.name); 26 fprintf('\nStarting %s... \n', solver.name);
24 start=cputime; 27 start=cputime;