diff util/SMALL_ImgDeNoiseResult.m @ 78:f69ae88b8be5

added Rice Wavelet Toolbox with my modification, so it can be compiled on newer systems.
author Ivan Damnjanovic lnx <ivan.damnjanovic@eecs.qmul.ac.uk>
date Fri, 25 Mar 2011 15:27:33 +0000
parents ea9ef4bd7102
children 921f9931c84f
line wrap: on
line diff
--- a/util/SMALL_ImgDeNoiseResult.m	Wed Mar 23 17:08:55 2011 +0000
+++ b/util/SMALL_ImgDeNoiseResult.m	Fri Mar 25 15:27:33 2011 +0000
@@ -21,17 +21,17 @@
 im=SMALL.Problem.Original;
 imnoise=SMALL.Problem.Noisy;
 
-subplot(2, m, 1); imshow(im/maxval);
+subplot(2, m, 1); imagesc(im/maxval);colormap(gray);axis off; axis image;        % Set aspect ratio to obtain square pixels
 title('Original image');
 
-subplot(2,m,m+1); imshow(imnoise/maxval);
+subplot(2,m,m+1); imagesc(imnoise/maxval);axis off; axis image; 
 title(sprintf('Noisy image, PSNR = %.2fdB', SMALL.Problem.noisy_psnr ));
 
 for i=2:m
     
-    subplot(2, m, i); imagesc(SMALL.solver(i-1).reconstructed.Image/maxval);colormap(gray);
+    subplot(2, m, i); imagesc(SMALL.solver(i-1).reconstructed.Image/maxval);axis off; axis image; 
     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 ));
+        SMALL.DL(i-1).name, SMALL.solver(i-1).reconstructed.psnr, SMALL.solver(i-1).time ),'Interpreter','none');
     if strcmpi(SMALL.DL(i-1).name,'ksvds')
         D = kron(SMALL.Problem.basedict{2},SMALL.Problem.basedict{1})*SMALL.DL(i-1).D;
     else
@@ -40,8 +40,8 @@
     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);
+    subplot(2,m,m+i);imagesc(dictimg);axis off; axis image; 
     title(sprintf('%s dictionary in %.2f s',...
-        SMALL.DL(i-1).name, SMALL.DL(i-1).time));
+        SMALL.DL(i-1).name, SMALL.DL(i-1).time),'Interpreter','none');
     
 end
\ No newline at end of file