JPS63281140A - Focus detecting device - Google Patents

Focus detecting device

Info

Publication number
JPS63281140A
JPS63281140A JP11779587A JP11779587A JPS63281140A JP S63281140 A JPS63281140 A JP S63281140A JP 11779587 A JP11779587 A JP 11779587A JP 11779587 A JP11779587 A JP 11779587A JP S63281140 A JPS63281140 A JP S63281140A
Authority
JP
Japan
Prior art keywords
output
focus
converter
signal
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
JP11779587A
Other languages
Japanese (ja)
Inventor
Junichi Ito
順一 伊藤
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.)
Olympus Corp
Original Assignee
Olympus Optical 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 Olympus Optical Co Ltd filed Critical Olympus Optical Co Ltd
Priority to JP11779587A priority Critical patent/JPS63281140A/en
Publication of JPS63281140A publication Critical patent/JPS63281140A/en
Pending legal-status Critical Current

Links

Landscapes

  • Focusing (AREA)
  • Automatic Focus Adjustment (AREA)

Abstract

PURPOSE:To contrive the exact detection of a focus by executing an operation for detecting a focus by switching an output signal of a first converting means to an output signal of a second converting means having compressibility in input and output signals, based on a result of deciding whether the output signal of the first converting means having linearity in the output signal is correct or not. CONSTITUTION:An image formed by a focus detecting optical system is converted photoelectrically, and this photoelectric converting signal is coded digitally by the first converting means 24 whose input/output characteristic has linearity. Subsequently, whether an output signal of the first converting means 24 is correct or not is decided, and when said signal has been decided to be correct, an operation for detecting a focus is executed, based on a digital output of the first converting means 24. When a result of decision to be incorrect has been obtained, the photoelectric converting signal is coded digitally by the second converting means 22 whose input/output characteristic has compressibility, and an operation for detecting a focus is executed, based on this digital output. In such a way, even with respect to an object to be photographed, whose luminance is varied greatly the focus can be detected exactly.

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は、焦点検出装置、さらに詳しくは、焦点検出用
光学系が形成する像を光電変換し、この光電変換値をア
ナログ/ディジタル(以下、A/Dと略記する)変換し
て焦点検出の演算を行なう焦点検出装置に関する。
Detailed Description of the Invention [Industrial Application Field] The present invention photoelectrically converts an image formed by a focus detection device, more specifically, a focus detection optical system, and converts this photoelectric conversion value into an analog/digital (hereinafter referred to as , abbreviated as A/D) and performs focus detection calculations.

[従来の技術] カメラにおける焦点検出装置には、周知のように、位相
差方法、コントラスト方法等によるものがあるが、位相
差方法を用いた焦点検出装置(例えば、特願昭62−0
20053号等)を例にとると、その基本構成は第9図
に示すようになる。
[Prior Art] As is well known, there are focus detection devices for cameras that use a phase difference method, a contrast method, etc.;
20053, etc.), its basic configuration is shown in FIG.

瞳分割光学系2は撮影レンズ1の射出瞳の光束を二分割
してそれぞれの光束による像を焦点検出用受光素子3の
A群センサー3aと8群センサー3bへ導く。これらの
センサー3a、3bはCCD等のラインセンサーにより
構成され、その出力はインターフェース回路4内のA/
Dコンバータ(図示されず)によりディジタルコード化
された後にCPU (中央演算処理装置)5に入力され
る。
The pupil division optical system 2 divides the light beam from the exit pupil of the photographic lens 1 into two and guides images of the respective light beams to the A group sensor 3a and the 8 group sensor 3b of the focus detection light receiving element 3. These sensors 3a and 3b are composed of line sensors such as CCDs, and their outputs are connected to the A/C in the interface circuit 4.
After being digitally coded by a D converter (not shown), the signal is input to the CPU (Central Processing Unit) 5.

CPU5内では、このディジタルデータを相関演算する
ことにより、A群センサー3a上の像と8群センサー3
b上の像との相対的なずれを算出し、この結果より撮影
レンズ1の形成する像の焦点面に対するずれ量とずれ方
向を検出している。ところで、相関演算の結果をずれ量
と正確に対応させるには、A/Dコンバータの出力がセ
ンサー3a。
In the CPU 5, by performing a correlation calculation on this digital data, the image on the A group sensor 3a and the image on the 8 group sensor 3 are
The relative shift with respect to the image on b is calculated, and from this result, the amount and direction of shift of the image formed by the photographing lens 1 with respect to the focal plane are detected. By the way, in order to accurately match the result of the correlation calculation with the amount of deviation, the output of the A/D converter is the sensor 3a.

3bの出力を正確に変換していることが必要である。セ
ンサー3a、3bの出力は被写体輝度により大幅に変動
するため、そのままではA/Dコンバータに入力させる
ことはできない。そこで一般には、センサー3a、3b
の出力がA/Dコンバータのダイナミックレンジに納ま
るように制御することが要求される。センサー出力の制
御方法としては、センサー3a、3bの積分時間を変化
させてダイナミックレンジに納める方法が一般に用いら
れている。センサー3a、3bの出力は被写体コントラ
ストに対応して出力されるので、あるレベル幅を持った
データとなる。このデータのどこのレベルをA/Dコン
バータのレンジのどこへ対応させるかにより、センサー
出力の制御方法が幾つか考えられる。最も多く用いられ
る方法としては、センサー出力の平均値がA/Dコンバ
ータのレンジの中央に位置するように積分時間を変化さ
せる方法(以下、アベレージ制御方法と呼ぶ)がある。
It is necessary to accurately convert the output of 3b. Since the outputs of the sensors 3a and 3b vary greatly depending on the brightness of the subject, they cannot be directly input to the A/D converter. Therefore, in general, the sensors 3a and 3b
It is required to control the output so that it falls within the dynamic range of the A/D converter. As a method of controlling the sensor output, a method generally used is to vary the integration time of the sensors 3a, 3b to fit within a dynamic range. Since the outputs of the sensors 3a and 3b correspond to the contrast of the subject, the data has a certain level width. Several methods of controlling the sensor output can be considered depending on which level of this data corresponds to which range of the A/D converter. The most commonly used method is a method (hereinafter referred to as an average control method) in which the integration time is varied so that the average value of the sensor output is located at the center of the range of the A/D converter.

