M-File Help: ianimate | View code for ianimate |
Display an image sequence
ianimate(im, options) displays a greyscale image sequence im (HxWxN) or a color image sequence im (HxWx3xN) where N is the number of frames in the sequence.
ianimate(im, features, options) as above but with point features overlaid. features (Nx1) is a cell array whose elements are vectors of feature objects for the corresponding frames of im. The feature is plotted using the feature object's plot method and additional options are passed through to that method.
Animate image sequence:
ianimate(seq);
Animate image sequence with overlaid corner features:
c = icorner(im, 'nfeat', 200); % computer corners ianimate(seq, c, 'gs'); % features shown as green squares
'fps', F | set the frame rate (default 5 frames/sec) |
'loop' | endlessly loop over the sequence |
'movie', M | save the animation as a series of PNG frames in the folder M |
'npoints', N | plot no more than N features per frame (default 100) |
'only', I | display only the I'th frame from the sequence |
'title', T | displays the specified title on each frame, T is a cell array (1xN) of strings. |
ffmpeg -i *.png -r 5 movie.mp4
or to set the bit rate explicitly
ffmpeg -i *.png -b:v 64k movie.mp4
PointFeature, iharris, isurf, idisp
© 1990-2012 Peter Corke.