JP4542126B2 - Focus detection device - Google Patents

Focus detection device Download PDF

Info

Publication number
JP4542126B2
JP4542126B2 JP2007240347A JP2007240347A JP4542126B2 JP 4542126 B2 JP4542126 B2 JP 4542126B2 JP 2007240347 A JP2007240347 A JP 2007240347A JP 2007240347 A JP2007240347 A JP 2007240347A JP 4542126 B2 JP4542126 B2 JP 4542126B2
Authority
JP
Japan
Prior art keywords
focus detection
area
priority
determined
process proceeds
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2007240347A
Other languages
Japanese (ja)
Other versions
JP2008052285A (en
Inventor
智一 吉田
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 JP2007240347A priority Critical patent/JP4542126B2/en
Publication of JP2008052285A publication Critical patent/JP2008052285A/en
Application granted granted Critical
Publication of JP4542126B2 publication Critical patent/JP4542126B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Description

本発明は、複数の焦点検出領域を有する焦点検出装置の改良に関するものである。 The present invention relates to an improvement of a focus detection apparatus having a plurality of focus detection areas.

従来、カメラの自動焦点検出装置として、撮影レンズの異なる射出瞳領域を通過した被写体からの光束を、一対のラインセンサ上に結合させ、被写体像を光電変換して得られた一対の像信号の相対位置変位量を求めることにより、被写体のデフォーカス量を検出して、これに基づいて撮影レンズの駆動を行う自動焦点調節方法が広く知られている。   Conventionally, as an automatic focus detection device for a camera, a pair of image signals obtained by photoelectrically converting a subject image by combining light beams from a subject passing through different exit pupil regions of a photographing lens onto a pair of line sensors. 2. Description of the Related Art An automatic focus adjustment method for detecting a defocus amount of a subject by obtaining a relative position displacement amount and driving a photographing lens based on the detected defocus amount is widely known.

近年の一眼レフカメラの多くは、図2に示すように、この焦点検出領域を撮影画面内に複数配置し、様々な被写体や状況に応じて自動的に焦点検出領域を選択したり、操作者が任意の焦点検出領域を選んだときに、選択された焦点検出領域で焦点検出動作を行うようにしている。   Many recent single-lens reflex cameras, as shown in FIG. 2, arrange a plurality of focus detection areas in a shooting screen and automatically select a focus detection area according to various subjects and situations. When an arbitrary focus detection area is selected, the focus detection operation is performed in the selected focus detection area.

また、近年の半導体製造技術の向上により、図3に示すように、焦点検出領域の数は増える傾向にある。
特開平5−45576号公報
Further, due to recent improvements in semiconductor manufacturing technology, the number of focus detection areas tends to increase as shown in FIG.
Japanese Patent Laid-Open No. 5-45576

複数の焦点検出領域がある場合、各焦点検出領域毎にデフォーカス量を求めることになる。これまで複数の焦点検出領域を自動的に選択する方法としては、全ての焦点検出領域のデフォーカス量を求め、その検出結果を比較し、画面内における主被写体位置に対応していると判定するのに最もふさわしい焦点検出領域を最終的な焦点検出領域として決定し、その領域にて得られるデフォーカス量を焦点調節に用いるデフォーカス量としていた。   When there are a plurality of focus detection areas, the defocus amount is obtained for each focus detection area. As a method of automatically selecting a plurality of focus detection areas so far, the defocus amounts of all focus detection areas are obtained, the detection results are compared, and it is determined that the position corresponds to the main subject position in the screen. The focus detection area most suitable for the above is determined as the final focus detection area, and the defocus amount obtained in that area is set as the defocus amount used for focus adjustment.

しかしながら、前述した通り、デフォーカス量は一対の像信号の相対位置変位量を求めることであり、これをMPU(マイクロプロセッシングユニット)の演算処理によって求めている。   However, as described above, the defocus amount is to obtain the relative position displacement amount of the pair of image signals, and this is obtained by the arithmetic processing of the MPU (microprocessing unit).

公知の通り、複数の焦点検出領域における焦点検出動作は、被写体の明るさや光線の向きによってセンサの蓄積時間がばらつき、全ての焦点検出領域において同時に終了するということは希である。また、一般的にMPUの演算処理は逐次処理であり、図3のような45点もの焦点検出領域の持つ超多点の自動焦点検出カメラでは、全てのデフォーカス量を求めるのに膨大な演算処理時間がかかり、実用的ではなかった。   As is well known, the focus detection operation in a plurality of focus detection areas rarely ends at the same time in all focus detection areas because the sensor accumulation time varies depending on the brightness of the subject and the direction of light rays. In general, the calculation processing of the MPU is sequential processing, and the super-multipoint automatic focus detection camera having 45 focus detection areas as shown in FIG. 3 requires a large amount of calculation to obtain all defocus amounts. It took a long time and was not practical.

この問題に対して、特開平5−45576号公報(引用文献1)では、各焦点検出領域で検出されるデフォーカス量のうち、最先に得られたデフォーカス量が所定の基準を満たしている際には他の焦点検出領域でのデフォーカス量とは無関係に、該デフォーカス量が得られた焦点検出領域に主被写体が位置していると判定して、上記最先に得られたデフォーカス量を焦点調節用として選択することにより、迅速な焦点検出動作を可能とする方法を開示している。   With respect to this problem, in Japanese Patent Laid-Open No. 5-45576 (Cited document 1), among the defocus amounts detected in each focus detection region, the first defocus amount obtained satisfies a predetermined standard. It is determined that the main subject is located in the focus detection area where the defocus amount is obtained, regardless of the defocus amount in the other focus detection areas. A method is disclosed that enables a rapid focus detection operation by selecting a defocus amount for focus adjustment.

この考え方は、確かに高速な焦点検出を可能とするが、焦点検出途中において、ある焦点検出領域のデフォーカス量が所定の基準を満たしているからといっても、残りの焦点検出領域に主被写体位置に対応していると判定することによりふさわしい焦点検出領域が残されている可能性も常にある。この事は、図3に示すように多数の焦点検出領域を有するもの程、顕著である。   Although this concept certainly enables high-speed focus detection, even if the defocus amount of a certain focus detection area satisfies a predetermined standard during focus detection, the remaining focus detection areas are mainly used. There is always a possibility that an appropriate focus detection area is left by determining that it corresponds to the subject position. This is more conspicuous as the number of focus detection areas increases as shown in FIG.

(発明の目的)
本発明の目的は、多数の焦点検出領域を有するものにおいても、高速かつ正確な焦点情報の検出を行うことのできる焦点検出装置を提供しようとするものである。
(Object of invention)
An object of the present invention is to provide a focus detection apparatus capable of detecting focus information at high speed and accurately even in a case having a large number of focus detection areas.

上記目的を達成するために、本発明は、複数の焦点検出領域において位相差を検出可能であって、前記複数の焦点検出領域にて得られる出力を基に焦点検出動作を行う演算手段を有する焦点検出装置において、前記演算手段が、前記複数の焦点検出領域のうち第一優先領域として設定された少なくとも1以上の焦点検出領域の信頼度のいずれかが基準を超えると判断された場合には、前記基準を超えると判断された焦点検出領域の中からレンズ制御に寄与する焦点検出領域を決定して焦点検出の演算を終了し、前記第一優先領域に属する焦点検出領域の信頼度のいずれもが基準を超えないと判断された場合には、前記複数の焦点検出領域のうち前記第一優先領域には属さない、前記第一優先領域の周辺の焦点検出領域を第二優先領域として設定し、前記第二優先領域に属する焦点検出領域の信頼度のいずれかが基準を超えると判断された場合、前記基準を超えると判断された焦点検出領域の中からレンズ制御に寄与する焦点検出領域を決定する焦点検出装置とするものである。 In order to achieve the above object, the present invention includes a calculation unit capable of detecting a phase difference in a plurality of focus detection areas and performing a focus detection operation based on outputs obtained in the plurality of focus detection areas. In the focus detection apparatus, when the calculation unit determines that any one of the reliability of at least one focus detection area set as the first priority area among the plurality of focus detection areas exceeds a reference. From among the focus detection areas determined to exceed the reference, the focus detection area contributing to the lens control is determined, the calculation of the focus detection is terminated, and any of the reliability of the focus detection areas belonging to the first priority area If even is determined to not exceed the reference does not belong to the first priority area of the plurality of focus detection areas, focus detection regions near the first priority area as the second priority area Constant, and the second if any of the reliability of the focus detection area belonging to the priority region is determined to exceed the reference contributes focus detection to the lens control from the focus detection area determined to exceed the reference The focus detection apparatus determines the area.

本発明によれば、多数の焦点検出領域を有するものにおいても、高速かつ正確な焦点情報の検出を行うことのできる焦点検出装置を提供できるものである。 According to the present invention, it is possible to provide a focus detection apparatus capable of detecting focus information at high speed and accurately even in a case having a large number of focus detection areas .

本発明を実施するための最良の形態は、後述する実施例に記載の通りである。   The best mode for carrying out the present invention is as described in Examples described later.

以下、本発明を図示の実施例に基づいて詳細に説明する。   Hereinafter, the present invention will be described in detail based on the illustrated embodiments.

図1は本発明の実施例に係る自動焦点検出装置付き一眼レフカメラの電気的構成を示すブロック図である。   FIG. 1 is a block diagram showing an electrical configuration of a single-lens reflex camera with an automatic focus detection apparatus according to an embodiment of the present invention.

図1において、1はMPU(マイクロプロセッシングユニット)、2はメモリ、3はAF(オートフォーカス)を行うための焦点検出ユニットである。なお、MPU1,メモリ2および焦点検出ユニット3により、焦点検出装置が構成される。   In FIG. 1, 1 is an MPU (microprocessing unit), 2 is a memory, and 3 is a focus detection unit for performing AF (autofocus). The MPU 1, the memory 2, and the focus detection unit 3 constitute a focus detection device.

4は焦点検出ユニット3の検出結果に基づき撮影光学系を駆動するレンズ駆動ユニット、5は絞り駆動ユニット、6はシャッタ駆動ユニット、7はフィルム給送ユニットである。8はカメラの諸設定(絞り値、シャッタ速度等)を不図示の液晶ディスプレーに表示したり、 ONE SHOT - AFモードの際、焦点検出制御によって画面内の特定の焦点検出領域が選択されたときに、その焦点検出領域をLEDによって赤いハイライト表示にするための表示ユニットである。   Reference numeral 4 denotes a lens driving unit for driving the photographing optical system based on the detection result of the focus detection unit 3, reference numeral 5 denotes an aperture driving unit, reference numeral 6 denotes a shutter driving unit, and reference numeral 7 denotes a film feeding unit. 8 shows camera settings (aperture value, shutter speed, etc.) on a liquid crystal display (not shown), or when a specific focus detection area in the screen is selected by focus detection control in ONE SHOT-AF mode. In addition, the focus detection area is a display unit for displaying red highlights by LEDs.

9は ONE SHOT - AFおよび AI SERVO - AFの何れかのAFモードを切り換えるためのAF切換えスイッチ、10は後述するCF(カスタムファンクション)を設定のためのCFスイッチ、11はシャッタ速度,絞り値などを設定するためのメインダイヤル、SW1はレリーズボタンの第1ストローク操作(半押し)によりオンするスイッチ、SW2はレリーズボタンの第2ストローク操作(全押し)によりオンするスイッチである。   9 is an AF switching switch for switching one of AF modes of ONE SHOT-AF and AI SERVO-AF, 10 is a CF switch for setting a CF (custom function) described later, 11 is a shutter speed, an aperture value, and the like. SW1 is a switch that is turned on by a first stroke operation (half press) of the release button, and SW2 is a switch that is turned on by a second stroke operation (full press) of the release button.

次に、本発明の実施例のカメラのメイン動作について、図4のフローチャートを用いて説明する。   Next, the main operation of the camera according to the embodiment of the present invention will be described with reference to the flowchart of FIG.

通常カメラは、電源がオンされ、操作者が何らかの操作( スイッチSW1のオンやシャッタ速度、絞り値等の設定) を一定時間以上行わないと省電力待機モードへ移行し(#001→#002→#003→#004)、MPU1は停止状態になる。そして、操作者が何らかの操作を行うことによって(ステップ#005のYES)、MPU1に割り込みが入り、その操作に対応する種々の動作・設定を行うようになっている。この種々の動作・設定のうち、本発明に関係のあるAFの動作について詳しく説明する。   Normally, the camera is turned on, and if the operator does not perform any operation (switch SW1 on, shutter speed, aperture value, etc.) for a certain period of time or more, the camera enters the power saving standby mode (# 001 → # 002 → # 003 → # 004), the MPU 1 is stopped. When the operator performs any operation (YES in step # 005), the MPU 1 is interrupted and various operations and settings corresponding to the operation are performed. Of the various operations and settings, the AF operation related to the present invention will be described in detail.

ステップ#002において、スイッチSW1がオンしたことを判定するとステップ#006へ進み、MPU1は焦点検出領域の選択が自動選択(MPU1が自動的に焦点検出点を選択)か任意選択(撮影者が所望の焦点検出領域を45点の中から1点選択)かを判定する。この結果、自動選択であればステップ#007へ進み、「焦点検出領域自動選択撮影」のルーチンを実行する。また、任意選択であった場合にはステップ#008へ進み、「焦点検出領域任意選択撮影」のルーチンを実行する。この「焦点検出領域任意選択撮影」については、本発明には関係ないので説明は省略する。   If it is determined in step # 002 that the switch SW1 is turned on, the process proceeds to step # 006, and the MPU 1 selects the focus detection area automatically (MPU 1 automatically selects the focus detection point) or arbitrarily selects (as desired by the photographer). It is determined whether one focus detection area is selected from 45 points). As a result, if it is automatic selection, the process proceeds to step # 007, and a routine of “focus detection area automatic selection photographing” is executed. If it is an arbitrary selection, the process proceeds to step # 008, and a routine of “focus detection area arbitrary selection photographing” is executed. Since this “focus detection area arbitrary selection shooting” is not related to the present invention, a description thereof will be omitted.

上記「焦点検出領域自動選択」ルーチンは撮影のための一連の動作を行うルーチンであり、図5のフローチャートを用いて説明する。   The “focus detection area automatic selection” routine is a routine for performing a series of operations for photographing, and will be described with reference to the flowchart of FIG.

まず、ステップ#102において、測光を行い、続くステップ#103において、「焦点検出制御」を行うルーチンを実行する。このルーチンについての詳細は図6及び7のフローチャートを用いて後述する。焦点検出制御のルーチンが終了し焦点検出が行われるとステップ#104に進み、 ONE SHOT - AFモードか AI SERVO - AFモードかを判定する。   First, in step # 102, photometry is performed, and in the subsequent step # 103, a routine for performing “focus detection control” is executed. Details of this routine will be described later with reference to the flowcharts of FIGS. When the focus detection control routine is completed and focus detection is performed, the process proceeds to step # 104 to determine whether the ONE SHOT-AF mode or the AI SERVO-AF mode.

ここで、 ONE SHOT - AFとは、焦点検出を行い、一度レンズ駆動が完了してしまうとスイッチSW1がオフされるまでそのレンズ位置を保持するモードであり、風景やポートレートなど、静止している被写体の撮影に適している。また、 AI SERVO - AFとは、スイッチSW1がオンされている間、スイッチSW2がオンされレリーズ動作に入る直前まで、焦点検出制御とレンズ駆動を繰り返すモードであり、さらには被写体の移動を検知した場合、AFタイムラグとレリーズタイムラグを考慮したレンズ駆動(予測AF)も行う。モータスポーツやサッカーゲームなどの移動する被写体の撮影に適している。   Here, ONE SHOT-AF is a mode that performs focus detection and holds the lens position until the switch SW1 is turned off once the lens drive is completed. Suitable for shooting subjects. AI SERVO-AF is a mode in which focus detection control and lens driving are repeated while the switch SW1 is turned on and immediately before the switch SW2 is turned on and the release operation is started. In this case, lens driving (predictive AF) is performed in consideration of the AF time lag and the release time lag. Suitable for shooting moving subjects such as motor sports and soccer games.

上記判定の結果、 ONE SHOT - AFモードであればステップ#105へ進み、ここでは合焦しているかどうかを判定する。合焦していなければステップ#107へ進み、レンズ駆動を行い、以下合焦するまで測光,焦点検出制御およびレンズ駆動を繰り返す(#107→#102→#103→#104→#105→#107……)。   If the result of the determination is ONE SHOT-AF mode, the process proceeds to step # 105, where it is determined whether or not the subject is in focus. If not in focus, the process proceeds to step # 107, and lens driving is performed. Then, photometry, focus detection control and lens driving are repeated until in-focus (# 107 → # 102 → # 103 → # 104 → # 105 → # 107). ......)

また、合焦していればステップ#106に進み、焦点検出を行った焦点検出領域のピント板上への表示を行い、次のステップ#110において、スイッチSW2の状態を調べる。そして、オンしている場合にだけステップ#111へ進み、撮影動作を実行する。その後、ステップ#112において、スイッチSW1の状態を調べ、オンしていればステップ#113へ進み、現在は ONE SHOT - AFモードであるのでこのステップ#113からステップ#110へ戻り、以下、スイッチSW1がオフされるまで、スイッチSW2とスイッチSW1の状態を調べる。その後スイッチSW1がオフされらステップ#114へ進み、このルーチンを終了して図4のメインルーチンへ戻る。   If it is in focus, the process proceeds to step # 106 to display the focus detection area on which the focus is detected on the focus plate, and in the next step # 110, the state of the switch SW2 is checked. And only when it is ON, it progresses to step # 111 and performs imaging | photography operation | movement. Thereafter, in step # 112, the state of the switch SW1 is checked. If it is on, the process proceeds to step # 113. Since the current mode is the ONE SHOT-AF mode, the process returns from step # 113 to step # 110. The state of the switch SW2 and the switch SW1 is checked until is turned off. Thereafter, when the switch SW1 is turned off, the routine proceeds to step # 114, where this routine is terminated and the routine returns to the main routine of FIG.

一方、 AI SERVO - AFモードであればステップ#104からステップ#108へ進み、合焦しているかどうかを判定する。そして、合焦していない場合にだけステップ#109へ進み、レンズ駆動を行う。   On the other hand, if it is the AI SERVO-AF mode, the process proceeds from step # 104 to step # 108 to determine whether or not it is in focus. Only when the in-focus state is not achieved, the process proceeds to step # 109 to drive the lens.

続いて、 ONE SHOT - AFモードと同様に、ステップ#110において、スイッチSW2の状態を調べる。そして、オンしている場合にだけステップ#111へ進み、撮影動作を実行する。その後、ステップ#112において、スイッチSW1の状態を調べ、オンしていればステップ#113へ進み、現在は AI SERVO - AFモードであるのでこのステップ#113からステップ#102へ戻り、以下、スイッチSW1がオフされるまで、測光,焦点検出制御およびレンズ駆動を繰り返す。その後スイッチSW1がオフされたらステップ#114へ進み、このルーチンを終了して図4のメインルーチンへ戻る。   Subsequently, as in the ONE SHOT-AF mode, in step # 110, the state of the switch SW2 is checked. And only when it is ON, it progresses to step # 111 and performs imaging | photography operation | movement. Thereafter, in step # 112, the state of the switch SW1 is checked. If the switch SW1 is on, the process proceeds to step # 113. Since the AI SERVO-AF mode is currently set, the process returns from step # 113 to step # 102. Metering, focus detection control and lens drive are repeated until is turned off. Thereafter, when the switch SW1 is turned off, the routine proceeds to step # 114, where this routine is terminated and the routine returns to the main routine of FIG.

次に、図5のステップ#103にて実行される「焦点検出制御」について、図6及び図7のフローチャートを用いて説明する。   Next, the “focus detection control” executed in step # 103 of FIG. 5 will be described using the flowcharts of FIGS.

ステップ#202においては、CFスイッチ(操作者が撮影する被写体に応じて焦点検出制御を変更するカスタムファンクションスイッチ)10がオンされているかを調べ、オンされている場合はステップ#207へ進み、「CFスイッチオンにおける焦点検出制御」のルーチンを呼び出して図5のルーチンに戻る。このルーチンについての詳細は、図18及び図19のフローチャートを用いて後述する。次のステップ#203においては、 ONE SHOT - AFモードか AI SERVO - AFモードかを調べ、 AI SERVO - AFモードの場合はステップ#206へ進み、「 AI SERVO - AFにおける焦点検出制御」のルーチンを呼び出して図5のルーチンに戻る。このルーチンについての詳細は、図8及び図9のフローチャートを用いて後述する。一方、CFスイッチオフかつ ONE SHOT - AFモードの場合はステップ#204へ進み、「第一優先領域の設定」ルーチンを呼ぶ。このルーチンは、図8及び図9の「 AI SERVO - AFにおける焦点検出制御」のルーチンからも、又図18及び図19の「CFスイッチオンにおける焦点検出制御」のルーチンからも共通して呼ばれるので、まずこのルーチンについて、図10のフローチャートを用いて説明する。   In step # 202, it is checked whether the CF switch (custom function switch that changes focus detection control according to the subject photographed by the operator) 10 is turned on. If it is turned on, the process proceeds to step # 207. The routine “focus detection control when the CF switch is on” is called back to the routine of FIG. Details of this routine will be described later with reference to the flowcharts of FIGS. In the next step # 203, it is checked whether the ONE SHOT-AF mode or the AI SERVO-AF mode. If the AI SERVO-AF mode is selected, the process proceeds to step # 206, and the routine of “focus detection control in AI SERVO-AF” is executed. Call and return to the routine of FIG. Details of this routine will be described later with reference to the flowcharts of FIGS. On the other hand, if the CF switch is off and the ONE SHOT-AF mode is selected, the process proceeds to step # 204, and the “first priority area setting” routine is called. This routine is commonly called from the routine of “focus detection control in AI SERVO-AF” in FIGS. 8 and 9 and from the routine of “focus detection control in CF switch-on” in FIGS. First, this routine will be described with reference to the flowchart of FIG.

まず、ステップ#402において、 ONE SHOT - AFモードか AI SERVO - AFモードかを判定し、 ONE SHOT - AFモードならステップ#403へ、 AI SERVO - AFモードならステップ#404へ進み、それぞれCFスイッチがオンされているかどうかを判定する。この結果、 ONE SHOT - AFモードかつCFスイッチがオフされているのなら、ステップ#403からステップ#405へ進み、ここでは ONE SHOT - AFにおける第一優先領域の設定を行い、CFスイッチがオンなら、ステップ#403からステップ#406へ進み、ここでは ONE SHOT - AF,CFスイッチオンにおける第一優先領域の設定を行う。一方、 AI SERVO - AFモードかつCFスイッチがオフされているのなら、ステップ#404からステップ#407へ進み、ここでは AI SERVO - AFにおける第一優先領域の設定を行い、CFスイッチがオンなら、ステップ#404からステップ#408へ進み、ここでは AI SERVO - AF,CFスイッチオンにおける第一優先領域の設定を行う。   First, in step # 402, it is determined whether the ONE SHOT-AF mode or AI SERVO-AF mode. If the ONE SHOT-AF mode, the process proceeds to step # 403. If AI SERVO-AF mode, the process proceeds to step # 404. Determine if it is turned on. As a result, if the ONE SHOT-AF mode and the CF switch are turned off, the process proceeds from step # 403 to step # 405, where the first priority area is set in ONE SHOT-AF, and the CF switch is turned on. The process proceeds from step # 403 to step # 406, where the first priority area is set when the ONE SHOT-AF, CF switch is turned on. On the other hand, if the AI SERVO-AF mode and the CF switch are off, the process proceeds from step # 404 to step # 407. Here, the first priority area in AI SERVO-AF is set, and if the CF switch is on, The process proceeds from step # 404 to step # 408, where the first priority area is set when the AI SERVO-AF, CF switch is turned on.

図6のステップ#204からこの図10の「第一優先領域の設定」ルーチンが呼ばれた場合、前述した図10のステップ#405の ONE SHOT - AFにおける第一優先領域の設定が行われることになる。この設定は具体的には、図12(a)の様に、45点の焦点検出領域のうち、黒色の枠で示される1,4,7,18,20,23,26,28,39,42および45の計11の焦点検出領域を第一優先領域として設定している。   When the “first priority area setting” routine of FIG. 10 is called from step # 204 of FIG. 6, the first priority area is set in ONE SHOT-AF of step # 405 of FIG. 10 described above. become. Specifically, as shown in FIG. 12 (a), this setting is performed by using 1, 4, 7, 18, 20, 23, 26, 28, 39, A total of 11 focus detection areas 42 and 45 are set as the first priority areas.

図6に戻り、第一優先領域の設定後はステップ#205へ進み、変数FLAG1に0を代入して焦点検出センサの蓄積を開始し、次のステップ#208において、最大蓄積時間のチェックを行う。センサの蓄積が予め設定した時間(最大蓄積時間)を経過しても終了しない場合にはステップ#210へ進み、センサの蓄積を強制的に終了させ、全ての像信号を読み出す。そして、次のステップ#211において、焦点検出領域の評価、つまり45点の焦点検出領域の中から主被写体位置に対応していると判定するのに最もふさわしい焦点検出領域(以下、この有効な焦点検出領域とも記す)として最終的な焦点検出領域(焦点調節に用いるデフォーカス量が得られる領域)を探し出す。この最終的な焦点検出領域の具体的な決定方法は、後述する第一優先領域の評価において説明する。そして、ステップ#221へ進み、探し出された焦点検出領域をレンズ駆動に供するデフォーカス量が得られる最終的な焦点検出領域として設定する。   Returning to FIG. 6, after the first priority area is set, the process proceeds to step # 205, where 0 is substituted into the variable FLAG1 to start accumulation of the focus detection sensor, and in the next step # 208, the maximum accumulation time is checked. . If sensor accumulation does not end even after a preset time (maximum accumulation time) has elapsed, the process proceeds to step # 210 to forcibly terminate sensor accumulation and read out all image signals. In the next step # 211, the focus detection area (hereinafter referred to as this effective focus detection area) that is most suitable for evaluating the focus detection area, that is, determining that it corresponds to the main subject position from among the 45 focus detection areas. The final focus detection area (area where the defocus amount used for focus adjustment can be obtained) is searched for as a detection area). A specific method for determining the final focus detection area will be described in the evaluation of the first priority area described later. Then, the process proceeds to step # 221, where the found focus detection area is set as a final focus detection area from which a defocus amount for lens driving can be obtained.

一方、上記ステップ#208にて最大蓄積時間を経過していないと判定した場合はステップ#209へ進み、センサの読み出しチェックおよび読み出しを行う。この動作としては、まず、各センサの蓄積が終了しているかどうかを判定し、各センサのうち蓄積終了したセンサがある場合、未だそのセンサの像信号を読み出しを完了していなければ、そのセンサに対して像信号の読み出しを行う。そして、次のステップ#212において、新たな像信号の読み出しを行ったかを判定し、読み出しを行っていない場合には、最大蓄積時間を経過しない限り像信号の読み出しチェックおよび読み出しを繰り返す(#212→#208……)。   On the other hand, if it is determined in step # 208 that the maximum accumulation time has not elapsed, the process proceeds to step # 209 to perform sensor reading check and reading. As this operation, first, it is determined whether or not the accumulation of each sensor has been completed. If there is a sensor that has completed accumulation among the sensors, if the readout of the image signal of that sensor has not yet been completed, The image signal is read out. Then, in the next step # 212, it is determined whether or not a new image signal has been read out. If reading has not been performed, the image signal reading check and reading are repeated unless the maximum accumulation time has elapsed (# 212). → # 208 ……).

また、新たな像信号の読み出しが行われたことを判定した場合はステップ#213へ進み、その相関演算を行い、相関演算終了後は図7のステップ#214へ進み、FLAG1が0であるかどうかを判定する。なお、FLAG1は第一優先領域の全ての焦点検出領域において相関演算が終了した場合には1、そうでない場合には0となるフラグ変数である。ここで、FLAG1が0と判定した場合はステップ#215へ進み、上記ステップ#209で新たな像信号の読み出したことによって、第一優先領域の全ての焦点検出領域において相関演算が終了したかどうかを判定する。ここで、終了していないと判定した場合には、最大蓄積時間を経過しない限り像信号の読み出しチェックおよび読み出し、そして相関演算を繰り返す(#215→#208→#209……)。   If it is determined that a new image signal has been read, the process proceeds to step # 213 to perform the correlation calculation. After the correlation calculation is completed, the process proceeds to step # 214 in FIG. Determine if. FLAG1 is a flag variable that becomes 1 when the correlation calculation is completed in all focus detection areas of the first priority area, and 0 otherwise. If it is determined that FLAG1 is 0, the process proceeds to step # 215. Whether or not the correlation calculation has been completed in all focus detection areas of the first priority area by reading a new image signal in step # 209. Determine. If it is determined that the processing has not been completed, the image signal readout check, readout, and correlation calculation are repeated unless the maximum accumulation time has elapsed (# 215 → # 208 → # 209...).

一方、終了したと判定した場合にはステップ#216へ進み、FLAG1を1に設定し、ステップ#217において、第一優先領域の評価を行い、第一優先領域の中から有効な焦点検出領域を最終的な焦点検出領域候補として決定する。   On the other hand, if it is determined that the process has ended, the process proceeds to step # 216, FLAG1 is set to 1, and in step # 217, the first priority area is evaluated, and an effective focus detection area is selected from the first priority areas. The final focus detection area candidate is determined.

具体的には、図16のフローチャートで示す様に、まずステップ#602において、焦点検出領域候補として第一優先領域の焦点検出領域を全て設定する。そして、次のステップ#604において、第一優先領域の焦点検出領域一つ一つに対して焦点検出信頼度の判定を行う。焦点検出信頼度は、図17のステップ#702〜#707に示す様に、コントラストと相対位置変位量を求める際に対にする2つの像信号の一致度、この2つの要素を加味して求めている。この動作は一般的であるので、これ以上の説明は省略する。   Specifically, as shown in the flowchart of FIG. 16, first, in step # 602, all focus detection areas of the first priority area are set as focus detection area candidates. In the next step # 604, the focus detection reliability is determined for each focus detection area of the first priority area. As shown in steps # 702 to # 707 of FIG. 17, the focus detection reliability is obtained by considering the degree of coincidence of two image signals to be paired when obtaining the contrast and the relative displacement amount, and taking these two factors into consideration. ing. Since this operation is general, further explanation is omitted.

上記の様にして全ての領域の信頼度を判定し終えるとステップ#606へ進み、信頼度がある基準値を満たす焦点検出領域の中から最も有効な焦点検出領域候補を決定する。焦点検出領域候補は、画面内の各焦点検出領域に予め設定されている重み付けや相関演算によって算出されたデフォーカス量などを基に総合的に求めている。この焦点検出領域候補の決定方法は、様々な手法が提案され公知の技術であり、本発明とは関係ないので説明を省略する。   When the reliability of all the areas has been determined as described above, the process proceeds to step # 606, and the most effective focus detection area candidate is determined from among the focus detection areas satisfying a certain reference value. The focus detection area candidates are comprehensively obtained based on weights preset for each focus detection area in the screen, a defocus amount calculated by correlation calculation, and the like. This method for determining a focus detection area candidate is a well-known technique for which various methods have been proposed, and will not be described because it is not related to the present invention.

図7に戻って、ステップ218においては、選択された焦点検出領域候補の信頼度が予め定められた基準値を超えるかどうかを判定し、基準値を超えると判定した場合にはステップ#221へ進み、この領域をレンズ駆動に供するデフォーカス量を得る最終的な焦点検出領域として設定する。   Returning to FIG. 7, in step 218, it is determined whether the reliability of the selected focus detection region candidate exceeds a predetermined reference value. If it is determined that the reliability exceeds the reference value, the process proceeds to step # 221. Then, this area is set as a final focus detection area for obtaining a defocus amount for lens driving.

また、基準値を超えない場合には、第一優先領域以外の図12(b)に示す焦点検出領域に、より有効な焦点検出領域が存在する可能性があるので図6のステップ#208へ戻り、残りの焦点検出領域の調査をする。   If the reference value is not exceeded, there is a possibility that a more effective focus detection area may exist in the focus detection area shown in FIG. 12B other than the first priority area, so go to step # 208 in FIG. Return and investigate the remaining focus detection area.

具体的には、ステップ#216でFLAG1は1に設定されたので、ステップ#214ではステップ#219へ進むことになり、最大蓄積時間を経過しない限り像信号の読み出しチェックおよび読み出し、そして相関演算を繰り返す。ステップ#219において残りの焦点検出の相関演算が全て終了したと判定されるとステップ#220へ進み、残りの焦点検出領域の評価を行う。ここで、第一優先領域の評価とそれ以外の焦点検出領域の評価から最も評価の高い焦点検出領域を選択する。選択終了後、ステップ#221へ進み、選択された領域をレンズ駆動に供するデフォーカス量を得る最終的な焦点検出領域として設定する。   Specifically, since FLAG1 is set to 1 in step # 216, the process proceeds to step # 219 in step # 214, and image signal readout check and readout and correlation calculation are performed unless the maximum accumulation time has elapsed. repeat. If it is determined in step # 219 that all the remaining focus detection correlation operations have been completed, the process proceeds to step # 220, and the remaining focus detection areas are evaluated. Here, the focus detection area with the highest evaluation is selected from the evaluation of the first priority area and the evaluation of the other focus detection areas. After the selection is completed, the process proceeds to step # 221, where the selected area is set as a final focus detection area for obtaining a defocus amount used for lens driving.

上記の ONE SHOT - AFにおいては、画面内の45点の焦点検出領域を図12(a)および(b)に示すように2つのグループに分割し、分割した一方のグループ(図12(a)の11点)を第一優先領域として設定し、このグループでの演算とその信頼性評価を実施し、前記評価結果が所定の判定値を満足すればその時点のグループにて演算を終了している。つまり、他のグループ(図12(b)のグループ)についは演算やその評価は行わないようしている。   In the above ONE SHOT-AF, the 45-point focus detection area in the screen is divided into two groups as shown in FIGS. 12A and 12B, and one of the divided groups (FIG. 12A). 11 points) is set as the first priority area, and the calculation in this group and its reliability evaluation are performed. If the evaluation result satisfies a predetermined determination value, the calculation is terminated in the group at that time. Yes. In other words, no calculation or evaluation is performed on other groups (the group in FIG. 12B).

上記の構成においては、被写体の移動を考慮しない ONE SHOT - AFにおいては、必ずしも全ての焦点検出領域で焦点検出を行う訳ではないので、特に風景などの被写体などで、高速かつ正確な焦点検出を行うことが可能になる。   In the above configuration, the movement of the subject is not taken into account. In ONE SHOT-AF, focus detection is not necessarily performed in all focus detection areas, so high-speed and accurate focus detection can be performed particularly on subjects such as landscapes. It becomes possible to do.

次に、図6のステップ#206において実行される「 AI SERVO - AFにおける焦点検出制御」のルーチンについて、図8及び図9のフローチャートを用いて説明する。処理の基本的な流れは、上記図6及び図7の焦点検出制御や後述する図18及び図19の「CFスイッチオンにおける焦点検出制御」のルーチンとほぼ同じである。   Next, the routine of “focus detection control in AI SERVO-AF” executed in step # 206 of FIG. 6 will be described using the flowcharts of FIGS. The basic flow of the processing is almost the same as the focus detection control in FIGS. 6 and 7 and the “focus detection control in CF switch-on” in FIGS. 18 and 19 described later.

まず、ステップ#302において、図10の「第一優先領域の設定」のルーチンを呼ぶ。このルーチンは、前述した通り、図6の「焦点検出制御」や後述する図18及び図19の「CFスイッチオンにおける焦点検出制御」のルーチンからも共通して呼ばれるが、このルーチンがステップ#302から呼ばれると、図10のステップ#407において、 AI SERVO - AFにおける第一優先領域の設定が行われる。   First, in step # 302, the "first priority area setting" routine of FIG. 10 is called. As described above, this routine is also commonly called from the “focus detection control” in FIG. 6 and the “focus detection control in CF switch-on” in FIGS. 18 and 19 to be described later. In step # 407 of FIG. 10, the first priority area is set in AI SERVO-AF.

この設定は具体的には、図14(a)の様に、45点の焦点検出領域の中央の黒色の枠で示される23の焦点検出領域のみを第一優先領域としている。但しこれは初期状態であり、前述した通り、 AI SERVO - AFは被写体の移動にレンズ駆動を追従させる撮影モードであり、焦点検出を繰り返す間に被写体が移動し、焦点検出領域が移動した場合、その焦点検出領域が第一優先領域に設定される。   Specifically, as shown in FIG. 14A, this setting uses only 23 focus detection areas indicated by a black frame at the center of the 45 focus detection areas as the first priority areas. However, this is the initial state, and as described above, AI SERVO-AF is a shooting mode that follows lens movement following the movement of the subject, and when the subject moves and the focus detection area moves while repeating focus detection, The focus detection area is set as the first priority area.

図8に戻り、第一優先領域の設定後はステップ#303へ進み、変数FLAG1およびFLAG2に0を代入し、焦点検出センサの蓄積を開始する。   Returning to FIG. 8, after the first priority area is set, the process proceeds to step # 303, where 0 is substituted into variables FLAG1 and FLAG2, and accumulation of the focus detection sensor is started.

蓄積開始によりステップ#304へ進むと、ここで最大蓄積時間のチェックを行う。センサの蓄積が予め設定した時間(最大蓄積時間)を経過しても終了しない場合はステップ#308へ進み、センサの蓄積を強制的に終了させ、全ての像信号を読み出す。そして、次のステップ#309において、焦点検出領域の評価、つまり読み出された焦点検出領域の中から最も有効な焦点検出領域を選択する。そしてステップ#324へ進み、ここで選択された領域をレンズ駆動に供するデフォーカス量を得る最終的な焦点検出領域として設定する。   When the process proceeds to step # 304 due to the start of accumulation, the maximum accumulation time is checked here. If the sensor accumulation does not end even after a preset time (maximum accumulation time) has elapsed, the process proceeds to step # 308 to forcibly terminate the sensor accumulation and read out all image signals. In the next step # 309, the focus detection area is evaluated, that is, the most effective focus detection area is selected from the read focus detection areas. Then, the process proceeds to step # 324, where the area selected here is set as a final focus detection area for obtaining a defocus amount used for lens driving.

一方、上記ステップ#304にて最大蓄積時間を経過していないと判定した場合にはステップ#305へ進み、センサの読み出しチェックおよび読み出しを行う。この動作としては、まず、各センサの蓄積が終了しているかどうかを判定し、各センサのうち蓄積終了したセンサがある場合、未だそのセンサの像信号の読み出しを完了していなければ、そのセンサに対して像信号の読み出しを行う。そして、ステップ#306において、新たな像信号の読み出しを行ったかを判定し、読み出しを行っていない場合には、最大蓄積時間を経過しない限り像信号の読み出しチェックおよび読み出しを繰り返す(#306→#304→#305→#306……)。   On the other hand, if it is determined in step # 304 that the maximum accumulation time has not elapsed, the process proceeds to step # 305 to perform sensor reading check and reading. As this operation, it is first determined whether or not the accumulation of each sensor has been completed. If there is a sensor for which accumulation has been completed among the sensors, the reading of the image signal of that sensor has not yet been completed. The image signal is read out. In step # 306, it is determined whether or not a new image signal has been read out. If reading has not been performed, the image signal reading check and reading are repeated unless the maximum accumulation time has elapsed (# 306 → #). 304 → # 305 → # 306...

また、新たな像信号の読み出しが行われたことが判定した場合はステップ#307へ進み、その相関演算を行い、相関演算終了後にステップ#310へ進み、ここではFLAG2が0であるかどうか判定する。なお、FLAG2は後述する第二優先領域の全ての焦点検出領域において相関演算が終了した場合には1、そうでない場合には0となるフラグ変数である。上記FLAG2が0と判定した場合は図9のステップ#311へ進み、1と判定した場合はステップ#317へ進む。   If it is determined that a new image signal has been read, the process proceeds to step # 307, the correlation calculation is performed, and after the correlation calculation is completed, the process proceeds to step # 310. Here, it is determined whether FLAG2 is 0 or not. To do. FLAG2 is a flag variable that is 1 when the correlation calculation is completed in all focus detection areas of the second priority area described later, and 0 otherwise. If FLAG2 is determined to be 0, the process proceeds to step # 311 of FIG. 9; if it is determined to be 1, the process proceeds to step # 317.

図9のステップ#311へ進んだ場合、今度はFLAG1が0であるかどうか判定する。前述した様に、FLAG1は第一優先領域の全ての焦点検出領域において相関演算が終了した場合には1、そうでない場合には0となるフラグ変数である。上記FLAG1が0と判定した場合はステップ#312へ進み、上記ステップ#305で新たな像信号の読み出したことによって、第一優先領域の全ての焦点検出領域において相関演算が終了したかどうかを判定する。ここで、終了していないと判定した場合は、最大蓄積時間を経過しない限り像信号の読み出しチェックおよび読み出し、そして相関演算を繰り返す(#312→#304→#305……)。   When the process proceeds to step # 311 in FIG. 9, it is determined whether or not FLAG1 is zero. As described above, FLAG1 is a flag variable that is 1 when the correlation calculation is completed in all focus detection areas of the first priority area, and is 0 otherwise. If it is determined that FLAG1 is 0, the process proceeds to step # 312, and by reading a new image signal in step # 305, it is determined whether the correlation calculation has been completed in all focus detection areas of the first priority area. To do. If it is determined that the processing has not been completed, the image signal readout check, readout, and correlation calculation are repeated unless the maximum accumulation time has elapsed (# 312 → # 304 → # 305...).

一方、終了したと判定した場合はステップ#313へ進み、FLAG1を1に設定し、次のステップ#314において、先述した第一優先領域の評価を行い、第一優先領域の中から最も有望な焦点検出領域を最終的な焦点検出領域候補として決定する。   On the other hand, if it is determined that the processing has ended, the process proceeds to step # 313, FLAG1 is set to 1, and in the next step # 314, the above-described first priority area is evaluated, and the most promising among the first priority areas. The focus detection area is determined as a final focus detection area candidate.

そして、ステップ#319において、前記決定した焦点検出領域候補の信頼度が予め定められた基準値を超えるかどうかを判定し、基準値を超えると判定した場合は図8のステップ#324へ進み、この領域をレンズ駆動に供するデフォーカス量を得る最終的な焦点検出領域として設定する。   In step # 319, it is determined whether or not the reliability of the determined focus detection area candidate exceeds a predetermined reference value. If it is determined that the reliability exceeds the reference value, the process proceeds to step # 324 in FIG. This area is set as a final focus detection area for obtaining a defocus amount for lens driving.

また、基準値を超えない場合には、第一優先領域以外の図14(b)に示す第二優先領域に、より有効な焦点検出領域が存在する可能性があるのでステップ#320へ進み、FLAG2を1に設定し、次のステップ#321において、「第二優先領域の設定」ルーチンを実行する。このルーチンについては、図18及び図19の「CFスイッチオンにおける焦点検出制御」のルーチンからも共通して呼ばれるので、まずこのルーチンについて、図11のフローチャートを用いて説明する。   If the reference value is not exceeded, there is a possibility that a more effective focus detection area exists in the second priority area shown in FIG. 14B other than the first priority area. FLAG2 is set to 1, and in the next step # 321, a "second priority area setting" routine is executed. Since this routine is commonly called from the routine of “focus detection control when the CF switch is turned on” in FIGS. 18 and 19, this routine will be described with reference to the flowchart of FIG.

まず、ステップ#502において、 ONE SHOT - AFモードか AI SERVO - AFモードかを判定し、 ONE SHOT - AFモードならステップ#503へ進み、 ONE SHOT - AF,CFスイッチオンにおける第二優先領域の設定を行う。また、 AI SERVO - AFモードならステップ#504へ進み、CFスイッチがオンされているかどうかを判定する。この結果、 AI SERVO - AFモードでCFスイッチがオフされているのならステップ#505へ進み、 AI SERVO - AFにおける第二優先領域の設定を行い、 AI SERVO - AFでCFスイッチがオンならステップ#506へ進み、 AI SERVO - AF,CFスイッチオンにおける第二優先領域の設定を行う。   First, in step # 502, it is determined whether the ONE SHOT-AF mode or the AI SERVO-AF mode. If the ONE SHOT-AF mode, the process proceeds to step # 503, and the second priority area is set when the ONE SHOT-AF, CF switch is turned on. I do. If the AI SERVO-AF mode is selected, the process proceeds to step # 504 to determine whether the CF switch is turned on. As a result, if the CF switch is turned off in AI SERVO-AF mode, the process proceeds to step # 505 to set the second priority area in AI SERVO-AF. If the CF switch is turned on in AI SERVO-AF, step # 505 is executed. Proceed to 506 to set the second priority area when the AI SERVO-AF, CF switch is turned on.

図9に戻って、ステップ#321からこの「第二優先領域の設定」のルーチンが呼ばれると、前述した図11のステップ#505の AI SERVO - AFモードにおける第二優先領域の設定が行われることになる。この設定は、具体的には図14(a)の23の焦点検出領域が第一優先領域として設定された場合、図14(b)の様に、23の焦点検出領域の周辺の12,13,22,24,33および34の計6つの焦点検出領域を第二優先領域として設定している。   Returning to FIG. 9, when the "second priority area setting" routine is called from step # 321, the second priority area is set in the AI SERVO-AF mode in step # 505 of FIG. 11 described above. become. Specifically, in the case where the 23 focus detection areas in FIG. 14A are set as the first priority areas, as shown in FIG. 14B, 12, 13 and 13 around the 23 focus detection areas are set. , 22, 24, 33 and 34 are set as the second priority areas.

上記の様にステップ#320でFLAG2が1に設定され、ステップ#321で第二優先領域が設定されると、図8のステップ#310ではステップ#317へ進むことになり、最大蓄積時間を経過しない限り像信号の読み出しチェックおよび読み出し、そして相関演算を繰り返す(#321→#304→#305→#306→#307→#310→#317……)。そして、ステップ#317において、第二優先領域の全ての焦点検出領域において相関演算が終了したと判定するとステップ#318へ進み、第二優先領域の評価を行い、第二優先領域の中から最も有効な焦点検出領域候補を選択する。そして、次のステップ#322において、前記決定した焦点検出領域候補の信頼度が予め定められた基準値を超えるかどうかを判定し、基準値を超えると判定した場合にはステップ324へ進み、選択された領域をレンズ駆動に供するデフォーカス量を得る最終的な焦点検出領域として設定する。   As described above, when FLAG2 is set to 1 in step # 320 and the second priority area is set in step # 321, the process proceeds to step # 317 in step # 310 of FIG. 8, and the maximum accumulation time has elapsed. Unless otherwise, image signal readout check, readout, and correlation calculation are repeated (# 321 → # 304 → # 305 → # 306 → # 307 → # 310 → # 317...). If it is determined in step # 317 that the correlation calculation has been completed in all focus detection areas of the second priority area, the process proceeds to step # 318, where the second priority area is evaluated, and the second priority area is most effective. A focus detection area candidate is selected. In the next step # 322, it is determined whether or not the reliability of the determined focus detection area candidate exceeds a predetermined reference value. If it is determined that the reliability exceeds the reference value, the process proceeds to step 324 to select This area is set as a final focus detection area for obtaining a defocus amount to be used for lens driving.

また、基準値を超えない場合にはステップ#323へ進み、FLAG2を0に戻して(このときFLAG1は1)、第一優先領域と第二優先領域以外の焦点検出領域(図14(c))に、より有効な焦点検出領域が存在する可能性があるので図8のステップ#304へ戻り、残りの焦点検出領域の調査をする。   If the reference value is not exceeded, the process proceeds to step # 323, FLAG2 is returned to 0 (FLAG1 is 1 at this time), and the focus detection area other than the first priority area and the second priority area (FIG. 14C). ), There is a possibility that a more effective focus detection area exists, so the process returns to step # 304 in FIG. 8 to investigate the remaining focus detection areas.

具体的には、FLAG2が0、FLAG1が1に設定された場合、ステップ#310ではステップ#311へ、ステップ#311ではステップ#315へ進むことになり、最大蓄積時間が経過しない限り、像信号の読み出しチェックおよび読み出し、そして相関演算を繰り返す(#323→#304→#305→#306→#307→#310→#311→#315……)。ステップ#315において、残りの焦点検出の相関演算が全て終了したと判定するとステップ#316へ進み、残りの焦点検出領域の評価を行う。ここで、第一優先領域、第二優先領域、そしてそれ以外の焦点検出領域の中から最も評価の高い焦点検出領域を選択する。選択終了後、図8のステップ#324へ進み、選択された領域をレンズ駆動に供するデフォーカス量を得る最終的な焦点検出領域として設定する。   Specifically, when FLAG2 is set to 0 and FLAG1 is set to 1, the process proceeds to step # 311 in step # 310, and to step # 315 in step # 311. As long as the maximum accumulation time does not elapse, the image signal The reading check, reading, and correlation calculation are repeated (# 323 → # 304 → # 305 → # 306 → # 307 → # 310 → # 311 → # 315...). If it is determined in step # 315 that all the remaining focus detection correlation calculations have been completed, the process proceeds to step # 316, where the remaining focus detection areas are evaluated. Here, the focus detection area with the highest evaluation is selected from the first priority area, the second priority area, and the other focus detection areas. After the selection is completed, the process proceeds to step # 324 in FIG. 8, and the selected area is set as a final focus detection area for obtaining a defocus amount to be used for lens driving.

以上の AI SERVO - AFにおいては、画面内の45点の焦点検出領域を、過去に選択された最終的な焦点検出領域(通常は前回のレンズ駆動に供したデフォーカス量を得た最終的な焦点検出領域)に応じて、図14(a)に示すグループの第一優先領域と図14(b)に示すグループの第二優先領域に分割(但し、 AI SERVO - AF時であるので、これらグループは過去に選択された最終的な焦点検出領域に応じて動的に変化することになる)し、これらグループに演算処理の優先順位を設け、この優先順位に従って各グループの演算と評価を実施し、それぞれのグループの評価結果が所定の判定値を満足すればその時点で演算を終了している。   In the above AI SERVO-AF, the 45 focus detection areas in the screen are used as the final focus detection area selected in the past (usually the final defocus amount used for the previous lens drive is obtained). Is divided into a first priority area of the group shown in FIG. 14 (a) and a second priority area of the group shown in FIG. 14 (b) according to the focus detection area). (Groups will change dynamically according to the final focus detection area selected in the past), and priorities of calculation processing are set for these groups, and calculation and evaluation of each group are performed according to these priorities. If the evaluation result of each group satisfies a predetermined determination value, the calculation is finished at that time.

