problem in loading data in Stitch point cloud example
Show older comments
Hi there...
i am working with Stitch point cloud example
>> edit StitchPointCloudsExample
i have taken taken 3D point cloud x,y,z coordinate using following code which is also an example in matlab 2016a if you search depthToPointCloud
%Create a System object™ for the Kinect device.
% class is the foundation on which .NET Framework applications, components, and controls are built.
depthDevice = imaq.VideoDevice('kinect',2);
%Warm up the camera.
step(depthDevice);
%Load one frame from the device. The initial frame executes slowly because the object must wake up the device.
depthImage = step(depthDevice);
%Convert the depth image to the point cloud.
xyzPoints = depthToPointCloud(depthImage,depthDevice);
%Render the point cloud with false color. The axis is set to better visualize the point cloud.
pcshow(xyzPoints,'VerticalAxis','y','VerticalAxisDir','down');
xlabel('X (m)');
ylabel('Y (m)');
zlabel('Z (m)');
%Release the System object,
release(depthDevice);
The problem is that when ever i try to load data in this example following error appears
Cell contents reference from a non-cell array object.
Error in map (line 3) ptCloudRef = xyzPoints{1};
map is name of my m file , i have changed renamed StitchPointCloudsExample. xyzPoints is 3d point cloud x,y,x coordinates which i have obtain from above mentioned code and kinect
would anyone help me what i should do after i have obtain 3D point cloud from above mention code and kinect xbox 360. so that am able to get my own 3D map
regards
mehrozech
Answers (0)
Categories
Find more on Kinect For Windows Sensor in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!