MCPcopy Create free account
hub / github.com/OpenNI/OpenNI / GetUserColor

Method GetUserColor

Samples/NiUserSelection/UserTracker.cpp:273–280  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

271}
272
273XnStatus UserTracker::GetUserColor(XnUserID nUserId, XnFloat* userColor)
274{
275 XnUInt32 nColorID = nUserId % s_nColors; // the color for the user
276 userColor[0]=s_Colors[nColorID][0];
277 userColor[1]=s_Colors[nColorID][1];
278 userColor[2]=s_Colors[nColorID][2];
279 return XN_STATUS_OK;
280}
281
282XnFloat UserTracker::GetExitPoseState(XnUserID nUserId)
283{

Callers 2

DrawLabelsMethod · 0.80
DrawSkeletonMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected