JP2016156931A - Imaging device and control method of the same - Google Patents

Imaging device and control method of the same Download PDF

Info

Publication number
JP2016156931A
JP2016156931A JP2015034150A JP2015034150A JP2016156931A JP 2016156931 A JP2016156931 A JP 2016156931A JP 2015034150 A JP2015034150 A JP 2015034150A JP 2015034150 A JP2015034150 A JP 2015034150A JP 2016156931 A JP2016156931 A JP 2016156931A
Authority
JP
Japan
Prior art keywords
focus detection
focus
image
lens
time
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
JP2015034150A
Other languages
Japanese (ja)
Other versions
JP6415350B2 (en
Inventor
英秋 高宮
Hideaki Takamiya
英秋 高宮
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 JP2015034150A priority Critical patent/JP6415350B2/en
Publication of JP2016156931A publication Critical patent/JP2016156931A/en
Application granted granted Critical
Publication of JP6415350B2 publication Critical patent/JP6415350B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Automatic Focus Adjustment (AREA)
  • Adjustment Of Camera Lenses (AREA)
  • Studio Devices (AREA)
  • Focusing (AREA)

Abstract

PROBLEM TO BE SOLVED: To suppress reduction in picture definition by implementing a focus adjustment control dealing with a movement speed of a subject.SOLUTION: An imaging device capable of shooting a movie is configured to: implement focus detection using an output signal of a focus detection pixel of an image pick-up element 107; and control a focus adjustment operation by controlling a drive of a focus lens (105) in accordance with an amount of detection of a focus position. A CPU 121 is configured to set a time or the number of determinations for determination to be used in determining whether to reboot the focus lens from a point of time of stopping a drive of a focus lens when determining that a subject is focused to be smaller as an amount of change in an amount of detection (amount of defocus) per time is greater. The CPU 121 is configured to, when the time or the number of frequencies when the amount of detection has exceeded a threshold, control so as to reboot the drive of the focus lens.SELECTED DRAWING: Figure 1

Description

本発明は、撮像装置の自動焦点調節(AF制御)の技術に関する。   The present invention relates to a technique for automatic focus adjustment (AF control) of an imaging apparatus.

デジタルカメラなどの撮像装置には、撮像面上で瞳分割を行って取得した画像の位相差から焦点位置検出を行う撮像面位相差方式のオートフォーカス(以下、撮像面位相差AFという)機能を搭載した装置がある。撮像面位相差方式では、撮像素子の撮像動作を行いつつ位相差AF方式によって精度およびレスポンスの良い焦点検出を行えるので、特に動画撮影の際などに効果を発揮する。動画撮影のAF動作の場合、フォーカスレンズが不必要に動きすぎることによる映像品位の低下を回避するため、主被写体に対する合焦時にはフォーカスレンズの駆動が一時的に停止される。その後に主被写体が合焦領域を超えて移動した際に、フォーカスレンズの駆動を再開させる制御が行われる。   An imaging device such as a digital camera has an imaging surface phase difference type autofocus (hereinafter referred to as imaging surface phase difference AF) function that detects a focal position from a phase difference of an image obtained by performing pupil division on the imaging surface. There is an installed device. In the imaging surface phase difference method, focus detection with high accuracy and response can be performed by the phase difference AF method while performing an imaging operation of the image sensor, and therefore, the effect is particularly effective when shooting a moving image. In the AF operation for moving image shooting, the focus lens drive is temporarily stopped at the time of focusing on the main subject in order to avoid degradation of image quality due to the focus lens moving unnecessarily too much. Thereafter, when the main subject moves beyond the in-focus area, control for resuming driving of the focus lens is performed.

特許文献1には、被写体像の焦点位置を撮像平面上の複数の位置で検出する焦点検出部を備え、記憶された焦点検出部の出力に基づいて所定の時刻における被写体像の焦点位置を予測する技術が開示されている。特許文献2に開示の装置は、位相差によって焦点を検出する第1焦点検出から得られる像信号に基づき、被写体が光軸に垂直方向の成分を有して移動したことを検出する。合焦後に、第1焦点検出の結果と、撮像素子からの信号を用いて焦点を検出する第2焦点検出の結果に基づき、自動焦点調整を再起動するか否かが決定される。   Patent Document 1 includes a focus detection unit that detects a focus position of a subject image at a plurality of positions on an imaging plane, and predicts a focus position of the subject image at a predetermined time based on the stored output of the focus detection unit. Techniques to do this are disclosed. The apparatus disclosed in Patent Document 2 detects that the subject has moved with a component in the direction perpendicular to the optical axis based on an image signal obtained from the first focus detection that detects the focus based on the phase difference. After the in-focus state, whether or not to restart the automatic focus adjustment is determined based on the result of the first focus detection and the result of the second focus detection for detecting the focus using a signal from the image sensor.

特開2012−189934号公報JP 2012-189934 A 特開2012−128316号公報JP 2012-128316 A

従来技術では、焦点検出によって得られるデフォーカス量に応じてAF動作の再起動を行う際の各種パラメータを変化させ、動体である被写体への追従性を高めることができる。しかし、被写体の移動速度に応じた制御が行われないので、移動速度によっては撮影した映像の品位低下が懸念される。例えば、移動速度が遅い被写体に対しては、映像が大きく暈けることなくAF動作が行われるが、被写体の移動速度が大きくなるほどデフォーカス量が大きくなってしまい、映像品位が低下する可能性がある。
本発明の目的は、被写体の移動速度に対応した焦点調節制御を行うことで、映像品位の低下を抑制することである。
In the prior art, various parameters when the AF operation is restarted are changed according to the defocus amount obtained by focus detection, and the followability to a moving subject can be improved. However, since control according to the moving speed of the subject is not performed, there is a concern that the quality of the captured video may be lowered depending on the moving speed. For example, an AF operation is performed on a subject with a slow moving speed without making a large amount of video, but as the moving speed of the subject increases, the defocus amount increases and the video quality may decrease. is there.
An object of the present invention is to suppress a reduction in image quality by performing focus adjustment control corresponding to the moving speed of a subject.

本発明の撮像装置は、結像光学系の異なる瞳部分領域をそれぞれ通過する光束を受光する複数の焦点検出画素を有する撮像素子と、前記複数の焦点検出画素の出力信号を用いて焦点検出を行う焦点検出手段と、前記焦点検出手段により検出される検出量を用いて、前記結像光学系を構成するレンズの駆動を制御することで焦点調節制御を行う制御手段と、を備える。
本発明の第1の側面に係る撮像装置にて前記制御手段は、被写体に合焦したと判断した場合に前記レンズの駆動を停止した時点から、再起動を行うか否かを判定する際に用いる判定用の時間または回数を、前記焦点検出手段により検出される検出量の時間的変化が大きいほど小さく設定し、前記検出量が閾値を超えている時間または回数が、前記判定用の時間または回数を超えた場合に前記レンズの駆動を再起動させる制御を行う。
本発明の第2の側面に係る撮像装置にて前記制御手段は、被写体に合焦したと判断した場合に前記レンズの駆動を停止した時点から、前記焦点検出手段により検出される検出量を積算し、積算値が閾値を超えた場合に前記レンズの駆動を再起動させる制御を行う。
An imaging apparatus according to the present invention performs focus detection using an imaging element having a plurality of focus detection pixels that receive light beams respectively passing through different pupil partial regions of an imaging optical system, and output signals of the plurality of focus detection pixels. And a control unit that performs focus adjustment control by controlling driving of a lens that forms the imaging optical system using a detection amount detected by the focus detection unit.
In the imaging apparatus according to the first aspect of the present invention, when the control unit determines that the subject is in focus, the control unit determines whether to restart from the point of time when driving of the lens is stopped. The determination time or number to be used is set to be smaller as the temporal change in the detection amount detected by the focus detection means is larger, and the time or number of times that the detection amount exceeds the threshold is the determination time or When the number of times is exceeded, control to restart the driving of the lens is performed.
In the imaging apparatus according to the second aspect of the present invention, the control means integrates the detection amount detected by the focus detection means from the time when the driving of the lens is stopped when it is determined that the subject is in focus. Then, when the integrated value exceeds the threshold value, a control for restarting the driving of the lens is performed.

本発明によれば、被写体の移動速度に対応した焦点調節制御を行うことで、映像品位の低下を抑制できる。   According to the present invention, it is possible to suppress a reduction in image quality by performing focus adjustment control corresponding to the moving speed of a subject.

本発明の実施例における撮像装置の概略構成図である。It is a schematic block diagram of the imaging device in the Example of this invention. 本発明の実施例における画素配列の概略図である。It is the schematic of the pixel arrangement | sequence in the Example of this invention. 本発明の実施例における画素の概略平面図(A)と概略断面図(B)である。It is the schematic plan view (A) and schematic sectional drawing (B) of the pixel in the Example of this invention. 本発明の実施例における画素と瞳分割との関係を説明する概略図である。It is the schematic explaining the relationship between the pixel and pupil division in the Example of this invention. 本発明の実施例における撮像素子と瞳分割の概略説明図(A)、および第1焦点検出信号と第2焦点検出信号のデフォーカス量と像ずれ量の概略関係図(B)である。It is a schematic explanatory drawing (A) of an image sensor and pupil division in an embodiment of the present invention, and a schematic relation diagram (B) of defocus amounts and image shift amounts of a first focus detection signal and a second focus detection signal. 本発明の実施例における焦点検出処理を説明するフローチャートである。It is a flowchart explaining the focus detection process in the Example of this invention. 本発明の実施例における第1焦点検出信号と第2焦点検出信号の瞳ずれによるシェーディングの概略説明図である。It is a schematic explanatory drawing of the shading by the pupil shift | offset | difference of the 1st focus detection signal and the 2nd focus detection signal in the Example of this invention. 本発明の実施例におけるフィルタ周波数帯域を例示するグラフである。It is a graph which illustrates the filter frequency band in the example of the present invention. 本発明の実施例における被写体の動きとデフォーカス量の変化を例示する図である。It is a figure which illustrates the change of a subject's motion and defocus amount in the example of the present invention. 本発明の実施例1における処理を説明するフローチャートである。It is a flowchart explaining the process in Example 1 of this invention. 本発明の実施例1における像面移動速度の信頼性判定の範囲を示す図である。It is a figure which shows the range of the reliability determination of the image surface moving speed in Example 1 of this invention. 本発明の実施例2における処理を説明するフローチャートである。It is a flowchart explaining the process in Example 2 of this invention. 本発明の実施例2における被写体の移動速度とそのデフォーカス量の総和を例示する図である。It is a figure which illustrates the sum total of the moving speed of the to-be-photographed object and the defocus amount in Example 2 of this invention.

以下、添付図面を参照して本発明の各実施形態を詳細に説明する。各実施形態では、本発明の実現手段の一例として、主に一眼レフカメラの構成を想定して説明する。但し、本発明は、一眼レフカメラの形態に限定されることはなく、ビデオカメラ、コンパクトデジタルカメラ等、動画撮影が可能なあらゆる撮像装置に適用可能である。また、本発明が適用される装置の構成や各種条件によって、装置の仕様は適宜修正又は変更されるべきものである。図1から図9を参照して、本発明の実施形態に共通する撮像装置の構成および動作を説明し、その後に図10から図13を参照して各実施形態を説明する。本実施形態では、撮像面位相差AFを用いて動画を撮影する際の焦点検出およびレンズ駆動に関する制御を説明する。   Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings. In each embodiment, description will be given mainly assuming a configuration of a single-lens reflex camera as an example of a means for realizing the present invention. However, the present invention is not limited to the form of a single-lens reflex camera, and can be applied to any imaging device capable of shooting a moving image, such as a video camera or a compact digital camera. In addition, the specifications of the apparatus should be appropriately modified or changed according to the configuration of the apparatus to which the present invention is applied and various conditions. The configuration and operation of an imaging apparatus common to the embodiments of the present invention will be described with reference to FIGS. 1 to 9, and then each embodiment will be described with reference to FIGS. 10 to 13. In the present embodiment, control related to focus detection and lens driving when shooting a moving image using imaging surface phase difference AF will be described.

図1は本実施形態に係る撮像装置の構成例を示すブロック図である。第1レンズ群101は、撮像光学系(結像光学系)の先端に配置され、レンズ鏡筒にて光軸方向に進退可能に保持される。絞り兼用シャッタ102は、その開口径を調節することで撮影時の光量調節を行う他、静止画撮影時には露光秒時調節用シャッタとして機能する。第2レンズ群103は、絞り兼用シャッタ102と一体となって光軸方向に進退し、第1レンズ群101の進退動作と連動することで、変倍動作によるズーム機能を有する。第3レンズ群105は、光軸方向の進退により焦点調節を行うフォーカスレンズである。光学ローパスフィルタ106は、撮影画像の偽色やモアレを軽減するための光学素子である。撮像素子107は、2次元CMOS(相補型金属酸化膜半導体)フォトセンサと周辺回路からなり、撮像光学系の結像面に配置される。   FIG. 1 is a block diagram illustrating a configuration example of an imaging apparatus according to the present embodiment. The first lens group 101 is disposed at the tip of the imaging optical system (imaging optical system), and is held by a lens barrel so as to be able to advance and retract in the optical axis direction. The aperture / shutter 102 adjusts the aperture diameter to adjust the amount of light during shooting, and also functions as an exposure time adjustment shutter when shooting a still image. The second lens group 103 moves forward and backward in the optical axis direction integrally with the diaphragm / shutter 102, and has a zoom function by zooming operation by interlocking with the forward / backward movement of the first lens group 101. The third lens group 105 is a focus lens that performs focus adjustment by advancing and retreating in the optical axis direction. The optical low-pass filter 106 is an optical element for reducing false colors and moire in the captured image. The image pickup element 107 includes a two-dimensional CMOS (complementary metal oxide semiconductor) photosensor and a peripheral circuit, and is disposed on the imaging plane of the image pickup optical system.

ズームアクチュエータ111は、不図示のカム筒を回動することで、第1レンズ群101および第2レンズ群103を光軸方向に移動させて変倍動作を行う。絞りシャッタアクチュエータ112は、絞り兼用シャッタ102の開口径を制御して撮影光量を調節すると共に、静止画撮影時の露光時間制御を行う。フォーカスアクチュエータ114は、第3レンズ群105を光軸方向に移動させて焦点調節を行う。   The zoom actuator 111 performs a zooming operation by moving the first lens group 101 and the second lens group 103 in the optical axis direction by rotating a cam cylinder (not shown). The aperture shutter actuator 112 controls the aperture diameter of the aperture / shutter 102 to adjust the amount of photographing light, and controls the exposure time during still image photographing. The focus actuator 114 adjusts the focus by moving the third lens group 105 in the optical axis direction.

被写体照明用の電子フラッシュ115は撮影時に使用し、キセノン管を用いた閃光照明装置または連続発光するLED(発光ダイオード)を備えた照明装置が用いられる。AF補助光源116は、低輝度の被写体または低コントラストの被写体に対する焦点検出能力を向上させる。AF補助光源116により、所定の開口パターンを有したマスクの像が、投光レンズを介して被写界に投影される。   The electronic flash 115 for illuminating the subject is used at the time of photographing, and a flash illumination device using a xenon tube or an illumination device including a continuous light emitting LED (light emitting diode) is used. The AF auxiliary light source 116 improves the focus detection capability for a low-luminance subject or a low-contrast subject. The AF auxiliary light source 116 projects a mask image having a predetermined aperture pattern onto the object field via the light projection lens.

カメラシステムの制御部を構成するCPU(中央演算処理装置)121は、各種の制御を司る制御中枢機能をもつ。CPU121は、演算部、ROM(リード・オンリ・メモリ)、RAM(ランダム・アクセス・メモリ)、A(アナログ)/D(デジタル)コンバータ、D/Aコンバータ、通信インターフェイス回路等を有する。CPU121はROMに記憶された所定のプログラムに従って、カメラが有する各種回路を駆動し、AF制御、撮影、画像処理、記録処理等の一連の動作を実行する。また、CPU121は画像処理の制御を行う。   A CPU (Central Processing Unit) 121 that constitutes a control unit of the camera system has a control center function that controls various controls. The CPU 121 includes a calculation unit, ROM (read only memory), RAM (random access memory), A (analog) / D (digital) converter, D / A converter, communication interface circuit, and the like. The CPU 121 drives various circuits included in the camera according to a predetermined program stored in the ROM, and executes a series of operations such as AF control, photographing, image processing, and recording processing. The CPU 121 controls image processing.

電子フラッシュ制御回路122はCPU121の制御指令に従い、撮影動作に同期して電子フラッシュ115を点灯制御する。補助光駆動回路123はCPU121の制御指令に従い、焦点検出動作に同期してAF補助光源116を点灯制御する。撮像素子駆動回路124は撮像素子107の撮像動作を制御するとともに、取得した撮像信号をA/D変換してCPU121に送信する。画像処理回路125はCPU121の制御指令に従い、撮像素子107により取得した画像のγ(ガンマ)変換、カラー補間、JPEG(Joint Photographic Experts Group)圧縮等の処理を行う。画像処理回路125は、静止画撮影時に取得される静止画像データおよび動画撮影時に取得される動画像データに対する処理機能を有する。   The electronic flash control circuit 122 controls lighting of the electronic flash 115 in synchronization with the photographing operation in accordance with a control command from the CPU 121. The auxiliary light driving circuit 123 controls lighting of the AF auxiliary light source 116 in synchronization with the focus detection operation according to the control command of the CPU 121. The image sensor driving circuit 124 controls the image capturing operation of the image sensor 107, A / D converts the acquired image signal, and transmits it to the CPU 121. The image processing circuit 125 performs processing such as γ (gamma) conversion, color interpolation, JPEG (Joint Photographic Experts Group) compression of an image acquired by the image sensor 107 in accordance with a control command of the CPU 121. The image processing circuit 125 has a processing function for still image data acquired during still image shooting and moving image data acquired during moving image shooting.

フォーカス駆動回路126はCPU121の制御指令に従い、焦点検出情報に基づいてフォーカスアクチュエータ114を駆動制御し、第3レンズ群105を光軸方向に移動させて焦点調節を行う。絞りシャッタ駆動回路128はCPU121の制御指令に従い、絞りシャッタアクチュエータ112を駆動し、絞り兼用シャッタ102の開口径を制御する。ズーム駆動回路129はCPU121の制御指令に従い、撮影者のズーム操作指示に応じてズームアクチュエータ111を駆動する。振れ検出部130は、撮影レンズ装置や撮像装置内に組み込まれたジャイロセンサや加速度センサなどにより装置の振れを検出し、振れ検出信号をCPU121に出力する。   The focus driving circuit 126 controls driving of the focus actuator 114 based on the focus detection information according to the control command of the CPU 121, and adjusts the focus by moving the third lens group 105 in the optical axis direction. The aperture shutter drive circuit 128 drives the aperture shutter actuator 112 in accordance with a control command from the CPU 121 to control the aperture diameter of the aperture / shutter 102. The zoom drive circuit 129 drives the zoom actuator 111 according to the zoom operation instruction of the photographer according to the control command of the CPU 121. The shake detection unit 130 detects a shake of the apparatus by a gyro sensor, an acceleration sensor, or the like incorporated in the photographing lens device or the image pickup apparatus, and outputs a shake detection signal to the CPU 121.

表示部131はLCD(液晶表示装置)等の表示デバイスを有し、カメラの撮影モードに関する情報、撮影前のプレビュー画像と撮影後の確認用画像、焦点検出時の合焦状態表示画像等を表示する。操作部132は、電源スイッチ、レリーズ(撮影トリガ)スイッチ、ズーム操作スイッチ、撮影モード選択スイッチ等を備え、操作指示信号をCPU121に出力する。フラッシュメモリ133はカメラ本体部に着脱可能な記録媒体であり、撮影済み画像データ等を記録する。   The display unit 131 has a display device such as an LCD (Liquid Crystal Display), and displays information related to the shooting mode of the camera, a preview image before shooting and a confirmation image after shooting, a focus state display image at the time of focus detection, and the like. To do. The operation unit 132 includes a power switch, a release (shooting trigger) switch, a zoom operation switch, a shooting mode selection switch, and the like, and outputs an operation instruction signal to the CPU 121. The flash memory 133 is a recording medium that can be attached to and detached from the camera body, and records captured image data and the like.

次に図2を参照して、本実施形態における撮像素子の撮像画素と焦点検出画素の配列を説明する。図2は、2次元CMOSセンサの撮像画素配列を4列×4行の範囲で例示し、焦点検出画素配列を8列×4行の範囲で例示する。2列×2行の画素群200は、以下に示す1組の画素200R,200G,200Bを備える。
・画素200R(左上の位置参照):R(赤)色の分光感度を有する画素。
・画素200G(右上と左下の位置参照):G(緑)色の分光感度を有する画素。
・画素200B(右下の位置参照):B(青)色の分光感度を有する画素。
各画素部は、2列×1行に配列した、第1焦点検出画素201と第2焦点検出画素202により構成されている。図2に示した4列×4行の画素(8列×4行の焦点検出画素)が平面上にて格子状に多数配置されることで、撮像画像信号および焦点検出信号を取得可能である。本実施形態の撮像素子では、画素の周期Pを4(μm)とし、画素数Nを横5575列×縦3725行(=約2075万画素)とする。また焦点検出画素の列方向の周期PAFを2(μm)とし、焦点検出画素数NAFを横11150列×縦3725行(=約4150万画素)とする。
Next, with reference to FIG. 2, the arrangement of the imaging pixels and focus detection pixels of the imaging device in the present embodiment will be described. FIG. 2 illustrates an imaging pixel array of a two-dimensional CMOS sensor in a range of 4 columns × 4 rows, and illustrates a focus detection pixel array in a range of 8 columns × 4 rows. The pixel group 200 of 2 columns × 2 rows includes a set of pixels 200R, 200G, and 200B described below.
Pixel 200R (see the upper left position): a pixel having a spectral sensitivity of R (red) color.
Pixel 200G (refer to the upper right and lower left positions): a pixel having G (green) spectral sensitivity.
Pixel 200B (refer to the lower right position): a pixel having a spectral sensitivity of B (blue) color.
Each pixel unit is composed of a first focus detection pixel 201 and a second focus detection pixel 202 arranged in 2 columns × 1 row. A large number of 4 columns × 4 rows of pixels (8 columns × 4 rows of focus detection pixels) shown in FIG. 2 are arranged in a grid pattern on the plane, so that captured image signals and focus detection signals can be acquired. . In the imaging device of the present embodiment, the pixel period P is 4 (μm), and the number N of pixels is 5575 columns × 3725 rows (= about 20.75 million pixels). Also in the column direction of the period P AF focus detection pixels and 2 ([mu] m), the focus detection pixel number N AF horizontal 11150 rows × vertical 3725 lines and (= approximately 41.5 million pixels).

図2に示した撮像素子における1つの画素200Gを、撮像素子の受光面側(+z側)から見た平面図を図3(A)に示す。図3(A)の紙面に垂直な方向にz軸を設定し、手前側をz軸の正方向と定義する。また、z軸に直交する上下方向にy軸を設定して上方をy軸の正方向とし、z軸およびy軸に直交する左右方向にx軸を設定して右方をx軸の正方向と定義する。図3(A)にてa−a切断線に沿って、−y方向から見た場合の断面図を図3(B)に示す。   FIG. 3A shows a plan view of one pixel 200G in the image sensor shown in FIG. 2 viewed from the light receiving surface side (+ z side) of the image sensor. The z axis is set in a direction perpendicular to the paper surface of FIG. 3A, and the near side is defined as the positive direction of the z axis. Also, the y-axis is set in the vertical direction perpendicular to the z-axis, the upper direction is the positive direction of the y-axis, the x-axis is set in the horizontal direction perpendicular to the z-axis and the y-axis, and the right direction is the positive direction of the x-axis It is defined as FIG. 3B shows a cross-sectional view when seen from the −y direction along the line aa in FIG.

図3(B)に示す画素200Gは、各画素の受光面側(+z方向)にて入射光を集光するマイクロレンズ305が形成され、分割された複数の光電変換部を備える。例えば、x方向における分割数をNとし、y方向における分割数をNとする。図3には、瞳領域をx方向にて2分割した例、すなわち、N=2,N=1の場合を例示し、副画素としての光電変換部301と光電変換部302が形成されている。光電変換部301は第1焦点検出画素201に対応し、光電変換部302は第2焦点検出画素202に対応する。光電変換部301と光電変換部302は、例えばp型層300とn型層との間にイントリンシック層を挟んだpin構造フォトダイオードとして形成される。または必要に応じて、イントリンシック層を省略し、pn接合フォトダイオードとして形成してもよい。各画素には、マイクロレンズ305と、光電変換部301および光電変換部302との間に、カラーフィルタ306が形成される。必要に応じて、副画素ごとにカラーフィルタ306の分光透過率を変えてもよいし、カラーフィルタを省略しても構わない。 A pixel 200G illustrated in FIG. 3B includes a plurality of divided photoelectric conversion units in which a microlens 305 that collects incident light is formed on the light-receiving surface side (+ z direction) of each pixel. For example, the number of division in the x direction and N H, the division number in y-direction and N V. FIG. 3 illustrates an example in which the pupil region is divided into two in the x direction, that is, a case where N H = 2 and N V = 1, and a photoelectric conversion unit 301 and a photoelectric conversion unit 302 are formed as sub-pixels. ing. The photoelectric conversion unit 301 corresponds to the first focus detection pixel 201, and the photoelectric conversion unit 302 corresponds to the second focus detection pixel 202. The photoelectric conversion unit 301 and the photoelectric conversion unit 302 are formed as, for example, a pin structure photodiode in which an intrinsic layer is sandwiched between a p-type layer 300 and an n-type layer. Alternatively, if necessary, the intrinsic layer may be omitted and formed as a pn junction photodiode. In each pixel, a color filter 306 is formed between the microlens 305 and the photoelectric conversion unit 301 and the photoelectric conversion unit 302. If necessary, the spectral transmittance of the color filter 306 may be changed for each sub-pixel, or the color filter may be omitted.

画素200Gに入射した光はマイクロレンズ305が集光し、さらにカラーフィルタ306で分光された後に、光電変換部301と光電変換部302が受光する。光電変換部301と光電変換部302では、受光量に応じて電子とホール(正孔)が対生成され、空乏層で分離された後、負電荷をもつ電子はn型層(不図示)に蓄積される。一方、ホールは定電圧源(不図示)に接続されたp型層を通じて撮像素子の外部へ排出される。光電変換部301と光電変換部302のn型層(不図示)に蓄積された電子は、転送ゲートを介して、静電容量部(FD)に転送されて電圧信号に変換される。   The light incident on the pixel 200G is collected by the microlens 305 and further dispersed by the color filter 306, and then received by the photoelectric conversion unit 301 and the photoelectric conversion unit 302. In the photoelectric conversion unit 301 and the photoelectric conversion unit 302, a pair of electrons and holes (holes) are generated according to the amount of received light, separated by a depletion layer, and then electrons having a negative charge are transferred to an n-type layer (not shown). Accumulated. On the other hand, the holes are discharged to the outside of the image sensor through a p-type layer connected to a constant voltage source (not shown). Electrons accumulated in the n-type layer (not shown) of the photoelectric conversion unit 301 and the photoelectric conversion unit 302 are transferred to the capacitance unit (FD) via the transfer gate and converted into a voltage signal.

図4は、画素構造と瞳分割との対応関係を示した概略的な説明図である。図4には、図3(A)に示した画素構造のa−a線での切断面を、+y方向から見た場合の断面図と、結像光学系の射出瞳面(射出瞳400参照)を、−z方向から見た図を示す。図4では、射出瞳面の座標軸と対応を取るために、断面図にてx軸とy軸を図3(A)に示す状態とは反転させて示している。第1焦点検出画素201に対応する第1瞳部分領域501は、−x方向に重心が偏倚している光電変換部301の受光面に対し、マイクロレンズ305によって、概ね共役関係になっている。つまり、第1瞳部分領域501は第1焦点検出画素201で受光可能な瞳領域を表し、瞳面上で+x方向に重心が偏倚している。また、第2焦点検出画素202に対応する第2瞳部分領域502は、重心が、+x方向に偏心している光電変換部302の受光面に対し、マイクロレンズ305によって、概ね共役関係になっている。第2瞳部分領域502は第2焦点検出画素202で受光可能な瞳領域を表し、瞳面上で、−x方向に重心が偏倚している。   FIG. 4 is a schematic explanatory diagram showing the correspondence between the pixel structure and pupil division. 4A and 4B are a cross-sectional view of the cross section taken along the line aa of the pixel structure shown in FIG. 3A when viewed from the + y direction, and an exit pupil plane of the imaging optical system (see the exit pupil 400). ) Is viewed from the −z direction. In FIG. 4, in order to correspond to the coordinate axis of the exit pupil plane, the x axis and the y axis are shown reversed in the cross-sectional view from the state shown in FIG. The first pupil partial region 501 corresponding to the first focus detection pixel 201 is substantially conjugated by the microlens 305 with respect to the light receiving surface of the photoelectric conversion unit 301 whose center of gravity is biased in the −x direction. That is, the first pupil partial region 501 represents a pupil region that can be received by the first focus detection pixel 201, and the center of gravity is biased in the + x direction on the pupil plane. In addition, the second pupil partial region 502 corresponding to the second focus detection pixel 202 is substantially conjugated by the microlens 305 with respect to the light receiving surface of the photoelectric conversion unit 302 whose center of gravity is decentered in the + x direction. . The second pupil partial region 502 represents a pupil region that can be received by the second focus detection pixel 202, and the center of gravity is biased in the −x direction on the pupil plane.

