Hi,
%% EXAMPLE 1
% Place this in a file called "redraw.m":
function redraw(frame)
imshow(['AT3_1m4_' num2str(frame, '%02.0f') '.tif']) %To draw frame
end
%Then from a script or the command line, call:
videofig(10, @redraw); %To setup figure to play
redraw(1)
As videofig is used to set up the viewer and not to display, you need to put redraw(1,v2); (Function code is below) to display images. (Reason for getting blank figure with axis).
function redraw(frame, vidObj)
% Read frame
f = vidObj.read(frame);
image(f);
axis image off
end
% Under BNIHeat.m
v2=VideoReader('heat_map.avi');
videofig(v2.NumFrames, @(frm) redraw(frm,v2));
redraw(1,v2);
Hope it helps!!