SACAFOT extract the frames in the positions 'v' from 'SEC' frames are of size m*n USE: fotog=sacafot(SEC,m,n,v);
0001 % SACAFOT extract the frames in the positions 'v' from 'SEC' 0002 % frames are of size m*n 0003 % USE: fotog=sacafot(SEC,m,n,v); 0004 0005 function fotogramas=sacafot(sec,fil,col,N) 0006 0007 s=size(sec); 0008 fotogramas=zeros(fil,length(N)*col); 0009 for fot=1:length(N) 0010 nfot=N(fot); 0011 fotogramas(:,col*(fot-1)+1:col*fot)=sec(:,col*(nfot-1)+1:col*nfot); 0012 end 0013