JPS60247211A - Focus detector - Google Patents

Focus detector

Info

Publication number
JPS60247211A
JPS60247211A JP10421384A JP10421384A JPS60247211A JP S60247211 A JPS60247211 A JP S60247211A JP 10421384 A JP10421384 A JP 10421384A JP 10421384 A JP10421384 A JP 10421384A JP S60247211 A JPS60247211 A JP S60247211A
Authority
JP
Japan
Prior art keywords
output
circuit
block
minimum
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP10421384A
Other languages
Japanese (ja)
Inventor
Tokuji Ishida
石田 徳治
Katsumi Kosakai
小堺 克己
Masataka Hamada
正隆 浜田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Minolta Co Ltd
Original Assignee
Minolta Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Minolta Co Ltd filed Critical Minolta Co Ltd
Priority to JP10421384A priority Critical patent/JPS60247211A/en
Priority to US06/735,569 priority patent/US4766302A/en
Publication of JPS60247211A publication Critical patent/JPS60247211A/en
Priority to US07/120,326 priority patent/US4829170A/en
Priority to US07/186,132 priority patent/US4864117A/en
Priority to US07/628,921 priority patent/US5107291A/en
Priority to US07/757,948 priority patent/US5159383A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G02OPTICS
    • G02BOPTICAL ELEMENTS, SYSTEMS OR APPARATUS
    • G02B7/00Mountings, adjusting means, or light-tight connections, for optical elements
    • G02B7/28Systems for automatic generation of focusing signals
    • G02B7/34Systems for automatic generation of focusing signals using different areas in a pupil plane

Abstract

PURPOSE:To permit detection with good accuracy in a fine unit below the pitch of the cells in two photodetecting means by using the prescribed values determined from the output signals corresponding to the respective cells to determine an inter-image spacing. CONSTITUTION:The output signals corresponding to the respective cells of a standard part L for one line sensor are successively designated as l1-lk and the output signals corresponding to the respective cells of a reference part R for the other sensor are successively designated as r1-rm (k<m). The values A, B and C are determined by using the equation 1 when the output signal trains of the reference part R having the highest degree of coincidence with the signal trains l1-lk are designated as rq+1-rq+k. The spacing between the images on both photodetecting means is determined by using the values A-C.

Description

【発明の詳細な説明】 技術分野 本発明は、撮影レンズを通過した被写体光を受光して撮
影レンズピント状態を検出するカメラの焦点検出装置に
関する。
TECHNICAL FIELD The present invention relates to a focus detection device for a camera that detects the focus state of a photographic lens by receiving object light that has passed through a photographic lens.

従来技術 光軸に対して互いに対称な関係にある撮影レンズの第1
と第2の領域のそれぞれを通過した被写体光束をそれぞ
れ再結像させて二つの像をつくり、この二つの像の相互
位置関係をめて、結像位置の予定焦点位置からのずれ量
およびその方向(結像位置が予定焦点位置の前側か、後
側か、即ち前ピンか後ピンか)を得るようにした焦点検
出装置がすでに提案されている。このような焦点検出装
置の光学系は、第1図に示すような構成となっており、
この光学系は撮影レンズ(2)の後方の予定焦点面(4
)あるいはこの面からさらに後方の位置にコンデンサレ
ンズ(6)を有し、さらにその後方に再結像レンズ(8
> 、 (lo)を有し、各再結像レンズの結像面には
例えばCCDを受光素子として有するラインセンサ(1
2)、(14)を配しである。各ラインセンサ(12)
、(14)上の像は、第2図に示すように、ピントを合
わすべき物体の像が予定焦点面より前方に結像する、い
わゆる前ピンの場合、光軸(18)に近くなり互に近づ
き、反対に後ピンの場合、夫々光軸(18)から遠くな
る。ピンI・が合った場合、二つの像の互いに対応し合
う二点の間の間隔は、ピント検出装置の光学系の構成に
よって規定される特定の距離となる。したがって、原理
的には二つの像の間隔を検出すればピント状態が分かる
ことになる。
Prior Art The first lens of the photographic lens is symmetrical to the optical axis.
The object light beams that have passed through the first and second regions are respectively re-imaged to create two images, and the mutual positional relationship of these two images is determined to determine the amount of deviation of the image forming position from the expected focal position and its deviation. A focus detection device has already been proposed that determines the direction (whether the imaging position is in front of or behind the intended focus position, that is, whether the focus is in front or behind). The optical system of such a focus detection device has a configuration as shown in FIG.
This optical system has a planned focal plane (4) behind the photographic lens (2).
) or a condenser lens (6) further rearward from this surface, and a reimaging lens (8) further rearward thereof.
> , (lo), and on the imaging surface of each re-imaging lens there is a line sensor (1
2) and (14) are arranged. Each line sensor (12)
, (14) As shown in Fig. 2, in the case of so-called front focusing, in which the image of the object to be focused is formed in front of the intended focal plane, the images above are close to the optical axis (18) and are reciprocal. On the other hand, in the case of rear focus, they become far from the optical axis (18). When the focus I is aligned, the distance between two corresponding points of the two images is a specific distance defined by the configuration of the optical system of the focus detection device. Therefore, in principle, the focus state can be determined by detecting the distance between the two images.

ところが、単に両センサ(12) 、(14)間の相関
を各セル単位で演算しても例えばセルのピ・ソチを30
μとすれば、像間隔の検出に30μ程度の誤差を生じて
しまう。この誤差をデフォーカス量に直すと例えば1 
mm程度となり、−眼しフン・ソクスカメラにとっては
実用上支障をきたす量となる。
However, even if the correlation between both sensors (12) and (14) is simply calculated for each cell, for example, the pisochi of the cell is 30
If μ, an error of about 30 μ will occur in detecting the image interval. If this error is converted into a defocus amount, for example, 1
The amount is about mm, which is an amount that poses a practical problem for an eye-catching camera.

目 的 本発明は上述の如き欠点に鑑みてなされたものであり、
その目的は、セルのビ・ソチ以下の細かし)単位での像
間隔検出が精度良く可能な焦点検出装置を提供すること
にある。
Purpose The present invention has been made in view of the above-mentioned drawbacks,
The purpose is to provide a focus detection device that is capable of accurately detecting the image interval in units of cells (below cell resolution).

(以下余白) 犬Jift 第3図は本発明実施例のセンサの正面図である。(Margin below) dog Jift FIG. 3 is a front view of a sensor according to an embodiment of the present invention.

本実施例においては前記2つのラインセンサは、1つの
ラインセンサの異なる2つの領域を用いることによって
代用される。第3図において、(X)は撮影レンズの光
軸の通る位置を示す。光軸通過位置(X)の近くの画素
の出力は用いられない。
In this embodiment, the two line sensors are replaced by using two different areas of one line sensor. In FIG. 3, (X) indicates the position through which the optical axis of the photographic lens passes. Outputs of pixels near the optical axis passing position (X) are not used.

(1、)〜(+23)は、一方のラインセンサに対応す
る基準部(L)内の画素を示し、基準部(L)は、画素
(11)〜(Ls)の第1ブロツク(1)、画素(1)
〜(1□3)の第2ブロツク(II)、及び画素(18
)〜(+23)の第3ブロツク(III)の3つのブロ
ックに分けられる。第1及び第3ブロツク(1)(II
[)はそれぞれ16個の画素を有し、第2ブロツク(I
I)は23個の画素を有する。基準部(L)の上方には
画素上の照度をモニタする為のモニタ用受光素子が設け
られている。
(1,) to (+23) indicate pixels in the reference part (L) corresponding to one line sensor, and the reference part (L) is the first block (1) of pixels (11) to (Ls). , pixel (1)
The second block (II) of ~(1□3) and the pixel (18
) to (+23), the third block (III). 1st and 3rd block (1) (II
[) have 16 pixels each, and the second block (I
I) has 23 pixels. A monitoring light receiving element for monitoring the illuminance on the pixel is provided above the reference part (L).

(r、)〜(r3.)は、他方のラインセンサに対応す
る参照部(R)内の画素を示す。参照部(R)内の画素
数は31個であり、基準部(L)内の画素数(23個)
よりも多い。そして、基準部(L)の最も光軸通過位置
(X)から離れた位置にある画素(11)と、参照部(
R)の最も光軸通過位置(X)に近い位置にある画素(
rI)との距離をり、とする。また、撮影レンズが予定
焦点面において合焦状態にあると外は、基準部(L)の
#I42ブロック(If)の画素(l I )−(12
3)上の像が、参照部(R)の画素(r5)−(r27
)上の像と一致しているとする。この画素(r5)〜(
r2.)を参照部(R)における合焦ブロック(F)と
し、基準部(L)の第2ブロツク(II)の中央にある
画素(++□)と、参照部(R)の合焦ブロック(F)
の中央にある画素(r3.)との相離、すなわち、合焦
検出時の像間隔をL2とする。
(r,) to (r3.) indicate pixels in the reference section (R) corresponding to the other line sensor. The number of pixels in the reference part (R) is 31, and the number of pixels in the reference part (L) is 23.
more than Then, the pixel (11) located at the farthest position from the optical axis passing position (X) of the reference part (L) and the reference part (
The pixel (R) located closest to the optical axis passing position (X)
Let the distance from rI) be ri. Furthermore, when the photographic lens is in focus on the planned focal plane, the outside is the pixel (l I )-(12
3) The image above shows pixels (r5)-(r27) of the reference part (R).
) corresponds to the image above. This pixel (r5) ~ (
r2. ) is the focused block (F) in the reference part (R), and the pixel (++□) at the center of the second block (II) in the reference part (L) and the focused block (F) in the reference part (R) )
Let L2 be the separation from the pixel (r3.) at the center of the image, that is, the image interval at the time of focus detection.

第4図は、本実施例の回路の一部を示し、特に第3図図
示のセンサからデータが読込まれ、基準部(L)の第2
ブロツク(II)と参照部(R)との相関が検出される
回路ブロック(A)を中心に示す。第4図において、(
Se)は第3図図示の如ICCDラインセンサを示し、
その各画素の積分データはそれぞれ順にA−D変換回路
(20)によってデイジタル量に変換される。
FIG. 4 shows a part of the circuit of this embodiment. In particular, data is read from the sensor shown in FIG.
The circuit block (A) in which the correlation between the block (II) and the reference part (R) is detected is mainly shown. In Figure 4, (
Se) indicates the ICCD line sensor as shown in Fig. 3,
The integral data of each pixel is sequentially converted into a digital quantity by an AD conversion circuit (20).

この様子を第5図の70−チャートにて示すと、まず、
ステップS1でAFスイッチが閉成されると、ステップ
S2でセンサ(S e)の各画素に流れる光電流が積分
され、ステップS3で各画素の積分データがグンプされ
るとともに、ステップS、で各画素の積分データが順に
A−D変換回路(20)によりディジタル化される。こ
の積分データを順にSiとすると、第4図の比較回路(
22)で、各積分データSiが、予め定められた定数a
1よりも大きいか否かが検出される。そして、全積分デ
ータSiのいずれか1つでも定数a1よりも大きければ
フラグ(Fl)がセットされて、その出力が“1″にな
る。逆に言えば、積分データSiが全て定数a、よりも
小さい場合にのみ、フラグ(F +)はセットされず、
その出力はO″のままとなる。(Ijl&5図ステッジ
ステップS5 すなわち、比較回路(22)及びフラグ(F、)は、被
写体輝度レベルが所定値以上あるか否かを判断する輝度
レベル検出手段を構成しており、全画素の一つでも所定
値以上の輝度レベルがあれば、合焦検出に充分な輝度が
あると判断されて、フラグ(F、)がセットされる。
This situation is shown in the 70-chart in Figure 5. First,
When the AF switch is closed in step S1, the photocurrent flowing through each pixel of the sensor (S e) is integrated in step S2, and the integral data of each pixel is summarized in step S3. The integral data of the pixels are sequentially digitized by the AD conversion circuit (20). Letting this integral data be Si in order, the comparison circuit in Fig. 4 (
22), each integral data Si is set to a predetermined constant a
It is detected whether the value is greater than 1 or not. If any one of the total integral data Si is larger than the constant a1, a flag (Fl) is set and its output becomes "1". Conversely, the flag (F +) is not set only when all the integral data Si are smaller than the constant a,
The output remains O''. (Ijl & 5 Figure Stage Step S5) In other words, the comparison circuit (22) and the flag (F,) are a brightness level detection means for determining whether the subject brightness level is equal to or higher than a predetermined value. If even one of all pixels has a luminance level equal to or higher than a predetermined value, it is determined that there is sufficient luminance for focus detection, and a flag (F,) is set.

更に、積分データSiは、RAMからなるメモリ回路(
24)に入力されて、各画素(11)〜(+23)(r
、)〜(r3.)に対応するアドレスにそれぞれメモリ
される。(第5図ステップS?) 以後、各画素(1)〜(I2a)b、)〜(r、)に対
応する積分データを、順に、1.1□、・・・・・・、
+23、r3、r2、・・・・・・、r31とする。演
算回路(26)は、各データを用いて下記計算を行う。
Furthermore, the integral data Si is stored in a memory circuit (RAM) (
24) and each pixel (11) to (+23)(r
, ) to (r3.), respectively. (Step S in Fig. 5?) After that, the integral data corresponding to each pixel (1) to (I2a)b, ) to (r,) are sequentially 1.1□, . . .
+23, r3, r2, ..., r31. The arithmetic circuit (26) performs the following calculation using each data.

(第5図ステ・ンプ5a) H2(N)=月1 l L −rHl 十l L3−r
H+22 l 1但し、ここでH2(N)の添字、は基
準部(L)の第2ブロツク(n)が用いられることを示
し、N=1.2、・・・・・・、9である。上記計算に
つVlで更に詳しく説明すると、まず、N=1のどき7
− H2(1)=+I l+−r+ l +l 12−r2
1 十113−r+ l +・=+I l□2−r2□
l +FI h:+−r231・・・・・・(2) とする。すなわち、これは画素(11)と(r、)との
出力差の絶対値、(1□)と(r2)との出力差の絶対
値、・・・・・・、画素(+2−)と(r23)との出
力差の絶対値をめ、両端の値だけそれぞれ半分にして全
体の和をめたことになる。
(Figure 5 Step 5a) H2 (N) = Month 1 l L -rHl 10 l L3-r
H+22 l 1 However, here, the subscript H2 (N) indicates that the second block (n) of the reference part (L) is used, and N = 1.2, ..., 9. . To explain the above calculation in more detail using Vl, first, when N=1, 7
- H2(1)=+I l+-r+ l +l 12-r2
1 1113-r+ l +・=+I l□2-r2□
l +FI h:+-r231 (2). In other words, this is the absolute value of the output difference between pixels (11) and (r,), the absolute value of the output difference between (1□) and (r2), ..., the absolute value of the output difference between pixels (+2-) and This means that the absolute value of the output difference with (r23) is calculated, the values at both ends are each halved, and the total sum is calculated.

次に、N=2のときには、 H2(2)=+l II−r21 + I l□−rs
 I +l 1+−r4 I +・=+l I2□−r
