how to extract xyz coordinates from 3d point cloud

3 visualizzazioni (ultimi 30 giorni)
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!!

Risposta accettata

Hassan El Chawich
Hassan El Chawich il 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 Commento
liu yenfeng
liu yenfeng il 3 Giu 2017
but i use this code, it has a error "Reference to a cleared variable xyzPoints." do you know why?

Accedi per commentare.

Più risposte (0)

Community Treasure Hunt

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

Start Hunting!

Translated by