いま一つの方法としては、センサー出力の最大値がレン
ジの最大値となるように積分時間を変化させる方法(以
下、ピーク制御方法と呼ぶ)がある。
Another method is to change the integration time so that the maximum value of the sensor output becomes the maximum value of the range (hereinafter referred to as the peak control method).

[発明が解決しようとする問題点] ここで、被写体コントラストの変化が激しく、センサー
出力のレベル変化が非常に大きい場合を考えてみる。第
10図(A)に示されるようなコントラストの被写体像
がセンサー3a、3b上に形成されているものとすると
、積分時間をピーク制御方法により変化させたのちA/
D変換すると、A/D変換の結果は第10図(B)に示
すようになる。この場合、被写体輝度の高い部分は正確
に変換できるが、低輝度の部分はA/Dコンバータの分
解能に比べてレベルが低いため正確に変換できず、この
ため相関演算に使用できるデータが少なくなる。また、
積分時間をアベレージ制御方法により変化させたのちA
/D変換すると、A/D変換の結果は第10図(C)に
示すようになる。
[Problems to be Solved by the Invention] Let us now consider a case where the subject contrast changes drastically and the sensor output level changes significantly. Assuming that a subject image with contrast as shown in FIG. 10(A) is formed on the sensors 3a and 3b, after changing the integration time using the peak control method,
After D conversion, the result of A/D conversion becomes as shown in FIG. 10(B). In this case, parts with high subject brightness can be converted accurately, but parts with low brightness cannot be converted accurately because their level is low compared to the resolution of the A/D converter, which reduces the amount of data that can be used for correlation calculations. . Also,
After changing the integration time using the average control method,
When A/D conversion is performed, the result of A/D conversion becomes as shown in FIG. 10(C).

この場合には、センサー出力の平均値に対して制御され
るので、被写体輝度の高い部分はA/Dコンバータのダ
イナミックレンジを超え、このレンジを超えた入力に対
してはA/Dコンバータの出力の最大値として出力され
る。したがって、いずれの制御方法によっても、A/D
コンバータ出力は部分的にセンサー出力を正確に変換し
ていないことになるので、このようなデータに基づき相
関演算を行なっても正確には合焦点の検出ができないこ
とになる。
In this case, control is performed based on the average value of the sensor output, so parts with high subject brightness exceed the dynamic range of the A/D converter, and for inputs exceeding this range, the A/D converter outputs is output as the maximum value of Therefore, regardless of the control method, the A/D
Since the converter output is not a partial accurate conversion of the sensor output, even if a correlation calculation is performed based on such data, the in-focus point cannot be detected accurately.

このように、コントラストの変化の激しい被写体におい
ては、センサー3a、3bの出力データを正確にCPU
5に伝えることが困難であった。
In this way, for subjects with sharp contrast changes, the output data of the sensors 3a and 3b can be accurately transmitted to the CPU.
It was difficult to convey this to 5.

そこで、この問題を解決するために考えられる一つの方
法は、カメラで一般に用いられている8ビツトのA/D
コンバータよりもビット数の大きいA/Dコンバータを
使用してダイナミックレンジを拡大する方法である。し
かし、この方法は、A/Dコンバータの変換速度の低下
や、通常使用されている8ビツトのCPUで8ビツト以
上のデータを処理させるために生ずる演算速度の低下等
の問題があるので好ましくない。
Therefore, one possible method to solve this problem is to use the 8-bit A/D that is commonly used in cameras.
This is a method of expanding the dynamic range by using an A/D converter with a larger number of bits than the converter. However, this method is not preferable because it has problems such as a decrease in the conversion speed of the A/D converter and a decrease in the calculation speed caused by processing data of 8 bits or more with a commonly used 8-bit CPU. .

本発明は、上述した問題点に鑑み、A/Dコンバータの
変換速度の低下やCPUの演算速度の低下等を生ずるこ
となく、輝度痩化の激しい被写体に対しても正確な焦点
検出を行ない得る焦点検出装置を提供することを目的と
する。
In view of the above-mentioned problems, the present invention enables accurate focus detection even for subjects with severe brightness reduction, without causing a decrease in the conversion speed of the A/D converter or a decrease in the calculation speed of the CPU. An object of the present invention is to provide a focus detection device.

