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 で Creating and Concatenating Matrices についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!