図4に示す瞳領域500は、光電変換部301と光電変換部302(第1焦点検出画素201と第2焦点検出画素202)を全て併せた場合の、画素200G全体で受光可能な瞳領域である。撮像素子と瞳分割との対応関係を図5(A)の概略図に示す。第1瞳部分領域501と第2瞳部分領域502の、異なる瞳部分領域をそれぞれ通過した光束は、撮像素子の各画素に異なる角度で入射する。撮像面800への入射光は、N(=2)×N(=1)に分割された第1焦点検出画素201と第2焦点検出画素202で受光される。第1焦点検出画素201の光電変換部301と第2焦点検出画素202の光電変換部302は光を電気信号に変換する。本実施形態では、瞳領域が水平方向にて2つに瞳分割されている例を示す。必要に応じて、垂直方向に瞳分割を行ってもよい。 A pupil region 500 illustrated in FIG. 4 is a pupil region that can receive light in the entire pixel 200G when the photoelectric conversion unit 301 and the photoelectric conversion unit 302 (the first focus detection pixel 201 and the second focus detection pixel 202) are combined. is there. The correspondence between the image sensor and pupil division is shown in the schematic diagram of FIG. The light beams that have passed through the different pupil partial areas of the first pupil partial area 501 and the second pupil partial area 502 are incident on each pixel of the image sensor at different angles. Incident light on the imaging surface 800 is received by the first focus detection pixel 201 and the second focus detection pixel 202 divided into N H (= 2) × N V (= 1). The photoelectric conversion unit 301 of the first focus detection pixel 201 and the photoelectric conversion unit 302 of the second focus detection pixel 202 convert light into an electrical signal. In the present embodiment, an example is shown in which the pupil region is divided into two pupils in the horizontal direction. If necessary, pupil division may be performed in the vertical direction.

