Code covered by the BSD License  

Highlights from
DRAGZOOM - Drag and zoom tool

image thumbnail

DRAGZOOM - Drag and zoom tool

by

 

04 Nov 2010 (Updated )

DRAGZOOM allows you to handy interactively manage the axes in figure.

Editor's Notes:

This file was selected as MATLAB Central Pick of the Week

test_subplot_img()
function test_subplot_img()
%TEST_IMG Test Subplot Images with DRAGZOOM

I = imread('cameraman.tif'); % Load image from matlab search path

figure;
subplot(2,2,1); 
imshow(I); title('Original Image');

H = fspecial('motion', 20, 45);
MotionBlur = imfilter(I,H,'replicate');
subplot(2,2,2); 
imshow(MotionBlur); title('Motion Blurred Image');

H = fspecial('disk',10);
blurred = imfilter(I,H,'replicate');
subplot(2,2,3); 
imshow(blurred); title('Blurred Image');

H = fspecial('unsharp');
sharpened = imfilter(I,H,'replicate');
subplot(2,2,4); 
imshow(sharpened); title('Sharpened Image');


%NOTE: Use hotkey 'l' for On/Off Synchronize manage of all axes
dragzoom();

Contact us