[問題点を解決するための手段および作用]本発明の焦
点検出装置は、焦点検出用光学系が形成する像を光電変
換し、この光電変換信号を入出力特性が直線性を有する
第1の変換手段によりディジタルコード化する。そして
、この第1の変換手段の出力信号が適正であるかどうか
を判定し、適正であると判定した場合には上記第1の変
換手段のディジタル出力に基づき焦点検出の演算を行な
い、不適正の判定結果を得た場合には上記光電変換信号
を入出力特性が圧縮性を有する第2の変換手段によりデ
ィジタルコード化し、このディジタル出力に基づき焦点
検出の演算を行なう。
[Means and effects for solving the problems] The focus detection device of the present invention photoelectrically converts an image formed by a focus detection optical system, and converts this photoelectric conversion signal into a first signal having linear input/output characteristics. It is converted into a digital code by a conversion means. Then, it is determined whether or not the output signal of the first conversion means is appropriate, and when it is determined that it is appropriate, a focus detection calculation is performed based on the digital output of the first conversion means, and if the output signal is determined to be inappropriate, If the determination result is obtained, the photoelectric conversion signal is converted into a digital code by the second conversion means having compressible input/output characteristics, and focus detection calculations are performed based on this digital output.

[実 施 例] 第1図は本発明の一実施例を示す焦点検出装置である。[Example] FIG. 1 shows a focus detection device showing one embodiment of the present invention.

この焦点検出装置において、CCDラインセンサーによ
り構成されているA群センサー13a、8群センサー1
3bおよびバッファーアンプ13c等を有した焦点検出
用受光回路13は、インターフェース回路14内のコン
トロールロジック回路21の制御信号により制御され、
瞳分割光学系2(第9図参照)がA群センサー13a。
In this focus detection device, an A group sensor 13a, an 8 group sensor 1, which is composed of a CCD line sensor,
3b, a buffer amplifier 13c, etc., the focus detection light receiving circuit 13 is controlled by a control signal from a control logic circuit 21 in the interface circuit 14.
The pupil division optical system 2 (see FIG. 9) is the A group sensor 13a.

8群センサー13b上に形成した像によるこれらのセン
サー出力をインターフェース回路14へ転送する。イン
ターフェース回路14は、A、Bの両群センサー13a
、13bの出力(以下、単にセンサー出力とする)を圧
縮する圧縮回路22゜マルチプレクサ23,8ビツトの
A/Dコンバータ24およびコントロールロジック回路
21を有してなる。マルチプレクサ23はA/Dコンバ
ータ24の入力を切り換える回路であり、コントロール
ロジック回路21はCPU15の制御信号に基づき、受
光回路13.マルチプレクサ23.A/Dコンバータ2
4の制御を行なう回路である。
These sensor outputs based on the image formed on the 8 group sensor 13b are transferred to the interface circuit 14. The interface circuit 14 connects both groups A and B sensors 13a.
, 13b (hereinafter simply referred to as sensor output), the compression circuit 22 has a multiplexer 23, an 8-bit A/D converter 24, and a control logic circuit 21. The multiplexer 23 is a circuit that switches the input of the A/D converter 24, and the control logic circuit 21 switches the input of the light receiving circuit 13. Multiplexer 23. A/D converter 2
This is a circuit that performs control of No. 4.

CPU15は、コントロールロジック回路21へ制御信
号を送ることにより、センサー出力をA/Dコンバータ
24でディジタルコード化した8ビツトのデータを端子
DI−D8より入ノル、このデータに基づき合焦点検出
に必要な演算を行なう。
By sending a control signal to the control logic circuit 21, the CPU 15 inputs 8-bit data obtained by converting the sensor output into digital codes from the A/D converter 24 to the terminal DI-D8, and based on this data, it inputs the 8-bit data necessary for in-focus point detection. perform calculations.

