【发布时间】:2017-05-10 08:52:35
【问题描述】:
我正在使用 kinect 相机并尝试使用 ptCloud 方法结合 RGB 和深度传感器来显示真实的深度图像。但是,仅使用初始设置,我的图像就被毁容了,缺少相关信息,无论如何要改进它以捕获更多数据。我还附上了我的意思的图片。任何帮助都会非常感谢您!
colorDevice = imaq.VideoDevice('kinect',1)
depthDevice = imaq.VideoDevice('kinect',2)
step(colorDevice);
step(depthDevice);
colorImage = step(colorDevice);`enter code here`
depthImage = step(depthDevice);
gridstep = 0.1;
ptCloud = pcfromkinect(depthDevice,depthImage,colorImage);
player = pcplayer(ptCloud.XLimits,ptCloud.YLimits,ptCloud.ZLimits,...
'VerticalAxis','y','VerticalAxisDir','down');
xlabel(player.Axes,'X (m)');
ylabel(player.Axes,'Y (m)');
zlabel(player.Axes,'Z (m)');
for i = 1:1000
colorImage = step(colorDevice);
depthImage = step(depthDevice);
ptCloud = pcfromkinect(depthDevice,depthImage,colorImage);
ptCloudOut = pcdenoise(ptCloud);
view(player,ptCloudOut);
end
release(colorDevice);
release(depthDevice);
【问题讨论】:
-
缺少什么信息?
-
它没有丢失任何信息,我只是想改进它,以便它显示来自设备的更多数据,因为它丢失了大部分数据,正如您从图像中看到的那样
标签: matlab kinect depth-testing