本実施形態に係る撮像素子107は、結像光学系の第1瞳部分領域を通過する光束を受光する第1焦点検出画素と、第1瞳部分領域とは異なる、結像光学系の第2瞳部分領域を通過する光束を受光する第2焦点検出画素を備える。結像光学系の第1瞳部分領域と第2瞳部分領域とを併せた瞳領域を通過する光束を受光する撮像画素は2次元アレイ状に複数配列されている。つまり、各撮像画素は第1焦点検出画素と第2焦点検出画素から構成される。必要に応じて、撮像画素と、第1焦点検出画素および第2焦点検出画素を個別の画素構成とし、撮像画素配列にて第1焦点検出画素と第2焦点検出画素を部分的に分散配置した構成を採用してもよい。   The image sensor 107 according to this embodiment includes a first focus detection pixel that receives a light beam passing through the first pupil partial region of the imaging optical system, and a second imaging optical system that is different from the first pupil partial region. A second focus detection pixel that receives a light beam passing through the pupil partial region is provided. A plurality of imaging pixels that receive a light beam passing through a pupil region that is a combination of the first pupil partial region and the second pupil partial region of the imaging optical system are arranged in a two-dimensional array. That is, each imaging pixel is composed of a first focus detection pixel and a second focus detection pixel. If necessary, the imaging pixels, the first focus detection pixels, and the second focus detection pixels have individual pixel configurations, and the first focus detection pixels and the second focus detection pixels are partially distributed in the imaging pixel array. A configuration may be adopted.

本実施形態では、撮像素子における各画素の第1焦点検出画素201の受光信号を集めて第1焦点検出信号が生成され、各画素の第2焦点検出画素202の受光信号を集めて第2焦点検出信号が生成される。焦点検出では、第1焦点検出信号と第2焦点検出信号から像ずれ量を算出する処理が行われる。また、撮像素子の画素ごとに、第1焦点検出画素201の出力信号と第2焦点検出画素202の出力信号を加算することで、有効画素数Nの解像度をもつ撮像信号が生成される。これにより、撮像画像データを取得することができる。   In the present embodiment, the first focus detection signal is generated by collecting the light reception signals of the first focus detection pixels 201 of each pixel in the image sensor, and the light reception signals of the second focus detection pixels 202 of each pixel are collected to obtain the second focus. A detection signal is generated. In focus detection, a process of calculating an image shift amount from the first focus detection signal and the second focus detection signal is performed. Further, by adding the output signal of the first focus detection pixel 201 and the output signal of the second focus detection pixel 202 for each pixel of the image pickup device, an image pickup signal having a resolution of the effective pixel number N is generated. Thereby, captured image data can be acquired.

次に、撮像素子107により取得される第1焦点検出信号および第2焦点検出信号のデフォーカス量と像ずれ量との関係を説明する。図5(B)は、第1焦点検出信号および第2焦点検出信号のデフォーカス量と、第1焦点検出信号と第2焦点検出信号との間の像ずれ量について概略的に示す関係図である。撮像面800には撮像素子(不図示)が配置され、図4、図5(A)の場合と同様に、結像光学系の射出瞳が、第1瞳部分領域501と第2瞳部分領域502に2分割される。   Next, the relationship between the defocus amount and the image shift amount of the first focus detection signal and the second focus detection signal acquired by the image sensor 107 will be described. FIG. 5B is a relationship diagram schematically showing the defocus amounts of the first focus detection signal and the second focus detection signal and the image shift amount between the first focus detection signal and the second focus detection signal. is there. An imaging element (not shown) is arranged on the imaging surface 800, and the exit pupil of the imaging optical system is divided into the first pupil partial region 501 and the second pupil partial region as in the case of FIGS. 4 and 5A. Divided into 502.

