# HG changeset patch # User Ivan Damnjanovic lnx # Date 1306333204 -3600 # Node ID 436e6c04409925be734867b8bc2028889aab3571 # Parent 0e2959c83824838bdba8fc0053c7d055d2ba8998 Pierre_Villars_Example.m - removed IMP toolbox dependencies diff -r 0e2959c83824 -r 436e6c044099 examples/Pierre Villars/Pierre_Villars_Example.m --- 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