help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: memory management on Octave + writing .oct files (with the included


From: Agnes Bousquier
Subject: Re: memory management on Octave + writing .oct files (with the included files)
Date: Mon, 20 Mar 2006 12:02:52 +0100
User-agent: Thunderbird 1.5 (Windows/20051201)

I realize I forgot the included files. Please excuse me for this mistake.
tic;
% test with a "for" loop
%for k=1:50
%       255*aviread('essai.avi',k);     
%end

%test with a recurrence
testavirec(1,50);

duree = toc
function testavirec(k, stop)
% calls aviread on a recursive way. k must be equal to the first frame to be 
read

im_color = zeros(480,640,3);
im_color = 255*aviread('essai.avi',k); % reads the kth frame


if (k==fin) % if all the frames have been read between start and stop
        return;
else
        clear im_color;
        testavirec(k+1,fin); % calls testavirec in order to read the (k+1)th 
frame
        
end

reply via email to

[Prev in Thread] Current Thread [Next in Thread]