z* l +FI 12a−r2n I・・・・・・(
3) が計算される。これは、(11)と(r2)、(12)
と(r、)、・・・・・・(123)と(r2.)とい
うように、H2(1)の場合から第2ブロツクの画素(
11)〜(lz*)を参照部(R)に対して1画素分だ
け右方ヘシフトさせて各画素間の相関をとり、両端だけ
を半分にして全体の和をめたことになる。以下、N=3
.4.5、・・・8− ・・・、9のと鰺は、それぞれ、N=1のときの差演算
状態から、第2ブロツク(II)の画素列を右方に2.
3.4、・・・・・・、8画素分シフトさせて相関をめ
たことになる。ここで、H2(N)を比較データと呼び
、Nをシフト量と呼ぶと、上記計算によって、第2ブロ
ツク(II)をずらす量が0画素の場合(N=1)から
8画素の場合(N = 9 )までの9通りの比較デー
タがめられる。この比較データは、比較される両画素列
上の像が互いに全く等しいときにゼロとなり、画像のず
れが大きくなるにつれて大トな値となる。
Next, when N=2, H2(2)=+l II-r21 + I l□-rs
I +l 1+-r4 I +・=+l I2□-r
z* l +FI 12a-r2n I・・・・・・(
3) is calculated. This is (11), (r2), (12)
From the case of H2(1), the pixels of the second block (
11) to (lz*) are shifted to the right by one pixel with respect to the reference portion (R), the correlation between each pixel is calculated, only both ends are halved, and the total sum is calculated. Below, N=3
.. 4.5, . . . 8- . . . , and 9, the pixel columns of the second block (II) are moved 2.
3.4,..., this means that the correlation has been established by shifting by 8 pixels. Here, if H2(N) is called the comparison data and N is called the shift amount, the above calculation shows that when the amount to shift the second block (II) is 0 pixels (N=1) to 8 pixels ( Nine types of comparison data (up to N = 9) can be viewed. This comparison data becomes zero when the images on both pixel columns to be compared are completely equal to each other, and increases in value as the image shift increases.

(1)式の計算において画素列の両端における出力差の
絶対値を半分にするのは、その項が比較データH2(N
)に及ぼす影響を他の項の半分にする為である。これに
ついては、後に詳細に説明する。
The reason why the absolute value of the output difference at both ends of the pixel row is halved in the calculation of equation (1) is that the term is the comparison data H2 (N
) is to reduce the influence on the other terms to half that of other terms. This will be explained in detail later.

演算回路(26)で演算された比較データH2(N)は
、シフト量Nとともにメモリ回路(28)にメモリされ
る。(N=1.2、・・・・・・、9)そして、最小値
検出回路(30)によって、9個の比較データH2(N
)のうち最小値をとるものが検出される。
The comparison data H2(N) calculated by the calculation circuit (26) is stored in the memory circuit (28) together with the shift amount N. (N=1.2,...,9) Then, the minimum value detection circuit (30) collects nine comparison data H2(N
) that takes the minimum value is detected.

この最小値をとる比較データをH2(n)とし、そのと
きのNを最小シフト量nと定義する。(nは1.2、・
・・・・・、9のいずれか)この最小比較データH2(
n)は最小シフト量nとともにメモリ回路(32)にメ
モリされる。(第5図ステップS9)次ニ、メモリ回路
(24)lこメモリされた各画素に対応する積分データ
11.12、”・”’ + 23、rtq r2、・・
・・・・、r3.と、メモリ回路(32)にメモリされ
た最小比較データH2(n)及び最小シフト量nとに基
づいて、演算回路(34)により下式の演算がなされる
。(第5図ステップS5.) Q これは、像間隔の検出精度をより高める為の演算である
゛。例えば、いま、シフト量Nと比較データH2(N 
)とが第6図の如軽関係にあるとする。
The comparison data that takes this minimum value is defined as H2(n), and N at that time is defined as the minimum shift amount n. (n is 1.2,
..., any of 9) This minimum comparison data H2 (
n) is stored in the memory circuit (32) together with the minimum shift amount n. (Step S9 in FIG. 5) Next, the memory circuit (24) stores integral data 11.12, "・"' + 23, rtq r2, . . . corresponding to each memorized pixel.
..., r3. Based on the minimum comparison data H2(n) and the minimum shift amount n stored in the memory circuit (32), the calculation circuit (34) performs the following calculation. (Step S5 in FIG. 5.) Q This is a calculation to further improve the detection accuracy of the image interval. For example, now, the shift amount N and the comparison data H2 (N
) are in the light-weight relationship shown in Figure 6.

すると、最小比較データHz(n)はH2(3)であり
、最小シフト量nは3である。ところが、実際の比較デ
ータH2(N )は図示点線のように変化しで1するか
もしれない。その場合、n”3を用(1て像間隔の検出
を行うと誤差を生じる。すなわち、最小シフト量nをそ
のまま用いて像間隔の検出を行うと、その単位は画素間
のピッチとなり、それより細かい精度を得ることはでき
ない。S系間のピッチを小さくすれば精度を向上させる
ことができるが、CCD製造上、それには限界がある。
Then, the minimum comparison data Hz(n) is H2(3), and the minimum shift amount n is 3. However, the actual comparison data H2(N) may change and become 1 as shown by the dotted line in the figure. In that case, if the image interval is detected using n"3 (1), an error will occur. In other words, if the minimum shift amount n is used as is to detect the image interval, the unit will be the pitch between pixels, and Finer precision cannot be obtained.The precision can be improved by reducing the pitch between the S systems, but there is a limit to this in terms of CCD manufacturing.

そこで、本実施例においては、n−1とnとの開、及び
nとn+1との間において、比較データが、最小比較デ
ータHz(n)よりも更に小さくなる場合を見い出し、
画素のピッチよりもより細かい単位で像間隔を検出でき
るようにしている。
Therefore, in this embodiment, we found a case where the comparison data becomes even smaller than the minimum comparison data Hz(n) between n-1 and n and between n and n+1.
The image interval can be detected in units finer than the pixel pitch.

以下、この(4)(5)式の演算についで更に詳しく説
明する。いま。例として、N=3のときに比較データH
2(N)が最小となったとする。従って、最小比較デー
タはH2(3)であり、n=3である。
The calculations of equations (4) and (5) will be explained in more detail below. now. As an example, when N=3, the comparison data H
Suppose that 2(N) is the minimum. Therefore, the minimum comparison data is H2(3) and n=3.

(1)式に基づいて、H2(3)は、 H2(3)= + I L−r3I +12−r< l
 ++ 13−rz 1 +・=+ I 122−r2
41 + F l hs r2s l・・・・・・(6
) 11− となる。一方、(4)式の演算を行うと、h2(2)=
 112−r+ I + 113−r4 + +・・・
++ 123− r24I ・・・・・・(7)がめら
れ、(5)式の演算を行うと、 h2(4)” I II−r41 + 112−rz 
1 +”・+112□−r2,1 ・・・・・・(8)
がめられる。(6)式と(7)(8)式との各項をそれ
ぞれ比較すると、(6)式の両端の項を無視すれば、(
7)(8)式によってシフト量がn−1(すなわち2)
の場合の比較データ112(2)とシフト量がn+1(
すなわち4)の場合の比較データh2(4)とがめられ
たことがわかる。但し、(7)(8)式においては、両
端の項の値を半分にされていない代わりに、(6)式に
比べて項の数を1つ減じである。
Based on equation (1), H2(3) is: H2(3)=+I L-r3I +12-r<l
++ 13-rz 1 +・=+ I 122-r2
41 + F l hs r2s l... (6
) 11- becomes. On the other hand, when calculating equation (4), h2(2)=
112-r+ I + 113-r4 + +...
++ 123- r24I ...... (7) is calculated and formula (5) is calculated, h2 (4)" I II-r41 + 112-rz
1 +”・+112□−r2,1 ・・・・・・(8)
I get criticized. Comparing each term in equation (6) and equations (7) and (8), we find that if we ignore the terms at both ends of equation (6), (
7) According to equation (8), the shift amount is n-1 (i.e. 2)
Comparison data 112(2) in case of and shift amount is n+1(
In other words, it can be seen that the comparison data h2(4) in case 4) was condemned. However, in equations (7) and (8), the values of the terms at both ends are not halved, but the number of terms is reduced by one compared to equation (6).

従って、(6)式で演算されるh2(3)と(7)(8
’)式で演算されるh2(2)とh2(4)とは同スケ
ールであり、係数を乗することなく直接その大小を比較
することがでトる。
Therefore, h2 (3) and (7) (8
h2(2) and h2(4) calculated by the formula ') are on the same scale, and their magnitudes can be directly compared without multiplying them by coefficients.

12− ここで、次に、h2(n 1)、h、、(n+1)を用
いでH2(n)よりも更に小さい比較データの値をめる
理由について、第7図のグラフに基づいて説明する。同
グラフにおいて、横軸は画素のナンバーkを示し、縦軸
はその画素の出力信号を示す。線(al)は画素(It
 )−(+23)+7)出力信号を示し、線(a2)は
画素(11)〜12.)上の像と最も相関度の高い像を
受光する画素(r )〜b )の出力信号t t+22 を示す。(t=1.2、・・・・・・、9) 一方、線
(a3)は画素”t+1)〜(rt+1+22)の出力
信号を示し、線(a、)は画素(r t−t)〜(rt
−1+22)の出力信号を示す。いま、例として、画素
(11)〜(123)上の像と画素(rz)〜(r27
)上の像とが最も相関度が高いとすると、t=5であり
、破線(a2)は画素(rz)〜b=、)の出力信号を
示す。
12- Next, we will explain the reason for using h2(n 1), h, , (n+1) to obtain a value of comparison data that is even smaller than H2(n), based on the graph in Figure 7. do. In the graph, the horizontal axis indicates the pixel number k, and the vertical axis indicates the output signal of that pixel. The line (al) is the pixel (It
)-(+23)+7) output signal, and line (a2) represents pixels (11) to 12. ) shows the output signal t t+22 of the pixels (r ) to b ) which receive the image having the highest correlation with the image above. (t=1.2,...,9) On the other hand, line (a3) shows the output signal of pixels "t+1) to (rt+1+22)", and line (a,) shows the output signal of pixel "t+1) to (rt+1+22)" ~(rt
-1+22) output signal is shown. Now, as an example, images on pixels (11) to (123) and pixels (rz) to (r27)
) has the highest correlation with the image above, t=5, and the broken line (a2) indicates the output signal of the pixel (rz) to b=, ).

ここで、画素(1,)〜(+23)の出力信号と画素(
rl)〜(r2=)の出力信号との相関度■(1)は、
I (1)=I It−r+ l ++ I□−rz 
I +−+3 I 123−r2a I =Σ11に−rk1・・・・
・・(9)k=1 となる。次に、参照部(R)の画素列を1画素だけずら
せたときの相関度I(2)は、 となり、同様にして、■(3)〜■(9)が考えられる
。そして、前述のように、画素(1)〜(1□3)と画
素(r5)〜(rz。)との相関度■(5)が最も高い
とする。この■(5)は、k=1〜23の区間において
、線(α1)と(α2)とで囲まれた面積に相当する。
Here, the output signals of pixels (1,) to (+23) and the pixel (
The correlation degree ■(1) with the output signal of rl) to (r2=) is
I (1)=I It-r+ l ++ I□-rz
I +-+3 I 123-r2a I = Σ11 to -rk1...
...(9)k=1. Next, when the pixel row of the reference part (R) is shifted by one pixel, the correlation degree I(2) is as follows. Similarly, (3) to (9) can be considered. As described above, it is assumed that the correlation degree ■(5) between pixels (1) to (1□3) and pixels (r5) to (rz.) is the highest. This (5) corresponds to the area surrounded by lines (α1) and (α2) in the section of k=1 to 23.

次に、■(4)を考えると、 であり、これは、k=1〜23の区間において線((Z
、)と(a、)として囲まれた面積81に相当する。
Next, considering ■(4), we have the following, which means that the line ((Z
, ) and (a,) correspond to the area 81 surrounded by.

一方、■(6)は、 であり、これは、k=1〜23の区間において線(a、
)と(a、)として囲まれた面積82に相当する。
On the other hand, ■(6) is, which means that the line (a,
) and (a,).

ところで、グラフから明らかであるが、面積S1と82
は等しくない。尚、k=1〜23の区間で、#!Icc
I 、)(ff 2)(ff 、)(04)が全て直線
であれば面積81と82は互いに等しくなる。しかし、
一般的には、そのように直線となるような像が受光され
ることはほとんどないと考えられる。従って、一般的に
面積81と82は等しくならない場合がほとんどである
と考えられる。尚、Slと82との面積が一般的には等
しくならないのは、基準部と相関がとれる参照部上の像
との関係が■(9)とI(10)との場合において、k
=1〜3の区間、及びに=21〜23の区間で異なるか
らである。
By the way, it is clear from the graph that the areas S1 and 82
are not equal. In addition, in the interval k=1 to 23, #! Icc
If I , )(ff 2)(ff , )(04) are all straight lines, areas 81 and 82 will be equal to each other. but,
Generally, it is considered that such a straight image is rarely received. Therefore, it is generally considered that the areas 81 and 82 are not equal in most cases. Incidentally, the areas of Sl and 82 are generally not equal because the relationship between the image on the reference part that can be correlated with the standard part is k (9) and I (10).
This is because it is different in the interval from =1 to 3 and the interval from =21 to 23.

そこで、面積81からに=1〜2の区間で線(al)と
(a3)とではさまれる部分の面* S 3を除き、ま
た、面積82からに=22−23の区間で線(a、)と
(a4)とではさまれる部分の面積84を除いたものを
考えると 8l−83=S2−84 ・・・・・・(13)が成立
することが、グラフから分かる。ここで、S + −8
3は、 15− 3 S + ’−S a =ΣIIk−r、31 町−(1
4)k=2 2 S 2−84 =kZ、目に一’に+5f ・旧・−(
15)で示される。
Therefore, from the area 81, remove the surface *S 3 of the part sandwiched between the lines (al) and (a3) in the section = 1 to 2, and from the area 82, in the section = 22-23, line (a , ) and (a4) excluding the area 84, it can be seen from the graph that 8l-83=S2-84 (13) holds true. Here, S + -8
3 is 15-3 S + '-S a =ΣIIk-r, 31 town-(1
4) k=2 2 S 2-84 = kZ, +5f to 1' ・Old ・-(
15).

線(α、)と(α2)とが重なる場合は、以上に考察し
たように(13)式が成立するが、重ならない場合は成
立しない。しかし、線(a、)と(a2)とが重ならな
い場合であっては、(4)式と(5)式とで示される二
つの値の不一致性よりも(14)式と(15)式とで示
される二つの値の不一致性との方が弱い傾向にある。い
い換えれば後者の方の一致性の方が強いということがで
きる。
When the lines (α, ) and (α2) overlap, equation (13) holds true as discussed above, but does not hold when they do not overlap. However, in the case where lines (a,) and (a2) do not overlap, the difference between equations (14) and (15) There is a tendency that the discrepancy between the two values shown by the formula is weaker. In other words, the consistency of the latter is stronger.

基準部の一つのブロックの像を参照部の像と対比し、あ
る対比の番目で両者の相関が最も高くなる場合、その番
目の画素1ピッチ分だけ前後の対比における各対比結果
は互いに一致するものと期待する立場をとれば、焦点位
置を検出するための情報として(14)式、(15)式
の値を(11)式、(12)式の値に代えて用いる方が
好ましい。
When the image of one block of the standard part is compared with the image of the reference part, and the correlation between the two is highest at a certain contrast number, the contrast results of the contrasts before and after that pixel by one pitch agree with each other. If one expects this to be true, it is preferable to use the values of equations (14) and (15) in place of the values of equations (11) and (12) as information for detecting the focal position.

このような考察から、焦点位置を検出する最終16− の過程においては、相関が最も病い対比の番目の画素1
ピッチ分だけ前後の対比結果として、(14)、(15
)式で示されるような内容を持つ値を採用する。
From this consideration, in the final 16-step process of detecting the focus position, the correlation is the worst and the contrast pixel 1
As the comparison results before and after by the pitch, (14), (15
) Adopt a value with the content shown in the formula.

第2ブロツクについては、最小シフト量nにおいて最小
比較データH2(n)が得られるとすれば、n−1番目
とn+1番目の対比結果をh2(n−1)、h2(n+
 1 )と置くと、それぞれは、h2(n+ 1)= 
1+2 r l + 112 ’n+1’ 十・・・+
11□3−r 1 n+21 3 =Σ” k ’に+n−2’ ・・・・・・(16)k
=2 L(n+1)= l It −rn+1’ +112 
r 、+21 +”’+1122−r 1 n+22 となり、これらが焦点検出位置の決定のための情゛報と
しで用いられる。
Regarding the second block, if the minimum comparison data H2(n) is obtained with the minimum shift amount n, then the n-1st and n+1st comparison results are h2(n-1), h2(n+
1), then h2(n+1)=
1+2 r l + 112 'n+1' ten...+
11□3-r 1 n+21 3 = Σ"k' + n-2' ...... (16) k
=2 L(n+1)= l It -rn+1' +112
r , +21 +''+1122-r 1 n+22 , and these are used as information for determining the focus detection position.

ここで、(9)、(10)式で示すような対比を見ると
各式の右辺はそれぞれ23個の項から成っている。他方
、(16)、(17)式を見ると各式の右辺は22個の
項から成っている。つまり、前者と後者とにおいては項
数において1個分の差がある。
Here, looking at the comparison shown in equations (9) and (10), the right-hand side of each equation consists of 23 terms. On the other hand, looking at equations (16) and (17), the right side of each equation consists of 22 terms. In other words, there is a difference of one term in the number of terms between the former and the latter.

