Mercurial > hg > smallbox
diff util/SMALL_AudioDeNoiseResult.m @ 161:f42aa8bcb82f ivand_dev
debug and clean the SMALLbox Problems code
author | Ivan Damnjanovic lnx <ivan.damnjanovic@eecs.qmul.ac.uk> |
---|---|
date | Wed, 31 Aug 2011 12:02:19 +0100 |
parents | 8e660fd14774 |
children |
line wrap: on
line diff
--- a/util/SMALL_AudioDeNoiseResult.m Mon Aug 22 11:46:35 2011 +0100 +++ b/util/SMALL_AudioDeNoiseResult.m Wed Aug 31 12:02:19 2011 +0100 @@ -2,7 +2,7 @@ %% Plots the results of Audio denoising experiment - underconstruction % Centre for Digital Music, Queen Mary, University of London. -% This file copyright 2009 Ivan Damnjanovic. +% This file copyright 2011 Ivan Damnjanovic. % % This program is free software; you can redistribute it and/or % modify it under the terms of the GNU General Public License as @@ -13,7 +13,7 @@ fMain=figure('Name', sprintf('File %s (training set size- %d, sigma - %d)',SMALL.Problem.name, SMALL.Problem.n, SMALL.Problem.sigma)); m=size(SMALL.solver,2); -maxval=SMALL.Problem.maxval; +maxval=max(SMALL.Problem.Original); au=SMALL.Problem.Original; aunoise=SMALL.Problem.Noisy; @@ -25,7 +25,7 @@ for i=1:m params=SMALL.solver(i).param; - sWav=subplot(2, m, m+i, 'Parent', fMain); plot(SMALL.solver(i).reconstructed.Image/maxval, 'Parent', sWav); + sWav=subplot(2, m, m+i, 'Parent', fMain); plot(SMALL.solver(i).reconstructed.audio/maxval, 'Parent', sWav); title(sprintf('%s Denoised audio, PSNR: %.2fdB', SMALL.DL(i).name, SMALL.solver(i).reconstructed.psnr),'Parent', sWav ); if strcmpi(SMALL.DL(i).name,'ksvds') D = kron(SMALL.Problem.basedict{2},SMALL.Problem.basedict{1})*SMALL.DL(i).D;