そして、この演算結果がモータ駆動回路16に人力され
ることによりモータ17が駆動され、撮影レンズ11が
合焦位置まで移動する。また、CPU15は、最初、圧
縮回路22を通らないセンサー出力をA/Dコンバータ
24に入力させるようコントロールロジック回路21に
よりマルチプレクサ23を制御するが、入力されたデー
タが演算を行なうには不適当と判断した場合には、セン
サー出力を圧縮回路22で圧縮するようにコントロール
ロジック回路21を介してマルチプレクサ23を制御し
、圧縮データをA/Dコンバータ24へ人力させる。な
お、マルチプレクサ23への入力データAA   ・・
・・・・、ANは、上記焦点検出[°  2″ 用受光回路13以外の、例えば測光回路、バッテリーチ
ェック回路等からのアナログデータであり、これらのデ
ータも、このインターフェース回路14でA/D変換さ
れてCPU15に入力されるようになっている。
Then, when this calculation result is inputted manually to the motor drive circuit 16, the motor 17 is driven, and the photographing lens 11 is moved to the in-focus position. Further, the CPU 15 initially controls the multiplexer 23 by the control logic circuit 21 so as to input the sensor output that does not pass through the compression circuit 22 to the A/D converter 24, but the input data is not suitable for calculation. If it is determined, the multiplexer 23 is controlled via the control logic circuit 21 so that the sensor output is compressed by the compression circuit 22, and the compressed data is sent to the A/D converter 24 manually. Note that the input data AA to the multiplexer 23...
. . ., AN is analog data from a photometry circuit, a battery check circuit, etc. other than the focus detection [° 2″ light receiving circuit 13], and these data are also A/D in this interface circuit 14. The data is converted and input to the CPU 15.

ここで、上記圧縮回路22の入出力特性としては、理想
的には、第2図に示すような非線形の特性であることが
好ましい。すなわち、例えばこのような非線形の入出力
特性を持つ増幅器に入力データInを通した場合には、
この入力データInを増幅器の特性にしたがって圧縮し
た出力データOutが得られることになる。この入出力
データの波形図から明らかなように、出力データOut
は、ピーク制御方法では正確な値を得ることのできない
低輝度の部分が適正なレベルに増幅され、かつアベレー
ジ制御方法ではA/Dコンバータのレンジを超えてしま
うような高輝度の部分がレンジ内に納まるようなレベル
に圧縮されたものとなっている。
Here, the input/output characteristics of the compression circuit 22 are preferably nonlinear characteristics as shown in FIG. 2. That is, for example, when input data In is passed through an amplifier with such nonlinear input/output characteristics,
Output data Out is obtained by compressing this input data In according to the characteristics of the amplifier. As is clear from this input/output data waveform diagram, the output data Out
The peak control method amplifies low brightness areas where accurate values cannot be obtained, and the average control method amplifies high brightness areas that would exceed the range of the A/D converter within the range. It has been compressed to a level that fits within.

第3図に上記圧縮回路22の具体的な電気回路の構成を
示す。この第3図に示した圧縮回路22においては、上
記第2図に示した特性の増幅器を、ダイオードを利用し
た折線関数近似回路により実現している。この圧縮回路
22は、オペアンプ31〜33.ダイオード34〜37
および抵抗38〜47から構成されており、オペアンプ
31〜33の非反転入力端子には基準電圧V rc4’
が印加され、反転入力端子にはそれぞれ抵抗3g、41
.44を介して入力電圧(センサー出力)VInが印加
されている。また、オペアンプ31の反転入力端子には
抵抗39を介してバイアスv1が印加され、オペアンプ
32の反転入力端子には抵抗42を介してバイアスv2
が印加されている。オペアンプ33の出力端子より圧縮
出力v outを得る。A。
FIG. 3 shows a specific electric circuit configuration of the compression circuit 22. As shown in FIG. In the compression circuit 22 shown in FIG. 3, the amplifier having the characteristics shown in FIG. 2 is realized by a linear function approximation circuit using diodes. This compression circuit 22 includes operational amplifiers 31 to 33. Diodes 34-37
and resistors 38 to 47, and the non-inverting input terminals of operational amplifiers 31 to 33 have a reference voltage V rc4'
is applied, and resistors 3g and 41 are connected to the inverting input terminal, respectively.
.. An input voltage (sensor output) VIn is applied via 44. Further, a bias v1 is applied to the inverting input terminal of the operational amplifier 31 via a resistor 39, and a bias v2 is applied to the inverting input terminal of the operational amplifier 32 via a resistor 42.
is applied. A compressed output v out is obtained from the output terminal of the operational amplifier 33. A.

B両群センサー13a、13bに使用されるCCDライ
ンセンサーは基準電圧V rerに対してマイナスの電
位で出力されるので、この圧縮回路22においては、基
準電圧V rerに対してマイナスに入力したセンサー
出力を圧縮した後、基準電圧Vrcf’に対してプラス
で出力するものとする。回路図中の電位、すなわち、入
力端子V1n、バイアスV t 、  V 2 、圧縮
出力V outの電位は、基準電圧Vrafを基準にし
て扱うものとする。バイアスvv  には、vrerく
VlくV2の関係が成1’   2 立しているものとする。したがって、上記第3図の回路
内において、抵抗38〜44の抵抗値をRとし、抵抗4
5,46.47の抵抗値をそれぞれR1,R2,R3と
すると、入力電圧Vanと圧縮出力V outとの関係
は、入力電圧Vinが基準電圧V ref’から−V1
の間のとき、次の(1)式のようになる。
Since the CCD line sensors used in both group B sensors 13a and 13b output a negative potential with respect to the reference voltage V rer, in this compression circuit 22, the sensors inputted with a negative potential with respect to the reference voltage V rer are After compressing the output, it is assumed that the output is positive with respect to the reference voltage Vrcf'. The potentials in the circuit diagram, that is, the potentials of the input terminal V1n, the biases V t and V 2 , and the compressed output V out, are handled based on the reference voltage Vraf. It is assumed that the bias vv has the following relationship: vrer, Vl, V2. Therefore, in the circuit shown in FIG. 3 above, the resistance values of resistors 38 to 44 are set to R, and
5, 46.47 are respectively R1, R2, and R3, the relationship between the input voltage Van and the compressed output V out is as follows: The input voltage Vin is -V1 from the reference voltage V ref'.
When between, the following equation (1) is obtained.

Vout =−Vin−R3/R−・−−(1)また、
入力電圧V1nが−V から−V2の間のと■ きは、次の(2)式のようになる。
Vout=−Vin−R3/R−・−−(1) Also,
When the input voltage V1n is between -V and -V2, the following equation (2) is obtained.

Vout=−Vin(/R−/R1)+V  −”’/
RIR3R3 ■ ・・・・・・・・・(2) さらに、入力電圧Vinが−■2より低いときには、次
の(3)式が成立する。
Vout=-Vin(/R-/R1)+V-”'/
RIR3R3 (2) Furthermore, when the input voltage Vin is lower than -22, the following equation (3) holds true.

Vout −−Vln (R”/R−R3/R1−R3
/R2)R3R3 +V ・ /R1+V  ・ /R2 ・・・・・・・・・・・・(3) 上記(1)〜(3)式を図示すると、第4図に示すよう
になり、人出力特性線が直線Sl、S2゜S3により形
成される。直線Sl、S2.S3の傾きについては、S
l  ;−”/R,S2 ; −(1/R−1/R1)
R3、S3  ; −(1/R−1/R1−1/R2)
R3であるので、上記バイアスv1.v2と抵抗値R2
旧、R2,R1)選び方により第2図に示した入出力特
性に近似させることができる。なお、圧縮回路22とし
ては、上記第3図に示した回路構成の他に、半導体PN
接合の順方向特性を利用した対数増幅器を使用する方法
も考えられる。
Vout --Vln (R"/R-R3/R1-R3
/R2)R3R3 +V ・ /R1+V ・ /R2 ・・・・・・・・・・・・・・・(3) When the above formulas (1) to (3) are illustrated, it becomes as shown in Fig. 4, and the human output A characteristic line is formed by straight lines Sl, S2°S3. Straight line Sl, S2. Regarding the slope of S3, S
l;-”/R,S2;-(1/R-1/R1)
R3, S3; -(1/R-1/R1-1/R2)
R3, so the bias v1. v2 and resistance value R2
The input/output characteristics shown in FIG. 2 can be approximated depending on the selection method (old, R2, R1). In addition to the circuit configuration shown in FIG. 3, the compression circuit 22 may also include a semiconductor PN.
Another possible method is to use a logarithmic amplifier that takes advantage of the forward characteristics of the junction.