(9)式を再び示すと、 ! (1)= l I、−rl l +112−r2 
l +−・・+1123 r231 であるが、この式の右辺の第1項と最後の項の重みを他
の項に対して半分にした式I’(1)を考えると、 I’ (1)”F I L rl l + + +2 
r21 +−+ l Its rlsl ++l 12
3 r2:+l −”・(18)このようにすると、(
18)式の右辺において、第1項と最後の項とを合わせ
た重みは1となり、重み1の項が合計22個存在すると
見ることかで1きるようになる。そこで、焦点位置を決
定する情報として、最も一致度が高いことを示す。対比
結果をめる方法として、(9)式で示すような計算方法
でなく、(18)式で示すような計算方法を用いること
にする。
Showing equation (9) again, ! (1) = l I, -rl l +112-r2
l +-...+1123 r231 However, considering the formula I' (1) in which the weight of the first and last term on the right side of this formula is halved relative to other terms, I' (1) “F I L rl l + + +2
r21 +-+ l Its rlsl ++l 12
3 r2:+l −”・(18) In this way, (
On the right side of equation 18), the combined weight of the first term and the last term is 1, which can be calculated by considering that there are a total of 22 terms with a weight of 1. Therefore, the information with the highest degree of coincidence is shown as information for determining the focal position. As a method of calculating the comparison result, we will use the calculation method shown in equation (18) instead of the calculation method shown in equation (9).

こうして、第1、第2、第3プロ・ンクにつblて、そ
れぞれ次式で示される計算を行うのである。
In this way, calculations shown by the following equations are performed for the first, second, and third procs, respectively.

H+(N)= ’ (l It−rN+8’ + I 
1.5−rN+23’ )5 +Σ” k−rk+n+7 ’ に=2 ・・・・・・(19) ただし、N=1.2、・・・・・・8、H2(N)= 
’ (I l+ rHl + 1123−rN+22’
 12 +Σ” k−rk十N+1 ’ に=2 ・・・・・・(20) ただし、N=1.2、・・・・・・、919− 2 +Σ”k−rk+N−8’ に=9 ・・・・・・(21) ただし、N=1.2、・・・・・・、8である。
H+(N)=' (l It-rN+8' + I
1.5-rN+23' )5 +Σ''k-rk+n+7'=2...(19) However, N=1.2,...8, H2(N)=
'(I l+ rHl + 1123-rN+22'
12 +Σ"k-rk+N+1'=2...(20) However, N=1.2,...,919-2+Σ"k-rk+N-8'=9 ......(21) However, N=1.2, ..., 8.

最小比較データH2(n)と(4)(5)式でめられた
hz(n−1)、hz(n+ 1 )との大小関係は種
々の場合が考えられる。但し、hz(n−1)、hz(
n+1)≧H2(n)である。この種々の場合を第8図
に(a)(b)(e)(d)で示す。第8図において、
横軸はシフト量(N)を示し、縦軸はH2(N )、及
びhz(n−1)、hz(n+ 1 )の値を示す。第
8図(a)は、hz(n−1)=h2(n+ 1 )の
場合を示し、この場合には、H2(n)が真に最小であ
ると認められる。第8図(b)は、hz(n −1) 
< h□(n+1 )の場合を示し、この場合には、真
の最小比較データはn−1とnとの間にある。
Various cases can be considered regarding the magnitude relationship between the minimum comparison data H2(n) and hz(n-1) and hz(n+1) determined by equations (4) and (5). However, hz(n-1), hz(
n+1)≧H2(n). These various cases are shown in FIG. 8 as (a), (b), (e), and (d). In Figure 8,
The horizontal axis shows the shift amount (N), and the vertical axis shows the values of H2(N), hz(n-1), and hz(n+1). FIG. 8(a) shows the case where hz(n-1)=h2(n+1), and in this case, it is recognized that H2(n) is truly the minimum. FIG. 8(b) shows hz(n −1)
The case of <h□(n+1) is shown, in which case the true minimum comparison data is between n-1 and n.

第8図(e)は、hz(n 1 )> H2(n)=h
2(n+ 1 )の場合を示し、この場合には、真の最
小比較データはnとn+1との中間に存在する。第8図
(d)は、20− $8図(b)とは逆にhz(n 1 )>hz(n+1
 )ノ場合を示し、この場合には、真の最小比較データ
はnとn+1との間にある。但し、第8図は理想状態を
示し、真の最小比較データはゼロになるように示されて
いるが、実際には、レンズの収差などによってゼロには
ならない。また、第8図(C)のように比較データの最
小値が2個検出される場合には、必ずnが小さい方の比
較データが最小比較データとされる。従って、Hz(n
)= hz(n 1 )の場合は存在しない。
FIG. 8(e) shows hz(n 1 )> H2(n)=h
2(n+1), in which the true minimum comparison data exists between n and n+1. In Fig. 8(d), hz(n 1 )>hz(n+1
), in which the true minimum comparison data is between n and n+1. However, although FIG. 8 shows an ideal state and the true minimum comparison data is shown to be zero, in reality it does not become zero due to lens aberrations and the like. Further, when two minimum values of comparison data are detected as shown in FIG. 8(C), the comparison data with smaller n is always determined as the minimum comparison data. Therefore, Hz(n
) = hz(n 1 ) does not exist.

第4図に戻って、演算回路(34)で演算されたり、(
n−1)及びhz(n+ 1 )のデータはメモリ回路
(36)に入力されてメモリされる。メモリ回路(32
)にメモリされた最小比較データH2(n)と、メモリ
回路(36)にメモリされたhz(n−1)及びhz(
n+ 1 )のデータとは、演算回路(38)に入力さ
れて、下記演算がなされる。(第5図ステップS目) Y2=H2(n) l ’ ”” l ・・・・・・(22) この式は、第6図にPで示される真の最小ピークにおけ
る比較データH2(N)の値Y2をめるものである。こ
の値Y2を最小ピーク値と呼ぶ。添字、は、第2ブロツ
ク(II)を用いた検出であることを示す。
Returning to FIG. 4, the arithmetic circuit (34) calculates, (
The data of n-1) and hz(n+1) are input to the memory circuit (36) and stored in memory. Memory circuit (32
), and hz(n-1) and hz(
The data of n+1) is input to the arithmetic circuit (38), and the following arithmetic operation is performed. (Step S in Figure 5) Y2=H2(n) l'"" l ......(22) This formula calculates the comparison data H2(N ) is calculated by adding the value Y2. This value Y2 is called the minimum peak value. The subscript indicates detection using the second block (II).

最小ピーク値Y2のめ方を、第9図を用いて説明する。How to calculate the minimum peak value Y2 will be explained using FIG. 9.

第9図図示のように、横軸にシフト量n、縦軸に比較デ
ータの値をとるとき、最小比較データに対応する点D1
の座標は(n、 H2(n))で示され、F2(n i
)に対応する点D2の座標は(n−1、F2(n 1 
>)で示され、F2(n+ 1 )に対応する点り。
As shown in FIG. 9, when the horizontal axis is the shift amount n and the vertical axis is the comparison data value, the point D1 corresponding to the minimum comparison data
The coordinates of are denoted by (n, H2(n)) and F2(n i
) The coordinates of point D2 corresponding to (n-1, F2(n 1
>) and corresponds to F2(n+1).

の座標は(n+1、F2(n+1 ))で示される。点
D1と点D2とを結ぶ直線り、は、両点の座標を用いて
あられされ、この直線F1上にされるピークPが存在す
るとする。一方、点Pと点D3とを結ぶ直線L2は、直
線L2と勾配が等しく符号が逆の傾きを有するとする。
The coordinates of are indicated as (n+1, F2(n+1)). A straight line connecting points D1 and D2 is calculated using the coordinates of both points, and it is assumed that there is a peak P that lies on this straight line F1. On the other hand, it is assumed that a straight line L2 connecting point P and point D3 has a slope equal to and opposite in sign to the straight line L2.

すると、この2本の直線L1、F2の交点の座標として
最小ピーク値Y2がめられるのである。第4図に戻って
、このようにしてめられた最小ピーク値Y2はメモリ回
路(40)にメモリされる。この最小ピーク値Y2は、
第2ブロツク(n)を用いで検出された最小比較データ
H2(n)が信頼できるか否かを判断する為に用いられ
る。
Then, the minimum peak value Y2 is determined as the coordinate of the intersection of these two straight lines L1 and F2. Returning to FIG. 4, the minimum peak value Y2 thus determined is stored in the memory circuit (40). This minimum peak value Y2 is
This is used to determine whether the minimum comparison data H2(n) detected using the second block (n) is reliable.

更に、本実施例においては、第2ブロツク(II)を用
いて検出された最小比較データ(n)が信頼できるか否
かを判断する為に、第2ブロツク(U)上の像のコント
ラストが検出される。(42)は、コントラスト検出回
路を示し、基準部(L)の第2ブロツク(II)内にお
いて、隣接する2つの画素間の出力差の総和として、コ
ントラスト値C2が演算される。(第5図ステップ81
2) すなわち、2 C2=ΣNk ’に+1’ ・・・・・・(23)k=
1 である。添字、は第2ブロツク(II)に関する値であ
ることを示す。演算されたコントラスト値C223− は、メモリ回路(44)にメモリされる。メモリ回路(
44)にメモリされたコントラスト値C2は、被写体の
コントラストが合焦検出に適当であるか否かの判断の為
にも用いられる。すなわち、被写体のコントラストが低
すぎると、第2ブロツク(II)上の像と、それとも比
較される参照部(R)上の像とは一致していないのに、
最小ピーク値Y2が検出されて像間隔の検出がなされて
しまうことが生じる。
Furthermore, in this embodiment, in order to determine whether the minimum comparison data (n) detected using the second block (II) is reliable, the contrast of the image on the second block (U) is Detected. (42) indicates a contrast detection circuit, in which a contrast value C2 is calculated as the sum of output differences between two adjacent pixels in the second block (II) of the reference section (L). (Figure 5 Step 81
2) That is, 2 C2=ΣNk'+1'...(23)k=
It is 1. The subscript indicates a value related to the second block (II). The calculated contrast value C223- is stored in the memory circuit (44). Memory circuit (
The contrast value C2 stored in step 44) is also used to determine whether the contrast of the subject is appropriate for focus detection. In other words, if the contrast of the object is too low, the image on the second block (II) and the image on the reference part (R) to be compared will not match.
It may happen that the minimum peak value Y2 is detected and the image interval is detected.

そこで、コントラスト検出回路(44)で検出されたコ
ントラスト値C2は、比較回路(46)に入力されて、
定数a5より大きいか否がが判断される。
Therefore, the contrast value C2 detected by the contrast detection circuit (44) is input to the comparison circuit (46), and
It is determined whether or not it is greater than a constant a5.

(第5図ステップ814) ここで定数a5は、被写体
像が合焦検出に適当なコントラストを有しているときに
は、検出されたコントラスト値C2がC5よりも大きく
なるように定められる。コントラスト値C2が定数85
よりも大きい場合(すなわちC2≧as)、比較回路(
46)の出力によって7ラグ(F、)がセットされ、そ
の出力が1″となる。つまり、被写体像のコントラスト
が合焦検出に適当な場合24− には、フラグ(F5)の出力が“1”となり、不適当な
場合には“0”となる。
(Step 814 in FIG. 5) Here, the constant a5 is determined so that the detected contrast value C2 becomes larger than C5 when the subject image has a contrast suitable for focus detection. Contrast value C2 is constant 85
(i.e. C2≧as), the comparator circuit (
7 lag (F, ) is set by the output of 46), and its output becomes 1". In other words, when the contrast of the subject image is suitable for focus detection 24-, the output of the flag (F5) becomes " It becomes "1", and becomes "0" if it is inappropriate.

一方、メモリ回路(44)にメモリされたコントラスト
値C2は、演算回路(48)にも入力され、定数a2、
C3、C4がそれぞれ乗ぜられて、C2C2、a 3 
C2、a 4 C2がめられ、これらがメモリされる。
On the other hand, the contrast value C2 stored in the memory circuit (44) is also input to the arithmetic circuit (48), and the constant a2,
C3 and C4 are multiplied respectively, C2C2, a 3
C2, a 4 C2 are determined and these are stored in memory.

ここで、定数a2、C3、a、は、種々の条件に応じて
最小比較データH2(n)が信頼で島るか否かを判断す
るレベルを異ならしめる為に定められたものであり、C
2<as<a<の関係が成立している。この演算回路(
48)によって演算されたC2C2、C3C2、C4C
2を、順に、第1判定レベル、第2判定レベル、及び#
 31!!定レベルと呼ぶ。各判定レベルa2C2、a
、、C3、C4C4は、それぞれ、比較回路(50)に
入力され、メモリ回路(40)からの最小ピーク値Y2
との大小関係が比較される。そして、最小ピーク値Y2
が第1判定レベルC2C2より小さいときは、比較回路
(50)の出力によって7ラグ(F2)がセットされ、
その出力が“1”となる。更に、最小ピーク値Y2が第
2判定レベルC3C2より小さいときには、比較回路(
50)の出力によって7ラグ(F3)がセットされ、そ
の出力が“1”となる、*た、最小ピーク値Y2が第3
判定レベルa4C2より小さいときには、比較回路(5
0)の出力によって7ラグ(F4)がセットされ、その
出力が“1”となる。
Here, the constants a2, C3, and a are determined to vary the level at which it is determined whether the minimum comparison data H2(n) is reliable or not according to various conditions, and C
The relationship 2<as<a< holds true. This arithmetic circuit (
C2C2, C3C2, C4C calculated by 48)
2, in order, the first determination level, the second determination level, and #
31! ! This is called a fixed level. Each judgment level a2C2, a
, , C3, C4C4 are respectively input to the comparator circuit (50), and the minimum peak value Y2 from the memory circuit (40)
The size relationship between the two is compared. And the minimum peak value Y2
When is smaller than the first judgment level C2C2, 7 lag (F2) is set by the output of the comparator circuit (50),
Its output becomes "1". Furthermore, when the minimum peak value Y2 is smaller than the second judgment level C3C2, the comparison circuit (
7 lag (F3) is set by the output of 50), and its output becomes "1".
When the judgment level is lower than a4C2, the comparison circuit (5
7lag (F4) is set by the output of 0), and its output becomes "1".

すなわち、a2 < a3< a<であるから、Y2≦
a2C2のときには3個の7ラグ(F2)(F、)(F
、)は全てセットされ、a2C2<Y2≦a3C2のと
きにはフラグ(F2)(F3)がセットされ、フラグ(
F、)はセットされない。また、a3C2<Y2≦a、
C2のときにはフラグ(F、)のみがセットされ、a、
C2<Y2のときにはいずれの7ラグもセットされない
。以上のようにして、最小ピーク値Y2がいずれの判定
レベルより下にあるかが判定される。
That is, since a2 < a3 <a<, Y2≦
When a2C2, three 7 lags (F2) (F, ) (F
, ) are all set, and when a2C2<Y2≦a3C2, flags (F2) (F3) are set, and flag (
F,) are not set. Also, a3C2<Y2≦a,
At C2, only the flag (F,) is set, and a,
When C2<Y2, none of the 7 lags is set. As described above, it is determined which determination level the minimum peak value Y2 is below.

第4図右下部の論理回路は、被写体輝度が合焦検出に適
当か否かの条件(フラグ(F、)がセットされているか
否か)、被写体像のコントラストが合焦検出に適当か否
かの条件(フラグ(F5)がセットされているか否か)
、及び前回の合焦検出が適当な条件のもとになされたか
否かの条件(後に説明する第12図の7ラグ(F +s
)がセットされでいるか否か)に応じて、第2ブロツク
を用いで検出された最小比較データH2(n)が信頼で
きるか否かの判定レベルを選択する為のものである。以
下、この論理回路について、第5図の70−チャートと
ともに説明する。
The logic circuit at the bottom right of Fig. 4 determines whether the subject brightness is appropriate for focus detection (whether the flag (F,) is set or not), and whether the contrast of the subject image is appropriate for focus detection. Condition (whether flag (F5) is set or not)
, and the condition as to whether or not the previous focus detection was performed under appropriate conditions (7 lags (F + s
) is set or not), the determination level for determining whether or not the minimum comparison data H2(n) detected using the second block is reliable is selected. This logic circuit will be explained below along with the chart 70 in FIG.

まず、第5図の70−チャートにおいて、ステップ81
3及びS、で示されるように、フラグ(Fl)がセット
されているか否か、及びフラグ(F5)がセットされて
いるか否かが判別される。そして、このフラグ(Fl)
(F5)のいずれか一方でもセットされていなければ、
ステップSI5にすすみフラグ(F6)がセットされる
。これは、第4図において、フラグ(F、)(F5)の
いずれか一方でもその出力が“0”であれば、アンドデ
ー)(ANDI)の出力は“θ″′となり、ナンドデー
)(NANDI)の出力は“1”となって7ラグ(F6
)がセットされるからである。そして、ナンドデー) 
(N A N D + )の出力が“1”になると、ア
ンドデー)(AND2)の出力27− は7ラグ(F2)に応じる。従って、ナンドデート(N
 A N D +)の出力が“1”となって7ラグ(F
6)がセットされた状態では、Y2≦a2C2で7ラグ
(F2)がセットされておればアンドデー) (A N
 D 2)の出力が1”となってオアデー)(OR,)
