Using getframe in Matlab on Windows

自作多情 提交于 2019-12-02 08:20:17

问题


I used the code which I asked about here but added in the final loop the ani(ii)=getframe; and after the loop movie2avi(ani, 'orbeeit.avi', 'compression', 'None');. instead of proper avi I get a frozen smashed avi (length 10 sec) which its only frame is this one

. What am I doing wrong?

回答1:


This problem is probably caused by Windows Vista (and newer) in conjunction with certain graphics drivers as described in this bug report.

You can change the renderer after you created the figure:

set(gcf,'Renderer','zbuffer');

Or

opengl('software');


来源:https://stackoverflow.com/questions/16885207/using-getframe-in-matlab-on-windows

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!