addframe — Add a frame to the video file. (experimental)
n = addframe(n, im)
avifile
.
dims
of function avifile
, the image will be resized to dims
.
addframe
add a frame to video file n
.
Video support for SIVP is only available when SIVP is compiled with OpenCV which support video I/O.
im = imread('lena.png'); n = avifile('lena.avi', [300;300], 30); for ii=1:200 ims = im(ii:512-ii, ii:512-ii, :); addframe(n, ims); end aviclose(n);