JPH05346536A - Focal point detecting device - Google Patents

Focal point detecting device

Info

Publication number
JPH05346536A
JPH05346536A JP18241791A JP18241791A JPH05346536A JP H05346536 A JPH05346536 A JP H05346536A JP 18241791 A JP18241791 A JP 18241791A JP 18241791 A JP18241791 A JP 18241791A JP H05346536 A JPH05346536 A JP H05346536A
Authority
JP
Japan
Prior art keywords
image
flag
reliability
focus
lens
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
JP18241791A
Other languages
Japanese (ja)
Inventor
Yasuo Tawara
靖夫 田原
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP18241791A priority Critical patent/JPH05346536A/en
Publication of JPH05346536A publication Critical patent/JPH05346536A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To detect a focal point state with high precision by making the reliability criterion for a detected image stricter when it is decided that defocusing is large than when small. CONSTITUTION:In a step 505, weighting for determining condition setting for deciding the reliability of the detected image is performed on the basis of reliability data on the detected image. By this condition setting, the weight coefficient A of a reliability threshold value FNC-NOR is set to '1' when a flag LRGPRDF is '0' (namely, when a detected defocusing quantity is small) or to 2/3 when the flag LRGPRDF is '1' (namely, when the defocusing quantity is large); and the value is saved. In steps 506 and 508-511, a reliability comparison is made to use 2/3 as the coefficient A used for the calculation in reliability decision making when the defocusing quantity is large or '1' when the defocusing quantity is small.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、焦点検出装置を備えた
カメラに関し、詳しくは被写体を表す2像の相対的な位
置関係から焦点状態を検出する自動焦点検出装置に関す
るものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a camera provided with a focus detecting device, and more particularly to an automatic focus detecting device for detecting a focus state from a relative positional relationship between two images representing a subject.

【0002】[0002]

【従来の技術】一般に、CCD等の蓄積型センサを用い
て合焦、非合焦の焦点状態を検出し、この焦点検出結果
に基づいてレンズを駆動させて自動的に焦点調節をする
機構を備えたカメラは知られている。
2. Description of the Related Art Generally, an in-focus or out-of-focus state is detected using a storage sensor such as a CCD, and a lens is driven based on the result of the focus detection to automatically adjust the focus. Cameras equipped are known.

【0003】このようなカメラにおいて従来行なわれて
いる焦点検出の原理は、撮影レンズの異なる領域を通っ
た光束により一対のラインセンサとして形成されたCC
Dの上に夫々像を結像させ、これらの結像された像の相
対的な位置の差(以下これを「デフォーカス量」とい
う)が、合焦位置と、検出された撮影レンズの焦点状態
とのずれ量に比例的な関係にあることを利用して、上記
2像の空間的な位相差を表わす像信号に適当な演算を施
して、その時点での焦点状態、すなわち合焦状態からの
ずれ方向や合焦位置までに必要な撮影レンズの移動距離
を算出するようにしたものである。
The principle of focus detection conventionally performed in such a camera is that a CC formed as a pair of line sensors by light fluxes passing through different regions of a photographing lens.
Images are formed on D respectively, and the relative position difference between these formed images (hereinafter referred to as "defocus amount") is determined by the focus position and the detected focus of the photographing lens. By taking advantage of the fact that there is a proportional relationship with the amount of deviation from the state, an appropriate calculation is performed on the image signal representing the spatial phase difference between the two images, and the focus state at that point, that is, the focused state. The moving distance of the taking lens necessary for the direction of deviation from and the in-focus position is calculated.

【0004】また、上記のような従来の焦点検出法にお
いては、一対のセンサ上に結像された像が焦点検出のた
めの基礎的な情報であるから、この像が該検出法を行な
うのに足りる程度の信頼性があるか否か問題となる。そ
こで、検出されたデフォーカス量の信頼性を判定し、信
頼性が乏しい場合には、不確かな像信号に基づいて焦点
調節を行なっても駆動された撮影レンズが合焦位置に至
らず無駄な動作を行なわせることになるため、AF制御
を行なわないようにしている。
Further, in the conventional focus detection method as described above, the image formed on the pair of sensors is the basic information for focus detection, and therefore this image performs the detection method. The question is whether there is sufficient reliability. Therefore, the reliability of the detected defocus amount is determined, and when the reliability is poor, the driven shooting lens does not reach the in-focus position and is useless even if the focus is adjusted based on the uncertain image signal. The AF control is not performed because the operation is performed.

【0005】従来の上記焦点検出装置における像の信頼
性判定は、一対のセンサ上に結像された像の一致性を目
安として行なっている。すなわちCCD等のセンサ列上
に結像された一対の像の信号パターンが一致していれ
ば、これらの像の相対的な位置関係に基づいてデフォー
カス量を求めて適切な焦点調節の動作を行なわせること
ができるが、他方これらの像の一致度が低い場合には、
これに基づいて求めたデフォーカス量の情報は不確かな
ものとなって、適切な焦点調節を行なわせることが出来
ないからである。また特願昭60−247210号、特
願昭0−247211号においては、上記信頼性の判定
を行なうしきい値を被写体輝度もしくは、被写体のコン
トラストの測定を行ない適当でないと判断された時は適
切な焦点検出を行なわせることが出来ないと判断し、上
記信頼性を判定するしきい値を厳しくし、より正確な焦
点検出が出来るようにしている。上記信頼性の判定すな
わち一対の像の一致性の判定は、通常、これらの像を示
す像信号を重ね合わせる演算処理を行ない、その一致度
を、予め定めたしきい値と比較することにより行なって
いる。
The reliability of an image in the conventional focus detection device is determined by using the coincidence of images formed on a pair of sensors as a guide. That is, if the signal patterns of a pair of images formed on a sensor array such as a CCD match, the defocus amount is obtained based on the relative positional relationship between these images to perform an appropriate focus adjustment operation. Can be done, but on the other hand, if these images do not match well,
This is because the information on the defocus amount obtained based on this becomes uncertain, and it is not possible to perform appropriate focus adjustment. Further, in Japanese Patent Application No. 60-247210 and Japanese Patent Application No. 0-247211, it is appropriate when the threshold value for judging the above reliability is not suitable by measuring the object brightness or the object contrast. It is determined that it is impossible to perform accurate focus detection, and the threshold value for determining the reliability is set to be strict so that more accurate focus detection can be performed. The determination of the reliability, that is, the determination of the coincidence between a pair of images is usually performed by performing an arithmetic process for superposing image signals showing these images and comparing the coincidence with a predetermined threshold value. ing.

【0006】[0006]

【発明が解決しようとする課題】ところで、上記のよう
な焦点検出光学系により結像された像の信頼性判定を行
なう従来法においては、デフォーカス量の大きさによっ
て判定の条件を変更することは行なわれていない。
By the way, in the conventional method for determining the reliability of the image formed by the focus detecting optical system as described above, the determination condition is changed depending on the size of the defocus amount. Has not been done.

【0007】しかしながら、本発明者の検討によれば、
大デフォーカス状態では、合焦状態からのずれが大きい
(ピントずれが大きい)ことに由来して、信頼性計算に
用いられる一対のセンサ上に導かれ結像される被写体の
共通部分が小デフォーカス状態に比べて少ないことや、
計算に用いられるこれらの像の立ち上がり及び立ち下が
り時間が長くなるために、このような像から求められる
像信号を用いて信頼性判定を行なうと見掛け上信頼性が
高くなる傾向が現われる。したがって、小デフォーカス
状態の場合と区別せずに像の信頼性判定を行ない、合焦
のためのレンズ駆動を行なわせると、結果的に、大デフ
ォーカス状態では不確かな精度で焦点調節を行なうこと
になってしまう。
However, according to the study by the present inventor,
In the large defocus state, the deviation from the in-focus state is large (the focus deviation is large), so that the common part of the object that is guided and imaged on the pair of sensors used for reliability calculation is the small defocus state. There are few things compared to the focus state,
Since the rise and fall times of these images used for calculation become long, there is a tendency that the reliability is apparently increased when the reliability determination is performed using the image signal obtained from such images. Therefore, if the reliability of the image is determined without distinction from the case of the small defocus state and the lens is driven for focusing, as a result, the focus adjustment is performed with uncertain accuracy in the large defocus state. It will be decided.

【0008】本発明はこのような問題を解決するために
成されたものであり、大デフォーカス状態と小デフォー
カス状態とでは、従来行なっている像の信頼性判定の結
果に差があるという不具合を解消し、デフォーカス量の
程度に影響されることなく安定かつ精度の良い信頼性判
定を行なって、精度がよくかつ無駄なレンズ駆動を避け
ることができる焦点検出装置を提供することを目的とす
る。
The present invention has been made to solve such a problem, and it is said that there is a difference in the result of conventional image reliability judgment between the large defocus state and the small defocus state. An object of the present invention is to provide a focus detection device that eliminates defects and performs stable and accurate reliability determination without being affected by the degree of defocus amount, and that is capable of avoiding lens driving that is accurate and wasteful. And

【0009】[0009]

【課題を解決するための手段】上記目的を実現するため
に本発明者は、被写体を結像する光学系の焦点状態に応
じて、像相互の相対的な位置関係が変化する第1の像と
第2の像を結像させる焦点検出光学系と、これらの像に
対応して光電変換された夫々の像信号を出力する像信号
出力手段と、これらの像信号に基づいて上記第1の像と
第2の像のずれ量を求め、上記焦点検出光学系のデフォ
ーカス量を算出する演算手段と、上記第1の像及び第2
の像を表す像信号相互の一致性を、予め定めたしきい値
と比較して上記焦点検出光学系により結像された像の信
頼性を判定する像信頼性判定手段とを備えた焦点検出装
置において、上記デフォーカス量の大きさによって像信
頼性判定手段におけるしきい値を可変させる手段、例え
ばデフォーカス量が予め定めた一定値よりも大きい場合
にしきい値を小さな値とし、かつデフォーカス量が上記
一定値未満の場合にしきい値を大きな値とする重み付け
手段を設けたことを特徴とする構成の焦点検出装置を完
成した。
In order to achieve the above object, the inventor of the present invention has proposed a first image in which the relative positional relationship between the images changes in accordance with the focus state of an optical system for forming an image of a subject. And a focus detection optical system for forming a second image, image signal output means for outputting respective image signals photoelectrically converted corresponding to these images, and the above-mentioned first based on these image signals. Calculation means for obtaining the amount of deviation between the image and the second image and for calculating the defocus amount of the focus detection optical system, the first image and the second image
Detection by means of image reliability determination means for determining the reliability of the image formed by the focus detection optical system by comparing the mutual agreement of the image signals representing the images of 1) with a predetermined threshold value. In the apparatus, means for varying the threshold value in the image reliability determining means according to the magnitude of the defocus amount, for example, when the defocus amount is larger than a predetermined constant value, the threshold value is set to a small value and A focus detection device having a structure characterized in that weighting means for increasing the threshold value when the amount is less than the above-mentioned fixed value is provided is completed.

【0010】上記重み付け手段としては、例えば予め定
めたしきい値に、デフォーカス量の大きさによって、大
デフォーカス状態では1の係数を掛け、小デフォーカス
状態ではこれよりも小さな係数(例えば2/3のような
値)を掛ける係数手段を用いることができるが、特にこ
れに限定されるものではない。
As the weighting means, for example, a predetermined threshold value is multiplied by a coefficient of 1 in the large defocus state depending on the size of the defocus amount, and a smaller coefficient (eg, 2 in the small defocus state). It is possible to use a coefficient means which multiplies a value such as / 3), but is not particularly limited to this.

【0011】このような像の信頼性判定機能を備えた焦
点検出装置によれば、大デフォーカス状態においても安
定で精度がよくしかも無駄のない焦点調節動作を行なう
ことができる。
According to the focus detecting apparatus having the image reliability determining function as described above, it is possible to perform a stable and accurate focus adjusting operation without waste even in a large defocus state.

【0012】[0012]

【実施例】本発明の実施例を説明していく。EXAMPLES Examples of the present invention will be described.

【0013】図1は本発明に関わる自動焦点装置を備え
たカメラの実施例を示す回路図である。
FIG. 1 is a circuit diagram showing an embodiment of a camera provided with an automatic focusing device according to the present invention.

【0014】図においてPRSはカメラの制御装置で、
例えば内部に図示しないCPU(中央処理装置)、RO
M,RAM,A/D変換機能を有する1チップのマイク
ロコンピュータ(以下マイコンという)である。PRS
はROMに格納されたカメラのシーケンス・プログラム
に従って、自動露出制御機能、自動焦点調節機能、フィ
ルムの巻き上げ・巻き戻し等のカメラの一連の動作を行
っている。そのために、PRSは通信用信号SO,S
I,SCLK,通信選択信号CLCM,CSDR,CD
DRを用いて、カメラ本体内の周辺回路およびレンズ内
制御装置と通信を行って、各々の回路やレンズの動作を
制御する。
In the figure, PRS is a camera controller,
For example, a CPU (central processing unit), RO (not shown)
It is a one-chip microcomputer (hereinafter referred to as a microcomputer) having M, RAM, and A / D conversion functions. PRS
Performs a series of camera operations such as an automatic exposure control function, an automatic focus adjustment function, and film winding / rewinding in accordance with the camera sequence program stored in the ROM. Therefore, PRS is a signal for communication SO, S
I, SCLK, communication selection signal CLCM, CSSDR, CD
The DR is used to communicate with the peripheral circuits in the camera body and the control device in the lens to control the operation of each circuit and the lens.

【0015】SOはPRSから出力されるデータ信号、
SIはPRSに入力されるデータ信号、SCLKは信号
SO,SIの同期クロックである。
SO is a data signal output from PRS,
SI is a data signal input to the PRS, and SCLK is a synchronous clock of the signals SO and SI.

【0016】LCMはレンズ通信バッファ回路であり、
カメラが動作中のときにはレンズ用電源端子VLに電力
を供給するとともに、PRSからの選択信号CLCMが
高電位レベル(以下、“H”と略記し、低電位レベルは
“L”と略記する)のときには、カメラとレンズ間の通
信バッファとなる。
LCM is a lens communication buffer circuit,
When the camera is operating, power is supplied to the lens power supply terminal VL, and the selection signal CLCM from the PRS is at a high potential level (hereinafter abbreviated as “H” and a low potential level as “L”). Sometimes it serves as a communication buffer between the camera and the lens.

【0017】PRSがCLCMを“H”にして、SCL
Kに同期して所定のデータをSOから送出すると、LC
Mはカメラ・レンズ間通信接点を介して、SCLK,S
Oの各々のバッファ信号LCK,DCLをレンズへ出力
する。それと同時にレンズからの信号DLCのバッファ
信号をSIに出力し、PRSはSCLKに同期してSI
からレンズのデータを入力する。
PRS sets CLCM to "H", and SCL
When certain data is sent from SO in synchronization with K, LC
M is SCLK, S via the camera / lens communication contact
The respective buffer signals LCK and DCL of O are output to the lens. At the same time, the buffer signal of the signal DLC from the lens is output to SI, and PRS synchronizes with SCLK and SI.
Enter the lens data from.

【0018】SDRはCCD等から構成される焦点検出
用のラインセンサ装置SNSの駆動回路であり、信号C
SDRが“H”のとき選択されて、SO,SI,SCL
Kを用いてPRSから制御される。信号CKはCCD駆
動用クロックφ1,φ2を生成するためのクロックであ
り、信号INTENDは蓄積動作が終了したことをPR
Sに知らせる信号である。
SDR is a drive circuit of a line sensor device SNS for focus detection which is composed of a CCD or the like, and has a signal C
Selected when SDR is "H", SO, SI, SCL
Controlled from PRS with K. The signal CK is a clock for generating CCD driving clocks φ1 and φ2, and the signal INTEND indicates that the accumulation operation is finished.
This signal informs S.

【0019】SNSの出力信号OSはクロックφ1,φ
2に同期した時系列の像信号であり、SDR内の増幅回
路で増幅された後、AOSとしてPRSに出力される。
PRSはAOSをアナログ入力端子から入力し、CKに
同期して、内部のA/D変換機能でディジタル信号とし
て、図示しないRAMの所定アドレスに順次格納する。
The output signals OS of the SNS are clocks φ1 and φ.
These are time-series image signals synchronized with 2, and are amplified by the amplifier circuit in the SDR and then output to the PRS as AOS.
The PRS inputs AOS from an analog input terminal and sequentially stores it as a digital signal by a built-in A / D conversion function at a predetermined address of a RAM (not shown) in synchronization with CK.

【0020】同じくSNSの出力信号であるSAGC
は、SNS内の図示しないAGC(自動利得制御:Au
to Gain Control)センサの出力であ
り、SDRに入力されて、SNSの蓄積制御に用いられ
る。
SAGC which is also an output signal of SNS
Is an AGC (automatic gain control: Au) not shown in the SNS.
The output of the to gain control sensor is input to the SDR and used for the SNS storage control.

【0021】SPCは撮影レンズを介した被写体からの
光を受光する露出制御用(AE用)測光センサであり、
その出力SSPCはPRSのアナログ入力端子に入力さ
れ、A/D変換後、所定のプログラムに従って自動露出
制御に用いられる。
The SPC is an exposure control (AE) photometric sensor that receives light from a subject through a taking lens.
The output SSPC is input to the analog input terminal of the PRS, A / D converted, and then used for automatic exposure control according to a predetermined program.

【0022】DDRはスイッチ検知および表示用回路で
あり、信号CDDRが“H”のとき選択されて、SO,
SI,SCLKを用いてPRSから制御される。即ち、
PRSから送られてくるデータに基づいてカメラの表示
部材DSPの表示を切り替えたり、カメラの各種操作部
材のオン・オフ状態を通信によってPRSに報知する。
DDR is a switch detection and display circuit, which is selected when the signal CDRD is "H", and SO,
It is controlled from PRS using SI and SCLK. That is,
The display of the display member DSP of the camera is switched based on the data sent from the PRS, and the PRS is informed of the on / off state of various operation members of the camera by communication.

【0023】SW1,SW2は不図示のレリーズボタン
に連動したスイッチで、レリーズボタンの第1段階の押
下によりSW1がオンし、引き続いて第2段階の押下で
SW2がオンする。PRSはSW1オンで測光、自動焦
点調節を行い、SW2オンをトリガとして露光制御とフ
ィルムの巻き上げを行う。
SW1 and SW2 are switches interlocked with a release button (not shown), and SW1 is turned on when the release button is pressed in the first step, and SW2 is turned on when the release button is pressed in the second step. The PRS performs photometry and automatic focus adjustment when SW1 is on, and exposure control and film winding are performed when SW2 is on.

【0024】MTR1はフィルム給送用、MTR2はミ
ラーアップ・ダウンおよびシャッターばねチャージ用の
モータであり、各々の駆動回路MDR1,MDR2によ
り正転、逆転の制御が行われる。PRSからMDR1,
MDR2に入力されている信号MIF,MIR,M2
F,M2Rはモータ制御用の信号である。
MTR1 is a film feeding motor, MTR2 is a motor for mirror up / down and shutter spring charging, and forward / reverse control is performed by respective drive circuits MDR1 and MDR2. PRS to MDR1,
Signals MIF, MIR, M2 input to MDR2
F and M2R are signals for motor control.

【0025】MG1,MG2は各々シャッター先幕・後
幕走行開始用マグネットで、信号SMG1,SMG2,
増幅トランジスタTR1,TR2で通電され、PRSに
よりシャッター制御が行われる。
MG1 and MG2 are shutter front and rear curtain running start magnets, and signals SMG1, SMG2, respectively.
The amplification transistors TR1 and TR2 are energized, and shutter control is performed by PRS.

【0026】ALEDは低輝度で被写体のコントラスト
も低いと判断された場合に被写体に対して照射するため
の補助光源で、PRSの出力端子SALの信号を“H”
にすることによって駆動トランジスタATRを駆動し、
光学系ALNSを介して補助光を照射する。尚、投光は
パターン投光されるものとする。ALEDは例えば発光
ダイオードにて構成される。
The ALED is an auxiliary light source for illuminating the subject when it is determined that the luminance is low and the contrast of the subject is low, and the signal at the output terminal SAL of the PRS is "H".
Driving the drive transistor ATR by
Auxiliary light is emitted through the optical system ALNS. It should be noted that the light projection is pattern light projection. The ALED is composed of, for example, a light emitting diode.

【0027】尚、スイッチ検知および表示用回路DD
R、モータ駆動回路MDR1,MDR2,シャッター制
御は、本発明と直接関わりないので、詳しい説明は省略
する。レンズ内制御回路LPRSにLCKに同期して入
力される信号DCLは、カメラからレンズLNSに対す
る命令のデータであり、命令に対するレンズの動作は予
め決められている。LPRSは所定の手続きに従ってそ
の命令を解析し、焦点調節や絞り制御の動作や、出力D
LCからレンズの各部動作状況(焦点調節光学系の駆動
状況や絞りの駆動状態等)や各種パラメータ(開放Fナ
ンバー、焦点距離、デフォーカス量対焦点調節光学系の
移動量の係数等)の出力を行う。
The switch detection and display circuit DD
Since R, motor drive circuits MDR1, MDR2, and shutter control are not directly related to the present invention, detailed description thereof will be omitted. A signal DCL input to the in-lens control circuit LPRS in synchronization with LCK is data of a command from the camera to the lens LNS, and the operation of the lens in response to the command is predetermined. The LPRS analyzes the command according to a predetermined procedure, and performs focus adjustment and aperture control operations and output D.
Output from LC the operating status of each part of the lens (driving status of focus adjusting optical system, driving status of diaphragm, etc.) and various parameters (open F number, focal length, defocus amount vs. coefficient of moving amount of focus adjusting optical system, etc.) I do.

【0028】実施例では、全体繰り出しの単レンズの例
を示しており、カメラから焦点調節の命令が送られた場
合には、同時に送られてくる駆動量・方向に従って、焦
点調節用モータLMTRを信号LMF,LMRによって
駆動して、光学系を光軸方向に移動させて焦点調節を行
う。光学系の移動量はエンコーダ回路ENCのパルス信
号SENCでモニタし、LPRS内のカウンタで計数し
ており、所定の移動が完了した時点で、LPRS自身が
信号LMF,LMRを“L”にしてモータLMTRを制
動する。
In the embodiment, an example of a single lens for the entire extension is shown. When a focus adjustment command is sent from the camera, the focus adjustment motor LMTR is driven in accordance with the drive amount and direction sent at the same time. Driven by the signals LMF and LMR, the optical system is moved in the optical axis direction to perform focus adjustment. The movement amount of the optical system is monitored by the pulse signal SENC of the encoder circuit ENC and is counted by the counter in the LPRS. When the predetermined movement is completed, the LPRS itself sets the signals LMF and LMR to “L” and the motor. Brakes the LMTR.

【0029】このため、一旦カメラから焦点調節の命令
が送られた後は、カメラの制御装置PRSはレンズの駆
動が終了するまで、レンズ駆動に関して全く関与する必
要がない。また、カメラから要求があった場合には、上
記カウンタの内容をカメラに送出することも可能な構成
になっている。
Therefore, once the focus adjustment command is sent from the camera, the camera control device PRS does not need to be involved in lens driving at all until the lens driving is completed. In addition, the contents of the counter can be sent to the camera when requested by the camera.

【0030】カメラから絞り制御の命令が送られた場合
には、同時に送られてくる絞り段数に従って、絞り駆動
用としては公知のステッピング・モータDMTRを駆動
する。尚、ステッピング・モータはオープン制御が可能
なため、動作をモニタするためのエンコーダを必要とし
ない。
When an aperture control command is sent from the camera, a stepping motor DMTR known for driving the aperture is driven according to the number of aperture steps sent at the same time. Since the stepping motor can be open-controlled, it does not need an encoder for monitoring the operation.

【0031】次いで、図1の回路によって行なわれる動
作を図2〜図4を用いて説明する。まず始めに、不図示
の電源スイッチが操作されるとマイコンPRSに給電が
なされ、マイコンPRSは格納プログラムを実行する。
Next, the operation performed by the circuit of FIG. 1 will be described with reference to FIGS. First, when a power switch (not shown) is operated, power is supplied to the microcomputer PRS, and the microcomputer PRS executes the storage program.

【0032】図2は、上述したカメラにおいて行なわれ
る動作のプログラム全体の概要を示すフローチャートで
ある。上述の格納プログラムの実行が開始されると、ま
ずステップ(002)にて不図示のシャッターボタンの
第1段階操作にてオンとなるスイッチSW1の状態検知
がなされ、スイッチSW1がオフのときにはステップ
(005)にてマイコンPRSの内部にある全フラグを
“0”にセットし、更に、後述する全変数に“0”をセ
ットする。
FIG. 2 is a flow chart showing the outline of the entire program of the operation performed in the above-mentioned camera. When the execution of the above-mentioned storage program is started, first, in step (002), the state of the switch SW1 that is turned on by the first-step operation of the shutter button (not shown) is detected, and when the switch SW1 is off, step (002) In 005), all the flags inside the microcomputer PRS are set to "0", and all variables described later are set to "0".

【0033】上記ステップ(002),(005)はス
イッチSW1がオンとなるまで繰返し実行され、スイッ
チSW1がオンとなることによりステップ(003)へ
移行する。
The steps (002) and (005) are repeatedly executed until the switch SW1 is turned on. When the switch SW1 is turned on, the process proceeds to step (003).

【0034】ステップ(003)はAE制御のサブルー
チンを実行するステップであり、このAE制御サブルー
チンにて、測光演算処理、露光制御並びに露光後のシャ
ッターチャージ、フィルム巻上げ等の一連の制御が行わ
れる。尚、上記AE制御サブルーチンは、本発明とは直
接関係がないので詳細な説明は省略するが、その概要は
次の通りである。すなわちスイッチSW1のオンが継続
している間、このAEサブルーチンが実行される毎に測
光及び露光制御演算が行われ、この途中でシャッターレ
リーズボタンの第2段階操作がなされスイッチSW2が
オンとなると、割込み処理にてレリーズ動作がなされ、
上記露光制御演算にて求められた露光量に応じて絞り又
はシャッター秒時の制御を行い、露光終了後にシャッタ
ーチャージ及びフィルム給送動作を行う。
Step (003) is a step for executing a subroutine of AE control. In this AE control subroutine, a series of controls such as photometric calculation processing, exposure control, shutter charge after exposure, film winding and the like are performed. The above AE control subroutine is not directly related to the present invention, so a detailed description thereof will be omitted, but the outline thereof is as follows. That is, while the switch SW1 continues to be turned on, photometric and exposure control calculations are performed each time this AE subroutine is executed, and during this process, the shutter release button is operated in the second step and the switch SW2 is turned on. Release operation is performed by interrupt processing,
The aperture or shutter time is controlled according to the exposure amount obtained by the exposure control calculation, and the shutter charging and film feeding operations are performed after the exposure is completed.

【0035】今、シャッターボタンの第1段階操作がな
されているものとすると、このフローはステップ(00
3)に移行し、測光、演算処理が行われた後にステップ
(004)へ移行する。上述の割込み動作は、AF動作
モードがいわゆる「サーボモード」、「マニュアルモー
ド」のときには、電源スイッチオンから1回目の測光が
完了した状態で許可され、又、AF動作モードが「ワン
ショットモード」のときは合焦が検出された状態で許可
される。即ち上記「サーボモード」あるいは「マニュア
ルモード」では焦点調節動作とは関係なくいつでもレリ
ーズ動作が可能であり、「ワンショットモード」では合
焦を検知して始めてレリーズ可能となる。尚、本例では
AF動作モードは不図示のモードスイッチにより選択さ
れ「ワンショットモード」では、一旦合焦するとスイッ
チSW1をオフするまで再びAF動作を行わず、他方
「サーボモード」では常にAF動作を行う。
If it is assumed that the shutter button is operated in the first stage, this flow is step (00
After shifting to 3) and performing photometry and arithmetic processing, the routine proceeds to step (004). When the AF operation mode is the so-called “servo mode” or “manual mode”, the interrupt operation described above is permitted in the state where the first photometry is completed after the power switch is turned on, and the AF operation mode is the “one-shot mode”. When, the focus is detected in the state where the focus is detected. That is, in the "servo mode" or the "manual mode", the release operation can be performed at any time regardless of the focus adjustment operation, and in the "one-shot mode", the release is possible only after detecting the focus. In this example, the AF operation mode is selected by a mode switch (not shown). In the "one-shot mode", once the focus is achieved, the AF operation is not performed again until the switch SW1 is turned off, while in the "servo mode", the AF operation is always performed. I do.

【0036】AF制御のステップ(004)では、撮影
レンズの焦点状態を検出して「ワンショットモード」
「サーボモード」ならば合焦となるように撮影レンズを
駆動させ、又「マニュアルモード」のときには合焦ある
いは非合焦の表示のみを行う。又、マニュアルモードの
ときには、補助光によるAF制御は行われない。
At the step (004) of AF control, the focus state of the taking lens is detected and the "one-shot mode" is selected.
In the "servo mode", the photographing lens is driven so as to be in focus, and in the "manual mode", only the in-focus or out-of-focus display is performed. Further, in the manual mode, AF control by auxiliary light is not performed.

【0037】上述フローにおいては、スイッチSW1が
オンしている限りはステップ(003)のAE制御、及
びステップ(004)のAF制御は交互に繰り返し行わ
れることになる。
In the above flow, the AE control in step (003) and the AF control in step (004) are alternately repeated as long as the switch SW1 is on.

【0038】ステップ(004)においては、図3に示
すAF制御サブルーチンがコールされ実行される。まず
ステップ(102)で、シャッターレリーズ動作による
1コマの撮影を終了した直後の1回目のAF制御か否か
を判定して(すなわち直前に行われたAE制御サブルー
チンにてフィルム給送が行われたか否かを判定して)、
現在指定されているモードが「連続撮影モード」か否か
を判断する。このステップ(102)において、今回の
AF制御が撮影終了後初めて行われたものであると判断
されたときには連続撮影モード中のAF動作であると判
断し、ステップ(103)に移行してマイコンPRS内
の全フラグを“0”にセットし、全変数に“0”をセッ
トする。これにより「連続撮影モード」中は過去におけ
るAF制御の状況を初期化し、次のステップ(104)
で連続撮影モードフラグFAFを1にセットして連続撮
影中のAF制御であることを記憶し、次いでステップ
(109)へ移行する。他方、今回のAF制御が撮影終
了直後の1回目のAF制御でない場合には、ステップ
(105)に移行し、フラグPRMVのセット状態が検
知される。このフラグPRMVは「レンズ駆動フラグ」
であり、前回のAF制御でレンズ駆動を行っていなけれ
ば、フラグPRMVは“0”にセットされたままなので
そのままステップ(109)へ移行し、改めてAF制御
を行う。逆に前回レンズ駆動が行われていたときには次
のステップ(106)でレンズが停止しているか否かを
判定する。
At step (004), the AF control subroutine shown in FIG. 3 is called and executed. First, in step (102), it is determined whether or not it is the first AF control immediately after the shooting of one frame by the shutter release operation is completed (that is, the film feeding is performed by the AE control subroutine performed immediately before). Judge whether or not),
It is determined whether or not the currently designated mode is the "continuous shooting mode". In this step (102), when it is determined that the current AF control is performed for the first time after the end of shooting, it is determined that the AF operation is in the continuous shooting mode, and the process shifts to step (103) to execute the microcomputer PRS. All flags in the above are set to "0", and all variables are set to "0". As a result, the AF control situation in the past is initialized during the "continuous shooting mode", and the next step (104)
The continuous shooting mode flag FAF is set to 1 to store that the AF control is in continuous shooting, and then the process proceeds to step (109). On the other hand, if the current AF control is not the first AF control immediately after the end of shooting, the process proceeds to step (105), and the set state of the flag PRMV is detected. This flag PRMV is a "lens drive flag".
If the lens has not been driven in the previous AF control, the flag PRMV remains set to "0", and therefore the process proceeds to step (109) and the AF control is performed again. On the contrary, when the lens is driven last time, it is determined in the next step (106) whether or not the lens is stopped.

【0039】このステップ(106)では、図1で説明
したように、マイコンPRSがレンズ通信バッファ回路
LCM、レンズ内制御回路LPRSを介してレンズLN
Sと通信を行い、レンズの状態をモニター信号を受信し
てチェックする。このときにレンズが停止していなけれ
ば、レンズ駆動中であるのでAF制御サブルーチンを終
了させる。すなわちレンズが駆動状態にある場合は、ス
テップ(106)においてレンズが停止したか否かの判
定を続行する。これは本例では、上記レンズ駆動中のと
きにはAF制御を行わず、レンズが停止している状態で
のみAF制御を行うようにしているためであり、レンズ
停止が行われて初めて次のステップ(108)でPRM
Vを“0”にセットしてステップ(109)へ進む。
In this step (106), as described in FIG. 1, the microcomputer PRS causes the lens LN to pass through the lens communication buffer circuit LCM and the lens internal control circuit LPRS.
It communicates with S and checks the state of the lens by receiving the monitor signal. If the lens is not stopped at this time, the AF control subroutine is ended because the lens is being driven. That is, when the lens is in the driving state, the determination as to whether or not the lens has stopped is continued in step (106). This is because in the present example, the AF control is not performed while the lens is being driven, and the AF control is performed only when the lens is stopped, and the next step ( 108) in PRM
V is set to "0" and the process proceeds to step (109).

【0040】ステップ(109)ではオートフォーカス
か否かのモード判別をし、マニュアルモード(不図示の
モードスイッチにより「マニュアル」を選択)のときに
はステップ(110)へ移行する。このステップ(11
0)では、像信号入力のサブルーチン、およびステップ
(111)で焦点検出のサブルーチン、及びステップ
(112)で表示のサブルーチンを実行した後、ステッ
プ(113)でAF制御のサブルーチンを終了する(各
サブルーチンについては後述)。
At step (109), it is determined whether the mode is autofocus or not. If the mode is the manual mode ("manual" is selected by a mode switch (not shown)), the process proceeds to step (110). This step (11
In (0), the image signal input subroutine, the focus detection subroutine in step (111), and the display subroutine in step (112) are executed, and then the AF control subroutine is terminated in step (113) (each subroutine). See below).

【0041】他方、ステップ(109)においてマニュ
アルモードでない場合は、次ぎのステップ(114)で
「ワンショットモード」か否かを判別する。ワンショッ
トモードであればステップ(115)へ進み、合焦フラ
グJFの状態をみて「前回合焦状態」であったか否かを
判別する。そしてAF制御モードが「ワンショットモー
ド」で、かつ「前回合焦」ならばステップ(116)で
AF制御を終了する。即ち、ワンショットモードのとき
には、一旦合焦するとスイッチSW1がオフし再びSW
1がオンするまでは新たなAF制御は実行しない。上記
ステップ(115)にて前回合焦でなければ次のステッ
プ(117)へ移行する。ここで「ワンショットモー
ド」において上述の処理をする理由は、AFモードには
前述のAF制御のステップで説明したワンショットかサ
ーボかの判定を行なっているためである。
On the other hand, if the manual mode is not set in step (109), it is determined in the next step (114) whether the "one-shot mode" is set. If it is the one-shot mode, the process proceeds to step (115), and the state of the focus flag JF is checked to determine whether or not it is the "previous focus state". If the AF control mode is the "one-shot mode" and "focusing last time", the AF control is ended in step (116). That is, in the one-shot mode, once the focus is achieved, the switch SW1 is turned off and the switch SW1 is turned on again.
No new AF control is executed until 1 is turned on. If the previous focus is not obtained at the step (115), the process proceeds to the next step (117). The reason why the above-described processing is performed in the "one-shot mode" is that the AF mode is determined to be the one-shot or the servo described in the step of the AF control.

【0042】次ぎに、ルーチンはステップ(117)に
移行し、「像信号入力」サブルーチンを実行する。この
「像信号入力」サブルーチンでは行なわれる制御概要は
次の通りである。すなわちまずマイコンPRSがCSD
Rを“H”となし、SO信号を駆動回路SDRに伝え
る。このときのSO信号は蓄積開始命令であり、この命
令に応じて駆動回路SDRはCLR信号をラインセンサ
装置SNSに伝えCCDラインセンサの像蓄積信号をク
リアーし、その後、像に対する蓄積動作を行わせる一
方、ラインセンサ装置SNSのCDDラインセンサCC
1 ,CCD2 には撮影レンズを介して入射する像光束
がそれぞれ入射しており、各センサCCD1,CCD2
上の像位置が焦点状態に応じて与えられる。つまり、被
写体が合焦状態であれば各センサCCD1 ,CCD2
の同一位置に同一像パターンが投射されているはずであ
り、他方、検出された焦点状態が前ピンまたは後ピン状
態であれば、CCD1 ,CCD2 上の像パターンはその
ピントずれ方向及びずれ量に応じて対称的にずれた位置
に投射される。従って、上記CCD1 とCCD2 上の像
パターン間に位置ずれ量及び方向を検知することによっ
て、ピントずれ方向及びずれ量が検知できる。
Next, the routine proceeds to step (117) to execute the "image signal input" subroutine. The outline of the control performed in this "image signal input" subroutine is as follows. That is, first, the microcomputer PRS is the CSD
R is set to "H" and the SO signal is transmitted to the drive circuit SDR. The SO signal at this time is an accumulation start command, and in response to this command, the drive circuit SDR transmits the CLR signal to the line sensor device SNS to clear the image accumulation signal of the CCD line sensor, and then causes the accumulation operation for the image to be performed. On the other hand, the CDD line sensor CC of the line sensor device SNS
The image light fluxes that have entered through D 1 and CCD 2 through the taking lens respectively enter the sensors CCD 1 and CCD 2
The upper image position is given depending on the focus condition. That is, if the subject is in focus, the same image pattern should be projected at the same position on each of the sensors CCD 1 and CCD 2 , and if the detected focus state is the front focus state or the rear focus state. For example, the image patterns on CCD 1 and CCD 2 are projected at positions symmetrically displaced in accordance with the focus shift direction and the shift amount. Therefore, by detecting the position shift amount and direction between the image patterns on the CCD 1 and CCD 2 , the focus shift direction and the shift amount can be detected.

【0043】上記の如くして、焦点状態に応じた位置に
投射された像パターンを示す各CCD1 ,CCD2 で所
定時間蓄積された像信号が、駆動回路SDRからα信号
SH及びクロックφ1,φ2により、センサ装置SNS
から供給される。尚、上記像パターンの蓄積時間は、S
NS内の不図示の蓄積制御用センサAGCの出力SAG
Cに基づいて決定されることがあるが、これについては
後述する。
As described above, the image signal accumulated in the CCD 1 and CCD 2 for a predetermined time showing the image pattern projected at the position corresponding to the focus state is output from the drive circuit SDR as the α signal SH and the clock φ1, φ2 allows sensor device SNS
Supplied from The accumulation time of the image pattern is S
Output SAG of storage control sensor AGC (not shown) in NS
It may be determined based on C, which will be described later.

