Error using frame2im Invalid movie: expected a structure
2 ビュー (過去 30 日間)
古いコメントを表示
Hi all I have an avi movie. I use those code. What is wrong?
mov = VideoReader(videoname); frame = readFrame(mov); [img, ~] = frame2im(frame);
Error using frame2im Invalid movie: expected a structure
Thanks
0 件のコメント
回答 (1 件)
Stephen23
2018 年 7 月 25 日
編集済み: Stephen23
2018 年 7 月 25 日
As its documentation clearly states, the readframe function returns a numeric array already (i.e. an image), so you do not need frame2im at all. Remove frame2im from your code. frame2im is only required if you are using getframe (because it returns a structure).
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Convert Image Type についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!