次に、上記第1図に示した焦点検出装置の動作を第5図
に示すフローチャートを用いて説明する。
Next, the operation of the focus detection device shown in FIG. 1 will be explained using the flowchart shown in FIG.

カメラの中でオートフォーカス(AF)のルーチンが呼
び出されると、CPU15はCPU内部のAFカウンタ
に“1“をセットする。以後、APカウンタはAFのル
ーチンが実行される毎に“1゜ずつ増加する。APカウ
ンタのカウントが終了すると、次にフラグがセットされ
ているかどうかがチェックされる。このフラグの有無に
より受光回路13のセンサー出力であるCCDデータを
圧縮してA/D変換するか、それとも圧縮しないでその
ままノーマルにA/D変換するかが判断され、CPU1
5はいずれかの所定のマルチプレクサ23の入力がA/
Dコンバータ24へ導かれるようにコントロールロジッ
ク回路21へ信号を送る。
When an autofocus (AF) routine is called in the camera, the CPU 15 sets an AF counter inside the CPU to "1". From then on, the AP counter increases by 1 degree each time the AF routine is executed. When the AP counter finishes counting, it is checked whether a flag is set. Depending on the presence or absence of this flag, the light receiving circuit It is determined whether to compress the CCD data that is the sensor output of 13 and perform A/D conversion, or to perform normal A/D conversion without compression.
5, the input of any predetermined multiplexer 23 is A/
A signal is sent to the control logic circuit 21 so as to be guided to the D converter 24.

AFのルーチンへ入った直後は、まだ被写体の状態が不
明なので、フラグはセットされていなくて、圧縮されな
いノーマルデータのA/D変換がセットされるが、被写
体のコントラストがありすぎて、一旦、フラグがセット
されると、AFのルーチンが終了するまで圧縮データの
A/D変換が選択され続ける。A/D変換のセットが終
了すると、CPU15はコントロールロジック回路21
へCCDデータの積分開始信号を送る。コントロールロ
ジック回路21はCCDデータを積分し、所定レベルに
なるとA/Dコンバータ24によりCCD出力データを
ディジタルコード化してCPU15へ送る。データが送
られてくると、CPU15は、まずCCDデータからA
llll算演算なうために充分な条件が揃っているかど
うかを判断する。測距演算の条件が揃っていないときに
はフラグがセットされ、条件が揃っているときは測距演
算が行なわれる。測距演算の結果が合焦の判定レベルに
入っていないときは撮影レンズ11を駆動し、再度合焦
の判定を行なうためにAFルーチンの先頭へ戻る。合焦
の判定レベル内に入っているときは、フラグの有無をチ
ェックし、フラグがセットされていない場合はAFカウ
ンタを“θ″にし、フラグをクリアしてAPのルーチン
を終了する。フラグがセットされている場合には、へF
カウンタのカウント値が“loであるかどうかをチェッ
クし、“1“でないときは、AFカウンタを“0”とし
フラグをクリアしてAFルーチンを終了する。AFカウ
ンタが“1“である場合には、CODデータは、演算す
るには適当でないにもかがゎらず測距演算が行なわれて
合焦の判定がなされた場合であるので、この場合の合焦
判定は無効として再度測距を行なうためにAPルー・チ
ンの先頭に戻る。
Immediately after entering the AF routine, the state of the subject is still unknown, so the flag is not set, and A/D conversion of uncompressed normal data is set, but because the subject has too much contrast, When the flag is set, A/D conversion of compressed data continues to be selected until the AF routine ends. When the A/D conversion set is completed, the CPU 15 starts the control logic circuit 21.
Sends a CCD data integration start signal to. The control logic circuit 21 integrates the CCD data, and when it reaches a predetermined level, the A/D converter 24 converts the CCD output data into digital code and sends it to the CPU 15. When the data is sent, the CPU 15 first selects A from the CCD data.
It is determined whether sufficient conditions are met to perform the llll arithmetic operation. When the conditions for distance measurement calculation are not met, a flag is set, and when the conditions are met, distance measurement calculation is performed. If the distance measurement calculation result is not within the focus determination level, the photographing lens 11 is driven, and the process returns to the beginning of the AF routine to perform focus determination again. When the focus is within the focus determination level, the presence or absence of a flag is checked, and if the flag is not set, the AF counter is set to "θ", the flag is cleared, and the AP routine ends. If the flag is set, go to F
Check whether the count value of the counter is "lo", and if it is not "1", set the AF counter to "0", clear the flag, and end the AF routine.If the AF counter is "1", This is a case where the COD data is not suitable for calculation, but the distance measurement calculation is performed and the focus is determined, so the focus determination in this case is invalidated and the distance measurement is performed again. Return to the beginning of the AP routine to do this.