上記構成においては、被写体の移動を考慮した AI SERVO - AFにおいて、撮影者が移動する被写体を画面内で追従する場合、一度選択された焦点検出領域が再び選択され易いことに注目し、画面内の焦点検出領域において、一度選択された焦点検出領域を中心に複数のグループに分割して評価を行い、必ずしも全ての焦点検出領域で焦点検出を行わずに、途中の評価結果によってその時点で演算を終了し、撮影者の満足のいく焦点検出結果が得られるようにしているので、モータスポーツなどの移動している被写体で、特に撮影条件によってより高速な焦点検出が必要な場合においても、正確な焦点検出を行うことができる。   In the above configuration, in AI SERVO-AF considering the movement of the subject, when the photographer follows the moving subject on the screen, pay attention to the fact that the focus detection area selected once is easily selected again. In the focus detection area, the evaluation is performed by dividing the focus detection area once selected into a plurality of groups, and the focus detection is not necessarily performed in all focus detection areas. Because the focus detection results satisfying the photographer can be obtained, it is accurate even for moving subjects such as motor sports, especially when faster focus detection is required depending on the shooting conditions. Focus detection can be performed.

次に、図6のステップ#207において実行される「CFスイッチオンにおける焦点検出制御」のルーチンについて、図18及び図19のフローチャートを用いて説明する。   Next, the routine of “focus detection control when the CF switch is turned on” executed in step # 207 of FIG. 6 will be described with reference to the flowcharts of FIGS.