【0044】上記の如くして、センサ装置SNSに信号
SHおよびクロックφ1,φ2が供給されると、センサ
装置SNSの出力端から各センサCCD1 ,CCD2
各画素に蓄積された像信号を内容とする信号がOSとし
て順次時系列にて送出され、駆動回路SDR内の増幅回
路で増幅された信号AOSとしてマイコンPRSのアナ
ログ入力端子へ順次入力する。そしてマイコンPRSは
自ら出力しているクロックCKに同期して、上記信号A
OSを内部A/D変換機能にてA/D変換しその後のデ
ジタル像信号を、順次RAMの所定アドレスに格納す
る。
As described above, when the signal SH and the clocks φ1 and φ2 are supplied to the sensor device SNS, the image signal accumulated in each pixel of each sensor CCD 1 and CCD 2 is output from the output end of the sensor device SNS. A signal as a content is sequentially output as an OS in time series, and is sequentially input to an analog input terminal of the microcomputer PRS as a signal AOS amplified by an amplifier circuit in the drive circuit SDR. Then, the microcomputer PRS synchronizes with the clock CK output by itself and synchronizes with the above signal A.
The OS is A / D converted by the internal A / D conversion function, and digital image signals after that are sequentially stored in a predetermined address of the RAM.

【0045】以上の動作にてセンサCCD1 ,CCD2
上の像パターンに応じた各センサ毎の像信号が、デジタ
ル値としてマイコンPRS内のRAMに記憶されること
になる。
With the above operation, the sensors CCD 1 and CCD 2
The image signal for each sensor corresponding to the above image pattern is stored as a digital value in the RAM in the microcomputer PRS.

【0046】この「像信号入力」サブルーチンの詳細は
図4(a)に示される。すなわちまずステップ(20
1)においてこの像信号入力のサブルーチンがAF制御
ルーチンのステップ(117)でコールされると、ステ
ップ(202)でフラグAUXMOD(前回補助光モー
ドであると1にセットされるフラグ)により、前回のA
F制御で「補助光モード」か否かを判別する。補助光モ
ードでないならばステップ(207)へ移行し、補助光
モードならばステップ(203)へ進む。
Details of this "image signal input" subroutine are shown in FIG. That is, first step (20
When the image signal input subroutine is called in step (117) of the AF control routine in step 1), the flag AUXMOD (a flag set to 1 in the previous auxiliary light mode) is set in step (202). A
It is determined by the F control whether or not it is the "assist light mode". If it is not the auxiliary light mode, the process proceeds to step (207), and if it is the auxiliary light mode, the process proceeds to step (203).

【0047】ステップ(203)では、フラグAUXN
OEM(所定回数の投光がなされることにて1にセット
されるフラグ)で上記補助光の所定投光回数が完了して
いるか否かを判定する。上記所定の投光回数が完了して
いればステップ(207)へ移行するが完了していなけ
ればステップ(204)へ進む。
In step (203), the flag AUXN is set.
It is determined by OEM (a flag that is set to 1 when light is emitted a predetermined number of times) whether or not the predetermined number of times of emission of the auxiliary light has been completed. If the predetermined number of times of light projection is completed, the process proceeds to step (207), but if not completed, the process proceeds to step (204).

【0048】ステップ(204)では、フラグAUXJ
F(補助光モードで合焦時“1”にセットされるフラ
グ)で前回補助光投光下で合焦したか否かを判定する。
合焦していれば補助光を投光せずにステップ(207)
へ移行し、合焦していなければ次のステップ(205)
の補助光オンへ進む。
In step (204), the flag AUXJ is set.
It is determined by F (a flag that is set to "1" at the time of focusing in the auxiliary light mode) whether or not the previous focusing was performed under the projection of the auxiliary light.
If in focus, step (207) without projecting auxiliary light
Move to, and if not in focus, next step (205)
Go to the auxiliary light on.

【0049】このフラグAUXJFについては、サブル
ーチン「焦点検出」のところで詳述するが、このフラグ
AUXJFは補助光投光下で合焦したか否かの判定であ
り、AUXJFが“1”の場合、フラグAUXODが補
助光モードで、フラグAUXNOEMの投光回数が所定
回数以下という条件でも補助光は投光しない。
This flag AUXJF will be described in detail in the subroutine "focus detection". This flag AUXJF is a judgment as to whether or not focusing is performed under the projection of the auxiliary light. When AUXJF is "1", Even if the flag AUXOD is in the fill light mode and the number of times the flag AUXNOEM is projected is less than or equal to a predetermined number, the fill light is not projected.

【0050】ステップ(205)では補助光をオンす
る。すなわちマイコンPRSの出力端子SALの出力信
号を“1”にセットすることにより、補助光用光源AL
EDにトランジスタATRを介して電流を流し光学系A
LNSから補助光の発光を開始させる。
In step (205), the auxiliary light is turned on. That is, by setting the output signal of the output terminal SAL of the microcomputer PRS to "1", the auxiliary light source AL
A current is passed through the transistor ATR to the ED and the optical system A
Light emission of auxiliary light is started from the LNS.

【0051】ステップ(206)では補助光投光カウン
タAUXCNTを1つカウントアップする。
In step (206), the auxiliary light projection counter AUXCNT is incremented by one.

【0052】ステップ(207)では焦点検出用ライン
センサSNS装置に光像の蓄積を開始させる。マイコン
PRSがセンサ駆動回路SDRに「蓄積開始コマンド」
を送ると、該センサ駆動回路SDRは、上記センサSN
Sの光電変換素子部へのクリア信号CLRを“0”にし
て電荷の蓄積を開始させる。
In step (207), the focus detection line sensor SNS device is caused to start accumulating an optical image. The microcomputer PRS sends a "storage start command" to the sensor drive circuit SDR.
Is sent, the sensor drive circuit SDR causes the sensor SN
The clear signal CLR to the photoelectric conversion element portion of S is set to "0" to start the charge accumulation.

【0053】ステップ(208)では蓄積時間カウンタ
INTCNTを初期値0に初期セットする。
In step (208), the accumulation time counter INTCNT is initially set to an initial value 0.

【0054】ステップ(209)では蓄積時間タイマの
1msタイマカウンタをリセットする。該カウンタはマ
イコンPRSが有するタイマ機能を用いている。
In step (209), the 1 ms timer counter of the accumulation time timer is reset. The counter uses the timer function of the microcomputer PRS.

【0055】ステップ(210)では、上記センサが蓄
積を終了したか否かを判定する。すなわちセンサ駆動回
路SDRからの信号INTENDが“1”になっている
か否かを見る。該センサ駆動回路SDRは前記ラインセ
ンサSNSの蓄積開始と同時に前記信号INTENDを
“0”にし、前記センサSNS内の蓄積制御用センサA
GCからの出力SAGC信号をモニタして、該SAGC
信号が所定レベルになると、前記センサ駆動回路SDR
からの信号INTENDを“1”にセットし、同時に前
記センサ駆動回路SDRからの電荷転送信号SHを所定
時間“H”にして、センサSNS内の光電変換素子部の
電荷をCCD部に転送させるように制御する。
In step (210), it is determined whether or not the sensor has completed the accumulation. That is, it is checked whether or not the signal INTEND from the sensor drive circuit SDR is "1". The sensor drive circuit SDR sets the signal INTEND to "0" at the same time when the line sensor SNS starts to store the sensor A for storage control in the sensor SNS.
By monitoring the output SAGC signal from the GC,
When the signal reaches a predetermined level, the sensor drive circuit SDR
The signal INTEND from the sensor drive circuit SDR is set to "1", and at the same time, the charge transfer signal SH from the sensor drive circuit SDR is set to "H" for a predetermined time so that the charge of the photoelectric conversion element section in the sensor SNS is transferred to the CCD section. To control.

【0056】ここで、上記蓄積が終了ならばステップ
(215)へ移行し、まだ蓄積が終了していなければス
テップ(211)へ進む。
If the accumulation is completed, the process proceeds to step (215). If the accumulation is not completed yet, the process proceeds to step (211).

【0057】ステップ(211)では、前記1msタイ
マが蓄積時間1msに達したか否かを判定する。1ms
に達していなければ再びステップ(210)へ戻り、既
に、1msに達していたら次のステップ(212)で蓄
積時間カウンタINTCNTを1つカウントアップす
る。
In step (211), it is determined whether or not the 1 ms timer has reached the accumulation time of 1 ms. 1 ms
If it has not reached, the process returns to step (210) again, and if it has already reached 1 ms, the accumulation time counter INTCNT is incremented by 1 at the next step (212).

【0058】ステップ(213)では、カウンタINT
CNTの内容を所定数MAXINTと比較する。MAX
INTは1ms単位で表わされる最長蓄積時間であり、
前記INTCNTがMAXINT未満ならばステップ
(209)へ戻り、再び蓄積終了を待つことになる。こ
こでINTCNTが前記最長蓄積時間MAXINTに一
致すると、次のステップ(214)で強制的に蓄積を終
了させる。
In step (213), the counter INT
The content of CNT is compared with a predetermined number MAXINT. MAX
INT is the longest accumulation time expressed in 1ms units,
If INTCNT is less than MAXINT, the process returns to step (209) to wait for the end of accumulation again. If INTCNT coincides with the longest accumulation time MAXINT, the accumulation is forcibly ended in the next step (214).

【0059】この蓄積終了はマイコンPRSからセンサ
駆動回路SDRへ「蓄積終了コマンド」を送出すること
で完了される。前記センサ駆動回路SDRはマイコンP
RSから「蓄積終了コマンド」が送られると、前記電荷
転送信号SHを所定時間“H”にして光電変換部の電荷
をCCD部へ転送させる。
This end of storage is completed by sending a "storage end command" from the microcomputer PRS to the sensor drive circuit SDR. The sensor drive circuit SDR is a microcomputer P
When the "storage end command" is sent from RS, the charge transfer signal SH is set to "H" for a predetermined time to transfer the charges of the photoelectric conversion unit to the CCD unit.

【0060】ステップ(215)ではフラグAUXMO
Dで補助光モードか否かを判定する。該フラグAUXM
ODが補助光モードならばステップ(216)で補助光
の投光をオフにする。即ちマイコンPRSの出力端子S
ALの信号を“0”にして投光光源ALEDを不作動に
する。尚ステップ(216)については、補助光モード
でない場合にこのステップを実行しても何ら悪影響がな
いのでステップ(215)は省略しても差し支えない。
In step (215), the flag AUXMO is set.
In D, it is determined whether or not the auxiliary light mode is set. The flag AUXM
If the OD is the auxiliary light mode, the emission of the auxiliary light is turned off in step (216). That is, the output terminal S of the microcomputer PRS
The AL signal is set to "0" to deactivate the light source ALED. Regarding step (216), step (215) may be omitted because there is no adverse effect even if this step is executed when the mode is not the fill light mode.

【0061】ステップ(217)では、蓄積時間カウン
タINTCNTと所定の定数AUXINTの比較を行
う。このAUXINTは、蓄積時間に相応して表わされ
る低輝度蓄積時間であり、INTCNT≧AUXINT
のときにはステップ(219)で低輝度フラグLLFL
Gを“1”にセットし、上記INTCNTがAUXIN
T未満のときには、ステップ(218)で上記低輝度フ
ラグLLFLGを“0”にセットする。
In step (217), the accumulation time counter INTCNT is compared with a predetermined constant AUXINT. This AUXINT is a low-brightness accumulation time expressed in accordance with the accumulation time, and INTCNT ≧ AUXINT
If it is, the low brightness flag LLFL is determined in step (219).
G is set to “1” and INTCNT is AUXIN
When it is less than T, the low luminance flag LLFLG is set to "0" in step (218).

【0062】ステップ(220)では、前記ラインセン
サSNSの像信号OSを駆動回路SDR内で増幅した信
号AOSのA−D変換と、これをマイコンPRS内のR
AMの所定アドレス内に格納する操作を行う。
In step (220), the A / D conversion of the signal AOS obtained by amplifying the image signal OS of the line sensor SNS in the drive circuit SDR and the R / D conversion in the microcomputer PRS are performed.
The operation of storing in the predetermined address of AM is performed.

【0063】ステップ(221)では、前記ステップ
(220)で所定アドレス内のRAMに格納した像信号
のコントラスト情報を抽出して、これを不図示のカウン
タにコントラスト情報CONとして格納する。
In step (221), the contrast information of the image signal stored in the RAM within the predetermined address in step (220) is extracted and stored in a counter (not shown) as contrast information CON.

【0064】ステップ(222)では、コントラスト情
報CONの内容を所定数LCNUMと比較し、前記CO
NがLCNUM未満ならば、今回の像信号が焦点検出不
可能となる低コントラスト状態であると判断してステッ
プ(223)へ移行し、低コントラスト状態を示すフラ
グLCONを“1”にセットする。
In step (222), the content of the contrast information CON is compared with a predetermined number LCNUM, and the CO
If N is less than LCNUM, it is determined that the current image signal is in the low contrast state where focus detection is impossible, and the process proceeds to step (223), and the flag LCON indicating the low contrast state is set to "1".

【0065】他方、そうでなければステップ(224)
に移行し、コントラスト情報CONの内容を前記所定数
LCNUMの4倍と比較する。これは今回の像信号のコ
ントラストが比較的低い状態であるかどうかの判断を行
うためである。本実施例では、比較する値として低コン
トラスト判断しきい値の4倍を用いているが特にこれに
限定されるものではない。前記CONが前記所定数LC
NUMの4倍未満ならば、ステップ(225)に移行し
て補助光源の使用を薦めるコントラスト状態を示すフラ
グNLCONを“1”にセットし、ステップ(227)
に移行する。尚、前記CONが前記LCNUM未満の場
合もこのフラグはセットされる。
On the other hand, if not, step (224).
Then, the content of the contrast information CON is compared with four times the predetermined number LCNUM. This is to determine whether or not the contrast of the image signal this time is relatively low. In this embodiment, four times the low contrast judgment threshold value is used as a comparison value, but the value is not particularly limited to this. The CON is the predetermined number LC
If it is less than four times NUM, the process proceeds to step (225), and the flag NLCON indicating the contrast state that recommends the use of the auxiliary light source is set to "1", and step (227).
Move to. This flag is also set when the CON is less than the LCNUM.

