SIVP Toolbox
Last update : Sep, 2006

addframe - Add a frame to the video file. (experimental)

Calling Sequence

n = addframe(n, im)

Parameters

Description

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.

Examples

	
    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);

Bugs and Shortcomings

addframe does not check the size and date type of input image now.

Authors

Shiqi Yu <shiqi.yu[at]gmail.com>

Availability

The latest version of SIVP can be found at

http://sivp.sourceforge.net

See Also

aviinfo,  aviopen,  camopen,  avifile,  avireadframe,  aviclose,  avicloseall,  avilistopened,