Background subtraction method i am getting following error while reading video-please help me
조회 수: 1 (최근 30일)
이전 댓글 표시
Warning: The end of file was reached before the requested frames were read completely. Frames 1 through 613 were returned.
??? Index exceeds matrix dimensions.
code:
obj=mmread
er('ATMvid.avi');
a=read(obj);
frames=get(obj,'numberOfFrames');
for k = 1 : frames-1
source(k).cdata = a(:,:,:,k);
source(k).colormap = [];
end
댓글 수: 0
채택된 답변
Walter Roberson
2013년 2월 24일
Someone else had this recently and we did not figure out why they got the end of file message.
Instead of looping to numberOfFrames, go to size(a,4)
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Matrix Indexing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!