how to extract xyz coordinates from 3d point cloud

3 views (last 30 days)
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!!

Accepted Answer

Hassan El Chawich
Hassan El Chawich on 27 Apr 2016
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(:)'];
  1 Comment
liu yenfeng
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?

Sign in to comment.

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!