Mercurial > hg > smallbox
comparison Problems/generateAudioDeclippingProblem.m @ 137:9207d56c5547 ivand_dev
New ompbox in utils for testing purposes
author | Ivan Damnjanovic lnx <ivan.damnjanovic@eecs.qmul.ac.uk> |
---|---|
date | Thu, 21 Jul 2011 14:07:41 +0100 |
parents | 1334d2302dd9 |
children | 31d2864dfdd4 |
comparison
equal
deleted
inserted
replaced
136:1334d2302dd9 | 137:9207d56c5547 |
---|---|
86 | 86 |
87 [problemData, solutionData] = generateDeclippingProblem(x.signal,clippingLevel); | 87 [problemData, solutionData] = generateDeclippingProblem(x.signal,clippingLevel); |
88 | 88 |
89 x_clip = im2colstep(problemData.x,[windowSize 1],[overlap*windowSize 1]); | 89 x_clip = im2colstep(problemData.x,[windowSize 1],[overlap*windowSize 1]); |
90 x_clip= diag(wa(windowSize)) * x_clip; | 90 x_clip= diag(wa(windowSize)) * x_clip; |
91 blkMask=im2colstep(double(~problemData.IMiss),[256 1],[128 1]); | 91 blkMask=im2colstep(double(~problemData.IMiss),[windowSize 1],[overlap*windowSize 1]); |
92 | 92 |
93 %% Building dictionary | 93 %% Building dictionary |
94 if ~exist( 'redundancyFactor', 'var' ) || isempty(redundancyFactor), redundancyFactor = 2; end % Weighting window for dictionary atoms | 94 if ~exist( 'redundancyFactor', 'var' ) || isempty(redundancyFactor), redundancyFactor = 2; end % Weighting window for dictionary atoms |
95 if exist('Dict_fun', 'var')&&~isempty(Dict_fun) | 95 if exist('Dict_fun', 'var')&&~isempty(Dict_fun) |
96 param=struct('N', windowSize, 'redundancyFactor', redundancyFactor, 'wd', wd); | 96 param=struct('N', windowSize, 'redundancyFactor', redundancyFactor, 'wd', wd); |