Mercurial > hg > smallbox
comparison Problems/generatePierreProblem.m @ 231:b1db9e090542 luisf_dev
fixed comments
author | luisf <luis.figueira@eecs.qmul.ac.uk> |
---|---|
date | Wed, 18 Apr 2012 18:12:15 +0100 |
parents | 8768cefe5753 |
children |
comparison
equal
deleted
inserted
replaced
230:8768cefe5753 | 231:b1db9e090542 |
---|---|
86 | 86 |
87 % blocksize % | 87 % blocksize % |
88 if (numel(blocksize)==1) | 88 if (numel(blocksize)==1) |
89 blocksize = ones(1,p)*blocksize; | 89 blocksize = ones(1,p)*blocksize; |
90 end | 90 end |
91 %% | |
92 %% create dictionary data %% | |
93 | 91 |
92 %% create dictionary data | |
94 S=im2col(src,blocksize,'sliding'); | 93 S=im2col(src,blocksize,'sliding'); |
95 | |
96 | 94 |
97 for j= 1:size(S,2) | 95 for j= 1:size(S,2) |
98 S(:,j)=S(:,j)./norm(S(:,j)); | 96 S(:,j)=S(:,j)./norm(S(:,j)); |
99 end | 97 end |
100 | 98 |
101 %% create measurement matrix %% | 99 %% observed patches matrix |
102 | 100 % that are going to be decomposed on the dictionary |
103 T=im2col(trg,blocksize, 'distinct'); | 101 T=im2col(trg,blocksize, 'distinct'); |
104 | 102 |
105 %% output structure %% | 103 %% output structure %% |
106 | 104 |
107 data.imageSrc = src; | 105 data.imageSrc = src; |