Hi all,
I need to work with movies frames to compute velocity distrib. In file
'fileseq' I have each frame calibrated and ready for doing computations.
I can load the frame as shown in (1), but I cannot save as in (2). I
know that this is not trivial to implement, but just one question for
you. Is there any scripting languaje that allows this kind of twisted
programming? Otherway, I will have to code this frame by frame which is
very painful for long movies.
Thanks a lot,
Rosario
........................................................................
load fileseq;
for j=1:sFrame(2)
aux=[];
for n=1:numFrames
fr = eval(sprintf("seq%03i",n)); <------------------- (1)
aux=[aux,fr(:,j)];
endfor
for i=1:sFrame(1)
tcFr = getSignedTemporalContrast(aux(i,:));
eval(sprintf("tempGrad(%03i,%03i)",i,j))= tcFr; <---- (2)
endfor
endfor