comparison Problems/ImgDenoise_reconstruct.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 5a20f4936159
children
comparison
equal deleted inserted replaced
126:db5a7fe1a404 128:8e660fd14774
1 function reconstructed=ImgDenoise_reconstruct(y, Problem, SparseDict) 1 function reconstructed=ImgDenoise_reconstruct(y, Problem, SparseDict)
2 %%% Pierre Villars Example - reconstruction function 2 %% Image Denoising Problem reconstruction function
3 %
4 % This reconstruction function is using sparse representation y
5 % in dictionary Problem.A to reconstruct the patches of the denoised
6 % image.
7
3 % 8 %
4 % Centre for Digital Music, Queen Mary, University of London. 9 % Centre for Digital Music, Queen Mary, University of London.
5 % This file copyright 2009 Ivan Damnjanovic. 10 % This file copyright 2009 Ivan Damnjanovic.
6 % 11 %
7 % This program is free software; you can redistribute it and/or 12 % This program is free software; you can redistribute it and/or
8 % modify it under the terms of the GNU General Public License as 13 % modify it under the terms of the GNU General Public License as
9 % published by the Free Software Foundation; either version 2 of the 14 % published by the Free Software Foundation; either version 2 of the
10 % License, or (at your option) any later version. See the file 15 % License, or (at your option) any later version. See the file
11 % COPYING included with this distribution for more information. 16 % COPYING included with this distribution for more information.
12 % 17 %%
13 % This example is based on the experiment suggested by Professor Pierre
14 % Vandergheynst on the SMALL meeting in Villars.
15 18
16 % using sparse representation y in dictionary Problem.A reconstruct the
17 % patches from the target image
18 19
19 % stepsize % 20 % stepsize %
20 if (isfield(Problem,'stepsize')) 21 if (isfield(Problem,'stepsize'))
21 stepsize = Problem.stepsize; 22 stepsize = Problem.stepsize;
22 if (numel(stepsize)==1) 23 if (numel(stepsize)==1)