の出力は“1”となり、Y 2 > a 2 C2で7
ラグ(F2)がセットされていなければアントゲ−)(
AND2)の出力はO”のままである。すなわち、これ
によって、第5図のステップS16の動作がなされる。
First, in the 70-chart of FIG.
3 and S, it is determined whether the flag (Fl) is set and whether the flag (F5) is set. And this flag (Fl)
If either (F5) is not set,
A progress flag (F6) is set in step SI5. This means that in Fig. 4, if the output of any one of the flags (F, ) (F5) is "0", the output of ANDI becomes "θ"', and NANDI) The output of is “1” and 7 lags (F6
) is set. And Nando Day)
When the output of (NAND+) becomes "1", the output 27- of (AND2) corresponds to the 7 lag (F2). Therefore, Nando date (N
The output of A N D +) becomes “1” and 7 lags (F
6) is set, if Y2≦a2C2 and 7 lag (F2) is set, ANDD) (A N
The output of D2) becomes 1” and the output is 1”.
The output of is “1”, and Y 2 > a 2 C2 makes 7
If the lag (F2) is not set, the anime game)
The output of AND2) remains O''. That is, the operation of step S16 in FIG. 5 is performed.

フラグ(F、)(F5)のいずれもセットされてアント
ゲ−)(AND、)の出力が“1”である状態では、ア
ンドデート(A N D 3)の出力はフラグ(F’s
)の出力に応じる。フラグ(F +s)は、後述のよう
に、第1〜第3ブロツクのいずれを用いても信頼で終る
最小比較データが得られなかったとトにセットされるも
のである。すなわち、フラグ(Fls)がセットされて
いることは、前回の合焦検出が適当でない条件のもとに
なされたことを示す。上述のように、アントゲ−)(A
ND、)の出力が1″である状態のと外には、フラグ(
Fl5)がセットされてい28− るとアンドデート(A N D 3)の出力は“1″′
となり、フラグ(F’s)がセットされていなければア
ントゲ−)(AND3)の出力は“0”となる。すなわ
ち、アンドデー)(AND3)は第5図のステップ81
7の判別動作を行なう。
In a state where both flags (F,) (F5) are set and the output of Antogame) (AND,) is "1", the output of AND date (A N D 3) is the flag (F's
) according to the output. As will be described later, the flag (F+s) is set when no reliable minimum comparison data is obtained using any of the first to third blocks. That is, the fact that the flag (Fls) is set indicates that the previous focus detection was performed under inappropriate conditions. As mentioned above, Antogame) (A
Outside of the state where the output of ND,) is 1'', the flag (
If Fl5) is set 28-, the output of AND date (A N D3) is "1"'
If the flag (F's) is not set, the output of the game (AND3) will be "0". That is, AND3) is the step 81 in FIG.
7 is performed.

第4図に戻って、アンドデー)(AND、)の出力が“
1″である状態において、フラグ(F、5)がセットさ
れておりその出力が“1″であれば、アントゲ−) (
A N D 3)の出力は“1”になりインバータ(I
NV、)の出力は“0”になる。従って、アンドデー)
(AND、)は閉じる。一方、アンドデート(ANDa
)の出力が“1”になると、アンドデー)(ANDs)
の出力はフラグ(F、)に応じる。そして、フラグ(F
、)がセットされていればアンドデー)(AND、)の
出力は1”になり、オアデー)(OR+)の出力も“1
″になる。フラグ(F、)がセットされていなければア
ンドデー)(AND5)の出力は0″である。すなわち
、アントゲ−)(AND5)は第5図のステップS18
の動作を行なう。
Returning to Figure 4, the output of &D)(AND,) is “
1", if the flag (F, 5) is set and its output is "1", then
The output of A N D 3) becomes “1” and the inverter (I
The output of NV, ) becomes "0". Therefore, andday)
(AND,) closes. On the other hand, ANDa
) becomes “1”, ANDday) (ANDs)
The output of is responsive to the flag (F,). And the flag (F
, ) is set, the output of AND,) will be 1", and the output of OR,) (OR+) will also be "1".
''.If the flag (F, ) is not set, the output of AND5 is 0''. That is, the game) (AND5) is executed in step S18 in FIG.
Perform the following actions.

再び、第4図に戻って、アンドデー)(ANDI)の出
力が“1”で7ラグ(F15)がセットされでいないと
、アンドデー)(AND3)の出力は“0”であり、イ
ンバータ(INV、)の出力は“1″である。
Returning to FIG. 4 again, if the output of ANDI is "1" and 7lag (F15) is not set, the output of AND3 is "0" and the inverter (INV , ) is "1".

従って、フラグ(F、)がセットされていれば、アンド
デー)(AND、)の出力は1”となり、オアデー)(
OR+)の出力も“1”になる。一方、フラグ(F4)
がセットされていないと、アンドデート(A N D 
、)の出力は“0”である。 すなわち、アンドデー)
(AND4)は第5図のステップS19の動作を行う。
Therefore, if the flag (F,) is set, the output of ANDD)(AND,) will be 1", and ORD)(
The output of OR+) also becomes "1". Meanwhile, flag (F4)
is not set, and date (A N D
, ) is "0". i.e. andday)
(AND4) performs the operation of step S19 in FIG.

以上の動作を第5図の70−チャートを用いてまとめて
みると、まず、ステップS13もしくは814で被写体
輝度もしくは被写体のコントラストが適当でないと判定
されると、ステップ815及びS 16にすすみ、フラ
グ(F6)がセットされるとともに最小ピーク値Y2が
最も厳しい第1判定レベルa2C2に基づいて判定され
る。この判定に合格すれば、ブロック(A)で演算され
たこの最小比較データH2(n)がデフォーカス量の検
出に用いられ、合格しなければ次の第1ブロツクを用い
る合焦検出の70−に入る。また、ステップ813及び
S 14で被写体輝度及び被写体フントラストが共に適
当であると判定されると、ステップS17にすすみ、前
回の合焦検出が適当であったか否かが判定される。もし
前回の合焦検出が適当であったならステップsrsにす
すみ、最小ピーク値Y2が最もゆるい第3判定レベルa
、C2に基づいて判定される。もし前回の合焦検出が適
当でなければステップS16にすすみ最小ピーク値Y2
が中間の第2判定レベルa3C2に基づいて判定される
。いずれの場合にも合格と判定されれば、この回路ブロ
ック(A)で演算された最小比較データH2(n)がデ
フォーカス量の検出に用いられ、不合格と判定されれば
、次の第1ブロツクを用いる合焦検出の70−に入る。
To summarize the above operations using the 70-chart in FIG. (F6) is set, and the minimum peak value Y2 is determined based on the most severe first determination level a2C2. If this judgment passes, this minimum comparison data H2(n) calculated in block (A) is used to detect the defocus amount; if it does not pass, the next first block is used for focus detection 70- to go into. Furthermore, if it is determined in steps 813 and S14 that both the subject brightness and the subject image contrast are appropriate, the process proceeds to step S17, where it is determined whether or not the previous focus detection was appropriate. If the previous focus detection was appropriate, proceed to step srs, and proceed to the third judgment level a where the minimum peak value Y2 is the loosest.
, C2. If the previous focus detection is not appropriate, proceed to step S16 and minimum peak value Y2
is determined based on the intermediate second determination level a3C2. In either case, if it is determined to pass, the minimum comparison data H2(n) calculated in this circuit block (A) is used to detect the defocus amount, and if it is determined to be rejected, the next Step 70- of focus detection using one block is entered.

ステップ820は、予め定められた所定時間t。をカウ
ントするステップである。本実施例においては、まず第
2ブロツクを用いた合焦検出を行ない、これによって信
頼できる合焦検出が不可能なときに第1ブロツクを用い
、これでも信頼できる合焦検出が不可能なときに第3ブ
ロツクを用いる。そし31− て、第2ブロツクのみで信頼で終る合焦検出がなされた
場合と、第1ブロツクまで用いて信頼で外る合焦検出が
なされた場合と、第3ブロツクまで用いて信頼できる合
焦検出がなされた場合とで演算時間を一定にする為にス
テップS2゜の時間カウントが設けられている。この意
味については後述する。 第4図中、出力端子(T1)
は、#!10図10図第1ブロツク(I)を用いる合焦
検出回路ブロック(B)及び第12図図示の第3ブロツ
ク(■)を用いる合焦検出回路ブロック(C)にそれぞ
れ接続され、各ブロックに必要な画素信号が伝達される
。出力端子(T2)及び(T3)は出力端子(T5)と
ともに、@14図図示の如く指示回路(CP U )に
接続される。出力端子(T4)は、上記回路ブロック(
B)及び(C)に接続され、各回路ブロンにおいて検出
された最小ピーク値Y、もしくはY、の判定レベルを定
める為に用いられる。
Step 820 is a predetermined time t. This is the step of counting. In this embodiment, focus detection is first performed using the second block, and when reliable focus detection is not possible, the first block is used, and when reliable focus detection is still not possible. The third block is used for 31- Then, there are cases in which reliable focus detection is achieved using only the second block, cases in which reliable focus detection is achieved using up to the first block, and cases in which reliable in-focus detection is achieved using up to the third block. A time count in step S2° is provided in order to keep the computation time constant depending on when focus detection is performed. The meaning of this will be explained later. In Figure 4, output terminal (T1)
teeth,#! 10 The focus detection circuit block (B) using the first block (I) shown in FIG. 10 and the focus detection circuit block (C) using the third block (■) shown in FIG. Necessary pixel signals are transmitted. The output terminals (T2) and (T3), together with the output terminal (T5), are connected to an instruction circuit (CPU) as shown in Figure @14. The output terminal (T4) is connected to the circuit block (
B) and (C), and is used to determine the minimum peak value Y detected in each circuit, or the determination level of Y.

次に第10図図示の、第1ブロツク(1)を用いる合焦
検出回路ブロック(B)について、第11図のそのフロ
ーチャートとともに説明する。前述の32− ように、この回路ブロック(B)の演算は、第4図の回
路ブロック(A)による第2ブロツク(II)を用いた
演算によっては信頼できる最小比較データH2(n)が
得られなかったときにのみなされる。換言すれば、第4
図図示のオアデー)(OR+)の出力が“O”のままで
、検出された最小ピーク値Y2が不合格と判定されたと
きにのみ第14図図示の指示回路(CPU)からの信号
によって第10図の回路ブロック(B)が作動させられ
る。
Next, the focus detection circuit block (B) using the first block (1) shown in FIG. 10 will be explained with reference to the flowchart shown in FIG. 11. As mentioned in 32- above, the operation of this circuit block (B) can yield reliable minimum comparison data H2(n) by the operation using the second block (II) of the circuit block (A) in FIG. It is only done when it is not possible. In other words, the fourth
Only when the output of (OR+) shown in the figure remains "O" and the detected minimum peak value Y2 is judged as failure, the signal from the instruction circuit (CPU) shown in FIG. Circuit block (B) of FIG. 10 is activated.

第10図において、演算回路(126)は、回路ブロッ
ク(A)の演算回路(26)に対応し、5 十Σ”k−rk+N+7 ’ に=2 ・・・・・・(24) の演算を行う。(第10図ステップS2.)但し、ここ
で、H,(N)の添字、は第1ブロツク(1)が用いら
れていることを示し、N=1.2、・・・、8である。
In FIG. 10, the arithmetic circuit (126) corresponds to the arithmetic circuit (26) of the circuit block (A), and performs the calculation of =2 (24) on 5 Σ"k-rk+N+7'. (Step S2 in Figure 10) However, here, the subscripts H and (N) indicate that the first block (1) is used, and N = 1.2, . . . , 8. It is.

すなわち、回路ブロック(B)は、第3図図示の基準部
(L)の第1ブロツク(1)と、参照部(R)の画素子
(r9)より右の画素列との相関を検出する。換言すれ
ば、第1ブロツク(I)を用いる合焦検出は、像間隔が
、予め定められた結像予定画面上に合焦状態にある場合
よりも広い場合の為になされたものであり、つまり、後
ピン状態を検出する為のものである。
That is, the circuit block (B) detects the correlation between the first block (1) of the reference part (L) shown in FIG. 3 and the pixel column to the right of the pixel element (r9) of the reference part (R). . In other words, focus detection using the first block (I) is performed when the image interval is wider than when the image is in focus on a predetermined image formation screen, In other words, it is for detecting the rear pin state.

演算回路(126)において演算された各比較データH
1(N)は、それぞれ回路ブロック(A)の場合と同様
に、シフト量Nとともにメモリ回路(128)にメモリ
され、8個の比較データのうち最小値をとるものが最小
値検出回路(130)によって検出され、その最小比較
データH1(n)が最小シフト量nとともにメモリ回路
(132)にメモリされる。(第11図ステップS2□
) その後、演算回路(134)によって画素のピッチ
よりも細かい像間隔検出の為に 6 h、(n−1)=ΣI 1k−rk十N+81 −−(
25)k=2 h、(n+ 1 )=Σ”k−rk十N+8’ ”””
(26)k=1 なる値hl(n i)、hl(n+1)が演算されて、
メモリ回路(136)にメモリされる。これを用いて第
1ブロツク(I)を用いた場合の最小ピーク値Y1が演
算回路(138)によって演算される。
Each comparison data H calculated in the calculation circuit (126)
1 (N) is stored in the memory circuit (128) together with the shift amount N, as in the case of the circuit block (A), and the one that takes the minimum value among the eight comparison data is sent to the minimum value detection circuit (130). ), and the minimum comparison data H1(n) is stored in the memory circuit (132) together with the minimum shift amount n. (Figure 11 Step S2□
) After that, the arithmetic circuit (134) detects the image interval finer than the pixel pitch by 6 h, (n-1)=ΣI 1k-rk+N+81 --(
25) k=2 h, (n+1)=Σ"k-rk 1N+8'"""
(26) The values hl(n i) and hl(n+1) where k=1 are calculated,
It is stored in the memory circuit (136). Using this, the minimum peak value Y1 when using the first block (I) is calculated by the calculation circuit (138).

この最小ピーク値Y、はメモリ回路(140)にメモリ
される。(第11図ステップ823及びS2.)この第
10図における(126)〜(140)の構成は、第4
図図示の(26)〜(40)と対応しており、その動作
を示す第11図のステップ521−324も第5図のス
テップS 、−S 、、と対応している。
This minimum peak value Y, is stored in the memory circuit (140). (Steps 823 and S2 in FIG. 11) The configuration of (126) to (140) in FIG.
They correspond to steps (26) to (40) shown in the figure, and steps 521-324 in FIG. 11 showing the operation thereof also correspond to steps S, -S, . . . in FIG.

更に、第10図においで、コントラスト検出回路(14
2)は、第4図のコントラスト検出回路(42)と同様
、 5 ・・・・・・(27) C・=に玉、l 1kIk+ 11 35− の演算を行なって、コントラスト値C1を検出する。(
第11図ステップ525) このコントラスト値は、第
1ブロツク(I)における隣接二画素間の出力差の絶対
値の総和である。演算されたコントラスト値C1はメモ
リ回路(144)にメモリされる。このコントラスト値
C1は、演算回路(148)に入力されて、第4図の演
算回路(48)と同様、定数a2、a3、a、がそれぞ
れ乗ぜられ、最小比較データY + I) 3 ツf>
判定レベルa2C1、a、、C1、a4c1が定められ
る。この判定レベルa2CI、a、c l、a4CIは
比較回路(150)に入力されて、最小ピーク値Y1と
の比較がなされ、Y1≧a2C1であればフラグ(F7
)がセットされ、Y1≧a3C,であれば7−7グ(F
8)がセットされ、Y1≧a、C,であればフラグ(F
、)がセットされる。
Furthermore, in FIG. 10, the contrast detection circuit (14
2) is similar to the contrast detection circuit (42) in FIG. 4, and calculates the contrast value C1 by performing the following calculation: 5 (27) . (
(Step 525 in FIG. 11) This contrast value is the sum of the absolute values of the output differences between two adjacent pixels in the first block (I). The calculated contrast value C1 is stored in a memory circuit (144). This contrast value C1 is input to the arithmetic circuit (148), and similarly to the arithmetic circuit (48) in FIG. 4, it is multiplied by constants a2, a3, a, respectively, and the minimum comparison data Y + I) >
Judgment levels a2C1, a, , C1, a4c1 are determined. These judgment levels a2CI, a, c1, a4CI are input to a comparison circuit (150) and compared with the minimum peak value Y1, and if Y1≧a2C1, a flag (F7
) is set, and if Y1≧a3C, then 7-7g (F
8) is set, and if Y1≧a, C, the flag (F
, ) are set.

