Matlab 使用pcfromkinect时出错

Matlab 使用pcfromkinect时出错,matlab,kinect,matlab-cvst,point-clouds,color-depth,Matlab,Kinect,Matlab Cvst,Point Clouds,Color Depth,我正在使用适用于XBOX 360的Kinect设备。我在Matlab2015b中安装了kinect SDK v1.6和kinect for windows支持包。实现了深度图像和彩色图像的采集。但是,当我尝试使用pcfromkinect函数时,出现以下错误: No public property InputDepthMap exists for class videosource. Error in imaq.internal.KinectColor2DepthMap Error in vi

我正在使用适用于XBOX 360的Kinect设备。我在Matlab2015b中安装了kinect SDK v1.6和kinect for windows支持包。实现了深度图像和彩色图像的采集。但是,当我尝试使用pcfromkinect函数时,出现以下错误:

No public property InputDepthMap exists for class videosource.

Error in imaq.internal.KinectColor2DepthMap

Error in vision.internal.visionKinectColorToSkeleton

Error in pcfromkinect (line 96)
        vision.internal.visionKinectColorToSkeleton(depthDevice, depthImage, colorImage, isDepthCentric);

Error in kinect_image (line 22)
    ptCloud = pcfromkinect(depthDevice,depthImage,colorImage);
此功能是否支持XBOX 360设备的Kinect

我的程序的源代码如下:

clc;
clear;
close all;

try
    % Create System objects for the Kinect device.
    colorDevice = imaq.VideoDevice('kinect',1);
    depthDevice = imaq.VideoDevice('kinect',2);

    % Change the returned type of color image from single to unint8.
    colorDevice.ReturnedDataType = 'uint8';

    % Warm up the cameras.
    step(colorDevice);
    step(depthDevice);

    % Load one frame from each device. The initial frame executes slowly because the objects must wake up the devices.
    colorImage = step(colorDevice);
    depthImage = step(depthDevice);

    % Convert the depth image to a point cloud.
    ptCloud = pcfromkinect(depthDevice,depthImage,colorImage);

    % Align the color image with the depth image.
    alignedColorImage = alignColorToDepth(depthImage,colorImage,depthDevice);

    % Render the point cloud with color. The axis is set to better visualize the point cloud.
    pcshow(xyzPoints,alignedColorImage,'VerticalAxis','y','VerticalAxisDir','down');
    xlabel('X (m)');
    ylabel('Y (m)');
    zlabel('Z (m)');

    % Release the System objects.
    release(colorDevice);
    release(depthDevice);
catch ME

    % Release the System objects.
    release(colorDevice);
    release(depthDevice);

    rethrow(ME);
end

此功能和图像采集工具箱不支持XBOX 360传感器


由于Kinect for windows和Kinect for XBOX 360是两种不同的硬件,pcfromkinect功能仅适用于Kinect for windows。它不适用于XBOX 360游戏机Kinect。我在同一条线上工作,所以请告诉我您是否会得到结果。

问题尚未解决!我使用的是Win 8.1 64位操作系统。有没有人使用Kinect v1和MATLAB 2015b的新深度相关功能?对。pcfromkinect仅适用于开发版本kinect。