1. A method of creating a mask of an object in a scene, the method comprising: receiving a depth image of a scene; identifying an object in the depth image by filling the object; comparing the object to a pattern; removing a background surrounding the object in response to determining that the object matches the pattern to produce a mask of the object; and calculating a plurality of measurements of the object based on the mask of the object.