上記第1図に示した焦点検出装置は、データをA/Dコ
ンバータ24に入力する以前に圧縮してしまうものであ
るが、A/Dコンバータ自身に圧縮機能を設けるように
してもよい。
Although the focus detection device shown in FIG. 1 compresses the data before inputting it to the A/D converter 24, the A/D converter itself may be provided with a compression function.

第6図は圧縮機能を有した並列形A/Dコンバータの一
例の電気回路図である。このA/Dコンバータ50は、
ゼロからフルスケールまでの各量子化レベルに対応する
個々の比較電圧を与えられている(28−1)個の比較
器CM1〜cM255と、これら各比較器の非反転入力
端子にそれぞれ接続されたアナログスイッチ5WI−5
W255と、アナログスイッチSWL〜S W255の
第1の接点端子8間にそれぞれ接続された抵抗値がRの
第1の分圧抵抗と、アナログスイッチSWI〜5W25
5の第2の接点端子す間にそれぞれ接続された抵抗値が
R1−R255の第2の分圧抵抗と、上記比較器の出力
を8ビツトのディジタルコードに変換するコード化論理
回路51とから構成されている。
FIG. 6 is an electrical circuit diagram of an example of a parallel A/D converter having a compression function. This A/D converter 50 is
(28-1) comparators CM1 to cM255 are provided with individual comparison voltages corresponding to each quantization level from zero to full scale, and are connected to the non-inverting input terminals of each of these comparators. Analog switch 5WI-5
W255, a first voltage dividing resistor with a resistance value R connected between the first contact terminals 8 of analog switches SWL to SW255, and analog switches SWI to 5W25.
5, and a coding logic circuit 51 that converts the output of the comparator into an 8-bit digital code. It is configured.

比較器CMI−CM255の反転入力端子には前記マル
チプレクサ23(第1図参照)の出力が導かれる。
The output of the multiplexer 23 (see FIG. 1) is led to the inverting input terminal of the comparator CMI-CM255.

上記第1.第2の分圧抵抗列の一端には基準電圧V r
efが印加され、他端は抵抗値ROの抵抗を介して電源
供給端子52に接続されている。すなわち、比較器CM
I−CM255の比較電圧は基準電圧V rcrと2列
の分圧抵抗により決定されている。
Above 1. One end of the second voltage dividing resistor string has a reference voltage V r
ef is applied, and the other end is connected to the power supply terminal 52 via a resistor having a resistance value RO. That is, comparator CM
The comparison voltage of the I-CM 255 is determined by the reference voltage V rcr and two rows of voltage dividing resistors.

アナログスイッチ5WI−SW255をmlの接点端子
aに接続させると、このとき第1の分圧抵抗はすべて同
じ抵抗値Rであるため、比較器CMI〜CM255の比
較電圧は最小電圧から順次同じ電位差で増えていき、入
力電圧とディジタルコード化された出力電圧は直線性を
有する。アナログスイッチ5WI−SW255を第2の
接点端子すに接続させると、このときの比較電圧は第2
の分圧抵抗の抵抗値R1〜R255により決定される。
When the analog switch 5WI-SW255 is connected to the contact terminal a of ml, the first voltage dividing resistors all have the same resistance value R, so the comparison voltages of the comparators CMI to CM255 are sequentially set at the same potential difference starting from the minimum voltage. The input voltage and the digitally encoded output voltage are linear. When the analog switch 5WI-SW255 is connected to the second contact terminal, the comparison voltage at this time is the second
It is determined by the resistance values R1 to R255 of the voltage dividing resistors.

第2の分圧抵抗の抵抗値R1〜R255については、例
えば次に示すような関係に設定されている。
The resistance values R1 to R255 of the second voltage dividing resistors are set, for example, in the following relationship.

Rn−旧×K (n−1) 但し、R1は初期抵抗、には抵抗の増加率で1以上の値
、nは抵抗の番号である。
Rn-old×K (n-1) where R1 is the initial resistance, the rate of increase in resistance is a value of 1 or more, and n is the number of the resistance.

このような第2の分圧抵抗を用いると、比較電圧は指数
関数的に増加することになり、入力端子が増加するに従
い、比較器CMI〜CM255は反転しづらくなるので
、入力電圧とディジタルコード化された出力電圧との関
係は第2図に示した入出力特性の関係となり、結果とし
て圧縮されたデータを得ることができる。
If such a second voltage dividing resistor is used, the comparison voltage will increase exponentially, and as the number of input terminals increases, the comparators CMI to CM255 will become difficult to invert. The relationship with the converted output voltage is the relationship of the input/output characteristics shown in FIG. 2, and as a result, compressed data can be obtained.

次に本発明の他の実施例を説明する。Next, another embodiment of the present invention will be described.

