I'm trying to filter users in jit.openni's usermap in order to make further separate masking on each silouhette.
However, I'm encountering an issue, as I noticed that jit.openni does correctly output users IDs for every pixel, but it also creates an edge of value "1" around every user.
So, tracking user 1 results in showing a full user's silouhette sorrounded by the "ghosts" of other users, while tracking users >1 obviously works fine.
This patch should explain:
(the attached file is an example matrix frame showing a usermap of two users, I'm also attaching a screenshot for the lazy people ;) )
I think a solution to this issue would be an algorithm like:
"for every pixel value >1, check the nearest pixel, and if it is == 1, set pixel to 0, otherwise pass it".
I was trying to achieve this in jit.gen, but I'm currently stuck with filtering values and then sampling the nearest...maybe someone could give me some hints?