1. An apparatus for performing autofocus selection for image capture, comprising: (a) a processor within an image capture device having a lens that can be focused to a selected depth in an autofocusing process; and (b) memory storing instructions executable by the processor; (c) said instructions when executed by the processor performing steps of said autofocusing process comprising: (i) detecting a rough estimate of foreground image area in a previous frame and a current frame captured by the image capture device; (ii) masking of said foreground image area as a foreground mask in both said previous frame and a current frame for global motion determination; (iii) combining said foreground mask for each of said previous frame and said current frame with a previous moving object mask in a linking step which performs a union of the masks; (iv) masking is performed separately, using the union of the masks, for the previous frame and the current frame; (v) aligning background images in the previous frame and the current frame; (vi) determining frame differences between the previous frame and the current frame; (vii) generating a moving object mask in response to moving object area detection; (viii) utilizing the moving object mask with frame delay on both the current frame and the previous frame; (ix) segmenting foreground and background based on generated moving object mask; and (x) performing autofocusing with focusing directed to a location within said moving object mask.