JP2008052285A - Focus detecting device - Google Patents

Focus detecting device Download PDF

Info

Publication number
JP2008052285A
JP2008052285A JP2007240347A JP2007240347A JP2008052285A JP 2008052285 A JP2008052285 A JP 2008052285A JP 2007240347 A JP2007240347 A JP 2007240347A JP 2007240347 A JP2007240347 A JP 2007240347A JP 2008052285 A JP2008052285 A JP 2008052285A
Authority
JP
Japan
Prior art keywords
focus detection
areas
group
evaluation
calculation
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.)
Granted
Application number
JP2007240347A
Other languages
Japanese (ja)
Other versions
JP4542126B2 (en
Inventor
Tomokazu Yoshida
智一 吉田
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

Landscapes

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

Abstract

<P>PROBLEM TO BE SOLVED: To fast and accurately detect focus information even when a detection device has a large number of focus detection regions. <P>SOLUTION: An operation means divides a plurality of focus detection regions into a plurality of groups, sets an order of priority for operation in the above groups and carries out an operation process and evaluation in the order of higher priority. After evaluation, if a group satisfying a prescribed evaluation value is present, the group is further divided into new groups around focus detection regions with a high evaluation value. When a satisfying evaluation value is obtained after carrying out an operation process and reliability evaluation on the new groups, the operation process is immediately terminated in this stage (steps #818, #822, #824 and #825 in the figure). <P>COPYRIGHT: (C)2008,JPO&INPIT

Description

本発明は、複数の焦点検出領域を有する焦点検出装置や、複数の測距領域を有する測距装置、さらには前記焦点検出装置又は前記測距装置を有するカメラ等の光学機器の改良に関するものである。   The present invention relates to a focus detection apparatus having a plurality of focus detection areas, a distance measurement apparatus having a plurality of distance measurement areas, and an improvement in optical equipment such as the focus detection apparatus or a camera having the distance measurement apparatus. is there.

従来、カメラの自動焦点検出装置として、撮影レンズの異なる射出瞳領域を通過した被写体からの光束を、一対のラインセンサ上に結合させ、被写体像を光電変換して得られた一対の像信号の相対位置変位量を求めることにより、被写体のデフォーカス量を検出して、これに基づいて撮影レンズの駆動を行う自動焦点調節方法が広く知られている。   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.

(発明の目的)
本発明の第1の目的は、多数の焦点検出領域を有するものにおいても、高速かつ正確な焦点情報の検出を行うことのできる焦点検出装置及び光学機器を提供しようとするものである。
(Object of invention)
A first object of the present invention is to provide a focus detection apparatus and an optical apparatus capable of detecting focus information at high speed and accurately even when a plurality of focus detection areas are provided.

本発明の第2の目的は、多数の測距領域を有するものにおいても、高速かつ正確な測距情報の検出を行うことのできる測距装置及び光学機器を提供しようとするものである。   A second object of the present invention is to provide a distance measuring apparatus and an optical apparatus capable of detecting distance information at high speed and accurately even in a case having a large number of distance measuring areas.

上記第1の目的を達成するために、請求項1及び6記載の本発明は、画面内に複数の焦点検出領域を持ち、前記複数の焦点検出領域にて得られる出力を基に焦点検出動作を行う演算手段を有する焦点検出装置において、前記演算手段が、前記複数の焦点検出領域を複数のグループに分割すると共に、これら各グループに演算処理の優先順位を付け、優先順位の高いグループから順に演算処理及びその評価を実施していくが、前記評価の結果、所定の評価値を満足するグループが存在すれば、更に前記グループに属する焦点検出領域のうちの評価の高い焦点検出領域を中心として新たにグループ化していき、前記新たなグループの演算処理とその信頼性評価を実施した結果、前記評価の中に満足するものがあればその時点で演算処理を終了する焦点検出装置とするものである。   In order to achieve the first object, the present invention according to claims 1 and 6 has a plurality of focus detection areas in a screen, and a focus detection operation based on outputs obtained in the plurality of focus detection areas. In the focus detection apparatus having the calculation means for performing the calculation, the calculation means divides the plurality of focus detection areas into a plurality of groups, and prioritizes calculation processing for each of these groups. As a result of the evaluation, if there is a group that satisfies a predetermined evaluation value, the focus detection area of the focus detection area belonging to the group is further centered. As a result of newly grouping and performing the calculation process and reliability evaluation of the new group, if there is a satisfaction in the evaluation, the calculation process is terminated at that point. It is an inspection detection device.

上記構成を、例えばカメラの焦点検出装置に適用することにより、被写体の移動を考慮しないONE SHOT - AFにおいて、画面内の焦点検出領域を複数のグループに分割して優先順に評価してき、所定の評価値を満足するグループが存在すれば、そのグループのある特定の焦点検出領域を中心とした新たなグループ化を行っていき、この新たなグループが満足するものであればその時点で演算処理を終了するようにしているので、必ずしも全ての焦点検出領域で焦点検出を行わずとも途中の評価結果によって撮影者の満足のいく焦点検出結果が得られる、特にポートレート撮影などの静止している被写体の焦点検出に適したものとなる。   By applying the above configuration to, for example, a camera focus detection device, in ONE SHOT-AF that does not consider subject movement, the focus detection area in the screen is divided into a plurality of groups and evaluated in priority order. If there is a group that satisfies the value, a new grouping is performed around a specific focus detection area of the group, and if this new group is satisfied, the calculation process ends at that point Therefore, it is possible to obtain a satisfactory focus detection result for the photographer by the evaluation result in the middle without necessarily performing focus detection in all focus detection areas, particularly for stationary subjects such as portrait photography. It is suitable for focus detection.

同じく上記第1の目的を達成するために、請求項2,3及び6記載の本発明は、画面内に複数の焦点検出領域を持ち、前記複数の焦点検出領域にて得られる出力を基に焦点検出動作を行う演算手段を有する焦点検出装置において、前記演算手段が、過去に選択された最終的な焦点検出領域について演算処理及びその評価を実施し、前記評価結果、一定の評価値を満足すればその時点で演算処理を終了する焦点検出装置とするものである。   Similarly, in order to achieve the first object, the present invention according to claims 2, 3 and 6 has a plurality of focus detection areas in a screen and is based on outputs obtained in the plurality of focus detection areas. In a focus detection apparatus having a calculation means for performing a focus detection operation, the calculation means performs calculation processing and evaluation on a final focus detection region selected in the past, and satisfies the evaluation result and a constant evaluation value. In this case, the focus detection device ends the calculation process at that time.

上記構成を、例えばカメラの焦点検出装置に適用することにより、被写体の移動を考慮したAI SERVO - AFにおいて、撮影者が移動する被写体を画面内で追従する場合、一度選択された焦点検出領域が再び選択され易いことに注目し、一度選択された焦点検出領域で評価をし、ここで満足すればこれで焦点検出を終了するが、満足しなかった場合は前記一度選択された焦点検出領域に基づいて複数の焦点検出領域を複数のグループに動的に分割して優先順に評価し、所定の評価値を満足するグループが存在すればその時点で演算処理を終了するようにしているので、必ずしも全ての焦点検出領域で焦点検出を行わずとも途中の評価結果によっては撮影者の満足のいく焦点検出結果が得られる、モータスポーツなどの移動している被写体の焦点検出に適したものとなる。   When the above configuration is applied to a focus detection device of a camera, for example, in AI SERVO-AF considering the movement of the subject, when the photographer follows the moving subject in the screen, the focus detection region selected once is Focusing on the fact that it is easy to be selected again, evaluation is performed with the focus detection area selected once, and if satisfied here, the focus detection is completed. If not satisfied, the focus detection area is selected once. On the basis of the above, the plurality of focus detection areas are dynamically divided into a plurality of groups and evaluated in the priority order, and if there is a group that satisfies a predetermined evaluation value, the calculation process is terminated at that time. For focus detection of moving subjects such as motor sports, where focus detection results that are satisfactory to the photographer can be obtained depending on the evaluation results in the middle without performing focus detection in all focus detection areas It will be suitable.

同じく上記第1の目的を達成するために、請求項4及び6記載の本発明は、画面内に複数の焦点検出領域を持ち、前記複数の焦点検出領域にて得られる出力を基に焦点検出動作を行う演算手段を有する焦点検出装置において、前記演算手段が、前記複数の焦点検出領域を、過去に選択された最終的な焦点検出領域を含むグループ並びに該グループとは異なるグループの複数のグループに分割すると共に、これら各グループに演算処理の優先順位を付け、優先順位の高いグループから順に演算処理及びその信頼性評価を実施していくが、前記評価結果、所定の評価値を満足するグループが存在すればその時点で演算処理を終了する焦点検出装置とするものである。   Similarly, in order to achieve the first object, the present invention according to claims 4 and 6 has a plurality of focus detection areas in a screen, and performs focus detection based on outputs obtained in the plurality of focus detection areas. In a focus detection apparatus having a calculation means for performing an operation, the calculation means includes a plurality of focus detection areas, a group including a final focus detection area selected in the past, and a plurality of groups different from the group. In addition, each group is prioritized in arithmetic processing, and arithmetic processing and reliability evaluation are performed in order from the highest priority group. The evaluation result is a group that satisfies a predetermined evaluation value. If there is a focus detection device, the calculation processing is terminated at that time.

上記構成を、例えばカメラの焦点検出装置に適用することにより、被写体の移動を考慮したAI SERVO - AFにおいて、撮影者が移動する被写体を画面内で追従する場合、一度選択された焦点検出領域が再び選択され易いことに注目し、一度選択された焦点検出領域に基づいて複数の焦点検出領域を複数のグループに動的に分割して優先順に評価し、所定の評価値を満足するグループが存在すればその時点で演算処理を終了するようにしているので、必ずしも全ての焦点検出領域で焦点検出を行わずとも途中の評価結果によっては撮影者の満足のいく焦点検出結果が得られる、モータスポーツなどの移動している被写体の焦点検出に適したものとなる。   When the above configuration is applied to a focus detection device of a camera, for example, in AI SERVO-AF considering the movement of the subject, when the photographer follows the moving subject in the screen, the focus detection region selected once is Focusing on the fact that it is easy to select again, based on the focus detection area selected once, multiple focus detection areas are dynamically divided into multiple groups and evaluated in priority order, and there is a group that satisfies the predetermined evaluation value In this case, since the calculation process is terminated at that time, it is not always necessary to perform focus detection in all focus detection areas. It is suitable for detecting the focus of a moving subject.

同じく上記第1の目的を達成するために、請求項5及び6記載の本発明は、画面内に複数の焦点検出領域を持ち、前記複数の焦点検出領域にて得られる出力を基に焦点検出動作を行う演算手段を有する焦点検出装置において、前記演算手段が、前記複数の焦点検出領域を、過去に選択された最終的な焦点検出領域を含むグループ並びに該グループとは異なるグループの複数のグループに分割すると共に、これら各グループに演算処理の優先順位を付け、優先順位の高いグループから順に演算処理及びその評価を実施していくが、前記評価の結果、所定の評価値を満足するグループが存在すれば、更に前記グループに属する焦点検出領域のうちの評価の高い焦点検出領域を中心として新たにグループ化をしていき、前記新たなグループの演算処理とその評価を実施した結果、前記評価の中に満足するものがあればその時点で演算処理を終了する焦点検出装置とするものである。   Similarly, in order to achieve the first object, the present invention according to claims 5 and 6 includes a plurality of focus detection areas in a screen, and focus detection based on outputs obtained in the plurality of focus detection areas. In a focus detection apparatus having a calculation means for performing an operation, the calculation means includes a plurality of focus detection areas, a group including a final focus detection area selected in the past, and a plurality of groups different from the group. In addition, each of these groups is prioritized in arithmetic processing, and arithmetic processing and evaluation thereof are performed in order from the highest priority group. As a result of the evaluation, there are groups that satisfy a predetermined evaluation value. If it exists, the group is newly grouped around the focus detection areas that are highly evaluated among the focus detection areas belonging to the group, and the calculation processing of the new group is performed. And the evaluation result of the one in which a focus detection device for terminating processing at that point If there is a satisfactory in the evaluation.

上記構成を、例えばカメラの焦点検出装置に適用することにより、被写体の移動を考慮したAI SERVO - AFにおいて、一度選択された焦点検出領域のみならず、この焦点検出領域を基に複数の焦点検出領域を複数のグループに分割しての評価も同時に行い、所定の評価値を満足するグループが存在すれば、そのグループのある特定の焦点検出領域を中心とした新たなグループ化を行っていき、この新たなグループが満足するものであればその時点で演算処理を終了するようにしているので、必ずしも全ての焦点検出領域で焦点検出を行わずとも途中の評価結果によっては撮影者の満足のいく焦点検出結果が得られる、移動している被写体で、特に動きの激しくかつ主被写体が頻繁に変化する、サッカーゲームのようなシーンの焦点検出に適したものとなる。   By applying the above configuration to, for example, a camera focus detection device, in AI SERVO-AF considering movement of the subject, not only the focus detection area selected once, but also multiple focus detections based on this focus detection area The area is divided into multiple groups and evaluated at the same time. If there is a group that satisfies the specified evaluation value, a new grouping is performed around a specific focus detection area of the group. If this new group is satisfactory, the calculation process is terminated at that time, so that the photographer may be satisfied depending on the evaluation result in the middle without necessarily performing focus detection in all focus detection areas. A moving subject with focus detection results that is suitable for focus detection in scenes such as soccer games where the main subject changes frequently, especially when it is moving rapidly It becomes.

また、上記第2の目的を達成するために、請求項7及び12記載の本発明は、画面内に複数の測距領域を持ち、前記複数の測距領域にて得られる出力を基に測距動作を行う演算手段を有する測距装置において、前記演算手段が、前記複数の測距領域を複数のグループに分割すると共に、これら各グループに演算処理の優先順位を付け、優先順位の高いグループから順に演算処理及びその評価を実施していくが、前記評価の結果、所定の評価値を満足するグループが存在すれば、更に前記グループに属する測距領域のうちの評価の高い測距領域を中心として新たにグループ化していき、前記新たなグループの演算処理とその信頼性評価を実施した結果、前記評価の中に満足するものがあればその時点で演算処理を終了する測距装置とするものである。   In order to achieve the second object, the present invention as set forth in claims 7 and 12 has a plurality of distance measurement areas in a screen, and measures based on outputs obtained in the plurality of distance measurement areas. In the distance measuring apparatus having a calculation means for performing a distance operation, the calculation means divides the plurality of distance measurement areas into a plurality of groups, and assigns a priority of calculation processing to each of these groups, and a group having a high priority. The calculation processing and the evaluation thereof are performed in order from the above, but if there is a group that satisfies a predetermined evaluation value as a result of the evaluation, a range-finding area having a higher evaluation among the distance-measuring areas belonging to the group As a result of grouping a new group as the center, and performing the calculation processing and reliability evaluation of the new group, if there is a satisfaction in the evaluation, a ranging device that ends the calculation processing at that time is obtained. With things That.

同じく上記第2の目的を達成するために、請求項8,9及び12記載の本発明は、画面内に複数の測距領域を持ち、前記複数の測距領域にて得られる出力を基に測距動作を行う演算手段を有する測距装置において、前記演算手段が、過去に選択された最終的な測距領域について演算処理及びその信頼性評価を実施し、前記評価結果、一定の評価値を満足すればその時点で演算処理を終了する測距装置とするものである。   Similarly, in order to achieve the second object, the present invention according to claims 8, 9 and 12 has a plurality of ranging areas in the screen and is based on outputs obtained in the plurality of ranging areas. In a distance measuring apparatus having a calculation means for performing a distance measurement operation, the calculation means performs calculation processing and reliability evaluation on a final distance measurement area selected in the past, and the evaluation result is a constant evaluation value. If the condition is satisfied, the distance measuring device ends the arithmetic processing at that time.

同じく上記第2の目的を達成するために、請求項10及び12記載の本発明は、画面内に複数の測距領域を持ち、前記複数の測距領域にて得られる出力を基に測距動作を行う演算手段を有する測距装置において、前記演算手段が、過去に選択された最終的な測距領域を含むグループ並びに該グループとは異なるグループの複数のグループに分割すると共に、これら各グループに演算処理の優先順位を付け、優先順位の高いグループから順に演算処理及びその評価を実施していくが、前記評価結果、所定の評価値を満足するグループが存在すればその時点で演算処理を終了する測距装置とするものである。   Similarly, in order to achieve the second object, the present invention according to claims 10 and 12 has a plurality of ranging areas in a screen, and ranging based on outputs obtained in the plurality of ranging areas. In the distance measuring apparatus having the calculating means for performing the operation, the calculating means divides the group into a group including a final distance measurement area selected in the past and a group different from the group, and each of these groups. The priority of the arithmetic processing is given to the group, and the arithmetic processing and its evaluation are performed in order from the group with the highest priority.If there is a group satisfying the predetermined evaluation value as a result of the evaluation, the arithmetic processing is performed at that time. The distance measuring device is finished.

同じく上記第2の目的を達成するために、請求項11及び12記載の本発明は、画面内に複数の測距領域を持ち、前記複数の測距領域にて得られる出力を基に測距動作を行う演算手段を有する測距装置において、前記演算手段が、過去に選択された最終的な測距領域を含むグループ並びに該グループとは異なるグループの複数のグループに分割すると共に、これら各グループに演算処理の優先順位を付け、優先順位の高いグループから順に演算処理及びその評価を実施していくが、前記評価の結果、所定の評価値を満足するグループが存在すれば、更に前記グループに属する測距領域のうちの評価の高い測距領域を中心として新たにグループ化していき、前記新たなグループの演算処理とその信頼性評価を実施した結果、前記評価の中に満足するものがあればその時点で演算処理を終了する測距装置とするものである。   Similarly, in order to achieve the second object, the present invention according to claims 11 and 12 has a plurality of ranging areas in the screen, and performs ranging based on outputs obtained in the plurality of ranging areas. In the distance measuring apparatus having the calculating means for performing the operation, the calculating means divides the group into a group including a final distance measurement area selected in the past and a group different from the group, and each of these groups. The priority of the arithmetic processing is given to the group, and the arithmetic processing and the evaluation thereof are performed in order from the group with the highest priority.If there is a group that satisfies a predetermined evaluation value as a result of the evaluation, the group is further assigned to the group. As a result of new grouping centering on the highly evaluated ranging area among the ranging areas to which it belongs, and performing the calculation processing and reliability evaluation of the new group, the above evaluation is satisfied. Shall is one which distance measuring device for terminating processing at that point, if any.

また、上記第1の目的を達成するために、請求項13記載の本発明は、請求項1から請求項6までに記載の何れかの焦点検出装置を具備した光学機器とするものである。   In order to achieve the first object, the present invention according to claim 13 is an optical apparatus including any one of the focus detection apparatuses according to claims 1 to 6.

また、上記第2の目的を達成するために、請求項14記載の本発明は、請求項7から請求項12までに記載の何れかの測距装置を具備した光学機器とするものである。   In order to achieve the second object, the present invention according to claim 14 is an optical apparatus including any of the distance measuring devices according to claims 7 to 12.

また、上記第1の目的を達成するために、請求項15記載の本発明は、画面内に複数の焦点検出領域を有する焦点検出装置において、前記複数の焦点検出領域のうち、N個の領域に対して焦点検出演算を行い、前記N個の領域での焦点検出結果が所定の評価条件を満足する時は、前記N個の領域での焦点検出結果に基づいて焦点状態を決定すると共に、前記N個の領域での焦点検出結果が所定の評価条件を満足しない時は、前記N個の領域以外のM個の領域に対して焦点検出演算を行わせるようにした焦点検出装置とするものである。   In order to achieve the first object, the present invention according to claim 15 is a focus detection apparatus having a plurality of focus detection areas in a screen, wherein N areas out of the plurality of focus detection areas are provided. When the focus detection result for the N areas satisfies a predetermined evaluation condition, the focus state is determined based on the focus detection result for the N areas, and When a focus detection result in the N areas does not satisfy a predetermined evaluation condition, the focus detection apparatus is configured to perform focus detection calculation on M areas other than the N areas. It is.

同じく上記第1の目的を達成するために、請求項16〜19及び24記載の本発明は、画面内に複数の焦点検出領域を有する焦点検出装置において、前記複数の焦点検出領域のうち、N個の領域に対して焦点検出演算を行い、前記N個の領域での焦点検出結果に対しての焦点検出結果に基づいて該N個の領域における所定の領域を選択し、該選択された所定の領域に近接する複数の領域に対して焦点検出演算を行わせるようにした焦点検出装置とするものである。   Similarly, in order to achieve the first object, the present invention according to claims 16 to 19 and 24 provides a focus detection apparatus having a plurality of focus detection areas in a screen, and includes N of the plurality of focus detection areas. A focus detection calculation is performed on the N regions, a predetermined region in the N regions is selected based on a focus detection result with respect to a focus detection result in the N regions, and the selected predetermined region The focus detection apparatus is configured to perform the focus detection calculation on a plurality of areas close to the area.

また、上記第2の目的を達成するために、請求項20〜24記載の本発明は、画面内に複数の焦点検出領域を有する焦点検出装置において、前回選択された焦点検出領域を含むN個の領域での焦点検出結果に基づいて該N個の領域における所定の領域を選択し、該選択された所定の領域に近接する複数の領域に対して焦点検出演算を行わせるように焦点検出装置とするものである。   In order to achieve the second object, the present invention as claimed in claims 20 to 24, in a focus detection apparatus having a plurality of focus detection areas in a screen, includes N focus detection areas selected last time. A focus detection device is configured to select a predetermined region in the N regions based on a focus detection result in the region, and to perform a focus detection calculation on a plurality of regions close to the selected predetermined region. It is what.

本発明によれば、多数の焦点検出領域や測距領域を有するものにおいても、高速かつ正確な焦点情報や測距情報の検出を行うことのできる焦点検出装置、測距装置又は光学機器を提供できるものである。   According to the present invention, it is possible to provide a focus detection device, a distance measurement device, or an optical device capable of detecting focus information and distance measurement information at high speed and accurately even in a case having a large number of focus detection regions and distance measurement regions It can be done.

本発明を実施するための最良の形態は、後述する実施例に記載の通りである。   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)、第一優先領域と第二優先領域以外の焦点検出領域((図14(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. 14 (c ), FIG. 15 (c)), there is a possibility that a more effective focus detection area may exist. Therefore, 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.

(発明と実施例の対応)
上記実施例において、MPU1内の図6〜図9や図18,図19の動作を行う部分が本発明の、複数の焦点検出領域または測距領域にて得られる出力を基に焦点検出動作、焦点検出演算または測距動作を行って焦点状態を決定する演算手段に相当する。この演算手段は、評価値または評価条件を満足するグループが存在するかどうかや、焦点検出演算結果のうちの選択基準を満足する結果を判定する。
(Correspondence between Invention and Example)
In the above embodiment, the part performing the operations of FIG. 6 to FIG. 9, FIG. 18, and FIG. 19 in the MPU 1 is based on outputs obtained in a plurality of focus detection areas or distance measurement areas of the present invention, This corresponds to calculation means for determining the focus state by performing focus detection calculation or ranging operation. This calculation means determines whether there is a group that satisfies the evaluation value or the evaluation condition, and determines a result that satisfies a selection criterion among the focus detection calculation results.

また、図12(a)の11個の領域、図13(a)の7個の領域、図15(a)の8個の領域が本発明のN個の領域に相当し、図12(b)の45個の領域が本発明のM個の領域に相当する。図15(b)の4個の領域が本発明の近接する領域に相当し、図15(b)の6番の領域が本発明の前回選択された領域に相当する。   In addition, 11 regions in FIG. 12A, 7 regions in FIG. 13A, and 8 regions in FIG. 15A correspond to N regions of the present invention, and FIG. ) 45 regions correspond to M regions of the present invention. The four areas in FIG. 15B correspond to the adjacent areas of the present invention, and the No. 6 area in FIG. 15B corresponds to the previously selected area of the present invention.

(変形例)
上記実施例において、例えば図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で実行される焦点検出信頼度判定の動作を示すフローチャートである。FIG. 17 is a flowchart showing the focus detection reliability determination operation 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 (24)

画面内に複数の焦点検出領域を持ち、前記複数の焦点検出領域にて得られる出力を基に焦点検出動作を行う演算手段を有する焦点検出装置において、
前記演算手段は、前記複数の焦点検出領域を複数のグループに分割すると共に、これら各グループに演算処理の優先順位を付け、優先順位の高いグループから順に演算処理及びその評価を実施していくが、前記評価の結果、所定の評価値を満足するグループが存在すれば、更に前記グループに属する焦点検出領域のうちの評価の高い焦点検出領域を中心として新たにグループ化していき、前記新たなグループの演算処理とその信頼性評価を実施した結果、前記評価の中に満足するものがあればその時点で演算処理を終了することを特徴とする焦点検出装置。
In the focus detection apparatus having a plurality of focus detection areas in the screen and having a calculation means for performing a focus detection operation based on outputs obtained in the plurality of focus detection areas,
The calculation means divides the plurality of focus detection regions into a plurality of groups, assigns priority of calculation processing to each of these groups, and performs calculation processing and evaluation in order from the group with the highest priority. As a result of the evaluation, if there is a group that satisfies a predetermined evaluation value, the group is newly grouped around a focus detection area having a high evaluation among the focus detection areas belonging to the group, and the new group As a result of performing the arithmetic processing and its reliability evaluation, if there is a satisfaction in the evaluation, the arithmetic processing is terminated at that time.
画面内に複数の焦点検出領域を持ち、前記複数の焦点検出領域にて得られる出力を基に焦点検出動作を行う演算手段を有する焦点検出装置において、
前記演算手段は、過去に選択された最終的な焦点検出領域について演算処理及びその評価を実施し、前記評価結果、一定の評価値を満足すればその時点で演算処理を終了することを特徴とする焦点検出装置。
In the focus detection apparatus having a plurality of focus detection areas in the screen and having a calculation means for performing a focus detection operation based on outputs obtained in the plurality of focus detection areas,
The calculation means performs calculation processing and evaluation on a final focus detection region selected in the past, and ends the calculation processing at that time if the evaluation result satisfies a certain evaluation value. Focus detection device.
前記演算手段は、前記複数の焦点検出領域を、前記過去に選択された最終的な焦点検出領域を含むグループ並びに該グループとは異なるグループの複数のグループに分割すると共に、これら各グループに演算処理の優先順位を付け、優先順位の高いグループから順に演算処理及びその評価を実施していくが、前記評価結果、所定の評価値を満足するグループが存在すればその時点で演算処理を終了することを特徴とする請求項2記載の焦点検出装置。   The calculation means divides the plurality of focus detection areas into a group including the final focus detection area selected in the past and a plurality of groups different from the group, and performs calculation processing on each group. The calculation process and its evaluation are carried out in order from the group with the highest priority. If there is a group that satisfies the predetermined evaluation value as a result of the evaluation, the calculation process is terminated at that point. The focus detection apparatus according to claim 2. 画面内に複数の焦点検出領域を持ち、前記複数の焦点検出領域にて得られる出力を基に焦点検出動作を行う演算手段を有する焦点検出装置において、
前記演算手段は、前記複数の焦点検出領域を、過去に選択された最終的な焦点検出領域を含むグループ並びに該グループとは異なるグループの複数のグループに分割すると共に、これら各グループに演算処理の優先順位を付け、優先順位の高いグループから順に演算処理及びその信頼性評価を実施していくが、前記評価結果、所定の評価値を満足するグループが存在すればその時点で演算処理を終了することを特徴とする焦点検出装置。
In the focus detection apparatus having a plurality of focus detection areas in the screen and having a calculation means for performing a focus detection operation based on outputs obtained in the plurality of focus detection areas,
The calculation means divides the plurality of focus detection areas into a group including a final focus detection area selected in the past and a plurality of groups different from the group, and performs calculation processing on each group. Priorities are assigned and calculation processing and reliability evaluation are performed in order from the highest priority group. If there is a group that satisfies a predetermined evaluation value as a result of the evaluation, the calculation processing is terminated at that point. A focus detection apparatus.
画面内に複数の焦点検出領域を持ち、前記複数の焦点検出領域にて得られる出力を基に焦点検出動作を行う演算手段を有する焦点検出装置において、
前記演算手段は、前記複数の焦点検出領域を、過去に選択された最終的な焦点検出領域を含むグループ並びに該グループとは異なるグループの複数のグループに分割すると共に、これら各グループに演算処理の優先順位を付け、優先順位の高いグループから順に演算処理及びその評価を実施していくが、前記評価の結果、所定の評価値を満足するグループが存在すれば、更に前記グループに属する焦点検出領域のうちの評価の高い焦点検出領域を中心として新たにグループ化をしていき、前記新たなグループの演算処理とその評価を実施した結果、前記評価の中に満足するものがあればその時点で演算処理を終了することを特徴とする焦点検出装置。
In the focus detection apparatus having a plurality of focus detection areas in the screen and having a calculation means for performing a focus detection operation based on outputs obtained in the plurality of focus detection areas,
The calculation means divides the plurality of focus detection areas into a group including a final focus detection area selected in the past and a plurality of groups different from the group, and performs calculation processing on each group. Priorities are assigned, and calculation processing and evaluation thereof are performed in order from the highest priority group. If there is a group that satisfies a predetermined evaluation value as a result of the evaluation, the focus detection area further belongs to the group. As a result of performing a new grouping around the focus detection area with a high evaluation of the above, and performing the calculation processing and the evaluation of the new group, if there is a satisfaction in the evaluation, at that time A focus detection apparatus, characterized in that the arithmetic processing is terminated.
前記演算手段は、前記演算を終了した時点で評価結果が最も有効な領域を、最終的な焦点検出領域として設定することを特徴とする請求項1,2,3,4又は5記載の焦点検出装置。   6. The focus detection according to claim 1, 2, 3, 4 or 5, wherein the calculation means sets a region where the evaluation result is most effective when the calculation is completed as a final focus detection region. apparatus. 画面内に複数の測距領域を持ち、前記複数の測距領域にて得られる出力を基に測距動作を行う演算手段を有する測距装置において、
前記演算手段は、前記複数の測距領域を複数のグループに分割すると共に、これら各グループに演算処理の優先順位を付け、優先順位の高いグループから順に演算処理及びその評価を実施していくが、前記評価の結果、所定の評価値を満足するグループが存在すれば、更に前記グループに属する測距領域のうちの評価の高い測距領域を中心として新たにグループ化していき、前記新たなグループの演算処理とその信頼性評価を実施した結果、前記評価の中に満足するものがあればその時点で演算処理を終了することを特徴とする測距装置。
In the distance measuring apparatus having a plurality of distance measuring areas in the screen and having a calculation means for performing a distance measuring operation based on outputs obtained in the plurality of distance measuring areas,
The calculation means divides the plurality of distance measurement areas into a plurality of groups, assigns calculation processing priorities to these groups, and executes calculation processing and evaluation in order from the group with the highest priority. As a result of the evaluation, if there is a group that satisfies a predetermined evaluation value, the group is newly grouped around a highly evaluated ranging area among the ranging areas belonging to the group, and the new group As a result of performing the arithmetic processing and its reliability evaluation, if any of the evaluations is satisfactory, the arithmetic processing is terminated at that time.
画面内に複数の測距領域を持ち、前記複数の測距領域にて得られる出力を基に測距動作を行う演算手段を有する測距装置において、
前記演算手段は、過去に選択された最終的な測距領域について演算処理及びその信頼性評価を実施し、前記評価結果、一定の評価値を満足すればその時点で演算処理を終了することを特徴とする測距装置。
In the distance measuring apparatus having a plurality of distance measuring areas in the screen and having a calculation means for performing a distance measuring operation based on outputs obtained in the plurality of distance measuring areas,
The calculation means performs calculation processing and reliability evaluation for a final ranging area selected in the past, and ends the calculation processing at that point if the evaluation result satisfies a certain evaluation value. A distance measuring device.
前記演算手段は、前記複数の測距領域を、前記過去に選択された最終的な測距領域を含むグループ並びに該グループとは異なるグループの複数のグループに分割すると共に、これら各グループに演算処理の優先順位を付け、優先順位の高いグループから順に演算処理及びその評価を実施していくが、前記評価結果、所定の評価値を満足するグループが存在すればその時点で演算処理を終了することを特徴とする請求項8記載の測距装置。   The computing means divides the plurality of ranging areas into a group including the final ranging area selected in the past and a plurality of groups different from the group, and computes each of these groups. The calculation process and its evaluation are carried out in order from the group with the highest priority. If there is a group that satisfies the predetermined evaluation value as a result of the evaluation, the calculation process is terminated at that point. The distance measuring device according to claim 8. 画面内に複数の測距領域を持ち、前記複数の測距領域にて得られる出力を基に測距動作を行う演算手段を有する測距装置において、
前記演算手段は、過去に選択された最終的な測距領域を含むグループ並びに該グループとは異なるグループの複数のグループに分割すると共に、これら各グループに演算処理の優先順位を付け、優先順位の高いグループから順に演算処理及びその評価を実施していくが、前記評価結果、所定の評価値を満足するグループが存在すればその時点で演算処理を終了することを特徴とする測距装置。
In the distance measuring apparatus having a plurality of distance measuring areas in the screen and having a calculation means for performing a distance measuring operation based on outputs obtained in the plurality of distance measuring areas,
The calculation means divides the group into a group including a final distance measurement area selected in the past and a group different from the group, and assigns a priority of calculation processing to each of these groups, The distance measuring apparatus is characterized in that calculation processing and evaluation thereof are performed in order from the highest group, and if there is a group that satisfies a predetermined evaluation value as a result of the evaluation, the calculation processing is terminated at that point.
画面内に複数の測距領域を持ち、前記複数の測距領域にて得られる出力を基に測距動作を行う演算手段を有する測距装置において、
前記演算手段は、過去に選択された最終的な測距領域を含むグループ並びに該グループとは異なるグループの複数のグループに分割すると共に、これら各グループに演算処理の優先順位を付け、優先順位の高いグループから順に演算処理及びその評価を実施していくが、前記評価の結果、所定の評価値を満足するグループが存在すれば、更に前記グループに属する測距領域のうちの評価の高い測距領域を中心として新たにグループ化していき、前記新たなグループの演算処理とその信頼性評価を実施した結果、前記評価の中に満足するものがあればその時点で演算処理を終了することを特徴とする測距装置。
In the distance measuring apparatus having a plurality of distance measuring areas in the screen and having a calculation means for performing a distance measuring operation based on outputs obtained in the plurality of distance measuring areas,
The calculation means divides the group into a group including a final distance measurement area selected in the past and a group different from the group, and assigns a priority of calculation processing to each of these groups, The calculation processing and the evaluation are performed in order from the highest group. If there is a group that satisfies a predetermined evaluation value as a result of the evaluation, a distance measurement with a higher evaluation among the distance measurement areas belonging to the group. The group is newly grouped around the area, and as a result of performing the calculation processing of the new group and its reliability evaluation, if there is a satisfaction in the evaluation, the calculation processing is terminated at that time. Ranging device.
前記演算手段は、前記演算を終了した時点で評価結果が最も有効な領域を、最終的な測距領域として設定することを特徴とする請求項7,8,9,10又は11記載の測距装置。   12. The distance measuring method according to claim 7, 8, 9, 10, or 11, wherein the calculating means sets a region where the evaluation result is most effective when the calculation is completed as a final distance measuring region. apparatus. 請求項1,2,3,4,5又は6記載の焦点検出装置を具備したことを特徴とする光学機器。   An optical apparatus comprising the focus detection device according to claim 1, 2, 3, 4, 5 or 6. 請求項7,8,9,10,11又は12記載の測距装置を具備したことを特徴とする光学機器。   An optical apparatus comprising the distance measuring device according to claim 7, 8, 9, 10, 11, or 12. 画面内に複数の焦点検出領域を有する焦点検出装置において、
前記複数の焦点検出領域のうち、N個の領域に対して焦点検出演算を行い、前記N個の領域での焦点検出結果が所定の評価条件を満足する時は、前記N個の領域での焦点検出結果に基づいて焦点状態を決定すると共に、前記N個の領域での焦点検出結果が所定の評価条件を満足しない時は、前記N個の領域以外のM個の領域に対して焦点検出演算を行わせるようにしたことを特徴とする焦点検出装置。
In the focus detection apparatus having a plurality of focus detection areas in the screen,
Of the plurality of focus detection areas, focus detection calculation is performed on N areas, and when focus detection results in the N areas satisfy a predetermined evaluation condition, The focus state is determined based on the focus detection result, and when the focus detection result in the N areas does not satisfy a predetermined evaluation condition, focus detection is performed on M areas other than the N areas. A focus detection apparatus characterized in that a calculation is performed.
画面内に複数の焦点検出領域を有する焦点検出装置において、
前記複数の焦点検出領域のうち、N個の領域に対して焦点検出演算を行い、前記N個の領域での焦点検出結果に対しての焦点検出結果に基づいて該N個の領域における所定の領域を選択し、該選択された所定の領域に近接する複数の領域に対して焦点検出演算を行わせるようにしたことを特徴とする焦点検出装置。
In the focus detection apparatus having a plurality of focus detection areas in the screen,
Of the plurality of focus detection areas, focus detection calculation is performed on N areas, and predetermined values in the N areas are determined based on focus detection results for focus detection results in the N areas. A focus detection apparatus, wherein an area is selected and a focus detection calculation is performed on a plurality of areas close to the selected predetermined area.
前記所定の領域に近接する複数の領域は、前記N個の領域を含まないことを特徴とする請求項16記載の焦点検出装置。   The focus detection apparatus according to claim 16, wherein a plurality of areas close to the predetermined area do not include the N areas. 前記所定の領域は、前記N個での焦点検出結果のうち、特定の評価条件を満足した領域であることを特徴とする請求項16又は17記載の焦点検出装置。   18. The focus detection apparatus according to claim 16, wherein the predetermined region is a region that satisfies a specific evaluation condition among the N focus detection results. 前記特定の評価条件は、前記N個の領域での焦点検出結果のうち、最も適切な焦点検出結果であることを特徴とする請求項18記載の焦点検出装置。   19. The focus detection apparatus according to claim 18, wherein the specific evaluation condition is a most appropriate focus detection result among focus detection results in the N areas. 画面内に複数の焦点検出領域を有する焦点検出装置において、
前回選択された焦点検出領域を含むN個の領域での焦点検出結果に基づいて該N個の領域における所定の領域を選択し、該選択された所定の領域に近接する複数の領域に対して焦点検出演算を行わせるようにしたことを特徴とする焦点検出装置。
In the focus detection apparatus having a plurality of focus detection areas in the screen,
A predetermined area in the N areas is selected based on focus detection results in N areas including the focus detection area selected last time, and a plurality of areas close to the selected predetermined area are selected. A focus detection apparatus characterized in that a focus detection calculation is performed.
前記所定の領域に近接する複数の領域は、前記N個の領域を含まないことを特徴とする請求項20記載の焦点検出装置。   21. The focus detection apparatus according to claim 20, wherein a plurality of areas close to the predetermined area do not include the N areas. 前記所定の領域は、前記N個での焦点検出結果のうち、特定の評価条件を満足した領域であることを特徴とする請求項20又は21記載の焦点検出装置。   The focus detection apparatus according to claim 20 or 21, wherein the predetermined area is an area that satisfies a specific evaluation condition among the N focus detection results. 前記特定の評価条件は、前記N個の領域での焦点検出結果のうち、最も適切な焦点検出結果であることを特徴とする請求項22記載の焦点検出装置。   23. The focus detection apparatus according to claim 22, wherein the specific evaluation condition is a most appropriate focus detection result among focus detection results in the N areas. 前記各領域での焦点検出演算結果のうち、特定の選択基準を満足する結果に基づいて焦点状態を決定することを特徴とする請求項16,17,18,19,20,21,22又は23記載の焦点検出装置。   24. The focus state is determined based on a result satisfying a specific selection criterion among the focus detection calculation results in each of the regions, wherein the focus state is determined. The focus detection apparatus described.
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 true JP2008052285A (en) 2008-03-06
JP4542126B2 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)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010122358A (en) * 2008-11-18 2010-06-03 Nec Electronics Corp Autofocus device, autofocus method, and imaging apparatus
JP2014062995A (en) * 2012-09-20 2014-04-10 Canon Inc Focus detection device
JP2014191054A (en) * 2013-03-26 2014-10-06 Canon Inc Focus detection device, focus detection method and program, and imaging device
JP2016057409A (en) * 2014-09-08 2016-04-21 キヤノン株式会社 Imaging device and control method of imaging device

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

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010122358A (en) * 2008-11-18 2010-06-03 Nec Electronics Corp Autofocus device, autofocus method, and imaging apparatus
JP2014062995A (en) * 2012-09-20 2014-04-10 Canon Inc Focus detection device
JP2014191054A (en) * 2013-03-26 2014-10-06 Canon Inc Focus detection device, focus detection method and program, and imaging device
US9485406B2 (en) 2013-03-26 2016-11-01 Canon Kabushiki Kaisha Focus detection apparatus, focus detection method and program, and imaging apparatus
JP2016057409A (en) * 2014-09-08 2016-04-21 キヤノン株式会社 Imaging device and control method of imaging device

Also Published As

Publication number Publication date
JP4542126B2 (en) 2010-09-08

Similar Documents

Publication Publication Date Title
US7602435B2 (en) Image-taking apparatus and focus control program for image-taking apparatus
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
US20050099522A1 (en) Variable length encoding method and variable length decoding method
JP5500916B2 (en) Imaging apparatus and control method thereof
US9900493B2 (en) Focus detecting apparatus, and method of prediction for the same
JP5241096B2 (en) IMAGING DEVICE, ITS CONTROL METHOD, PROGRAM, AND STORAGE MEDIUM
JPH0862484A (en) Focusing device
JP5879736B2 (en) Image tracking device and imaging device
JP4542126B2 (en) Focus detection device
JP2007024941A (en) Focus detecting apparatus, focusing apparatus and imaging apparatus
JP6486098B2 (en) Imaging apparatus and control method thereof
JP2008268815A (en) Automatic focusing device
JP4497567B2 (en) Focus detection device, distance measuring device and optical instrument
JP2012203345A (en) Focus adjustment device and focus adjustment method
JP5418180B2 (en) Digital camera
JPH11337814A (en) Optical device
JP2014197141A (en) Imaging apparatus
US20150222807A1 (en) Image pickup apparatus, image pickup system, method of controlling image pickup apparatus, and storage medium
JP5439971B2 (en) Photometric device and imaging device
JPS6155620A (en) Automatic focusing device
JP2019032443A (en) Focus adjustment device, imaging device, focus adjustment method, and program
JP7431555B2 (en) Imaging device and its control method
US20200099842A1 (en) Image capturing apparatus and control method thereof, and storage medium
JP2022173872A (en) Focus adjustment device and focus adjustment method
JP2013040994A (en) Imaging apparatus

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