Code covered by the BSD License  

Highlights from
Simulink Support for Kinect

image thumbnail

Simulink Support for Kinect

by

 

25 Jul 2011 (Updated )

Simulink Support for Kinect is a set of Simulink blocks interfaced with OpenNI and Kinect SDK.

Editor's Notes:

This file was selected as MATLAB Central Pick of the Week

slnid_skeleton.m
%% NID Skeleton
%
% KinectfoCX擾igbLOf[^Ԃ܂B
%
% Copyright 2011-2012 The MathWorks, Inc.

%% ͐M
%
% * SYNC (uint32): IMAQubNo͂铯pԐM [msec]B

%% o͐M
%
% * Tracking (int32): igbLȎΏێҐB
%
% * Skeleton (double): iXYZWf[^BẂAReal world/Projectivêꂩɐݒł܂B
%
% [OpenNI]
%
% 15ӏ̍iXYZWf[^擾ł܂BXYZWf[^[0 0 0]̏ꍇA̍i͔FĂȂƂӖ܂B
% eʂ̍if[^́A̍if[^vfɊi[Ă܂B
% Head = 1, Neck = 2, Torso = 3, Left shoulder = 4, Left elbow = 5,
% Left hand = 6, Right shoulder = 7, Right elbow = 8, Right hand= 9,
% Left hip = 10, Left knee = 11, Left foot = 12, Right hip = 13, Right knee = 14, Right foot = 15.
%
% LLeft, Right͋Ă܂(gbLOĂlԂ̎_猩Eł͂ȂANID猩EɂȂ܂)
%
% <<SkeletonJoints.jpg>>
%
% [Kinect SDK for Windows]
%
% 20ӏ̍iXYZWf[^擾ł܂BXYZWf[^[0 0 0]̏ꍇA̍i͔FĂȂƂӖ܂B
% eʂ̍if[^́A̍if[^vfɊi[Ă܂B
% 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.
%
% <<SkeletonJoint_KinectSDK.png>>
%
% * Image (uint8): if[^RGB24C[WB

%% ubNp[^
%
% * Max number of Skeleton Tracking: igbLOΏێ҂̍ő吔B2IꍇASkeleton output’lj܂B
%
% * Real world coordinates (Default: Projective): 15ӏ̍if[^̏o͂ɑ΂āAReal world  (X, Y, Z [m]) ܂́AProjective (X,Y [pixel], Z [m]) XYZWIB
%
% Projective XYZW:
%
% <<ProjectiveXYZ.png>>
%
% Real world XYZW:
%
% <<RealWorldXYZ.png>>
%
% * Image output: if[^RGB24C[Wo͂ݒB

%% igbLOpLu[V (OpenNÎݗL)
%
% igbLOpLu[V́AIMAQubNNeed PSI pose for calibration of Skeleton trackingONɂĂ邩AigbLO̎F@\T|[gĂȂo[W
% OpenNIgpĂꍇɕKvɂȂ܂B
%
% * V~[VJn܂B
%
% * lNID͈͓̑œƔFAľ`\܂B
%
% * igbLÕLu[V̂߁APSI|[YƌĂ΂p̃|[YNID̑OłƂ܂B
%
% <<PsiPose.jpg>>
%
% * Lu[V܂ŁAPSI|[Ŷ܂ܓȂłBLu[V͐ľ`͔FɕςAƌ̐Fɖ߂܂B
%
% * igbLOȂĂŒ́Aľ`̏Ɂ{}[N\܂B{\ĂӏNIDɂăgbLOĂ鍜iʂɂȂ܂B

Contact us