一方、コントラスト値C1は比較回路(146)にも入
力され、$4図の比較回路(46)と同じ定数a5と比
較されて、C1≧a5であればフラグ(F 、o)がセ
ットされる(第11図ステップ526)。尚、ここで、
a5に代えて第2ブロツク(II)の画素数と第1ブロ
ツク(1)の画素数との比 36− 第10図右下の論理回路は、第11図のステップS2?
〜831を実行する為の構成であり、第4図右下の論理
回路と類似しているので簡単に説明する。まず、フラグ
(F+o)がセットされておらずその出力が“0”であ
る場合、もしくは、フラグ(F+。)がセットされてい
ても端子(T、)を介して接続されている第4図の7ラ
グ(F6)がセットされておらずその出力が0”である
場合には、アンドデート(A N D a)の出力が“
0″であり、ナンドデー) (N A N D 2 )
の出力は“1″となる。従って、フラグ(F7)の出力
が“1″であればアンドデート(A N D t)の出
力は“1″になり、オアデート(OR2)の出力は“1
”となる。フラグ(F7)の出力が0”であればアンド
デー)(AND、)の出力も“0”である。すなわち、
アンドデー)(AND6)は第11図のステップS27
の判定動作を行い、アンドデー)(AND、)はステッ
プ82Bの判定動作を行う。
On the other hand, the contrast value C1 is also input to the comparison circuit (146) and compared with the same constant a5 as the comparison circuit (46) in Figure $4, and if C1≧a5, the flag (F, o) is set. (Step 526 in FIG. 11). Furthermore, here,
In place of a5, the ratio of the number of pixels in the second block (II) to the number of pixels in the first block (1) 36--The logic circuit at the bottom right of FIG.
This is a configuration for executing steps 831 to 831, and since it is similar to the logic circuit at the bottom right of FIG. 4, it will be briefly explained. First, if the flag (F+o) is not set and its output is "0", or even if the flag (F+) is set, it is connected via the terminal (T, ). If the 7 lag (F6) is not set and its output is 0, the output of AND date (A N D a) is “0”.
0'' and Nando Day) (N A N D 2)
The output of is "1". Therefore, if the output of the flag (F7) is "1", the output of AND date (A N D t) will be "1", and the output of OR date (OR2) will be "1".
”.If the output of the flag (F7) is 0, the output of AND is also 0. That is,
ANDD) (AND6) is step S27 in FIG.
The determination operation of step 82B is performed, and the determination operation of step 82B is performed.

両フラグ(F 6)(F 、、)ともにその出力が1″
であれば、アンドデー)(AND、)の出力は、端子(
7,3)によって接続される後述の7ラグ(F +s)
の出力に応じる。フラグ(FI5)の出力が“1゛であ
れば、アンドデー)(AND8)の出力は“1″となり
、アンドデート(A N D 、、)が開くとともに、
アンドデー)(AND9)が閉じる。この状態では、ア
ンドデー)(AND、。)の出力はフラグ(F8)の出
力に従う。すなわち、アンドデー)(ANDIO)は第
11図ステップS、。の判定を行う。一方、フラグ(F
 1s)の出力が“0”であれば、アンドデート(AN
De)の出力は“0”となり、インバータ(INVz)
により”(7”l’?−)(ANDs)が開かれる。従
って、アンドデー)(AND、)の出力は、フラグ(F
、)の出力に従うので、アンドデート(ANDs)は第
11図ステップS31の動作を行う。
The output of both flags (F 6) (F ,,) is 1″
If so, the output of (AND,) is the terminal (
7,3) connected by 7 lags (F +s) described below.
according to the output of If the output of the flag (FI5) is "1", the output of the AND date (AND8) becomes "1", and the AND date (A N D,,) opens,
AND Day) (AND9) closes. In this state, the output of AND, .) follows the output of the flag (F8). That is, ANDIO) is shown in step S of FIG. Make a judgment. On the other hand, flag (F
If the output of AND date (AN
The output of De) becomes “0” and the inverter (INVz)
opens "(7"l'?-)(ANDs). Therefore, the output of the flag (F
, ), ANDs performs the operation of step S31 in FIG. 11.

尚、アンドデート(A N D a)はフラグ(F15
)の出力に応じて、両アンドデート(A N D 5)
(A N D +o)を択一的に開ける第11図ステッ
プS 29の動作を行う。
In addition, and date (A N D a) is a flag (F15
) according to the output of both AND date (A N D 5)
The operation of step S29 in FIG. 11 is performed to alternatively open (A N D +o).

3個のアンドデート(A N D ?)(A N D 
5)(A ND 、、)のいずれかの出力が“1゛にな
るとオアデー)(OR2)の出力も1″となって、第1
1図のステップS3□にすすみ、予め定められた一定時
間t。
Three and dates (A N D?) (A N D
5) When the output of either (AND,,) becomes 1, the output of (OR2) also becomes 1, and the first
Proceeding to step S3□ in FIG. 1, a predetermined period of time t elapses.

がカウントされる。ここで、この時開t1は、#5図の
ステップS20に示す時間t。よりも短い。そして、第
5図のステップ88〜819までによって信頼できる最
小比較データH2(n)が得られた場合と、ステップS
 16.5lll、SI9のいずれかから第11図のス
テップ821にすすみステップS31までに信頼できる
最小比較データH+(n)が得られた場合と、後述のス
テップS 43まですすんで信頼できる最小比較データ
H,(n)が得られた場合とで演算時間を一定に保つよ
うに時間t。、Fが定められている。
is counted. Here, the current opening t1 is the time t shown in step S20 in Figure #5. shorter than In the case where reliable minimum comparison data H2(n) is obtained through steps 88 to 819 in FIG. 5, and when step S
If reliable minimum comparison data H+(n) is obtained by step S31 after proceeding to step 821 in FIG. The time t is set so that the computation time is kept constant depending on when H,(n) is obtained. , F are defined.

第10図の端子(TV)(T8)は、第14図の指示回
路(c p u )に接続されて、H,(n)、n、h
l(n 1)h+(n+12 )の各データが伝達され
る。端子(T9)も該指示回路(CP U )に接続さ
れ、端子(T9)の出力が“1”であれば、後述の像間
隔演算に端子(TV)(’re)から送られるデータが
採用され、端子39− (T9)の出力が“0”であれば、第3ブロツク(II
I)を用いる合焦検出回路ブロック(C)を作動させる
The terminal (TV) (T8) in FIG. 10 is connected to the instruction circuit (c p u ) in FIG. 14, and H, (n), n, h
Each data of l(n 1)h+(n+12 ) is transmitted. The terminal (T9) is also connected to the instruction circuit (CPU), and if the output of the terminal (T9) is "1", the data sent from the terminal (TV) ('re) is used for the image interval calculation described later. If the output of terminal 39- (T9) is “0”, the third block (II
Activate the focus detection circuit block (C) using I).

次に、$12図図示の、第3ブロツク(II)を用いる
合焦検出回路ブロック(C)について、第13図のその
フローチャートとともに説明する。前述のように、この
回路ブロック(C)の演算は、第4図の回路ブロック(
A)による第2ブロツク(n)を用いた演算及び第10
図の回路ブロック(B)による第1ブロツクを用いた演
算によっては信頼でトる最小比較データH2(n)、H
l(n)が得られなかったときにのみなされる。換言す
れば、第10図図示のオアデー)(OR2)の出力が“
0”のままで、検出された最小ピーク値Y、が不合格と
判定されたときにのみ第13図図示の指示回路(CP 
U )からの信号によって第12図の回路ブロック(C
)が作動させられる。
Next, the focus detection circuit block (C) using the third block (II) shown in FIG. 12 will be explained with reference to its flowchart in FIG. As mentioned above, the operation of this circuit block (C) is performed by the circuit block (C) of FIG.
A) using the second block (n) and the tenth
Depending on the calculation using the first block of circuit block (B) in the figure, the minimum comparison data H2(n), H
It is only done when l(n) is not available. In other words, the output of OR2 shown in FIG.
0", and only when the detected minimum peak value Y is judged to be rejected, the instruction circuit (CP
The circuit block (C) shown in FIG.
) is activated.

第12図において、演算回路(226)は、回路ブロッ
ク(A)の演算回路(26)に対応し、40− 2 +Σ11k−rk十N−81 ・・・・・・(28)k
=9 の演算を行う。(第13図ステップ533) ここで、
H3(N)の添字、は第3ブロツク(II[)が用いら
れていることを示し、N=1.2、・・・・・・、8で
ある。
In FIG. 12, the arithmetic circuit (226) corresponds to the arithmetic circuit (26) of the circuit block (A), and is 40-2 +Σ11k-rk+N-81...(28)k
Perform the calculation =9. (Step 533 in Figure 13) Here,
The subscript of H3(N) indicates that the third block (II[) is used, and N=1.2, . . . , 8.

すなわち、回路ブロック(C)は、第3図図示の基準部
(L)の第3ブロツク(III)と、参照部(R)の画
素(r23)より左の画素列との相関を検出する。換言
すれば、第3ブロツク(III)を用いる合焦検出は、
像間隔が、予め定められた結像予定面上に合焦状態にあ
る場合よりも狭い場合のためになされるものであり、つ
まり、前ビン状態を検出する為のものである。
That is, the circuit block (C) detects the correlation between the third block (III) of the reference part (L) shown in FIG. 3 and the pixel column to the left of the pixel (r23) of the reference part (R). In other words, focus detection using the third block (III) is
This is done when the image interval is narrower than when the images are in focus on a predetermined image formation plane, that is, to detect the front bin state.

演算回路(126)において演算された各比較データH
3(N)は、それぞれ、回路ブロック(A)の場合と同
様に、シフト量Nとともにメモリ回路(22B)にメモ
リされ、8個の比較データのうち最小値をとるものが最
小値検出回路(230)によっで検出され、その最小比
較データi+5(n)が最小シフト量nとともにメモリ
回路(232)にメモリされる。(第13図ステップS
3.) その後、演算回路(234)によって画素のピ
ッチよりも細かい像間隔検出の為に q 2 t++(n+ 1 )=Σ”k−’に+n−7’ −・
−−−・<30)k=8 なる値h3(n−1)、ha(n+ 1 )が演算され
、コレを用いて第3ブロツク(I[I)を用いた場合の
最小ピーク値Y3が演算回路(238)によって演算さ
れる。
Each comparison data H calculated in the calculation circuit (126)
3(N) are each stored in the memory circuit (22B) together with the shift amount N as in the case of the circuit block (A), and the one that takes the minimum value among the eight comparison data is sent to the minimum value detection circuit ( 230), and the minimum comparison data i+5(n) is stored in the memory circuit (232) together with the minimum shift amount n. (Figure 13 Step S
3. ) After that, the arithmetic circuit (234) converts q 2 t++ (n+ 1 ) = Σ"k-' to +n-7' - · in order to detect an image interval finer than the pixel pitch.
---・<30) k=8 The values h3(n-1) and ha(n+1) are calculated, and using this, the minimum peak value Y3 when using the third block (I[I) is calculated. It is calculated by the calculation circuit (238).

この最小ピーク値Y3はメモリ回路(240)にメモリ
される。(第13図ステップS35及び536)この第
12図における(226)〜(240)の構成は、第4
図図示の(26)〜(40)と対応しており、その動作
を示す第13図のステップ833〜836も第5図のス
テップ88〜S、と対応している。
This minimum peak value Y3 is stored in the memory circuit (240). (Steps S35 and 536 in FIG. 13) The configurations (226) to (240) in FIG.
They correspond to steps (26) to (40) shown in the figure, and steps 833 to 836 in FIG. 13 showing the operation thereof also correspond to steps 88 to S in FIG. 5.

更に、第12図において、コントラスト検出回路(24
2)は、第4図のコントラスト検出回路(42)と同様
、 の演算を行なってコントラスト値C3を検出する。
Furthermore, in FIG. 12, a contrast detection circuit (24
2), similar to the contrast detection circuit (42) in FIG. 4, performs the following calculation to detect the contrast value C3.

(第13図ステップ537) このコントラスト値は、
第3ブロツク(I[l)における隣接二画素間の出力差
の絶対値の総和である。演算されたコントラスト値C8
は、メモリ回路(244)にメモリされる。
(Step 537 in Figure 13) This contrast value is
This is the sum of absolute values of output differences between two adjacent pixels in the third block (I[l). Calculated contrast value C8
is stored in the memory circuit (244).

このコントラスト値C3は、演算回路(248)に入力
されて、#4図の演算回路(48)と同様、定数a2、
a3、a、がそれぞれ末ぜられ、最小ピーク値Y、の3
つの判定レベルa2C3、a、C3、a4C3が定めら
れる。この判定レベルa2C,,、a3C3、a、C3
は比較回路(250)に入力されて、最小ピーク値Y3
との比較がなされ、Y3≦a2C3であれば、フラグ(
Fl、)がセットされ、Y3≦a3C3であればフラグ
(F 12)がセットされ、Y3≦a4C3であれば7
43− ラグ(F、、)がセットされる。 一方、コントラスト
値C3は比較回路(246)にも入力され、第4図の比
較回路(46)と同じ定数a5と比較されて、C3≧a
5であればフラグ(Fl4)がセットされる。(第13
図ステップ838)尚、ここで前述のように85に代え
てa5′ を用いても良い。
This contrast value C3 is input to the arithmetic circuit (248), and like the arithmetic circuit (48) in Figure #4, the constant a2,
a3, a, are respectively terminated, and the minimum peak value Y, 3
Three determination levels a2C3, a, C3, and a4C3 are defined. This judgment level a2C,,,a3C3,a,C3
is input to the comparison circuit (250) and the minimum peak value Y3
If Y3≦a2C3, the flag (
Fl, ) is set, if Y3≦a3C3, the flag (F12) is set, and if Y3≦a4C3, 7
43- Lag (F,,) is set. On the other hand, the contrast value C3 is also input to the comparison circuit (246), and is compared with the same constant a5 as the comparison circuit (46) in FIG. 4, so that C3≧a
If it is 5, a flag (Fl4) is set. (13th
(Step 838) Here, a5' may be used instead of 85 as described above.

第12図右下の論理回路は、第13図のステップ838
〜S44を実行する為の構成であり、第4図右下の論理
回路と類似しているので、簡単に説明する。まず、フラ
グ(F、4)がセットされておらずその出力が“0”で
ある場合、もしくは、フラグ(F、、)がセットされて
いても端子(T、)を介して接続されている第4図の7
ラグ(F6)がセットされておらずその出力が“0”で
ある場合には、アントゲ−)(AND、、)の出力が“
0”であり、ナンドデー)(NAND、)の出力は“1
”となる。従って、フラグ(Fl)の出力が“1”であ
ればアンドデート(A N D +2)の出力は“1゛
になり、オアデート(OR3)の出力は“1″となる。
The logic circuit at the bottom right of FIG. 12 is the step 838 in FIG. 13.
This is a configuration for executing steps S44 to S44, and since it is similar to the logic circuit at the bottom right of FIG. 4, it will be briefly explained. First, if the flag (F, 4) is not set and its output is "0", or even if the flag (F,,) is set, it is connected via the terminal (T,). 7 in Figure 4
If lag (F6) is not set and its output is “0”, the output of Antogame) (AND,,) is “0”.
0”, and the output of NAND,) is “1”.
Therefore, if the output of the flag (Fl) is "1", the output of AND date (A N D +2) will be "1", and the output of OR date (OR3) will be "1".

フラグ(F1+)の出44− 力が“0”であればアントゲ−) (A N D +2
)の出力も“θ″である。すなわち、アンドデー)(A
ND。
Output of flag (F1+) 44- If the force is “0”, it is an anime game) (A N D +2
) is also “θ”. That is, andday) (A
N.D.

I)は第12図のステップS2゜の判定動作を行ない、
アンドデー)(AND、2)はステップS40の判定動
作を行なう。
I) performs the determination operation of step S2° in FIG.
(AND, 2) performs the determination operation in step S40.

