1. An apparatus for controlling automatic focus, comprising: (a) a computer processor configured for controlling an imaging device and associated focus control element; (b) memory coupled to said computer processor; and (c) programming stored in said memory and executable by said computer processor for carrying out an autofocusing process comprising: (i) capturing object images; (ii) estimating depth between captured image pairs to arrive at a depth estimation; (iii) determining a weighted mean of depth estimations and variance which spans both past and present depth estimations; (iv) adjusting focus with a focusing movement performed in response to said weighted mean of the depth estimations; and (v) repeating steps (i) through (iv) until said variance reaches a value that indicates sufficient confidence that a proper focus position has been attained.