1. A method for face detection, comprising: capturing a depth map and an image of a scene; selecting one or more locations in the image to test for presence of human faces; at each selected location, defining a respective face detection window having a size that is scaled according to a depth coordinate of the location that is indicated by the depth map; and processing a part of the image that is contained within each face detection window to determine whether the face detection window contains a human face.