両フラグ(F6)(Fl、)ともにその出力が“1”で
あれば、アンドデー)(AND+3)の出力は、端子(
TI3)によって接続されるフラグ(F、5)の出力に
応じる。フラグ(F’s)の出力が“1”であれば、ア
ンドデート(A N D 、3)の出力は“1″となり
、アンドデート(AND、S)が開くとともに、アント
ゲ−) (A N D +4)が閉じる。この状態では
、アンドデート(A N D +s)の出力はフラグ(
F+□)の出力に従う。すなわち、アンドデー) (A
 N D +5)は、第12図ステップS42の判定を
行なう。一方、フラグ(F’s)の出力が“0”であれ
ば、アンドデー)(AND+3)の出力は“0”となり
、インバータ(INV、)によってアンドゲート(AN
D、、)が開かれる。従って、アントゲ−)(AND+
4)の出力はフラグ(Fl3)の出力に従うので、アン
ドデート(A N D+4)は第12図ステップ843
の動作を行なう。尚、アンドデート(A N D +3
)はフラグ(F15)の出力に応じて、両アンドデー)
(AND、4)(A N D 、5)を択一的に開ける
第13図ステップS41の動作を行う。
If the output of both flags (F6) (Fl, ) is "1", the output of AND+3 is the terminal (
In response to the output of the flag (F, 5) connected by TI3). If the output of the flag (F's) is "1", the output of AND date (A N D, 3) is "1", and as AND date (AND, S) opens, Anto game) (A N D+4) closes. In this state, the output of AND date (A N D +s) is the flag (
Follow the output of F+□). i.e., andday) (A
N D +5) performs the determination in step S42 in FIG. On the other hand, if the output of the flag (F's) is "0", the output of AND+3 becomes "0", and the AND gate (AN
D,, ) is opened. Therefore, Antogame) (AND+
Since the output of 4) follows the output of the flag (Fl3), AND date (A N D+4) is executed at step 843 in FIG.
Perform the following actions. In addition, and date (A N D +3
) is both AND and D according to the output of the flag (F15)
The operation of step S41 in FIG. 13 is performed to alternatively open (AND, 4) (AND, 5).

3個のアンドデート(A N D +2)(A N D
 、、)(A N D +s)のいずれかの出力が“1
”になるとオアデー)(OR3)の出力も“1″となっ
て、第13図のステップS4Sにすすむ。
3 and dates (A N D +2) (A N D
, , )(A N D +s) is “1”.
”, the output of OR3 also becomes “1” and the process proceeds to step S4S in FIG.

一方、3つのアンドデート(A N D +2)(A 
N D +4)(A N D +s)の出力が全て“0
″であればオアデート(OR3)の出力も“0″となり
、インバータ(INV、)を介してフラグ(F 、5)
がセットされる。すなわち、フラグ(F’s)は、回路
ブロック(A)(B)(C)のいずれを用いても信頼で
きる最小比較データが得られなかった場合にセットされ
てその出力が“1”となり、次回の演算動作において、
最小ピーク値の判定レベルを通常よりも厳しくする為に
用いられる。尚、この合焦検出回路ブロック(C)の動
作を示す第13図ステップ833〜S44の70−にお
いては、第5図のステップ820及び第11図のステッ
プS3□に対応する、時間カウントを行うステップが設
けられていない。これは、前述のように、ステップS1
から820までの70−によって信頼で終る最小比較デ
ータが検出された場合も、ステップ832までの70−
によって信頼できる最小比較データが検出された場合も
、ステップS43までの70−によって信頼できる最小
比較データが検出された場合も、更には、ステップS4
4にすすんで信頼できる最小比較データが検出てきなか
った場合も、全て演算時間を一定とする為に、最も長い
ステップS43もしくはS44までを行うフローに他の
ケースの演算時間が今わせであるからである。
On the other hand, three AND dates (A N D +2) (A
All outputs of N D +4) (A N D +s) are “0”
”, the output of ORDATE (OR3) also becomes “0”, and the flag (F, 5) is output via the inverter (INV, ).
is set. That is, the flag (F's) is set when reliable minimum comparison data cannot be obtained using any of the circuit blocks (A), (B), and (C), and its output becomes "1". In the next calculation operation,
It is used to make the minimum peak value judgment level stricter than usual. In addition, in steps 833 to 70- of FIG. 13 showing the operation of this focus detection circuit block (C), time counting is performed corresponding to step 820 of FIG. 5 and step S3□ of FIG. There are no steps. This is done in step S1 as described above.
If the minimum comparison data that ends in confidence is detected by 70- from 820 to 820, 70- from step 832 is also detected.
Whether the reliable minimum comparison data is detected by 70- up to step S43 or the reliable minimum comparison data is detected by 70- up to step S43, furthermore, step S4
Even if reliable minimum comparison data is not detected after proceeding to Step 4, in order to keep the calculation time constant for all cases, the calculation time for other cases will be adjusted to the flow of performing up to the longest step S43 or S44. It is.

ここで、この演算時間を一定にすると、次回のCCD積
分を終了させるタイミングをこの演算終了時点に応じて
定めることができる。
Here, if this computation time is made constant, the timing at which the next CCD integration is to be completed can be determined according to the time point at which this computation is completed.

第12図の端子(Tz)(T+□)は、第14図の指示
回路(c p u )に接続されて、Hen、 ns 
h3(n−1)、h3(n+ 1 )の各データが伝達
される。端子47− (TI4)も該指示回路(CP U )に接続され、端
子(TI)の出力が“1”であれば、後述の像間隔演算
端子(T、、)(T、□)から送られるデータが採用さ
れ、端子(TI、)の出力が“0”であれば、後述する
別の動作がなされる。
The terminals (Tz) (T+□) in FIG. 12 are connected to the instruction circuit (c p u ) in FIG. 14, and Hen, ns
Each data of h3(n-1) and h3(n+1) is transmitted. Terminal 47- (TI4) is also connected to the instruction circuit (CPU), and if the output of the terminal (TI) is "1", the signal is sent from the image interval calculation terminal (T, , ) (T, □), which will be described later. If the data is adopted and the output of the terminal (TI, ) is "0", another operation to be described later is performed.

第14図は、上記合焦検出回路ブロック(A)(、B)
(C)の動作をコントロールするとともに、その検出さ
れた最小比較データH2(n)、H,(n)もしくはH
3(n)及びその最小シフト量nを用いてデフォーカス
の方向及び量を演算する為の回路ブロック(D)を示す
。第14図において、指示回路(CPU)は、第4図図
示の合焦検出ブロック(A)から、端子(T2)(T、
)を介して最小比較データH2(n)及びその最小シフ
ト量nが入力されるとともに、端子(T5)を介してこ
のデータH2(n)が信頼で鰺るか否かを示すデータが
入力される。指示回路(CPU)は、この端子(T5)
の出力が“1”で最小比較データH2(n)が信頼でき
ると判定されておれば、このデータH2(n)をHi(
n)として演算回路(300)に入力する。更に、この
場合には、第4図のメモリ回路(36) 48− から端子(T、)を介して入力されでいるり、、(n 
1)、h2(n+1 )のデータが、指示回路(CP 
U )から演算回路(300)及び比較回路(302)
に入力される。また、端子(T5)の出力が“1″であ
れば、指示回路(CP U )はカウンタ(CO)を作
動させて時間t0のカウントを行なわせる。すなわち、
カウンタ(CO)は第5図ステップS20の動作を行な
うものである。
FIG. 14 shows the focus detection circuit blocks (A) (,B).
In addition to controlling the operation of (C), the detected minimum comparison data H2(n), H, (n) or H
3(n) and its minimum shift amount n is used to calculate the direction and amount of defocus (D). In FIG. 14, the instruction circuit (CPU) connects terminals (T2) (T,
), the minimum comparison data H2(n) and its minimum shift amount n are inputted, and data indicating whether this data H2(n) is reliable or not is inputted through the terminal (T5). Ru. The instruction circuit (CPU) is connected to this terminal (T5)
If the output of is “1” and it is determined that the minimum comparison data H2(n) is reliable, this data H2(n) is set to Hi(
n) to the arithmetic circuit (300). Furthermore, in this case, the input from the memory circuit (36) 48- in FIG. 4 via the terminal (T,) or (n
1), h2(n+1) data is sent to the instruction circuit (CP
U) to the arithmetic circuit (300) and comparison circuit (302)
is input. Further, if the output of the terminal (T5) is "1", the instruction circuit (CPU) operates the counter (CO) to count the time t0. That is,
The counter (CO) performs the operation of step S20 in FIG.

同様に、回路ブロック(B)もしくは(C)の端子(T
9)もしくは(Tz)の出力が“1″であれば、そのブ
ロックで演算された最小比較データH,(n)もしくは
H3(n)が信頼できると判定されでいることを示す。
Similarly, the terminal (T) of circuit block (B) or (C)
If the output of 9) or (Tz) is "1", it indicates that the minimum comparison data H, (n) or H3 (n) calculated in that block is determined to be reliable.

従って、端子(T、)もしくは(TI4)のいずれかの
出力が“1”であれば、それを出力する回路ブロックか
らの最小比較データH1(n)もしくはH*(n)とし
て指示回路(CP U )から演算回路(300)に入
力される。そして、もし端子(T、)の出力が1″であ
れば、指示回路(CP U )は、カウンタ(CO)を
作動させて時間t1のカウントを行なわせる。すなわち
、カウンタ(CO)は、#11図ステップS32の動作
をも行う。
Therefore, if the output of either the terminal (T, ) or (TI4) is "1", the minimum comparison data H1(n) or H*(n) from the circuit block that outputs it is used as the minimum comparison data H1(n) or H*(n) from the instruction circuit (CP). ) is input to the arithmetic circuit (300). If the output of the terminal (T, ) is 1'', the instruction circuit (CPU) operates the counter (CO) to count the time t1. That is, the counter (CO) The operation of step S32 in FIG. 11 is also performed.

以上のようにして、指示回路(CP[、J)は、信頼で
きると判定された最小比較データl−1i(n)を演算
回路(300)に入力する。更に、この選択された最小
比較データHi(n)に応じたhi(n−1)、hi(
n+1)(ここではiは1.2.3のいずれか)が演算
回路(300)及び比較回路(302)に入力される。
As described above, the instruction circuit (CP[, J) inputs the minimum comparison data l-1i(n) determined to be reliable to the arithmetic circuit (300). Furthermore, hi(n-1), hi(
n+1) (here, i is either 1.2.3) is input to the arithmetic circuit (300) and the comparison circuit (302).

比較回路(302)は、入力される2つのデータhi(
n−1)、旧(n+1 )を互いに比較し、その比較結
果を演算回路(300)に送る(第13図ステップS、
5)。演算回路(300)はこの比較結果に応じて下記
のいずれかを行う。すなわち、bi(n 1)≧hi(
n+ 1)の場合、 □ X = n+ −F FFEJIII−IM毘辻り、・
、・、 (32)にてめられる補間最小シフト量Xが演
算され、1+i(n −1) < hi(n+1 )の
場合、X = n 十F旧十トド七十÷IL用J第1)
・・・・・・(33)にでめられる補間最小シフト量X
が演算される。
The comparison circuit (302) receives two input data hi(
n-1) and old (n+1), and send the comparison result to the arithmetic circuit (300) (step S in Fig. 13,
5). The arithmetic circuit (300) performs one of the following depending on the comparison result. That is, bi(n 1)≧hi(
In the case of n+ 1), □ X = n+ -F FFEJIII-IM bitsujiri,
,..., The interpolation minimum shift amount X determined by (32) is calculated, and if 1+i (n - 1) < hi (n+1), then X = n
......The interpolation minimum shift amount X given in (33)
is calculated.

(第13図ステップS、6、S、7) この演算回路(
300)は上記(32)(33)式によって、画素のピ
ッチ単位の最小シフト量nよりも更に細かい単位で最小
シフト量をめるものであり請求められたシフト量を補間
最小シフト量Xとする。この補間最小シフト量Xのめ方
について第15図(a)(b)を用いて以下に説明する
(Steps S, 6, S, 7 in Figure 13) This arithmetic circuit (
300) calculates the minimum shift amount in units finer than the minimum shift amount n in pixel pitch units using the above equations (32) and (33), and the requested shift amount is defined as the interpolation minimum shift amount X. do. How to determine this interpolation minimum shift amount X will be explained below using FIGS. 15(a) and 15(b).

まず、第15図(a)は横軸にシフト量、縦軸に比較デ
ータをとったグラフであり、第8図(c)のように、h
i(n−1)≧hi(n+1)の場合を示している。シ
フト量n−1とnとの開、もしくはnとn+1との間で
最も一致度の高いシフト量をめるには、まず、n−1と
nとの中点Q1における線分子1の傾きを考える。この
線分子1は点hi(n−1)と点Hi(n)とを結ぶも
のとして定義され、この領外はHi(n)−hi(n 
1)となる。一方、点Hi(n)と点h i (n 十
1)とを結ぶ線分子2の中点Q2における傾きは、hi
(n+1 ) −H1(n)となる。第15図(b)は
、このようにしてめられた2つの傾きをそれぞれ点(■
1)51− (■2)としてプロットしたものである。次にこの点(
Vl)(V2)を結ぶ線分子3を考え、この線分子3が
横軸と交わる点を(V、)とし、この点(v3)までの
シフト量を補間最小シフト量Xとするのである。
First, Fig. 15(a) is a graph in which the horizontal axis shows the shift amount and the vertical axis shows the comparison data, and as shown in Fig. 8(c), h
The case where i(n-1)≧hi(n+1) is shown. To find the shift amount with the highest degree of agreement between the shift amounts n-1 and n, or between n and n+1, first, calculate the slope of line numerator 1 at the midpoint Q1 between n-1 and n. think of. This line molecule 1 is defined as connecting point hi(n-1) and point Hi(n), and the area outside this area is Hi(n)-hi(n
1). On the other hand, the slope at the midpoint Q2 of the line molecule 2 connecting point Hi(n) and point h i (n 11) is hi
(n+1) −H1(n). Figure 15(b) shows the two slopes determined in this way at points (■
1) Plotted as 51-(■2). Next, this point (
Consider a line molecule 3 connecting Vl) (V2), the point where this line molecule 3 intersects with the horizontal axis is (V,), and the shift amount up to this point (v3) is the interpolation minimum shift amount X.

この補間最小シフト量Xは、hi(n−1)とhi(n
+1)との大小関係に応じて選択される(32)(33
)式のいずれかによってめられる。このようにして演算
された補間最小シフト量Xは第4図のメモリ回路(30
4)にメモリされる。
This interpolation minimum shift amount X is hi(n-1) and hi(n
(32) (33
) is determined by one of the following formulas. The interpolation minimum shift amount X calculated in this way is the memory circuit (30
4) is stored in memory.

更に、この補間最小シフト量Xを用いて基準部(L)上
の像と、対応する参照部(R)上の像とのずれ量Pが演
算回路(306)によって演算される。
Further, using this interpolation minimum shift amount X, the amount of deviation P between the image on the reference portion (L) and the image on the corresponding reference portion (R) is calculated by the calculation circuit (306).

(第13図ステップS、8)この演算は、P=Z、−Z
2−Z3+X−1・・・・・・(34)による。但し、
ここでZ、は第3図の画素(11)と(rl)との間隔
り、に対応する値、Z2は合焦時の像間隔すなわち画素
(1,2)と画素(r、、)との間隔L2に対応する値
である。Z3は、第1〜3ブロツクのいずれによって検
出された最小比較データが演算回路(300)の演算に
用いられたかによって定52− められる定数である。そして、Z、=4、Z2=8と定
められており、Z3は第1ブロツクの最小比較データが
用いられたときには−8、第2ブロツクのときには0、
第3ブロツクのときには+7と定められている。このよ
うに定めると、合焦状態のときP=0となり、前ピン状
態のときp<o。
(Step S, 8 in Fig. 13) This calculation is performed as follows: P=Z, -Z
2-Z3+X-1 (34). however,
Here, Z is the value corresponding to the distance between pixels (11) and (rl) in Figure 3, and Z2 is the image distance when in focus, that is, the distance between pixels (1, 2) and pixels (r, , ). This value corresponds to the interval L2. Z3 is a constant determined depending on which of the first to third blocks the minimum comparison data detected is used in the calculation of the calculation circuit (300). Then, Z, = 4, Z2 = 8, and Z3 is -8 when the minimum comparison data of the first block is used, and 0 when the second block is used.
For the third block, it is set as +7. When determined in this way, P=0 when in focus, and p<o when in focus.

後ビン状態のと外P>0となる。In the rear bin state, P>0.

このようにして、補間最小シフト量Xがらずれ量Pがめ
られる。ここで、補間最小シフト量Xとずれ量Pとの関
係を第16図に示す。第16図において、上段の数直線
は各ブロックにおける補間最小シフト量Xを示し、下段
の数直線は画素ピッチ単位のずれ量Pを示す。例えば、
第2ブロツクにおいてX=5となった場合、 P=4−8−0+5−1=0 となり、P=0すなわち合焦状態にあることが検出され
る。また、第1ブロツクにおいてX=6となった場合、 P=4−8+8+6−1=9 となり、詰3ブロックにおいてX=4となった場今、 P=4−8−7+4.−1=−8 となり、それぞれ後ビン状態、前ビン状態であることが
検出される。
In this way, the interpolation minimum shift amount X is determined to be the deviation amount P. Here, the relationship between the interpolation minimum shift amount X and the deviation amount P is shown in FIG. In FIG. 16, the number line in the upper row shows the interpolation minimum shift amount X in each block, and the number line in the lower row shows the shift amount P in units of pixel pitch. for example,
When X=5 in the second block, P=4-8-0+5-1=0, and it is detected that P=0, that is, in-focus state. Also, if X=6 in the first block, then P=4-8+8+6-1=9, and if X=4 in the third block, then P=4-8-7+4. -1=-8, and the rear bin state and front bin state are respectively detected.

(308)は上述の定数71、Z2、Z3をメモリして
いるメモリ回路であり、指示回路(CP U )からの
信号に応じ、いずれのブロックが最小比較データHi(
n)を検出したかによって定数73の値を選択し、定数
Z1、Z2とともに演算回路(306)に送る。
(308) is a memory circuit that stores the above-mentioned constants 71, Z2, and Z3, and depending on the signal from the instruction circuit (CPU), which block has the minimum comparison data Hi(
The value of constant 73 is selected depending on whether n) is detected and sent to the arithmetic circuit (306) together with constants Z1 and Z2.

演算されたずれ量Pは、比較回路(310)に入力され
て、正、負の符号が検出され、(第12図ステップS1
.)、P≦0であればフラグ(F +y)がセットされ
、その出力が“1”になる。(第12図ステップ55o
) P〉0であればフラグ(F、、)の出力は“0″の
ままである。すなわち、フラグ(F。
The calculated deviation amount P is input to the comparison circuit (310), and the positive and negative signs are detected (step S1 in FIG. 12).
.. ), if P≦0, a flag (F +y) is set and its output becomes “1”. (Figure 12 Step 55o
) If P>0, the output of the flag (F, , ) remains "0". That is, the flag (F.

7)の出力は、結像予定面に対するレンズのデフォーカ
スの方向を示し、前ビンもしくは合焦状態が検出される
と7ラグ(FI7)の出力は“1”となり、後ビン状態
が検出されると7フグ(F17)の出力は“0″となる
。フラグ(F17)の出力はデフォーカスの方向を示す
デフォーカス方向信号として、後述のレンズ駆動用モー
タ制御回路(430)に入力され、レンズ駆動方向の制
御に用いられる。
The output of 7) indicates the direction of defocus of the lens with respect to the planned imaging plane, and when the front bin or in-focus state is detected, the output of 7 lag (FI7) becomes "1", and the rear bin state is detected. Then, the output of 7 pufferfish (F17) becomes "0". The output of the flag (F17) is input as a defocus direction signal indicating the defocus direction to a lens drive motor control circuit (430), which will be described later, and is used to control the lens drive direction.

更に、演算されたずれ量Pは、デフォーカス量演算回路
(312)にも入力され、予めメモリ回路(314)に
メモリされた定数a6が乗ぜられてデフォーカス量DF
がめられる。この定数a6は、光軸垂直方向に延びるよ
う配置されたラインセンサ上の対応する2つの像のずれ
量Pを、予定焦点面に対する像面の光軸方向のデフォー
カス量DFに変換する為に定められるものである。すな
わち、定数a6は、予定焦点面からラインセンサまでの
距離、コンデンサレンズ及び再結像レンズの倍率などに
応じて定められる。演算されたデフォーカス量DFはメ
モリ回路(316)にメモリされ、メモリ回路(316
)からデフォーカス量信号として後述のレンズ駆動用モ
ータ制御回路(430)に入力されて、レンズ駆動量の
制御に用いられる。
Furthermore, the calculated deviation amount P is also input to the defocus amount calculation circuit (312), and is multiplied by a constant a6 stored in advance in the memory circuit (314) to obtain the defocus amount DF.
I get criticized. This constant a6 is used to convert the amount of deviation P of two corresponding images on the line sensor arranged to extend in the direction perpendicular to the optical axis into the amount of defocus DF in the optical axis direction of the image plane with respect to the planned focal plane. It is determined. That is, the constant a6 is determined depending on the distance from the planned focal plane to the line sensor, the magnification of the condenser lens and the re-imaging lens, and the like. The calculated defocus amount DF is stored in the memory circuit (316), and the defocus amount DF is stored in the memory circuit (316).
) is input as a defocus amount signal to a lens drive motor control circuit (430), which will be described later, and is used to control the lens drive amount.

