1. A method for automatic focusing a camera having a lens, comprising: calculating focus measure values for a plurality of lens positions, each of the focus measure values being calculated by dividing a weighted sum of window evaluation values of a set of image focusing windows by a total area of the set of image focusing windows; comparing the calculated focus measure values of the plurality of lens positions in order to select an optimal lens position; and moving the lens to the selected optimal lens position.