I'm working with user tracking: I've registered the callbacks (User_NewUser, User_LostUser, Pose_Detected, Calibration_Start, Calibration_End). When I enter in the sensor area I'm detected and calibrated in the right way. But when I leave sensor area (and nobody else is inside) I expect that the program calls the callback "User_LostUser", but does not seem to do it. (in fact, when I enter again, sensor still track me!) I expect that when an user leave scene, program unregister/remove him and restart to check for new user: can anybody help me?
void XN_CALLBACK_TYPE User_LostUser(xn::UserGenerator& generator, XnUserID nId,
void* pCookie) {
generator.GetPoseDetectionCap().StopPoseDetection(nId);
generator.GetPoseDetectionCap().Release();
generator.GetPoseDetectionCap().StartPoseDetection("Psi", nId);
}