前記第1図に示した実施例装置では、圧縮したデータと
、圧縮しないデータとを1つのA/Dコンバータにより
A/D変換しているので、時間的な遅れが生ずる。そこ
で、第7図に示した焦点検出装置では、2つのA/Dコ
ンバータを用いて、圧縮したデータと圧縮しないデータ
とを同時に得るようにしている。すなわち、この第7図
に示す焦点検出装置は、前記第1図に示した焦点検出装
置とは異なる構成のインターフェース回路60を有する
。インターフェース回路60は、コントロールロジック
回路61と、受光回路13の出力を圧縮する圧縮回路6
2と、受光回路13の出力を圧縮しないでそのまま通過
させるマルチプレクサ63と、このマルチプレクサ63
の出力をA/D変換する第1のA/Dコンバータ64と
、圧縮回路62の出力をA/D変換する第2のA/Dコ
ンバータ65と、この第2のA/Dコンバータ65の出
力を一時的にストアするメモリー66と、このメモリー
66にストアされた圧縮A/D変換データと上記の圧縮
されないノーマルA/D変換データとを切り換えてCP
U6 Bに入力させる切換回路67とから構成される。
In the embodiment shown in FIG. 1, compressed data and uncompressed data are A/D converted by one A/D converter, so a time delay occurs. Therefore, the focus detection device shown in FIG. 7 uses two A/D converters to simultaneously obtain compressed data and uncompressed data. That is, the focus detection device shown in FIG. 7 has an interface circuit 60 having a different configuration from that of the focus detection device shown in FIG. 1. The interface circuit 60 includes a control logic circuit 61 and a compression circuit 6 that compresses the output of the light receiving circuit 13.
2, a multiplexer 63 that allows the output of the light receiving circuit 13 to pass through without being compressed, and this multiplexer 63.
A first A/D converter 64 that A/D converts the output of the compression circuit 62, a second A/D converter 65 that A/D converts the output of the compression circuit 62, and an output of the second A/D converter 65. A memory 66 for temporarily storing the CP
It is composed of a switching circuit 67 for inputting to U6B.

コントロールロジック回路61はCPU6gの制御信号
に基づき、受光回路13.マルチプレクサ63.A/D
コンバータ64,65および切換回路67の制御を行な
う。
The control logic circuit 61 operates based on a control signal from the CPU 6g, and the light receiving circuit 13. Multiplexer 63. A/D
Controls converters 64, 65 and switching circuit 67.

次に上記第7図に示した実施例装置の動作を第8図に示
すフローチャートによって説明する。AFルーチンが呼
び出されると、CPU6gはまず、コントロールロジッ
ク回路61へCCD出力データの積分開始信号を送る。
Next, the operation of the embodiment shown in FIG. 7 will be explained with reference to the flowchart shown in FIG. When the AF routine is called, the CPU 6g first sends a signal to start integrating CCD output data to the control logic circuit 61.

