changeset 35:ea9ef4bd7102

(none)
author idamnjanovic
date Mon, 14 Mar 2011 15:32:30 +0000
parents 9ff69e8e049f
children e6191f5bb21b
files util/SMALL_ImgDeNoiseResult.m
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/util/SMALL_ImgDeNoiseResult.m	Mon Mar 14 14:15:08 2011 +0000
+++ b/util/SMALL_ImgDeNoiseResult.m	Mon Mar 14 15:32:30 2011 +0000
@@ -25,10 +25,10 @@
 title('Original image');
 
 subplot(2,m,m+1); imshow(imnoise/maxval);
-title(sprintf('Noisy image, PSNR = %.2fdB', 20*log10(maxval * sqrt(numel(im)) / norm(im(:)-imnoise(:))) ));
+title(sprintf('Noisy image, PSNR = %.2fdB', SMALL.Problem.noisy_psnr ));
 
 for i=2:m
-    params=SMALL.solver(i-1).param;
+    
     subplot(2, m, i); imagesc(SMALL.solver(i-1).reconstructed.Image/maxval);colormap(gray);
     title(sprintf('%s Denoised image, PSNR: %.2f dB in %.2f s',...
         SMALL.DL(i-1).name, SMALL.solver(i-1).reconstructed.psnr, SMALL.solver(i-1).time ));
@@ -37,7 +37,7 @@
     else
         D = SMALL.DL(i-1).D;
     end
-    dictimg = showdict(D,params.blocksize,...
+    dictimg = showdict(D,SMALL.Problem.blocksize,...
         round(sqrt(size(D,2))),round(sqrt(size(D,2))),'lines','highcontrast');
     
     subplot(2,m,m+i);imagesc(dictimg);colormap(gray);