【0066】ステップ(226)では、今回の像信号の
コントラストが、精度の良い焦点検出に十分な量だけあ
るとして、前記LCON,NLCONのフラグをそれぞ
れ“0”にセットし、ステップ(227)にてメインル
ーチン、すなわちステップ(118)へ戻る。
In step (226), it is assumed that the contrast of the image signal of this time is an amount sufficient for accurate focus detection, the flags LCON and NLCON are set to "0", respectively, and step (227) is executed. Then, the procedure returns to the main routine, that is, step (118).

【0067】像信号入力のサブルーチンの実行を終了し
た後の動作をメインルーチンに戻って説明すると、ステ
ップ(118)では、フラグFAFにて連続撮影モード
か否かを判定する。
The operation after the execution of the image signal input subroutine has been completed will be described by returning to the main routine. In step (118), it is determined by the flag FAF whether or not the continuous photographing mode is set.

【0068】フラグFAFが1、即ち連続撮影モードの
ときは次のステップ(123)へ移行し、0のときはス
テップ(119)へ進む。ステップ(119)以降は補
助光に関するフローを示しており、前記フラグFAFが
1のときはステップ(123)へ移行することにより、
連続撮影には補助光に関する処理は行わない。
When the flag FAF is 1, that is, in the continuous photographing mode, the process proceeds to the next step (123), and when it is 0, the process proceeds to step (119). The step (119) and subsequent steps show the flow of auxiliary light. When the flag FAF is 1, the process proceeds to step (123),
No processing related to auxiliary light is performed for continuous shooting.

【0069】ステップ(119)ではフラグAUXMO
Dにて補助光モードか否かを判定する。
In step (119), the flag AUXMO is set.
At D, it is determined whether or not the auxiliary light mode is set.

【0070】前回のAF制御で補助光モードであればフ
ラグAUXMODが1であり、ステップ(130)へ移
行する。フラグAUXMODが0のときはステップ(1
20)へ進み、フラグLLFLGにより低輝度か否かを
判断する。このフラグLLFLGは前述したサブルーチ
ン「像信号入力」内のステップ(218),(219)
で設定されるフラグであり、1即ち低輝度のときはステ
ップ(121)へ移行し、低輝度でなければステップ
(123)へ移行する。
If it is the auxiliary light mode in the previous AF control, the flag AUXMOD is 1, and the routine proceeds to step (130). When the flag AUXMOD is 0, step (1
The process proceeds to step 20), and it is determined whether the brightness is low or not by the flag LLFLG. This flag LLFLG is set in steps (218) and (219) in the above-mentioned subroutine "image signal input".
The flag is set in step 1. When the value is 1, that is, the brightness is low, the process proceeds to step (121).

【0071】ステップ(121)では前述したサブルー
チン「像信号入力」内のステップ(223)で設定され
るフラグLCONにより焦点検出可能状態かどうかを判
断する。このフラグLCONが1ならば、今回は低輝度
かつ低コントラスト状態なので補助光源を用いた焦点検
出動作をするためにステップ(130)へ移行し、0な
らば、続くステップ(122)で今回補助光源を用いた
方が良いコントラスト状態かどうかをサブルーチン「像
信号入力」内のステップ(225)で設定されるフラグ
NLCONにより同様に判断する。NLCONが1なら
ば、今回は低輝度でコントラストも比較的低い状態なの
で、補助光源を用いた焦点検出動作を行なうために、ス
テップ(130)に移行する。0ならばステップ(12
3)へ移行する。
In step (121), it is determined whether or not the focus can be detected by the flag LCON set in step (223) in the above-mentioned "image signal input" subroutine. If the flag LCON is 1, the state is low brightness and low contrast this time, so the process proceeds to step (130) to perform the focus detection operation using the auxiliary light source. If the flag LCON is 0, the auxiliary light source is currently selected in step (122). It is similarly determined whether or not the use of the contrast condition is better by the flag NLCON set in step (225) in the "image signal input" subroutine. If NLCON is 1, this time, the brightness is low and the contrast is relatively low. Therefore, the process proceeds to step (130) to perform the focus detection operation using the auxiliary light source. If 0, step (12
Go to 3).

【0072】ステップ(130)〜(137)は低輝度
でコントラストも低い状態での補助光制御フローであ
る。
Steps (130) to (137) are the auxiliary light control flow in the state where the brightness is low and the contrast is low.

【0073】まずステップ(130)では補助光ユニッ
トがカメラに装着されているか否かを判断する。ここで
は上記補助光ユニットがカメラに装着されることにより
オンとなる不図示のスイッチの状態を検知することによ
り判定する。
First, in step (130), it is determined whether or not the auxiliary light unit is attached to the camera. Here, the determination is made by detecting the state of a switch (not shown) that is turned on when the auxiliary light unit is attached to the camera.

【0074】上記補助光ユニットがカメラに装着されて
いないときには、ステップ(123)へ移行し、AUX
MODに“O”をセットし補助光モードを解除する。
When the auxiliary light unit is not attached to the camera, the process proceeds to step (123) and the AUX
Set "O" to MOD to cancel the auxiliary light mode.

【0075】補助光ユニットが装着されているときには
ステップ(131)でAUXMODに“1”をセットし
補助光モードを設定する。なお本例では前記ステップ
(119)においてフラグAUXMODが補助光モード
のときにも前記ステップ(131)を実行するようにな
っているが、これは本例のプログラムシーケンス進行の
都合上行っている。
When the auxiliary light unit is mounted, in step (131), AUXMOD is set to "1" to set the auxiliary light mode. In this example, the step (131) is executed even when the flag AUXMOD is in the auxiliary light mode in the step (119), but this is done for the sake of the progress of the program sequence of this example.

【0076】ステップ(132)では補助光投光カウン
タAUXCNTが“0”にセットされているか否か判定
する。このカウンタAUXCNTは前述した「像信号入
力」サブルーチン内のステップ(206)でカウントさ
れる変数であり、補助光投光下で光電変換素子に像信号
の蓄積が行われるとカウント数を1つカウントアップす
る。尚、このカウンタAUXCNTは、スイッチSW1
がオフのときには図2に示すフローチャートのステップ
(005)でクリアされており、又、連続撮影モードの
AF制御においては、図3のフローチャートに示すステ
ップ(103)でクリアされている。従って、カウンタ
AUXCNT=“0”ということは、シーケンス進行上
今回初めて補助光モードであるということを表わし、今
回初めての補助光モードであるときにはステップ(13
3)へ進み、今回の像信号入力によるAF制御を終了す
る。即ち、前記ステップ(117)にて入力した像信号
は破棄して、次回のAF制御で補助光投光下において、
新たな像信号を入力するようになされる。従ってこの場
合には、ステップ(117)で入力した像信号は輝度を
判定するためのみに使用されたとみることも可能であ
る。
In step (132), it is determined whether the auxiliary light projection counter AUXCNT is set to "0". This counter AUXCNT is a variable counted in step (206) in the above-mentioned "image signal input" subroutine, and counts one when the image signal is accumulated in the photoelectric conversion element under the projection of the auxiliary light. Up. The counter AUXCNT is a switch SW1.
When is off, it is cleared in step (005) of the flowchart shown in FIG. 2, and in AF control in the continuous shooting mode, it is cleared in step (103) shown in the flowchart of FIG. Therefore, the counter AUXCNT = "0" means that the auxiliary light mode is the first time in the sequence progress, and when the first auxiliary light mode is the current time, the step (13
Proceed to 3) to end the AF control by the image signal input this time. That is, the image signal input in the step (117) is discarded, and the next AF control is performed under the auxiliary light projection.
A new image signal is input. Therefore, in this case, it can be considered that the image signal input in step (117) was used only for determining the brightness.

【0077】一方カウンタAUXCNTが“0”でなけ
れば既に補助光モードに入っているので、ステップ(1
34)でカウンタAUXCNTを所定の定数AUXNU
Mを比較する。このAUXNUMは補助光の投光制限回
数であり、このカウンタAUXCNTが投光制限回数A
UXNUM未満のときには、ステップ(124)に移行
し、「焦点検出」のサブルーチンを実行する。前記カウ
ンタAUXCNTがAUXCNT≧AUXNUMのとき
には(但し、実際のシーケンス上ではAUXCNT>A
UXNUMは生じない)ステップ(135)へ移行す
る。
On the other hand, if the counter AUXCNT is not "0", the auxiliary light mode has already been entered.
In step 34), the counter AUXCNT is set to a predetermined constant AUXNU.
Compare M. This AUXNUM is the light emission limit number of auxiliary light, and this counter AUXCNT is the light emission limit number A.
When it is less than UXNUM, the process proceeds to step (124) and the "focus detection" subroutine is executed. When the counter AUXCNT is AUXCNT ≧ AUXNUM (however, in the actual sequence, AUXCNT> A
No UXNUM occurs) Go to step (135).

【0078】ステップ(135)では、フラグAUXN
OEMで補助光の投光回数が完了したか否かを判定す
る。フラグAUXNOEMで補助光の投光回数が既に前
記所定の定数AUXNUM回投光されたことが判定され
ると、補助光の投光回数が完了となり、それ以上補助光
を投光しないようにする。即ち前述の「像信号入力」の
サブルーチンの中でフラグAUXMODが1で補助光モ
ードでも、フラグAUXNOEMが1で補助光投光回数
が完了しているときには、像信号蓄積の際はもはや補助
光は投光しない。
At step (135), the flag AUXN is set.
The OEM determines whether or not the number of times the auxiliary light has been projected is completed. When it is determined by the flag AUXNOEM that the number of times of projecting the auxiliary light has already been projected by the predetermined constant AUXNUM, the number of times of projecting the auxiliary light is completed, and no more of the auxiliary light is projected. That is, even when the flag AUXMOD is 1 and the auxiliary light mode is set in the above-mentioned "image signal input" subroutine, when the flag AUXNOEM is 1 and the auxiliary light projection number is completed, the auxiliary light is no longer stored when the image signal is accumulated. Do not project light.

【0079】前記ステップ(135)でフラグAUXN
OEMで投光回数が完了であればステップ(136)へ
移行する。
In step (135), the flag AUXN is set.
If the number of times of light emission is completed by OEM, the process proceeds to step (136).

【0080】ステップ(136)ではフラグLLFLG
で低輝度か否かを判定する。このフラグLLFLGは前
に述べたように「像信号入力」サブルーチンで設定され
る低輝度フラグであり、フラグAUXNOEMで投光回
数が完了していて、フラグLLFLGで輝度を判定する
ということは、「補助光モード下で既に所定回数の補助
光の投光を終了して、もはや投光しない状態」での輝度
を判定することである。ここでフラグLLFLGが低輝
度でないときには、ステップ(123)へ移行し、フラ
グAUXMODに“0”をセットし補助光モードを解除
し次のステップ(124)へ進む。ここでフラグLLF
LGが低輝度でないと判定するということは、上述の状
態で輝度が上昇すると補助光モードが解除されて再び通
常モードとなり、通常モードでのAF制御を再開するこ
とになる。
At step (136), the flag LLFLG is set.
Determines whether the brightness is low. This flag LLFLG is a low brightness flag set by the "image signal input" subroutine as described above, and the fact that the number of times of light projection is completed by the flag AUXNOEM and the brightness is judged by the flag LLFLG means " In the auxiliary light mode, the brightness is determined in a state in which the auxiliary light has already been projected a predetermined number of times and is no longer projected. Here, when the flag LLFLG is not low in brightness, the process proceeds to step (123), the flag AUXMOD is set to "0" to cancel the auxiliary light mode, and the process proceeds to the next step (124). Here the flag LLF
Determining that the LG does not have low brightness means that the auxiliary light mode is canceled and the normal mode is resumed when the brightness increases in the above-described state, and the AF control in the normal mode is restarted.

【0081】上記ステップ(123)へ移行してくる場
合は、ステップ(118)でフラグFAFが1で連続撮
影中(補助光投光なし)と判定したとき、及びステップ
(119)でフラグAUXMODが補助光モードでない
ときに、次のステップ(120)でフラグLLFLGが
“0”で低輝度でないと判定したときである。即ちAF
制御が補助光モードでもなく、被写体輝度が低輝度でも
ないというときには上記ステップ(123)へ移行する
ものである。
When the process shifts to the step (123), when the flag FAF is 1 in the step (118) and it is determined that the continuous photographing is being performed (no auxiliary light is projected), and the flag AUXMOD is set in the step (119). This is when it is determined in the next step (120) that the flag LLFLG is "0" and the brightness is not low when the mode is not the fill light mode. That is AF
If the control is not in the auxiliary light mode and the subject brightness is not low, the process proceeds to step (123).

【0082】一方上記フラグLLFLGが1で低輝度で
あると判別するとそのまま次のステップ(124)の
「焦点検出」へ移行する。
On the other hand, when it is determined that the flag LLFLG is 1 and the brightness is low, the process directly shifts to the "focus detection" of the next step (124).

