% load image file im1 = neuroelf_file('s', 'text2'); % show interesting zoom/slide effect (like Mac screen saver) % - loop over a counter value for c = 1:0.3:50 % compute zoom factor d = 1 - c / 100; % resample data (3D, 3rd dim is the RGB color planes!) id = uint8(flexinterpn_method(im1, ... [ Inf , Inf, Inf; 0.1 * c, 150 - 3 * c, 1 ; d , d , 1 ; [[0.1*c, 150-3*c] + d * [224, 424], 3]], 'cubic')); % show image image(id); drawnow; pause(0.001); end