デフォーカス量dは、その大きさ|d|が被写体像の結像位置から撮像面800までの距離を表す。被写体像の結像位置が撮像面800よりも被写体側にある前ピン状態では、負符号(d<0)とし、これとは反対の後ピン状態では正符号(d>0)として向きを定義する。被写体像の結像位置が撮像面(合焦位置)にある合焦状態では、d=0である。図5(B)に示す被写体801の位置は、合焦状態(d=0)に対応する位置を示しており、被写体802の位置は前ピン状態(d<0)に対応する位置を例示する。以下では、前ピン状態(d<0)と後ピン状態(d>0)とを併せて、デフォーカス状態(|d|>0)という。   The size | d | of the defocus amount d represents the distance from the imaging position of the subject image to the imaging surface 800. The orientation is defined as a negative sign (d <0) in the front pin state where the imaging position of the subject image is closer to the subject side than the imaging surface 800, and a positive sign (d> 0) in the rear pin state opposite to this. To do. In an in-focus state where the image formation position of the subject image is on the imaging surface (in-focus position), d = 0. The position of the subject 801 shown in FIG. 5B indicates a position corresponding to the in-focus state (d = 0), and the position of the subject 802 exemplifies a position corresponding to the front pin state (d <0). . Hereinafter, the front pin state (d <0) and the rear pin state (d> 0) are collectively referred to as a defocus state (| d |> 0).

前ピン状態(d<0)では、被写体802からの光束のうち、第1瞳部分領域501(または第2瞳部分領域502)を通過した光束は、いったん集光した後、光束の重心位置G1(またはG2)を中心として幅Γ1(またはΓ2)に広がる。この場合、撮像面800上で暈けた像となる。暈け像は、撮像素子に配列された各画素を構成する第1焦点検出画素201(または第2焦点検出画素202)により受光され、第1焦点検出信号(または第2焦点検出信号)が生成される。よって、第1焦点検出信号(または第2焦点検出信号)は、撮像面800上の重心位置G1(またはG2)にて、幅Γ1(またはΓ2)をもった被写体像(暈け像)として検出される。被写体像の幅Γ1(またはΓ2)は、デフォーカス量dの大きさ|d|が増加するのに伴い、概ね比例して増加する。同様に、第1焦点検出信号と第2焦点検出信号との間の被写体像の像ずれ量を「p」と記すと、その大きさ|p|はデフォーカス量dの大きさ|d|の増加に伴って増加する。例えば、像ずれ量pは光束の重心位置の差「G1−G2」として定義され、その大きさ|p|は、|d|が増加するのに伴い、概ね比例して増加する。なお、後ピン状態(d>0)では、第1焦点検出信号と第2焦点検出信号との間の被写体像の像ずれ方向が前ピン状態とは反対となるが、同様の傾向がある。
本実施形態では第1焦点検出信号と第2焦点検出信号、または第1焦点検出信号と第2焦点検出信号とを加算した撮像信号のデフォーカス量の大きさが増加するのに伴い、第1焦点検出信号と第2焦点検出信号との間の像ずれ量の大きさが増加する。
In the front pin state (d <0), the luminous flux that has passed through the first pupil partial area 501 (or the second pupil partial area 502) out of the luminous flux from the subject 802 is once condensed and then the gravity center position G1 of the luminous flux. (Or G2) is spread around the width Γ1 (or Γ2). In this case, the image is blurred on the imaging surface 800. The blurred image is received by the first focus detection pixel 201 (or the second focus detection pixel 202) constituting each pixel arranged in the image sensor, and a first focus detection signal (or a second focus detection signal) is generated. Is done. Therefore, the first focus detection signal (or the second focus detection signal) is detected as a subject image (blurred image) having a width Γ1 (or Γ2) at the gravity center position G1 (or G2) on the imaging surface 800. Is done. The width Γ1 (or Γ2) of the subject image increases approximately proportionally as the magnitude | d | of the defocus amount d increases. Similarly, when the image shift amount of the subject image between the first focus detection signal and the second focus detection signal is denoted by “p”, the magnitude | p | is the magnitude of the defocus amount d | d | It increases with the increase. For example, the image shift amount p is defined as a difference “G1−G2” in the center of gravity position of the light beam, and its magnitude | p | increases approximately proportionally as | d | increases. In the rear pin state (d> 0), the image shift direction of the subject image between the first focus detection signal and the second focus detection signal is opposite to the front pin state, but there is a similar tendency.
In the present embodiment, the first focus detection signal and the second focus detection signal, or the defocus amount of the imaging signal obtained by adding the first focus detection signal and the second focus detection signal increases as the first focus detection signal increases. The magnitude of the image shift amount between the focus detection signal and the second focus detection signal increases.

次に、本実施形態における位相差方式の焦点検出について説明する。
位相差方式の焦点検出では、第1焦点検出信号と第2焦点検出信号を相対的にシフトさせて信号の一致度を表す相関量を計算し、相関性(信号の一致度)の高くなるシフト量から像ずれ量が検出される。撮像信号のデフォーカス量の大きさが増加することに伴い、第1焦点検出信号と第2焦点検出信号との間の像ずれ量の大きさが増加するという関係性が利用される。像ずれ量をデフォーカス量に変換することで焦点位置の検出量が取得される。
Next, phase difference type focus detection in this embodiment will be described.
In the phase difference type focus detection, the first focus detection signal and the second focus detection signal are relatively shifted to calculate the correlation amount indicating the degree of coincidence of the signals, and the shift that increases the correlation (signal coincidence). The image shift amount is detected from the amount. As the defocus amount of the imaging signal increases, the relationship that the amount of image shift between the first focus detection signal and the second focus detection signal increases is used. The detection amount of the focal position is obtained by converting the image shift amount into the defocus amount.

図6は、本実施形態における焦点検出処理の流れを概略的に示すフローチャートである。本処理は、CPU121が実行するプログラムに従って撮像素子107、画像処理回路125を制御することで実現される焦点検出部が行う。   FIG. 6 is a flowchart schematically showing the flow of focus detection processing in the present embodiment. This process is performed by a focus detection unit realized by controlling the image sensor 107 and the image processing circuit 125 according to a program executed by the CPU 121.

S110では、撮像素子107の有効画素領域内で焦点調節を行う焦点検出領域を設定する処理が行われる。焦点検出部は、焦点検出領域のうち、第1焦点検出画素の受光信号(A像信号)から第1焦点検出信号を生成し、第2焦点検出画素の受光信号(B像信号)から第2焦点検出信号を生成する。S120では、第1焦点検出信号と第2焦点検出信号に対し、それぞれ、信号データ量を抑制するために列方向に3画素分の加算処理が行われる。さらに、RGB信号を輝度信号(Y信号)にするためにベイヤー(RGB)加算処理が行われる。これらの2つの加算処理を併せて画素加算処理とする。S130では、第1焦点検出信号と第2焦点検出信号に対して、それぞれシェーディング補正処理(光学補正処理)が行われる。   In S110, processing for setting a focus detection region for performing focus adjustment within the effective pixel region of the image sensor 107 is performed. The focus detection unit generates a first focus detection signal from the light reception signal (A image signal) of the first focus detection pixel in the focus detection region, and generates a second signal from the light reception signal (B image signal) of the second focus detection pixel. A focus detection signal is generated. In S120, an addition process for three pixels in the column direction is performed on the first focus detection signal and the second focus detection signal in order to suppress the amount of signal data. Further, Bayer (RGB) addition processing is performed in order to convert the RGB signal into a luminance signal (Y signal). These two addition processes are collectively referred to as a pixel addition process. In S130, shading correction processing (optical correction processing) is performed on each of the first focus detection signal and the second focus detection signal.

図7を参照して、第1焦点検出信号と第2焦点検出信号の瞳ずれによるシェーディングについて説明する。図7は、撮像素子の周辺像高における第1焦点検出画素201の第1瞳部分領域501および第2焦点検出画素202の第2瞳部分領域502と、結像光学系の射出瞳400との関係を示す。   With reference to FIG. 7, the shading by the pupil shift | offset | difference of a 1st focus detection signal and a 2nd focus detection signal is demonstrated. FIG. 7 shows the relationship between the first pupil partial region 501 of the first focus detection pixel 201 and the second pupil partial region 502 of the second focus detection pixel 202 and the exit pupil 400 of the imaging optical system at the peripheral image height of the image sensor. Show the relationship.

図7(A)は結像光学系の射出瞳距離Dlと撮像素子の設定瞳距離Dsが同じ場合を示す。この場合、第1瞳部分領域501と第2瞳部分領域502により、結像光学系の射出瞳400が、ほぼ均等に瞳分割される。これに対して、図7(B)は結像光学系の射出瞳距離Dlが撮像素子の設定瞳距離Dsより短い場合を示す。この場合、撮像素子の周辺像高では、結像光学系の射出瞳と撮像素子の入射瞳の瞳ずれが生じ、結像光学系の射出瞳400が不均等に瞳分割されてしまう。また、図7(C)は結像光学系の射出瞳距離Dlが撮像素子の設定瞳距離Dsより長い場合を示す。この場合、撮像素子の周辺像高では、結像光学系の射出瞳と撮像素子の入射瞳の瞳ずれが生じ、結像光学系の射出瞳400が不均等に瞳分割されてしまう。周辺像高で瞳分割が不均等になるのに伴い、第1焦点検出信号と第2焦点検出信号の強度が不均等になる。その結果、第1焦点検出信号と第2焦点検出信号のいずれか一方の強度が相対的に大きくなり、他方の強度が小さくなるシェーディングが生じる。   FIG. 7A shows a case where the exit pupil distance Dl of the imaging optical system and the set pupil distance Ds of the image sensor are the same. In this case, the first pupil partial region 501 and the second pupil partial region 502 divide the exit pupil 400 of the imaging optical system substantially equally. On the other hand, FIG. 7B shows a case where the exit pupil distance Dl of the imaging optical system is shorter than the set pupil distance Ds of the image sensor. In this case, at the peripheral image height of the imaging element, a pupil shift occurs between the exit pupil of the imaging optical system and the entrance pupil of the imaging element, and the exit pupil 400 of the imaging optical system is non-uniformly divided into pupils. FIG. 7C shows a case where the exit pupil distance Dl of the imaging optical system is longer than the set pupil distance Ds of the image sensor. In this case, at the peripheral image height of the imaging element, a pupil shift occurs between the exit pupil of the imaging optical system and the entrance pupil of the imaging element, and the exit pupil 400 of the imaging optical system is non-uniformly divided into pupils. As pupil division becomes uneven at the peripheral image height, the intensity of the first focus detection signal and the second focus detection signal becomes uneven. As a result, shading occurs in which the intensity of one of the first focus detection signal and the second focus detection signal is relatively large and the other is small.

図6のS130では、焦点検出領域の像高と、撮像レンズ(結像光学系)のF値、射出瞳距離に応じてシェーディング補正係数が決定される。つまり、第1焦点検出信号についての第1シェーディング補正係数と、第2焦点検出信号についての第2シェーディング補正係数がそれぞれ生成される。第1シェーディング補正係数は第1焦点検出信号に乗算され、第2シェーディング補正係数は第2焦点検出信号に乗算されて、シェーディング補正処理が実行される。   In S130 of FIG. 6, the shading correction coefficient is determined according to the image height of the focus detection area, the F value of the imaging lens (imaging optical system), and the exit pupil distance. That is, a first shading correction coefficient for the first focus detection signal and a second shading correction coefficient for the second focus detection signal are generated. The first shading correction coefficient is multiplied by the first focus detection signal, the second shading correction coefficient is multiplied by the second focus detection signal, and shading correction processing is executed.