コントロールロジ・ンク回路61はCCD出力データを
積分してこれが所定レベルになると、2つのA/Dコン
ノ(−夕64゜65で同時にCOD出力をディジタルコ
ード化する。CPU6gは、まず圧縮を行なっていない
ノーマルデータを読み込み、そして、そのデータがa算
を行なうには適当であるかないかを判定し、被写体輝度
が高すぎる、或いは低すぎるなどして問題がある場合に
はメモリー66より圧縮データを読み込む。次にflP
J距演算を行ない、演算結果が合焦範囲にあるならばA
Fルーチンを終了する。
The control logic circuit 61 integrates the CCD output data, and when it reaches a predetermined level, it digitally encodes the COD output at the same time at the two A/D controllers (64° and 65°).The CPU 6g first performs compression. It reads the normal data that is not available, and determines whether the data is suitable for a calculation. If there is a problem such as the brightness of the subject being too high or low, the compressed data is read from the memory 66. Load. Then flP
Perform J distance calculation, and if the calculation result is within the focusing range, select A.
End the F routine.

合焦範囲外にある場合には撮影レンズ11の駆動を行な
い、再度合焦の判定をするためにAFルーチンの先頭へ
戻る。
If it is out of the focus range, the photographing lens 11 is driven and the process returns to the beginning of the AF routine to determine focus again.

□ なお、上述した各実施例はいずれも、位相差方法の
焦点検出装置に適用したものであるが、COD等のライ
ンセンサーを用いたコントラスト方法の焦点検出装置に
適用するようにしてもよい。
□Although each of the embodiments described above is applied to a focus detection device using a phase difference method, it may also be applied to a focus detection device using a contrast method using a line sensor such as a COD.

[発明の効果] 以上述べたように、本発明によれば、A/Dコンバータ
のビット数を増やすことなく、またCPUの演算速度を
遅くすることなく、輝度変化の激しい被写体に対しても
正確な焦点検出を行なうことができる。
[Effects of the Invention] As described above, according to the present invention, it is possible to accurately photograph objects with rapid brightness changes without increasing the number of bits of the A/D converter or slowing down the calculation speed of the CPU. Focus detection can be performed accurately.

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

第1図は、本発明の一実施例を示す焦点検出装置のブロ
ック図、 第2図は、上記第1図中の圧縮回路の理想的な人出力特
性と入出力波形を示す線図、 第3図は、上記第1図中の圧縮回路の一例の電気回路図
、 第4図は、上記第3図に示した圧縮回路の入出力信号の
特性線図、 第5図は、上記第1図に示した焦点検出装置のAFルー
チンを説明するフローチャート、第6図は、圧縮機能を
有するA/Dコンバータの一例を示した電気回路図、 第7図は、本発明の他の実施例を示す焦点検出装置のブ
ロック図、 第8図は、上記第7図に示した焦点検出装置のAPルー
チンを説明するフローチャート、第9図は、位相差方法
を用いた焦点検出装置の一例の基本構成を示すブロック
図、 第10図(A) 、 (B)および(C)は、被写体コ
ントラストの変化が大きい場合のセンサー出力と、この
センサー出力の積分時間をピーク制御方法によって変化
させたA/D変換出力およびアベレージ制御方法によっ
て変化させたA/D変換出力である。 13a・・・・・・・・・A群センサー(光電変換手段
)13b・・・・・・・・・8群センサー(光電変換手
段)21.61・・・・・・・・・コントロールロジッ
ク回路(演算手段) 22.62・・・・・・・・・圧縮回路(第2の変換手
段)23.63・・・・・・・・・マルチプレクサ(第
1の変換手段) 24.50・・・・・・・・・A/Dコンバータ(第1
.第2の変換手段)
FIG. 1 is a block diagram of a focus detection device showing an embodiment of the present invention; FIG. 2 is a diagram showing ideal human output characteristics and input/output waveforms of the compression circuit shown in FIG. 1; 3 is an electric circuit diagram of an example of the compression circuit shown in FIG. 1, FIG. 4 is a characteristic diagram of input/output signals of the compression circuit shown in FIG. 3, and FIG. FIG. 6 is an electric circuit diagram showing an example of an A/D converter having a compression function. FIG. 7 is a flowchart explaining the AF routine of the focus detection device shown in the figure. 8 is a flowchart explaining the AP routine of the focus detection device shown in FIG. 7, and FIG. 9 is a basic configuration of an example of the focus detection device using the phase difference method. Figures 10 (A), (B) and (C) are block diagrams showing the sensor output when there is a large change in subject contrast and the A/D when the integration time of this sensor output is changed by the peak control method. This is an A/D conversion output changed by a conversion output and an average control method. 13a...A group sensor (photoelectric conversion means) 13b...8 group sensor (photoelectric conversion means) 21.61...Control logic Circuit (calculating means) 22.62...Compression circuit (second conversion means) 23.63...Multiplexer (first conversion means) 24.50.・・・・・・・・・A/D converter (first
.. second conversion means)

Claims (1)

【特許請求の範囲】 焦点検出用光学系が形成する像を光電変換する手段と、 この光電変換手段の出力をディジタルコード化するため
の入力信号と出力信号に直線性を有する第1の変換手段
と、 上記光電変換手段の出力をディジタルコード化するため
の入力信号と出力信号に圧縮性を有する第2の変換手段
と、 上記第1の変換手段の出力信号が適正であるかを判定す
る手段と、 この判定手段の判定結果に基づき上記第1の変換手段の
出力信号から上記第2の変換手段の出力信号に切り換え
て焦点検出の演算を行なう演算手段と、 を具備してなることを特徴とする焦点検出装置。
[Scope of Claims] A means for photoelectrically converting an image formed by a focus detection optical system, and a first converter having linearity in an input signal and an output signal for converting the output of the photoelectric converter into a digital code. and a second conversion means that compresses the input signal and output signal for digitally encoding the output of the photoelectric conversion means, and means for determining whether the output signal of the first conversion means is appropriate. and calculation means for performing focus detection calculations by switching from the output signal of the first conversion means to the output signal of the second conversion means based on the determination result of the determination means. Focus detection device.
JP11779587A 1987-05-14 1987-05-14 Focus detecting device Pending JPS63281140A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP11779587A JPS63281140A (en) 1987-05-14 1987-05-14 Focus detecting device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP11779587A JPS63281140A (en) 1987-05-14 1987-05-14 Focus detecting device

Publications (1)

Publication Number Publication Date
JPS63281140A true JPS63281140A (en) 1988-11-17

Family

ID=14720479

Family Applications (1)

Application Number Title Priority Date Filing Date
JP11779587A Pending JPS63281140A (en) 1987-05-14 1987-05-14 Focus detecting device

Country Status (1)

Country Link
JP (1) JPS63281140A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001228390A (en) * 2000-02-17 2001-08-24 Asahi Optical Co Ltd Focusing device for camera

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001228390A (en) * 2000-02-17 2001-08-24 Asahi Optical Co Ltd Focusing device for camera

Similar Documents

Publication Publication Date Title
US6538593B2 (en) Method and apparatus for converting a low dynamic range analog signal to a large dynamic range floating-point digital representation
JP2009543454A (en) Mixed analog and digital pixels for high dynamic range readout
WO2019218529A1 (en) Motion detection circuit and motion detection method applied to cis
JP2632817B2 (en) Colorimetric circuit
US5274440A (en) Automatic white balance control apparatus capable of performing white balance with a subject of a monochromatic color other than white
EP1330037B1 (en) A/d converter and solid-state camera
KR19980054703A (en) How to control the focus area of the camera
JPH0587812B2 (en)
JPS63281140A (en) Focus detecting device
JPS62140033A (en) Photometric apparatus
JPH02113215A (en) Focus detecting device
US5572280A (en) Photoelectric conversion apparatus and camera using the same in focus detection thereof
JPS62203022A (en) Photometric apparatus
JPH02203677A (en) Image pickup device
JP2681388B2 (en) Automatic white balance adjustment device
JPH02137582A (en) Image pickup device
JP3559606B2 (en) Distance measuring device
JPH0523560B2 (en)
JP3233435B2 (en) Distance measuring device
JPS5943872B2 (en) color imaging device
JPH03158812A (en) Automatic focusing device
KR920008982Y1 (en) Auto-focusing system for camera
CN117880435A (en) Optical signal encoding method, optical signal decoding method and optical signal decoding device
JP3134401B2 (en) Auto white balance circuit of television camera device
JPH04251811A (en) Image output device