diff examples/Pierre Villars/Pierre_Villars_Example.m @ 126:db5a7fe1a404 ivand_dev

Merge from branch "sup_158_IMG_Processing_toolbox_"
author Ivan Damnjanovic lnx <ivan.damnjanovic@eecs.qmul.ac.uk>
date Wed, 25 May 2011 15:30:34 +0100
parents 436e6c044099
children 8e660fd14774
line wrap: on
line diff
--- a/examples/Pierre Villars/Pierre_Villars_Example.m	Wed May 25 13:33:47 2011 +0100
+++ b/examples/Pierre Villars/Pierre_Villars_Example.m	Wed May 25 15:30:34 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