Mercurial > hg > smallbox
diff util/Pierre_reconstruct.m @ 127:6f78b069e541
Merge from branch "ivand_dev" after issues 158, 159, 163 resolved
author | Ivan Damnjanovic lnx <ivan.damnjanovic@eecs.qmul.ac.uk> |
---|---|
date | Wed, 25 May 2011 15:34:37 +0100 |
parents | 002ec1b2ceff |
children |
line wrap: on
line diff
--- a/util/Pierre_reconstruct.m Mon May 23 12:26:33 2011 +0100 +++ b/util/Pierre_reconstruct.m Wed May 25 15:34:37 2011 +0100 @@ -1,5 +1,11 @@ function reconstructed=Pierre_reconstruct(y, Problem) -%%% Pierre Villars Example - reconstruction function +%% Pierre Villars Example - reconstruction function +% +% using sparse representation y in dictionary Problem.A reconstruct the +% patches from the target image +% This example is based on the experiment suggested by Professor Pierre +% Vandergheynst on the SMALL meeting in Villars. + % % Centre for Digital Music, Queen Mary, University of London. % This file copyright 2009 Ivan Damnjanovic. @@ -10,17 +16,12 @@ % License, or (at your option) any later version. See the file % COPYING included with this distribution for more information. % -% This example is based on the experiment suggested by Professor Pierre -% Vandergheynst on the SMALL meeting in Villars. - -% using sparse representation y in dictionary Problem.A reconstruct the -% patches from the target image - +%% imout=Problem.A*y; % combine the patches into reconstructed image -im=col2im(imout,Problem.blocksize,size(Problem.imageTrg),'disctint'); +im=col2imstep(imout,size(Problem.imageTrg),Problem.blocksize,Problem.blocksize); % bound the pixel values to [0,255] range im(im<0)=0;