The NITE skeleton algorithms aren't publically documented to my knowledge.
A simple way to determine which pixels are which might be the following:
- For each bone, construct a line segment between the two joints.
- For each pixel, compute the distance to each bone.
- Associate each pixel with the bone the shortest distance away.
This would work well for all limb chains. It would break down a bit with pixels in the torso. Off the top of my head, I can think of a number of good heuristics such as having a distance limit around each bone which can be much bigger for the torso. That's still not perfect though.
dba