【0083】上記フローにおいて、ステップ(135)
でフラグAUXNOEMが補助光の投光回数完了のとき
のみフラグLLFLGで低輝度か否かを判定している。
この理由は補助光投光下においては、被写体の輝度を検
知する際、補助光の影響による被写体輝度の上昇が生じ
真の被写体輝度を判定することにはならないため、前記
フラグAUXNOEMが“0”で、補助光の投光回数が
所定以下のときには低輝度か否かの判定はしないためで
ある。
In the above flow, step (135)
Thus, only when the flag AUXNOEM indicates that the number of times of projecting the auxiliary light is completed, the flag LLFLG determines whether or not the brightness is low.
The reason for this is that when the brightness of the object is detected under the projection of the auxiliary light, the object brightness is increased due to the influence of the auxiliary light, and the true object brightness is not judged. Therefore, the flag AUXNOEM is set to "0". This is because it is not determined whether or not the brightness is low when the number of times the auxiliary light is projected is less than or equal to a predetermined value.

【0084】次にステップ(124)において「焦点検
出」サブルーチンがコールされ実行される。この「焦点
検出」サブルーチンの内容を、図4(b)を用いて説明
する。
Next, in step (124), the "focus detection" subroutine is called and executed. The contents of this "focus detection" subroutine will be described with reference to FIG.

【0085】まずステップ(303)において、フラグ
AUXJFにて、過去において補助光投光下で合焦した
か否かを判定する。前記補助光投光下で合焦していたと
きには、ステップ(304)へ移行する。
First, at step (303), it is determined by a flag AUXJF whether or not focusing has been performed under the projection of the auxiliary light in the past. When the subject is in focus under the projection of the auxiliary light, the process proceeds to step (304).

【0086】ステップ(304)では、フラグLLFL
Gの状態検知を行い、補助光を投光していない状態での
輝度が低輝度か否かを判定する。ここでフラグLLFL
Gが1で低輝度であるときには、次のステップ(30
5)でAF制御を終了する。一方前記フラグLLFLG
が0で低輝度でないときには被写体輝度が上昇したこと
により、ステップ(306)に進み、補助光モードフラ
グAUXMODおよび投光回数完了フラグAUXNOE
M、合焦フラグAUXJFを“0”にクリアし、更に、
補助光カウンタフラグAUXCNTを“0”にクリアす
る。
At step (304), the flag LLFL is set.
The G state is detected, and it is determined whether the luminance in the state where the auxiliary light is not projected is low. Here the flag LLFL
When G is 1 and the brightness is low, the next step (30
The AF control is ended in 5). On the other hand, the flag LLFLG
When the brightness is 0 and the brightness is not low, the brightness of the subject has increased, and therefore the process proceeds to step (306), and the auxiliary light mode flag AUXMOD and the projection count completion flag AUXNOE.
M, clear the focus flag AUXJF to "0", and
The auxiliary light counter flag AUXCNT is cleared to "0".

【0087】ステップ(307)では、前述した「像信
号入力」サブルーチンからの像信号に基づき撮影レンズ
のデフォーカス量DEFの計算を実行する。
In step (307), the defocus amount DEF of the photographing lens is calculated based on the image signal from the "image signal input" subroutine described above.

【0088】ここでは前述の「像信号入力」サブルーチ
ンにて求められたセンサーCCD1とCCD2 上の像パ
ターンに応じたデジタル値を基に、合焦までのずれ量並
びにずれ方向をデフォーカス量DEFとして算出する。
このデフォーカス量の具体的な算出方法は本願の目的と
は直接関係がないのでその詳細な説明は省略するが、上
記の様にセンサCCD1 とCCD2 上の像パターンの一
致度が合焦状態によって決定されるので、パターンに対
応した上記各センサのデジタル値と比較処理し、そのデ
ータの一致度を求めることにより、合焦状態からのずれ
量及びずれ方向、即ちデフォーカス量DEFを求めるも
のである。
Here, on the basis of the digital values corresponding to the image patterns on the sensors CCD 1 and CCD 2 obtained in the above-mentioned "image signal input" subroutine, the shift amount up to focusing and the shift direction are defocused amounts. Calculate as DEF.
The specific method of calculating the defocus amount is not directly related to the purpose of the present application, and therefore its detailed description is omitted, but as described above, the degree of coincidence between the image patterns on the sensors CCD 1 and CCD 2 is in focus. Since it is determined by the state, the deviation amount and the deviation direction from the focused state, that is, the defocus amount DEF is obtained by comparing the digital value of each sensor corresponding to the pattern and obtaining the degree of coincidence of the data. It is a thing.

【0089】次ぎにステップ(308)において、前述
したデフォーカス量DEFの計算結果に基づき行なう、
本例の特徴の一つである「信頼性判定」サブルーチンを
実行する。
Next, in step (308), the calculation is performed based on the calculation result of the defocus amount DEF described above.
The "reliability determination" subroutine, which is one of the features of this example, is executed.

【0090】この「信頼性判定」サブルーチンの内容は
図4(c)で説明される。まずステップ(501)で、
像の一致度を示す信頼性フラグFNC(1,2,3)F
LGをそれぞれ“0”にクリアし、次にステップ(50
2)で像の信頼性計算を行なう。なおここで信頼性フラ
グFNC FLGが1,2,3の三つあるのは、本例に
おいては、信頼性の判定を三つのしきい値を判定基準に
用いて4段階のランク付けを行なうように判定している
ためである。すなわち信頼性フラグFNC(1)FLG
は、最も大きなしきい値によって判定した場合の結果で
与えられるフラグであり、これが“0”であることは、
検出された像の信頼性は最も高いことを示している。ま
た信頼性フラグFNC(2)FLGは中間的なしきい値
で判定した場合の結果で与えられるフラグであり、信頼
性フラグFNC(3)FLGは最も小さなしきい値で判
定した場合の結果で与えられるフラグである。本例にお
ける上記ステップ(502)で行なわれる像の信頼性計
算の方法は次ぎのようにして行なわれる。まず2像の相
対的位置変位量とデフォーカス量が比例することを利用
して、像情報をデフォーカス量DEFに変換し、合焦点
までの撮影レンズ駆動量を算出するのは上述の通りであ
る。
The contents of this "reliability determination" subroutine will be described with reference to FIG. First, in step (501),
Reliability flag FNC (1,2,3) F indicating the degree of coincidence of images
Clear each LG to "0" and then proceed to step (50
In 2), the image reliability is calculated. Note that here, the reliability flag FNC There are three FLGs of 1, 2, and 3 because in this example, the reliability is determined by using three threshold values as the determination criteria and performing four-step ranking. is there. That is, the reliability flag FNC (1) FLG
Is a flag that is given as a result when the judgment is made with the largest threshold value, and that it is “0” means that
It shows that the detected image has the highest reliability. Further, the reliability flag FNC (2) FLG is a flag given as a result of judgment with an intermediate threshold value, and the reliability flag FNC (3) FLG is given as a result of judgment with the smallest threshold value. It is a flag that is set. The image reliability calculation method performed in the above step (502) in this example is performed as follows. First, by utilizing the fact that the relative position displacement amount of two images and the defocus amount are proportional to each other, the image information is converted into the defocus amount DEF and the photographing lens drive amount up to the in-focus point is calculated as described above. is there.

【0091】一方、像パターンの一致程度(すなわち焦
点検出光学系により結像させた一対の像がどれだけ似て
いるか、更には一致しているかの程度)は、次のように
して求める。すなわちまず各CCDによりサンプリング
された第1像(図5では像A)及び第2像(図5では像
B)の各々の像の強度データから次式(1)の計算をす
る。
On the other hand, the degree of coincidence of the image patterns (that is, the degree of similarity between the pair of images formed by the focus detection optical system and the degree of coincidence) is determined as follows. That is, first, the following formula (1) is calculated from the intensity data of each of the first image (image A in FIG. 5) and the second image (image B in FIG. 5) sampled by each CCD.

【0092】[0092]

【数1】 [Equation 1]

【0093】この式(1)のUo の値は、図5に示して
いるように2像の一致性が良いほど小さく(図5の斜線
部がU。値となる)、合焦時には最小となる。
As shown in FIG. 5, the value of U o in this equation (1) is smaller as the coincidence between the two images is better (the shaded area in FIG. 5 is the U. value), and is the minimum when focusing. Becomes

【0094】ここで、像Bに対し、像Aのサンプリング
データを該像Bに相対的にp画素ずらせた(シフトさせ
た)計算を、上記式(1)のU。値を求めるのと同様に
して行ない、それを次式(2)のUp 値とする。
Here, the calculation in which the sampling data of the image A is shifted (shifted) by p pixels relative to the image B with respect to the image B is represented by U in the above equation (1). Conducted in the same manner as obtaining a value to it a U p value of the following equation (2).

【0095】[0095]

【数2】 [Equation 2]

【0096】像が最もよく一致するシフト量で、上記U
p は最小となるはずであるから、そのようなシフト量p
をみつけることにより、2像の相対的位置変位量を求め
ることができる(図6参照)。
At the shift amount at which the images best match, the above U
Since p should be the minimum, such a shift amount p
The relative position displacement amount of the two images can be obtained by locating (see FIG. 6).

【0097】但し、1画素のシフトに対応するデフォー
カス量の変化は1mmくらいあり、このままでは焦点検
出には使用できない。そこで図6のUp 値の最小付近か
ら、補間的に1画素最小寸法より細かい像の変位量
(h)を演算して求める。
However, the change of the defocus amount corresponding to the shift of one pixel is about 1 mm, and it cannot be used for focus detection as it is. Therefore, the displacement amount (h) of the image finer than the minimum size of one pixel is calculated by interpolation from the vicinity of the minimum U p value in FIG.

【0098】そしてこの演算により求められた像変位量
(h)に基づいて、検出像の信頼性データFNCLVL
を例えば次式(3)により算出する。
Then, based on the image displacement amount (h) obtained by this calculation, the reliability data FNCLVL of the detected image is obtained.
Is calculated by the following equation (3), for example.

【0099】 FNCLVL=h×32/MAXDER …(3) このようにして検出像の信頼性データFNCLVLを求
めた次には、ステップ(503)に移行し、上述した処
理で求められたデフォーカス量DEFが大デフォーカス
量であるかを予め定めた一定値LRG PRDCTとを
比較して、DEF≧LRG PRDCTの時は、ステッ
プ(504)に進んでLRGPRDFフラグを“1”に
セットし、他方、DEF<LRG PRDCTの時はそ
のまま(つまりLRGPRDFフラグは“0”で)ステ
ップ(505)に移行する。
FNCLVL = h × 32 / MAXDER (3) In this way, the reliability data FNCLVL of the detected image is obtained. Next, the process proceeds to step (503), and the defocus amount obtained by the above-described processing. A constant value LRG that determines in advance whether DEF is a large defocus amount Compared with PRDCT, DEF ≧ LRG In the case of PRDCT, the process proceeds to step (504) to set the LRGPRDF flag to "1", while DEF <LRG In the case of PRDCT, that is, as it is (that is, the LRGPRDF flag is "0"), the process proceeds to step (505).

