1. A method for determining a depth map in a scene, the method comprising: using at least one processor for: collecting focus statistical information for a plurality of focus windows in an image of a scene; determining a focal distance for each focus window; determining one of near, far, and target focus distances; and calculating a stereo-base and screen plane using the focus distances.