<< SIVP - Scilab Image and Video Processing Toolbox SIVP - Scilab Image and Video Processing Toolbox aviclose >>

SIVP - Scilab Image and Video Processing Toolbox >> SIVP - Scilab Image and Video Processing Toolbox > addframe

addframe

Add a frame to the video file. (experimental)

Calling Sequence

n = addframe(n, im)

Parameters

n
The opened video file index, the return value of avifile.
im
The input image which must be UINT8 RGB image. If the image size is not the same with the argument dims of function avifile, the image will be resized to dims.

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

Availability

The latest version of SIVP can be found at

http://sivp.sf.net

See Also

<< SIVP - Scilab Image and Video Processing Toolbox SIVP - Scilab Image and Video Processing Toolbox aviclose >>