まず、ステップ#802において、図10の「第一優先領域の設定」のルーチンを呼ぶ。このルーチンは、前述した通り、図6の焦点検出制御のルーチンからも共通して呼ばれるが、このルーチンがステップ#802から呼ばれると、図10において、CFスイッチがオンで ONE SHOT - AFモードの場合にはステップ#406において、 ONE SHOT - AF,CFスイッチオンにおける第一優先領域の設定が行われ、CFスイッチがオンで AI SERVO - AFモードの場合にはステップ#408において、 AI SERVO - AF,CFスイッチオンにおける第一優先領域の設定が行われることになる。   First, in step # 802, the “first priority area setting” routine of FIG. 10 is called. As described above, this routine is also commonly called from the focus detection control routine of FIG. 6, but when this routine is called from step # 802, in FIG. 10, the CF switch is on and the ONE SHOT-AF mode is selected. In step # 406, the first priority area is set when the ONE SHOT-AF, CF switch is ON. When the CF switch is ON and the AI SERVO-AF mode is set, the AI SERVO-AF, The first priority area is set when the CF switch is turned on.

この設定は具体的には、ステップ#406の ONE SHOT - AF,CFスイッチオンにおける第一優先領域の設定では、図13(a)の様に、45点の焦点検出領域のうち、黒色の枠で示される4,18,20,23,26,28および42の計7つの焦点検出領域を第一優先領域として設定している。   Specifically, in this setting, in the setting of the first priority area when the ONE SHOT-AF, CF switch is turned on in step # 406, as shown in FIG. A total of seven focus detection areas 4, 18, 20, 23, 26, 28, and 42 shown in FIG.

また、ステップ#408の AI SERVO - AF,CFスイッチオンにおける第一優先領域の設定では、上記の第一優先領域の設定に加え、過去に選択された最終的な焦点検出領域を組み合わせた設定を行う。前述した通り、 AI SERVO - AFは被写体の移動にレンズ駆動を追従させる撮影モードであり、例えば、焦点検出を繰り返す間に被写体の移動し、主焦点検出領域が図15(a)の6に焦点検出点が移動したとすると、この焦点検出領域に加えて、4,18,20,23,26,28および42の焦点検出領域も第一優先領域として設定する。   Further, in the setting of the first priority area in the AI SERVO-AF, CF switch on in step # 408, in addition to the setting of the first priority area described above, the combination of the final focus detection area selected in the past is set. Do. As described above, AI SERVO-AF is a shooting mode in which the lens drive follows the movement of the subject. For example, the subject moves while the focus detection is repeated, and the main focus detection area is focused on 6 in FIG. If the detection point is moved, the focus detection areas of 4, 18, 20, 23, 26, 28 and 42 are set as the first priority areas in addition to the focus detection area.

図18に戻り、各々の撮影モードに合わせて第一優先領域の設定後はステップ#803へ進み、変数FLAG1およびFLAG2に0を代入し、焦点検出センサの蓄積を開始する。   Returning to FIG. 18, after setting the first priority area in accordance with each photographing mode, the process proceeds to step # 803, 0 is substituted into variables FLAG 1 and FLAG 2, and accumulation of the focus detection sensor is started.

蓄積開始によりステップ#804へ進むと、ここで最大蓄積時間のチェックを行う。センサの蓄積が予め設定した時間(最大蓄積時間)を経過しても終了しない場合はステップ#808へ進み、センサの蓄積を強制的に終了させ、全ての像信号を読み出す。そして、次のステップ#809において、焦点検出領域の評価、つまり読み出された焦点検出領域の中から最も有効な焦点検出領域を選択する。そしてステップ#824へ進み、ここで選択された領域をレンズ駆動に供するデフォーカス量を得る最終的な焦点検出領域として設定する。   When the process proceeds to step # 804 due to the start of accumulation, the maximum accumulation time is checked here. If sensor accumulation does not end even after a preset time (maximum accumulation time) has elapsed, the process proceeds to step # 808 to forcibly terminate sensor accumulation and read out all image signals. In the next step # 809, the focus detection area is evaluated, that is, the most effective focus detection area is selected from the read focus detection areas. Then, the process proceeds to step # 824, where the area selected here is set as a final focus detection area for obtaining a defocus amount for lens driving.

一方、上記ステップ#804にて最大蓄積時間を経過していないと判定した場合にはステップ#805へ進み、センサの読み出しチェックおよび読み出しを行う。この動作としては、まず、各センサの蓄積が終了しているかどうかを判定し、各センサのうち蓄積終了したセンサがある場合、未だそのセンサの像信号の読み出しを完了していなければ、そのセンサに対して像信号の読み出しを行う。そして、ステップ#806において、新たな像信号の読み出しを行ったかを判定し、読み出しを行っていない場合には、最大蓄積時間を経過しない限り像信号の読み出しチェックおよび読み出しを繰り返す(#806→#804→#805→#806……)。   On the other hand, if it is determined in step # 804 that the maximum accumulation time has not elapsed, the process proceeds to step # 805 to perform sensor reading check and reading. As this operation, it is first determined whether or not the accumulation of each sensor has been completed. If there is a sensor for which accumulation has been completed among the sensors, the reading of the image signal of that sensor has not yet been completed. The image signal is read out. In step # 806, it is determined whether or not a new image signal has been read out. If reading has not been performed, the image signal reading check and reading are repeated as long as the maximum accumulation time has not elapsed (# 806 → #). 804 → # 805 → # 806 ...).

また、新たな像信号の読み出しが行われたことが判定した場合はステップ#807へ進み、その相関演算を行い、相関演算終了後にステップ#810へ進み、ここではFLAG2が0であるかどうか判定する。なお、FLAG2は後述する第二優先領域の全ての焦点検出領域において相関演算が終了した場合には1、そうでない場合には0となるフラグ変数である。上記FLAG2が0と判定した場合は図19のステップ#811へ進み、1と判定した場合はステップ#817へ進む。   If it is determined that a new image signal has been read, the process proceeds to step # 807, where the correlation calculation is performed. After the correlation calculation, the process proceeds to step # 810, where it is determined whether FLAG2 is 0 or not. To do. FLAG2 is a flag variable that is 1 when the correlation calculation is completed in all focus detection areas of the second priority area described later, and 0 otherwise. If FLAG2 is determined to be 0, the process proceeds to step # 811 in FIG. 19; if it is determined to be 1, the process proceeds to step # 817.

図19のステップ#811へ進んだ場合、今度はFLAG1が0であるかどうか判定する。前述した様に、FLAG1は第一優先領域の全ての焦点検出領域において相関演算が終了した場合には1、そうでない場合には0となるフラグ変数である。上記FLAG1が0と判定した場合はステップ#812へ進み、上記ステップ#805で新たな像信号の読み出したことによって、第一優先領域の全ての焦点検出領域において相関演算が終了したかどうかを判定する。ここで、終了していないと判定した場合は、最大蓄積時間を経過しない限り像信号の読み出しチェックおよび読み出し、そして相関演算を繰り返す(#821→#804→#805……)。   When the process proceeds to step # 811 in FIG. 19, it is determined whether or not FLAG1 is zero. As described above, FLAG1 is a flag variable that is 1 when the correlation calculation is completed in all focus detection areas of the first priority area, and is 0 otherwise. If it is determined that FLAG1 is 0, the process proceeds to step # 812, and it is determined whether or not the correlation calculation has been completed in all focus detection areas of the first priority area by reading a new image signal in step # 805. To do. If it is determined that the processing has not ended, the image signal readout check and readout and the correlation calculation are repeated unless the maximum accumulation time has elapsed (# 821 → # 804 → # 805...).

一方、終了したと判定した場合はステップ#813へ進み、FLAG1を1に設定し、次のステップ#814において、先述した第一優先領域の評価を行う。そして、第一優先領域の中から最も有望な焦点検出領域候補を決定する。次のステップ#819において、前記決定した焦点検出領域候補の信頼度が予め定められた基準値を超えるかどうかを判定し、基準値を超えると判定した場合はステップ#820へ進み、FLAG2を1に設定し、次のステップ#821において、「第二優先領域の設定」ルーチンを実行する。このルーチンは前述した通り、図8の「 AI SERVO - AFにおける焦点検出制御」のルーチンからも共通して呼ばれるが、このルーチンがステップ#821から呼ばれると、図11において、CFスイッチオンかつ ONE SHOT - AFモードの場合は、ステップ#503において、 ONE SHOT - AF,CFスイッチオンにおける第二優先領域の設定を行い、CFスイッチオンかつ AI SERVO - AFモードの場合は、ステップ#506において、 AI SERVO - AF,CFスイッチオンにおける第二優先領域の設定を行う。   On the other hand, if it is determined that the process has been completed, the process proceeds to step # 813, FLAG1 is set to 1, and in the next step # 814, the above-described first priority area is evaluated. Then, the most promising focus detection area candidate is determined from the first priority areas. In the next step # 819, it is determined whether or not the reliability of the determined focus detection area candidate exceeds a predetermined reference value. If it is determined that the reliability exceeds the reference value, the process proceeds to step # 820, and FLAG2 is set to 1. In the next step # 821, a "second priority area setting" routine is executed. As described above, this routine is commonly called from the routine of “focus detection control in AI SERVO-AF” in FIG. 8, but when this routine is called from step # 821, in FIG. 11, the CF switch is turned on and the ONE SHOT is turned on. -In AF mode, in step # 503, the second priority area is set when ONE SHOT-AF, CF switch is ON. In CF #ON and AI SERVO-AF mode, AI SERVO is set in step # 506. -Set the second priority area when the AF and CF switches are on.

この設定は具体的には、ステップ#503の ONE SHOT - AF,CFスイッチオンにおける第二優先領域の設定では、例えば、図13(a)の7点の焦点検出領域のうち、26の焦点検出領域が有望と判定した場合、図13(b)の様に、26の焦点検出領域の周辺の7,15,16,25,27,36,37および45の計8つの焦点検出領域を第二優先領域として設定している。   Specifically, in the setting of the second priority area when the ONE SHOT-AF, CF switch is turned on in step # 503, for example, 26 focus detections are performed out of the seven focus detection areas in FIG. When it is determined that the area is promising, a total of eight focus detection areas, ie, 7, 15, 16, 25, 27, 36, 37, and 45 around the 26 focus detection areas are set as the second as shown in FIG. It is set as a priority area.

また、ステップ#506の AI SERVO - AF,CFスイッチオンにおける第二優先領域の設定においては、図15(a)の8点の焦点検出領域のうち、6の焦点検出領域が有望と判定した場合、図15(b)の様に、6の焦点検出領域の周辺の5,7,14および15の計4つの焦点検出領域を第二優先領域として設定している。   Further, in the setting of the second priority area in the AI SERVO-AF, CF switch on in step # 506, when it is determined that 6 focus detection areas are promising among the 8 focus detection areas in FIG. As shown in FIG. 15B, a total of four focus detection areas 5, 7, 14, and 15 around the six focus detection areas are set as the second priority areas.

図19に戻って、ステップ#819において、上記ステップ#814にて決定した焦点検出領域候補の信頼度が予め定められた基準値を超えない場合には、第一優先領域には有望な焦点検出領域は存在しないことになるが、それ以外の焦点検出領域により有効な焦点検出領域が存在する可能性もあるので、図18のステップ#804へ戻り、残りの焦点検出領域の調査をする。   Returning to FIG. 19, in step # 819, if the reliability of the focus detection area candidate determined in step # 814 does not exceed a predetermined reference value, promising focus detection in the first priority area. Although there is no area, there is a possibility that an effective focus detection area may exist depending on other focus detection areas. Therefore, the process returns to step # 804 in FIG. 18 to investigate the remaining focus detection areas.

具体的には、図19のステップ#813でFLAG1は1に設定されたので、ステップ#811ではステップ#815へ進むことになり、最大蓄積時間を経過しない限り像信号の読み出しチェックおよび読み出し、そして相関演算を繰り返す。そして、ステップ#815において、残りの焦点検出の相関演算が全て終了したと判定するとステップ#816へ進み、残りの焦点検出領域の評価を行う。ここで、全ての焦点検出領域の中から最も評価の高い焦点検出領域を選択する。選択終了後は図18のステップ#824へ進み、選択された領域をレンズ駆動に供するデフォーカス量を得る最終的な焦点検出領域として設定する。   Specifically, since FLAG1 is set to 1 in step # 813 of FIG. 19, the process proceeds to step # 815 in step # 811, and the image signal readout check and readout are performed unless the maximum accumulation time has elapsed. Repeat the correlation operation. If it is determined in step # 815 that all correlation calculations for the remaining focus detections have been completed, the process proceeds to step # 816 to evaluate the remaining focus detection areas. Here, the focus detection area with the highest evaluation is selected from all the focus detection areas. After the selection is completed, the process proceeds to step # 824 in FIG. 18, and the selected area is set as a final focus detection area for obtaining a defocus amount to be used for lens driving.

一方、図19のステップ#820でFLAG2が1に設定され、ステップ#821で第二優先領域が設定されると、図18のステップ#810ではステップ#817へ進むことになり、最大蓄積時間を経過しない限り像信号の読み出しチェックおよび読み出し、そして相関演算を繰り返す。そして、ステップ#817において、第二優先領域の全ての焦点検出領域において相関演算が終了したと判定するとステップ#818へ進み、第二優先領域の評価を行い、第二優先領域の中から最も有効な焦点検出領域を焦点検出領域候補として決定する。そして、次のステップ#822において、前記決定した焦点検出領域候補の信頼度が予め定められた基準値を超えるかどうかを判定し、基準値を超えると判定した場合にはステップ#824へ進み、選択された領域をレンズ駆動に供するデフォーカス量を得る最終的な焦点検出領域として設定する。   On the other hand, when FLAG2 is set to 1 in step # 820 of FIG. 19 and the second priority area is set in step # 821, the process proceeds to step # 817 in step # 810 of FIG. As long as the time has not elapsed, the image signal readout check and readout and the correlation calculation are repeated. If it is determined in step # 817 that the correlation calculation has been completed in all the focus detection areas of the second priority area, the process proceeds to step # 818, where the second priority area is evaluated, and the second priority area is most effective. A focus detection area is determined as a focus detection area candidate. Then, in the next step # 822, it is determined whether or not the reliability of the determined focus detection area candidate exceeds a predetermined reference value. If it is determined that the reliability exceeds the reference value, the process proceeds to step # 824. The selected area is set as a final focus detection area for obtaining a defocus amount to be used for lens driving.

また、基準値を超えない場合にはステップ#823へ進み、FLAG2を0に戻して(このときFLAG1は1)、第一優先領域と第二優先領域以外の焦点検出領域(図13(c),図15(c))に、より有効な焦点検出領域が存在する可能性があるので図8のステップ#804へ戻り、残りの焦点検出領域の調査をする。 If the reference value is not exceeded, the process proceeds to step # 823, FLAG2 is returned to 0 (FLAG1 is 1 at this time), and the focus detection area other than the first priority area and the second priority area (FIG. 13C). , FIG. 15 (c)), there is a possibility that a more effective focus detection area exists, so the process returns to step # 804 in FIG. 8 to investigate the remaining focus detection areas.

以上の ONE SHOT - AF,CFスイッチオンにおいては、画面内の45点の焦点検出領域を、まず、図13(a)に示すグループを第一優先領域として設定し、このグループでの演算とその信頼性の評価を実施し、第一優先領域の評価結果によって、更に前記第一優先領域のグループに属する焦点検出領域を含む複数の焦点検出領域にグループ化(図13(b)参照)して演算とその信頼性評価を実施し、前記評価結果が所定の判定値を満足すればその時点のグループにて演算を終了している。   In the above ONE SHOT-AF, CF switch-on, the 45-point focus detection area in the screen is first set to the group shown in FIG. 13 (a) as the first priority area. The reliability is evaluated, and the results are further grouped into a plurality of focus detection areas including a focus detection area belonging to the first priority area group according to the evaluation result of the first priority area (see FIG. 13B). The calculation and its reliability evaluation are carried out, and if the evaluation result satisfies a predetermined judgment value, the calculation is finished in the group at that time.

上記構成においては、被写体の移動を考慮しない ONE SHOT - AFにおいて、ある特定の焦点検出領域が最終的な焦点検出領域として有望と判定した場合、その近傍の焦点検出領域も評価することによって、必ずしも全ての焦点検出領域で焦点検出を行わずとも途中の評価結果によって、撮影者の満足のいく焦点検出結果が得られることに注目しているので、特にポートレート撮影などの静止している被写体で、より繊細な焦点検出が必要な場合において、高速かつより正確な焦点検出を行うことができる。   In the above configuration, in ONE SHOT-AF that does not consider the movement of the subject, when it is determined that a specific focus detection area is promising as the final focus detection area, it is not always necessary to evaluate the focus detection area in the vicinity thereof. We are focusing on the fact that the focus detection results that satisfy the photographer can be obtained by the evaluation results in the middle without performing focus detection in all focus detection areas. When more delicate focus detection is required, high-speed and more accurate focus detection can be performed.

また、 AI SERVO - AF,CFスイッチオンにおいて、画面内の45の焦点検出領域を、過去に選択された最終的な焦点検出領域(通常は前回のレンズ駆動に供したデフォーカス量を得た最終的な焦点検出領域)に応じて、図15(a)に示すグループを第一優先領域に動的に( AI SERVO - AF時であるので)分割し、このグループを最先の演算の処理順位とし、この順位に従って演算と評価を実施するが、第一優先領域の評価結果によっては、図15(b)に示すグループの第二優先領域を動的に設定し、このグループにて所定の判定値を満足すればその時点で演算を終了している。   In addition, when the AI SERVO-AF and CF switches are turned on, the 45 focus detection areas in the screen are changed to the final focus detection areas selected in the past (usually the final defocus amount obtained for the previous lens drive). The group shown in FIG. 15A is dynamically divided into first priority areas (because during AI SERVO-AF) according to the focus detection area), and this group is processed in the first calculation order. According to this ranking, calculation and evaluation are performed. Depending on the evaluation result of the first priority area, the second priority area of the group shown in FIG. 15B is dynamically set, and a predetermined determination is made in this group. If the value is satisfied, the calculation is finished at that time.

上記構成においては、被写体の移動を考慮した AI SERVO - AFにおいて、一度選択された焦点検出領域のみならず、画面内の焦点検出領域を複数の領域に分割しての評価も同時に行い、ある特定の焦点検出領域が最終的な焦点検出領域として有望と判定した場合、その近傍の焦点検出領域を評価することによって、必ずしも全ての焦点検出領域で焦点検出を行わずに、途中の評価結果によってその時点で演算を終了し、撮影者の満足のいく焦点検出結果が得られるようにしているので、移動している被写体で、特に動きの激しくかつ撮影者の主被写体が頻繁に変化するサッカーゲームのような撮影でも、高速かつ正確な焦点検出を行うことができる。   In the above configuration, in AI SERVO-AF considering the movement of the subject, not only the focus detection area once selected, but also the evaluation by dividing the focus detection area in the screen into multiple areas is performed at the same time. If it is determined that the focus detection area is promising as the final focus detection area, the focus detection area in the vicinity thereof is evaluated, and the focus detection is not necessarily performed in all focus detection areas, and the evaluation result during the evaluation is used. Since the calculation is completed at the time, so that the photographer's satisfactory focus detection result is obtained, the moving subject, especially in the soccer game where the main subject of the photographer changes frequently and the subject is moving frequently. Even in such shooting, high-speed and accurate focus detection can be performed.

(変形例)
上記実施例において、例えば図13では、第一優先領域の中に満足する領域があった場合、その領域を中心とした第二の優先領域を新たにグループ化し、このグループの中に適切な領域があった場合は、その時点で演算を終了するようにしているが、これに限定されるものではなく、更にこのグループの中の最適な領域を中心とした第三の優先領域、さらには第四の優先領域を新たにグループ化し、これらグループの中に適切な領域があった時点で演算を終了するようにしても良い。
(Modification)
In the above embodiment, for example, in FIG. 13, when there is a satisfied area in the first priority area, the second priority area centered on the area is newly grouped, and an appropriate area is included in this group. However, the present invention is not limited to this, and is not limited to this. Further, the third priority area centered on the optimum area in this group, and further the first The four priority areas may be newly grouped, and the calculation may be terminated when there is an appropriate area in these groups.

また、図14の例では、第1の優先領域が満足すれば、その時点で演算を終了するようにしているが、これを満足した場合に、更にその周辺の領域も演算して評価して(図14(b)の状態)、この中に満足する領域が存在すればこの時点で演算を終了する様な実施例にする事を可能であり、これにより、図14(b)に示す各6つの領域の方が最適な焦点検出の対象領域となる被写体に対して、有効なカメラとなる。   Further, in the example of FIG. 14, if the first priority area is satisfied, the calculation is terminated at that time, but if this is satisfied, the surrounding area is further calculated and evaluated. (The state of FIG. 14B) If there is a satisfactory region in this, it is possible to make an embodiment in which the calculation is terminated at this point. The six regions are effective cameras for the subject that is the optimal focus detection target region.

本実施例では、一眼レフカメラについて説明したが、本発明はビデオカメラや電子スチルカメラ等の他の光学機器にも適用可能である。   In this embodiment, a single-lens reflex camera has been described, but the present invention can also be applied to other optical devices such as a video camera and an electronic still camera.

また、焦点検出装置を例にしているが、被写体までの距離を測定するのに用いられる複数の測距領域を有した測距装置にも適用できる事は言うまでもない。   Although the focus detection device is taken as an example, it goes without saying that the present invention can also be applied to a distance measurement device having a plurality of distance measurement regions used for measuring the distance to the subject.

本発明の実施例に係る自動焦点検出機能付き一眼レフカメラの電気的構成を示すブロック図である。It is a block diagram which shows the electrical constitution of the single-lens reflex camera with an automatic focus detection function which concerns on the Example of this invention. 従来のカメラのファインダ内に設定された焦点検出領域を示す図である。It is a figure which shows the focus detection area | region set in the finder of the conventional camera. 本発明の実施例に係るカメラのファインダ内に設定された焦点検出領域を示す図である。It is a figure which shows the focus detection area | region set in the finder of the camera which concerns on the Example of this invention. 本発明の実施例に係るカメラのメイン動作を示すフローチャートである。It is a flowchart which shows the main operation | movement of the camera which concerns on the Example of this invention. 図4のステップ#007で実行される焦点検出領域自動選択撮影の動作を示すフローチャートである。FIG. 5 is a flowchart illustrating an operation of focus detection area automatic selection shooting performed in step # 007 of FIG. 4. FIG. 図5のステップ#103で実行される焦点検出制御の動作の一部を示すフローチャートである。It is a flowchart which shows a part of operation | movement of the focus detection control performed by step # 103 of FIG. 図6の動作の続きを示すフローチャートである。7 is a flowchart showing a continuation of the operation of FIG. 6. 図6のステップ#206で実行される焦点検出制御の動作の一部を示すフローチャートである。It is a flowchart which shows a part of operation | movement of the focus detection control performed by step # 206 of FIG. 図8の動作の続きを示すフローチャートである。FIG. 9 is a flowchart showing a continuation of the operation of FIG. 8. FIG. 図6のステップ#204や図8のステップ#302で実行される第一優先領域の設定の動作を示すフローチャートである。FIG. 9 is a flowchart showing a first priority area setting operation executed in step # 204 of FIG. 6 and step # 302 of FIG. 図9のステップ#321で実行される第二優先領域の設定の動作を示すフローチャートである。It is a flowchart which shows the operation | movement of the setting of the 2nd priority area | region performed by step # 321 of FIG. 本発明の実施例に係るカメラにおいて45点の焦点検出領域を複数にグループ化した状態を示す図である。It is a figure which shows the state which grouped 45 focus detection area | regions into multiple in the camera which concerns on the Example of this invention. 本発明の実施例に係るカメラにおいて45点の焦点検出領域の ONE SHOT - AF,CFスイッチオンにおける焦点検出領域を複数にグループ化した状態を示す図である。It is a figure which shows the state which grouped the focus detection area | region in ONE SHOT-AF, CF switch-on of 45 focus detection areas into multiple in the camera which concerns on the Example of this invention. 本発明の実施例に係るカメラにおいて45点の焦点検出領域の AI SERVO - AFにおける焦点検出領域を複数にグループ化した状態を示す図である。It is a figure which shows the state which grouped the focus detection area | region in AI SERVO-AF of 45 focus detection areas into multiple in the camera which concerns on the Example of this invention. 本発明の実施例に係るカメラにおいて45点の焦点検出領域の AI SERVO - AF,CFスイッチオンにおける焦点検出領域を複数にグループ化した状態を示す図である。It is a figure which shows the state which grouped the focus detection area | region in AI SERVO-AF, CF switch-on of 45 focus detection areas into multiple in the camera which concerns on the Example of this invention. 図7のステップ#216や図9のステップ#314で実行される第一優先領域の評価の動作を示すフローチャートである。FIG. 10 is a flowchart showing the first priority area evaluation operation executed in step # 216 of FIG. 7 and step # 314 of FIG. 9; 図16のステップ#604で実行される焦点検出信頼度判定の動作を示すフローチャートである。17 is a flowchart showing an operation of focus detection reliability determination executed in step # 604 of FIG. 図6のステップ#207で実行される焦点検出制御の動作の一部を示すフローチャートである。It is a flowchart which shows a part of operation | movement of the focus detection control performed by step # 207 of FIG. 図18の動作の続きを示すフローチャートである。It is a flowchart which shows the continuation of the operation | movement of FIG.

符号の説明Explanation of symbols

1 MPU
2 メモリ
3 焦点検出ユニット
4 レンズ駆動ユニット
9 AF切換えスイッチ
10 CFスイッチ
1 MPU
2 Memory 3 Focus detection unit 4 Lens drive unit 9 AF switch 10 CF switch

Claims (2)

複数の焦点検出領域において位相差を検出可能であって、前記複数の焦点検出領域にて得られる出力を基に焦点検出動作を行う演算手段を有する焦点検出装置において、
前記演算手段は、
前記複数の焦点検出領域のうち第一優先領域として設定された少なくとも1以上の焦点検出領域の信頼度のいずれかが基準を超えると判断された場合には、前記基準を超えると判断された焦点検出領域の中からレンズ制御に寄与する焦点検出領域を決定して焦点検出の演算を終了し、
前記第一優先領域に属する焦点検出領域の信頼度のいずれもが基準を超えないと判断された場合には、前記複数の焦点検出領域のうち前記第一優先領域には属さない、前記第一優先領域の周辺の焦点検出領域を第二優先領域として設定し、前記第二優先領域に属する焦点検出領域の信頼度のいずれかが基準を超えると判断された場合、前記基準を超えると判断された焦点検出領域の中からレンズ制御に寄与する焦点検出領域を決定することを特徴とする焦点検出装置。
In the focus detection apparatus having a calculation unit that can detect a phase difference in a plurality of focus detection areas and performs a focus detection operation based on an output obtained in the plurality of focus detection areas.
The computing means is
If it is determined that any of the reliability of at least one focus detection area set as the first priority area among the plurality of focus detection areas exceeds the reference, the focus determined to exceed the reference Decide the focus detection area that contributes to lens control from the detection area and finish the focus detection calculation,
Wherein when the first none of the reliability of the focus detection area belonging to the priority region is determined to not exceed the reference does not belong to the first priority area of the plurality of focus detection areas, the first The focus detection area around the one priority area is set as the second priority area, and if any of the reliability of the focus detection area belonging to the second priority area is determined to exceed the reference, it is determined that the reference is exceeded. focus detection device and determines the focus detection area which contributes to the lens control from the focus detection area.
前記演算手段は、前記第二優先領域に属する焦点検出領域の信頼度のいずれもが前記基準を超えないと判断された場合には、前記複数の焦点検出領域のうち前記第一優先領域前記第二優先領域、そして前記第一優先領域および前記第二優先領域以外の焦点検出領域の中から最も評価の高い焦点検出領域をレンズ制御に寄与する焦点検出領域として決定することを特徴とする請求項1に記載の焦点検出装置。 When the calculation means determines that none of the reliability of the focus detection area belonging to the second priority area exceeds the reference, the first priority area of the plurality of focus detection areas , The focus detection area having the highest evaluation among the second priority area and the focus detection areas other than the first priority area and the second priority area is determined as a focus detection area contributing to lens control. Item 4. The focus detection apparatus according to Item 1.
JP2007240347A 2007-09-18 2007-09-18 Focus detection device Expired - Fee Related JP4542126B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007240347A JP4542126B2 (en) 2007-09-18 2007-09-18 Focus detection device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007240347A JP4542126B2 (en) 2007-09-18 2007-09-18 Focus detection device

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP27642298A Division JP4497567B2 (en) 1998-05-26 1998-09-14 Focus detection device, distance measuring device and optical instrument

Publications (2)

Publication Number Publication Date
JP2008052285A JP2008052285A (en) 2008-03-06
JP4542126B2 true JP4542126B2 (en) 2010-09-08

Family

ID=39236331

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007240347A Expired - Fee Related JP4542126B2 (en) 2007-09-18 2007-09-18 Focus detection device

Country Status (1)

Country Link
JP (1) JP4542126B2 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5315019B2 (en) * 2008-11-18 2013-10-16 ルネサスエレクトロニクス株式会社 Autofocus device, autofocus method, and imaging device
JP6021544B2 (en) * 2012-09-20 2016-11-09 キヤノン株式会社 Focus detection device
JP5886781B2 (en) 2013-03-26 2016-03-16 キヤノン株式会社 FOCUS DETECTION DEVICE, FOCUS DETECTION METHOD AND PROGRAM, AND IMAGING DEVICE
JP6415196B2 (en) * 2014-09-08 2018-10-31 キヤノン株式会社 IMAGING DEVICE AND IMAGING DEVICE CONTROL METHOD

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6317417A (en) * 1986-06-09 1988-01-25 Minolta Camera Co Ltd Focus detecting device
JPS63193133A (en) * 1987-02-06 1988-08-10 Minolta Camera Co Ltd Automatic focusing device
JPH08262317A (en) * 1995-03-22 1996-10-11 Asahi Optical Co Ltd Automatic focus detecting device of camera
JPH10170813A (en) * 1996-12-11 1998-06-26 Canon Inc Focus detector, automatic focusing device, and camera

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6317417A (en) * 1986-06-09 1988-01-25 Minolta Camera Co Ltd Focus detecting device
JPS63193133A (en) * 1987-02-06 1988-08-10 Minolta Camera Co Ltd Automatic focusing device
JPH08262317A (en) * 1995-03-22 1996-10-11 Asahi Optical Co Ltd Automatic focus detecting device of camera
JPH10170813A (en) * 1996-12-11 1998-06-26 Canon Inc Focus detector, automatic focusing device, and camera

Also Published As

Publication number Publication date
JP2008052285A (en) 2008-03-06

Similar Documents

Publication Publication Date Title
EP1684503B1 (en) Camera and autofocus control method therefor
US7602435B2 (en) Image-taking apparatus and focus control program for image-taking apparatus
JP4390286B2 (en) Camera, control method thereof, program, and storage medium
US8525919B2 (en) Image-pickup apparatus and control method therefor which provide at least two types of focus control and which output information for causing a user to recognize the type of focus control currently performed, wherein the information is output when a first of the types of focus control is performed but not when a second of the types of focus control is performed
US20040057712A1 (en) Camera system and camera
US8103158B2 (en) Image sensing apparatus and control method thereof
JP5241096B2 (en) IMAGING DEVICE, ITS CONTROL METHOD, PROGRAM, AND STORAGE MEDIUM
JP4687291B2 (en) Focus adjustment device and imaging device
JP4542126B2 (en) Focus detection device
JP5879736B2 (en) Image tracking device and imaging device
JP6486098B2 (en) Imaging apparatus and control method thereof
JP4497567B2 (en) Focus detection device, distance measuring device and optical instrument
US8355626B2 (en) Lens-interchangeable camera performing focus control, lens barrel, and program
JP5947489B2 (en) Focus adjustment device and focus adjustment method
JPH11337814A (en) Optical device
JPH11211974A (en) Image pickup device
JP2004361431A (en) Imaging unit
JP2019032443A (en) Focus adjustment device, imaging device, focus adjustment method, and program
JPS6155620A (en) Automatic focusing device
JP2001194578A (en) Multipoint automatic focusing camera
JP7431555B2 (en) Imaging device and its control method
US20200099842A1 (en) Image capturing apparatus and control method thereof, and storage medium
JP2006171381A (en) Camera
JP2012169920A (en) Imaging apparatus and control method
JP2018116265A (en) Focal point detector, method for control, program, and storage medium

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100105

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100308

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100406

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100531

RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20100601

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20100622

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20100624

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130702

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees