Method and apparatus for automatically focusing an image-acquisition device
First Claim
1. A method for adjusting the focus of an image-acquisition device so that the image-acquisition device captures the image of an article in sharp focus, comprising the steps of:
- (a) establishing a current focus index value as having an initial value of zero;
(b) capturing the image of at least a portion of an article with an image-acquisition device having adjustable focus;
(c) processing the image captured by the image-acquisition device to determine an intensity gradient for all of the small areas within the image;
(d) establishing a histogram of the gradient intensities of all the pixels in the image;
(e) establishing a new focus index value from the histogram of the pixel intensity gradients;
(f) comparing the current focus index value to the new focus index value to determine in which direction the focus of the image-acquisition device should be adjusted so that the captured image is more sharply focused, thereby increasing the focus-index value;
(g) substituting the new focus index value for the current focus index value;
(h) incrementally stepping the focus of the image-acquisition device in the direction expected to increase the focus index value;
(i) repeating the steps of (b)-(h) until the new focus index value no longer exceeds the current focus index value;
(j) adjusting the focus of the image-acquisition device in the opposite direction by a step amount established in accordance with the difference between the new and current focus index values so that the captured image is sharply focused.
1 Assignment
0 Petitions
Accused Products
Abstract
Autofocusing of a lens (18) on a television camera (12) is achieved by first processing the image captured by the camera to establish a histogram of the intensity gradients for each of a plurality of small areas (pixels) in the captured image. From the histogram of the pixel intensity gradients, a focus index value, indicative of the sharpness of focus of the captured image, is established. The just-computed focus index value is then compared to the previously established value which is initially set to zero. The difference between the just- established and previously established focus index values establishes the direction in which the lens is incrementally stepped to more sharply focus the image. The steps of (a) capturing the image, (b) establishing the intensity gradient histogram, (c) comparing focus index value to the previously established value, and (d) incrementally stepping the lens are repeated as long as the just-established focus index values exceeds the previous value. Once the focus index value no longer exceeds the previously established value, the lens is stepped by an amount dependent on the just-established and previously established focus index values to sharply focus the image.
56 Citations
4 Claims
-
1. A method for adjusting the focus of an image-acquisition device so that the image-acquisition device captures the image of an article in sharp focus, comprising the steps of:
-
(a) establishing a current focus index value as having an initial value of zero; (b) capturing the image of at least a portion of an article with an image-acquisition device having adjustable focus; (c) processing the image captured by the image-acquisition device to determine an intensity gradient for all of the small areas within the image; (d) establishing a histogram of the gradient intensities of all the pixels in the image; (e) establishing a new focus index value from the histogram of the pixel intensity gradients; (f) comparing the current focus index value to the new focus index value to determine in which direction the focus of the image-acquisition device should be adjusted so that the captured image is more sharply focused, thereby increasing the focus-index value; (g) substituting the new focus index value for the current focus index value; (h) incrementally stepping the focus of the image-acquisition device in the direction expected to increase the focus index value; (i) repeating the steps of (b)-(h) until the new focus index value no longer exceeds the current focus index value; (j) adjusting the focus of the image-acquisition device in the opposite direction by a step amount established in accordance with the difference between the new and current focus index values so that the captured image is sharply focused. - View Dependent Claims (2, 3, 4)
-
Specification