JPH0762734B2 - Focus detection device - Google Patents
Focus detection deviceInfo
- Publication number
- JPH0762734B2 JPH0762734B2 JP60086871A JP8687185A JPH0762734B2 JP H0762734 B2 JPH0762734 B2 JP H0762734B2 JP 60086871 A JP60086871 A JP 60086871A JP 8687185 A JP8687185 A JP 8687185A JP H0762734 B2 JPH0762734 B2 JP H0762734B2
- Authority
- JP
- Japan
- Prior art keywords
- digital data
- time
- data
- focus detection
- address
- 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.)
- Expired - Lifetime
Links
Classifications
-
- G—PHYSICS
- G02—OPTICS
- G02B—OPTICAL ELEMENTS, SYSTEMS OR APPARATUS
- G02B7/00—Mountings, adjusting means, or light-tight connections, for optical elements
- G02B7/28—Systems for automatic generation of focusing signals
- G02B7/36—Systems for automatic generation of focusing signals using image sharpness techniques, e.g. image processing techniques for generating autofocus signals
Landscapes
- Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Computer Vision & Pattern Recognition (AREA)
- General Physics & Mathematics (AREA)
- Optics & Photonics (AREA)
- Focusing (AREA)
- Automatic Focus Adjustment (AREA)
Description
【発明の詳細な説明】 (発明の技術分野) 本発明は焦点検出装置に関し、特に、イメージセンサ受
光部上に光像を形成して得られたイメージセンサ出力に
基づいて光像の状態を検出する装置、例えばカメラ等の
光学機器に用いて好適な焦点検出装置に関するものであ
る。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a focus detection device, and more particularly to detecting the state of a light image based on an image sensor output obtained by forming a light image on a light receiving portion of the image sensor. Device, for example, a focus detection device suitable for use in an optical device such as a camera.
従来のこの種の焦点検出装置、例えばカメラに用いられ
る焦点検出装置では、投影レンズの射出瞳の異なる部分
を通過した光束による一対の被写体像の相対的ずれ量を
光電的に検出して、そのずれ量から投影レンズの焦点検
出を行なう。第9図にその光学系を示す。第9図におい
て、撮影レンズ1の射出瞳の第1部分2および第2部分
3をそれぞれ通過した光束のそれぞれは、撮影レンズ1
の予定結像面4の近傍に第1および第2の被写体像をそ
れぞれ形成する。この第1および第2の被写体像の各々
は、フィールドレンズ5を介して、第1および第2の再
結像レンズ6、7により第1および第2の光電変換素子
アレイ(以下イメージセンサSA,SB上に再結像される。
イメージセンサSAおよびSBは各々N個の光電変換部a1〜
aN、b1〜bNから形成されており、光電変換部の配列方向
の幅は、光電変換部の配列ピッチPOとほぼ同じである。
イメージセンサSA,SBは光電変換部上の光強度分布に対
応した時系列アナログ出力SA1〜SAN、SB1〜SBNを出力す
る。In a conventional focus detection device of this type, for example, a focus detection device used in a camera, photoelectrically detects a relative shift amount of a pair of subject images due to a light beam that has passed through different portions of the exit pupil of the projection lens. The focus of the projection lens is detected from the shift amount. FIG. 9 shows the optical system. In FIG. 9, each of the light fluxes passing through the first portion 2 and the second portion 3 of the exit pupil of the taking lens 1 is represented by the taking lens 1
The first and second subject images are formed in the vicinity of the planned image forming surface 4. Each of the first and second subject images is passed through the field lens 5 and the first and second re-imaging lenses 6 and 7 for the first and second photoelectric conversion element arrays (hereinafter referred to as image sensor SA, It is re-imaged on SB.
The image sensors SA and SB each include N photoelectric conversion units a1 to
It is formed of aN and b1 to bN, and the width of the photoelectric conversion units in the arrangement direction is almost the same as the arrangement pitch PO of the photoelectric conversion units.
The image sensors SA and SB output time-series analog outputs SA1 to SAN and SB1 to SBN corresponding to the light intensity distribution on the photoelectric conversion unit.
第10図は、このようにして得られるイメージセンサSA,S
Bの出力SA1…SAN、およびSB1…SBNを受けて、イメージ
センサSA,SB上の第1および第2の被写体像の相対的な
ずれ量を検出する焦点検出装置の演算処理系の従来例を
示す。このような従来の焦点検出装置の動作を第10図お
よび第11図を参照して説明する。FIG. 10 shows the image sensors SA and S thus obtained.
SAN of SB and SB1 ... SBN, and a conventional example of an arithmetic processing system of a focus detection device for detecting the relative shift amount of the first and second object images on the image sensors SA and SB. Show. The operation of such a conventional focus detection device will be described with reference to FIGS. 10 and 11.
イメージセンサSA,SBは、時刻t0から時刻t1の時間TOに
おいて電荷蓄積を行い、時刻t1から光電変換出力SA1…S
AN、SB1…SBNを順次時系列的にA/D変換器8に送る。A/D
変換器8は、これらの時系列出力をA/D変換し、時刻t1
から光電変換出力SA1…SAN、SB1…SBNに対応したデジタ
ルデータE1…EN、F1…FNをマイクロプロセッサ9(以後
CPUと呼ぶ)に送る。マイクロプロセッサ9はデータ転
送手段11、フィルタ手段12および焦点検出演算手段13を
有し、これらの各手段はCPUに予め格納されたプログラ
ミングに従って駆動される。すなわち、時刻t1から、A/
D変換器8の出力デジタルデータE1…EN、F1…FNは、デ
ータ転送手段11により、メモリ10の所定の格納領域に順
次格納される。このようにして時刻t1から時刻t2までの
時間T1にデータ転送手段11によりデジタルデータ転送が
行なわれ、時刻t2に全てのデジタルデータE1〜EN、F1〜
FNがメモリ10に格納されると、フィルタ手段12によりデ
ジタルデータE1〜EN、F1〜FNのフィルタリングが開始さ
れる。The image sensors SA and SB accumulate charges at time TO from time t0 to time t1, and photoelectric conversion outputs SA1 ... S from time t1.
The AN, SB1 ... SBN are sequentially sent to the A / D converter 8 in time series. A / D
The converter 8 A / D-converts these time-series outputs and outputs them at time t1.
To photoelectric conversion outputs SA1 ... SAN, SB1 ... SBN corresponding digital data E1 ... EN, F1 ... FN to the microprocessor 9 (hereinafter
Call it CPU). The microprocessor 9 has a data transfer means 11, a filter means 12, and a focus detection calculation means 13, and each of these means is driven according to programming prestored in the CPU. That is, from time t1, A /
The output digital data E1 ... EN, F1 ... FN of the D converter 8 are sequentially stored in a predetermined storage area of the memory 10 by the data transfer means 11. In this way, digital data transfer is performed by the data transfer means 11 at time T1 from time t1 to time t2, and at time t2 all digital data E1 to EN, F1 to
When the FN is stored in the memory 10, the filtering means 12 starts filtering the digital data E1 to EN and F1 to FN.
ここでフィルタリングとは、例えば、次式のような演算
により加算デジタルデータGL(G1〜G2但しP=N−Q+
1)を求めることをさす。Here, the filtering means, for example, the addition digital data GL (G1 to G2 where P = N−Q +
Refers to 1).
ここで、デジタルデータGLは、順次Lを変えていき求め
られるものであり、(1)式において、K=S−L+
1、Qはフィルタリングの項数、WKはフィルタの重み係
数である。L=1、Q=5、重み係数wkを第12図(a)
のように設定した場合、(1)式は次の(2)式とな
る。 Here, the digital data GL is obtained by sequentially changing L, and in the equation (1), K = S−L +
1, Q is the number of filtering terms, and WK is the weighting factor of the filter. L = 1, Q = 5, weighting factor wk is shown in FIG. 12 (a).
When set as above, the equation (1) becomes the following equation (2).
G1=W1・E1+W2・E2+W3・E3+W4・E4+W5・E5 =0.28・E1+0.76・E2+1.0・E2+0.76・E4 +0.28・E5…(2) なお、第12図(b)は、第12図(a)のような重み係数
を持つフィルタ手段のMTFを示したものである。このよ
うにフィルタ手段12の重み係数wkの値や項数Qを適宜設
定することにより、光像の強度分布に対応するデジタル
データE1〜EN、F1〜FNから、焦点検出演算に悪影響を与
える高周波成分や低周波成分を除去することができる。G1 = W1 ・ E1 + W2 ・ E2 + W3 ・ E3 + W4 ・ E4 + W5 ・ E5 = 0.28 ・ E1 + 0.76 ・ E2 + 1.0 ・ E2 + 0.76 ・ E4 + 0.28 ・ E5… (2) Fig. 12 (b) shows the number 12 It shows the MTF of the filter means having a weighting coefficient as shown in FIG. In this way, by appropriately setting the value of the weighting factor wk of the filter means 12 and the number of terms Q, the high frequency that adversely affects the focus detection calculation from the digital data E1 to EN, F1 to FN corresponding to the intensity distribution of the optical image. It is possible to remove components and low frequency components.
第11図を参照するに、時刻t2から時刻t3の時間T2におい
て、フィルタ手段12によりデジタルデータE1〜EN、F1〜
FNに対応する加算デジタルデータG1〜GP、H1〜HPの演算
およびメモリへの格納が行なわれる。次に、時刻t3から
時刻t4の時間T3に、焦点検出演算13は、加算デジタルデ
ータG1〜GPとH1〜HPとの間の相対的ずれ量を求める演算
を行なう。時刻t4に焦点検出演算手段13により、ずれ量
が検出され、それに基づいて焦点調節状態の表示および
/または撮影レンズの駆動が行なわれて一連のシーケン
スが終了する。そして、時刻t4により次のイメージセン
サの荷電蓄積が開始され次のシーケンスが始まる。Referring to FIG. 11, at time T2 from time t2 to time t3, digital data E1 to EN, F1 to F1
The addition digital data G1 to GP and H1 to HP corresponding to FN are calculated and stored in the memory. Next, at time T3 from time t3 to time t4, the focus detection calculation 13 performs calculation to obtain the relative shift amount between the added digital data G1 to GP and H1 to HP. At time t4, the focus detection calculation means 13 detects the shift amount, and based on that, the focus adjustment state is displayed and / or the photographing lens is driven, and the series of sequences is completed. Then, at time t4, charge accumulation of the next image sensor is started and the next sequence starts.
このような従来の焦点検出装置においては、A/D変換さ
れたデジタルデータのメモリへの転送動作が完了した後
にフィルタ手段の動作を行なっているため、データ数が
大量になった場合にはこれらの動作の合計時間が長くな
り、全体として焦点検出装置の応答性が悪くなる。デー
タ転送動作時間を短くするために高速A/D変換手段を使
用することも考えられるが、消費電力が大きくなるばか
りか高価である。In such a conventional focus detection device, since the operation of the filter means is performed after the transfer operation of the A / D converted digital data to the memory is completed, when the data amount becomes large, these The total time of the above operations becomes long, and the responsiveness of the focus detection apparatus as a whole deteriorates. It is conceivable to use a high-speed A / D conversion means in order to shorten the data transfer operation time, but it not only increases power consumption but is expensive.
(発明の目的) 本発明の目的は、これらの欠点を解決し、データ転送お
よびフィルタ処理をAD変換と並行して行うようにした焦
点検出装置を提供することにある。(Object of the Invention) An object of the present invention is to solve these drawbacks and to provide a focus detection apparatus which performs data transfer and filtering in parallel with AD conversion.
(発明の概要) 本発明は、1つのアナログデータをデジタルデータにA/
D変換する時間内に、デジタルデータをメモリに転送す
るとともに既にメモリに格納されている別のデジタルデ
ータを読み出して焦点検出に関する演算を行うことを特
徴とする。(Summary of the Invention) The present invention converts one analog data into digital data
It is characterized in that the digital data is transferred to the memory and the other digital data already stored in the memory is read out during the time of D conversion, and the calculation related to the focus detection is performed.
(実 施 例) −第1実施例− 第1図は本発明の一実施例を示し、一対のイメージセン
サ(例えば、CCDイメージセンサ)SAおよびSBの出力はA
/D変換器14に接続され、A/D変換器14の出力はマイクロ
プロセッサ15に接続される。マイクロプロセッサ15は周
知のもので、そのROMには第2図および第3図に示した
焦点情報演算プログラムが予め格納されている。そのプ
ログラムにより、A/D変換器14においてイメージセンサS
AからのデジタルデータE1,E2…EN、およびイメージセン
サからのF1,F2…FNのデータ転送、フィルタ処理、演算
処理が順次に行なわれて加算デジタルデータG1〜GP、H1
〜HPが算出されるように構成されている。従って、マイ
クロプロセッサ15は、データ転送手段17、フィルタ手段
18および演算手段19を有しているものである。(Examples) -First Example-FIG. 1 shows an example of the present invention, in which outputs of a pair of image sensors (for example, CCD image sensors) SA and SB are A.
It is connected to the / D converter 14, and the output of the A / D converter 14 is connected to the microprocessor 15. The microprocessor 15 is a well-known one, and the focus information calculation program shown in FIGS. 2 and 3 is stored in advance in its ROM. By the program, the image sensor S in the A / D converter 14
Digital data E1, E2 ... EN from A and data F1, F2 ... FN from the image sensor are sequentially transferred, filtered, and arithmetically processed to add digital data G1 to GP, H1.
~ HP is configured to be calculated. Therefore, the microprocessor 15 has the data transfer means 17 and the filter means.
18 and a calculation means 19.
第2図および第3図に示す焦点情報演算プログラムの処
理手順について以下に説明する。The processing procedure of the focus information calculation program shown in FIGS. 2 and 3 will be described below.
第2図および第3図のプログラムの処理により求まるデ
ータがメモリに第4図のメモリマップの如く格納され
る。まず、データがメモリに格納されるまでの流れの概
略を説明する。第4図のメモリマップにおいて、イメー
ジセンサSAに基づいてAD変換されたデジタルデータE1〜
ENがアドレスAd10〜AdN0に格納され、格納が終了すると
続いてイメージセンサSBに基づいてAD変換されたデジタ
ルデータF1〜FNがアドレスAd11〜AdN1に格納され、また
データE1〜ENをフィルタ演算した時の加算デジタルデー
タG1〜GPがアドレスAd12〜AdP2に格納され、格納が終了
すると続いてデータF1〜FNをフィルタ演算した時の加算
デジタルデータH1〜HPがアドレスAd13〜AdP3に格納され
るように成っている。このとき、第3図のデータ転送プ
ログラムにより、アドレスAd10〜AdN0内にフィルタ演算
に最低必要な個数のデータが格納されると、第2図のフ
ィルタプログラムが作動して該データに重み係数を掛け
るフィルタ演算を始める。このように、このフィルタ演
算とデータ転送プログラムは交互に作動するように成っ
ており、このフィルタ演算の結果のデータ(加算デジタ
ルデータ)はアドレスAd12〜AdP2,アドレスAd13〜AdP3
に順に格納される。全てのデータが演算処理されてメモ
リに格納されると、次に焦点検出演算を行い、再びイメ
ージセンサからのデータをメモリに格納して前述の動作
を繰返し行い合焦状態とする。以下の説明においては、
フィルタ演算における重み係数の個数を3個とし、それ
ぞれW1=C1,W2=C2およびW3=C3とする。更に、A/D変換
器14は、A/D変換が完了した時点でCPU15に対してインタ
ラプト信号を発生するものとする。Data obtained by the processing of the programs of FIGS. 2 and 3 are stored in the memory as shown in the memory map of FIG. First, an outline of the flow until the data is stored in the memory will be described. In the memory map of FIG. 4, digital data E1 to AD converted based on the image sensor SA
When EN is stored in the addresses Ad10 to AdN0, and after the storage is completed, the digital data F1 to FN converted to AD based on the image sensor SB is stored in the addresses Ad11 to AdN1 and when the data E1 to EN are filtered. The added digital data G1 to GP are stored in the addresses Ad12 to AdP2, and after the storage is completed, the added digital data H1 to HP when the data F1 to FN are filtered are stored in the addresses Ad13 to AdP3. ing. At this time, when the data transfer program of FIG. 3 stores the minimum number of data required for the filter operation in the addresses Ad10 to AdN0, the filter program of FIG. 2 operates to multiply the data by a weighting coefficient. Start filter calculation. As described above, the filter calculation and the data transfer program are operated alternately, and the data (added digital data) as the result of this filter calculation is stored in addresses Ad12 to AdP2 and addresses Ad13 to AdP3.
Are stored in order. When all the data are arithmetically processed and stored in the memory, focus detection calculation is performed next, the data from the image sensor is again stored in the memory, and the above-described operation is repeated to bring the image into a focused state. In the following description,
The number of weighting factors in the filter calculation is 3, and W1 = C1, W2 = C2 and W3 = C3, respectively. Further, the A / D converter 14 is assumed to generate an interrupt signal to the CPU 15 when the A / D conversion is completed.
所定のタイミングで第2図示のプログラムが起動される
と、ステップS1において、A/D変換器14から有効なデジ
タルデータE1〜ENおよびF1〜FNが送出されてくる前に、
割込みを禁止すべくインタラプトディスエーブル信号を
発生する。これにより、A/D変換器14からのインタラプ
トを受け付けないようにする。次のステップS2において
は、アドレスA1をAd10、すなわちデジタルデータE1〜EN
の格納開始アドレスに、アドレスAYをAd12、すなわち加
算デジタルデータG1〜GPの格納開始アドレスに、アドレ
スA2をAd10をすなわちデジタルデータE1〜ENの格納開始
アドレスにセットする。そしてステップS3に進み、A/D
変換器14からのインタラプトを許可すべくインタラプト
イネーブル信号を発生する。なお、A/D変換器14から第
1番目の有効デジタルデータE1が出力される直前にイン
タラプトイネーブル信号が発生してインタラプト受付を
許可するようになっている。When the program shown in FIG. 2 is started at a predetermined timing, in step S1, before valid digital data E1 to EN and F1 to FN are sent from the A / D converter 14,
Generates an interrupt disable signal to disable interrupts. As a result, the interrupt from the A / D converter 14 is not accepted. In the next step S2, the address A1 is changed to Ad10, that is, the digital data E1 to EN.
The address AY is set to Ad12, that is, the storage start address of the addition digital data G1 to GP, and the address A2 is set to Ad10, that is, the storage start address of the digital data E1 to EN. Then proceed to step S3, A / D
An interrupt enable signal is generated to allow the interrupt from the converter 14. An interrupt enable signal is generated immediately before the first valid digital data E1 is output from the A / D converter 14 to permit interrupt acceptance.
ステップS4に進むと、アドレスA1がアドレスA2+3以上
であるか否かを判定する。これはメモリに格納されてい
るデジタルデータの個数がフィルタ演算を行なうのに必
要な個数に達しているかどうか調べるためである。この
時点では、A1=Ad10<A2+3=Ad10+3であり、このス
テップS4は否定判定され、再びこのステップをくり返し
てA/D変換器14からのインタラプトを待機する。In step S4, it is determined whether the address A1 is greater than or equal to the address A2 + 3. This is to check whether the number of digital data stored in the memory has reached the number necessary for performing the filter operation. At this point of time, A1 = Ad10 <A2 + 3 = Ad10 + 3, the negative decision is made in step S4, and this step is repeated again to wait for the interrupt from the A / D converter 14.
A/D変換器14が第1番目の有効デジタルデータE1を出力
し、CPU15にインタラプト信号を送ると第2図のプログ
ラムにインタラプトがかかり第3図に示すデジタルデー
タ転送プログラムが起動される。ステップS21では、A/D
変換器14の出力デジタルデータE1を読取って、それをCP
U15の内部レジスタに格納する。次いでステップS22に進
み、メモリのアドレスA1すなわちAd10に読み取ったレジ
スタ内のデータE1を転送して格納し、その後ステップS2
3に進む。ステップS23では、アドレスA1がアドレスAdN1
に達したか否かを判定する。この時点ではA1=Ad10≠Ad
N1なので、このステップS23は否定判定されてステップS
24に進み、アドレスA1がアドレスAdN0に達したか否かを
判定する。この時点では、A1=Ad10≠AdN0なのでこのス
テップS24は否定判定されてステップS25に進む。ステッ
プS25では、アドレスA1に1を加えA1=A1+1=Ad20と
する。ステップS25が終了すると第2図のプログラムの
所定のステップ、すなわち最後にインタラプトがかかっ
たステップにリターンする。この場合では、ステップS4
にリターンする。ステップS4における第2回目の判定時
のアドレスは、A1=Ad20=Ad10+1<A2+3=Ad10+3
となっており、従ってステップS4は否定判定されて再び
同じステップS4をくり返し、A/D変換器14から次のイン
タラプト信号が来るのを待機している。When the A / D converter 14 outputs the first effective digital data E1 and sends an interrupt signal to the CPU 15, the program shown in FIG. 2 is interrupted and the digital data transfer program shown in FIG. 3 is started. In step S21, A / D
Read the output digital data E1 from the converter 14 and
Store in the internal register of U15. Next, in step S22, the read data E1 in the register is transferred to and stored in address A1 of the memory, that is, Ad10, and then step S2.
Go to 3. In step S23, the address A1 is the address AdN1
It is determined whether or not At this point A1 = Ad10 ≠ Ad
Since it is N1, this step S23 is negatively determined and step S
In step 24, it is determined whether the address A1 reaches the address AdN0. At this point in time, A1 = Ad10 ≠ AdN0, so that a negative decision is made in step S24, and the routine proceeds to step S25. In step S25, 1 is added to the address A1 to set A1 = A1 + 1 = Ad20. When step S25 ends, the program returns to the predetermined step of the program shown in FIG. 2, that is, the step to which the interrupt is applied last. In this case, step S4
Return to. The address at the time of the second determination in step S4 is A1 = Ad20 = Ad10 + 1 <A2 + 3 = Ad10 + 3.
Therefore, a negative decision is made in step S4, and the same step S4 is repeated again, waiting for the next interrupt signal from the A / D converter 14.
A/D変換器14が次のデジタルデータE2を出力しCPU15にイ
ンタラプトをかけると、CPU15は再びデータ転送プログ
ラムを実行して前述と同様にアドレスAd20にデジタルデ
ータE2を格納し、その後元のステップS4において再びア
ドレスA1かA2+3以上であるか否かを判定する。この場
合のアドレスはA1=Ad30=Ad10+2<A2+3=Ad10+3
であるのでステップS4は否定判定され、同様にしてA/D
変換器14からのインタラプト信号の受け付けを待機す
る。When the A / D converter 14 outputs the next digital data E2 and interrupts the CPU 15, the CPU 15 executes the data transfer program again and stores the digital data E2 in the address Ad20 as described above, and then the original step. In S4, it is again determined whether the address is A1 or A2 + 3 or more. The address in this case is A1 = Ad30 = Ad10 + 2 <A2 + 3 = Ad10 + 3
Therefore, a negative determination is made in step S4, and A / D
It waits for the reception of the interrupt signal from the converter 14.
このような動作をくり返し、メモリ16にデジタルデータ
E3が格納されて第2図のプログラム中のステップS4にリ
ターンすると、アドレスA1=Ad40=Ad10+3=A2+3=
Ad10+3となっているので、肯定判定されてステップS5
に進む。ステップS5では加算デジタルデータFY=0とセ
ットしてステップS6に進む。ステップS6では、アドレス
A2=Ad10のデジタルデータE1を読み出して重み係数C1を
乗じ、その乗算結果をデータFYに加える。すなわち、デ
ータFYとしてC1・E1の結果が内部レジスタに格納され
る。次いでステップS7に進むと、アドレスA2に1を加
え、A2=A2+1=Ad10+1=Ad20としてステップS8に進
み、アドレスA2=Ad20のデジタルデータE2を読み出して
重み係数C2を乗じ、その乗算結果をデータFYに加える。
すなわちデータFYとしてC1・E1+C2・E2の結果が内部レ
ジスタに格納される。次いでステップS9に進んで、A2に
1を加え、A2=A2+1=Ad20+1=Ad30としてステップ
S10に進み、アドレスA2=Ad30のデジタルデータE3を読
み出して重み係数C3を乗じ、その乗算結果をデータFYに
加える。すなわち、データFYとしてC1・E1+C2・E2+C3
・E3の結果が内部レジスタに格納される。このときのデ
ータFYが第1の信号としての加算デジタルデータG1とな
る。従って、ステップS11においてデータFYとして内部
レジスタに一時格納されていた加算デジタルデータG1を
メモリ16のアドレスAY=Ad12に格納する。By repeating such operation, the digital data is stored in the memory 16.
When E3 is stored and the process returns to step S4 in the program of FIG. 2, the address A1 = Ad40 = Ad10 + 3 = A2 + 3 =
Since it is Ad10 + 3, an affirmative decision is made and step S5.
Proceed to. In step S5, addition digital data FY = 0 is set, and the flow advances to step S6. In step S6, the address
The digital data E1 of A2 = Ad10 is read, multiplied by the weighting coefficient C1, and the multiplication result is added to the data FY. That is, the result of C1 · E1 is stored in the internal register as the data FY. Next, in step S7, 1 is added to the address A2, A2 = A2 + 1 = Ad10 + 1 = Ad20 is set, and the process proceeds to step S8. The digital data E2 of the address A2 = Ad20 is read and multiplied by the weighting coefficient C2, and the multiplication result is the data FY. Add to.
That is, the result of C1, E1 + C2, E2 is stored in the internal register as data FY. Next, in step S9, add 1 to A2 and set A2 = A2 + 1 = Ad20 + 1 = Ad30
Proceeding to S10, the digital data E3 of the address A2 = Ad30 is read, multiplied by the weighting coefficient C3, and the multiplication result is added to the data FY. That is, as data FY, C1 ・ E1 + C2 ・ E2 + C3
-The result of E3 is stored in the internal register. The data FY at this time becomes the addition digital data G1 as the first signal. Therefore, the addition digital data G1 temporarily stored in the internal register as the data FY in step S11 is stored in the address AY = Ad12 of the memory 16.
次のステップS12では、アドレスA2がデジタルデータF1
〜FNの格納終了アドレスAdN1に達したか否かを判定す
る。この時点では、アドレスA2がA2=Ad30≠AdN1である
のでステップS12は否定判定されてステップS13に進む。
ステップS13では、アドレスA2がデジタルデータE1〜EN
の格納終了アドレスAdN0に達したか否かを判定するが、
この時点では、アドレスA2がA2=Ad30≠AdN0であるので
否定判定されてS14に進む。そのステップS14では、アド
レスA2から1を引き、A2=A2−1=Ad30−1=Ad20とす
るとともに、アドレスAYに1を加えAY=AY+1=Ad12+
1=Ad22としてステップS4に再び戻る。以上の手順によ
り加算デジタルデータG1〜GPが求められメモリ16に格納
されることになる。In the next step S12, the address A2 is the digital data F1.
~ Determine whether or not the storage end address AdN1 of FN has been reached. At this point in time, the address A2 is A2 = Ad30 ≠ AdN1, so that a negative decision is made in step S12 and the operation proceeds to step S13.
In step S13, the address A2 is the digital data E1 to EN.
Storage end address AdN0 is determined,
At this time point, the address A2 is A2 = Ad30 ≠ AdN0, so a negative determination is made and the process proceeds to S14. In the step S14, 1 is subtracted from the address A2 to set A2 = A2-1 = Ad30-1 = Ad20, and 1 is added to the address AY, AY = AY + 1 = Ad12 +
1 = Ad22 and the process returns to step S4 again. By the above procedure, the added digital data G1 to GP are obtained and stored in the memory 16.
その結果、AD変換器14が出力するデジタルデータE1〜EN
が順次メモリ16に格納されていく。ここで、イメージセ
ンサSAからの最後の光電変換出力に対応したデジタルデ
ータENをデータ転送する際には、アドレスA1=AdN0とな
っているので、ステップS24は肯定判定されてステップS
26に進み、アドレスA1をデジタルデータF1〜FNの格納開
始アドレスAd11にセットするので、これ以後AD変換され
たイメージセンサSBからのデジタルデータF1〜FNはアド
レスAd11以降に順次に格納されることになる。また、フ
ィルタ演算により加算デジタルデータGPが求められる段
階になると、アドレスA2=AdN0となるので、第2図のス
テップS13は肯定判定されてステップS15に進み、アドレ
スA2をデジタルデータF1〜FNの格納開始アドレスAd11に
セットし、アドレスAYも、加算デジタルデータH1〜HPの
格納開始アドレスAd13にセットされるので、これ以後の
フィルタ演算はデジタルデータF1〜FNに対して行なわ
れ、求められた第2の信号としての加算デジタルデータ
H1〜HPはアドレスAd13以降に格納されることになる。As a result, the digital data E1 to EN output from the AD converter 14
Are sequentially stored in the memory 16. Here, when the digital data EN corresponding to the last photoelectric conversion output from the image sensor SA is transferred, the address A1 = AdN0 is set, so that the affirmative decision is made in step S24 and step S24 is made.
Going to 26, the address A1 is set to the storage start address Ad11 of the digital data F1 to FN, so that the digital data F1 to FN from the image sensor SB AD-converted thereafter are sequentially stored at the addresses Ad11 and thereafter. Become. Further, at the stage where the addition digital data GP is obtained by the filter calculation, the address A2 = AdN0, so that the affirmative decision is made in step S13 of FIG. Since it is set to the start address Ad11 and the address AY is also set to the storage start address Ad13 of the added digital data H1 to HP, the subsequent filter operation is performed on the digital data F1 to FN and the obtained second data is obtained. Digital data as a signal of
H1 to HP will be stored at address Ad13 and later.
また、デジタルデータFNをデータ転送する際にはアドレ
スA1=AdN1となるので、第3図のステップS23において
は肯定判定されてステップS27に進み、これ以降AD変換
器14からのインタラプトを受け付けないようにインタラ
プトディスエーブル信号が発生される。従って、以後、
CPU15は、データ転送動作を行なわず、フィルタ処理動
作だけを繰り返して実行することになる。そしてフィル
タ演算により加算デジタルデータHPが求められる段階に
なると、アドレスA2=AdN1となるので、第2図のステッ
プS12で肯定判定され、一連のデータ転送、フィルタ演
算を終了し、次の焦点検出演算を実行へ進む。Further, since the address A1 = AdN1 is set when the digital data FN is transferred, an affirmative decision is made in step S23 of FIG. 3 and the operation proceeds to step S27 so that no interrupt from the AD converter 14 is accepted thereafter. An interrupt disable signal is generated at. Therefore, after that,
The CPU 15 repeats only the filtering operation without performing the data transfer operation. Then, when the added digital data HP is obtained by the filter calculation, the address A2 = AdN1 is set. Therefore, an affirmative decision is made in step S12 of FIG. 2, and a series of data transfer and filter calculation is completed, and the next focus detection calculation is performed. To proceed.
第5図を参照して上述したプログラムによる各種処理の
タイムシーケンスを以下に説明する。The time sequence of various processes by the program described above will be described below with reference to FIG.
時刻t0において、一対のイメージセンサSAおよびSBの電
荷蓄積が開始され、時刻t1までの時間T0の間にすべての
光電変換部に電荷が蓄積され、時刻t1において電荷蓄積
が終了する。続いて時刻t1にイメージセンサSAから光電
変換出力SA1がA/D変換器14に送られ、時刻t1から時刻t2
までの時間T1において光電変換出力SA1がA/D変換され
る。時刻t2にA/D変換値としてのデジタルデータE1がCPU
15へ出力される。CPU15では、データ転送手段17によ
り、時刻t2から時刻t20の間において、デジタルデータE
1をメモリ16に転送する。At time t0, charge accumulation of the pair of image sensors SA and SB is started, charges are accumulated in all photoelectric conversion units during time T0 until time t1, and charge accumulation ends at time t1. Subsequently, at time t1, the photoelectric conversion output SA1 is sent from the image sensor SA to the A / D converter 14, and from time t1 to time t2.
The photoelectric conversion output SA1 is A / D converted at time T1. At time t2, digital data E1 as A / D conversion value is sent to the CPU
Output to 15. In the CPU 15, the data transfer means 17 causes the digital data E to be transferred between time t2 and time t20.
Transfer 1 to memory 16.
一方、時刻t2においては、A/D変換器14にイメージセン
サSAから次の光電変換出力SA2が送られるので、時刻t2
から時刻t3の間にその出力SA2がA/D変換され、時刻t3に
おいてデジタルデータE2としてCPU15へ出力される。そ
してCPU15は、時刻t20から時刻t3までの時間に、フィル
タ手段18によりメモリ16に格納されているデジタルデー
タに対してフィルタ処理を行なう。なお、この時点にお
いては、メモリ16にはデジタルデータE1だけが格納され
ているので、実質的なフィルタ処理は行なわれない。こ
のようにして、イメージセンサSAから順次光電変換出力
SA1,SA2…がA/D変換器14に送られてデジタルデータE1,E
2…に変換され、そのデータE1,E2…がデータ転送手段17
によりメモリ16に格納されていく。そして、格納された
デジタルデータの数が(1)式のようなフィルタ演算を
行なうのに最低必要なだけ格納されると、フィルタ手段
18は、AD変換動作時間のうちデータ転送動作に使われる
時間を除いた時間に、(1)式のようなフィルタ演算を
行なってメモリ16に加算デジタルデータG1,G2…を格納
していく。On the other hand, at time t2, since the next photoelectric conversion output SA2 is sent from the image sensor SA to the A / D converter 14, time t2
From time t3 to time t3, the output SA2 is A / D converted and is output to the CPU 15 as digital data E2 at time t3. Then, the CPU 15 performs the filtering process on the digital data stored in the memory 16 by the filter means 18 during the period from the time t20 to the time t3. At this point, since only the digital data E1 is stored in the memory 16, no substantial filtering process is performed. In this way, the photoelectric conversion output from the image sensor SA is sequentially
SA1, SA2 ... are sent to the A / D converter 14 and digital data E1, E
2 ... and the data E1, E2 ...
Is stored in the memory 16 by. Then, when the number of stored digital data is stored at least as much as necessary to perform the filter operation as in the equation (1), the filter means
18 stores the added digital data G1, G2 ... In the memory 16 by performing a filter operation as shown in the equation (1) at a time excluding the time used for the data transfer operation in the AD conversion operation time.
イメージセンサSAからの光電変換出力SA1〜SANに対する
これらの処理が終了すると、次に、イメージセンサSBか
らの光電変換出力SB1〜SBNに対して順次に同様の処理が
行なわれて、A/D変換器14によりアナログデータSB1〜SB
NがデジタルデータF1〜FNに変換されデータ転送手段17
によりメモリ16に格納されていく。フィルタ手段18は、
前述したと同様にして、A/D変換動作時間のうちでデー
タ転送時間を除いた時間にデジタルデータF1〜FNに対し
てフィルタ演算を行なって加算デジタルデータH1〜HPを
算出してメモリ16に格納していく。時刻t510において最
後のデジタルデータFNのデータ転送が完了すると、フィ
ルタ手段18は、時刻t510から時刻t52までの時間T51にお
いてフィルタ演算を行ない、時刻t52においてフィルタ
演算を完了する。この時点で、メモリ16には加算デジタ
ルデータG1〜GP、H1〜HPが格納されていることになる。
演算手段19は、時刻t52から時刻t53までの時間T52にお
いて、加算デジタルデータG1〜GP、H1〜HPの相対的ずれ
量を求める演算を行なう。時刻t53において、算出され
たずれ量に基づいて焦点調節状態を示す信号を生成し
て、その表示および/または撮影レンズの駆動が行なわ
れ焦点検出の一連の動作が終了する。そして時刻t53か
ら次のイメージセンサの電荷蓄積が開始され、以後同様
にして焦点検出の一連の動作が始まる。When these processes for the photoelectric conversion outputs SA1 to SAN from the image sensor SA are completed, next, similar processes are sequentially performed to the photoelectric conversion outputs SB1 to SBN from the image sensor SB to perform A / D conversion. Analog data SB1 to SB
N is converted into digital data F1 to FN and data transfer means 17
Is stored in the memory 16 by. The filter means 18 is
In the same manner as described above, the filter operation is performed on the digital data F1 to FN at the time excluding the data transfer time in the A / D conversion operation time to calculate the added digital data H1 to HP and store it in the memory 16. Store it. When the data transfer of the final digital data FN is completed at time t510, the filter means 18 performs the filter operation at time T51 from time t510 to time t52, and completes the filter operation at time t52. At this point, the added digital data G1 to GP and H1 to HP are stored in the memory 16.
The calculating means 19 performs a calculation for obtaining the relative deviation amount of the added digital data G1 to GP and H1 to HP at the time T52 from the time t52 to the time t53. At time t53, a signal indicating the focus adjustment state is generated based on the calculated shift amount, the display and / or the photographic lens is driven, and a series of focus detection operations ends. Then, at time t53, charge accumulation of the next image sensor is started, and thereafter, a series of operations for focus detection are similarly started.
−第2実施例− 次に本発明の第2の実施例について説明する。第1の実
施例においては、イメージセンサSAおよびSBから一回の
走査で掃き出されるデータの個数、すなわち2N回だけCP
Uに対してインタラプトがかかっている。通常、CPUは、
A/D変換器14からのインタラプトを受け付けると、現在
使用しているレジスタの内容をスタックに退避させる等
の処理を行なうため、インタラプトの回数が多くなると
それに要する時間も比例して増大する。第2の実施例
は、このような問題について第1の実施例を改良したも
ので、第6図に示すようにA/D変換器20とCPU22との間に
バッファメモリ21を設けることによりCPU22に対するイ
ンタラプトの回数を減らすものである。そこで、本例に
おけるCPU22のROMには、第3図のデータ転送プログラム
に代えてデータ転送手段24としての第7図に示すデータ
転送プログラムが格納されている。なお、第2実施例の
フィルタ手段25の動作およびメモリ23のメモリマップは
第2図および第4図と同様であるので、ここではデータ
転送手段24の動作についてだけ説明する。-Second Embodiment- Next, a second embodiment of the present invention will be described. In the first embodiment, the number of data swept from the image sensors SA and SB in one scan, that is, 2N times CP
U is being interrupted. Usually the CPU
When the interrupt from the A / D converter 14 is accepted, processing such as saving the contents of the register currently used in the stack is performed. Therefore, when the number of interrupts increases, the time required for it increases proportionally. The second embodiment is an improvement of the first embodiment with respect to such a problem. As shown in FIG. 6, a CPU 22 is provided with a buffer memory 21 between the A / D converter 20 and the CPU 22. It reduces the number of interrupts to. Therefore, in the ROM of the CPU 22 in this example, the data transfer program shown in FIG. 7 as the data transfer means 24 is stored in place of the data transfer program of FIG. Since the operation of the filter means 25 and the memory map of the memory 23 of the second embodiment are similar to those of FIGS. 2 and 4, only the operation of the data transfer means 24 will be described here.
バッファメモリ21のM個のレジスタ1〜レジスタMに最
初のM個のデジタルデータE1〜EMがすべて格納された時
点に応答して、バッファメモリ21はCPU22に対してイン
タラプト信号を送出して割込みをかける。CPUはデータ
転送手段24によるデータ転送動作を移る。すなわちイン
タラプト信号に応答して第7図示のプログラムが起動さ
れる。ステップS31では、バッファメモリ21のレジスタ
1に格納されているデジタルデータE1をCPU22内の内部
レジスタに転送する。次に、ステップS32に進んで、メ
モリ23のアドレスA1、すなわちこの時点ではアドレスAd
10にデジタルデータE1を転送して格納する。ステップS3
3では、アドレスA1に1を加え、A1=A1=Ad20としてス
テップS34に進んで、バッファメモリ21のレジスタ2か
らデジタルデータE2を読み取ってCPU22の内部レジスタ
にいったん格納する。次いで、ステップS35において、
メモリ23のアドレスA1=Ad20にそのデータを転送して格
納する。そして、ステップS36では、アドレスA1に1を
加えA1=A1+1=Ad30とする。このような動作をくり返
し、最後に、ステップS36およびS37において、アドレス
A1=AdM0に、バッファメモリ21のレジスタMに格納され
ていたデジタルデータEMを転送格納することにより、バ
ッファメモリ21に一時蓄積されたデータのすべてがメモ
リ23に転送されて格納される。次いでステップS39に進
み、アドレスA1がデジタルデータF1〜FNの格納終了アド
レスAdN1に達しているか否かを判定する。この時点で
は、アドレスA1=AdM0≠AdN1なので否定判定されてステ
ップS40に進み、アドレスA1がデジタルデータE1〜ENの
格納終了アドレスAdN0に達しているか否かを判定する。
この時点では、アドレスA1=AdM0≠AdN0なので否定判定
され、ステップS41に進んでアドレスA1に1を加えA1=A
1+1とする。このような動作をくり返し、バッファメ
モリ21にA/D変換されたデジタルデータがM個たまる度
毎にCPU22にインタラプトをかけ、M個のデジタルデー
タを一度にメモリ23に転送し格納していく。そして、デ
ジタルデータE1〜ENが全てメモリ23に格納されると、ス
テップS40で肯定判定されてステップS42に進み、アドレ
スA1をデジタルデータF1〜FNの格納開始アドレスAd11に
セットする。これ以降、上述の転送動作と同様にしてデ
ジタルデータF1〜FNがメモリ23に格納されていく。最終
的にデジタルデータF1〜FNが全てメモリ手段23に格納さ
れると、ステップS39で肯定判定され、ステップS43にお
いて、インタラプトディスエーブル信号を生成して、バ
ッファメモリ21からのインタラプト受け付けを禁止し、
データ転送手段24によるデータ転送動作を終了する。In response to the time when the first M digital data E1 to EM are all stored in the M registers 1 to M of the buffer memory 21, the buffer memory 21 sends an interrupt signal to the CPU 22 to generate an interrupt. Call. The CPU shifts the data transfer operation by the data transfer means 24. That is, the program shown in FIG. 7 is activated in response to the interrupt signal. In step S31, the digital data E1 stored in the register 1 of the buffer memory 21 is transferred to the internal register in the CPU 22. Next, in step S32, the address A1 in the memory 23, that is, the address Ad
The digital data E1 is transferred to 10 and stored. Step S3
In 3, the address A1 is incremented by 1, A1 = A1 = Ad20 is set, and the process proceeds to step S34 to read the digital data E2 from the register 2 of the buffer memory 21 and temporarily store it in the internal register of the CPU 22. Then, in step S35,
The data is transferred to the address A1 = Ad20 of the memory 23 and stored. Then, in step S36, 1 is added to the address A1 to set A1 = A1 + 1 = Ad30. This operation is repeated, and finally, in steps S36 and S37, the address
By transferring and storing the digital data EM stored in the register M of the buffer memory 21 to A1 = AdM0, all the data temporarily stored in the buffer memory 21 is transferred to and stored in the memory 23. Next, in step S39, it is determined whether the address A1 reaches the storage end address AdN1 of the digital data F1 to FN. At this time point, the address A1 = AdM0 ≠ AdN1, so a negative determination is made, and the process proceeds to step S40 to determine whether or not the address A1 reaches the storage end address AdN0 of the digital data E1 to EN.
At this point, the address A1 = AdM0 ≠ AdN0, so a negative determination is made, and the process advances to step S41 to add 1 to the address A1 and A1 = A.
Set to 1 + 1. Such an operation is repeated, and every time M pieces of A / D converted digital data are accumulated in the buffer memory 21, the CPU 22 is interrupted and M pieces of digital data are transferred and stored in the memory 23 at a time. When all the digital data E1 to EN are stored in the memory 23, an affirmative decision is made in step S40 and the operation proceeds to step S42 where the address A1 is set to the storage start address Ad11 of the digital data F1 to FN. Thereafter, the digital data F1 to FN are stored in the memory 23 in the same manner as the above-mentioned transfer operation. When all the digital data F1 to FN are finally stored in the memory means 23, an affirmative decision is made in step S39, and in step S43, an interrupt disable signal is generated, and interrupt acceptance from the buffer memory 21 is prohibited,
The data transfer operation by the data transfer means 24 ends.
第8図を参照して第2実施例による各種処理のタイムシ
ーケンスを以下に簡単に説明する。イメージセンサSAお
よびSBの光電変換出力SA1〜SAN,SB1〜SBNはA/D変換器20
に順次送られてデジタルデータE1〜EN、F1〜FNに変換さ
れ変換データが順次にバッファメモリ21に送られる。バ
ッファメモリ21はM個、例えば9個のレジスタ1〜レジ
スタ9から構成されており、A/D変換器20から送られて
きたデジタルデータは順次レジスタ1〜レジスタ9に一
時的に格納されていく。そして、時刻t11において9個
のレジスタ全てにデジタルデータが格納されるのに応答
して、バッファメモリ21はCPU22に対してインタラプト
をかける。これにより、CPU22はデータ転送手段24によ
りバッファメモリ21のレジスタ1〜レジスタ9に格納さ
れている9個のデジタルデータをメモリ23に転送して格
納する。バッファメモリ21は、レジスタ1〜レジスタ9
に格納されているデジタルデータが転送されて順次に掃
き出されると、A/D変換器20から送られてくるデジタル
データを再び格納していく。CPU22では、バッファメモ
リ21のデータをメモリ23に転送し終ると、次にインタラ
プト信号が発生するまでの間、すなわち、すべてのレジ
スタにデータが格納されるまでの間、フィルタ手段25に
よりフィルタ処理が実行される。このようにして最終的
にデジタルデータE1〜EN、F1〜FNおよび加算デジタルデ
ータG1〜GP、H1〜HPがメモリ23に格納される時刻t53か
ら、CPU22は第1の実施例と同様に演算手段26により焦
点検出演算を行ない、デジタルデータG1〜GP、H1〜HPの
相対的ずれ量を求め、このずれ量に基づいて焦点調節状
態の表示および/またはレンズ駆動を行なう。The time sequence of various processes according to the second embodiment will be briefly described below with reference to FIG. A / D converter for photoelectric conversion outputs SA1 to SAN and SB1 to SBN of image sensors SA and SB
Are sequentially sent to the buffer memory 21 to be converted into digital data E1 to EN and F1 to FN. The buffer memory 21 is composed of M registers, for example, nine registers 1 to 9, and the digital data sent from the A / D converter 20 is sequentially stored in the registers 1 to 9 sequentially. . Then, in response to the digital data being stored in all nine registers at time t11, the buffer memory 21 interrupts the CPU 22. As a result, the CPU 22 transfers the nine pieces of digital data stored in the registers 1 to 9 of the buffer memory 21 to the memory 23 by the data transfer means 24 and stores them. The buffer memory 21 includes registers 1 to 9
When the digital data stored in is transferred and swept out sequentially, the digital data sent from the A / D converter 20 is stored again. In the CPU 22, after the data in the buffer memory 21 is transferred to the memory 23, the filter processing is performed by the filter means 25 until the next interrupt signal is generated, that is, until the data is stored in all the registers. To be executed. In this way, from the time t53 when the digital data E1 to EN, F1 to FN and the added digital data G1 to GP, H1 to HP are finally stored in the memory 23, the CPU 22 operates in the same manner as in the first embodiment. The focus detection calculation is performed by 26, the relative shift amount of the digital data G1 to GP, H1 to HP is obtained, and the focus adjustment state is displayed and / or the lens is driven based on the shift amount.
以上述べたように、第2の実施例においては、CPUにか
かるインタラプトの回数を、第1の実施例の略1/Mに減
少することができる。ここで、バッファメモリ21のレジ
スタの数Mは、CPU22の演算速度、データ転送に要する
時間、A/D変換速度等を考慮して最適な値が決められ
る。As described above, in the second embodiment, the number of interrupts applied to the CPU can be reduced to about 1 / M of that in the first embodiment. Here, the number M of registers of the buffer memory 21 is determined as an optimum value in consideration of the calculation speed of the CPU 22, the time required for data transfer, the A / D conversion speed, and the like.
(発明の効果) 以上説明したように本発明によれば、データ転送および
フィルタ処理をAD変換と並行して行なうようにしたの
で、全体として焦点のための演算時間を短縮できる。従
って高速のA/D変換器を用いたと同様の効果を廉価にし
て得られる。(Effect of the Invention) According to the present invention as described above, data transfer and filter processing are performed in parallel with AD conversion, so that the calculation time for focusing as a whole can be shortened. Therefore, the same effect as using a high-speed A / D converter can be obtained at low cost.
第1図は本発明焦点検出装置の第1実施例のブロック
図、第2図および第3図はそのマイクロプロセッサに格
納された焦点演算のためのプログラムの一例を示すフロ
ーチャート、第4図はメモリのアドレスの一例を示すメ
モリーマップ、第5図は第2図および第3図に示したプ
ログラムによる各種演算処理のタイムシーケンス図、第
6図は本発明焦点検出装置の第2実施例のブロック図、
第7図はそのデータ転送プログラムの一例を示すフロー
チャート、第8図は第7図に示すプログラムによる各種
演算処理のタイムシーケンス図、第9図は焦点検出装置
の光学系を示す図、第10図は従来の焦点検出装置のブロ
ック図、第11図は従来の焦点検出装置におけるタイムシ
ーケンス図、第12図はフィルタ手段の重み係数とMTFの
一例を示す図である。 SA,SB:イメージセンサ 9,15,22:CPU 11,17,24:データ転送手段 13,19,26:演算手段 8,14,20:A/D変換器 10,16,23:メモリ 12,18,25:フィルタ手段 21:バッファメモリ手段FIG. 1 is a block diagram of a first embodiment of the focus detection apparatus of the present invention, FIGS. 2 and 3 are flow charts showing an example of a program for focus calculation stored in the microprocessor, and FIG. 4 is a memory. 5 is a memory map showing an example of the address of FIG. 5, FIG. 5 is a time sequence diagram of various arithmetic processing by the programs shown in FIGS. 2 and 3, and FIG. 6 is a block diagram of a second embodiment of the focus detection apparatus of the present invention. ,
FIG. 7 is a flow chart showing an example of the data transfer program, FIG. 8 is a time sequence diagram of various arithmetic processing by the program shown in FIG. 7, FIG. 9 is a diagram showing an optical system of the focus detection device, and FIG. FIG. 11 is a block diagram of a conventional focus detection device, FIG. 11 is a time sequence diagram in the conventional focus detection device, and FIG. 12 is a diagram showing an example of weighting factors and MTF of the filter means. SA, SB: Image sensor 9,15,22: CPU 11,17,24: Data transfer means 13,19,26: Arithmetic means 8,14,20: A / D converter 10,16,23: Memory 12, 18,25: Filter means 21: Buffer memory means
───────────────────────────────────────────────────── フロントページの続き (72)発明者 星野 邦久 東京都品川区西大井1丁目6番3号 日本 光学工業株式会社大井製作所内 (56)参考文献 特開 昭60−125817(JP,A) ─────────────────────────────────────────────────── ─── Continuation of the front page (72) Kunihisa Hoshino 1-6-3 Nishioi, Shinagawa-ku, Tokyo Inside Oi Manufacturing Co., Ltd. of Japan Optical Industry Co., Ltd. (56) Reference JP-A-60-125817 (JP, A)
Claims (3)
ており、各光電変換素子に蓄積された電荷をアナログデ
ータとして順次時系列的に外部に出力する光電変換素子
アレイと、 前記光電変換素子上に対象物の光像を形成する焦点検出
光学系と、 前記光電変換素子アレイから時系列的に出力されるアナ
ログデータを逐次デジタルデータに変換するアナログ−
デジダル変換手段と、 前記アナログ−デジダル変換手段により変換されたデジ
タルデータを格納するためのメモリ手段と、 前記デジタルデータを前記メモリ手段に転送する転送手
段と、 前記デジタルデータに所定の演算処理を行い、該所定の
演算処理に基づいて焦点状態を示す信号を生成する焦点
検出演算手段とを備えた焦点検出装置において、 前記アナログ−デジダル変換手段が前記アナログデータ
を逐次デジタルデータに変換している間に、前記焦点検
出演算手段を制御して既に前記メモリ手段に格納されて
いるデジタルデータから順次前記所定の演算処理を行な
わせる制御手段を備えたことを特徴とする焦点検出装
置。1. A photoelectric conversion element array in which a large number of charge storage type photoelectric conversion elements are arranged, and the charges accumulated in each photoelectric conversion element are sequentially output as analog data to the outside in time series, and the photoelectric conversion element. A focus detection optical system that forms an optical image of an object on the element, and an analog that sequentially converts analog data output from the photoelectric conversion element array in time series into digital data.
Digital conversion means, memory means for storing the digital data converted by the analog-to-digital conversion means, transfer means for transferring the digital data to the memory means, and predetermined arithmetic processing for the digital data A focus detection device including a focus detection calculation unit that generates a signal indicating a focus state based on the predetermined calculation process, while the analog-to-digital conversion unit sequentially converts the analog data into digital data. 1. A focus detecting apparatus, further comprising control means for controlling the focus detecting arithmetic means to sequentially perform the predetermined arithmetic processing from digital data already stored in the memory means.
ジタルデータを転送し終えた時点から次のデジタルデー
タを転送し始める時点までの時間内に、前記焦点検出演
算手段に前記所定の演算処理を行わせることを特徴とす
る(1)項に記載の焦点検出装置。2. The control means causes the focus detection calculation means to perform the predetermined calculation within a time from when the transfer means finishes transferring one digital data to when it starts transferring the next digital data. The focus detection apparatus according to item (1), characterized in that processing is performed.
去する演算処理であることを特徴とする(1)項又は
(2)項に記載の焦点検出装置。3. The focus detection device according to claim 1, wherein the predetermined calculation is a calculation process for removing a constant frequency component.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP60086871A JPH0762734B2 (en) | 1985-04-23 | 1985-04-23 | Focus detection device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP60086871A JPH0762734B2 (en) | 1985-04-23 | 1985-04-23 | Focus detection device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS61245124A JPS61245124A (en) | 1986-10-31 |
| JPH0762734B2 true JPH0762734B2 (en) | 1995-07-05 |
Family
ID=13898884
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP60086871A Expired - Lifetime JPH0762734B2 (en) | 1985-04-23 | 1985-04-23 | Focus detection device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0762734B2 (en) |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS60125817A (en) * | 1983-12-12 | 1985-07-05 | Minolta Camera Co Ltd | Focus detector of camera using self-scanning type image sensor |
-
1985
- 1985-04-23 JP JP60086871A patent/JPH0762734B2/en not_active Expired - Lifetime
Also Published As
| Publication number | Publication date |
|---|---|
| JPS61245124A (en) | 1986-10-31 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP2954704B2 (en) | Dynamic correction method and apparatus for minute image signal | |
| WO1992009000A1 (en) | Device for sensing in-focus position | |
| WO2002005544A1 (en) | Image processing method, recording medium, and image processing device | |
| JPS63246730A (en) | Focus detector | |
| JP2022033756A (en) | Image sensor, image sensor, operation method of image sensor, and program | |
| JP2001177752A (en) | Image pickup method and device to generate combined output image having image components photographed by different focal distances | |
| US4819188A (en) | Image processing apparatus | |
| US7102675B1 (en) | Photoelectric conversion device, focus detection device, method of controlling these devices, and storage medium | |
| JP3442426B2 (en) | Photoelectric conversion device | |
| JPH0762734B2 (en) | Focus detection device | |
| JP2000101932A (en) | Image processing device, automatic focus detection device, correction device, correction method, and storage medium | |
| JPH0477289B2 (en) | ||
| JP2006184320A (en) | Focus detection apparatus and focus detection method | |
| CN100377574C (en) | Image processing device and electronic camera | |
| JPH0328690B2 (en) | ||
| JP2002101341A (en) | Imaging device and imaging system | |
| JP3920659B2 (en) | AF evaluation value calculation device | |
| JP2762463B2 (en) | Focus detection device | |
| JP2002311327A (en) | Multi-point distance measuring device | |
| JPH02217812A (en) | Focus detecting device | |
| JP2535954B2 (en) | Focus detection device | |
| JP2989793B2 (en) | Frame transfer readout correction | |
| JPH06189187A (en) | Image pickup device, photometric method therefor, focus control method therefor and image pickup method | |
| JP3705404B2 (en) | Averaging arithmetic unit | |
| JP4049897B2 (en) | Image input device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| EXPY | Cancellation because of completion of term |