Mercurial > hg > smallbox
comparison Problems/generateImageDenoiseProblem.m @ 111:8208316abec6 sup_158_IMG_Processing_toolbox_
create a branch for removing image processing toolbox dependencies
author | Ivan Damnjanovic lnx <ivan.damnjanovic@eecs.qmul.ac.uk> |
---|---|
date | Tue, 24 May 2011 12:15:20 +0100 |
parents | 55faa9b5d1ac |
children | 002ec1b2ceff |
comparison
equal
deleted
inserted
replaced
110:850e90bbf4b0 | 111:8208316abec6 |
---|---|
134 blockids = i : min(i+bsize-1,size(X,2)); | 134 blockids = i : min(i+bsize-1,size(X,2)); |
135 X(:,blockids) = remove_dc(X(:,blockids),'columns'); | 135 X(:,blockids) = remove_dc(X(:,blockids),'columns'); |
136 end | 136 end |
137 | 137 |
138 % Noisy image blocks | 138 % Noisy image blocks |
139 xcol=im2col(x,blocksize,'sliding'); | 139 xcol=im2colstep(x,blocksize); |
140 [b1, dc] = remove_dc(xcol,'columns'); | 140 [b1, dc] = remove_dc(xcol,'columns'); |
141 | 141 |
142 %% output structure %% | 142 %% output structure %% |
143 | 143 |
144 data.Original = im; | 144 data.Original = im; |