本実施例においては、基準部(R)が3つのプロ755
− りに分割され、そのうちで合焦位置近傍の焦点検出を行
う為の第2ブロツクを用いて優先的に合焦検出を行い、
第2ブロツクを用いる合焦検出が不適当もしくは不可能
なときのみ他のブロックを用いるように構成されている
。従って、各ブロックについで合焦検出結果がそれぞれ
あり、いずれが正しいかを判断した後に最終結果をめる
ようにしたものに比べて、回路構成を簡皐にすることが
でき、被写体が画素のピッチと所定の関係にあるくり返
しパターンの場合にも迅速な合焦検出が可能である。そ
して、第2ブロツクによる合焦検出が不可能もしくは不
適当であるときにのみ、第1ブロツクを用い、更にそれ
でも不可能もしくは不適当であると外に第3ブロツクを
用いるので、いずれのブロックの結果が正しいかを判断
する手段は不要である。
In this embodiment, the reference part (R) has three professional 755
- The second block is used to perform focus detection near the focus position, and focus detection is performed preferentially;
The other blocks are used only when focus detection using the second block is inappropriate or impossible. Therefore, compared to a system in which each block has its own focus detection result and the final result is determined after determining which one is correct, the circuit configuration can be simplified and the subject can be Rapid focus detection is also possible in the case of a repeating pattern that has a predetermined relationship with the pitch. The first block is used only when focus detection by the second block is impossible or inappropriate, and if it is still impossible or inappropriate, the third block is used. There is no need for a means to determine whether the results are correct.

第17図は、本発明の合焦検出装置の信号処理回路にマ
イクロコンピュータを利用した実施例を示す回路図であ
る。以下、この回路についてその動作と共に説明する。
FIG. 17 is a circuit diagram showing an embodiment in which a microcomputer is used in the signal processing circuit of the focus detection device of the present invention. This circuit will be explained below along with its operation.

56− レリーズボタンの一段押しでAFスイッチのONがマイ
クロコンピュータ(μm00M)によって検知されると
、マイクロコンピュータ(μm00M)は焦点調節の動
作を開始する。
56- When the microcomputer (μm00M) detects that the AF switch is turned on by pressing the release button once, the microcomputer (μm00M) starts the focus adjustment operation.

まず、マイクロコンピュータ(μm00M)からCCD
(404)にパルス状の積分クリア信号ICGが出力さ
れ、これによりCCD(404)の各画素が初期状態に
リセットされると共に、輝度モニター回路MCの出力A
GCO8が電源電圧レベルまで回復する。又、マイクロ
コンピュータ(μm00M)はこれと同時にHレベルの
シフトパルス発生許可信号5HENを出力する。そして
、積分クリア信号ICGが消えると同時に、CCD(4
04)内の各画素では光電流の積分が開始され、同時に
輝度モニター回路MCの出力AGCO8が被写体輝度に
応じた速度で低下し始めるが、基準信号発生回路R3か
ら基準信号出力DO3は一定の基準レベルに保たれる。
First, from the microcomputer (μm00M) to the CCD
(404) outputs a pulsed integral clear signal ICG, which resets each pixel of the CCD (404) to its initial state, and outputs A from the brightness monitor circuit MC.
GCO8 recovers to the power supply voltage level. At the same time, the microcomputer (μm00M) outputs an H-level shift pulse generation enable signal 5HEN. Then, at the same time as the integral clear signal ICG disappears, the CCD (4
04) starts integrating the photocurrent, and at the same time, the output AGCO8 of the brightness monitor circuit MC starts to decrease at a speed corresponding to the subject brightness, but the reference signal output DO3 from the reference signal generating circuit R3 is based on a fixed standard. maintained at the level.

AGCコントローラ(406)はAGCO8をDO8と
比較し、所定時間(焦点検出時には100 +osec
、暗出力データ測定時には50 m5ec、 )内にA
GCO8がDO8に対してどの程度低下するかによって
、利得可変の差動アンプ(408)の利得を制御する。
The AGC controller (406) compares AGCO8 with DO8 and calculates a predetermined time (100 + osec when detecting focus).
, A within 50 m5ec, ) when measuring dark output data.
The gain of the variable gain differential amplifier (408) is controlled depending on how much GCO8 decreases relative to DO8.

又、AGCコントロー−7(406)は積分クリア信号
ICGの消滅後、所定時間内にAGCO8がDO8に対
して所定レベル以上低下したことを検出すると、その時
Hレベルの信号TINTを出力する。この信号TINT
はアンド回路(AN)オア回路(OR)を通ってシフト
パルス信号出力回路(410)に入力され、これに応答
しこの回路(410)がらシフトパルスSHが出力され
る。このシフトパルスSHがCCD(404)に入力さ
れると、各画素による光電流積分が終わり、この積分値
に応じた電荷がCCDシフトレジスタの対応するセルに
並列的に転送される。一方、マイクロコンビ;−タ(μ
mCOM)からのクロックパルスCLにもとづいて、セ
ンサー駆動パルス発生回路(412)からは位相が18
0°ずれた2つのセンサー駆動パルスφ1.φ2が出力
され、CCD(4(14)に入力されでいる。CCD(
404)はこれらのセンサー駆動パルスのうち、φ1の
立上りと同期してCODシフトレジスターの各セルの電
荷を1つずつ端から直列的に排出し、映像信号を形成す
る電圧O8が順次出力される。この電圧O8は対応する
画素への入射光強度が低い程高い電圧となっており、減
算回路(414)がこれを上述の基準信号DO8から差
し引いて、(DO8−O8)を画素信号として出力する
。尚、積分クリア信号ICGの消滅後TINTが出力さ
れずに所定時間が経過すると、マイクロコンピュータ(
μmCOM)はHレベルのシフトパルス発生指令信号S
HMを出力する。したがって、積分クリア信号ICGの
消滅後所定時間経過してもAGCコントローラ(406
)からHレベルのTINT信号が出力されない場合は、
このシフトパルス発生指令信号SHMに応答して、シフ
トパルス発生回路(410)がシフトパルスSHを発生
する。
Further, when the AGC controller 7 (406) detects that AGCO8 has decreased by a predetermined level or more with respect to DO8 within a predetermined time after the integral clear signal ICG disappears, it outputs an H level signal TINT at that time. This signal TINT
is input to a shift pulse signal output circuit (410) through an AND circuit (AN) and an OR circuit (OR), and in response, a shift pulse SH is output from this circuit (410). When this shift pulse SH is input to the CCD (404), photocurrent integration by each pixel is completed, and charges corresponding to this integrated value are transferred in parallel to corresponding cells of the CCD shift register. On the other hand, microcombination
Based on the clock pulse CL from the sensor drive pulse generation circuit (412), the phase is 18.
Two sensor drive pulses φ1. shifted by 0°. φ2 is output and input to CCD(4(14).CCD(
404) among these sensor drive pulses, in synchronization with the rising edge of φ1, the charges of each cell of the COD shift register are discharged one by one from the end in series, and the voltage O8 that forms the video signal is sequentially output. . This voltage O8 becomes higher as the intensity of light incident on the corresponding pixel is lower, and a subtraction circuit (414) subtracts this from the above-mentioned reference signal DO8 and outputs (DO8-O8) as a pixel signal. . Furthermore, if a predetermined time elapses without TINT being output after the disappearance of the integral clear signal ICG, the microcomputer (
μmCOM) is the H level shift pulse generation command signal S
Output HM. Therefore, the AGC controller (406
) if the H level TINT signal is not output from
In response to this shift pulse generation command signal SHM, a shift pulse generation circuit (410) generates a shift pulse SH.

一方、上述の動作において、マイクロコンピュータ(μ
mCOM)は第7番目から第10番目までのホトセンサ
ーに対応する画素信号が出力される59− ときに、サンプルホールド信号S/Hを出力する。
On the other hand, in the above operation, a microcomputer (μ
mCOM) outputs a sample hold signal S/H when pixel signals corresponding to the seventh to tenth photosensors are output.

これによって、ピークホールド回路(416)はホトセ
ンサーアレイのアルミマスク部に対応する出力O8とD
O8との差を保持し、以降この差出力と画素信号とが可
変利得アンプ(40B)に入力される。そして、可変利
得アンプ(408)は画素信号とその差出力の差をAG
Cコントローラ(406)により制御された利得でもっ
で増幅し、その増幅出力がA/D変換器(418)によ
ってA/D変換された後、暗出力測定データ又は画素信
号データとしてマイクロコンピュータ(μmCOM)に
取込まれる。
As a result, the peak hold circuit (416) outputs O8 and D corresponding to the aluminum mask portion of the photosensor array.
The difference with O8 is held, and thereafter this difference output and the pixel signal are input to the variable gain amplifier (40B). Then, the variable gain amplifier (408) converts the difference between the pixel signal and the difference output into an AG
The amplified output is further amplified with a gain controlled by a C controller (406), and the amplified output is A/D converted by an A/D converter (418). ).

(420)はホトセンサーアレイのシャッタが閉じてい
る間に測定された暗出力測定データにもとづいて得られ
る補正用暗出力データを保持する暗出力データメモリー
、(422)は焦点検出動作時にマイクロコンピュータ
(μmCOM)を通じて供給される画素信号データから
メモリーの補正用暗出力データを差引く暗出力補正回路
、(424)は焦点検出演算回路である。又、SWは一
眼し7レツ60− クスカメラのミラー駆動と連動して開閉スイッチであり
、これの開閉に応じてマイクロコンピユー・り(μ−〇
〇M)の動作態様が変化する。
(420) is a dark output data memory that holds correction dark output data obtained based on the dark output measurement data measured while the shutter of the photosensor array is closed, and (422) is a microcomputer during focus detection operation. A dark output correction circuit (424) subtracts correction dark output data of the memory from pixel signal data supplied through (μmCOM), and (424) is a focus detection calculation circuit. Further, SW is an opening/closing switch that works in conjunction with the mirror drive of the single-lens camera, and the operating mode of the microcomputer (μ-〇〇M) changes depending on the opening/closing of this switch.

今、レリーズ釦が上述のように一段押しされたときには
、ミラーは下降位置にあって、スイッチSWは開かれて
おり、すでに暗出力データメモリ−(420)には、前
回の撮影時に得られた補正用暗出力データが保存されて
いる。
Now, when the release button is pressed one step as described above, the mirror is in the lowered position, the switch SW is open, and the dark output data memory (420) has already stored the data obtained from the previous shooting. Dark output data for correction is saved.

レリーズ釦の一段押しによって上述の積分クリア信号が
発生し、これが消滅すると同時にCCD(404)の各
画素での光電流積分が開始されるが、スイッチ(SW)
が開かれているためにマイクロコンピュータ(μmCO
M)が上記所定時間を100m5ecとするため、その
積分時間は最大100IIlsecである。すなわち、
被写体が一定しベル以上明るければ、ICGが消滅した
後AGCO8は100111see経過前にDO8に対
して所定レベル2.8■低下し、AGC:Iントローラ
(4,06)がらTINT信号と可変利得アンプ(40
B)の利得を1倍に設定する利得制御信号が出力される
。これに対し、被写体が」1記の一定レベルよりも暗け
れば、ICGの消滅後100 m5ecの間にAGCO
8はDO8に対して所定レベル2.8V低下せず、マイ
クロコンピュータ(#−COM)がら100 m5ec
経過時点でSHM信号が発生し、このSHM信号に応答
してシフトパルスSHが発生すると共に、AGCコント
ローラ(406)から利得制御信号が出力される。すな
わち、この場合、AGCコントローラ(406)は、そ
の所定時間100 m5ec内におけるAGCO8の低
下度合に応じて100〜200伯Sec、 200−4
00 m5ec、 400−800 m5ec。
By pressing the release button one step, the above-mentioned integration clear signal is generated, and at the same time as this signal disappears, photocurrent integration starts at each pixel of the CCD (404), but when the switch (SW)
Microcomputer (μmCO
Since M) sets the above-mentioned predetermined time to 100 m5ec, its integral time is at most 100IIlsec. That is,
If the object is constant and brighter than the bell, after the ICG disappears, AGCO8 drops to a predetermined level of 2.8■ with respect to DO8 before 100111see elapses, and the AGC:I controller (4,06) outputs the TINT signal and the variable gain amplifier ( 40
A gain control signal that sets the gain of B) to 1 is output. On the other hand, if the object is darker than the certain level described in 1.
8 does not drop to the specified level 2.8V with respect to DO8, and the microcomputer (#-COM) has a voltage of 100 m5ec.
An SHM signal is generated at the elapsed time point, and in response to this SHM signal, a shift pulse SH is generated and a gain control signal is output from the AGC controller (406). That is, in this case, the AGC controller (406) performs 100 to 200 seconds, 200-4 seconds depending on the degree of decrease in AGCO8 within the predetermined time of 100 m5ec.
00 m5ec, 400-800 m5ec.

800 +n5ecm5ec分時間が必要な場合のいず
れであるかを判定し、アンプ(40B)の利得をそれ夫
々1倍、2倍、4倍、8倍のいずれかに設定する利得制
御信号を発生するが、一方TINT信号は出力しない。
It determines whether 800+n5ecm5ec minutes are required and generates a gain control signal to set the gain of the amplifier (40B) to 1x, 2x, 4x, or 8x, respectively. , while the TINT signal is not output.

このようにしで、最大100 In5ecの光電流積分
が終わると、マイクロコンピュータ(μmC0M)はA
GCコントローラ(406)から入力される利得制御信
号の示す利得制御データが8倍か、4倍か、2倍かを順
次判定し、8倍であれば暗出力データメモリー(420
)に保存されている補正用暗出力データを2倍する信号
を出して、2倍の補正用暗出力データを補正データとし
て暗出力補正回路(422)に入力させる。又、4倍で
あれば、メモリー(420)の補正用暗出力データをそ
のまま補正回路(422)に補正データとして入力させ
(暗出力測定データを1倍する)、2倍であればメモリ
ー(420)の補正用暗出力データを1/2倍する信号
を出して、1/2倍の補正用暗出力データを補正データ
として補正回路(422)に入力させる。利得制御デー
タが8倍、4倍、2倍のいずれでもなく1倍である場合
、マイクロコンピュータ(μmC0M)は同様にメモリ
ー(420)の補正用暗出力データを174倍する信号
を出して、1/4倍の補正用暗出力データを補正回路(
422)に入力させる。
In this way, when the maximum photocurrent integration of 100 In5ec is completed, the microcomputer (μmC0M)
It is sequentially determined whether the gain control data indicated by the gain control signal input from the GC controller (406) is 8 times, 4 times, or 2 times, and if it is 8 times, the dark output data memory (420
) is outputted to double the correction dark output data stored in ), and the double correction dark output data is input to the dark output correction circuit (422) as correction data. Also, if it is 4 times, the dark output data for correction in the memory (420) is directly inputted to the correction circuit (422) as correction data (the dark output measurement data is multiplied by 1), and if it is 2 times, the dark output data for correction in the memory (420) is input as correction data to the correction circuit (422). ) is outputted to 1/2 times the correction dark output data, and inputs the 1/2 times the correction dark output data as correction data to the correction circuit (422). If the gain control data is 1x, not 8x, 4x, or 2x, the microcomputer (μmC0M) similarly outputs a signal that multiplies the dark output data for correction in the memory (420) by 174, and /4 times the dark output data for correction circuit (
422).

一方、シフトパルスSHの発生によってCCD(404
)を構成する各画素での光電流積分が終了し、A/D変
換器(418)からの画素信号データー63= がマイクロコンピュータ(μmC0M)に入力される。
On the other hand, due to the generation of the shift pulse SH, the CCD (404
) is completed, and pixel signal data 63 = from the A/D converter (418) is input to the microcomputer (μmC0M).

マイクロコンピュータ(μmC0M)はこの画素信号デ
ータを順次補正回路(422)に出力するが、このとき
TINT信号の入力の有無に応じて、積分時間が100
 +n5ec以下かどうかを判定しく100m5ec以
下であればTINT信号が出力される)、100 m5
ec以上であれば補正回路(422)に各画素信号デー
タから上述の補正データを減算させその差データを出力
させる。一方、100m5ee以下であれば、補正回路
(422)にこの減算を行わせることなく、画素信号デ
ータをそのまま出力させる。この後焦点検出演算回路(
424)は、この差データ又は画素信号データを内部の
メモリーに順次保存するが、イメージセンサ−の全画素
に対応するデータの保存が完了すると、それを用いて所
定のプログラムに従って焦点ズレ量及びその方向を算出
し、表示回路(426)にそれらを表示させると共に、
一方ではレベル駆動装置(428)を焦点ズレ量及びそ
の方向に応じて駆動し、撮影レンズ(430)の自動焦
点調整を行う。
The microcomputer (μmC0M) sequentially outputs this pixel signal data to the correction circuit (422), but at this time, the integration time varies depending on whether or not the TINT signal is input.
+n5ec or less is determined. If it is less than 100m5ec, the TINT signal is output), 100 m5
If it is greater than ec, the correction circuit (422) subtracts the above correction data from each pixel signal data and outputs the difference data. On the other hand, if it is less than 100 m5ee, the pixel signal data is output as is without causing the correction circuit (422) to perform this subtraction. After this focus detection calculation circuit (
424) sequentially stores this difference data or pixel signal data in the internal memory, but once the data corresponding to all pixels of the image sensor has been stored, it is used to calculate the amount of focus shift and its value according to a predetermined program. Calculating the directions and displaying them on the display circuit (426),
On the other hand, the level drive device (428) is driven according to the amount and direction of focus shift to perform automatic focus adjustment of the photographic lens (430).

