diff Problems/AudioDeclipping_reconstruct.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 31d2864dfdd4
children
line wrap: on
line diff
--- a/Problems/AudioDeclipping_reconstruct.m	Mon Aug 22 11:46:35 2011 +0100
+++ b/Problems/AudioDeclipping_reconstruct.m	Wed Aug 31 12:02:19 2011 +0100
@@ -1,8 +1,15 @@
-function reconstructed=AudioDeclipping_reconstruct(y, Problem, SparseDict)
+function reconstructed = AudioDeclipping_reconstruct(y, Problem)
 %%  Audio declipping Problem reconstruction function
 %   
 %   This reconstruction function is using sparse representation y 
 %   in dictionary Problem.A to reconstruct declipped audio.
+%   The output structure has following fields:
+%       audioAllSamples  - signal with all samples taken from reconstructed
+%                          signal
+%       audioOnlyClipped - only clipped samples are reconstructed,
+%                          others are taken from original signal
+%       snrAll           - psnr of whole signal
+%       snrMiss          - psnr of the reconstructed clipped samples
 %
 %   [1] I. Damnjanovic, M. E. P. Davies, and M. P. Plumbley "SMALLbox - an 
 %   evaluation framework for sparse representations and dictionary