필터 지우기
필터 지우기

Error using frame2im Invalid movie: expected a structure

조회 수: 2 (최근 30일)
Jenny Shen
Jenny Shen 2018년 7월 24일
편집: Stephen23 2018년 7월 25일
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

답변 (1개)

Stephen23
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).

카테고리

Help CenterFile Exchange에서 Convert Image Type에 대해 자세히 알아보기

제품


릴리스

R2018a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by