Mercurial > hg > smallbox
comparison util/Pierre_reconstruct.m @ 123:0e2959c83824 sup_158_IMG_Processing_toolbox_
Pierre_reconstruct.m - removed IMP toolbox dependencies
author | Ivan Damnjanovic lnx <ivan.damnjanovic@eecs.qmul.ac.uk> |
---|---|
date | Wed, 25 May 2011 14:59:59 +0100 |
parents | fc395272d53e |
children | 002ec1b2ceff |
comparison
equal
deleted
inserted
replaced
122:38d4fbf6ae24 | 123:0e2959c83824 |
---|---|
18 | 18 |
19 imout=Problem.A*y; | 19 imout=Problem.A*y; |
20 | 20 |
21 % combine the patches into reconstructed image | 21 % combine the patches into reconstructed image |
22 | 22 |
23 im=col2im(imout,Problem.blocksize,size(Problem.imageTrg),'disctint'); | 23 im=col2imstep(imout,size(Problem.imageTrg),Problem.blocksize,Problem.blocksize); |
24 | 24 |
25 % bound the pixel values to [0,255] range | 25 % bound the pixel values to [0,255] range |
26 im(im<0)=0; | 26 im(im<0)=0; |
27 im(im>255)=255; | 27 im(im>255)=255; |
28 | 28 |