Error when using pcfromkinect with Kinect for XBOX360 device
조회 수: 1 (최근 30일)
이전 댓글 표시
I am using a Kinect for XBOX 360 device. I installed kinectSDK v1.6 on windows 8.1 (64-bit) and then kinect for windows support package in MATLAB 2015b. Acquisition of depth and color images is carried out perfectly. However, when I try to use pcfromkinect function following error occurs:
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);
Does this function support Kinect for XBOX 360 devices?
Source code of my program is as follows:
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
댓글 수: 1
답변 (1개)
Madhura Suresh
2015년 11월 3일
The Image Acquisition toolbox does not support XBOX sensors. Only the Kinect for Windows sensor is supported.
댓글 수: 0
참고 항목
카테고리
Test and Measurement
Image Acquisition Toolbox
Image Acquisition Toolbox Supported Hardware
Kinect For Windows Sensor
Image Processing and Computer Vision
Image Acquisition Toolbox
Image Acquisition Toolbox Supported Hardware
Kinect For Windows Sensor
Test and Measurement
Image Acquisition Toolbox
Image Data Acquisition
Acquisition Using Kinect for Windows Hardware
더 보기
Help Center 및 File Exchange에서 Kinect For Windows Sensor에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!