Hey. I’d be much obliged if someone could offer assistance on this. Could really do with sorting this for a project ending today.
One of the outputs from the kinect openni drivers is a spread of active user IDs (unique integers) and active user body position (xyz).
I’m using this postion to accumulate a value based on how much the user has moved. The ID can be a spread of up to 4 values (if there are 4 users, I’m limiting it to 4) and if a user leaves, the spread size can change, meaning a user’s position in the spread can change, as will their position in the other spread. This results in the values I’d been accumulating (using frame difference and and a framedelay) get messed up.
I need to somehow (I think this is correct), when a user id slice value changes -
check to see if that user ID is still in the spread at another position
if it is, change the position of this slice to it’s old position
if it’s not, replace it’s position with either a new user id slice that has appeared, or if there are none, a dummy ID slice, to ensure that any existing ID slices above this one do not change spread position