changeset 124:436e6c044099 sup_158_IMG_Processing_toolbox_

Pierre_Villars_Example.m - removed IMP toolbox dependencies
author Ivan Damnjanovic lnx <ivan.damnjanovic@eecs.qmul.ac.uk>
date Wed, 25 May 2011 15:20:04 +0100
parents 0e2959c83824
children 002ec1b2ceff
files examples/Pierre Villars/Pierre_Villars_Example.m
diffstat 1 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/examples/Pierre Villars/Pierre_Villars_Example.m	Wed May 25 14:59:59 2011 +0100
+++ b/examples/Pierre Villars/Pierre_Villars_Example.m	Wed May 25 15:20:04 2011 +0100
@@ -28,10 +28,10 @@
 %   Show original image and image that is used as a dictionary
 figure('Name', 'Original and Dictionary Image');
 
-subplot(1,2,1); imshow(SMALL.Problem.imageTrg/SMALL.Problem.maxval);
-title('Original Image');
-subplot(1,2,2); imshow(SMALL.Problem.imageSrc/SMALL.Problem.maxval);
-title('Dictionary image:');
+subplot(1,2,1); imagesc(SMALL.Problem.imageTrg/SMALL.Problem.maxval);
+title('Original Image');colormap(gray);axis off; axis image;
+subplot(1,2,2); imagesc(SMALL.Problem.imageSrc/SMALL.Problem.maxval);
+title('Dictionary image:');colormap(gray);axis off; axis image;
 
 %   Using ten different dictionary sizes. First dictionary will contain all
 %   patches from the source image and last one will have only
@@ -80,10 +80,10 @@
     %%  show reconstructed image %%
     figure('Name', sprintf('dictsize=%d', dictsize(1,i)));
     
-    imshow(SMALL.solver(i).reconstructed.image/SMALL.Problem.maxval);
+    imagesc(SMALL.solver(i).reconstructed.image/SMALL.Problem.maxval);
     title(sprintf('Reconstructed image, PSNR: %.2f dB in %.2f s',...
         SMALL.solver(i).reconstructed.psnr, SMALL.solver(i).time ));
-    
+    colormap(gray);axis off; axis image;
     
 end