【0100】そしてステップ(505)では、上記の判
断結果に従い、本例の特徴的な加重要件である、この検
出像の信頼性データに基づく検出像の信頼性判定を行な
うための条件設定を定める処理(重み付け)を行なう。
ここで行なわれる条件設定により、フラグLRGPRD
Fが“0”の時(すなわち検出されたデフォーカス量が
小である時)は信頼性しきい値FNC NORの重み係
数Aを「1」にし、反対に上記フラグLRGPRDFが
“1”の時(すなわち検出されたデフォーカス量が大で
ある時)は信頼性しきい値(FNC NOR)の重み係
数Aを2/3として保存する。
Then, in step (505), the condition setting for determining the reliability of the detected image based on the reliability data of the detected image, which is a characteristic important point of the present example, is determined according to the above determination result. Perform processing (weighting).
Depending on the condition setting performed here, the flag LRGPRD
When F is "0" (that is, when the detected defocus amount is small), the reliability threshold value FNC The weighting factor A of NOR is set to "1", and conversely when the flag LRGPRDF is "1" (that is, when the detected defocus amount is large), the reliability threshold value (FNC The NOR weighting coefficient A is saved as 2/3.

【0101】次にステップ(506)で信頼性比較1を
行なう。すなわち上記ステップ(502)で求めた検出
像の信頼性データFNCLVLと、上記係数を掛けた信
頼性しきい値A×FNC(1)NORとを比較して、F
NCLVL≦A×FNC(1)NORの時は一対の検出
像の一致度が十分に高い(最良ランク)から信頼性が高
いと判定されて信頼性フラグFNC(1)FLGを
“0”にし、ステップ(512)に進む。反対にFNC
LVL>A×FNC(1)NORの時は、信頼性が十分
に高いとは言えないので、ステップ(507)で信頼性
フラグFNC(1)FLGを“1”にセットし、ステッ
プ(508)に進む。
Next, in step (506), reliability comparison 1 is performed. That is, the reliability data FNCLVL of the detected image obtained in the step (502) is compared with the reliability threshold value A × FNC (1) NOR multiplied by the above coefficient to obtain F
When NCLVL ≦ A × FNC (1) NOR, the reliability flag FNC (1) FLG is set to “0” because the reliability of the pair of detected images is sufficiently high (the best rank) and the reliability is determined to be high. Proceed to step (512). On the contrary, FNC
When LVL> A × FNC (1) NOR, the reliability cannot be said to be sufficiently high, so the reliability flag FNC (1) FLG is set to “1” in step (507), and step (508) Proceed to.

【0102】ステップ(508)〜(511)では、上
記信頼性比較1と同様の方法で信頼性比較2,3を行な
い、検出像の信頼性データFNCLVLのランク付けを
行なって、信頼性フラグFNC(2)FLG及び信頼性
フラグFNC(3)FLGを“1”(つまり該当の信頼
性は満足しない)又は“0”(つまり該当の信頼性は満
足する)をセットする。
In steps (508) to (511), reliability comparisons 2 and 3 are performed in the same manner as the reliability comparison 1 described above, the reliability data FNCLVL of the detected image is ranked, and the reliability flag FNC is determined. (2) FLG and reliability flag FNC (3) FLG is set to "1" (that is, the corresponding reliability is not satisfied) or "0" (that is, the corresponding reliability is satisfied).

【0103】そして以上の信頼性判定においての計算に
使用される係数Aが、上述の通り検出デフォーカス量が
大である場合に本例では「2/3」が用いられ、検出デ
フォーカス量が小である場合には「1」が用いられるの
である。但し上記「2/3」の係数の値は、使用する焦
点検出光学系の特性等々によって必ずしもこの値に限定
されないことは当然である。
As the coefficient A used for the calculation in the above reliability judgment, "2/3" is used in this example when the detected defocus amount is large as described above, and the detected defocus amount is If it is small, "1" is used. However, it goes without saying that the value of the coefficient "2/3" is not necessarily limited to this value depending on the characteristics of the focus detection optical system used and the like.

【0104】以上の信頼性判定の処理の後、同ルーチン
はステップ(512)に移行し、検出像のコントラスト
判定を行ない、被写体のコントラストが十分にあると判
定された時は図4(b)のステップ(309)にリター
ンし、他方、被写体のコントラストが不足と判断された
時は、ステップ(513)で上記した各信頼性フラグF
NC(1,2,3)FLGを全て“1”(つまり該当の
信頼性は満足しない)にセットすると共に、低コントラ
ストLFLGを“1”にセットした後、図4(b)の
ステップ(309)にリターンする。
After the above reliability determination processing, the routine proceeds to step (512) to perform contrast determination of the detected image, and when it is determined that the contrast of the subject is sufficient, FIG. When it is determined that the contrast of the subject is insufficient, the reliability flags F described above in step (513) are returned to step (309).
After setting NC (1,2,3) FLG to all "1" (that is, the corresponding reliability is not satisfied) and setting low contrast L L FLG to "1", the step of FIG. Return to (309).

【0105】以上によって検出像の「信頼性判定」サブ
ルーチンの処理が終了する。
With the above, the processing of the "reliability determination" subroutine of the detected image is completed.

【0106】次に、図4(b)の「焦点検出」サブルー
チンに戻って更に説明する。
Next, returning to the "focus detection" subroutine of FIG. 4B, further explanation will be given.

【0107】「信頼性判定」サブルーチンからリターン
すると、まずステップ(309)で上述したデフォーカ
ス量DEFと、予め定めた合焦許容の一定値であるJF
FLDを比較する。
When the process returns from the "reliability determination" subroutine, first, the defocus amount DEF described above in step (309) and JF which is a predetermined fixed focusing allowance value.
Compare FLD.

【0108】ここで、DEF>JFFLDのときには、
ステップ(310)へ進み、合焦フラグJFを“0”に
セットし焦点検出サブルーチンを終了して図3のステッ
プ(124.1)へ移行する。
Here, when DEF> JFFLD,
Proceeding to step (310), the focus flag JF is set to "0", the focus detection subroutine is terminated, and the routine proceeds to step (124.1) in FIG.

【0109】一方JFFLD>DEFと判断されたとき
にはステップ(312)の合焦フラグJFを“1”にセ
ットしステップ(313)へ進む。
On the other hand, if it is determined that JFFLD> DEF, then the focus flag JF in step (312) is set to "1", and the flow advances to step (313).

【0110】ステップ(313)ではフラグAUXMO
Dで補助光モードであるか否かを判定する。
In step (313), the flag AUXMO is set.
At D, it is determined whether or not the mode is the fill light mode.

【0111】フラグAUXMODが補助光モードならば
ステップ(314)で補助光投光下で合焦したことによ
りフラグAUXJFに“1”をセットし、「焦点検出」
サブルーチンを終了して、次のステップ(124.1)
へ移行し、フラグLCONを判定し、LCONが“1”
であるならば焦点検出不能であると判断し、ステップ
(124.2)へ進み、サブルーチン「NG表示」を実
行する。同サブルーチンは焦点検出が不能であることを
表示部材によって表示する機能であるので詳しい説明は
省略する。「NG表示」実行後はステップ(124.
3)へ移行して「AF制御」サブルーチンをリターンす
る。
If the flag AUXMOD is the auxiliary light mode, the flag AUXJF is set to "1" by the focusing under the auxiliary light projection in step (314), and "focus detection" is performed.
End the subroutine and go to the next step (124.1)
Shift to, judge the flag LCON, LCON is "1"
If it is, it is determined that focus detection cannot be performed, and the process proceeds to step (124.2) to execute the subroutine "NG display". Since this sub-routine has a function of displaying that focus detection is impossible on a display member, detailed description thereof will be omitted. After executing "NG display", the step (124.
The process moves to 3) and the "AF control" subroutine is returned.

【0112】ステップ(124.1)にてLCONが
“0”ならば焦点検出は可能であると判断して図3のス
テップ(125)のサブルーチン「表示」へ移行する。
ステップ(125)の「表示」は上述のAF制御の合焦
状態を単に合焦か否かを表示部材により表示するのみの
機能であるので説明は省略する。
If LCON is "0" in step (124.1), it is determined that focus detection is possible, and the flow shifts to the subroutine "display" in step (125) in FIG.
The “display” of step (125) is a function of merely displaying the in-focus state of the AF control described above by the display member, and therefore the description thereof will be omitted.

【0113】ステップ(126)でフラグJFで合焦か
否かを判定する。
At step (126), it is determined by the flag JF whether or not focus is achieved.

【0114】フラグJFは前述の「焦点検出」サブルー
チン内のステップ(310),(312)で記憶される
フラグであり、このフラグJFにより合焦状態と判定さ
れたとき(つまり“1”)、即ち合焦のときには、ステ
ップ(129)でAF制御を終了し、合焦してないと判
定したとき(つまり“0”)には、ステップ(127)
へ進みレンズ駆動サブルーチンを行う。
The flag JF is a flag stored in steps (310) and (312) in the above-mentioned "focus detection" subroutine, and when this flag JF determines that it is in focus (that is, "1"). That is, when the focus is achieved, the AF control is ended in step (129), and when it is determined that the focus is not achieved (that is, "0"), the step (127) is performed.
Then, the process proceeds to the lens drive subroutine.

【0115】レンズ駆動サブルーチンではマイコンPR
Sにて信号CLCMを“1”となしバッファ回路LCM
を指定する。又、レンズ駆動量をSO信号として回路L
CMに伝え、SO信号をDCL信号として制御回路LP
RSに伝える。該回路LPRSは上記レンズ駆動量に応
じて信号LMF又はLMRをHとなし、モータLMTR
を所定方向に回動し、撮影レンズLNSを光軸方向に移
動させる。このレンズの移動量はエンコーダENCにて
モータされ移動量に応じた信号SENCを出力し、該信
号SENCと回路LPRSに伝送された上記デフォーカ
ス等を表わす信号と比較され、両信号が一致した時に信
号LMF,LMRをLとなし、モータLMTRの回動を
停止しレンズ駆動を終了する。
In the lens driving subroutine, the microcomputer PR
No signal CLCM is set to "1" at S and buffer circuit LCM
Is specified. In addition, the lens drive amount is set to the SO signal and the circuit L
Control circuit LP transmitted to CM and SO signal as DCL signal
Tell RS. The circuit LPRS sets the signal LMF or LMR to H according to the lens driving amount, and the motor LMTR
Is rotated in a predetermined direction to move the taking lens LNS in the optical axis direction. The moving amount of this lens is motorized by the encoder ENC, outputs a signal SENC corresponding to the moving amount, and is compared with the signal SENC and the signal indicating the defocus or the like transmitted to the circuit LPRS. The signals LMF and LMR are set to L, the rotation of the motor LMTR is stopped, and the lens driving is ended.

【0116】以上の動作にてレンズはデフォーカス量に
応じた量だけ移動し、レンズ駆動サブルーチンを終了
し、ステップ(128)でレンズ駆動フラグPRMVに
“1”をセットし、ステップ(129)でAF制御を終
了する。
With the above operation, the lens moves by the amount corresponding to the defocus amount, the lens driving subroutine is ended, the lens driving flag PRMV is set to "1" in step (128), and the lens driving flag PRMV is set in step (129). The AF control ends.

【0117】次に図4(d)のレンズ駆動サブルーチン
ステップ(401)を詳述する。
Next, the lens driving subroutine step (401) of FIG. 4D will be described in detail.

【0118】ステップ(402)において撮影レンズか
ら「デフォーカス量対繰り出し量の係数S」を入力す
る。デフォーカス量とは前述したDEFであり、繰り出
し量とは、焦点調節を行うレンズの光軸方向の移動量を
表わす。
In step (402), the "coefficient S of the defocus amount to the extension amount" is input from the taking lens. The defocus amount is the above-mentioned DEF, and the extension amount represents the amount of movement of the lens for focus adjustment in the optical axis direction.

【0119】上記係数Sは上記撮影レンズが全体繰り出
し単焦点レンズの場合にはS=1であり、撮影レンズが
ズームレンズの場合には上記係数Sはズーミング位置に
よって変化するものである。
The coefficient S is S = 1 when the photographic lens is a single-lens extension lens, and when the photographic lens is a zoom lens, the coefficient S varies depending on the zooming position.

【0120】ステップ(403)では「エンコーダ1歯
に相当する繰り出し量PTH」を入力する。焦点調節を
行うレンズが移動すると、この移動に伴ってエンコーダ
からパルスが発生されるが、上記エンコーダ1歯に相当
する繰り出し量PTHは、1歯当たりのレンズの移動量
を表わしている。
At step (403), the "feed amount PTH equivalent to one encoder tooth" is input. When the lens for focus adjustment moves, a pulse is generated from the encoder along with this movement, and the feed amount PTH corresponding to one tooth of the encoder represents the amount of movement of the lens per tooth.

【0121】ステップ(404)では先に検出したデフ
ォーカス量DEF、及び前述したデフォーカス量対繰り
出し量の係数S並びにエンコーダ1歯に相当する繰り出
し量PTHにより焦点調節用レンズの移動量を上記エン
コーダの歯数で表わした整数値FPを次式で計算する。
In step (404), the moving amount of the focus adjustment lens is adjusted by the previously detected defocus amount DEF, the above-described coefficient S of the defocus amount to the moving amount, and the moving amount PTH corresponding to one encoder tooth. An integer value FP represented by the number of teeth of is calculated by the following formula.

【0122】FP=DEF×S/PTH ステップ(405)では上記ステップ(404)で求め
た整数値FPをレンズ駆動量として撮影レンズに送出し
てレンズの駆動を指示し、ステップ(406)で上記レ
ンズ駆動を終了する。
FP = DEF × S / PTH In step (405), the integer value FP obtained in step (404) is sent to the photographing lens as a lens driving amount to instruct lens driving, and in step (406), The lens drive ends.

【0123】以上の如く構成されている本例の動作をま
とめると以下の如く作動する。
The operation of the present example configured as described above is summarized as follows.

【0124】ステップ(124)でAFにて測距し、デ
フォーカス量DEFを演算してその結果が大デフォーカ
スか否かをステップ(503)にて判定する。判定され
た結果に基づき本例では信頼性しきい値1,2,3の重
みづけを行ない、その値と検出像の信頼性FNCLVL
を比較して、信頼性フラグFNC(1.2,3)FLG
を決定する。
In step (124), the distance is measured by AF, the defocus amount DEF is calculated, and it is determined in step (503) whether or not the result is large defocus. In this example, the reliability threshold values 1, 2 and 3 are weighted based on the determined result, and the value and the reliability of the detected image FNCLVL
And the reliability flag FNC (1.2,3) FLG
To decide.

【0125】上記にて決定された信頼性フラグの状態に
よりデフォーカス演算された値を使用するか否かが決定
される。
Whether the defocused value is used or not is determined depending on the state of the reliability flag determined above.

【0126】従って本例では、上記のように大デフォー
カス状態では、信頼性判定のための判定基準として用い
るしきい値に、小デフォーカス状態で用いる判定基準と
してのしきい値よりも小さな値(本例では小さな係数を
掛けることでこれを実現している)を用いるので、小デ
フォーカス状態に比べて大デフォーカス状態で現われる
上述した(つまり検出像の不確かさが大きいという)傾
向に由来して生ずる不都合な問題を解消でき、デフォー
カス量の大小に影響されない常に安定かつ精度の良い信
頼性判定を実現でき、ひいては無駄のない自動焦点検出
動作、自動焦点調節動作が行なわれるカメラを提供でき
る。
Therefore, in this example, in the large defocus state as described above, the threshold value used as the criterion for reliability judgment is smaller than the threshold value used as the criterion in the small defocus state. (This is achieved by multiplying by a small coefficient in this example), so it is derived from the above-mentioned tendency (that is, the uncertainty of the detected image is large) that appears in the large defocus state compared to the small defocus state. It provides a camera that can solve the inconvenient problems that occur, can always realize stable and accurate reliability determination that is not affected by the amount of defocus, and that performs automatic focus detection operation and automatic focus adjustment operation without waste. it can.

【0127】また信頼性しきい値の重み付けを行う判定
にデフォーカスを用いたが、これをそのほかの判定値、
例えば像出力の大きさを判定しその判定値に置き換える
こともできる。
Defocus was used for the determination of weighting the reliability threshold value.
For example, the magnitude of the image output can be determined and replaced with the determined value.

【0128】[0128]

【発明の効果】本発明は、焦点検出光学系によって検出
された一対の検出像のデフォーカスが大と判定されたと
きには、検出像の信頼性判定基準を小デフォーカス状態
の時よりも厳しくしたことにより、大デフォーカス状態
においても高精度の焦点状態を検出することができ、ま
た、本来信頼できない不確かなデータに基づく撮影レン
ズ駆動を行なわせる不具合も解消できるという効果があ
る。
According to the present invention, when the defocus of a pair of detection images detected by the focus detection optical system is determined to be large, the reliability of the detection image is set to be stricter than that in the small defocus state. As a result, it is possible to detect a highly accurate focus state even in the large defocus state, and it is also possible to eliminate the problem that the photographing lens is driven based on uncertain data that is originally unreliable.

【図面の簡単な説明】[Brief description of drawings]

【図1】図1は、本発明を適用するカメラの制御系概要
を説明するための回路図。
FIG. 1 is a circuit diagram for explaining an outline of a control system of a camera to which the present invention is applied.

【図2】図2は、図1の制御回路によって行なわれる動
作概要を簡単に説明した図。
FIG. 2 is a diagram briefly explaining an outline of operations performed by the control circuit of FIG.

【図3】図3は、上記実施例で行なわれるAF制御動作
のメインルーチンを説明するフローチャート図。
FIG. 3 is a flowchart illustrating a main routine of an AF control operation performed in the above embodiment.

【図4】図4(a)は、上記実施例で行なわれる「像信
号入力」サブルーチンの動作を説明するフローチャート
図。
FIG. 4A is a flow chart for explaining the operation of an “image signal input” subroutine performed in the above embodiment.

【図5】図4(b)は、上記実施例で行なわれる「焦点
検出」サブルーチンの動作を説明するフローチャート
図。
FIG. 5B is a flow chart for explaining the operation of the “focus detection” subroutine performed in the above embodiment.

【図6】図4(c)は、上記実施例で行なわれる「信頼
性判定」サブルーチンの動作を説明するフローチャート
図。
FIG. 6 (c) is a flowchart explaining the operation of a “reliability determination” subroutine performed in the above embodiment.

【図7】図4(d)は、上記実施例で行なわれる「レン
ズ駆動」サブルーチンの動作を説明するフローチャート
図。
FIG. 7D is a flow chart for explaining the operation of the “lens drive” subroutine performed in the above embodiment.

【図8】図5は、一対のラインセンサ上に結像された一
対の像の像パターンの一致性を説明するための図。
FIG. 8 is a diagram for explaining the matching of image patterns of a pair of images formed on a pair of line sensors.

【図9】図6は、一対のラインセンサ上に結像された一
対の像の像パターンの一致性を説明するための図。
FIG. 9 is a diagram for explaining the matching of image patterns of a pair of images formed on a pair of line sensors.

【符号の説明】[Explanation of symbols]

PRS…マイコン SDR…SNS駆動
回路
PRS ... Microcomputer SDR ... SNS drive circuit

─────────────────────────────────────────────────────
─────────────────────────────────────────────────── ───

【手続補正書】[Procedure amendment]

【提出日】平成5年7月23日[Submission date] July 23, 1993

【手続補正1】[Procedure Amendment 1]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】図面の簡単な説明[Name of item to be corrected] Brief explanation of the drawing

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【図面の簡単な説明】[Brief description of drawings]

【図1】図1は、本発明を適用するカメラの制御系概要
を説明するための回路図。
FIG. 1 is a circuit diagram for explaining an outline of a control system of a camera to which the present invention is applied.

【図2】図2は、図1の制御回路によって行なわれる動
作概要を簡単に説明した図。
FIG. 2 is a diagram briefly explaining an outline of operations performed by the control circuit of FIG.

【図3】図3は、上記実施例で行なわれるAF制御動作
のメインルーチンを説明するフローチャート図。
FIG. 3 is a flowchart illustrating a main routine of an AF control operation performed in the above embodiment.

【図4】図4は、上記実施例で行なわれる「像信号入
力」サブルーチンの動作を説明するフローチャート図。
FIG. 4 is a flow chart for explaining the operation of an “image signal input” subroutine performed in the above embodiment.

【図5】図5は、上記実施例で行なわれる「焦点検出」
サブルーチンの動作を説明するフローチャート図。
FIG. 5 is a “focus detection” performed in the above embodiment.
The flowchart figure explaining operation | movement of a subroutine.

【図6】図6は、上記実施例で行なわれる「信頼性判
定」サブルーチンの動作を説明するフローチャート図。
FIG. 6 is a flow chart for explaining the operation of a “reliability judgment” subroutine performed in the above embodiment.

【図7】図7は、上記実施例で行なわれる「レンズ駆
動」サブルーチンの動作を説明するフローチャート図。
FIG. 7 is a flowchart illustrating the operation of a “lens drive” subroutine performed in the above embodiment.

【図8】図8は、一対のラインセンサ上に結像された一
対の像の像パターンの一致性を説明するための図。
FIG. 8 is a diagram for explaining the matching of image patterns of a pair of images formed on a pair of line sensors.

【図9】図9は、一対のラインセンサ上に結像された一
対の像の像パターンの一致性を説明するための図。
FIG. 9 is a diagram for explaining the matching of image patterns of a pair of images formed on a pair of line sensors.

【符号の説明】 PRS…マイコン SDR…SNS駆動
回路
[Explanation of symbols] PRS ... Microcomputer SDR ... SNS drive circuit

【手続補正2】[Procedure Amendment 2]

【補正対象書類名】図面[Document name to be corrected] Drawing

【補正対象項目名】図4[Name of item to be corrected] Fig. 4

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【図4】 [Figure 4]

【手続補正3】[Procedure 3]

【補正対象書類名】図面[Document name to be corrected] Drawing

【補正対象項目名】図5[Name of item to be corrected] Figure 5

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【図5】 [Figure 5]

【手続補正4】[Procedure amendment 4]

【補正対象書類名】図面[Document name to be corrected] Drawing

【補正対象項目名】図6[Name of item to be corrected] Figure 6

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【図6】 [Figure 6]

【手続補正5】[Procedure Amendment 5]

【補正対象書類名】図面[Document name to be corrected] Drawing

【補正対象項目名】図7[Name of item to be corrected] Figure 7

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【図7】 [Figure 7]

【手続補正6】[Procedure Amendment 6]

【補正対象書類名】図面[Document name to be corrected] Drawing

【補正対象項目名】図8[Correction target item name] Figure 8

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【図8】 [Figure 8]

【手続補正7】[Procedure Amendment 7]

【補正対象書類名】図面[Document name to be corrected] Drawing

【補正対象項目名】図9[Correction target item name] Figure 9

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【図9】 [Figure 9]

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 被写体を結像する光学系の焦点状態に応
じて、像相互の相対的な位置関係が変化する第1の像と
第2の結像させる焦点検出光学系と、これらの像に対応
して光電変換された夫々の像信号を出力する像信号出力
手段と、これらの像信号に基づいて上記第1の像と第2
の像のずれ量を求め、上記焦点検出光学系のデフォーカ
ス量を算出する演算手段と、上記第1の像及び第2の像
を表す像信号相互の一致性を、予め定めたしきい値と比
較して上記焦点検出光学系により結像された像の信頼性
を判定する像信頼性判定手段とを備えた焦点検出装置に
おいて、 上記デフォーカス量の大きさによって像信頼性判定手段
におけるしきい値を可変させる手段を設けたことを特徴
とする焦点検出装置。
1. A first image and a second focus detecting optical system for forming an image in which a relative positional relationship between the images changes depending on a focus state of an optical system for forming an image of a subject, and these images. Image signal output means for outputting respective image signals photoelectrically converted corresponding to the first image and the second image based on these image signals.
Of the image difference between the image signals of the first and second images and a calculation means for calculating the defocus amount of the focus detection optical system and a predetermined threshold value. In the focus detection device, the image reliability determination means determines the reliability of the image formed by the focus detection optical system in comparison with A focus detection device comprising means for varying a threshold value.
【請求項2】 請求項1において、しきい値を可変させ
る手段が、デフォーカス量が予め定めた一定値よりも大
きい場合にしきい値を小さな値とし、かつデフォーカス
量が上記一定値未満の場合にしきい値を大きな値とする
ものであることを特徴とする焦点検出装置。
2. The means for varying the threshold value according to claim 1, wherein the threshold value is set to a small value when the defocus amount is larger than a predetermined fixed value, and the defocus amount is less than the fixed value. In some cases, the focus detection device has a large threshold value.
JP18241791A 1991-07-23 1991-07-23 Focal point detecting device Pending JPH05346536A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP18241791A JPH05346536A (en) 1991-07-23 1991-07-23 Focal point detecting device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP18241791A JPH05346536A (en) 1991-07-23 1991-07-23 Focal point detecting device

Publications (1)

Publication Number Publication Date
JPH05346536A true JPH05346536A (en) 1993-12-27

Family

ID=16117926

Family Applications (1)

Application Number Title Priority Date Filing Date
JP18241791A Pending JPH05346536A (en) 1991-07-23 1991-07-23 Focal point detecting device

Country Status (1)

Country Link
JP (1) JPH05346536A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5628036A (en) * 1994-09-07 1997-05-06 Nikon Corporation Focus adjustment device and method
JP2005338633A (en) * 2004-05-28 2005-12-08 Olympus Corp Focus detector
JP2007052206A (en) * 2005-08-17 2007-03-01 Canon Inc Focus detector and its control method
JP2008026786A (en) * 2006-07-25 2008-02-07 Canon Inc Imaging apparatus and focus control method
US8121470B2 (en) 2006-07-25 2012-02-21 Canon Kabushiki Kaisha Focusing device, image pick-up apparatus, and control method
JPWO2013171840A1 (en) * 2012-05-15 2016-01-07 キヤノン株式会社 IMAGING DEVICE AND IMAGING DEVICE CONTROL METHOD

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5628036A (en) * 1994-09-07 1997-05-06 Nikon Corporation Focus adjustment device and method
JP2005338633A (en) * 2004-05-28 2005-12-08 Olympus Corp Focus detector
JP4532169B2 (en) * 2004-05-28 2010-08-25 オリンパス株式会社 Focus detection device
JP2007052206A (en) * 2005-08-17 2007-03-01 Canon Inc Focus detector and its control method
JP2008026786A (en) * 2006-07-25 2008-02-07 Canon Inc Imaging apparatus and focus control method
US8121470B2 (en) 2006-07-25 2012-02-21 Canon Kabushiki Kaisha Focusing device, image pick-up apparatus, and control method
US8311406B2 (en) 2006-07-25 2012-11-13 Canon Kabushiki Kaisha Focusing device, image pick-up apparatus, and control method
JPWO2013171840A1 (en) * 2012-05-15 2016-01-07 キヤノン株式会社 IMAGING DEVICE AND IMAGING DEVICE CONTROL METHOD

Similar Documents

Publication Publication Date Title
JP2597961B2 (en) Automatic focusing device
US6311019B1 (en) Automatic focus adjusting system capable of adjusting focus of moving subject
US4952963A (en) Focus detection apparatus for camera
JPH0617935B2 (en) Automatic focus adjustment device
US4801962A (en) Camera incorporating automatic focusing apparatus
JPH01134410A (en) Automatic focusing device
JPH05346536A (en) Focal point detecting device
JP2002131624A (en) Multipoint automatic focusing camera
JP2974637B2 (en) Automatic focusing device
US4825238A (en) Focus detecting device
JP2832006B2 (en) Automatic focusing device
JP3548393B2 (en) Camera with automatic focusing device and focus measuring device therefor
JP3294636B2 (en) Auto focus camera
JP4262034B2 (en) Optical device and camera
US5382996A (en) Auto-focus apparatus having different levels for emitting focusing light and for inhibiting a focus operation
JPH085905A (en) Camera with focus detecting device
JPH11211973A (en) Focusing device and camera
JP3544052B2 (en) Optical device and camera
JPS63172206A (en) Focus detector
JPH02207229A (en) Automatic focus adjusting device
JP2832054B2 (en) Focus detection device
JPH024207A (en) Focus detector
JPH06148510A (en) Camera with line-of-sight detector
JP2002072062A (en) Automatic focusing device
JP2756333B2 (en) Automatic focusing device