addframe function does not work
Status: Beta
Brought to you by:
yushiqi
The function "addframe" in SIVP toolbox gives the following error.
This is the example provided in the help.
----------------------------------------------------------------------------------
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);
!--error 999
addframe: Write frame error, please check input image size and depth.
----------------------------------------------------------------------------------
I have Scilab v.5.3.1 for Windows 64 bits on Windows 7.