1. A method for determining a position of a body using a set of one or more segments, each segment being associated with a portion of the body, the method comprising: identifying a set of one or more pixels in an image that are associated with at least part of the body; and for each pixel in the set of pixels, assigning to the pixel a probability that the pixel is within each segment in the set of segments.