MATLAB IMAGE ACQUISITION TOOLBOX - RELEASE NOTES Guide de l'utilisateur Page 312

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 574
  • Table des matières
  • DEPANNAGE
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 311
12 Using the Kinect for Windows Adaptor
12-24
Using Skeleton Viewer for Kinect Skeletal Data
If you do an acquisition with a Kinect for Windows and get skeletal data, you can view
the skeleton joints in this viewer. This example function displays one RGB image with
skeleton joint locations overlaid on the image.
1
Create the Kinect objects and acquire image and skeletal data, as shown in
“Acquiring Image and Skeletal Data Using Kinect” on page 12-9.
2
Use the skeletonViewer function to view the skeletal data.
In this code, skeleton is the joint image locations returned by the Kinect
depth sensor, and image is the RGB image corresponding to the skeleton frame.
nSkeleton is the number of skeletons.
function [] = skeletonViewer(skeleton, image, nSkeleton)
This is the order of the joints returned by the Kinect adaptor:
Hip_Center = 1;
Spine = 2;
Shoulder_Center = 3;
Head = 4;
Shoulder_Left = 5;
Elbow_Left = 6;
Wrist_Left = 7;
Hand_Left = 8;
Shoulder_Right = 9;
Elbow_Right = 10;
Wrist_Right = 11;
Hand_Right = 12;
Hip_Left = 13;
Knee_Left = 14;
Ankle_Left = 15;
Foot_Left = 16;
Hip_Right = 17;
Knee_Right = 18;
Ankle_Right = 19;
Foot_Right = 20;
3
Show the RGB image.
imshow(image);
4
Create a skeleton connection map to link the joints.
Vue de la page 311
1 2 ... 307 308 309 310 311 312 313 314 315 316 317 ... 573 574

Commentaires sur ces manuels

Pas de commentaire