64一 本実施例においては、CCDの積分、データダンプ、及
び合焦検出演算がくり返し行なわれており、精度の向上
がはかられている。
64. In this embodiment, CCD integration, data dump, and focus detection calculations are repeated to improve accuracy.

尚、上記実施例においては、各画素の出力1.〜1□3
、rl−r31を直接用いて演算を行なっていたが、本
発明はこれに限定されるものではなく、例えば、第3図
における画素(11)の出力信号11から画素(15)
の出力信号15を減じたものを画素(13)の位置に対
応する出力信号L3とし、1□から16を減じたものを
画素(1)の位置に対応する出力信号り、とするように
、数個とばしの画素の差分をその中央の位置における出
力信号として上述の演算を行なえば、像の画周波成分を
カットすることができる。
In the above embodiment, each pixel output 1. ~1□3
, rl-r31, but the present invention is not limited to this. For example, from the output signal 11 of pixel (11) to pixel (15) in FIG.
The output signal L3 corresponding to the position of pixel (13) is obtained by subtracting the output signal 15 of , and the output signal L3 corresponding to the position of pixel (1) is obtained by subtracting 16 from 1□. By performing the above calculation using the difference between several pixels as an output signal at the center position, the image frequency component of the image can be cut.

(以 下 余 白 ) 効 果 以上のように本発明は、撮影レンズの光軸を挾む、該撮
影レンズの第1の部分と第2の部分とをそれぞれ通過し
た被写体光束からつくられる第1と第2の二つの像の相
対的な間隔を検出して撮影レンズの合焦位置からのずれ
量を検出する焦点検出装置において、各被写体光束をそ
れぞれ受光するように配置された、多数のホトダイオー
ドセルが一列に配列されたホトダイオードアレイからな
る第1及び第2の受光手段を有し、第1の受光手段中の
各セルに応じた出力信号を順に、tINtkとし、第2
の受光手段中の各セルに応じた出力信号を順に11〜1
m(kくm)とし、第1の受光手段ダ」 の出力信号41+t1〜tkと最も一致度の高い第2の
受光手段の出力信号列をr9+1〜r9十にとするとき
(19)、(20)、(21)式を一般化して得られる
(hereinafter referred to as margin) Effects As described above, the present invention provides a first light beam created from the subject light flux that passes through the first part and the second part of the photographic lens, which sandwich the optical axis of the photographic lens. In a focus detection device that detects the relative distance between the first and second images and the amount of deviation of the photographing lens from the in-focus position, a large number of photodiodes are arranged to receive each subject's light flux. It has first and second light receiving means each consisting of a photodiode array in which cells are arranged in a row, and the output signal corresponding to each cell in the first light receiving means is set as tINtk, and the second light receiving means is
The output signals corresponding to each cell in the light receiving means of
m (k × m), and when the output signal sequence of the second light receiving means with the highest degree of coincidence with the output signal 41+t1 to tk of the first light receiving means is r9+1 to r90, (19), 20) and (21) can be generalized.

とを用いて両像の像間隔をめることを特徴とするもので
あり、このように構成することによってセルのピッチよ
りも更に細かいピッチで像間隔がめられる。そして、各
値A、B、Cの演算に用列 いられる出力信号→の違いを小さくして精度を良くする
ことができる。
This feature is characterized in that the image interval between the two images is determined by using the above, and by configuring in this way, the image interval can be determined at a pitch even finer than the pitch of the cells. Then, the difference between the output signals → used in the calculation of each value A, B, and C can be reduced to improve accuracy.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は従来例及び本発明の焦点検出装置の概略を示す
断面図、第2図はその原理を示ず諷の模式図、第3図は
本発明実施例の受光手段の正面図、第4.10,12.
14図は本発明実施例を示すブロック図、第5.11.
13図はそのフローチャート、第6図は補間の必要を示
す為のグラフ、第7図は受光手段の出力例を示すグラフ
、第8図(a)〜(d)はそれぞれシフト量と相関値と
の種々の関係を示すグラフ、第9図は本実施例の補間法
による最小比較データY2のめ方を示すグラフ、第15
図(a) 、 (b)は本実施例の補間法による最小シ
フト量nのめ方を示すグラフ、第16図は補間最小シフ
)IIXとずれ量Pとの関係を示す数直線、第17図は
上の実施例の演算処理にマイクロコンピュータを用いた
実施例を示すブロック図である。 (2);撮影レンズ、(ト);第1の受光手段、但);
第2の受光手段。 以上 出願人 ミノルタカメラ株式会社 第7図 (A) 宝 工 89− ′2 ン 瞼 へ う ≧ ン 第15図 K ) 一ノ \−
FIG. 1 is a sectional view schematically showing a conventional focus detection device and a focus detection device of the present invention, FIG. 2 is a schematic diagram without showing its principle, and FIG. 4.10,12.
FIG. 14 is a block diagram showing an embodiment of the present invention, Section 5.11.
Figure 13 is a flowchart, Figure 6 is a graph showing the necessity of interpolation, Figure 7 is a graph showing an example of the output of the light receiving means, and Figures 8 (a) to (d) are graphs showing the shift amount and correlation value, respectively. FIG. 9 is a graph showing how to determine the minimum comparison data Y2 by the interpolation method of this embodiment.
Figures (a) and (b) are graphs showing how to determine the minimum shift amount n by the interpolation method of this embodiment, Figure 16 is a number line showing the relationship between interpolation minimum shift (IIX) and deviation amount P, and Figure 17 is a graph showing how to calculate the minimum shift amount n by the interpolation method of this embodiment. The figure is a block diagram showing an embodiment in which a microcomputer is used for the arithmetic processing of the above embodiment. (2); Taking lens; (g); First light receiving means; however);
Second light receiving means. Applicant: Minolta Camera Co., Ltd. Figure 7 (A)

Claims (1)

【特許請求の範囲】 撮影レンズの光軸を挾む、該撮影レンズの第1の部分と
第2の部分とをそれぞれ通過した被写体光束からつくら
れる第1と第2の二つの像の相対的な間隔を検出して撮
影レンズの合焦位置からのずれ量を検出する焦点検出装
置において、各被写体光束をそれぞれ受光するように配
置された、多数のホトダイオードセルが一列に配列され
たホトダイオードアレイからなる第1及び第2の受光手
段を有し、第1の受光手段中の各セルに応じた出力信号
を順に、t1〜tkとし、第2の受光手段中の各セルに
応じた出力信号を順に11〜1m(k<m)と列 し、第1の受光手段の出力信号櫻tt〜tkと最も一致
度の高い第2の受光手段の出力信号列をr9+1〜7”
 q−1−k とするとき、 にてめられる値A、B及びCを用いて両受光手段上の像
の間の間隔をめることを特徴とする焦点検出装置。
[Claims] A relative relationship between two images, a first and a second image, which are formed from a subject light flux that passes through a first part and a second part of a photographic lens, which are sandwiched by the optical axis of the photographic lens. In a focus detection device that detects the amount of deviation of the photographing lens from the in-focus position by detecting the distance between the photographic lens and the focal point, a photodiode array consisting of a large number of photodiode cells arranged in a row is used to The output signal corresponding to each cell in the first light receiving means is sequentially t1 to tk, and the output signal corresponding to each cell in the second light receiving means is 11 to 1m (k<m) in order, and the output signal sequence of the second light receiving means that has the highest degree of coincidence with the output signals tt to tk of the first light receiving means is r9+1 to 7''
A focus detection device characterized in that, when q-1-k, the distance between the images on both light receiving means is determined using values A, B, and C determined by.
JP10421384A 1984-05-17 1984-05-22 Focus detector Pending JPS60247211A (en)

Priority Applications (6)

Application Number Priority Date Filing Date Title
JP10421384A JPS60247211A (en) 1984-05-22 1984-05-22 Focus detector
US06/735,569 US4766302A (en) 1984-05-17 1985-05-17 Focus detecting device including means for determining a priority of correlation calculations
US07/120,326 US4829170A (en) 1984-05-17 1987-11-12 Digital focus detecting device
US07/186,132 US4864117A (en) 1984-05-17 1988-06-09 Device with a discriminating priority system
US07/628,921 US5107291A (en) 1984-05-17 1990-11-29 Focus detecting device
US07/757,948 US5159383A (en) 1984-05-17 1991-09-12 Focus detecting device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10421384A JPS60247211A (en) 1984-05-22 1984-05-22 Focus detector

Publications (1)

Publication Number Publication Date
JPS60247211A true JPS60247211A (en) 1985-12-06

Family

ID=14374679

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10421384A Pending JPS60247211A (en) 1984-05-17 1984-05-22 Focus detector

Country Status (1)

Country Link
JP (1) JPS60247211A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4812912A (en) * 1986-05-26 1989-03-14 Minolta Camera Kabushiki Kaisha Focus detection condition display device for camera
US5381206A (en) * 1991-07-22 1995-01-10 Canon Kabushiki Kaisha Focus detecting device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4812912A (en) * 1986-05-26 1989-03-14 Minolta Camera Kabushiki Kaisha Focus detection condition display device for camera
US5001507A (en) * 1986-05-26 1991-03-19 Minolta Camera Kabushiki Kaisha Focus detection condition display device for camera
US5381206A (en) * 1991-07-22 1995-01-10 Canon Kabushiki Kaisha Focus detecting device
US5667270A (en) * 1991-07-22 1997-09-16 Canon Kabushiki Kaisha Focus detecting device

Similar Documents

Publication Publication Date Title
US4829170A (en) Digital focus detecting device
US6215960B1 (en) Camera with camera-shake detection apparatus
US4716434A (en) Focus condition detecting device
US4734571A (en) Focus condition detecting device having correlation calculation means and means for determining the range of shifts of image signals
US6463214B1 (en) Multi-point autofocus system
US4851657A (en) Focus condition detecting device using weighted center or contrast evaluation
US6765618B1 (en) Subject selection device and in-focus portion indicating device
US5255044A (en) Automatic exposure control apparatus with improved exposure value calculation for photographing a moving object
JPH0154908B2 (en)
EP2028843B1 (en) Focusing device and imaging apparatus using the same
JPS60247210A (en) Focus detector
US4748321A (en) Focus detection device with wavefront aberration correction
JPS60247211A (en) Focus detector
JPS62125311A (en) Automatic focusing device
JPH04235512A (en) Focus detecting device having grouping function
JPH11142723A (en) Image pickup device
US6760547B2 (en) Rangefinder apparatus and camera equipped therewith
JPH03164727A (en) Focus detecting photometric device
JPH061292B2 (en) Focus detection device
JP3397221B2 (en) Photometric device
JPS63194240A (en) Automatic focus detector
JPH03174127A (en) Exposure controller for camera
JP4426812B2 (en) Digital camera
JP2808222B2 (en) Video camera and photometric method thereof
JPS62148910A (en) Focus detector