Method and system for detecting whether an optical system is in focus using an improved interpolation technique
First Claim
1. A focus detection system in which light from a object is incident on first and second photosensor arrays via an optical system to form a first image on the first array and a second image on the second array to obtain a relative displacement amount X between the first image with respect to the first array and the second image with respect to the second array, so as to determine whether said optical system is in focus or not, each array generating a respective pattern of signals in response to light falling on the photosensors of the respective array, said system comprising:
- means for storing a function f(i) expressing inconsistency between the pattern of signals from the first array and the pattern of signals from the second array when the patterns are shifted with respect to one another by a shift amount i and compared with each other, the shift amount i being an integer which represents the difference between a photosensor position in the first array and a photosensor position in the second array;
means for obtaining function values f(i0), f(i0 -1), f(i0 -2), f(i0 +1) and f(i0 +2) corresponding to i0, (i0 -1), (i0 -2), (i0 +1) and (i0 +2), were i0 is the value of the shift amount i when f(i) is at a minimum;
means for computing an amount I =X/p (p =pitch of the arrayed photosensors in the photosensor arrays) from said function values, said amount I being given by formulas (1) and (2) below;
space="preserve" listing-type="equation">I=i.sub.0 +1/2-{f(i.sub.0 +1)-f(i.sub.0)}/A (1)whereA=2{B1 +K1 (B.sub. -B2)}B1 =f(i0 -1)-f(i0)B2 =f(i0 +2)-f(i0 +1)k1 =a constant between 0 and 0.5
space="preserve" listing-type="equation">I=i.sub.0 -1/2+{f(i.sub.0 -1)-f(i.sub.0)}/C (2)whereC=2{D1 +K1 (D1 -D2)}D1 =f(i0 +1)-f(i0)D2 =f(i0 -2)-f(i0
1)K1 =a constant between 0 and 0.5means for comparing said function value f(i0 -1) with said function value f(i0 +1) to judge whether(a) f(i0 -1)>
f(i0 +1),(b) f(i0 -1)=f(i0 +1), or(c) f(i0 -1)<
f(i0 +1); and
means for obtaining said amount I given by said formula (1) in the case of (a), or given by I=i0 in the case of (b), or given by said formula (2) in the case of (c).
0 Assignments
0 Petitions
Accused Products
Abstract
In a focus detection system in which light from an object is incident on at least two photosensor arrays via an optical system to form two images on the photosensor arrays, the relative displacement between the two images is determined in order to detect whether the optical system is in focus or not. A correction term which is formed by f(i0 +2) and f(i0 +1) or f(i0 -2) and f(i0 -1) is added to f(i0-1)-f(i0) or f(i0 +1)-f(i0), so that the amount of image deviation between the two images is obtained. Here i0 is the value of i when a function f(i) is minimized, the function f(i) expressing the inconsistency between the two images, corresponding to an amount of relative displacement i×p between the two images obtained discretely. The symbol p represents the pitch of the at least two photosensor arrays.
-
Citations
3 Claims
-
1. A focus detection system in which light from a object is incident on first and second photosensor arrays via an optical system to form a first image on the first array and a second image on the second array to obtain a relative displacement amount X between the first image with respect to the first array and the second image with respect to the second array, so as to determine whether said optical system is in focus or not, each array generating a respective pattern of signals in response to light falling on the photosensors of the respective array, said system comprising:
-
means for storing a function f(i) expressing inconsistency between the pattern of signals from the first array and the pattern of signals from the second array when the patterns are shifted with respect to one another by a shift amount i and compared with each other, the shift amount i being an integer which represents the difference between a photosensor position in the first array and a photosensor position in the second array; means for obtaining function values f(i0), f(i0 -1), f(i0 -2), f(i0 +1) and f(i0 +2) corresponding to i0, (i0 -1), (i0 -2), (i0 +1) and (i0 +2), were i0 is the value of the shift amount i when f(i) is at a minimum; means for computing an amount I =X/p (p =pitch of the arrayed photosensors in the photosensor arrays) from said function values, said amount I being given by formulas (1) and (2) below;
space="preserve" listing-type="equation">I=i.sub.0 +1/2-{f(i.sub.0 +1)-f(i.sub.0)}/A (1)where A=2{B1 +K1 (B.sub. -B2)} B1 =f(i0 -1)-f(i0) B2 =f(i0 +2)-f(i0 +1) k1 =a constant between 0 and 0.5
space="preserve" listing-type="equation">I=i.sub.0 -1/2+{f(i.sub.0 -1)-f(i.sub.0)}/C (2)where C=2{D1 +K1 (D1 -D2)} D1 =f(i0 +1)-f(i0) D2 =f(i0 -2)-f(i0
1)K1 =a constant between 0 and 0.5 means for comparing said function value f(i0 -1) with said function value f(i0 +1) to judge whether (a) f(i0 -1)>
f(i0 +1),(b) f(i0 -1)=f(i0 +1), or (c) f(i0 -1)<
f(i0 +1); andmeans for obtaining said amount I given by said formula (1) in the case of (a), or given by I=i0 in the case of (b), or given by said formula (2) in the case of (c).
-
-
2. A focus detection method in which light from an object is incident on first and second photosensor arrays via an optical system to form a first image on the first array and a second image on the second array to obtain a relative displacement amount X between the first image with respect to the first array and the second image with respect to th second array, so as to determine whether said optical system is in focus or not, each array generating a respective pattern of signals in response to light falling on the photosensors of the respective array, said method comprising the steps of:
-
obtaining function values f(i0), f(i0 -1), f(i0 -2), f(i0 +1) and f(i0 +2) for a function f(i) expressing inconsistency between the pattern of signals from the first array and the pattern of signals from the second array when the patterns are shifted with respect to one another by a shift amount i and compared with each other, the shift amount i being an integer which represents the difference between a photosensor position in the first array and a photosensor position in the second array, i0 being the value of i when the value of f(i) is at a minimum; computing an amount I =X/p (p =pitch of the arrayed photosensors in the photosensor arrays) from said function values, said amount I being given by formulas (1) and (2) below;
space="preserve" listing-type="equation">I=i.sub.0 +1/2-{f(i.sub.0 +1)-f(i.sub.0)}/A (1)where A=2{B1 +K1 (B1 -B2)} B1 =f(i0 -1)-f(i0) B2 =f(i0 +2)-f(i0 +1) k1 =a constant between 0 and 0.5
space="preserve" listing-type="equation">I=i.sub.0 -1/2+{f(i.sub.0 -1)-f(i.sub.O)}/C (2)where C=2{D1 +K1 (D1 -D2)} D1 =f(i0 +1)-f(i0) D2 =f(i0 -2)-f(i0 -1) K1 =a constant between 0 and 0.5 comparing said function value f(i0 -1) with said function value f(i0 +1) to judge whether (a) f(i0 -1)>
f(i0 +1),(b) f(i0 -1)=f(i0 +1), or (c) f(i0 -1)<
f(i0 +1); andobtaining said amount I given by said formula (1) in the case of (a), or given by I=i0 in the case of (b), or given by said formula (2) in the case of (c).
-
-
3. A focus detection system in which light from an object is incident on first and second arrays of photosensors via an optical system to provide a first image impinging on the first array and a second image impinging on the second array, wherein the photosensors of the first array generate a pattern of signals F(1), F(2), F(3), . . . and the photosensors of the second array generate a pattern of signals S(1), S(2), S(3), . . . and wherein the photosensors of the arrays are disposed at a predetermined pitch, said system comprising:
-
means for evaluating a function f(i) expressing inconsistency between the patterns of signals, where ##EQU6## i=an integer representing the difference between a photosensor position in the first array and a photosensor position in the second array j=an integer representing a photosensor position in both arrays; means for selecting, from the integers i, a value i0 at which f(i) is minimized;
means for obtaining function values f(i0), f(i0 -1), f(i0 -2), f(i0 +1) and f(i0 +2) corresponding to i0, (i0 -1), (i0 -2), (i0 +1) and (i0 +2), respectively;means for computing an amount I from said function values, said amount I being given by formulas (1) and (2) below;
space="preserve" listing-type="equation">I=i.sub.0 +1/2-{f(i.sub.0 +1)-f(i.sub.0)}/A (1)where A=2{B1 +K1 (B1 -B2)} B1 =f(i0 -1)-f(i0) B2 =f(i0 +2)-f(i0 +1) k1 =a constant between 0 and 0.5
space="preserve" listing-type="equation">I=i.sub.0 -1/2+{f(i.sub.0 -1)-f(i.sub.O)}/C (2)where C=2{D1 +K1 (D1 -D2)} D1 =f(i0 +1)-f(i0) D2 =f(i0 -2)-f(i0 -1) K1 =a constant between 0 and 0.5; means for comparing said function value f(i0 -1) with said function value f(i0 +1) to judge whether (a) f(i0 -1)>
f(i0 +1),(b) f(i0 -1)=f(i0 +1), or (c) f(i0 -1)<
f(i0 +1); andmeans for generating a defocus signal from said amount I given by said formula (1) in the case of (a), or given by I=i0 in the case of (b), or given by said formula (2) in the case of (c), the defocus signal being used to control the position of the optical system.
-
Specification