位相差方式の焦点検出では、第1焦点検出信号と第2焦点検出信号との相関性(信号の一致度)に基づいて、検出量の取得処理が行われる。瞳ずれによるシェーディングが発生すると、第1焦点検出信号と第2焦点検出信号との相関性が低下する場合がある。位相差方式の焦点検出ではシェーディング補正処理により、第1焦点検出信号と第2焦点検出信号との相関性を改善し、焦点検出性能を良好にすることができる。   In phase difference type focus detection, detection amount acquisition processing is performed based on the correlation (the degree of coincidence of signals) between the first focus detection signal and the second focus detection signal. When shading due to pupil shift occurs, the correlation between the first focus detection signal and the second focus detection signal may decrease. In the phase difference type focus detection, the correlation between the first focus detection signal and the second focus detection signal can be improved by the shading correction process, and the focus detection performance can be improved.

図6のS140では、第1焦点検出信号と第2焦点検出信号に対する、フィルタ処理が行われる。フィルタ処理の通過帯域を、図8の実線のグラフgaに例示する。横軸には空間周波数(ライン・スペース/mm)を示し、縦軸には最大値を1としたゲインを示す。本実施形態では、位相差方式の焦点検出により、デフォーカス量が大きい状態での焦点検出を行うため、フィルタ処理における通過帯域が低周波数帯域を含むようにフィルタが構成される。必要に応じて、デフォーカス量が大きい状態から小さい状態まで焦点調節を行う際には、デフォーカス状態に応じて焦点検出時のフィルタ処理における通過帯域を、図8の1点鎖線のグラフgbに示すように、より高周波帯域に調整してもよい。   In S140 of FIG. 6, filter processing is performed on the first focus detection signal and the second focus detection signal. The pass band of the filtering process is illustrated in the solid line graph ga of FIG. The horizontal axis represents the spatial frequency (line space / mm), and the vertical axis represents the gain with the maximum value being 1. In the present embodiment, since focus detection is performed with a large defocus amount by phase difference focus detection, the filter is configured so that the pass band in the filter processing includes a low frequency band. When performing focus adjustment from a large defocus amount to a small defocus amount as necessary, the passband in the filter processing at the time of focus detection according to the defocus state is shown in a dashed-dotted line graph gb in FIG. As shown, it may be adjusted to a higher frequency band.

次に、図6のS150では、フィルタ処理後の第1焦点検出信号と第2焦点検出信号を、瞳分割方向にて相対的にシフトさせるシフト処理が行われる。シフト処理により、第1焦点検出信号と第2焦点検出信号との一致度を表す相関量が算出される。フィルタ処理後のk番目の第1焦点検出信号をA(k)とし、フィルタ処理後のk番目の第2焦点検出信号をB(k)とする。焦点検出領域に対応する番号kの範囲をWとする。シフト処理によるシフト量をsとし、その範囲(シフト範囲)をΓ1として、相関量CORは、式(1)により算出される。

Figure 2016156931
Next, in S150 of FIG. 6, a shift process for relatively shifting the first focus detection signal and the second focus detection signal after the filter process in the pupil division direction is performed. By the shift process, a correlation amount representing the degree of coincidence between the first focus detection signal and the second focus detection signal is calculated. The kth first focus detection signal after the filtering process is A (k), and the kth second focus detection signal after the filtering process is B (k). The range of the number k corresponding to the focus detection area is set to W. The amount of correlation COR is calculated by equation (1), where s 1 is the amount of shift by the shift process, and Γ1 is the range (shift range).
Figure 2016156931

シフト量sによるシフト処理の結果、k番目の第1焦点検出信号A(k)と、「k−s」番目の第2焦点検出信号B(k−s)とを対応させて減算することで、シフト減算信号が生成される。生成されたシフト減算信号の絶対値を計算し、焦点検出領域に対応する範囲W内で番号kでの和を求めることにより、相関量COR(s)を算出することができる。必要に応じて、行ごとに算出された相関量を、シフト量ごとに、複数の行に亘って加算してもよい。 As a result of the shift process using the shift amount s 1 , the k-th first focus detection signal A (k) and the “k-s 1 ” -th second focus detection signal B (k-s 1 ) are subtracted in correspondence with each other. As a result, a shift subtraction signal is generated. By calculating the absolute value of the generated shift subtraction signal and calculating the sum at number k within the range W corresponding to the focus detection area, the correlation amount COR (s 1 ) can be calculated. If necessary, the correlation amount calculated for each row may be added over a plurality of rows for each shift amount.

S160では、S150で求めた相関量から、サブピクセル演算により、相関量が最小値となる実数値のシフト量を算出する処理が実行され、像ずれ量p1が求められる。この像ずれ量p1に対し、焦点検出領域の像高と、撮像レンズ(結像光学系)のF値、射出瞳距離に応じた第1変換係数K1を乗算することで検出量が算出される。   In S160, a process of calculating a real value shift amount at which the correlation amount is the minimum value is executed from the correlation amount obtained in S150 by subpixel calculation, and the image shift amount p1 is obtained. The detection amount is calculated by multiplying the image shift amount p1 by the image height of the focus detection area, the F value of the imaging lens (imaging optical system), and the first conversion coefficient K1 corresponding to the exit pupil distance. .

次に、以上の焦点検出方式を用いて動画撮影時に実行するAF制御のアルゴリズムについて説明する。
動画撮影時には、静止画撮影時のように逸早く被写体に焦点を合わせるAF制御ではなく、フォーカスレンズの駆動に関して品位の高いAF制御が求められる。つまり動画撮影の場合、AF制御でのフォーカシング動作による映像の見え方そのものが記録される。このため、焦点を早く合わせることよりはむしろ、フォーカシング動作の品位が重要とされる。品位を高めるための制御の一つとして、常にフォーカスレンズを駆動し続けずに、被写体にピントが合った時点でフォーカスレンズを停止させ、その後の所定の条件判断結果に応じてフォーカスレンズの駆動を再開させる制御がある。所定の条件判断結果とは、例えば、被写体が変わったことや、被写体像に暈けが生じたといったことなどである。この制御では、例えば、フォーカスレンズを停止させずに駆動が続いた場合や、不用意に低コントラスト部のような焦点検出精度の低い被写体に対する焦点検出を行うとき、あるいは他の被写体が瞬間的に横切った場合などに問題が起こり得る。このような場合、不用意にフォーカスレンズが駆動されると、画像が暈けてしまい動画の品位を低下させる可能性がある。そこで、本実施形態の撮像装置は動画撮影時にて、被写体に合焦したと判断した場合にはフォーカスレンズの駆動を一旦停止し、再度被写体が変化したか否かを判定する。被写体が変化したと判定された場合に、フォーカスレンズの駆動を再起動させる制御を行うことで、無駄なレンズ駆動の頻度を抑えて品位を高めることができる。
Next, an AF control algorithm executed at the time of moving image shooting using the above focus detection method will be described.
At the time of moving image shooting, high-quality AF control with respect to the driving of the focus lens is required instead of the AF control for quickly focusing on the subject as in the case of still image shooting. That is, in the case of moving image shooting, the appearance itself of the image by the focusing operation in the AF control is recorded. For this reason, rather than focusing quickly, the quality of the focusing operation is important. 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 the focus lens is driven according to a predetermined condition judgment result thereafter. There is control to resume. The predetermined condition determination result is, for example, that the subject has changed or that the subject image has become blurred. In this control, for example, when the drive continues without stopping the focus lens, when carelessly performing focus detection on a subject with low focus detection accuracy such as a low-contrast part, or when other subjects are instantaneously Problems can arise when crossing. In such a case, if the focus lens is inadvertently driven, the image may be lost and the quality of the moving image may be lowered. Therefore, when it is determined that the subject is in focus at the time of moving image shooting, the imaging apparatus according to the present embodiment temporarily stops driving the focus lens and determines again whether or not the subject has changed. When it is determined that the subject has changed, control for restarting the driving of the focus lens is performed, so that the frequency of useless lens driving can be suppressed and the quality can be improved.

フォーカスレンズの停止状態から、当該レンズの駆動を再起動させるに際には、不用意なレンズ駆動を行わないために、被写体のピント面が変化したかどうかを判断する必要がある。被写体のピント面が変化したと確かに判断できた場合には、フォーカスレンズの駆動を再起動させる制御が実行される。例えばデフォーカス量が所定の閾値以内である場合には再起動が行われず、所定の閾値以上のデフォーカス量が、一定時間(判定用の基準時間)に亘って検出された場合に再起動が行われる。このような制御によれば、被写体が動いていない時には不必要に動くことがない品位の高い映像を得ることができる。但し、被写体が動き出した時には、前記一定時間の判定用時間(あるいは検出時間)を設ける場合、当該時間の経過に相当する距離だけ被写体が移動してからフォーカスレンズの駆動が行われる。つまり、判定用時間の長さを固定値とした場合には、被写体の追尾開始の際に一定時間の遅れが生じる。そのため画像に多少の暈けが生じてしまうことが懸念される。画像の暈け量は、被写体の移動速度が遅い場合は無視できる程度であるが、被写体の移動速度が速くなるほど大きくなる。前記一定時間内における被写体の移動量が大きいほど画像の暈け量が大きくなってしまうので、被写体の移動速度によっては映像の品位を低下させる可能性がある。   When the driving of the lens is restarted from the stopped state of the focus lens, it is necessary to determine whether or not the focus surface of the subject has changed in order to prevent inadvertent lens driving. When it can be determined with certainty that the focus plane of the subject has changed, control for restarting the drive of the focus lens is executed. For example, when the defocus amount is within a predetermined threshold value, the restart is not performed, and the restart is performed when a defocus amount equal to or greater than the predetermined threshold value is detected for a certain period of time (reference time for determination). Done. According to such control, a high-quality image that does not move unnecessarily when the subject is not moving can be obtained. However, when the subject starts to move, when the predetermined time for determination (or detection time) is provided, the focus lens is driven after the subject has moved a distance corresponding to the passage of the time. That is, when the determination time length is a fixed value, a delay of a certain time occurs at the start of tracking of the subject. For this reason, there is a concern that some blur will occur in the image. The amount of blurring of the image is negligible when the movement speed of the subject is slow, but increases as the movement speed of the subject increases. As the amount of movement of the subject within the predetermined time increases, the amount of blurring of the image increases. Therefore, depending on the movement speed of the subject, the quality of the image may be reduced.

図9は、動き出した被写体を撮像装置で撮像している時のデフォーカス量の変化を示すグラフである。図9の横軸は時間(秒)を示し、縦軸はデフォーカス量([Fδ])を示す。このデフォーカス量は、単位をmmとして算出されたデフォーカス量を、絞り値であるF値および許容錯乱円径δで割って正規化した値であり、これにより暈け量に比例した値として取り扱うことができる。例えば、F値が2.0でδが0.02mmの場合、デフォーカス量が1mmの時には、25[Fδ]として暈け量を定量的に示すことができる。
図9(A)は、被写体が1m/sの速さで移動している場合を示す。図9(B)は、被写体が2m/sの速さで移動している場合を示す。各グラフにおける変曲点の位置では、フォーカスレンズの駆動が再起動され、被写体の追尾が開始するため、再びデフォーカス量の絶対値が減少していく。図9(A)および図9(B)では、判定用時間が同じ値に設定されている。そのため、図9(B)の場合の方が図9(A)の場合に比べて、再起動での動き出し時の最大デフォーカス量の絶対値が大きい。すなわち、映像の品位が低下することが判る。
そこで以下の実施形態では、被写体の移動速度に応じて判定用の時間または回数を可変値として制御することにより、被写体の移動速度に対応したレンズ駆動制御を実現する。
FIG. 9 is a graph showing a change in the defocus amount when the moving subject is imaged by the imaging device. The horizontal axis in FIG. 9 indicates time (seconds), and the vertical axis indicates the defocus amount ([Fδ]). This defocus amount is a value obtained by dividing the defocus amount calculated in units of mm by the F value that is the aperture value and the allowable confusion circle diameter δ, and thereby a value proportional to the amount of gain. It can be handled. For example, when the F value is 2.0 and δ is 0.02 mm, when the defocus amount is 1 mm, the blur amount can be quantitatively expressed as 25 [Fδ].
FIG. 9A shows a case where the subject is moving at a speed of 1 m / s. FIG. 9B shows a case where the subject is moving at a speed of 2 m / s. At the position of the inflection point in each graph, the drive of the focus lens is restarted and the tracking of the subject starts, so the absolute value of the defocus amount decreases again. In FIG. 9A and FIG. 9B, the determination time is set to the same value. Therefore, in the case of FIG. 9B, the absolute value of the maximum defocus amount at the time of starting movement at the restart is larger than that in the case of FIG. 9A. That is, it can be seen that the quality of the video is lowered.
Therefore, in the following embodiment, lens drive control corresponding to the movement speed of the subject is realized by controlling the time or number of determinations as a variable value according to the movement speed of the subject.

