在Windows的Matlab中使用getframe [英] Using getframe in Matlab on Windows

查看:103
本文介绍了在Windows的Matlab中使用getframe的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用了我在此处询问的代码,但添加了在最后一个循环中,在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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