User`s guide
Acquiring Image and Skeletal Data Using Kinect
12-17
start(vid2);
8
Skeletal data is accessed as metadata on the depth stream. You can use getdata to
access it.
% Get the data on the object.
[frame, ts, metaData] = getdata(vid2);
% Look at the metadata to see the parameters in the skeletal data.
metaData
metaData =
10x1 struct array with fields:
AbsTime: [1x1 double]
FrameNumber: [1x1 double]
IsPositionTracked: [1x6 logical]
IsSkeletonTracked: [1x6 logical]
JointDepthIndices: [20x2x6 double]
JointImageIndices: [20x2x6 double]
JointTrackingState: [20x6 double]
JointWorldCoordinates: [20x3x6 double]
PositionDepthIndices: [2x6 double]
PositionImageIndices: [2x6 double]
PositionWorldCoordinates: [3x6 double]
RelativeFrame: [1x1 double]
SegmentationData: [640x480 double]
SkeletonTrackingID: [1x6 double]
TriggerIndex: [1x1 double]
These metadata fields are related to tracking the skeletons.
MetaData Description
AbsTime This is a 1 x 1 double and represents the
full timestamp, including date and time,
in MATLAB clock format.
FrameNumber This is a 1 x 1 double and represents the
frame number.
IsPositionTracked This is a 1 x 6 Boolean matrix of true/
false values for the tracking of the
position of each of the six skeletons. A 1