comparison Problems/Pierre_Problem.m @ 122:38d4fbf6ae24 sup_158_IMG_Processing_toolbox_

Pierre_Problem.m - IMP toolbox dependencies removed
author Ivan Damnjanovic lnx <ivan.damnjanovic@eecs.qmul.ac.uk>
date Wed, 25 May 2011 14:15:57 +0100
parents 1b63e6a201a2
children 002ec1b2ceff
comparison
equal deleted inserted replaced
120:5a20f4936159 122:38d4fbf6ae24
89 blocksize = ones(1,p)*blocksize; 89 blocksize = ones(1,p)*blocksize;
90 end 90 end
91 %% 91 %%
92 %% create dictionary data %% 92 %% create dictionary data %%
93 93
94 S=im2col(src,blocksize,'sliding'); 94 S=im2colstep(src,blocksize);
95 95
96 for j= 1:size(S,2) 96 for j= 1:size(S,2)
97 S(:,j)=S(:,j)./norm(S(:,j)); 97 S(:,j)=S(:,j)./norm(S(:,j));
98 end 98 end
99 99
100 %% create measurement matrix %% 100 %% create measurement matrix %%
101 101
102 T=im2col(trg,blocksize, 'distinct'); 102 T=im2colstep(trg,blocksize, blocksize);
103 103
104 %% output structure %% 104 %% output structure %%
105 105
106 data.imageSrc = src; 106 data.imageSrc = src;
107 data.imageTrg = trg; 107 data.imageTrg = trg;