在Windows的Matlab中使用getframe [英] Using getframe in Matlab on Windows
问题描述
我使用了我在此处询问的代码,但添加了在最后一个循环中,在ani(ii)=getframe;
之后,在循环之后
movie2avi(ani, 'orbeeit.avi', 'compression', 'None');
.而不是正确的avi
,我得到了冻结的粉碎的avi
(长度为10秒),它的唯一帧是这一个.我在做什么错了?
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?
推荐答案
此问题可能是由Windows Vista(及更新版本)结合某些图形驱动程序引起的,如
This problem is probably caused by Windows Vista (and newer) in conjunction with certain graphics drivers as described in this bug report.
创建图形后,您可以更改renderer
:
You can change the renderer
after you created the figure:
set(gcf,'Renderer','zbuffer');
或
opengl('software');
这篇关于在Windows的Matlab中使用getframe的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!