1

why does the code:

aviobj = avifile('example_1.avi', 'compression', 'none', 'fps', 30);  
for i=1:8  
    %generating the filenames  
    filename = strcat('Masks/',int2str(i),'.bmp');   
    I = imread(filename);  
    aviobj = addframe(aviobj,I);                                                 
end  
aviobj = close(aviobj);   

Works in matlab with windows xp and doesn't work in windows 7. I know that there are other solution to create avi from frame in matlab , but I am puzzeled why it work with on xp and not 7. and it there is something to install so it would work.

4

1 に答える 1