[実施例1]
本発明の第1実施形態に係る図10および図11を参照して、実施例1としての撮像装置を説明する。
[Example 1]
An imaging apparatus as Example 1 will be described with reference to FIGS. 10 and 11 according to the first embodiment of the present invention.

図10はAF制御の要部を説明するフローチャートである。以下の処理は、CPU121が実行するプログラムに従って撮像素子107、画像処理回路125、フォーカス駆動回路126を制御することで実現される焦点調節制御部が行う。   FIG. 10 is a flowchart for explaining a main part of the AF control. The following processing is performed by a focus adjustment control unit realized by controlling the image sensor 107, the image processing circuit 125, and the focus driving circuit 126 according to a program executed by the CPU 121.

図10のS1101で処理が開始し、S1102に進む。S1102にて、ある時刻tにおける像面移動速度を算出する場合、CPU121は、時刻tと、時刻tから時間を遡って過去n回の時刻(t−1、t−2・・、t−n)におけるデフォーカス量を取得する処理を実行する。過去のデフォーカス量の履歴についてはデータがメモリに記憶されている。次のS1103では、S1102で取得された現時点および過去n回分のデフォーカス量に基づいて直線近似(線形近似処理)が行われ、その傾きを算出することで像面移動速度V(Fδ/s)が取得される。この場合、デフォーカス量の取得回数nについては2以上の範囲で固定値または可変値とする。可変値の場合には、要求精度に応じて取得回数nを増減することで設定が随時に変更される。直線近似の際には、最小二乗法を用いることで算出の精度を向上させることができる。   The process starts in S1101 of FIG. 10 and proceeds to S1102. When calculating the image plane moving speed at a certain time t in S1102, the CPU 121 traces the time t and the previous n times (t−1, t−2,..., T−n) from the time t. ) To obtain the defocus amount. Data on the past defocus amount history is stored in the memory. In the next S1103, linear approximation (linear approximation processing) is performed based on the current and past n defocus amounts acquired in S1102, and the inclination is calculated to obtain the image plane moving speed V (Fδ / s). Is acquired. In this case, the defocus amount acquisition count n is set to a fixed value or a variable value within a range of 2 or more. In the case of a variable value, the setting is changed as needed by increasing or decreasing the number of acquisitions n according to the required accuracy. In the case of linear approximation, the calculation accuracy can be improved by using the least square method.

次にS1104に進み、像面移動速度Vの値に信頼性があるかどうかについて判定される。この判定では、S1103で得られた像面移動速度Vの値を、所定値Vmin(下限値)および所定値Vmax(上限値)と比較し、下限値以上であって上限値以下であるか否かが判定される。図11は像面移動速度の信頼性判定の範囲を示す図である。図11の横軸は時間を示し、縦軸はデフォーカス量を示す。右上がりの直線の傾斜が像面移動速度Vを表す。像面移動速度Vが所定値Vmin未満である場合には、被写体が移動している可能性が低い。例えば、被写体が少し揺れている場合(被写体の呼吸による前後動や、風で揺れている等)のように、むやみにフォーカスレンズの駆動を再起動させると、かえって映像の品位を低下させる可能性がある。また、像面移動速度Vが所定値Vmaxを超える場合でも、被写体が移動している可能性が低い場合がある。そのような場合としては、被写体が焦点検出枠から外れてしまっている場合、あるいは被写体の前を突然、別の物体が横切ったために急激に動いたと誤検出される場合などがある。このような状況に対して直ちに反応してフォーカスレンズの駆動が再起動された場合、映像の品位を低下させる可能性がある。本実施形態では、像面移動速度Vが第1の閾値以上(Vmin以上)であって、かつ第2の閾値以下(Vmax以下)であるという条件に関する判定処理を行う。判定の結果、当該条件を満たす場合には図10のS1105に処理を進め、当該条件を満たさない場合にはS1102に処理を戻す。   In step S1104, it is determined whether the value of the image plane moving speed V is reliable. In this determination, the value of the image plane moving speed V obtained in S1103 is compared with a predetermined value Vmin (lower limit value) and a predetermined value Vmax (upper limit value). Is determined. FIG. 11 is a diagram showing the range of reliability determination of the image plane moving speed. The horizontal axis in FIG. 11 indicates time, and the vertical axis indicates the defocus amount. The slope of the straight line rising to the right represents the image plane moving speed V. When the image plane moving speed V is less than the predetermined value Vmin, the possibility that the subject is moving is low. For example, if the subject is slightly shaken (for example, if the subject moves back and forth due to breathing, or if it is shaken by the wind), restarting the focus lens drive may cause the quality of the image to deteriorate. There is. Even when the image plane moving speed V exceeds the predetermined value Vmax, the possibility that the subject is moving may be low. As such a case, there are a case where the subject is out of the focus detection frame, or a case where it is erroneously detected that the subject has moved suddenly because another object has suddenly crossed in front of the subject. When the driving of the focus lens is restarted immediately in response to such a situation, there is a possibility that the quality of the image is lowered. In the present embodiment, a determination process is performed regarding a condition that the image plane moving speed V is equal to or higher than the first threshold (Vmin or higher) and equal to or lower than the second threshold (Vmax or lower). As a result of the determination, if the condition is satisfied, the process proceeds to S1105 in FIG. 10, and if the condition is not satisfied, the process returns to S1102.

S1105でCPU121はパンニング検出についての判定処理を実行する。撮影者が撮像装置のパンニング操作を行った際には、被写体が動かなくても像面移動速度Vの値が急激に変化する可能性がある。このため、その際のV値をフォーカスレンズ駆動の再起動のための判定に用いたのでは、誤ったレンズ駆動の発生が懸念される。そこで、S1105でCPU121は、振れ検出部130(図1参照)による振れ検出信号を取得して、パンニング動作が行われたか否かを判定する。パンニング動作が行われていないと判定された場合、S1106に処理を進める。パンニング動作が行われたと判定された場合には、像面移動速度Vを用いたフォーカスレンズ駆動の再起動を禁止し、S1102に戻って再度デフォーカス量が取得される。なお、撮影方向の変更動作としてパンニング動作を例示したが、チルティング動作の判定についても同様に行われる。チルティング動作が行われたことが判定された場合、像面移動速度Vを用いたフォーカスレンズ駆動の再起動が禁止される。   In step S1105, the CPU 121 executes determination processing for panning detection. When the photographer performs a panning operation of the imaging apparatus, the value of the image plane moving speed V may change abruptly even if the subject does not move. For this reason, if the V value at that time is used for the determination for restarting the focus lens drive, there is a concern that erroneous lens drive may occur. Therefore, in S1105, the CPU 121 acquires a shake detection signal from the shake detection unit 130 (see FIG. 1), and determines whether a panning operation has been performed. If it is determined that the panning operation has not been performed, the process proceeds to S1106. If it is determined that the panning operation has been performed, restart of the focus lens drive using the image plane moving speed V is prohibited, and the process returns to S1102 to acquire the defocus amount again. Although the panning operation is exemplified as the photographing direction changing operation, the determination of the tilting operation is similarly performed. When it is determined that the tilting operation has been performed, restart of the focus lens drive using the image plane moving speed V is prohibited.

S1106でCPU121は、求めた像面移動速度V(Fδ/s)を用いて、前記の判定用時間を決定する。具体的には本実施形態の場合、デフォーカス量について、撮像装置のフレームレート、つまり信号読み出し周期ごとに離散的なタイミングで取得を行っている。このため、デフォーカス量の検出回数により判定用時間を規定することができる。この場合、判定用時間はデフォーカス量の検出回数に比例する。したがってCPU121は像面移動速度Vに応じて、検出回数kを決定する。以下の表1を参照して、像面移動速度Vに応じた検出回数kが決定される。   In step S <b> 1106, the CPU 121 determines the determination time using the obtained image plane moving speed V (Fδ / s). Specifically, in the case of the present embodiment, the defocus amount is acquired at discrete timing for each frame rate of the imaging apparatus, that is, for each signal readout cycle. Therefore, the determination time can be defined by the number of detections of the defocus amount. In this case, the determination time is proportional to the number of times the defocus amount is detected. Therefore, the CPU 121 determines the detection count k according to the image plane moving speed V. With reference to Table 1 below, the number of detections k corresponding to the image plane moving speed V is determined.

Figure 2016156931
表1にて、「k4>k3>k2>k1」の関係であり、像面移動速度Vが大きいほど、検出回数kは小さく設定される。像面移動速度Vが小さい場合には、検出回数kの値が大きいので、ゆっくりした被写体の動きに対し、滑らかで信頼性の高いレンズ駆動を実現することができる。また、像面移動速度Vが大きい場合には、検出回数kの値が小さいので、速い被写体の動きに少しでも早く追いつくために素早くレンズ駆動を再起動させることができる。
Figure 2016156931
In Table 1, the relationship is “k4>k3>k2> k1”, and the larger the image plane moving speed V, the smaller the detection number k is set. When the image plane moving speed V is low, the value of the number of times of detection k is large, so that smooth and highly reliable lens driving can be realized with respect to slow movement of the subject. Further, when the image plane moving speed V is high, the value of the number of detections k is small, so that the lens drive can be restarted quickly in order to catch up with a fast subject movement as soon as possible.

S1107でCPU121はデフォーカス量の検出処理を実行した後、S1108に処理を進める。S1108でCPU121はデフォーカス量が所定の閾値を超えた回数をカウントし、回数がS1106で決定した検出回数kを超えたか否かを判定する。計測された回数が検出回数kを超えた場合、S1109に進み、計測された回数が検出回数k以下の場合には、S1107に戻ってデフォーカス量の検出処理を続行する。S1109でCPU121はフォーカスレンズの駆動を再起動させた後、S1110のリターン処理へ移行する。   In step S1107, the CPU 121 executes a defocus amount detection process, and then advances the process to step S1108. In step S1108, the CPU 121 counts the number of times that the defocus amount exceeds a predetermined threshold, and determines whether the number of times exceeds the number of detections k determined in step S1106. If the measured number exceeds the detection number k, the process proceeds to S1109. If the measured number is equal to or less than the detection number k, the process returns to S1107 to continue the defocus amount detection process. In step S1109, the CPU 121 restarts driving of the focus lens, and then proceeds to a return process in step S1110.

以上のように、被写体に合焦したと判断されてフォーカスレンズの駆動を停止した時点から再起動を行うか否かの判定に用いる判定用時間または回数が、デフォーカス量の時間的変化に応じて変更される。デフォーカス量の時間的変化とは、単位時間あたりのデフォーカス量の変化量であり、前記像面移動速度Vに相当する。判定用時間または回数はデフォーカス量の変化量が大きいほど小さい値に設定される。   As described above, the determination time or number of times used to determine whether to restart the focus lens when it is determined that the subject is in focus and the focus lens driving is stopped depends on the temporal change in the defocus amount. Changed. The temporal change of the defocus amount is a change amount of the defocus amount per unit time, and corresponds to the image plane moving speed V. The determination time or number of times is set to a smaller value as the defocus amount change amount is larger.

