1. A method for image processing, comprising: receiving a depth image of a scene containing an object; receiving a color image of the scene containing the object; identifying in the depth image a range of depths in which the object is located; filtering the color image using depth coordinates from the depth image to eliminate pixels from the color image for which the depth coordinates are outside the range; and processing the filtered color image in order to localize the object.