User`s guide
12 Using the Kinect for Windows Adaptor
12-20
MetaData Description
SkeletonTrackingID This 1 x 6 integer matrix contains the
tracking IDs of all six skeletons. These
IDs track specific skeletons using the
SkeletonsToTrack property in step 5.
Tracking IDs are generated by the
Kinect and change from acquisition to
acquisition.
TriggerIndex This is a 1 x 1 double and represents the
trigger the event is associated with if
triggering is used.
9
You can look at any individual property by drilling into the metadata. For example,
look at the IsSkeletonTracked property.
metaData.IsSkeletonTracked
ans =
1 0 0 0 0 0
In this case it means that of the six possible skeletons, there is one skeleton being
tracked and it is in the first position. If you have multiple skeletons, this property is
useful to confirm which ones are being tracked.
10
Get the joint locations for the first person in world coordinates using the
JointWorldCoordinates property. Since this is the person in position 1, the index
uses 1.
metaData.JointWorldCoordinates(:,:,1)
ans =
-0.1408 -0.3257 2.1674
-0.1408 -0.2257 2.1674
-0.1368 -0.0098 2.2594
-0.1324 0.1963 2.3447
-0.3024 -0.0058 2.2574
-0.3622 -0.3361 2.1641
-0.3843 -0.6279 1.9877
-0.4043 -0.6779 1.9877