i have found the answer for this and it can be done by this code to obtain all the x, y, and z coordinates: x=xyzPoints(:,:,1); y=xyzPoints(:,:,2); z=xyzPoints(:,:,3); points3D=[x(:)';y(:)';z(:)'];
how to extract xyz coordinates from 3d point cloud
3 views (last 30 days)
Show older comments
Hassan El Chawich
on 9 Apr 2016
Commented: liu yenfeng
on 3 Jun 2017
My aim is to have a 3D point cloud from kinect xbox360 and then to extract the 3D coordinates (x, y, z) from the cloud as a matrix or in other way in order to send these values(x, y, z) to an arduino kit where i have three servo motors connected one for x, one for y, and one for z. is their anyone can help me in programming or ideas how to make this done!!
0 Comments
Accepted Answer
Hassan El Chawich
on 27 Apr 2016
1 Comment
liu yenfeng
on 3 Jun 2017
but i use this code, it has a error "Reference to a cleared variable xyzPoints." do you know why?
More Answers (0)
See Also
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!