movie2avi

조회 수: 16 (최근 30일)
Brandon
Brandon 2012년 5월 16일
Greetings -
I am attempting to write a avi file from a movie structure I have assembled. I am used the standard:
movie2avi(M, 'test.avi') where M is my movie array
I am getting an error which says:
Error using ==> avifile.addframe>ValidateFrame at 295 Frame must be 1233 by 206
where 1322 is the width of my frame and 206 is the height of my frame if I observe that M structure.
However the M structure defines M(1,1).cdata as being (206,1233,3) uint8
I think the error is coming from the fact that the arary is 3 dimensional where there is one dimension for each R G and B color of my contour plot.
Is this correct and does anyone have any suggestions on how to fix this?
Thanks,
  댓글 수: 1
Walter Roberson
Walter Roberson 2012년 5월 16일
Please confirm that the error message says 1233, and M(1,1).cdata is width 1233, but the width of your frame is 1322 rather than 1233 ?

댓글을 달려면 로그인하십시오.

답변 (1개)

Brandon
Brandon 2012년 5월 18일
Sorry, that was a typo. I corrected the problem.
I was getting the frame by: figure() for i = 1:n plot(...) M(i) = getframe; end
I changed the logic to plot(...) M(i) = getframe(gcf) end

카테고리

Help CenterFile Exchange에서 Graphics Performance에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by