简体   繁体   中英

How can I get (x,y,z) data from point cloud structure data obtained from kinect sensor in MATLAB?

I plot point cloud figure in MATLAB using Kinect-V2 camera. I determined three markers in the MATLAB figure using the Data cursor tool to get the (x,y,z) of these points. Then, I saved these data as a (.mat file). When I open it again, I found that MATLAB saves the data of each marker in structure array.

How can I get again (x,y,z) of these markers from the Structure arrays?

Attached to the question link of the structure arrays that related to each of the markers.

http://www.mediafire.com/file/yxhjjxh0l312iuz/matlab.mat

Don't really wanna download from an external link so I will have to guess how it looks.

Is it setup like this

--> mydata
      --> X
          value
      --> Y
          value
      --> Z 
          value

If it is setup in this manner then all you have to do is write a basic code to extract out the values

 data = [mydata.X, mydata.Y, mydata.Z];

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM