JP2015087704A - Automatic focus adjustment unit, control method of automatic focus adjustment unit, control program of automatic focus adjustment unit, and storage medium - Google Patents

Automatic focus adjustment unit, control method of automatic focus adjustment unit, control program of automatic focus adjustment unit, and storage medium Download PDF

Info

Publication number
JP2015087704A
JP2015087704A JP2013228318A JP2013228318A JP2015087704A JP 2015087704 A JP2015087704 A JP 2015087704A JP 2013228318 A JP2013228318 A JP 2013228318A JP 2013228318 A JP2013228318 A JP 2013228318A JP 2015087704 A JP2015087704 A JP 2015087704A
Authority
JP
Japan
Prior art keywords
focus
restart
focus lens
detection
control unit
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
JP2013228318A
Other languages
Japanese (ja)
Other versions
JP6351234B2 (en
Inventor
誠 横関
Makoto Yokozeki
誠 横関
和憲 石井
Kazunori Ishii
和憲 石井
英育 本宮
Hideyasu Motomiya
英育 本宮
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 JP2013228318A priority Critical patent/JP6351234B2/en
Priority to US14/527,635 priority patent/US9794467B2/en
Publication of JP2015087704A publication Critical patent/JP2015087704A/en
Application granted granted Critical
Publication of JP6351234B2 publication Critical patent/JP6351234B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

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

Abstract

PROBLEM TO BE SOLVED: To achieve high-quality focusing control by enabling appropriate determination for restart depending on the condition of an object, when performing AF (Auto Focus) control using an image-plane phase difference detection method.SOLUTION: An automatic focus adjustment unit includes: image capturing means which receives a light flux entering via an image-capturing optical system including a focus lens and performs photo-electric conversion of the light flux; first detection means which detects phase difference between paired image signals generated from light fluxes passing through different regions of an exit pupil region of the image-capturing optical system; second detection means which detects contrast information from signals outputted from the image capturing means; and control means which controls driving of the focusing lens based on at least either of a detection result obtained by the first detection means and a detection result obtained by the second detection means. When the focusing lens is at halt, the control means determines whether the detection result obtained by the first detection means satisfies a predetermined condition for restarting the focusing lens or not, and then modifies the predetermined condition in accordance with the contrast information.

Description

本発明は、位相差検出方式とコントラスト検出方式を備えた自動焦点調節装置等に関するものである。   The present invention relates to an automatic focus adjustment device equipped with a phase difference detection method and a contrast detection method.

近年、一眼レフカメラを代表とする撮像装置は、LV(ライブビュー)画面を見ながら撮影する方法(LV撮影)に対するウェイトが非常に高まっている。特に、動画撮影の需要が高まっており、動画撮影ではLV画面を見ながらの撮影が快適に行えることが重要である。   In recent years, an imaging apparatus typified by a single-lens reflex camera has greatly increased the weight for a method (LV shooting) of shooting while viewing an LV (live view) screen. In particular, the demand for moving image shooting is increasing, and in moving image shooting, it is important that shooting can be performed comfortably while looking at the LV screen.

LV中の撮像装置のAF(オートフォーカス)方式として様々な手法が提案されているが、主な手法としてコントラスト検出方式がある。コントラスト検出方式は、フォーカスレンズを移動させながら、撮像素子を用いて得られる撮像信号から生成したコントラスト評価値が最大となるフォーカスレンズ位置を探索することによって合焦状態を得る。   Various methods have been proposed as an AF (autofocus) method for an imaging apparatus in LV, and a contrast detection method is a main method. In the contrast detection method, a focused state is obtained by searching for a focus lens position where a contrast evaluation value generated from an image pickup signal obtained using an image pickup element is maximized while moving the focus lens.

しかし、上記コントラスト検出方式は、被写体に合焦させるためのフォーカスレンズの位置およびフォーカス方向を容易に判断できない。そのため、上記コントラスト検出方式は、合焦させるために時間を要したり、またフォーカシングすべき方向を間違えたり合焦位置を通り過ぎてしまったりと、品位の悪い挙動をすることがある。特に動画撮影では、フォーカシング動作が全て記録されるため、品位の悪い挙動をするのは望ましくない。   However, the contrast detection method cannot easily determine the position and focus direction of the focus lens for focusing on the subject. For this reason, the contrast detection method may behave poorly when it takes time to focus, or when the direction to be focused is wrong or the focus position is passed. In particular, in moving image shooting, since all the focusing operations are recorded, it is not desirable that the behavior be poor.

そこで、LV撮影時にも品位良くフォーカシングを行うことが可能なAF方式が提案されている。その方式の一つとして挙げられるのが、位相差検出方式を撮像素子面で行う撮像面位相差検出方式(撮像面位相差AF)である。位相差検出方式では、撮影光学系における互いに異なる射出瞳領域を通過した光束を受光して得られた一対の像信号の位相差からデフォーカス量を算出する。そして、該デフォーカス量に相当する移動量だけフォーカスレンズを移動させることで合焦状態を得る。   Therefore, an AF method has been proposed that can perform focusing with high quality even during LV shooting. One of the methods is an imaging surface phase difference detection method (imaging surface phase difference AF) in which the phase difference detection method is performed on the imaging element surface. In the phase difference detection method, the defocus amount is calculated from the phase difference between a pair of image signals obtained by receiving light beams that have passed through different exit pupil regions in the photographing optical system. Then, the in-focus state is obtained by moving the focus lens by a movement amount corresponding to the defocus amount.

撮像面位相差検出方式の1つとして、特許文献1のように、撮像素子の撮像画素において、同一マイクロレンズ下に複数の光電変換素子を設ける構成を用いたものが提案されている。この構成では、射出瞳領域の異なる領域を通過した光を複数の光電変換素子でそれぞれ受光することで、撮像を行うと同時に焦点検出を行うことが可能になる。具体的には、複数の光電変換素子の出力を比較することで、位相差検出方式のAFを行うことができる。撮像面位相差検出方式を用いることで、LV撮影でも位相差検出方式でAFすることが可能になり、高速で品位良くフォーカシングを行うことができる。   As one of imaging plane phase difference detection methods, a system using a configuration in which a plurality of photoelectric conversion elements are provided under the same microlens in an imaging pixel of an imaging element has been proposed as in Patent Document 1. In this configuration, light that has passed through different areas of the exit pupil area is received by each of the plurality of photoelectric conversion elements, so that focus detection can be performed simultaneously with imaging. Specifically, phase difference detection AF can be performed by comparing the outputs of a plurality of photoelectric conversion elements. By using the imaging surface phase difference detection method, AF can be performed using the phase difference detection method even in LV shooting, and focusing can be performed at high speed with high quality.

動画撮影を行う場合の特徴的な制御の一つとして、合焦した後にフォーカスレンズを停止させておき、被写体が動くなどシーンが変化したら再度レンズを駆動させる(再起動)制御がある。ピント調節が不必要な場合にはフォーカスレンズを駆動させないように制御することで、不要なフォーカシングを防ぐことができる。これは位相差検出方式でAF制御を行う場合も同様である。   As one of characteristic controls when shooting moving images, there is control that stops the focus lens after focusing, and drives the lens again (restart) when the scene changes, for example, the subject moves. When focus adjustment is not necessary, unnecessary focusing can be prevented by controlling the focus lens not to be driven. The same applies to the case where AF control is performed by the phase difference detection method.

図8では、被写体として人、木、山が含まれる撮影シーンを示しており、実線で示される被写体はピントが合っている状態、破線で示される被写体はピントがボケている状態を表している。図8(A)の左図のように、画面全体において被写体がボケている状態であれば、右図のようにすぐに被写体(人、木)にピントを合わせることが望ましい。一方、図8(B)の左図のように、既に被写体(人、木)にピントが合っている状態であれば、右図のようにシーンが変化していなければ再起動を行わず、フォーカスレンズを停止させておく制御が望ましい。   FIG. 8 shows a shooting scene in which people, trees, and mountains are included as subjects. The subject indicated by a solid line is in focus, and the subject indicated by a broken line is in focus. . If the subject is out of focus on the entire screen as shown in the left diagram of FIG. 8A, it is desirable to immediately focus on the subject (person, tree) as shown in the right diagram. On the other hand, as shown in the left figure of FIG. 8B, if the subject (people, trees) is already in focus, restart is not performed unless the scene changes as shown in the right figure. Control in which the focus lens is stopped is desirable.

特許文献2には、外測センサによる位相差検出方式の測距情報と、コントラスト検出方式の焦点検出情報と、位相差検出方式の波形情報に基づいてフォーカスレンズ停止時からの再起動判定を行う手法が提案されている。   Japanese Patent Laid-Open No. 2004-228561 performs a restart determination from when the focus lens is stopped based on distance measurement information of a phase difference detection method by an external sensor, focus detection information of a contrast detection method, and waveform information of a phase difference detection method. A method has been proposed.

特開2001−083407号公報JP 2001-083407 A 特開2012−128316号公報JP 2012-128316 A

特許文献2では、AF評価値の検出範囲に別の被写体が入ってきた場合などAF評価値の変動があったタイミングで、位相差検出方式による測距結果が一度でも判定閾値を超えれば、すぐにフォーカスレンズの再起動をしてしまう。そのため、現在のフォーカス位置で主被写体にピントが合っているにも関わらず、不要にフォーカスレンズを再起動してピントがボケてしまう可能性がある。また、低照度の場合などAF評価値の変動が起こりにくい場合には、特許文献2の判定方法ではシーンが変化していても再起動が行われない可能性がある。   In Patent Document 2, if the AF evaluation value fluctuates at a timing when the AF evaluation value fluctuates, such as when another subject enters the AF evaluation value detection range, immediately after the distance measurement result by the phase difference detection method exceeds the determination threshold value, Will cause the focus lens to restart. Therefore, there is a possibility that the focus lens is unnecessarily restarted and the focus is blurred even though the main subject is in focus at the current focus position. Also, when the AF evaluation value hardly fluctuates, such as in the case of low illuminance, there is a possibility that the restart will not be performed even if the scene changes according to the determination method of Patent Document 2.

上記の課題に鑑みて、本発明は、撮像面位相差検出方式を用いたAF制御を行う際に、被写体の状態に応じて適切な再起動判定を可能にすることで、品位の良いフォーカシング制御を実現することを目的とする。   In view of the above problems, the present invention enables high-quality focusing control by enabling appropriate restart determination according to the state of a subject when performing AF control using an imaging surface phase difference detection method. It aims at realizing.

上記目的を達成するために、第1の本発明は、フォーカスレンズを含む撮影光学系を介して入射される光束を受光して光電変換する撮像手段と、前記撮影光学系の射出瞳領域の異なる領域を通過した光束から生成される一対の像信号の位相差を検出する第1の検出手段と、前記撮像手段から出力される信号からコントラスト情報を検出する第2の検出手段と、前記第1の検出手段および前記第2の検出手段の少なくとも一方の検出結果に基づいて、前記フォーカスレンズの駆動を制御する制御手段とを有する自動焦点調節装置であって、前記フォーカスレンズが停止している状態において、前記制御手段は、前記第1の検出手段による検出結果が前記フォーカスレンズを再起動するための所定の条件を満たすか否かを判定し、前記コントラスト情報に応じて前記所定の条件を変更することを特徴とする。   In order to achieve the above object, the first aspect of the present invention differs from an imaging means for receiving and photoelectrically converting a light beam incident through a photographing optical system including a focus lens, and an exit pupil region of the photographing optical system. A first detection unit that detects a phase difference between a pair of image signals generated from a light beam that has passed through a region; a second detection unit that detects contrast information from a signal output from the imaging unit; And a control means for controlling the drive of the focus lens based on the detection result of at least one of the detection means and the second detection means, wherein the focus lens is stopped The control means determines whether the detection result by the first detection means satisfies a predetermined condition for restarting the focus lens, and the contrast And changes the predetermined condition according to the information.

第2の本発明は、フォーカスレンズを含む撮影光学系を介して入射される光束を受光して光電変換する撮像手段を有する自動焦点調節装置の制御方法であって、前記撮影光学系の射出瞳領域の異なる領域を通過した光束から生成される一対の像信号の位相差を検出する第1の検出ステップと、前記撮像手段から出力される信号からコントラスト情報を検出する第2の検出ステップと、前記第1の検出ステップおよび前記第2の検出ステップの少なくとも一方の検出結果に基づいて、前記フォーカスレンズの駆動を制御する制御ステップとを有し、前記フォーカスレンズが停止している状態において、前記制御ステップでは、前記第1の検出手段による検出結果が前記フォーカスレンズを再起動するための所定の条件を満たすか否かを判定し、前記コントラスト情報に応じて前記所定の条件を変更することを特徴とする。   A second aspect of the present invention is a control method for an automatic focus adjustment apparatus having an imaging means for receiving and photoelectrically converting a light beam incident through a photographing optical system including a focus lens, the exit pupil of the photographing optical system. A first detection step for detecting a phase difference between a pair of image signals generated from light beams that have passed through different regions; a second detection step for detecting contrast information from a signal output from the imaging means; A control step for controlling driving of the focus lens based on a detection result of at least one of the first detection step and the second detection step, and in a state where the focus lens is stopped, In the control step, it is determined whether the detection result by the first detection means satisfies a predetermined condition for restarting the focus lens, And changes the predetermined condition in response to the serial contrast information.

本発明によれば、撮像面位相差検出方式を用いたAF制御を行う際に、被写体の状態に応じて適切な再起動判定が可能になり、品位の良いフォーカシング制御を実現することができる。   According to the present invention, when performing AF control using the imaging surface phase difference detection method, it is possible to make an appropriate restart determination according to the state of the subject, and it is possible to realize focusing control with high quality.

本実施形態におけるカメラ及びレンズユニットの構成を示すブロック図The block diagram which shows the structure of the camera and lens unit in this embodiment. 本実施形態における撮像面位相差方式の画素構成を示す図The figure which shows the pixel structure of the imaging surface phase difference system in this embodiment. 本実施形態における撮像処理を示すフローチャートFlow chart showing imaging processing in the present embodiment 本実施形態における動画撮影処理を示すフローチャートFlowchart showing moving image shooting processing in the present embodiment 本実施形態における焦点検出処理を示すフローチャートFlowchart showing focus detection processing in this embodiment 第一の実施形態におけるAF再起動判定処理を示すフローチャートFlowchart showing AF restart determination processing in the first embodiment 本実施形態におけるAF処理を示すフローチャートFlowchart showing AF processing in the present embodiment 本実施形態における再起動判定の課題を説明するための図The figure for demonstrating the subject of the restart determination in this embodiment 第一の実施形態における再起動条件を示す図The figure which shows the restart conditions in 1st embodiment 第二の実施形態におけるAF再起動判定処理を示すフローチャートFlowchart showing AF restart determination processing in the second embodiment 第一の実施形態におけるAF再起動閾値設定処理を示すフローチャートFlowchart showing AF restart threshold setting processing in the first embodiment 本実施形態におけるAF再起動閾値調整処理を示すフローチャートFlowchart showing AF restart threshold value adjustment processing in the present embodiment 本実施形態における測距領域を示す図The figure which shows the ranging area in this embodiment 本実施形態における測距領域から得られる像信号を示す図The figure which shows the image signal obtained from the ranging area in this embodiment 本実施形態における相関量波形および相関変化量波形を示す図The figure which shows the correlation amount waveform and correlation variation | change_quantity waveform in this embodiment 第二の実施形態におけるAF再起動閾値設定処理を示すフローチャートFlowchart showing AF restart threshold setting processing in the second embodiment 第二の実施形態における再起動条件を示す図The figure which shows the restart condition in 2nd embodiment 第三の実施形態におけるAF再起動判定処理を示すフローチャートFlowchart showing AF restart determination processing in the third embodiment

以下、添付図面を参照して本発明の実施形態を詳細に説明する。なお、以下に説明する実施の形態は、本発明の実現手段としての一例であり、本発明は以下の実施の形態に限定されるものではない。   Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings. The embodiment described below is an example as means for realizing the present invention, and the present invention is not limited to the following embodiment.

(第一の実施形態)
図1は、本実施形態におけるレンズユニット及びカメラ本体からなるレンズ交換式カメラの構成を示すブロック図である。図1に示すように、本実施形態におけるカメラシステムは、レンズユニット10及びカメラ本体20から構成されている。レンズユニット全体の動作を統括制御するレンズ制御部106と、カメラ全体の動作を統括するカメラ制御部212がデータを通信している。
(First embodiment)
FIG. 1 is a block diagram showing a configuration of a lens interchangeable camera including a lens unit and a camera body in the present embodiment. As shown in FIG. 1, the camera system according to this embodiment includes a lens unit 10 and a camera body 20. The lens control unit 106 that controls the overall operation of the lens unit and the camera control unit 212 that controls the overall operation of the camera communicate data.

まず、レンズユニット10の構成について説明する。レンズユニット10は、固定レンズ101、絞り102、フォーカスレンズ103を備えて構成される撮影光学系を有する。絞り102は、絞り駆動部104によって駆動され、後述する撮像素子201への入射光量を制御する。フォーカスレンズ103は、フォーカスレンズ駆動部105によって駆動され、焦点調節を行う。   First, the configuration of the lens unit 10 will be described. The lens unit 10 includes a photographing optical system that includes a fixed lens 101, a diaphragm 102, and a focus lens 103. The diaphragm 102 is driven by the diaphragm driving unit 104 and controls the amount of light incident on the image sensor 201 described later. The focus lens 103 is driven by the focus lens driving unit 105 and performs focus adjustment.

絞り駆動部104、フォーカスレンズ駆動部105は、レンズ制御部106によって制御され、絞り102の開口量や、フォーカスレンズ103の位置が決定される。ユーザによりレンズ操作部107を介してフォーカスなどの操作が行われた場合には、レンズ制御部106がユーザ操作に応じた制御を行う。レンズ制御部106は、後述するカメラ制御部212から受信した制御命令・制御情報に応じて絞り駆動部104やフォーカスレンズ駆動部105の制御を行い、また、レンズ情報をカメラ制御部212に送信する。   The aperture driving unit 104 and the focus lens driving unit 105 are controlled by the lens control unit 106, and the aperture amount of the aperture 102 and the position of the focus lens 103 are determined. When an operation such as focusing is performed by the user via the lens operation unit 107, the lens control unit 106 performs control according to the user operation. The lens control unit 106 controls the aperture driving unit 104 and the focus lens driving unit 105 in accordance with a control command / control information received from the camera control unit 212 described later, and transmits lens information to the camera control unit 212. .

次に、本実施形態に係る自動焦点調節装置を備えるカメラ本体20の構成について説明する。カメラ本体20は、レンズユニット10の撮影光学系を通過した光束から撮像信号を取得可能に構成されている。撮像素子201は、CCDやCMOSセンサにより構成される。撮影光学系を通過した光束が撮像素子201の受光面上に結像し、形成された被写体像がフォトダイオードによって入射光量に応じた電荷に変換(光電変換)される。各フォトダイオードに蓄積された電荷は、カメラ制御部212の指令に従ってタイミングジェネレータ215から与えられる駆動パルスに基づいて電荷に応じた電圧信号として撮像素子201から順次読み出される。   Next, the configuration of the camera body 20 including the automatic focus adjustment device according to the present embodiment will be described. The camera body 20 is configured to be able to acquire an imaging signal from a light beam that has passed through the imaging optical system of the lens unit 10. The image sensor 201 is configured by a CCD or CMOS sensor. The light beam that has passed through the photographing optical system forms an image on the light receiving surface of the image sensor 201, and the formed subject image is converted (photoelectric conversion) into charges corresponding to the amount of incident light by the photodiode. The electric charge accumulated in each photodiode is sequentially read out from the image sensor 201 as a voltage signal corresponding to the electric charge based on a driving pulse given from the timing generator 215 in accordance with an instruction from the camera control unit 212.

撮像面位相差方式の焦点調節(以下、撮像面位相差AF)に対応しない撮像素子の場合、例えば図2(A)に示すようなベイヤー配列の画素構成となる。一方、本実施形態の撮像素子201は、撮像面位相差AFを行うために、図2(B)に示すように1つの画素に複数(本実施形態では2つ)のフォトダイオード(光電変換素子)を保持している。すなわち、1マイクロレンズ下に複数のフォトダイオードを有している。光束をマイクロレンズで分離し、射出瞳領域の異なる領域を通過した光を2つのフォトダイオードで結像することで、撮像用とAF用の2つの信号が取得可能になっている。2つのフォトダイオードの信号を加算した信号(A+B)が撮像信号であり、個々のフォトダイオードの信号(A、B)がAF用の2つの像信号になっている。ここでは、2つの像信号のそれぞれを読み出す構成に限らず、例えば処理負荷を考慮して、加算した信号(A+B)と一方の像信号(例えばA)を読み出し、その差分からもう一方の像信号(例えばB)を取得する構成でもよい。後述するAF信号処理部204で2つの像信号に対して相関演算を行い、像ずれ量や各種信頼性情報を算出する。   In the case of an imaging device that does not support imaging surface phase difference type focus adjustment (hereinafter referred to as imaging surface phase difference AF), for example, the pixel configuration has a Bayer array as shown in FIG. On the other hand, in order to perform imaging surface phase difference AF, the image sensor 201 of the present embodiment has a plurality of (two in this embodiment) photodiodes (photoelectric conversion elements) in one pixel as shown in FIG. ). That is, a plurality of photodiodes are provided under one microlens. Two signals for imaging and AF can be acquired by separating the luminous flux with a microlens and forming an image of light passing through different areas of the exit pupil area with two photodiodes. A signal (A + B) obtained by adding the signals of two photodiodes is an image pickup signal, and signals (A, B) of individual photodiodes are two image signals for AF. Here, the configuration is not limited to reading each of the two image signals. For example, in consideration of a processing load, the added signal (A + B) and one image signal (for example, A) are read, and the other image signal is calculated from the difference. (For example, B) may be acquired. An AF signal processing unit 204 (to be described later) performs a correlation operation on the two image signals to calculate an image shift amount and various types of reliability information.

なお、本実施形態では1つの画素に2つのフォトダイオードを有する撮像素子の構成としているが、フォトダイオードの数は2つに限定されず、それ以上であってもよい。また、撮像面位相差AF対応の撮像素子の構成として、本実施形態のように1つの画素に複数のフォトダイオードを設ける構成に限らず、撮像素子中に焦点検出用の画素を設ける構成であってもよい。   In the present embodiment, the configuration of the imaging device having two photodiodes in one pixel is used, but the number of photodiodes is not limited to two and may be more. In addition, the configuration of the imaging device corresponding to the imaging surface phase difference AF is not limited to the configuration in which a plurality of photodiodes are provided in one pixel as in the present embodiment, but is a configuration in which pixels for focus detection are provided in the imaging device. May be.

撮像素子201から読み出された撮像信号及びAF用信号は、CDS/AGC/ADコンバータ202に入力され、リセットノイズを除去する為の相関二重サンプリング、ゲインの調節、信号のデジタル化を行う。CDS/AGC/ADコンバータ202は、撮像信号を画像入力コントローラ203及びAF評価値生成部216に、撮像面位相差AF用の信号をAF信号処理部204にそれぞれ出力する。   The imaging signal and AF signal read from the imaging element 201 are input to the CDS / AGC / AD converter 202, and correlated double sampling for removing reset noise, gain adjustment, and signal digitization are performed. The CDS / AGC / AD converter 202 outputs an imaging signal to the image input controller 203 and the AF evaluation value generation unit 216, and outputs an imaging surface phase difference AF signal to the AF signal processing unit 204.

画像入力コントローラ203は、CDS/AGC/ADコンバータ202から出力された撮像信号をSDRAM209に格納する。SDRAM209に格納された撮像信号は、バス21を介して、表示制御部205によって表示部206に表示される。また、撮像信号の記録を行うモードの時には、記録媒体制御部207によって記録媒体208に記録される。   The image input controller 203 stores the imaging signal output from the CDS / AGC / AD converter 202 in the SDRAM 209. The imaging signal stored in the SDRAM 209 is displayed on the display unit 206 by the display control unit 205 via the bus 21. In the mode for recording the imaging signal, the recording medium control unit 207 records the image on the recording medium 208.

また、バス21を介して接続されたROM210には、カメラ制御部212が実行する制御プログラム及び制御に必要な各種データ等が格納されている。フラッシュROM211には、ユーザ設定情報等のカメラ本体20の動作に関する各種設定情報等が格納されている。   The ROM 210 connected via the bus 21 stores a control program executed by the camera control unit 212 and various data necessary for control. The flash ROM 211 stores various setting information relating to the operation of the camera body 20 such as user setting information.

AF信号処理部204は、CDS/AGC/ADコンバータ202から出力されたAF用の2つの像信号を基に相関演算を行い、像ずれ量と信頼性情報(二像一致度、二像急峻度、コントラスト情報、飽和情報、キズ情報等)を算出する。そして、算出した像ずれ量と信頼性情報をカメラ制御部212へ出力する。また、カメラ制御部212は、取得した像ずれ量や信頼性情報を基に、これらを算出する設定の変更をAF信号処理部204に通知する。例えば、像ずれ量が大きい場合に相関演算を行う領域を広く設定したり、コントラスト情報に応じてバンドパスフィルタの種類を変更したりする。相関演算の詳細については、図13乃至図15を用いて後述する。   The AF signal processing unit 204 performs a correlation operation based on the two image signals for AF output from the CDS / AGC / AD converter 202, and calculates image shift amount and reliability information (two-image coincidence degree, two-image steepness degree). , Contrast information, saturation information, scratch information, etc.). Then, the calculated image shift amount and reliability information are output to the camera control unit 212. In addition, the camera control unit 212 notifies the AF signal processing unit 204 of changes in settings for calculating these based on the acquired image shift amount and reliability information. For example, when the image shift amount is large, a region for performing the correlation calculation is set wide, or the type of the band pass filter is changed according to the contrast information. Details of the correlation calculation will be described later with reference to FIGS.

さらにAF評価値生成部216は、CDS/AGC/ADコンバータ202から出力された撮像信号から高周波成分を抽出してAF評価値信号を生成し、カメラ制御部212へ出力する。AF評価値信号は、撮像素子201からの出力信号に基づいて生成される画像の鮮鋭度(コントラスト状態)を表すものであり、鮮鋭度は撮影光学系の焦点状態(合焦の程度)によって変化するので、結果的に撮影光学系の焦点状態を表す信号となる。なお、AF評価値を生成するのに用いる撮像素子201上の領域は、位相差検出用の像信号を生成するのに用いる領域と対応する領域を含むものとする。   Further, the AF evaluation value generation unit 216 extracts a high frequency component from the imaging signal output from the CDS / AGC / AD converter 202 to generate an AF evaluation value signal, and outputs the AF evaluation value signal to the camera control unit 212. The AF evaluation value signal represents the sharpness (contrast state) of an image generated based on the output signal from the image sensor 201, and the sharpness changes depending on the focus state (degree of focusing) of the photographing optical system. As a result, the signal represents the focus state of the photographing optical system. Note that the area on the image sensor 201 used for generating the AF evaluation value includes an area corresponding to an area used for generating an image signal for phase difference detection.

カメラ制御部212は、カメラ本体20内の各構成と情報をやり取りして制御を行う。カメラ本体20内の処理だけでなく、カメラ操作部214からの入力に応じて、電源のON/OFF、設定の変更、記録の開始、AF制御の開始、記録画像の確認等、ユーザが操作したカメラ機能を実行する。また、先述したようにレンズユニット10内のレンズ制御部106と情報をやり取りし、撮影光学系の制御命令・制御情報を送ったり、レンズユニット内の情報を取得する。また、本実施形態の特徴的な部分としては、カメラ制御部212は、後述するレンズ再起動判定部213で用いる再起動判定用の閾値を設定する。詳細については後述する。   The camera control unit 212 performs control by exchanging information with each configuration in the camera body 20. In response to input from the camera operation unit 214, the user has performed operations such as power ON / OFF, setting change, start of recording, start of AF control, confirmation of recorded image, etc. Perform camera functions. In addition, as described above, information is exchanged with the lens control unit 106 in the lens unit 10, and a control command / control information for the photographing optical system is transmitted, or information in the lens unit is acquired. Further, as a characteristic part of the present embodiment, the camera control unit 212 sets a threshold value for restart determination used in a lens restart determination unit 213 described later. Details will be described later.

カメラ制御部212内にあるレンズ再起動判定部213は、フォーカスレンズ103を停止している状態から再度駆動(再起動)させるかどうかの判定を行う。カメラ制御部212で被写体に合焦したと判定した場合は、レンズユニット10内のレンズ制御部106及びフォーカスレンズ駆動部105を介して、フォーカスレンズ103の駆動を停止する。その後、AF信号処理部204の情報を基に、レンズ再起動判定部213は、再度フォーカスレンズ103を駆動させるかどうかを判定する。レンズ再起動判定部213がフォーカスレンズ103を再起動させると判定した場合は、レンズユニット10内のレンズ制御部106及びフォーカスレンズ駆動部105を介して、フォーカスレンズ103の駆動を再開する。   A lens restart determination unit 213 in the camera control unit 212 determines whether to drive (restart) the focus lens 103 again from a stopped state. When the camera control unit 212 determines that the subject is in focus, the driving of the focus lens 103 is stopped via the lens control unit 106 and the focus lens driving unit 105 in the lens unit 10. Thereafter, based on information from the AF signal processing unit 204, the lens restart determination unit 213 determines whether to drive the focus lens 103 again. When the lens restart determination unit 213 determines to restart the focus lens 103, the driving of the focus lens 103 is resumed via the lens control unit 106 and the focus lens driving unit 105 in the lens unit 10.

静止画撮影時には、いち早くピントを合わせるAF制御が求められるが、動画撮影時には、フォーカシング動作による映像の見え方そのものが記録されるため、フォーカシング動作の品位が重要とされる。品位を高めるための制御の一つとして、常にフォーカスレンズを駆動し続けずに、被写体にピントが合った時点でフォーカスレンズを停止させ、その後、被写体が変わったりボケたと判断されるまでフォーカスレンズ駆動を再開させないように制御する。フォーカスレンズを停止させずに駆動し続けた場合、次のような問題がある。例えば、不用意に低コントラスト部のような測距精度の悪い被写体を測距した場合や、意図する被写体以外の被写体の横切りが発生した場合などに、不用意にフォーカシングしてボケてしまい動画の品位を悪くしてしまう。そのため、動画撮影時には、被写体に合焦したと判断した際には一度フォーカスレンズを停止し、被写体が変化したかを判定してフォーカシングを再開するように制御することで、無駄なフォーカシング動作を抑えて品位を高めることができる。   Although AF control is required to focus quickly when shooting a still image, the quality of the focusing operation is important because when the moving image is shot, the appearance itself of the image by the focusing operation is recorded. As one of the controls for improving the quality, the focus lens is not always driven, but the focus lens is stopped when the subject is in focus, and then the focus lens is driven until it is determined that the subject has changed or is out of focus. Is controlled not to resume. When the focus lens is continuously driven without being stopped, there are the following problems. For example, if you inadvertently measure a subject with poor ranging accuracy, such as a low-contrast part, or if a crossing of a subject other than the intended subject occurs, carelessly focusing and blurring may occur. Deteriorating the quality. Therefore, during movie shooting, when it is determined that the subject is in focus, the focus lens is stopped once, and it is determined whether the subject has changed, and control is performed so that focusing is resumed. Can improve the quality.

上記のように、フォーカスレンズの停止状態から駆動を再開させるにあたって、不用意なフォーカシング動作をさせないために、被写体状況(合焦状態)が変化したと確かに判断できてから再起動させるように制御するのが望ましい。例えば、デフォーカス量が深度以内であれば再起動はさせず、深度外のデフォーカス量を一定時間検出したら再起動させるという処理を行えば、合焦状態が変化したと判断することができる。   As described above, when restarting the drive from the stop state of the focus lens, control is performed so that the subject situation (in-focus state) can be definitely determined to be restarted to prevent inadvertent focusing. It is desirable to do. For example, if the defocus amount is within the depth, restarting is not performed, and if the defocus amount outside the depth is detected for a certain time, restarting is performed, it can be determined that the in-focus state has changed.

しかしながら、合焦状態が変化したからといって、フォーカシングを行いたくないような撮影シーンもある。例えば、測距エリアから一時的に被写体が出て再び戻るような場合は、ピントが合っていた被写体にピントを維持したいので再起動を行わないことが望ましい。一方で、フォーカスレンズを停止している状態からパンニングなどでシーンが変わった場合には、できるだけボケている期間を少なくしてピントを追従させたいため、いち早く再起動を行うことが望ましい。   However, there are shooting scenes in which focusing is not desired because the focus state has changed. For example, when the subject temporarily comes out of the distance measurement area and returns again, it is desirable not to restart the subject because it is desired to maintain the focus on the subject that was in focus. On the other hand, when the scene changes due to panning or the like from the state in which the focus lens is stopped, it is desirable to restart as soon as possible in order to follow the focus while reducing the blurring period as much as possible.

本実施形態では、フォーカスレンズの停止状態から再起動するにあたって、カメラ制御部212(レンズ再起動判定部213)において、検出したAF評価値信号とデフォーカス量に基づき、主被写体を捉えているのか、主被写体やシーンが変わったのか判断する。前者であれば、できるだけフォーカスレンズの停止状態を維持するために、再起動を制限するように制御し、後者であれば、ピントを追従させるために早く再起動を行うように制御する。なお、前者の場合でも、主被写体の状況が変化している場合があるので、再起動は行うように制御する。再起動判定に関する処理の詳細は、図10乃至図12を用いて後述する。   In this embodiment, when restarting from the stopped state of the focus lens, the camera control unit 212 (lens restart determination unit 213) captures the main subject based on the detected AF evaluation value signal and the defocus amount. Determine if the main subject or scene has changed. In the former case, control is performed so as to limit the restart in order to keep the focus lens stopped as much as possible, and in the latter case, control is performed so that the restart is performed quickly in order to follow the focus. Even in the former case, since the situation of the main subject may change, control is performed so that the restart is performed. Details of processing related to the restart determination will be described later with reference to FIGS. 10 to 12.

次に、本実施形態におけるカメラ本体20の動作について、図を用いて説明する。図3は、カメラ本体20の撮影処理の手順を示すフローチャートである。   Next, the operation of the camera body 20 in the present embodiment will be described with reference to the drawings. FIG. 3 is a flowchart showing the procedure of the photographing process of the camera body 20.

まず、ステップS301〜S303で、カメラ制御部212は初期化処理を行う。ステップS301では、カメラ制御部212は、カメラの各種初期値設定を行う。ここでは、撮影処理を開始したとき、または撮影モードが変更されたときに、そのときのユーザ設定や撮影モード等の情報を基に初期値を設定する。ステップS302では、合焦停止フラグをオフにする。ステップS303では、サーチ駆動フラグをオフにして処理を終了する。   First, in steps S301 to S303, the camera control unit 212 performs an initialization process. In step S301, the camera control unit 212 sets various initial values of the camera. Here, when the shooting process is started or when the shooting mode is changed, the initial value is set based on information such as the user setting and the shooting mode at that time. In step S302, the focus stop flag is turned off. In step S303, the search drive flag is turned off and the process ends.

ステップS302で初期化する合焦停止フラグは、動画撮影中に合焦したと判定してフォーカスレンズ103を停止している場合はオンに、合焦しておらずフォーカスレンズ103を駆動している状態である場合はオフにする。合焦停止フラグのオン/オフを切り替えることで、現在フォーカスレンズ103を駆動している状態なのか、停止している状態なのかを判別する。   The focus stop flag that is initialized in step S302 is turned on when the focus lens 103 is stopped because it is determined that the camera is in focus during moving image shooting, and the focus lens 103 is driven without focus. Turn off if it is in a state. By switching on / off of the focus stop flag, it is determined whether the focus lens 103 is currently driven or stopped.

ステップS303で初期化するサーチ駆動フラグは、フォーカスレンズ103を駆動する際、撮像面位相差検出方式で検出したデフォーカス量が信頼できる場合にはオフに、信頼できない場合にはオンにする。デフォーカス量が信頼できる場合とは、デフォーカス量の精度およびデフォーカス方向が確かである場合、すなわち信頼性がある程度より高い状態である。サーチ駆動フラグがオンになると、デフォーカス量を用いずにフォーカスレンズ103を一定方向に駆動して合焦位置を探すサーチ駆動が行われる。   The search drive flag to be initialized in step S303 is turned off when the defocus amount detected by the imaging surface phase difference detection method is reliable when driving the focus lens 103, and turned on when the focus lens 103 is not reliable. The case where the defocus amount is reliable is a case where the accuracy of the defocus amount and the defocus direction are certain, that is, a state where the reliability is higher than a certain level. When the search drive flag is turned on, search drive for searching for the in-focus position by driving the focus lens 103 in a certain direction without using the defocus amount is performed.

ステップS304では、カメラの撮影設定が動画撮影モードか、静止画撮影モードかの判定を行う。動画撮影モードである場合はステップS305へ、静止画撮影モードである場合はステップS306へ進む。ステップS305では動画撮影処理を行い、ステップS307へ進む。ステップS305の動画撮影処理の詳細については図4で後述する。一方、ステップS306では、静止画撮影処理を行いステップS307へ進む。ステップS306の静止画撮影処理の詳細については省略する。   In step S304, it is determined whether the shooting setting of the camera is the moving image shooting mode or the still image shooting mode. If it is in the moving image shooting mode, the process proceeds to step S305. If it is in the still image shooting mode, the process proceeds to step S306. In step S305, a moving image shooting process is performed, and the process proceeds to step S307. Details of the moving image shooting processing in step S305 will be described later with reference to FIG. On the other hand, in step S306, a still image shooting process is performed and the process proceeds to step S307. Details of the still image shooting process in step S306 are omitted.

ステップS307では、撮影処理が停止されたかどうかを判断し、停止されていない場合はステップS308へ進み、停止された場合は撮影処理を終了する。撮影処理が停止された場合とは、カメラの電源が切断されたときや、カメラのユーザ設定処理、撮影画像・動画の確認のための再生処理等、撮影以外の動作が行われたときである。   In step S307, it is determined whether the shooting process has been stopped. If the shooting process has not been stopped, the process proceeds to step S308. If the shooting process has not been stopped, the shooting process is terminated. The shooting process is stopped when the camera is turned off, or when an operation other than shooting is performed, such as user setting processing for the camera, playback processing for checking captured images / movies, etc. .

ステップS308では、撮影モードが変更されたかどうかを判断し、変更されている場合はステップS301へ戻り、変更されていない場合はステップS304へ戻る。撮影モードが変更されていなければ現在の撮影モードの処理を継続して行い、撮影モードが変更された場合はステップS301〜S303で初期化処理を行った上で変更された撮影モードの処理を行う。   In step S308, it is determined whether or not the shooting mode has been changed. If changed, the process returns to step S301, and if not changed, the process returns to step S304. If the shooting mode has not been changed, the processing of the current shooting mode is continued. If the shooting mode has been changed, initialization processing is performed in steps S301 to S303 and then the changed shooting mode is processed. .

次に、図3のステップS305の動画撮影処理について、図4を用いて説明する。ステップS401からS404では、動画記録に関する制御を行う。   Next, the moving image shooting process in step S305 in FIG. 3 will be described with reference to FIG. In steps S401 to S404, control relating to moving image recording is performed.

ステップS401では、カメラ制御部212は、動画記録スイッチがオンされているかどうかを判断する。オンされている場合はステップS402へ進み、オンされていない場合はステップS405へ進む。   In step S401, the camera control unit 212 determines whether the moving image recording switch is turned on. If it is turned on, the process proceeds to step S402. If it is not turned on, the process proceeds to step S405.

ステップS402では、カメラ制御部212は、現在動画記録中かそうでないかを判断する。動画記録中でない場合はステップS403へ進み、動画記録を開始してステップS405へ進む。一方、動画記録中の場合はステップS404へ進み、動画記録を停止してステップS405へ進む。本実施形態においては、動画記録スイッチを押下することで動画の記録開始・停止を行うが、切り替えスイッチ等の他の方式によって記録開始・停止を行っても構わない。   In step S402, the camera control unit 212 determines whether a moving image is currently being recorded. If the moving image is not being recorded, the process proceeds to step S403, where the moving image recording is started and the process proceeds to step S405. On the other hand, if the moving image is being recorded, the process proceeds to step S404, where the moving image recording is stopped and the process proceeds to step S405. In this embodiment, the moving image recording is started / stopped by pressing the moving image recording switch. However, the recording start / stop may be performed by another method such as a changeover switch.

ステップS405では、焦点検出処理を行う。ここでは、図1のカメラ制御部212及びAF信号処理部204で行う撮像面位相差AFを行うためのデフォーカス情報及び信頼性情報を取得する処理である。詳細は図5を用いて後述する。   In step S405, focus detection processing is performed. Here, it is a process of acquiring defocus information and reliability information for performing imaging plane phase difference AF performed by the camera control unit 212 and the AF signal processing unit 204 of FIG. Details will be described later with reference to FIG.

ステップS406では、鮮鋭度情報の取得を行う。ここでは、AF評価値生成部216において、設定された測距領域の撮像信号から先鋭度情報(AF評価値)を取得する処理である。この処理に関しては、従来からの技術であるため、詳細は省略する。   In step S406, sharpness information is acquired. Here, the AF evaluation value generation unit 216 is processing for acquiring sharpness information (AF evaluation value) from the imaging signal of the set distance measurement area. Since this process is a conventional technique, details are omitted.

ステップS407では、カメラ制御部212は、現在合焦停止中かどうかを判断する。合焦停止中でない場合はステップS408へ進み、合焦停止中である場合はステップS409へ進む。合焦停止中かどうかは、先述した合焦停止フラグのオン/オフによって判断する。ステップS408では、AF処理を実施し動画撮影処理を終了する。ステップS408は、ステップS405及びS406で検出した情報を基にAF制御を行うもので、詳細は図7を用いて後述する。   In step S407, the camera control unit 212 determines whether the focus is currently stopped. When the in-focus state is not stopped, the process proceeds to step S408, and when the in-focus state is stopped, the process proceeds to step S409. Whether or not the focus is stopped is determined by turning on / off the focus stop flag described above. In step S408, AF processing is performed, and the moving image shooting processing ends. Step S408 performs AF control based on the information detected in steps S405 and S406, and details will be described later with reference to FIG.

ステップS409では、AF再起動判定を行い、動画撮影処理を終了する。ステップS409は、合焦停止中から被写体が変わったとして再度AF制御を開始するかどうかの判定を行う処理である。詳細は図6を用いて後述する。   In step S409, AF restart determination is performed, and the moving image shooting process ends. Step S409 is processing for determining whether or not AF control is to be started again if the subject has changed since the in-focus state was stopped. Details will be described later with reference to FIG.

次に、図4のステップS405の焦点検出処理について、図5を用いて説明する。まず、ステップS501では、カメラ制御部212は、任意に設定した測距範囲から一対の像信号を取得する。次に、ステップS502では、カメラ制御部212は、ステップS501で取得した一対の像信号から相関量を算出する。   Next, the focus detection process in step S405 in FIG. 4 will be described with reference to FIG. First, in step S501, the camera control unit 212 acquires a pair of image signals from an arbitrarily set ranging range. Next, in step S502, the camera control unit 212 calculates a correlation amount from the pair of image signals acquired in step S501.

続いて、ステップS503では、カメラ制御部212は、ステップS502で算出した相関量から相関変化量を算出する。そして、ステップS504では、カメラ制御部212は、ステップS503で算出した相関変化量からピントずれ量を算出する。   Subsequently, in step S503, the camera control unit 212 calculates a correlation change amount from the correlation amount calculated in step S502. In step S504, the camera control unit 212 calculates a focus deviation amount from the correlation change amount calculated in step S503.

また、ステップS505では、カメラ制御部212は、ステップS504で算出したピントずれ量がどれだけ信頼できるのかを表す信頼性を算出する。これらの処理を測距範囲内に存在する測距領域の数だけ行う。そして、ステップS506では、カメラ制御部212は、測距領域毎にピントずれ量をデフォーカス量に変換する。最後に、ステップS507では、AFに使用する測距領域を決定し、焦点検出処理を終了する。   In step S505, the camera control unit 212 calculates reliability indicating how reliable the amount of focus deviation calculated in step S504 is. These processes are performed for the number of distance measurement areas existing in the distance measurement range. In step S506, the camera control unit 212 converts the focus shift amount into the defocus amount for each distance measurement area. Finally, in step S507, the distance measurement area used for AF is determined, and the focus detection process is terminated.

次に、図13から図15を用いて、図5で説明した焦点検出処理を詳細に説明する。図13は、焦点検出処理で取り扱う測距範囲を示す像信号を取得する領域の一例を表した図である。図13(A)は、画素アレイ1301上の測距範囲1302を示す図である。相関演算を行う為に必要な領域1304は、測距範囲1302および相関演算に必要なシフト領域1303を合わせた領域である。図13(A)中のp、q、s、tは、それぞれx軸方向の座標を表す。ここで、pからqは領域1304を表し、sからtは測距範囲1302を表す。   Next, the focus detection process described in FIG. 5 will be described in detail with reference to FIGS. FIG. 13 is a diagram illustrating an example of a region for acquiring an image signal indicating a range of measurement handled in the focus detection process. FIG. 13A is a diagram showing a distance measurement range 1302 on the pixel array 1301. An area 1304 necessary for performing the correlation calculation is an area obtained by combining the distance measurement range 1302 and the shift area 1303 required for the correlation calculation. In FIG. 13A, p, q, s, and t represent coordinates in the x-axis direction, respectively. Here, p to q represent the region 1304, and s to t represent the distance measurement range 1302.

図13(B)は、測距範囲1302を5つに分割した測距領域1305〜1309を示す図である。一例として、本実施形態では、この測距領域単位でピントずれ量を算出し、焦点検出を行う。また、分割した複数の測距領域の中から最も信頼できる領域の測距結果を選び、その領域で算出したピントずれ量をAFに用いる。なお、測距範囲の分割数は上記に限定されない。   FIG. 13B is a diagram illustrating distance measurement areas 1305 to 1309 obtained by dividing the distance measurement range 1302 into five. As an example, in this embodiment, a focus shift amount is calculated for each distance measurement area unit, and focus detection is performed. Further, the distance measurement result of the most reliable area is selected from the plurality of divided distance measurement areas, and the focus shift amount calculated in the area is used for AF. Note that the number of divisions of the distance measurement range is not limited to the above.

図13(C)は、図13(B)の測距領域1305〜1309を連結した仮の測距領域1310を示す図である。実施形態の一例として、このように測距領域を連結した領域から算出したピントずれ量をAFに用いても良い。測距領域の配置の仕方や大きさ等は、本実施形態に挙げた内容に限られるものではなく、発明の要旨を逸脱しない範囲の形式であれば良い。   FIG. 13C is a diagram showing a temporary ranging area 1310 obtained by connecting the ranging areas 1305 to 1309 in FIG. 13B. As an example of the embodiment, a focus shift amount calculated from an area obtained by connecting the distance measurement areas as described above may be used for AF. The arrangement method, size, and the like of the distance measurement areas are not limited to those described in the present embodiment, and may be in a form that does not depart from the gist of the invention.

図14は、図13で設定した測距領域から取得した像信号を示す図である。sからtが測距範囲を表し、pからqがシフト量を踏まえた測距演算に必要な範囲を表す。また、xからyは、分割した1つ分の測距領域を表す。   FIG. 14 is a diagram showing an image signal acquired from the ranging area set in FIG. From s to t represents a distance measurement range, and from p to q represents a range necessary for distance measurement calculation based on the shift amount. Further, x to y represent one divided distance measuring area.

図14(A)は、シフト前の像信号を波形で表した図である。実線1401が像信号A、破線1402が像信号Bを示している。領域1305から1309は、図13の分割した各測距領域を表す。   FIG. 14A is a diagram showing a waveform of the image signal before the shift. A solid line 1401 indicates the image signal A, and a broken line 1402 indicates the image signal B. Areas 1305 to 1309 represent the distance measurement areas divided in FIG.

図14(B)は、図14(A)のシフト前の像波形に対しプラス方向にシフトした図であり、図14(C)は、図14(A)のシフト前の像波形に対しマイナス方向にシフトした図である。相関量を算出する際には、それぞれ矢印の方向に像信号A1401、像信号B1402を1ビットずつシフトする。   FIG. 14B is a diagram in which the image waveform before the shift in FIG. 14A is shifted in the positive direction, and FIG. 14C is a minus with respect to the image waveform before the shift in FIG. It is the figure shifted to the direction. When calculating the correlation amount, the image signal A1401 and the image signal B1402 are shifted bit by bit in the directions of the arrows, respectively.

続いて、相関量CORの算出法について説明する。まず、図14(B)と(C)で説明した通り、像信号Aと像信号Bを1ビットずつシフトしていき、そのときの像信号Aと像信号Bの差の絶対値の和を算出する。ここで、シフト量をiで表し、最小シフト数は図14中のp−s、最大シフト数は図14中のq−tである。また、xは測距領域の開始座標、yは測距領域の終了座標である。これらを用いて、以下の式(1)によって相関量CORを算出することができる。   Next, a method for calculating the correlation amount COR will be described. First, as described in FIGS. 14B and 14C, the image signal A and the image signal B are shifted bit by bit, and the sum of the absolute values of the differences between the image signal A and the image signal B at that time is calculated. calculate. Here, the shift amount is represented by i, the minimum shift number is ps in FIG. 14, and the maximum shift number is qt in FIG. Further, x is the start coordinate of the distance measurement area, and y is the end coordinate of the distance measurement area. Using these, the correlation amount COR can be calculated by the following equation (1).

図15(A)は、相関量を波形で示した図である。グラフの横軸はシフト量を示し、縦軸は相関量を示す。相関量波形1501において、1502、1503は極値周辺を示している。この中でも相関量が小さい方ほど、A像とB像の一致度が高いといえる。   FIG. 15A is a diagram showing the correlation amount as a waveform. The horizontal axis of the graph indicates the shift amount, and the vertical axis indicates the correlation amount. In the correlation amount waveform 1501, 1502 and 1503 indicate the vicinity of the extreme value. Among these, the smaller the correlation amount, the higher the coincidence between the A image and the B image.

続いて、相関変化量ΔCORの算出法について説明する。まず、図15(A)の相関量波形より、1シフト飛ばしの相関量の差から相関変化量を算出する。この時、シフト量をiで表し、最小シフト数は図14中のp−s、最大シフト数は図14中のq−tである。これら用い、以下の式(2)によって相関変化量ΔCORを算出することができる。   Next, a method for calculating the correlation change amount ΔCOR will be described. First, the correlation change amount is calculated from the correlation amount difference of one shift skip from the correlation amount waveform of FIG. At this time, the shift amount is represented by i, the minimum shift number is ps in FIG. 14, and the maximum shift number is qt in FIG. Using these, the correlation change amount ΔCOR can be calculated by the following equation (2).

図15(B)は、相関変化量ΔCORを波形で示した図である。グラフの横軸はシフト量を示し、縦軸は相関変化量を示す。相関変化量波形1504において、1505、1506は相関変化量がプラスからマイナスになる周辺である。この1505より相関変化量が0となるときをゼロクロスと呼び、最もA像とB像の一致度が高く、そのときのシフト量がピントずれ量となる。   FIG. 15B is a diagram showing the correlation change amount ΔCOR as a waveform. The horizontal axis of the graph indicates the shift amount, and the vertical axis indicates the correlation change amount. In the correlation change amount waveform 1504, reference numerals 1505 and 1506 indicate the vicinity where the correlation change amount becomes positive to negative. When the correlation change amount becomes 0 from 1505, this is called zero crossing, and the degree of coincidence between the A image and the B image is the highest, and the shift amount at that time is the focus shift amount.

図15(C)は、図15(B)の1505の部分を拡大したもので、1507は相関変化量波形1504の一部分である。図15(C)を用いて、ピントずれ量PRDの算出法について説明する。まず、ピントずれ量は整数部分βと小数部分αに分けられる。小数部分αは、図15(C)中の三角形ABCと三角形ADEの相似の関係から、以下の式(3)によって算出することができる。   FIG. 15C is an enlarged view of the portion 1505 in FIG. 15B, and 1507 is a portion of the correlation variation waveform 1504. A method of calculating the focus shift amount PRD will be described with reference to FIG. First, the focus shift amount is divided into an integer part β and a decimal part α. The decimal part α can be calculated by the following equation (3) from the similar relationship between the triangle ABC and the triangle ADE in FIG.

続いて小数部分βは、図15(C)中より以下の式(4)によって算出することができる。   Subsequently, the decimal part β can be calculated by the following equation (4) from FIG.

以上、αとβの和からピントずれ量PRDを算出することができる。   As described above, the focus shift amount PRD can be calculated from the sum of α and β.

また、図15(B)のように複数のゼロクロスが存在する場合は、ゼロクロスでの相関量変化の急峻性maxder(以下、急峻性と呼ぶ)が大きいところを第1のゼロクロスとする。この急峻性はAFのし易さを示す指標で、値が大きいほどAFし易い点であることを示す。急峻性は以下の式(5)によって算出する事ができる。   When there are a plurality of zero crosses as shown in FIG. 15B, the first zero cross is defined as a point where the steepness maxder (hereinafter referred to as steepness) of the correlation amount change at the zero cross is large. This steepness is an index indicating the ease of AF. The larger the value, the easier it is to perform AF. The steepness can be calculated by the following equation (5).

以上のように、ゼロクロスが複数存在する場合は、急峻性によって第1のゼロクロスを決定する。   As described above, when there are a plurality of zero crosses, the first zero cross is determined based on steepness.

続いて、ピントずれ量の信頼性の算出法について説明する。信頼性は、前記急峻性や、像信号A、Bの2像の一致度fnclvl(以下、2像一致度と呼ぶ)によって定義することができる。2像一致度はピントずれ量の精度を表す指標で、値が小さいほど精度が良い。   Next, a method for calculating the reliability of the focus deviation amount will be described. Reliability can be defined by the steepness and the degree of coincidence fnclvl (hereinafter referred to as the degree of coincidence of two images) of the two images of the image signals A and B. The degree of coincidence between the two images is an index representing the accuracy of the amount of focus deviation.

図15(D)は、図15(A)の1502の部分を拡大したもので、1508が相関量波形1501の一部分である。2像一致度は以下の式(6)によって算出できる。   FIG. 15D is an enlarged view of the portion 1502 in FIG. 15A, and 1508 is a portion of the correlation amount waveform 1501. The degree of coincidence between two images can be calculated by the following equation (6).

次に、図4のステップS408のAF処理について、図7のフローチャートを用いて説明する。AF処理は、合焦停止していない状態でのフォーカスレンズの駆動及び、合焦停止の判定を行う処理である。   Next, the AF process in step S408 of FIG. 4 will be described using the flowchart of FIG. The AF processing is processing for driving the focus lens in a state where focusing is not stopped and for determining whether focusing is stopped.

ステップS701では、カメラ制御部212は、デフォーカス量が深度内であり、かつ図5のステップS505で算出した信頼性が所定のレベルより良い値を示しているかどうかを判断する。この条件に該当する場合はステップS702へ進み、そうでない場合はステップS703へ進む。本実施形態では、ステップS701で用いる閾値を深度の1倍としているが、必要に応じて大きく設定したり、小さく設定したりしても構わない。   In step S701, the camera control unit 212 determines whether the defocus amount is within the depth and the reliability calculated in step S505 in FIG. 5 shows a value better than a predetermined level. If this condition is met, the process proceeds to step S702; otherwise, the process proceeds to step S703. In the present embodiment, the threshold used in step S701 is set to be 1 time the depth, but may be set larger or smaller as necessary.

ステップS702では、合焦停止フラグをオンにして処理を終了する。先述したように、被写体に合焦したと判断した場合は、フォーカスレンズを駆動している状態から停止している状態に移行した後、再度フォーカスレンズを駆動するか否か、図4のステップS409で再起動判定を行う。一方、ステップS703では、カメラ制御部212は、レンズ駆動速度や駆動方法を決定してレンズ駆動処理を行い、処理を終了する。   In step S702, the focus stop flag is turned on and the process ends. As described above, when it is determined that the subject is in focus, the process proceeds from the state in which the focus lens is driven to the stop state, and then whether or not the focus lens is to be driven again is determined in step S409 in FIG. Perform a restart judgment with. On the other hand, in step S703, the camera control unit 212 determines the lens driving speed and driving method, performs lens driving processing, and ends the processing.

次に、図4のステップS409におけるAF再起動判定処理について、図6のフローチャートを用いて説明する。AF再起動判定処理は、合焦してフォーカスレンズを停止している状態から、再度フォーカスレンズを駆動するかどうかの判定をする処理である。本フローの処理は、特に記載がない限りカメラ制御部212(レンズ再起動判定部213)により実行される。   Next, the AF restart determination process in step S409 of FIG. 4 will be described using the flowchart of FIG. The AF restart determination process is a process for determining whether to drive the focus lens again from a state where the focus lens is stopped after focusing. The processing of this flow is executed by the camera control unit 212 (lens restart determination unit 213) unless otherwise specified.

まず、ステップS601では、カメラ制御部212は、図5のステップS505で算出した信頼性が所定の閾値(所定のレベル)より良い値かどうかを判断する。良い値を示す場合はステップS602へ進み、悪い値を示す場合はステップS604へ進む。   First, in step S601, the camera control unit 212 determines whether or not the reliability calculated in step S505 in FIG. 5 is better than a predetermined threshold (predetermined level). If the value is good, the process proceeds to step S602. If the value is bad, the process proceeds to step S604.

ステップS602では、カメラ制御部212は、算出したデフォーカス量が深度の所定倍より小さいかどうかを判断する。深度の所定倍より小さい場合はステップS603へ進み、そうでない場合はステップS608へ進む。ステップS603では、AF再起動カウンタaおよびbをリセットし、処理を終了する。   In step S602, the camera control unit 212 determines whether the calculated defocus amount is smaller than a predetermined multiple of the depth. If it is smaller than the predetermined multiple of the depth, the process proceeds to step S603, and if not, the process proceeds to step S608. In step S603, the AF restart counters a and b are reset, and the process ends.

一方、ステップS604に進んだ場合、カメラ制御部212は、AF再起動カウンタaをリセットする。ステップS605では、カメラ制御部212は、位相差検出結果に基づく合焦方向が前回と同じ方向か否かを判定する。同じ方向の場合はステップS606に進み、AF再起動カウンタbを加算してステップS610に進む。同じ方向でない場合はステップS607に進み、AF再起動カウンタbをリセットし、処理を終了する。ここで、AF再起動カウンタbは、信頼性が悪い(検出された方向のみが利用できる)場合に、同じ合焦方向が検出された回数を示している。   On the other hand, when the process proceeds to step S604, the camera control unit 212 resets the AF restart counter a. In step S605, the camera control unit 212 determines whether the focusing direction based on the phase difference detection result is the same as the previous direction. If the directions are the same, the process proceeds to step S606, the AF restart counter b is added, and the process proceeds to step S610. If they are not in the same direction, the process proceeds to step S607, where the AF restart counter b is reset, and the process ends. Here, the AF restart counter b indicates the number of times the same in-focus direction is detected when the reliability is poor (only the detected direction can be used).

一方、ステップS608では、位相差検出結果に基づく合焦方向が前回と同じ方向か否かを判定する。同じ方向の場合はステップS609に進み、同じ方向でない場合はステップS613に進む。   On the other hand, in step S608, it is determined whether the focusing direction based on the phase difference detection result is the same as the previous direction. If the directions are the same, the process proceeds to step S609. If the directions are not the same, the process proceeds to step S613.

ステップS613では、カメラ制御部212は、AF再起動カウンタbをリセットする。そして、ステップS609でAF再起動カウンタaを加算し、ステップS610に進む。ここで、AF再起動カウンタaは、所定値以上(深度の所定倍以上)のデフォーカス量が検出された回数を示している。   In step S613, the camera control unit 212 resets the AF restart counter b. In step S609, the AF restart counter a is added, and the process proceeds to step S610. Here, the AF restart counter a indicates the number of times that a defocus amount equal to or larger than a predetermined value (a predetermined multiple of the depth) is detected.

上述したように、デフォーカス量が所定より大きい、または同じ合焦方向が連続して検出されている場合には、主被写体の状況が変化している可能性がある。そのため、ステップS606またはステップS609でAF再起動カウンタを加算し、AFを再起動する準備を行う。検出したデフォーカス量が所定より小さく、位相差検出結果の信頼性も高い状態を維持している場合は、継続してフォーカスレンズを停止させておくためにステップS603でAF再起動カウンタをリセットする。   As described above, when the defocus amount is larger than the predetermined value or when the same in-focus direction is continuously detected, there is a possibility that the situation of the main subject has changed. Therefore, in step S606 or step S609, an AF restart counter is added to prepare for restarting AF. If the detected defocus amount is smaller than the predetermined value and the reliability of the phase difference detection result is maintained high, the AF restart counter is reset in step S603 to keep the focus lens stopped. .

ここで、ステップS601で設定する信頼性の閾値は、例えば位相差検出結果から算出した距離が信頼できる値を設定する。ステップS601で信頼性が所定の閾値より悪い場合、デフォーカス量から算出した距離が信頼できず、合焦方向のみが利用可能である。また、ステップS602で設定するデフォーカス量の閾値は、主被写体が変わったときには再起動が行いやすく、主被写体が変わっていないときには再起動が不用意にかかりにくくするのを考慮してチューニングを行う。一例として、主被写体のボケが見えるようになる深度の1倍を設定する。   Here, as the reliability threshold value set in step S601, for example, a value with which the distance calculated from the phase difference detection result can be trusted is set. If the reliability is worse than the predetermined threshold value in step S601, the distance calculated from the defocus amount is not reliable, and only the in-focus direction can be used. Further, the defocus amount threshold value set in step S602 is tuned in consideration of the fact that it is easy to restart when the main subject changes, and that the restart is not easily inadvertent when the main subject has not changed. . As an example, 1 time is set to a depth at which the blur of the main subject becomes visible.

次に、ステップS610では、カメラ制御部212は、AF再起動閾値を設定する。ステップS610のAF再起動閾値設定処理は本実施形態の特徴的な部分であり、後述するステップS611でAF再起動カウンタを用いてAF再起動判定を行う際の閾値を設定する。AF再起動閾値設定処理の詳細は、図11のフローチャートを用いて後述する。   Next, in step S610, the camera control unit 212 sets an AF restart threshold. The AF restart threshold setting process in step S610 is a characteristic part of the present embodiment, and a threshold for performing AF restart determination using an AF restart counter in step S611 described later is set. Details of the AF restart threshold setting process will be described later with reference to the flowchart of FIG.

ステップS611に進み、カメラ制御部212は、AF再起動カウンタaまたはbがAF再起動閾値以上かどうかを判断する。AF再起動閾値以上の場合はステップS612へ進み、AF再起動閾値未満の場合は処理を終了する。ステップS612では、合焦停止フラグをオフにしてAF再起動を行い、フォーカスレンズ駆動を再開するようにして処理を終了する。   In step S611, the camera control unit 212 determines whether the AF restart counter a or b is greater than or equal to the AF restart threshold. If it is greater than or equal to the AF restart threshold, the process proceeds to step S612. If it is less than the AF restart threshold, the process ends. In step S612, the focus stop flag is turned off, AF restart is performed, and the processing is ended so as to resume focus lens driving.

上述したステップS611では、AFの再起動をするにあたって、ステップS606またはS609で加算したAF再起動カウンタがステップS610で設定した閾値より大きいかどうかを判断する。このようにして、主被写体のピント面が変わったかどうかを一定時間の間確認するように制御する。また、本実施形態ではステップS610で設定するAF再起動閾値を合焦度合いに応じて変更することで、再起動判定するための条件を変える。これにより、主被写体のピント面が変化していると判断できる場合は、早く再起動してピントを追従するように制御する。一方、ピント面が変化していない(合焦を維持している)場合は、再起動を制限するように制御することで、不用意にフォーカシングして品位の悪い挙動をしてしまうことを防ぐ。   In step S611 described above, it is determined whether the AF restart counter added in step S606 or S609 is larger than the threshold set in step S610 when restarting AF. In this way, control is performed so as to confirm whether or not the focus surface of the main subject has changed for a certain period of time. In this embodiment, the AF restart threshold set in step S610 is changed according to the degree of focus, thereby changing the conditions for determining restart. As a result, when it can be determined that the focus surface of the main subject has changed, control is performed so as to quickly restart and follow the focus. On the other hand, when the focus surface has not changed (maintained in focus), control is performed so as to limit the restart, thereby preventing inadvertent focusing and poor-quality behavior. .

次に、図6のステップS610におけるAF再起動閾値設定処理について、図11を用いて説明する。 ステップS1101では、図4のステップS406で取得した結果に基づく合焦度合いが閾値TH1より高いか否かを判定する。TH1よりも高い場合にはステップS1103へ進み、そうでない場合にはステップS1102へ進む。   Next, the AF restart threshold value setting process in step S610 in FIG. 6 will be described with reference to FIG. In step S1101, it is determined whether the degree of focus based on the result acquired in step S406 in FIG. 4 is higher than the threshold value TH1. If it is higher than TH1, the process proceeds to step S1103. Otherwise, the process proceeds to step S1102.

次に、ステップS1102では、前述の合焦度合いが閾値TH2(<TH1)より高いか否かを判定する。TH2よりも高い場合にはステップS1104へ進み、そうでない場合にはステップS1105へ進む。   Next, in step S1102, it is determined whether or not the above-described degree of focus is higher than a threshold value TH2 (<TH1). If it is higher than TH2, the process proceeds to step S1104; otherwise, the process proceeds to step S1105.

なお、上記合焦度合いの一例として、本実施形態では、撮像信号から特定の周波数成分を抽出して生成したAF評価値(TEP)をコントラスト値(MMP)で正規化することで算出される簡易合焦度を用いる。この簡易合焦度が低いほど、フォーカスレンズの位置が合焦位置から離れている可能性が高く、簡易合焦度が高いほど、合焦位置から近い可能性が高い。なお、合焦度合いの判定は上記簡易合焦度に限定されず、他の方法で算出された評価値などを用いて判定してもよい。   As an example of the degree of focus, in the present embodiment, the AF evaluation value (TEP) generated by extracting a specific frequency component from the imaging signal is simply calculated by normalizing with the contrast value (MMP). Use the degree of focus. The lower the simple focus degree, the higher the possibility that the position of the focus lens is away from the focus position. The higher the simple focus degree, the higher the possibility that the focus lens is closer to the focus position. Note that the determination of the degree of focus is not limited to the above-described simple focus degree, and may be determined using an evaluation value calculated by another method.

ステップS1103〜S1105において、それぞれ図11に示すように、AF再起動閾値X1,Y1,Z1,X2,Y2,Z2を設定する。ここで、AF再起動閾値X1,Y1,Z1は、上述したAF再起動カウンタaの判定に用いられ、AF再起動閾値X2,Y2,Z2は、上述したAF再起動カウンタbの判定に用いられる。なお、AF再起動閾値には以下の関係がある。
X1>Y1>Z1
X2>Y2>Z2
X1<X2、Y1<Y2、Z1<Z2
In steps S1103 to S1105, as shown in FIG. 11, AF restart thresholds X1, Y1, Z1, X2, Y2, and Z2 are set. Here, the AF restart thresholds X1, Y1, and Z1 are used for the determination of the AF restart counter a described above, and the AF restart thresholds X2, Y2, and Z2 are used for the determination of the AF restart counter b described above. . The AF restart threshold has the following relationship.
X1>Y1> Z1
X2>Y2> Z2
X1 <X2, Y1 <Y2, Z1 <Z2

上述の設定により、合焦している状態で深度の所定倍よりも大きいデフォーカス量が検出された場合は、直ちにフォーカスレンズを駆動せずに、出力されるデフォーカス量を所定期間監視することで、AFの誤動作を軽減することができる。また、一方で、ボケている状態で深度の所定倍よりも大きいデフォーカス量が検出された場合は、速やかにフォーカスレンズを駆動してピントを合わせることができる。   If a defocus amount larger than a predetermined multiple of the depth is detected in the focused state, the output defocus amount is monitored for a predetermined period without driving the focus lens immediately. Thus, AF malfunction can be reduced. On the other hand, when a defocus amount larger than a predetermined multiple of the depth is detected in the blurred state, the focus lens can be quickly driven to focus.

ステップS1106では、設定したAF再起動閾値を調整する処理を行い、本フローの処理を終了する。ステップS1106のAF再起動閾値調整処理の詳細については、図12を用いて後述する。   In step S1106, a process for adjusting the set AF restart threshold value is performed, and the process of this flow ends. Details of the AF restart threshold value adjustment process in step S1106 will be described later with reference to FIG.

先述したように、動画撮影時のAF制御において、被写体に合焦してフォーカスレンズを停止した後、被写体の変化(シーンの変化)があると判断した場合、素早くフォーカスレンズを再起動することで、違和感の少ないフォーカシングを行うことができる。一方で、被写体の変化(シーンの変化)がないと判断した場合、フォーカスレンズを停止させておくことで、違和感の少ないシーンを撮影することできる。   As described above, in AF control during movie shooting, after focusing on the subject and stopping the focus lens, if it is determined that there is a subject change (scene change), the focus lens can be restarted quickly. , Focusing with less discomfort can be performed. On the other hand, when it is determined that there is no subject change (scene change), it is possible to shoot a scene with less discomfort by stopping the focus lens.

具体的な動作の一例について、図9を用いて説明する。図6のステップS601の判定により、検出したデフォーカス量の信頼性が所定より良い、つまり測距結果が使用できる場合、カメラ制御部212は、デフォーカス量が図9(A)に示す「深度内」か「深度外」かを判断する。「深度内」の領域であれば、フォーカスレンズを駆動せず停止し続けるように制御する。これは、図6のステップS602でYesの場合に該当する。   An example of a specific operation will be described with reference to FIG. When the reliability of the detected defocus amount is better than the predetermined value, that is, the distance measurement result can be used as a result of the determination in step S601 in FIG. 6, the camera control unit 212 determines that the defocus amount is “depth” shown in FIG. Determine whether it is “inside” or “outside of depth”. If it is in the “in-depth” region, control is performed so that the focus lens continues to be stopped without being driven. This corresponds to the case of Yes in step S602 in FIG.

検出したデフォーカス量が「深度外」であった場合、先述の合焦度合いに応じて再起動の条件を設定する。図9(B)では、合焦度合いに応じた再起動閾値を表で示している。図9(B)の表で、「合焦」であると判断した場合、カメラ制御部212は、図4のステップS404の焦点検出処理により「深度外」のデフォーカス量がX1=10回以上出力されたら、出力されたデフォーカス量を使用してフォーカスレンズを再起動する。被写体にピントが合っている状態では、閾値を大きく(10回)設定することで、不要な再起動を防ぐようにする。そのため、デフォーカス結果のばらつきや被写体が測距領域に一時的に出入りすることによってデフォーカス量が「深度外」となっても、安定したフォーカス制御を行うことができる。   If the detected defocus amount is “out of depth”, the restart condition is set according to the degree of focus described above. In FIG. 9B, the restart threshold value corresponding to the degree of focus is shown in a table. If it is determined in the table of FIG. 9B that “in-focus”, the camera control unit 212 determines that the defocus amount of “out of depth” is X1 = 10 times or more by the focus detection processing in step S404 of FIG. When it is output, the focus lens is restarted using the output defocus amount. In a state where the subject is in focus, an unnecessary restart is prevented by setting a large threshold value (10 times). Therefore, stable focus control can be performed even when the defocus amount becomes “out of depth” due to variations in the defocus result and the subject temporarily entering and exiting the distance measurement area.

次に、合焦度合いが「小ボケ」であると判断した場合、カメラ制御部212は、図4のステップS404の焦点検出処理により「深度外」のデフォーカス量がY1=5回以上出力されたら、出力されたデフォーカス量を使用してフォーカスレンズを再起動する。また、合焦度合いが「大ボケ」であると判断した場合、カメラ制御部212は、図4のステップS404の焦点検出処理により「深度外」のデフォーカス量がZ1=3回以上出力されたら、出力されたデフォーカス量を使用してフォーカスレンズを再起動する。   Next, when it is determined that the degree of focus is “small blur”, the camera control unit 212 outputs the defocus amount “out of depth” Y1 = 5 times or more by the focus detection process in step S404 of FIG. Then, the focus lens is restarted using the output defocus amount. If it is determined that the in-focus level is “large blur”, the camera control unit 212 outputs the “out-of-depth” defocus amount Z1 = 3 times or more by the focus detection process in step S404 of FIG. , Restart the focus lens using the output defocus amount.

このように、合焦度合いが低い場合は、閾値を小さく設定することで、速やかにフォーカスレンズを再起動する。そのため、パンニングによって被写体やシーンが変わったり、新しい被写体が画面に入ってくることによってボケている場合でも、すぐにフォーカスレンズを再起動することができるので、応答性の良いフォーカス駆動をすることができる。
なお、上記の例において再起動する際に使用するデフォーカス量は、再起動条件成立時に出力された値でも良いし、過去のデフォーカス量の平均を用いる方法でも良い。
As described above, when the degree of focusing is low, the focus lens is promptly restarted by setting the threshold value small. Therefore, even if the subject or scene changes due to panning or a new subject comes out of the screen, the focus lens can be restarted immediately, so focus driving with good responsiveness can be performed. it can.
Note that the defocus amount used when restarting in the above example may be a value output when the restart condition is satisfied, or a method using an average of past defocus amounts.

図6のステップS601の判定により、検出したデフォーカス量の信頼性が所定より悪い、つまり測距結果が使用できずに方向のみを使用できる場合も、信頼性が良い場合と同様に、合焦度合いに応じて再起動の条件を設定する。但し、信頼性が所定より悪い場合は、良い場合と比較して、位相差AF結果を使用して再起動する条件を厳しくする、すなわち再起動閾値を大きく設定する。   In the case where the reliability of the detected defocus amount is worse than a predetermined value based on the determination of step S601 in FIG. Set the restart conditions according to the degree. However, when the reliability is lower than a predetermined value, the restart condition is made stricter by using the phase difference AF result, that is, the restart threshold value is set larger than when the reliability is good.

図9(B)の表において、方向のみ利用可能な場合に、「合焦」であると判断した場合、カメラ制御部212は、図4のステップS404の焦点検出処理により同一の方向がX2=12回以上出力されたら、出力された方向へフォーカスレンズを再起動する。次に、合焦状態が「小ボケ」であると判断した場合、カメラ制御部212は、図4のステップS404の焦点検出処理により同一の方向がY2=8回以上出力されたら、出力された方向へフォーカスレンズを再起動する。また、合焦状態が「大ボケ」であると判断した場合、カメラ制御部212は、図4のステップS404の焦点検出処理により同一の方向がZ2=4回以上出力されたら、出力された方向へフォーカスレンズを再起動する。   In the table of FIG. 9B, when only the direction is available and it is determined that “focusing” is set, the camera control unit 212 determines that the same direction is X2 = by the focus detection processing in step S404 of FIG. If it is output more than 12 times, the focus lens is restarted in the output direction. Next, when it is determined that the in-focus state is “small blur”, the camera control unit 212 outputs the same direction when Y2 = 8 times or more is output by the focus detection process in step S404 of FIG. Restart the focus lens in the direction. If it is determined that the in-focus state is “large blur”, the camera control unit 212 outputs the output direction when the same direction is output Z2 = 4 times or more by the focus detection process in step S404 of FIG. Restart the focus lens.

なお上記の再起動閾値は、経験的に値を決定しているが、X1>Y1>Z1、X2>Y2>Z2の関係が成り立っていれば、上記の値に限定されない。   The restart threshold value is determined empirically, but is not limited to the above value as long as the relationship of X1> Y1> Z1 and X2> Y2> Z2 holds.

以上のように、本実施形態では、フォーカスレンズを再起動するための条件を合焦度合いに応じて変更する。合焦度合いが高い場合は、再起動閾値を大きく設定する。これにより、被写体が測距領域から一時的に抜けて再び戻った場合や、被写体のボケやブレが一瞬発生した場合などに、深度を超えるデフォーカス量が検出されても、不要な再起動が行われるのを防ぐことができる。そのため、画面内で被写体が移動したり別の被写体が一時的にフレームインしてきた場合や、被写体の前を別の被写体が通り過ぎた場合でも、安定的なフォーカス制御を行うことができる。なお、本実施形態において、再起動閾値を大きくすることは、再起動までの期間を長くすると換言することができる。   As described above, in the present embodiment, the condition for restarting the focus lens is changed according to the degree of focus. If the degree of focus is high, the restart threshold is set large. This allows unnecessary restart even if a defocus amount exceeding the depth is detected, such as when the subject temporarily leaves the distance measurement area and returns again, or when the subject is blurred or blurred for a moment. Can be prevented. Therefore, stable focus control can be performed even when a subject moves on the screen or another subject temporarily enters the frame, or when another subject passes in front of the subject. In the present embodiment, increasing the restart threshold can be said to increase the period until restart.

また、合焦度合いが低い場合は、再起動閾値を小さくする。これにより、画面全体がボケており被写体に合焦していないことがほぼ明らかな場合に、速やかに再起動を行うことができる。そのため、被写体がフレームアウトしたりパンニング等によりシーンが変更された場合に、すぐにフォーカス制御を行うことができる。なお、本実施形態において、再起動閾値を小さくすることは、再起動までの期間を短くすると換言することができる。   When the degree of focus is low, the restart threshold is decreased. As a result, when it is almost clear that the entire screen is out of focus and the subject is not in focus, it is possible to restart quickly. Therefore, when the subject is out of frame or the scene is changed by panning or the like, focus control can be performed immediately. In the present embodiment, reducing the restart threshold can be said to shorten the period until restart.

次に、図11におけるステップS1106のAF再起動閾値調整処理について、図12のフローチャートを用いて説明する。ステップS1201では、図5のステップS507で設定した測距領域の像高が所定より高いかどうかを判断する。所定より高い場合はステップS1202へ進み、そうでない場合はステップS1203へ進む。   Next, the AF restart threshold adjustment processing in step S1106 in FIG. 11 will be described using the flowchart in FIG. In step S1201, it is determined whether the image height of the distance measurement area set in step S507 in FIG. 5 is higher than a predetermined value. If it is higher than the predetermined value, the process proceeds to step S1202, and if not, the process proceeds to step S1203.

ステップS1202では、取得した絞り値より、絞りが所定より小絞り側(開口が小さい)かどうかを判断する。小絞り側である場合はステップS1203へ進み、そうでない場合は処理を終了する。ステップS1203では、図11のステップS1103〜S1105で設定したAF再起動閾値が大きくなるようにゲインを掛け、処理を終了する。   In step S1202, it is determined from the acquired aperture value whether the aperture is smaller than the predetermined aperture (the aperture is small). If it is on the small aperture side, the process proceeds to step S1203, and if not, the process ends. In step S1203, a gain is applied so that the AF restart threshold set in steps S1103 to S1105 in FIG. 11 is increased, and the process is terminated.

撮像面位相差検出方式では、一般的に像高が高くなるほど像信号A、Bを取得する瞳A、Bに入射する光量差が大きくなり、瞳内の位置によって瞳強度が異なるという特性がある。そのため、像高が高い位置では像信号A、B間のレベル差が顕著に表れ、像信号A、Bの像一致度が低下してしまうことでデフォーカス検出精度が低下してしまう。   The imaging plane phase difference detection method generally has a characteristic that the higher the image height, the greater the difference in the amount of light that enters the pupils A and B that acquire the image signals A and B, and the pupil intensity varies depending on the position in the pupil. . For this reason, the level difference between the image signals A and B appears remarkably at a position where the image height is high, and the image coincidence between the image signals A and B is lowered, so that the defocus detection accuracy is lowered.

また、撮像面位相差検出方式では、像信号A、Bの像ずれ量をデフォーカス量に換算する換算係数が、絞り値に連動して大きくなっていくという特性がある。これは、絞りを絞るほど像信号A、Bを結像する基線長が短くなってしまうためである。そのため、絞った状態では換算係数が膨大になってしまうために、少しの像ずれ量が大きなデフォーカス量に換算されてしまい、デフォーカス精度が悪化してしまう。   Further, the imaging surface phase difference detection method has a characteristic that a conversion coefficient for converting the image shift amount of the image signals A and B into a defocus amount increases in conjunction with the aperture value. This is because the base line length for imaging the image signals A and B becomes shorter as the aperture is reduced. Therefore, since the conversion coefficient becomes enormous in the narrowed state, a slight image shift amount is converted into a large defocus amount, and the defocus accuracy is deteriorated.

上述したように(1)測距領域の像高が高い場合、(2)絞りが小絞り側である場合は、デフォーカス検出精度が低下してしまい、検出するデフォーカス量のバラつきが大きくなってしまう。このような条件では、深度外のデフォーカス量を検出する機会が多くなるため、例えば合焦しているにも関わらず想定外にAF再起動判定を行ってしまうことがある。そのため、不用意なフォーカシングがなされてしまうことでAF制御の品位が悪くなってしまうという問題がある。   As described above, (1) when the image height of the distance measurement area is high, and (2) when the aperture is on the small aperture side, the defocus detection accuracy decreases, and the variation in the detected defocus amount increases. End up. Under such conditions, there are many opportunities to detect the defocus amount outside the depth, and therefore, for example, the AF restart determination may be unexpectedly performed although the in-focus state is in focus. Therefore, there is a problem that the quality of AF control is deteriorated due to inadequate focusing.

そこで、上述したような条件では、AF再起動閾値が大きくなるようにゲイン掛けを行うことで、再起動判定が行われにくくするようにする。これにより、想定外にAF再起動判定が行なわれることによる不要なフォーカシング動作を抑え、AF制御の品位を高めることができる。   Thus, under the conditions described above, the gain determination is performed so that the AF restart threshold value is increased, thereby making it difficult for the restart determination to be performed. As a result, unnecessary focusing operation due to unexpected AF restart determination can be suppressed, and the quality of AF control can be improved.

なお、本実施形態では絞り値によってAF再起動閾値を変更したが、撮像面位相差方式の原理的には像ずれ量をデフォーカス量に換算する換算係数が絞りを絞るほど大きくなることがそもそもの理由である。したがって、絞り値ではなくこの換算係数に応じてAF再起動閾値を変更しても構わない。また、この換算係数が変動するパラメータが絞り値以外にも存在すれば、そのパラメータに応じてAF再起動閾値を変更する構成でも構わない。   In this embodiment, the AF restart threshold is changed depending on the aperture value. However, in principle, the conversion coefficient for converting the image shift amount into the defocus amount increases as the aperture is reduced in principle. Is the reason. Therefore, the AF restart threshold value may be changed according to this conversion coefficient instead of the aperture value. If there is a parameter whose conversion coefficient varies other than the aperture value, the AF restart threshold may be changed according to the parameter.

以上説明したように、本実施形態では、フォーカスレンズを停止した状態から再起動判定を行うにあたって、撮像信号に基づく合焦度合いに応じて、再起動の条件を変更する。合焦度合いが低ければ、シーンの切り替わりや被写体の変化があったと推定されるので、再起動しやすい条件に設定する。これにより、主被写体へのピントの追従を早くすることができるので、ボケを抑えてAFの品位を高めることができる。また、合焦度合いが高ければ、シーンが変わっておらず被写体を捉え続けていると推定されるので、再起動の条件が厳しくなるように設定する。これにより、主被写体以外の被写体へピントが移ることを抑え、主被写体にピントを留めておきやすくなり、AFの品位を高めることができる。   As described above, in this embodiment, when performing the restart determination from the state where the focus lens is stopped, the restart condition is changed according to the degree of focus based on the imaging signal. If the degree of focus is low, it is presumed that there has been a scene change or subject change. Accordingly, it is possible to quickly follow the focus on the main subject, and it is possible to suppress blur and improve the quality of AF. If the degree of focus is high, it is presumed that the scene has not changed and the subject is still being captured, so the conditions for restarting are set to be strict. As a result, it is possible to prevent the focus from being shifted to a subject other than the main subject, to easily keep the focus on the main subject, and to improve the quality of AF.

なお、本実施形態では、デフォーカス量の測距回数によって再起動判定を行っているが、回数ではなく時間を用いて再起動判定を行うように制御してもよい。たとえば、深度外のデフォーカス量を検出した時点、あるいは信頼性が所定より悪くなった時点からの時間を計測し、AF再起動閾値として経過時間を設定するような制御である。   In this embodiment, the restart determination is performed based on the number of times of defocus amount ranging. However, the restart determination may be performed using time instead of the number of times. For example, the time is measured from the time when a defocus amount outside the depth is detected or the time when reliability becomes worse than a predetermined value, and the elapsed time is set as the AF restart threshold.

本実施形態によれば、撮像面位相差検出方式を用いたAF制御を行う際に、撮影条件に応じた適切なフォーカスレンズ再起動判定を行い、品位の良いフォーカシングを実現することができる。   According to the present embodiment, when performing AF control using the imaging surface phase difference detection method, it is possible to perform an appropriate focus lens restart determination according to the imaging conditions, and to realize high-quality focusing.

(第二の実施形態)
以下、本発明の第二の実施形態について説明する。本実施形態では、第一の実施形態の特徴的な部分として説明したAF再起動判定の方法を変更する。第一の実施形態では、AF再起動判定を行うにあたって、深度外のデフォーカス量を連続で所定回数検出した場合にAF再起動を行った。一方、本実施形態では、各合焦状態においてフォーカスを再起動するデフォーカス量の閾値を変更する。
(Second embodiment)
Hereinafter, a second embodiment of the present invention will be described. In this embodiment, the AF restart determination method described as a characteristic part of the first embodiment is changed. In the first embodiment, when performing AF restart determination, AF restart is performed when a defocus amount outside the depth is continuously detected a predetermined number of times. On the other hand, in the present embodiment, the defocus amount threshold for restarting the focus in each in-focus state is changed.

本実施形態におけるレンズユニット及びカメラ本体からなるレンズ交換式カメラの構成は、第一の実施形態で図1を基に説明した構成と同様なので説明を省略する。また第一の実施形態で図3、4、5、7、12のフローチャートを用いて説明した処理は、本実施形態においても同様なので説明を省略する。   Since the configuration of the interchangeable lens camera including the lens unit and the camera body in the present embodiment is the same as that described with reference to FIG. 1 in the first embodiment, the description thereof is omitted. In addition, since the processing described with reference to the flowcharts of FIGS. 3, 4, 5, 7, and 12 in the first embodiment is the same in this embodiment, the description thereof is omitted.

図4のステップS409における本実施形態のAF再起動判定処理について、図10のフローチャートを用いて説明する。ステップS1001において、カメラ制御部212は、図5のステップS505で算出した信頼性が所定の閾値より良い値かどうかを判断する。信頼性が良い値を示す場合はステップS1002へ進み、悪い値を示す場合は処理を終了する。なお、ここでの所定の閾値は、図6のステップS601と同様に、デフォーカス量から算出した距離が信頼できる値を設定する。   The AF restart determination process of this embodiment in step S409 of FIG. 4 will be described using the flowchart of FIG. In step S1001, the camera control unit 212 determines whether or not the reliability calculated in step S505 in FIG. 5 is better than a predetermined threshold value. When the reliability shows a good value, the process proceeds to step S1002, and when the reliability shows a bad value, the process ends. Note that the predetermined threshold here is set to a value with which the distance calculated from the defocus amount can be trusted, as in step S601 in FIG.

ステップS1002では、カメラ制御部212は、算出したデフォーカス量が深度内であるかどうかを判断する。深度内である場合は処理を終了し、深度外である場合はステップS1003へ進む。   In step S1002, the camera control unit 212 determines whether the calculated defocus amount is within the depth. If it is within the depth, the process ends. If it is outside the depth, the process proceeds to step S1003.

ステップS1003では、AF再起動閾値設定処理を行い、ステップS1004へ進む。ステップS1003における本実施形態のAF再起動閾値設定処理の詳細については後述する。   In step S1003, AF restart threshold setting processing is performed, and the process proceeds to step S1004. Details of the AF restart threshold setting processing of this embodiment in step S1003 will be described later.

ステップS1004では、検出したデフォーカス量がステップS1003で設定したAF再起動閾値以上であるか否かを判定する。AF再起動閾値未満であれば処理を終了する。一方、AF再起動閾値以上であればステップS1005に移動し、合焦停止フラグをオフにしてAF再起動を行い、フォーカスレンズ駆動を再開するようにして処理を終了する。   In step S1004, it is determined whether or not the detected defocus amount is greater than or equal to the AF restart threshold set in step S1003. If it is less than the AF restart threshold, the process ends. On the other hand, if it is equal to or greater than the AF restart threshold value, the process moves to step S1005, the focus stop flag is turned off, AF restart is performed, and the process is terminated to restart the focus lens drive.

次に、図16を用いて、図10のステップS1003におけるAF再起動閾値設定処理について詳しく説明する。図16におけるステップS1601、S1603、S1606の処理は、それぞれ図11におけるステップS1101、S1102、S1106の処理と同様なので説明を省略する。   Next, the AF restart threshold setting process in step S1003 of FIG. 10 will be described in detail with reference to FIG. The processes in steps S1601, S1603, and S1606 in FIG. 16 are the same as the processes in steps S1101, S1102, and S1106 in FIG.

ステップS1602では、合焦度合いが「合焦」であると判断された場合であり、カメラ制御部212はAF再起動閾値(デフォーカス量)を「深度外3」に設定し、ステップS1606に進む。   In step S1602, it is determined that the in-focus degree is “in-focus”, and the camera control unit 212 sets the AF restart threshold (defocus amount) to “out of depth 3”, and the process proceeds to step S1606. .

また、ステップS1604では、合焦度合いが「小ボケ」であると判断された場合であり、カメラ制御部212はAF再起動閾値を「深度外2」に設定し、ステップS1606に進む。   In step S1604, it is determined that the degree of focus is “small blur”, and the camera control unit 212 sets the AF restart threshold to “outside depth 2”, and the process proceeds to step S1606.

また、ステップS1605では、合焦度合いが「大ボケ」であると判断された場合であり、カメラ制御部212はAF再起動閾値を「深度外1」に設定し、ステップS1606に進む。   In step S1605, it is determined that the degree of focus is “large blur”. The camera control unit 212 sets the AF restart threshold to “out of depth 1”, and the process advances to step S1606.

ここで、図16で設定われるAF再起動閾値について、図17を用いて説明する。図17(A)は、AF再起動閾値としての「深度外1」「深度外2」「深度外3」の関係を示している。本実施形態で設定されるデフォーカス量の閾値について、以下の条件が成り立つ必要がある。
深度外3>深度外2>深度外1
Here, the AF restart threshold set in FIG. 16 will be described with reference to FIG. FIG. 17A shows the relationship of “outside depth 1”, “outside depth 2”, and “outside depth 3” as AF restart thresholds. The following conditions must be satisfied for the defocus amount threshold value set in the present embodiment.
Outside depth 3> Outside depth 2> Outside depth 1

すなわち、「合焦」時にはAF再起動閾値を「深度外3」に設定することで、デフォーカス量が大きい場合だけフォーカスレンズを再起動するようにする。そのため、被写体に合焦しているときに出力されるデフォーカス量のばらつきによりフォーカス制御が不安定になるのを抑制することができる。一方、「大ボケ」時にはAF再起動閾値を「深度外1」に設定することで、デフォーカス量が深度を超えていればフォーカスを再起動するようにする。そのため、「大ボケ」時には素早くピントを合わせるように制御を行うことができる。なお、各閾値は、主被写体が変わったときには再起動が行いやすく、主被写体が変わっていないときには再起動が不用意にかかりにくくするのを考慮してチューニングを行うこととする。   That is, at the time of “focusing”, the AF restart threshold is set to “out of depth 3”, so that the focus lens is restarted only when the defocus amount is large. Therefore, it is possible to prevent the focus control from becoming unstable due to variations in the defocus amount output when the subject is in focus. On the other hand, the AF restart threshold is set to “outside depth 1” at “large blur”, so that the focus is restarted if the defocus amount exceeds the depth. For this reason, it is possible to perform control so as to quickly focus at the time of “large blur”. Note that each threshold is tuned in consideration of easy restart when the main subject has changed, and inadvertently making it difficult to restart when the main subject has not changed.

以上説明したように、本実施形態においても、フォーカスレンズを再起動するための条件を合焦度合いに応じて変更する。これにより、撮像面位相差検出方式を用いたAF制御を行う際に、撮影条件に応じた適切なフォーカスレンズ再起動判定を行い、品位の良いフォーカシングを実現することができる。   As described above, also in this embodiment, the condition for restarting the focus lens is changed according to the degree of focus. Thereby, when performing AF control using the imaging surface phase difference detection method, it is possible to perform an appropriate focus lens restart determination according to the imaging condition, and to realize focusing with high quality.

(第三の実施形態)
以下、本発明の第三の実施形態について説明する。本実施形態では、第一の実施形態の特徴的な部分として説明したAF再起動判定の方法を変更する。第一の実施形態では、AF再起動判定を行うにあたって、深度外のデフォーカス量を連続で所定回数検出した場合にAF再起動を行った。一方、本実施形態では、所定測距回数の内、深度外のデフォーカス量(あるいは所定より悪い信頼性)を所定回数以上検出していればAF再起動するように制御する。すなわち、深度外のデフォーカス量を連続で検出しなくても、AF再起動させる制御方法である。
(Third embodiment)
The third embodiment of the present invention will be described below. In this embodiment, the AF restart determination method described as a characteristic part of the first embodiment is changed. In the first embodiment, when performing AF restart determination, AF restart is performed when a defocus amount outside the depth is continuously detected a predetermined number of times. On the other hand, in the present embodiment, control is performed so that AF is restarted when a defocus amount outside the depth (or reliability worse than the predetermined value) is detected a predetermined number of times or more out of the predetermined distance measurement times. That is, it is a control method for restarting AF without continuously detecting the defocus amount outside the depth.

本実施形態におけるレンズユニット及びカメラ本体からなるレンズ交換式カメラの構成は、第一の実施形態で図1を基に説明した構成と同様なので説明を省略する。また、第一の実施形態で図3、4、5、7、11、12のフローチャートを用いて説明したカメラ本体20の動作は、本実施形態においても同様の処理を行うので説明を省略する。   Since the configuration of the interchangeable lens camera including the lens unit and the camera body in the present embodiment is the same as that described with reference to FIG. 1 in the first embodiment, the description thereof is omitted. The operation of the camera body 20 described with reference to the flowcharts of FIGS. 3, 4, 5, 7, 11, and 12 in the first embodiment performs the same processing in this embodiment, and thus the description thereof is omitted.

図4のステップS409における本実施形態のAF再起動判定処理について、図18のフローチャートを用いて説明する。図18のステップS1802、S1803、S1807、S1809の処理は、それぞれ第一の実施形態における図6のステップS601、S602、S610、S612の処理と同様なので説明を省略する。本フローの処理は、特に記載がない限りカメラ制御部212(レンズ再起動判定部213)により実行される。   The AF restart determination process of the present embodiment in step S409 of FIG. 4 will be described using the flowchart of FIG. The processes in steps S1802, S1803, S1807, and S1809 in FIG. 18 are the same as the processes in steps S601, S602, S610, and S612 in FIG. The processing of this flow is executed by the camera control unit 212 (lens restart determination unit 213) unless otherwise specified.

ステップS1801では、カメラ制御部212は、AF再起動判定フラグaとbを左シフトしてステップS1802へ進む。ステップS1801の処理により、測距回数を参照することができる。   In step S1801, the camera control unit 212 shifts the AF restart determination flags a and b to the left and proceeds to step S1802. The number of distance measurements can be referred to by the processing in step S1801.

ステップS1802で信頼性が所定の閾値より良く、かつステップS1803でデフォーカス量が深度の所定倍より大きい場合、ステップS1804に進む。ステップS1804では、カメラ制御部212は、位相差検出結果に基づく合焦方向が前回と同じ方向か否かを判定する。同じ方向の場合はステップS1805に進み、同じ方向でない場合はステップS1806に進む。ステップS1805に進んだ場合、カメラ制御部212はAF再起動判定フラグbの最下位ビットを立ててステップS1806に進む。ステップS1806では、カメラ制御部212はAF再起動判定フラグaの最下位ビットを立ててステップS1807へ進む。   If the reliability is better than a predetermined threshold value in step S1802 and the defocus amount is larger than a predetermined multiple of the depth in step S1803, the process proceeds to step S1804. In step S1804, the camera control unit 212 determines whether the focusing direction based on the phase difference detection result is the same as the previous direction. If the directions are the same, the process proceeds to step S1805. If the directions are not the same, the process proceeds to step S1806. If the process proceeds to step S1805, the camera control unit 212 sets the least significant bit of the AF restart determination flag b, and the process proceeds to step S1806. In step S1806, the camera control unit 212 sets the least significant bit of the AF restart determination flag a and proceeds to step S1807.

一方、ステップS1802で信頼性が所定の閾値より悪い場合、ステップS1810に進む。ステップS1810では、カメラ制御部212は、位相差検出結果に基づく合焦方向が前回と同じ方向か否かを判定する。同じ方向の場合はステップS1811に進み、カメラ制御部212はAF再起動判定フラグbの最下位ビットを立ててステップS1807へ進む。同じ方向でない場合は処理を終了する。   On the other hand, if the reliability is worse than the predetermined threshold value in step S1802, the process proceeds to step S1810. In step S1810, the camera control unit 212 determines whether the focusing direction based on the phase difference detection result is the same as the previous direction. In the case of the same direction, the process proceeds to step S1811, and the camera control unit 212 sets the least significant bit of the AF restart determination flag b, and proceeds to step S1807. If they are not in the same direction, the process ends.

ステップS1807でAF再起動閾値を設定した後に進むステップS1808では、カメラ制御部212は、AF再起動判定フラグaまたはbのビットがAF再起動閾値の数以上立っているかどうかを判断する。なお、信頼性が良いがデフォーカス量が深度外の場合はAF再起動判定フラグaを、信頼性が悪い場合はAF再起動判定フラグbを用いて判断することとする。ステップS1808の条件に該当する場合はステップS1809へ進み、該当しない場合は処理を終了する。   In step S1808, which is performed after the AF restart threshold is set in step S1807, the camera control unit 212 determines whether the bit of the AF restart determination flag a or b is equal to or more than the number of AF restart thresholds. If the defocus amount is outside the depth with good reliability, the AF restart determination flag a is used. If the reliability is poor, the AF restart determination flag b is used for determination. If the condition in step S1808 is satisfied, the process proceeds to step S1809. If not, the process ends.

第一の実施形態では、AF再起動カウンタを用いてAF再起動判定を行っていたが、本実施形態では、カウンタの代わりにAF再起動判定フラグを用いる。ステップS1801において、検出したデフォーカス量や信頼性に関係なく、AF再起動判定が行われる毎にAF再起動判定フラグを左シフトする。検出したデフォーカス量が所定より大きい、または前回と同じ方向が得られている場合に、それぞれステップS1805、S1806およびS1811でAF再起動判定フラグの最下位ビットを立てる。このようにして、AF再起動判定フラグは、全ビット数のうち何ビット立っているかにより、過去所定回数の測距において検出したデフォーカス量が所定より大きかった(信頼性が悪かった)回数を知る為の指標として扱うことができる。なお、AF再起動判定フラグaおよびbのビット数は、ステップS1808でAF再起動判定をするためのデフォーカスを検出した回数に相当する。このビット数は、ステップS1807のAF再起動閾値設定で設定し得るAF再起動閾値よりも多く設定する必要がある。例えば、AF再起動判定フラグaを4ビット、AF再起動閾値を3回に設定した場合は、過去4回の測距中、所定より大きいデフォーカス量を検出した回数が3回以上であれば再起動を実行するように制御する。   In the first embodiment, the AF restart determination is performed using the AF restart counter. However, in this embodiment, an AF restart determination flag is used instead of the counter. In step S1801, the AF restart determination flag is shifted to the left each time AF restart determination is performed regardless of the detected defocus amount or reliability. When the detected defocus amount is larger than a predetermined value or the same direction as the previous time is obtained, the least significant bit of the AF restart determination flag is set in steps S1805, S1806, and S1811, respectively. In this way, the AF restart determination flag indicates the number of times that the defocus amount detected in the past predetermined number of distance measurements was greater than the predetermined (having poor reliability), depending on how many bits of the total number of bits stand. It can be treated as an indicator for knowing. The number of bits of the AF restart determination flags a and b corresponds to the number of times defocus for detecting AF restart is detected in step S1808. This number of bits needs to be set larger than the AF restart threshold that can be set in the AF restart threshold setting in step S1807. For example, if the AF restart determination flag “a” is set to 4 bits and the AF restart threshold is set to 3 times, the number of times that a defocus amount larger than a predetermined value is detected during the past 4 distance measurements is 3 times or more. Control to perform a restart.

本実施形態のAF再起動判定方法は、第一の実施形態と比較して、連続で所定より大きいデフォーカス量を検出しなくてもAF再起動を実行できるため、より再起動しやすい判定方法になる。本実施形態の判定方法の利点として、例えば低照度下で撮影する場合や被写体が低コントラストの場合のように、デフォーカス検出精度が低下する撮影条件である場合、再起動をより実行しやすくすることができる。第一の実施形態の手法では、誤判定を抑制することができるが、次のようなデメリットがある。すなわち、デフォーカス検出精度が低下する撮影条件では検出結果のバラつきが大きくなるので、例えば、「大ボケ」状態のような再起動を早く行いたい条件のとき、深度内のデフォーカス量が一時的に検出された場合に再起動の実行に時間がかかる。これに対して、本実施形態の手法であれば、所定より大きいデフォーカス量を連続で検出しなくてもAF再起動できるため、再起動を実行したいシーンでより再起動しやすくなり、AF制御の品位を高めることができる。   Compared with the first embodiment, the AF restart determination method according to the present embodiment can execute AF restart without continuously detecting a defocus amount larger than a predetermined value, so that it is easier to restart. become. As an advantage of the determination method of the present embodiment, for example, when shooting is performed under low illuminance, or when the shooting conditions are such that the defocus detection accuracy decreases, such as when the subject has low contrast, restarting is easier to perform be able to. The method of the first embodiment can suppress erroneous determination, but has the following disadvantages. In other words, the variation in detection results increases under shooting conditions where the defocus detection accuracy decreases, so the defocus amount within the depth is temporarily reduced, for example, in conditions where it is desired to restart quickly, such as in a “large blur” state. It takes a long time to execute the restart if detected. On the other hand, with the method of the present embodiment, AF can be restarted without continuously detecting a defocus amount larger than a predetermined value, so that it is easier to restart in a scene where restart is desired, and AF control is performed. Can improve the quality.

なお、第一及び第二の実施形態のAF再起動判定と、第三の実施形態のAF再起動判定を併用して、AF再起動判定を行うようにしても良い。   Note that AF restart determination may be performed by using both the AF restart determination of the first and second embodiments and the AF restart determination of the third embodiment.

(他の実施形態)
本発明の目的は以下のようにしても達成できる。すなわち、前述した実施形態の機能を実現するための手順が記述されたソフトウェアのプログラムコードを記憶した記憶媒体を、システムまたは装置に供給する。そしてそのシステムまたは装置のコンピュータ(またはCPU、MPU等)が記憶媒体に格納されたプログラムコードを読み出して実行する。この場合、記憶媒体から読み出されたプログラムコード自体が本発明の新規な機能を実現することになり、そのプログラムコードを記憶した記憶媒体および制御プログラムは本発明を構成することになる。
(Other embodiments)
The object of the present invention can also be achieved as follows. That is, a storage medium storing a program code of software in which a procedure for realizing the functions of the above-described embodiments is stored is supplied to the system or apparatus. A computer (or CPU, MPU, etc.) of the system or apparatus reads out and executes the program code stored in the storage medium. In this case, the program code itself read from the storage medium realizes the novel function of the present invention, and the storage medium storing the program code and the control program constitute the present invention.

また、プログラムコードを供給するための記憶媒体としては、例えば、フレキシブルディスク、ハードディスク、光ディスク、光磁気ディスクなどが挙げられる。また、CD−ROM、CD−R、CD−RW、DVD−ROM、DVD−RAM、DVD−RW、DVD−R、磁気テープ、不揮発性のメモリカード、ROM等も用いることができる。   Examples of the storage medium for supplying the program code include a flexible disk, a hard disk, an optical disk, and a magneto-optical disk. Further, a CD-ROM, CD-R, CD-RW, DVD-ROM, DVD-RAM, DVD-RW, DVD-R, magnetic tape, nonvolatile memory card, ROM, or the like can also be used.

また、コンピュータが読み出したプログラムコードを実行可能とすることにより、前述した各実施形態の機能が実現される。さらに、そのプログラムコードの指示に基づき、コンピュータ上で稼動しているOS(オペレーティングシステム)等が実際の処理の一部または全部を行い、その処理によって前述した各実施形態の機能が実現される場合も含まれる。   Further, by making the program code read by the computer executable, the functions of the above-described embodiments are realized. Furthermore, when the OS (operating system) running on the computer performs part or all of the actual processing based on the instruction of the program code, the functions of the above-described embodiments are realized by the processing. Is also included.

更に、以下の場合も含まれる。まず記憶媒体から読み出されたプログラムコードが、コンピュータに挿入された機能拡張ボードやコンピュータに接続された機能拡張ユニットに備わるメモリに書き込まれる。その後、そのプログラムコードの指示に基づき、その機能拡張ボードや機能拡張ユニットに備わるCPU等が実際の処理の一部または全部を行う。   Furthermore, the following cases are also included. First, the program code read from the storage medium is written in a memory provided in a function expansion board inserted into the computer or a function expansion unit connected to the computer. Thereafter, based on the instruction of the program code, the CPU or the like provided in the function expansion board or function expansion unit performs part or all of the actual processing.

以上、本発明をその好適な実施形態に基づいて詳述してきたが、本発明はこれらの実施形態に限られるものではなく、この発明の要旨を逸脱しない範囲の様々な形態も本発明に含まれる。   Although the present invention has been described in detail based on the preferred embodiments thereof, the present invention is not limited to these embodiments, and various forms within the scope of the present invention are also included in the present invention. It is.

10 レンズユニット
20 カメラ本体
103 フォーカスレンズ
105 フォーカスレンズ駆動部
106 レンズ制御部
201 撮像素子
204 AF信号処理部
212 カメラ制御部
213 レンズ再起動判定部
216 AF評価値生成部
DESCRIPTION OF SYMBOLS 10 Lens unit 20 Camera main body 103 Focus lens 105 Focus lens drive part 106 Lens control part 201 Image pick-up element 204 AF signal processing part 212 Camera control part 213 Lens restart determination part 216 AF evaluation value production | generation part

Claims (20)

フォーカスレンズを含む撮影光学系を介して入射される光束を受光して光電変換する撮像手段と、
前記撮影光学系の射出瞳領域の異なる領域を通過した光束から生成される一対の像信号の位相差を検出する第1の検出手段と、
前記撮像手段から出力される信号からコントラスト情報を検出する第2の検出手段と、
前記第1の検出手段および前記第2の検出手段の少なくとも一方の検出結果に基づいて、前記フォーカスレンズの駆動を制御する制御手段とを有し、
前記フォーカスレンズが停止している状態において、前記制御手段は、前記第1の検出手段による検出結果が前記フォーカスレンズを再起動するための所定の条件を満たすか否かを判定し、前記コントラスト情報に応じて前記所定の条件を変更することを特徴とする自動焦点調節装置。
Imaging means for receiving and photoelectrically converting a light beam incident through a photographing optical system including a focus lens;
First detection means for detecting a phase difference between a pair of image signals generated from light beams that have passed through different areas of the exit pupil area of the imaging optical system;
Second detection means for detecting contrast information from a signal output from the imaging means;
Control means for controlling the driving of the focus lens based on a detection result of at least one of the first detection means and the second detection means;
In a state where the focus lens is stopped, the control means determines whether or not a detection result by the first detection means satisfies a predetermined condition for restarting the focus lens, and the contrast information The automatic focus adjustment apparatus characterized in that the predetermined condition is changed according to the condition.
前記制御手段は、前記コントラスト情報に基づいて判定される合焦度合いに応じて、前記所定の条件を変更することを特徴とする請求項1に記載の自動焦点調節装置。   The automatic focus adjustment apparatus according to claim 1, wherein the control unit changes the predetermined condition in accordance with a focus degree determined based on the contrast information. 前記制御手段は、前記合焦度合いが高いほど、前記フォーカスレンズの再起動を制限するように前記所定の条件を変更することを特徴とする請求項2に記載の自動焦点調節装置。   3. The automatic focus adjustment apparatus according to claim 2, wherein the control unit changes the predetermined condition so as to limit the restart of the focus lens as the degree of focusing increases. 4. 前記制御手段は、前記第1の検出手段による検出結果に基づいてデフォーカス量を算出し、所定値以上の前記デフォーカス量が検出される回数または期間が第1の閾値に達した場合、前記フォーカスレンズを再起動することを特徴とする請求項1乃至3のいずれか1項に記載の自動焦点調節装置。   The control means calculates a defocus amount based on a detection result by the first detection means, and when the number of times or the period during which the defocus amount is detected above a predetermined value reaches a first threshold, 4. The automatic focus adjustment apparatus according to claim 1, wherein the focus lens is restarted. 前記制御手段は、前記コントラスト情報に基づいて判定される合焦度合いが高いほど、前記第1の閾値を大きくすることを特徴とする請求項4に記載の自動焦点調節装置。   The automatic focus adjustment apparatus according to claim 4, wherein the control unit increases the first threshold value as the degree of focusing determined based on the contrast information is higher. 前記第1の検出手段による検出結果に基づいて同じ合焦方向が検出される回数または期間が第2の閾値に達した場合、前記制御手段は、前記フォーカスレンズを再起動することを特徴とする請求項4又は5に記載の自動焦点調節装置。   The control means restarts the focus lens when the number of times or the period during which the same in-focus direction is detected based on the detection result by the first detection means reaches a second threshold value. The automatic focusing apparatus according to claim 4 or 5. 前記第1の検出手段による検出結果の信頼性が所定のレベルより悪い場合、前記制御手段は、前記第2の閾値に基づいて前記フォーカスレンズの再起動を判定することを特徴とする請求項6に記載の自動焦点調節装置。   The control unit determines whether to restart the focus lens based on the second threshold when the reliability of the detection result by the first detection unit is worse than a predetermined level. The automatic focusing device described in 1. 前記第2の閾値は、前記第1の閾値より大きいことを特徴とする請求項6又は7に記載の自動焦点調節装置。   The automatic focus adjustment apparatus according to claim 6 or 7, wherein the second threshold value is larger than the first threshold value. 前記制御手段は、前記コントラスト情報に基づいて判定される合焦度合いが高いほど、前記第2の閾値を大きくすることを特徴とする請求項6乃至8のいずれか1項に記載の自動焦点調節装置。   9. The automatic focus adjustment according to claim 6, wherein the control unit increases the second threshold value as a degree of focusing determined based on the contrast information is higher. apparatus. 前記制御手段は、前記第1の検出手段による検出結果に基づいてデフォーカス量を算出し、第3の閾値以上の前記デフォーカス量が検出された場合、前記フォーカスレンズを再起動することを特徴とする請求項1乃至9のいずれか1項に記載の自動焦点調節装置。   The control unit calculates a defocus amount based on a detection result by the first detection unit, and restarts the focus lens when the defocus amount equal to or greater than a third threshold is detected. An automatic focusing apparatus according to any one of claims 1 to 9. 前記制御手段は、前記コントラスト情報に基づいて判定される合焦度合いが高いほど、前記第3の閾値を大きくすることを特徴とする請求項10に記載の自動焦点調節装置。   The automatic focusing apparatus according to claim 10, wherein the control unit increases the third threshold value as the degree of focusing determined based on the contrast information is higher. 前記第2の検出手段は、前記撮像手段から出力される一対の像信号の位相差を検出することを特徴とする請求項1乃至11のいずれか1項に記載の自動焦点調節装置。   The automatic focus adjustment apparatus according to claim 1, wherein the second detection unit detects a phase difference between a pair of image signals output from the imaging unit. 前記撮像手段は、1つのマイクロレンズ下に複数の光電変換素子を備え、当該複数の光電変換素子は、それぞれ前記撮影光学系の射出瞳領域の異なる領域を通過した光束を受光することを特徴とする請求項12に記載の自動焦点調節装置。   The imaging means includes a plurality of photoelectric conversion elements under one microlens, and the plurality of photoelectric conversion elements respectively receive light beams that have passed through different areas of the exit pupil area of the photographing optical system. The automatic focusing apparatus according to claim 12. 前記制御手段は、像高に応じて前記所定の条件を変更することを特徴とする請求項12又は13に記載の自動焦点調節装置。   14. The automatic focus adjustment apparatus according to claim 12, wherein the control unit changes the predetermined condition according to an image height. 前記制御手段は、像高が高いほど、前記フォーカスレンズの再起動を制限するように前記所定の条件を変更することを特徴とする請求項14に記載の自動焦点調節装置。   15. The automatic focus adjustment apparatus according to claim 14, wherein the control unit changes the predetermined condition so as to limit restart of the focus lens as the image height is higher. 前記制御手段は、前記撮影光学系に含まれる絞りの情報を取得可能であって、絞りの開口の大きさに応じて前記所定の条件を変更することを特徴とする請求項12乃至15のいずれか1項に記載の自動焦点調節装置。   16. The control unit according to claim 12, wherein the control unit is capable of acquiring information on a diaphragm included in the photographing optical system, and changes the predetermined condition according to a size of an aperture of the diaphragm. The automatic focusing apparatus according to claim 1. 前記制御手段は、絞りの開口が小さいほど、前記フォーカスレンズの再起動を制限するように前記所定の条件を変更することを特徴とする請求項16に記載の自動焦点調節装置。   17. The automatic focusing apparatus according to claim 16, wherein the control unit changes the predetermined condition so as to limit the restart of the focus lens as the aperture of the diaphragm is smaller. フォーカスレンズを含む撮影光学系を介して入射される光束を受光して光電変換する撮像手段を有する自動焦点調節装置の制御方法であって、
前記撮影光学系の射出瞳領域の異なる領域を通過した光束から生成される一対の像信号の位相差を検出する第1の検出ステップと、
前記撮像手段から出力される信号からコントラスト情報を検出する第2の検出ステップと、
前記第1の検出ステップおよび前記第2の検出ステップの少なくとも一方の検出結果に基づいて、前記フォーカスレンズの駆動を制御する制御ステップとを有し、
前記フォーカスレンズが停止している状態において、前記制御ステップでは、前記第1の検出手段による検出結果が前記フォーカスレンズを再起動するための所定の条件を満たすか否かを判定し、前記コントラスト情報に応じて前記所定の条件を変更することを特徴とする自動焦点調節装置の制御方法。
A method for controlling an automatic focus adjustment apparatus having an imaging means for receiving and photoelectrically converting a light beam incident through a photographing optical system including a focus lens,
A first detection step of detecting a phase difference between a pair of image signals generated from light beams that have passed through different areas of the exit pupil area of the photographing optical system;
A second detection step of detecting contrast information from a signal output from the imaging means;
A control step for controlling the driving of the focus lens based on a detection result of at least one of the first detection step and the second detection step;
In the state in which the focus lens is stopped, in the control step, it is determined whether or not a detection result by the first detection unit satisfies a predetermined condition for restarting the focus lens, and the contrast information And changing the predetermined condition according to the control method.
請求項18に記載の自動焦点調節装置の制御方法をコンピュータに実行させるように構成されていることを特徴とする自動焦点調節装置の制御プログラム。   A control program for an automatic focus adjustment apparatus, characterized in that the control method for an automatic focus adjustment apparatus according to claim 18 is executed by a computer. 請求項19に記載の自動焦点調節装置の制御プログラムを記憶していることを特徴とする記憶媒体。   20. A storage medium storing a control program for the automatic focusing apparatus according to claim 19.
JP2013228318A 2013-11-01 2013-11-01 Automatic focusing device, control method for automatic focusing device, control program for automatic focusing device, and storage medium Active JP6351234B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2013228318A JP6351234B2 (en) 2013-11-01 2013-11-01 Automatic focusing device, control method for automatic focusing device, control program for automatic focusing device, and storage medium
US14/527,635 US9794467B2 (en) 2013-11-01 2014-10-29 Focus adjustment apparatus, method for controlling focus adjustment apparatus, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2013228318A JP6351234B2 (en) 2013-11-01 2013-11-01 Automatic focusing device, control method for automatic focusing device, control program for automatic focusing device, and storage medium

Publications (2)

Publication Number Publication Date
JP2015087704A true JP2015087704A (en) 2015-05-07
JP6351234B2 JP6351234B2 (en) 2018-07-04

Family

ID=53050520

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2013228318A Active JP6351234B2 (en) 2013-11-01 2013-11-01 Automatic focusing device, control method for automatic focusing device, control program for automatic focusing device, and storage medium

Country Status (1)

Country Link
JP (1) JP6351234B2 (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017022283A1 (en) * 2015-07-31 2017-02-09 ソニー株式会社 Image pickup device, image pickup method, and program
JP2018017876A (en) * 2016-07-27 2018-02-01 キヤノン株式会社 Imaging apparatus and control method of the same, and image processing apparatus and method
CN107710735A (en) * 2015-07-02 2018-02-16 高通股份有限公司 System and method for focusing on triggering automatically
JP2018036507A (en) * 2016-08-31 2018-03-08 キヤノン株式会社 Lens controller and control method thereof
US10310213B2 (en) 2016-08-31 2019-06-04 Canon Kabushiki Kaisha Lens control apparatus and control method thereof
JP2019158958A (en) * 2018-03-08 2019-09-19 キヤノン株式会社 Imaging device, method for controlling the same, and program
EP3783415A1 (en) 2019-08-23 2021-02-24 Canon Kabushiki Kaisha Lens control apparatus, control method, and storage medium

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11893668B2 (en) 2021-03-31 2024-02-06 Leica Camera Ag Imaging system and method for generating a final digital image via applying a profile to image information

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03229209A (en) * 1990-02-02 1991-10-11 Canon Inc Automatic focus adjusting device
JP2012128316A (en) * 2010-12-17 2012-07-05 Canon Inc Automatic focus adjustment device and lens device with the same
JP2012133138A (en) * 2010-12-22 2012-07-12 Canon Inc Image processing system and image processing method
WO2012133413A1 (en) * 2011-03-31 2012-10-04 富士フイルム株式会社 Imaging device, method for controlling imaging device, and program
US20120293706A1 (en) * 2011-05-16 2012-11-22 Samsung Electronics Co., Ltd. Image pickup device, digital photographing apparatus using the image pickup device, auto-focusing method, and computer-readable medium for performing the auto-focusing method
JP2013025134A (en) * 2011-07-22 2013-02-04 Nikon Corp Focus adjustment device and imaging apparatus
JP2013029803A (en) * 2011-06-22 2013-02-07 Canon Inc Focus detection device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03229209A (en) * 1990-02-02 1991-10-11 Canon Inc Automatic focus adjusting device
JP2012128316A (en) * 2010-12-17 2012-07-05 Canon Inc Automatic focus adjustment device and lens device with the same
JP2012133138A (en) * 2010-12-22 2012-07-12 Canon Inc Image processing system and image processing method
WO2012133413A1 (en) * 2011-03-31 2012-10-04 富士フイルム株式会社 Imaging device, method for controlling imaging device, and program
US20120293706A1 (en) * 2011-05-16 2012-11-22 Samsung Electronics Co., Ltd. Image pickup device, digital photographing apparatus using the image pickup device, auto-focusing method, and computer-readable medium for performing the auto-focusing method
JP2013029803A (en) * 2011-06-22 2013-02-07 Canon Inc Focus detection device
JP2013025134A (en) * 2011-07-22 2013-02-04 Nikon Corp Focus adjustment device and imaging apparatus

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107710735A (en) * 2015-07-02 2018-02-16 高通股份有限公司 System and method for focusing on triggering automatically
JP2018525658A (en) * 2015-07-02 2018-09-06 クアルコム,インコーポレイテッド System and method for auto focus trigger
US10362249B2 (en) 2015-07-31 2019-07-23 Sony Corporation Image capturing device, image capturing method, capable of improving trackability of focus position and focusing accuracy with respect to subject
WO2017022283A1 (en) * 2015-07-31 2017-02-09 ソニー株式会社 Image pickup device, image pickup method, and program
JP2018017876A (en) * 2016-07-27 2018-02-01 キヤノン株式会社 Imaging apparatus and control method of the same, and image processing apparatus and method
JP2018036507A (en) * 2016-08-31 2018-03-08 キヤノン株式会社 Lens controller and control method thereof
US10310213B2 (en) 2016-08-31 2019-06-04 Canon Kabushiki Kaisha Lens control apparatus and control method thereof
US10623623B2 (en) 2016-08-31 2020-04-14 Canon Kabushiki Kaisha Lens control apparatus and control method thereof
JP2019158958A (en) * 2018-03-08 2019-09-19 キヤノン株式会社 Imaging device, method for controlling the same, and program
JP7066458B2 (en) 2018-03-08 2022-05-13 キヤノン株式会社 Imaging device and its control method, program
EP3783415A1 (en) 2019-08-23 2021-02-24 Canon Kabushiki Kaisha Lens control apparatus, control method, and storage medium
CN112422811A (en) * 2019-08-23 2021-02-26 佳能株式会社 Lens control apparatus, control method, and storage medium
US11528404B2 (en) 2019-08-23 2022-12-13 Canon Kabushiki Kaisha Lens control apparatus, control method, and storage medium
CN112422811B (en) * 2019-08-23 2023-06-30 佳能株式会社 Lens control apparatus, control method, and storage medium

Also Published As

Publication number Publication date
JP6351234B2 (en) 2018-07-04

Similar Documents

Publication Publication Date Title
JP6351234B2 (en) Automatic focusing device, control method for automatic focusing device, control program for automatic focusing device, and storage medium
US10264173B2 (en) Image capturing apparatus and control method thereof, and storage medium
US9723208B2 (en) Image processing apparatus, method for controlling the same, and storage medium
US9398206B2 (en) Focus adjustment apparatus, focus adjustment method and program, and imaging apparatus including focus adjustment apparatus
US9137436B2 (en) Imaging apparatus and method with focus detection and adjustment
US9338344B2 (en) Focusing apparatus and method for controlling the same, and image pickup apparatus
US9848117B2 (en) Focus control apparatus, method therefor, and storage medium
US9794467B2 (en) Focus adjustment apparatus, method for controlling focus adjustment apparatus, and storage medium
JP5213813B2 (en) IMAGING DEVICE AND IMAGING DEVICE CONTROL METHOD
US10542202B2 (en) Control apparatus that performs focusing by imaging-plane phase difference AF, image capturing apparatus, control method, and non-transitory computer-readable storage medium
US10015386B2 (en) Focus control apparatus, image capturing apparatus, interchangeable lens, focus control method, and storage medium storing focus control program
KR20150077310A (en) Image capturing apparatus and control method thereof
JP6139960B2 (en) Imaging apparatus and control method thereof
US10200594B2 (en) Focus detection apparatus, focus adjustment apparatus, imaging apparatus, and focus detection method setting focus detection area using reliability
US9591202B2 (en) Image processing apparatus and image processing method for generating recomposed images
JP6087714B2 (en) Imaging apparatus and control method thereof
JP6122330B2 (en) Imaging apparatus and control method thereof
JP2016156950A (en) Automatic focus adjustment device and control method of the same
JP2014203050A (en) Image capturing device and control method therefor
JP6238547B2 (en) Focus adjustment apparatus and control method thereof
JP6305017B2 (en) Focus control device and control method thereof
JP2020181147A (en) Focusing apparatus, image pickup apparatus, focusing method, and program
JP6338353B2 (en) Automatic focusing device, control method for automatic focusing device, control program for automatic focusing device, and storage medium
JP6305016B2 (en) FOCUS CONTROL DEVICE, FOCUS CONTROL DEVICE CONTROL METHOD, AND IMAGING DEVICE
JP2018091977A (en) Focus controller, imaging apparatus, focus control method, and focus control program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20161028

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20170614

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20170801

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20170928

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20180220

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20180418

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: 20180508

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20180605

R151 Written notification of patent or utility model registration

Ref document number: 6351234

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151