Automatic Focusing Apparatus and Method for Digital Images Using Automatic Filter Switching
First Claim
1. An automatic focusing apparatus comprising:
- a focusing lens;
a focus actuator connected to the focusing lens to move the focusing lens;
an image sensor aligned with the focusing lens to detect an image through the focusing lens;
j digital band-pass filters connected to the image sensor to extract a set of sharpness samples from a noise-free, blurred, Bayer-pattern sampled image within a focus window from the detected image wherein j>
=2;
a memory storing a set of device parameters; and
a processor connected to the focus actuator, the digital band-pass filters and the memory, wherein the processor (a) generates M sets of spatial frequency parameters and M focus actuator step sizes using the set of device parameters wherein M is a number of segments of a spatial frequency axis, and with i=1 (b) loads the i to i+j sets of spatial frequency parameters into the digital band-pass filters (c) obtains a matrix of focus value samples from the digital band-pass filters, (d) controls the focus actuator to sample a local surface behavior using the i focus actuator step size, (e) repeats steps (b) to (d) with i=i+1 whenever a switch condition is satisfied, and (f) estimates a final in-focus position for the image and controls the focusing lens to move to the final in-focus position whenever a stop condition is satisfied.
1 Assignment
0 Petitions
Accused Products
Abstract
An apparatus and method for automatically focusing a lens of a digital imaging device, such as a digital still or video camera or camera phone, that reduces the auto focus time while not compromising image sharpness quality and simultaneously reducing device power consumption due to focus actuator movement, all without tuning or adjustment of thresholds or parameters is disclosed. The present invention automatically computes a set of digital band-pass filters matched to the imaging device specifications along with corresponding step-size magnitudes. A filter-switching search for the in-focus focus actuator position is formulated such that filters are switched and step-sizes are reduced as the search gets closer to the in-focus position by utilizing local estimates of the first and second-order differential information of the focus value surface.
42 Citations
34 Claims
-
1. An automatic focusing apparatus comprising:
-
a focusing lens; a focus actuator connected to the focusing lens to move the focusing lens; an image sensor aligned with the focusing lens to detect an image through the focusing lens; j digital band-pass filters connected to the image sensor to extract a set of sharpness samples from a noise-free, blurred, Bayer-pattern sampled image within a focus window from the detected image wherein j>
=2;a memory storing a set of device parameters; and a processor connected to the focus actuator, the digital band-pass filters and the memory, wherein the processor (a) generates M sets of spatial frequency parameters and M focus actuator step sizes using the set of device parameters wherein M is a number of segments of a spatial frequency axis, and with i=1 (b) loads the i to i+j sets of spatial frequency parameters into the digital band-pass filters (c) obtains a matrix of focus value samples from the digital band-pass filters, (d) controls the focus actuator to sample a local surface behavior using the i focus actuator step size, (e) repeats steps (b) to (d) with i=i+1 whenever a switch condition is satisfied, and (f) estimates a final in-focus position for the image and controls the focusing lens to move to the final in-focus position whenever a stop condition is satisfied. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14)
-
-
15. A method for automatically focusing a focusing lens using j digital band-pass filters wherein j>
- =2, the method comprising the steps of;
(a) generating M sets of spatial frequency parameters and M focus actuator step sizes using a set of device parameters wherein M is a number of segments of a spatial frequency axis, and with i=1; (b) loading the i to j sets of spatial frequency parameters into the digital band-pass filters; (c) obtaining a matrix of focus value samples from the digital band-pass filters; (d) controlling the focusing lens to sample a local surface behavior using the i focus actuator step size; (e) repeating steps (b) to (d) with i=i+1 whenever a switch condition is satisfied; and (f) estimating a final in-focus position for the image and controlling the focusing lens to move to the final in-focus position whenever a stop condition is satisfied. - View Dependent Claims (16, 17, 18, 19, 20, 21, 22, 23)
- =2, the method comprising the steps of;
-
24. A computer readable medium encoded with a computer program for execution by a processor for automatically focusing a focusing lens using j digital band-pass filters wherein j>
- =2, the computer program comprising;
(a) a code segment for generating M sets of spatial frequency parameters and M focus actuator step sizes using a set of device parameters wherein M is a number of segments of a spatial frequency axis, and with i=1; (b) a code segment for loading the i to i+j sets of spatial frequency parameters into the digital band-pass filters; (c) a code segment for obtaining a matrix of focus value samples from the digital band-pass filters; (d) a code segment for controlling the focusing lens to sample a local surface behavior using the i focus actuator step size; (e) a code segment for repeating steps (b) to (d) with i=i+1 whenever a switch condition is satisfied; and (f) a code segment for estimating a final in-focus position for the image and controlling the focusing lens to move to the final in-focus position whenever a stop condition is satisfied. - View Dependent Claims (25, 26, 27, 28, 29, 30, 31)
- =2, the computer program comprising;
-
32. An automatic focusing apparatus comprising:
-
a focusing lens; a focus actuator connected to the focusing lens to move the focusing lens; an image sensor aligned with the focusing lens to detect an image through the focusing lens; a first and a second digital band-pass filter connected to the image sensor to extract a set of sharpness samples from a noise-free, blurred, Bayer-pattern sampled image within a focus window from the detected image; a memory storing a set of device parameters; and a processor connected to the focus actuator, the digital band-pass filters and the memory, wherein the processor (a) generates M sets of spatial frequency parameters and M focus actuator step sizes using the set of device parameters wherein M is a number of segments of a spatial frequency axis, (b) loads the first and second sets of spatial frequency parameters into the first and second digital band-pass filters, respectively, (c) initializes an iteration k, (d) estimates a final in-focus position and controls the focusing lens to move to the final in-focus position whenever a stop condition is satisfied, (e) whenever the stop condition is not satisfied;
(1) updates a sample state matrix with the kth focus value samples, (2) normalizes the samples in the state matrix for comparison of the focus values, (3) starts a next iteration and repeats steps (1)-(3) whenever a switch condition is not satisfied, (4) whenever the switch condition is satisfied, (5) computes local estimates of the second partial derivatives of the focus value surface and computes the switch condition, (6) computes the switch matrix to be used in the next iteration, (7) computes the analysis filters to be used at the next iteration, (8) updates the sample state matrix if the switch condition is satisfied, (9) updates the step size and updating the focus actuator position, and (10) repeats steps(d)-(e) until the final in-focus position is estimated.
-
-
33. A method for automatically focusing a focusing lens using a first and a second digital band-pass filter, the method comprising the steps of:
-
(a) generating M sets of spatial frequency parameters and M focus actuator step sizes using a set of device parameters wherein M is a number of segments of a spatial frequency axis, and with i=1; (b) loading the first and second sets of spatial frequency parameters into the first and second digital band-pass filters, respectively; (c) initializing an iteration k; (d) estimating a final in-focus position and controlling the focusing lens to move to the final in-focus position whenever a stop condition is satisfied; (e) whenever the stop condition is not satisfied;
(1) updating a sample state matrix with the kth focus value samples, (2) normalizing the samples in the state matrix for comparison of the focus values, (3) starting a next iteration and repeating steps (1)-(3) whenever a switch condition is not satisfied, (4) whenever the switch condition is satisfied, (5) computing local estimates of the second partial derivatives of the focus value surface and computing the switch condition, (6) computing the switch matrix to be used in the next iteration, (7) computing the analysis filters to be used at the next iteration, (8) updating the sample state matrix if the switch condition is satisfied, (9) updating the step size and updating the focus actuator position, and (10) repeating steps(d)-(e) until the final in-focus position is estimated.
-
-
34. A computer readable medium encoded with a computer program for execution by a processor for automatically focusing a focusing lens using j digital band-pass filters wherein j>
- =2, the computer program comprising;
(a) a code segment for generating M sets of spatial frequency parameters and M focus actuator step sizes using a set of device parameters wherein M is a number of segments of a spatial frequency axis, and with i=1; (b) a code segment for loading the first and second sets of spatial frequency parameters into the first and second digital band-pass filters, respectively; (c) a code segment for initializing an iteration k; (d) a code segment for estimating a final in-focus position and controlling the focusing lens to move to the final in-focus position whenever a stop condition is satisfied; (e) a code segment for whenever the stop condition is not satisfied;
(1) updating a sample state matrix with the kth focus value samples, (2) normalizing the samples in the state matrix for comparison of the focus values, (3) starting a next iteration and repeating steps (1)-(3) whenever a switch condition is not satisfied, (4) whenever the switch condition is satisfied, (5) computing local estimates of the second partial derivatives of the focus value surface and computing the switch condition, (6) computing the switch matrix to be used in the next iteration, (7) computing the analysis filters to be used at the next iteration, (8) updating the sample state matrix if the switch condition is satisfied, (9) updating the step size and updating the focus actuator position, and (10) repeating steps(d)-(e) until the final in-focus position is estimated.
- =2, the computer program comprising;
Specification