An indication of sharpness of focus is provided to a user to assist in focusing
a camera. In one embodiment, the camera is coupled to a personal computer. An algorithm
is implemented by the personal computer to determine a sharpness of focus based
upon differences between the luminance of adjacent pixels in a selected region
of an image produced by the camera. A visual or aural indication of the sharpness
of focus is provided to the user to enable the user to focus the camera to the
sharpest possible focus. Alternatively, the algorithm can be implemented by a processor
within a camera so that a visual or aural indicator on the camera provides the
indication of sharpness of focus as a user adjusts the focus of the camera.