【发布时间】:2013-09-26 18:13:51
【问题描述】:
我无法将颜色和深度图像与图像采集工具箱同步。
目前,我只是尝试将两个流都记录到二进制文件中,而不会丢帧或失去同步。
我在录制过程中不尝试渲染。
开始按钮的代码:
colorVid = videoinput('kinect',1); depthVid = videoinput('kinect',2);
colorVid.FramesPerTrigger = inf; depthVid.FramesPerTrigger = inf;
triggerconfig([colorVid depthVid],'manual');
iatconfigLogging(colorVid,'Video/Color.bin');
iatconfigLogging(depthVid,'Video/Depth.bin');
start([colorVid depthVid]);
pause(2); % this is to be sure both sensor are start before the trigger
trigger([colorVid depthVid]);
iatconfigureLogging() 来自here
停止按钮只是在做
stop([colorVid depthVid]);
由于 Kinect 的帧速率是 30FPS,我们无法更改,所以我使用 FrameGrabInterval 来模拟它。
但是当我喜欢 5FPS 时,我无法记录深度和颜色并保持帧同步超过 20-25 秒。除了 1 FPS,同步在 2-3 分钟后结束,我正在寻找至少 10-15 分钟的采集时间。
我正在寻找类似 flushdata(obj,'triggers'); 的东西。现在,但我不知道如何通过日志记录保持 30 FPS。
提前感谢任何愿意提供东西的人。
【问题讨论】:
标签: matlab synchronization kinect