本実施形態では、前記のアルゴリズムを用いることによって、像面移動速度Vに応じてAF制御を安定に行えるとともに、素早い被写体の動きに追従可能なフォーカスレンズ駆動の再起動を実現できる。本実施形態によれば、動体(被写体)に対してその移動速度に対応した焦点調節制御を行うことで、暈けの少ない動画映像が得られるので、映像品位の低下を抑制できる。   In the present embodiment, by using the above-described algorithm, AF control can be stably performed according to the image plane moving speed V, and the focus lens driving can be restarted that can quickly follow the movement of the subject. According to the present embodiment, by performing focus adjustment control corresponding to the moving speed of a moving object (subject), a moving image with less blur can be obtained, so that deterioration in video quality can be suppressed.

[実施例2]
次に本発明の第2実施形態に係る図12および図13を参照して、実施例2としての撮像装置について説明する。第1実施形態においては、像面移動速度Vに応じてデフォーカス量の検出回数kを可変制御する例を説明したが、像面移動速度V以外の指標によっても、同様に安定した再起動判定を行うことが可能である。本実施形態では、所定の時間間隔ごとに取得したデフォーカス量の積算値を閾値と比較し、デフォーカス量の積算値が閾値を超えた場合にフォーカスレンズの駆動を再起動させる。なお、本実施形態において第1実施形態の場合と同じ構成要素については、既に使用した符号を用いることでそれらの詳細な説明を省略し、第1実施形態との相違点を中心に説明する。以下、図12を参照して本実施形態のアルゴリズムについて説明する。
[Example 2]
Next, an imaging apparatus as Example 2 will be described with reference to FIGS. 12 and 13 according to the second embodiment of the present invention. In the first embodiment, the example in which the defocus amount detection count k is variably controlled according to the image plane moving speed V has been described. However, the stable restart determination is similarly performed using an index other than the image plane moving speed V. Can be done. In the present embodiment, the integrated value of the defocus amount acquired at every predetermined time interval is compared with a threshold value, and when the integrated value of the defocus amount exceeds the threshold value, the driving of the focus lens is restarted. In addition, about the same component as the case of 1st Embodiment in this embodiment, those detailed description is abbreviate | omitted by using the code | symbol already used, and it demonstrates centering on difference with 1st Embodiment. Hereinafter, the algorithm of this embodiment will be described with reference to FIG.

図12のS1201で処理が開始し、次のS1202でCPU121は焦点検出動作を制御し、デフォーカス量(Def)を取得する。続いてS1203でCPU121は、S1202で取得したデフォーカス量を所定の閾値と比較し、デフォーカス量が所定の閾値以上であるか否かを判定する。これは、ノイズや被写体像の揺らぎの影響を蒙った検出値を判定に用いないようにするための処理である。S1203で所定の閾値以上のデフォーカス量であることが判定された場合、S1204に進む。デフォーカス量が所定の閾値未満であることが判定された場合には、S1202に戻る。   Processing starts in S1201 of FIG. 12, and in the next S1202, the CPU 121 controls the focus detection operation and acquires the defocus amount (Def). In step S1203, the CPU 121 compares the defocus amount acquired in step S1202 with a predetermined threshold value, and determines whether the defocus amount is equal to or greater than the predetermined threshold value. This is a process for preventing detection values affected by noise or fluctuations in the subject image from being used for determination. If it is determined in S1203 that the defocus amount is greater than or equal to the predetermined threshold, the process advances to S1204. If it is determined that the defocus amount is less than the predetermined threshold, the process returns to S1202.

S1204でCPU121はデフォーカス量の加算(積算)処理を行う。本実施形態ではデフォーカス量の総和を「sum」と記し、その初期値がゼロに設定されているものとする。S1204では、現時点までに加算されている総和sumに対して、S1202で取得されたデフォーカス量を加算する処理が実行され、S1205に処理を進める。S1205でCPU121は、S1204で計算したデフォーカス量の総和sumの値が、所定値(閾値)を超えたかどうかを判定する。総和sumの値が所定値を超えていない場合には、再度S1202に戻り、デフォーカス量の取得を続行する。また、総和sumの値が所定値を超えた場合には、S1206に処理を進める。S1206でCPU121はフォーカスレンズの駆動を再起動させた後、S1207のリターン処理へ移行する。   In step S1204, the CPU 121 performs defocus amount addition (integration) processing. In this embodiment, the sum of the defocus amounts is denoted as “sum”, and its initial value is set to zero. In S1204, a process of adding the defocus amount acquired in S1202 to the sum sum added up to the present time is executed, and the process proceeds to S1205. In step S1205, the CPU 121 determines whether the value of the sum of defocus amounts calculated in step S1204 exceeds a predetermined value (threshold value). If the value of the sum sum does not exceed the predetermined value, the process returns to S1202 again to continue acquiring the defocus amount. If the sum sum exceeds a predetermined value, the process advances to step S1206. In step S1206, the CPU 121 restarts the driving of the focus lens, and then proceeds to a return process in step S1207.

図13を参照して、前記処理について説明する。図13は被写体の移動速度の大きさが1m/sの場合と2m/sの場合に、それぞれ検出されたデフォーカス量の時間的変化を例示したグラフである。横軸は経過時間(秒)を示し、縦軸はデフォーカス量([Fδ])の総和を示す(D1からD3参照)。この例では、デフォーカス量の取得タイミングをT1からT4に示す。ここでは、図12のS1205で使用する所定値(閾値)をD2に設定した場合を想定する。図13のグラフ線g2に示すように、被写体が2m/sの速さで動いている場合、デフォーカス量の総和sumの値がD2を超えるまでには時間T2がかかる。これに対し、図13のグラフ線g1に示すように、被写体が1m/sの速さで動いている場合には、デフォーカス量の総和sumの値がD2を超えるまでには時間T4(>T2)がかかる。したがって、2m/sの速さで動く被写体に対しては時間T2の経過後にフォーカスレンズの駆動が再起動し、1m/sの速さで動く被写体に対しては時間T4の経過後にフォーカスレンズの駆動が再起動する。これにより、被写体の動きに応じたフォーカスレンズ駆動を実現することができる。
本実施形態による再起動判定処理およびフォーカスレンズ駆動を行うことで、安定した品位の動画映像を得ることができる。
The process will be described with reference to FIG. FIG. 13 is a graph illustrating the temporal change in the detected defocus amount when the moving speed of the subject is 1 m / s and 2 m / s. The horizontal axis indicates the elapsed time (seconds), and the vertical axis indicates the total defocus amount ([Fδ]) (see D1 to D3). In this example, the acquisition timing of the defocus amount is shown from T1 to T4. Here, it is assumed that the predetermined value (threshold value) used in S1205 in FIG. 12 is set to D2. As shown by the graph line g2 in FIG. 13, when the subject is moving at a speed of 2 m / s, it takes time T2 until the sum of the defocus amounts sum exceeds D2. On the other hand, as shown by the graph line g1 in FIG. 13, when the subject is moving at a speed of 1 m / s, the time T4 (>) until the sum sum of defocus amounts exceeds D2. T2) is required. Therefore, for the subject moving at a speed of 2 m / s, the driving of the focus lens is restarted after the elapse of time T2, and for the subject moving at a speed of 1 m / s, the focus lens is moved after the elapse of time T4. The drive restarts. Thereby, it is possible to realize the focus lens driving according to the movement of the subject.
By performing the restart determination process and the focus lens drive according to the present embodiment, it is possible to obtain a moving image with stable quality.

[その他の実施例]
前記実施例は本発明の実施する上での一例であって、本発明が前記実施例に限定されるものではない。例えば、前記実施例では、像面移動速度を算出するために、過去における複数回のデフォーカス量を記憶しておいて直線近似を行った。これに限らず、例えば被写体が加速中であることを検出した場合、直線近似ではなく多項式近似線を用いて像面移動速度の予測処理を行ってもよい。また、前記実施例では撮影者が任意に選んだ1点の焦点検出枠内でのアルゴリズムを中心に説明した。本発明は、複数点の焦点検出枠を用いる自動選択モードの場合にも適用することができ、また被写体の追尾機能と併用することも可能である。
[Other examples]
The said Example is an example on implementation of this invention, Comprising: This invention is not limited to the said Example. For example, in the above-described embodiment, in order to calculate the image plane moving speed, a linear approximation is performed by storing a plurality of past defocus amounts. For example, when it is detected that the subject is accelerating, the image plane movement speed prediction process may be performed using a polynomial approximation line instead of a linear approximation. In the above-described embodiment, the description has been made mainly on the algorithm within one focus detection frame arbitrarily selected by the photographer. The present invention can also be applied to an automatic selection mode using a plurality of focus detection frames, and can be used in combination with a subject tracking function.

105 第3レンズ群
107 撮像素子
121 CPU
124 撮像素子駆動回路
125 画像処理回路
126 フォーカス駆動回路
130 振れ検出部
201,202 焦点検出画素
105 Third lens group 107 Image sensor
121 CPU
124 Image sensor drive circuit 125 Image processing circuit 126 Focus drive circuit 130 Shake detection unit 201, 202 Focus detection pixel

Claims (11)

結像光学系の異なる瞳部分領域をそれぞれ通過する光束を受光する複数の焦点検出画素を有する撮像素子と、
前記複数の焦点検出画素の出力信号を用いて焦点検出を行う焦点検出手段と、
前記焦点検出手段により検出される検出量を用いて、前記結像光学系を構成するレンズの駆動を制御することで焦点調節制御を行う制御手段と、を備え、
前記制御手段は、被写体に合焦したと判断した場合に前記レンズの駆動を停止した時点から、再起動を行うか否かを判定する際に用いる判定用の時間または回数を、前記焦点検出手段により検出される検出量の時間的変化が大きいほど小さく設定し、前記検出量が閾値を超えている時間または回数が、前記判定用の時間または回数を超えた場合に前記レンズの駆動を再起動させる制御を行うことを特徴とする撮像装置。
An imaging device having a plurality of focus detection pixels that receive light beams respectively passing through different pupil partial regions of the imaging optical system;
Focus detection means for performing focus detection using output signals of the plurality of focus detection pixels;
Control means for performing focus adjustment control by controlling the driving of the lens constituting the imaging optical system using the detection amount detected by the focus detection means,
The control means determines the time or number of times used for determination when determining whether or not to restart from the time when driving of the lens is stopped when it is determined that the subject is in focus. The smaller the change in the detection amount detected by the step, the smaller the setting, and when the time or number of times the detection amount exceeds the threshold exceeds the determination time or number of times, the lens drive is restarted. An imaging apparatus characterized by performing control to be performed.
前記制御手段は、前記焦点検出手段により検出される検出量の時間的変化から被写体の像面移動速度を算出し、前記判定用の時間または回数を、前記像面移動速度が大きいほど小さく設定することを特徴とする請求項1に記載の撮像装置。   The control unit calculates the image plane moving speed of the subject from the temporal change in the detection amount detected by the focus detecting unit, and sets the determination time or number to be smaller as the image plane moving speed increases. The imaging apparatus according to claim 1. 前記制御手段は、前記像面移動速度を、その下限値および上限値と比較し、前記像面移動速度が前記下限値以上であって、かつ前記上限値以下である場合、前記判定用の時間または回数を変更することを特徴とする請求項2に記載の撮像装置。   The control means compares the image plane moving speed with a lower limit value and an upper limit value, and when the image plane moving speed is equal to or higher than the lower limit value and equal to or lower than the upper limit value, the time for determination is determined. The imaging device according to claim 2, wherein the number of times is changed. 前記制御手段は、前記撮像装置の振れ検出信号を取得し、撮影方向を変更する動作が検出された場合、前記判定用の時間または回数を変更せず、撮影方向を変更する動作が検出されない場合、前記判定用の時間または回数を変更することを特徴とする請求項2または3に記載の撮像装置。   When the control means acquires a shake detection signal of the imaging apparatus and detects an operation for changing the shooting direction, the operation for changing the shooting direction is not detected without changing the time or number of times for the determination. The imaging apparatus according to claim 2, wherein the determination time or the number of times is changed. 結像光学系の異なる瞳部分領域をそれぞれ通過する光束を受光する複数の焦点検出画素を有する撮像素子と、
前記複数の焦点検出画素の出力信号を用いて焦点検出を行う焦点検出手段と、
前記焦点検出手段により検出される検出量を用いて、前記結像光学系を構成するレンズの駆動を制御することで焦点調節制御を行う制御手段と、を備え、
前記制御手段は、被写体に合焦したと判断した場合に前記レンズの駆動を停止した時点から、前記焦点検出手段により検出される検出量を積算し、積算値が閾値を超えた場合に前記レンズの駆動を再起動させる制御を行うことを特徴とする撮像装置。
An imaging device having a plurality of focus detection pixels that receive light beams respectively passing through different pupil partial regions of the imaging optical system;
Focus detection means for performing focus detection using output signals of the plurality of focus detection pixels;
Control means for performing focus adjustment control by controlling the driving of the lens constituting the imaging optical system using the detection amount detected by the focus detection means,
The control means integrates the detection amount detected by the focus detection means from the time when driving of the lens is stopped when it is determined that the subject is in focus, and when the integrated value exceeds a threshold, the lens An image pickup apparatus that performs control to restart the driving of the image pickup apparatus.
前記制御手段は、前記焦点検出手段により検出される検出量を閾値と比較し、前記検出量が閾値以上である場合に積算を行うことを特徴とする請求項5に記載の撮像装置。   The imaging apparatus according to claim 5, wherein the control unit compares the detection amount detected by the focus detection unit with a threshold value, and performs integration when the detection amount is equal to or greater than the threshold value. 前記検出量は、撮影時における前記結像光学系の絞り値および許容錯乱円径を用いて正規化されたデフォーカス量であることを特徴とする請求項1から6のいずれか1項に記載の撮像装置。   7. The detection amount according to claim 1, wherein the detection amount is a defocus amount normalized using an aperture value and an allowable confusion circle diameter of the imaging optical system at the time of photographing. Imaging device. 前記撮像素子の画素部は、
入射光を集光するマイクロレンズと、
前記結像光学系の第1瞳部分領域を通過する光束を受光する第1焦点検出画素と、
前記第1瞳部分領域とは異なる、前記結像光学系の第2瞳部分領域を通過する光束を受光する第2焦点検出画素と、
前記第1瞳部分領域と前記第2瞳部分領域を含む瞳領域を通過する光束を受光する撮像画素と、を備えることを特徴とする請求項1から7のいずれか1項に記載の撮像装置。
The pixel portion of the image sensor is
A microlens that collects incident light;
A first focus detection pixel that receives a light beam passing through a first pupil partial region of the imaging optical system;
A second focus detection pixel that receives a light flux that passes through the second pupil partial region of the imaging optical system, different from the first pupil partial region;
The imaging device according to claim 1, further comprising: an imaging pixel that receives a light beam passing through a pupil region including the first pupil partial region and the second pupil partial region. .
前記撮像素子の出力信号を取得して動画像データを処理する画像処理手段を備えることを特徴とする請求項1から8のいずれか1項に記載の撮像装置。   The image pickup apparatus according to claim 1, further comprising an image processing unit that acquires an output signal of the image pickup element and processes moving image data. 結像光学系の異なる瞳部分領域をそれぞれ通過する光束を受光する複数の焦点検出画素を有する撮像素子と、
前記複数の焦点検出画素の出力信号を用いて焦点検出を行う焦点検出手段と、
前記焦点検出手段により検出される検出量を用いて、前記結像光学系を構成するレンズの駆動を制御することで焦点調節制御を行う制御手段と、を備える撮像装置にて実行される制御方法であって、
前記制御手段が、
被写体に合焦したと判断した場合に前記レンズの駆動を停止した時点から、再起動を行うか否かを判定する際に用いる判定用の時間または回数を、前記焦点検出手段により検出される検出量の時間的変化が大きいほど小さく設定するステップと、
前記検出量が閾値を超えている時間または回数が、前記判定用の時間または回数を超えた場合に前記レンズの駆動を再起動させる制御を行うステップを有することを特徴とする撮像装置の制御方法。
An imaging device having a plurality of focus detection pixels that receive light beams respectively passing through different pupil partial regions of the imaging optical system;
Focus detection means for performing focus detection using output signals of the plurality of focus detection pixels;
A control method executed by an imaging apparatus, comprising: a control unit that performs focus adjustment control by controlling driving of a lens constituting the imaging optical system using a detection amount detected by the focus detection unit. Because
The control means is
Detection by which the focus detection means detects the time or number of times used for determining whether to restart after the lens driving is stopped when it is determined that the subject is in focus A step of setting a smaller value as the temporal change of the amount is larger;
A control method for an imaging apparatus, comprising: a step of performing control to restart driving of the lens when the time or number of times that the detection amount exceeds a threshold exceeds the time or number of times for determination .
結像光学系の異なる瞳部分領域をそれぞれ通過する光束を受光する複数の焦点検出画素を有する撮像素子と、
前記複数の焦点検出画素の出力信号を用いて焦点検出を行う焦点検出手段と、
前記焦点検出手段により検出される検出量を用いて、前記結像光学系を構成するレンズの駆動を制御することで焦点調節制御を行う制御手段と、を備える撮像装置にて実行される制御方法であって、
前記制御手段が、被写体に合焦したと判断した場合に前記レンズの駆動を停止した時点から、
前記焦点検出手段により検出される検出量を積算するステップと、
前記検出量の積算値が閾値を超えた場合に前記レンズの駆動を再起動させる制御を行うステップを有することを特徴とする撮像装置の制御方法。








An imaging device having a plurality of focus detection pixels that receive light beams respectively passing through different pupil partial regions of the imaging optical system;
Focus detection means for performing focus detection using output signals of the plurality of focus detection pixels;
A control method executed by an imaging apparatus, comprising: a control unit that performs focus adjustment control by controlling driving of a lens constituting the imaging optical system using a detection amount detected by the focus detection unit. Because
From the time when the driving of the lens is stopped when the control means determines that the subject is in focus,
Integrating the detection amount detected by the focus detection means;
A control method for an imaging apparatus, comprising: a step of performing control to restart driving of the lens when an integrated value of the detection amount exceeds a threshold value.








JP2015034150A 2015-02-24 2015-02-24 Imaging apparatus and control method thereof Expired - Fee Related JP6415350B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2015034150A JP6415350B2 (en) 2015-02-24 2015-02-24 Imaging apparatus and control method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2015034150A JP6415350B2 (en) 2015-02-24 2015-02-24 Imaging apparatus and control method thereof

Publications (2)

Publication Number Publication Date
JP2016156931A true JP2016156931A (en) 2016-09-01
JP6415350B2 JP6415350B2 (en) 2018-10-31

Family

ID=56826019

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2015034150A Expired - Fee Related JP6415350B2 (en) 2015-02-24 2015-02-24 Imaging apparatus and control method thereof

Country Status (1)

Country Link
JP (1) JP6415350B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2021086139A (en) * 2019-11-29 2021-06-03 キヤノン株式会社 Control device and control method thereof

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04277983A (en) * 1991-03-06 1992-10-02 Matsushita Electric Ind Co Ltd Image pickup device
JPH05297264A (en) * 1992-04-16 1993-11-12 Canon Inc Automatic focusing device
JPH0777649A (en) * 1993-06-30 1995-03-20 Canon Inc Image pickup device
JPH08271784A (en) * 1995-03-30 1996-10-18 Canon Inc Optical instrument with function of detecting line of sight
JPH09281382A (en) * 1996-04-15 1997-10-31 Nikon Corp Moving body deciding device and focusing device provided therewith
JP2003107325A (en) * 2001-09-28 2003-04-09 Nikon Corp Camera
JP2006208818A (en) * 2005-01-28 2006-08-10 Sony Corp Focus controller and focus control method
JP2008160315A (en) * 2006-12-21 2008-07-10 Olympus Imaging Corp Imaging device
JP2013025134A (en) * 2011-07-22 2013-02-04 Nikon Corp Focus adjustment device and imaging apparatus
JP2014215476A (en) * 2013-04-25 2014-11-17 キヤノン株式会社 Imaging apparatus and method for controlling the same

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04277983A (en) * 1991-03-06 1992-10-02 Matsushita Electric Ind Co Ltd Image pickup device
JPH05297264A (en) * 1992-04-16 1993-11-12 Canon Inc Automatic focusing device
JPH0777649A (en) * 1993-06-30 1995-03-20 Canon Inc Image pickup device
JPH08271784A (en) * 1995-03-30 1996-10-18 Canon Inc Optical instrument with function of detecting line of sight
JPH09281382A (en) * 1996-04-15 1997-10-31 Nikon Corp Moving body deciding device and focusing device provided therewith
JP2003107325A (en) * 2001-09-28 2003-04-09 Nikon Corp Camera
JP2006208818A (en) * 2005-01-28 2006-08-10 Sony Corp Focus controller and focus control method
JP2008160315A (en) * 2006-12-21 2008-07-10 Olympus Imaging Corp Imaging device
JP2013025134A (en) * 2011-07-22 2013-02-04 Nikon Corp Focus adjustment device and imaging apparatus
JP2014215476A (en) * 2013-04-25 2014-11-17 キヤノン株式会社 Imaging apparatus and method for controlling the same

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2021086139A (en) * 2019-11-29 2021-06-03 キヤノン株式会社 Control device and control method thereof
JP7433868B2 (en) 2019-11-29 2024-02-20 キヤノン株式会社 Control device and its control method

Also Published As

Publication number Publication date
JP6415350B2 (en) 2018-10-31

Similar Documents

Publication Publication Date Title
US8654227B2 (en) Focus detection apparatus, focus detection method, and image sensing apparatus
US8477233B2 (en) Image capturing apparatus
US10244159B2 (en) Image capturing apparatus and control method thereof
US7920781B2 (en) Image capturing apparatus and control method therefor
US8804027B2 (en) Imaging apparatus
US8159599B2 (en) Focus detection apparatus, focus detection method, and image sensing apparatus
JP5898481B2 (en) Imaging apparatus and focus detection method
JP6249825B2 (en) Imaging device, control method thereof, and control program
JP5159520B2 (en) Imaging apparatus, automatic focus detection apparatus, and control method thereof
JP7156352B2 (en) IMAGING DEVICE, IMAGING METHOD, AND PROGRAM
US11375101B2 (en) Image capturing apparatus, control method thereof, and storage medium
JP7007871B2 (en) Imaging device and its control method, program, storage medium
US9325897B2 (en) Image capture apparatus with automatic focus detection and method for controlling the same
JP5609232B2 (en) Imaging device
JP2012220790A (en) Imaging apparatus
JP6482247B2 (en) FOCUS ADJUSTMENT DEVICE, IMAGING DEVICE, FOCUS ADJUSTMENT DEVICE CONTROL METHOD, AND PROGRAM
JP6415350B2 (en) Imaging apparatus and control method thereof
JP7019337B2 (en) Image stabilization device, lens device and their control method
JP6576155B2 (en) Image processing apparatus, imaging apparatus, and image display system
JP2020134859A (en) Imaging device
JP6628510B2 (en) Focus adjustment device control device, imaging device, focus adjustment device control method, program, and storage medium
US20240196089A1 (en) Detecting apparatus, image pickup apparatus, and detecting method
JP7005209B2 (en) Image pickup device and its control method
JP2020067489A (en) Imaging apparatus and control method for the same
JP6254780B2 (en) Focus detection apparatus and method, and imaging apparatus

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20180105

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20180731

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20181002

R151 Written notification of patent or utility model registration

Ref document number: 6415350

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

LAPS Cancellation because of no payment of annual fees