JP2020003672A - Imaging apparatus, accessory device, and control method thereof - Google Patents

Imaging apparatus, accessory device, and control method thereof Download PDF

Info

Publication number
JP2020003672A
JP2020003672A JP2018123625A JP2018123625A JP2020003672A JP 2020003672 A JP2020003672 A JP 2020003672A JP 2018123625 A JP2018123625 A JP 2018123625A JP 2018123625 A JP2018123625 A JP 2018123625A JP 2020003672 A JP2020003672 A JP 2020003672A
Authority
JP
Japan
Prior art keywords
focus detection
focus
defocus amount
light emission
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
JP2018123625A
Other languages
Japanese (ja)
Other versions
JP7195783B2 (en
Inventor
暁彦 上田
Akihiko Ueda
暁彦 上田
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 JP2018123625A priority Critical patent/JP7195783B2/en
Publication of JP2020003672A publication Critical patent/JP2020003672A/en
Application granted granted Critical
Publication of JP7195783B2 publication Critical patent/JP7195783B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

To reduce a probability that focus detection using auxiliary light is unsuccessful.SOLUTION: An imaging apparatus 100 performs the focus detection by using output from an imaging element 14 for capturing a subject image formed by an imaging optical system. When performing the focus detection, while driving a focus element, light-emitting means 48 is caused to start intermittent light emission according to the fact that a detection defocus amount obtained by the focus detection becomes a light emission start defocus amount. The light emission start defocus amount is set according to at least one of the focal distance of the imaging optical system and the drive speed of the focus element.SELECTED DRAWING: Figure 1

Description

本発明は、撮像素子と補助光を用いて焦点検出を行う撮像装置等に関する。   The present invention relates to an imaging device and the like that performs focus detection using an imaging element and auxiliary light.

撮像素子を用いた、いわゆる撮像面位相差方式で焦点検出を行う撮像装置が特許文献1に開示されている。また、特許文献2には、被写体が暗い等、焦点検出が困難な場合に、被写体に向けて補助光を発光して焦点検出を行う方法が開示されている。   Patent Document 1 discloses an imaging apparatus that performs focus detection using a so-called imaging plane phase difference method using an imaging element. Patent Document 2 discloses a method of performing focus detection by emitting auxiliary light toward a subject when focus detection is difficult, such as when the subject is dark.

特開2014−182360号公報JP 2014-182360 A 特開平6‐94988号公報JP-A-6-94988

しかしながら、補助光を用いて焦点検出を行う場合には、補助光が被写体に向けて照射されている間にのみ焦点検出が可能となる。このため、補助光を発光したにもかかわらず、何らかの原因で焦点検出が行えなかった(不成功となった)場合には、補助光を再度発光して焦点検出をやり直す必要がある。特に、特許文献1にて開示されているように、複数の画素のそれぞれに対の光電変換部を有する撮像素子を用いて撮像面位相差検出方式により焦点検出を行う場合には、対の光電変換部間の基線長が短いために検出可能なデフォーカス量が小さくなる傾向がある。このため、補助光を用いても焦点検出が不成功となる可能性が高い。   However, when the focus detection is performed using the auxiliary light, the focus detection can be performed only while the auxiliary light is applied to the subject. For this reason, if the focus detection cannot be performed for some reason (unsuccessful) despite the emission of the auxiliary light, it is necessary to emit the auxiliary light again and perform the focus detection again. In particular, as disclosed in Patent Document 1, when focus detection is performed by an imaging surface phase difference detection method using an imaging element having a pair of photoelectric conversion units in each of a plurality of pixels, a pair of photoelectric conversion units is used. Since the base line length between the conversion units is short, the detectable defocus amount tends to be small. For this reason, even if the auxiliary light is used, the focus detection is likely to be unsuccessful.

本発明は、補助光を用いた焦点検出を行う際に、焦点検出が不成功となる確率を少なくすることができるようにした撮像装置等を提供する。   The present invention provides an imaging apparatus and the like that can reduce the probability of unsuccessful focus detection when performing focus detection using auxiliary light.

本発明の一側面としての撮像装置は、撮像光学系により形成される被写体像を撮像する撮像素子と、撮像素子からの出力を用いて焦点検出を行う焦点検出手段と、焦点検出手段の制御、焦点検出の結果に応じたフォーカス素子の駆動の制御および被写体を照明する発光手段の制御を行う制御手段とを有する。制御手段は、フォーカス素子を駆動しながら焦点検出手段に焦点検出を行わせる際に、該焦点検出により得られた検出デフォーカス量が発光開始デフォーカス量になることに応じて発光手段に間欠発光を開始させる。発光開始デフォーカス量を、撮像光学系の焦点距離および前記フォーカス素子の駆動速度のうち少なくとも1つに応じて設定することを特徴とする。   An imaging device according to one aspect of the present invention includes an imaging element that captures a subject image formed by an imaging optical system, a focus detection unit that performs focus detection using an output from the imaging element, and control of the focus detection unit. And control means for controlling the driving of the focus element according to the result of the focus detection and for controlling the light emitting means for illuminating the subject. When the control means causes the focus detection means to perform focus detection while driving the focus element, the control means causes the light emission means to perform intermittent light emission in response to the detected defocus amount obtained by the focus detection becoming the light emission start defocus amount. To start. The light emission start defocus amount is set according to at least one of a focal length of an imaging optical system and a driving speed of the focus element.

また、本発明の他の一側面としての撮像装置は、撮像光学系により形成される被写体像を撮像する撮像素子と、撮像素子からの出力を用いて焦点検出を行う焦点検出手段と、焦点検出手段の制御、焦点検出の結果に応じたフォーカス素子の駆動の制御および被写体を照明する発光手段の制御を行う制御手段とを有する。制御手段は、フォーカス素子を駆動しながら焦点検出手段に焦点検出を行わせる際に、該焦点検出により得られた検出デフォーカス量が発光間隔デフォーカス量だけ変化するごとに発光させるように発光手段を間欠発光させる。発光間隔デフォーカス量を、フォーカス素子の駆動速度、検出デフォーカス量、発光手段の間欠発光回数および撮像素子の駆動するフレームレートのうち少なくとも1つに応じて設定することを特徴とする。   According to another aspect of the present invention, there is provided an imaging apparatus that captures a subject image formed by an imaging optical system, a focus detection unit that performs focus detection using an output from the imaging element, and a focus detection unit. Control means for controlling the means, controlling the driving of the focus element according to the result of focus detection, and controlling the light emitting means for illuminating the subject. The control means controls the focus detection means to perform focus detection while driving the focus element, and emits light every time the detected defocus amount obtained by the focus detection changes by the light emission interval defocus amount. To emit light intermittently. The light emitting interval defocus amount is set according to at least one of a driving speed of the focus element, a detected defocus amount, the number of intermittent light emission of the light emitting unit, and a frame rate at which the imaging element is driven.

また、本発明の他の一側面としての制御方法は、撮像光学系により形成される被写体像を撮像する撮像素子を有し、撮像素子からの出力を用いて焦点検出を行い、該焦点検出の結果に応じたフォーカス素子の駆動の制御および被写体を照明する発光手段の制御を行う撮像装置に適用される。該制御方法は、フォーカス素子を駆動しながら焦点検出を行うステップと、焦点検出において、該焦点検出により得られた検出デフォーカス量が発光開始デフォーカス量になることに応じて発光手段に間欠発光を開始させるステップとを有する。発光開始デフォーカス量を、撮像光学系の焦点距離およびフォーカス素子の駆動速度のうち少なくとも1つに応じて設定することを特徴とする。   Further, a control method according to another aspect of the present invention includes an imaging device that captures a subject image formed by an imaging optical system, performs focus detection using an output from the imaging device, and performs focus detection. The present invention is applied to an imaging apparatus that controls driving of a focus element and control of a light emitting unit that illuminates a subject according to a result. The control method includes the steps of: performing focus detection while driving the focus element; and performing intermittent light emission by the light emitting unit in response to the detected defocus amount obtained by the focus detection becoming the light emission start defocus amount in the focus detection. Is started. The light emission start defocus amount is set according to at least one of the focal length of the imaging optical system and the driving speed of the focus element.

また、焦点検出において、該焦点検出により得られた検出デフォーカス量が発光間隔デフォーカス量だけ変化するごとに発光させるように発光手段を間欠発光させるステップを有する制御方法において、発光間隔デフォーカス量を、フォーカス素子の駆動速度、検出デフォーカス量、発光手段の間欠発光回数および撮像素子の駆動するフレームレートのうち少なくとも1つに応じて設定することを特徴とする。
なお、撮像装置のコンピュータに、上記制御方法に従う処理を実行させるコンピュータ
プログラムとしての制御プログラムも、本発明の他の一側面を構成する。
Further, in the focus detection, the control method includes a step of intermittently illuminating the light emitting means so as to emit light every time the detected defocus amount obtained by the focus detection changes by the light emission interval defocus amount. Is set according to at least one of the driving speed of the focus element, the detected defocus amount, the number of intermittent light emission of the light emitting unit, and the frame rate at which the imaging element is driven.
Note that a control program as a computer program that causes a computer of the imaging apparatus to execute a process according to the control method also constitutes another aspect of the present invention.

本発明によれば、補助光を用いた焦点検出が不成功となる確率を少なくすることができる。   According to the present invention, the probability that the focus detection using the auxiliary light is unsuccessful can be reduced.

本発明の実施例1である撮像装置の構成を示すブロック図。FIG. 1 is a block diagram illustrating a configuration of an imaging device that is Embodiment 1 of the present invention. 実施例1の撮像装置に用いられる撮像素子の画素および画素配列を示す図。FIG. 2 is a diagram illustrating pixels and a pixel array of an imaging element used in the imaging device according to the first embodiment. 実施例1の撮像装置における撮像光学系の射出瞳面と撮像素子の光電変換部 との共役関係を説明する図。FIG. 3 is a diagram illustrating a conjugate relationship between an exit pupil plane of an imaging optical system and a photoelectric conversion unit of an imaging element in the imaging apparatus according to the first embodiment. 実施例1において撮像範囲内に設けられた焦点検出領域を示す図。FIG. 3 is a diagram illustrating a focus detection area provided in an imaging range in the first embodiment. 実施例1における焦点検出領域内で取得された対の位相差像信号を示す図。FIG. 4 is a diagram illustrating a pair of phase difference image signals acquired in a focus detection area according to the first embodiment. 実施例1における撮像処理を示すフローチャート。5 is a flowchart illustrating an imaging process according to the first embodiment. 実施例1における焦点調節処理を示すフローチャート。5 is a flowchart illustrating focus adjustment processing according to the first embodiment. 実施例1におけるフォーカスレンズの初期位置への駆動を説明する図。FIG. 4 is a diagram illustrating driving of a focus lens to an initial position according to the first embodiment. 実施例1における焦点検出可能なデフォーカス量情報のテーブルを示す図。FIG. 4 is a diagram illustrating a table of defocus amount information that enables focus detection in the first embodiment. 実施例1における撮像処理を示すフローチャートである。6 is a flowchart illustrating an imaging process according to the first embodiment. 実施例1におけるAF補助光の発光要否判定処理を示すフローチャート。6 is a flowchart illustrating a process of determining whether or not to emit AF auxiliary light according to the first embodiment. 実施例1におけるLED補助光発光時の焦点調節処理を示すフローチャー ト。7 is a flowchart illustrating a focus adjustment process when the LED auxiliary light is emitted according to the first embodiment. 実施例1におけるLED補助光および閃光補助光の発光時の焦点調節処理を示すフローチャート。9 is a flowchart illustrating focus adjustment processing when the LED auxiliary light and the flash auxiliary light are emitted according to the first embodiment. 実施例1における被写体有無判定処理を示すフローチャート。7 is a flowchart illustrating a subject presence / absence determination process according to the first embodiment. 実施例1における閃光補助光発光時の焦点調節処理を示すフローチャート。6 is a flowchart illustrating focus adjustment processing when flash assist light is emitted in the first embodiment. 実施例1における閃光補助光発光時の焦点調節処理を示すフローチャート。6 is a flowchart illustrating focus adjustment processing when flash assist light is emitted in the first embodiment. 実施例1における閃光発光時の焦点検出/調光処理を示すフローチャート。5 is a flowchart illustrating focus detection / light control processing at the time of flash light emission according to the first embodiment. 実施例1におけるレンズ駆動中の閃光発光の条件設定処理を示すフローチ ャート。5 is a flowchart showing a flash light emission condition setting process during driving of the lens according to the first embodiment. 実施例1におけるレンズ駆動中の閃光発光および焦点検出処理を示すフロ ーチャート。6 is a flowchart showing flash light emission and focus detection processing during lens driving according to the first embodiment. 本発明の実施例2におけるレンズ駆動中の閃光発光の条件設定処理を示すフローチャート。9 is a flowchart illustrating a flash light emission condition setting process during driving of the lens according to the second embodiment of the present invention. 本発明の実施例3におけるレンズ駆動中の閃光発光の条件設定処理を示すフローチャート。9 is a flowchart illustrating a flash light emission condition setting process during driving of a lens according to a third embodiment of the present invention. 実施例3におけるレンズ駆動中の閃光発光および焦点検出処理を示すフロ ーチャート。9 is a flowchart showing flash light emission and focus detection processing during lens driving in a third embodiment.

以下、本発明の実施例について図面を参照しながら説明する。   Hereinafter, embodiments of the present invention will be described with reference to the drawings.

図1は、撮像レンズ(交換レンズ)300と、該撮像レンズ300が交換(着脱)可能に装着された撮像装置としてのカメラ本体(以下、単にカメラ本体という)100とにより構成されるカメラシステムの構成を示す。まず、カメラ100の構成について説明する。   FIG. 1 shows a camera system including an imaging lens (interchangeable lens) 300 and a camera body (hereinafter, simply referred to as a camera body) 100 as an imaging apparatus in which the imaging lens 300 is exchangeably (removably) mounted. The configuration is shown. First, the configuration of the camera 100 will be described.

カメラ100のカメラマウント106には、撮像レンズ300のレンズマウント306が機械的および電気的に着脱可能に装着される。カメラマウント106およびレンズマウント306には、撮像レンズ300をカメラ100と電気的に接続する電気接点部としてのコネクタ122,322が設けられている。   The lens mount 306 of the imaging lens 300 is mechanically and electrically detachably mounted on the camera mount 106 of the camera 100. The camera mount 106 and the lens mount 306 are provided with connectors 122 and 322 as electrical contacts for electrically connecting the imaging lens 300 to the camera 100.

被写体から撮像レンズ300に入射して該撮像レンズ300内の撮像光学系を通過した光束は、メインミラー130により上方へ反射されて光学ファインダ104に入射する。ユーザは、光学ファインダ104を通して被写体の光学像である被写体像を観察しながら撮像を行うことができる。光学ファインダ104内には後述する表示部54の一部が設けられており、該表示部54は焦点検出領域、合焦状態、手振れ警告、絞り値および露出補正値が表示される。   A light beam that enters the imaging lens 300 from a subject and passes through the imaging optical system in the imaging lens 300 is reflected upward by the main mirror 130 and enters the optical finder 104. The user can take an image while observing the subject image, which is an optical image of the subject, through the optical viewfinder 104. A part of a display unit 54 described later is provided in the optical finder 104, and the display unit 54 displays a focus detection area, a focused state, a camera shake warning, an aperture value, and an exposure correction value.

メインミラー130は、ハーフミラーにより構成されている。撮像光路内に配置されたメインミラー130に入射した光束の一部は該メインミラー130を通過して、その背後に設けられたサブミラー131により下方へ反射されて焦点検出ユニット105に入射する。   The main mirror 130 is constituted by a half mirror. A part of the light beam incident on the main mirror 130 disposed in the imaging optical path passes through the main mirror 130, is reflected downward by the sub-mirror 131 provided behind the main mirror 130, and enters the focus detection unit 105.

焦点検出ユニット105は、2次結像光学系と光電変換素子とにより構成され、位相差検出方式による焦点検出を行う。焦点検出ユニット105は、2次結像光学系により形成された一対の被写体像をラインセンサ等の光電変換素子により電気信号(一対の焦点検出信号としての位相差像信号)に変換してAF(オートフォーカス)部42に送る。AF部42は、この一対の位相差像信号間のずれ量である位相差を算出する。焦点検出ユニット105とAF部42とにより焦点検出手段が構成される。   The focus detection unit 105 includes a secondary imaging optical system and a photoelectric conversion element, and performs focus detection by a phase difference detection method. The focus detection unit 105 converts a pair of subject images formed by the secondary imaging optical system into an electric signal (a phase difference image signal as a pair of focus detection signals) by a photoelectric conversion element such as a line sensor and performs AF ( (Auto focus) unit 42. The AF unit 42 calculates a phase difference which is a shift amount between the pair of phase difference image signals. The focus detection unit 105 and the AF unit 42 constitute a focus detection unit.

制御手段としてのシステム制御部50は、算出された位相差から焦点検出結果としてのデフォーカス量を算出する。フォーカス制御部342は、該デフォーカス量が小さくなるように撮像光学系に含まれるフォーカスレンズ(フォーカス素子)311を光軸方向に移動させる焦点調節処理を行う。本実施例では、撮像光学系内のフォーカスレンズ311を移動させて焦点調節を行うが、後述する撮像素子14をフォーカス素子として光軸方向に移動させて焦点調節を行うことも可能である。   The system control unit 50 as a control unit calculates a defocus amount as a focus detection result from the calculated phase difference. The focus control unit 342 performs a focus adjustment process of moving a focus lens (focus element) 311 included in the imaging optical system in the optical axis direction so as to reduce the defocus amount. In this embodiment, the focus adjustment is performed by moving the focus lens 311 in the imaging optical system. However, it is also possible to perform the focus adjustment by moving the image sensor 14 described later as a focus element in the optical axis direction.

一方、撮像レンズ300の焦点調節処理が終了して静止画、電子ファインダ画像または動画の撮像を行う場合には、不図示のクイックリターン機構によりメインミラー130とサブミラー131を撮像光束外に退避させる。これにより、撮像レンズ300からの光束は、露光量を制御するためのシャッター12を介して撮像素子14に入射する。撮像素子14は、CMOSセンサ等の光電変換素子により構成され、撮像レンズ300からの光束により形成された被写体像を撮像(光電変換)する。撮像が終了すると、メインミラー130とサブミラー131は撮像光路内に戻される。   On the other hand, when a still image, an electronic finder image, or a moving image is captured after the focus adjustment processing of the imaging lens 300 ends, the main mirror 130 and the sub mirror 131 are retracted out of the imaging light beam by a quick return mechanism (not shown). Thereby, the light beam from the imaging lens 300 enters the imaging device 14 via the shutter 12 for controlling the exposure amount. The imaging element 14 is configured by a photoelectric conversion element such as a CMOS sensor, and captures (photoelectric conversion) a subject image formed by a light beam from the imaging lens 300. When the imaging is completed, the main mirror 130 and the sub mirror 131 are returned to the imaging optical path.

撮像素子14での光電変換により生成された電気信号(アナログ撮像信号)は、A/D変換器16にてデジタル撮像信号に変換される。タイミング発生部18は、メモリ制御部22およびシステム制御部50により制御されて撮像素子14、A/D変換器16およびD/A変換器26にクロック信号や制御信号を供給する。画像処理部20は、A/D変換器16またはメモリ制御部22からのデジタル撮像信号に対して画素補間処理や色変換処理等の画像処理を行って画像データを生成する。画像処理部20は、生成した画像データを用いて各種演算処理を行う。   The electric signal (analog image signal) generated by the photoelectric conversion in the image sensor 14 is converted into a digital image signal by the A / D converter 16. The timing generation unit 18 is controlled by the memory control unit 22 and the system control unit 50 to supply a clock signal and a control signal to the image sensor 14, the A / D converter 16, and the D / A converter 26. The image processing unit 20 performs image processing such as pixel interpolation processing and color conversion processing on the digital imaging signal from the A / D converter 16 or the memory control unit 22 to generate image data. The image processing unit 20 performs various arithmetic processes using the generated image data.

撮像素子14は、その全画素または一部の画素が焦点検出可能な画素として構成されており、該画素を用いて撮像面位相差検出方式による焦点検出を行うことができる。画像処理部20は、生成した画像データのうち後述する焦点検出領域に対応する部分画像データを焦点検出データに変換する。焦点検出データは、システム制御部50を介してAF部42に送られ、AF部42は撮像レンズ300内のフォーカス制御部342を通じてフォーカスレンズ311を移動させて合焦状態を得る。   The image sensor 14 is configured such that all or some of the pixels are focus-detectable pixels, and can perform focus detection by the imaging surface phase difference detection method using the pixels. The image processing unit 20 converts partial image data corresponding to a focus detection area described later in the generated image data into focus detection data. The focus detection data is sent to the AF unit 42 via the system control unit 50, and the AF unit 42 moves the focus lens 311 through the focus control unit 342 in the imaging lens 300 to obtain a focused state.

本実施例のカメラ100では、システム制御部50は、画像処理部20により生成された画像データからコントラスト状態を示すコントラスト評価値を生成することができる。そして、コントラスト評価値がピークを示す位置にフォーカス制御部342を通じてフォーカスレンズ311を移動させて合焦状態を得るコントラスト検出方式によるAFを行うことも可能である。   In the camera 100 of the present embodiment, the system control unit 50 can generate a contrast evaluation value indicating a contrast state from the image data generated by the image processing unit 20. Then, it is also possible to perform AF by a contrast detection method in which the focus lens 311 is moved to a position where the contrast evaluation value indicates a peak through the focus control unit 342 to obtain a focused state.

このため、メインミラー130とサブミラー131が撮像光路内に配置された光学ファインダ観察状態では焦点検出ユニット105による位相差検出方式でのAF(位相差AF)が行われる。一方、メインミラー130とサブミラー131が撮像光束外へ退避した電子ファインダ観察状態や動画撮像時には、撮像素子14による撮像面位相差検出方式でのAF(撮像面位相差AF)とコントラスト検出方式でのAF(コントラストAF)が行われる。   For this reason, in the optical finder observation state in which the main mirror 130 and the sub mirror 131 are arranged in the imaging optical path, AF (phase difference AF) is performed by the focus detection unit 105 in a phase difference detection method. On the other hand, in the electronic finder observation state in which the main mirror 130 and the sub-mirror 131 are retracted out of the image pickup light beam or in moving image pickup, the image pickup device 14 uses the image pickup surface phase difference detection method AF (image pickup surface phase difference AF) and the contrast detection method. AF (contrast AF) is performed.

メモリ制御部22は、A/D変換器16、タイミング発生部18、画像処理部20、画像表示メモリ24、D/A変換器26、メモリ30および圧縮伸長部32を制御する。前述したようにA/D変換器16からのデジタル撮像データが画像処理部20に入力されることで画像データが生成され、該画像データはメモリ制御部22を介して画像表示メモリ24またはメモリ30に書き込まれる。A/D変換器16からの撮像データがメモリ制御部22を介して直接、画像表示メモリ24またはメモリ30に書き込まれてもよい。   The memory control unit 22 controls the A / D converter 16, the timing generation unit 18, the image processing unit 20, the image display memory 24, the D / A converter 26, the memory 30, and the compression / decompression unit 32. As described above, digital image data from the A / D converter 16 is input to the image processing unit 20 to generate image data, and the image data is transmitted to the image display memory 24 or the memory 30 via the memory control unit 22. Is written to. The imaging data from the A / D converter 16 may be written directly to the image display memory 24 or the memory 30 via the memory control unit 22.

画像表示部(表示手段)28は、液晶モニタ等の表示デバイスを有する。画像表示メモリ24に書き込まれた表示用画像データは、D/A変換器26を介して画像表示部28により表示される。撮像により順次得られる画像データ(フレーム画像)を画像表示部28に順次表示することで、電子ファインダ画像としてのライブビュー画像を表示することができる。   The image display unit (display means) 28 has a display device such as a liquid crystal monitor. The display image data written in the image display memory 24 is displayed by the image display unit 28 via the D / A converter 26. By sequentially displaying image data (frame images) sequentially obtained by imaging on the image display unit 28, a live view image as an electronic finder image can be displayed.

メモリ30は、撮像により生成された静止画像や動画像を記憶する。また、メモリ30は、システム制御部50の作業領域としても使用される。圧縮伸長部32は、適応離散コサイン変換(ADCT)等により画像データを圧縮伸長する機能を有し、メモリ30に記憶された画像データを読み込んで圧縮処理または伸長処理を行い、処理を終えた画像データをメモリ30に書き込む。   The memory 30 stores a still image or a moving image generated by imaging. The memory 30 is also used as a work area of the system control unit 50. The compression / decompression unit 32 has a function of compressing and decompressing image data by adaptive discrete cosine transform (ADCT) or the like, reads image data stored in the memory 30, performs compression or decompression processing, and processes the processed image. Write data to memory 30.

シャッター制御部36は、測光部46からの測光情報に基づいて、撮像レンズ300内の絞り312を駆動する絞り制御部344と連携しながらシャッター12を制御する。カメラインターフェース部38は、コネクタ122,322およびレンズインターフェース部338を介して、カメラ100と撮像レンズ300との間での制御信号、状態信号および各種データ等の通信を可能とする。また、カメラ100から撮像レンズ300への電源供給も可能とする。   The shutter control unit 36 controls the shutter 12 based on photometric information from the photometric unit 46 in cooperation with an aperture control unit 344 that drives an aperture 312 in the imaging lens 300. The camera interface unit 38 enables communication of control signals, status signals, various data, and the like between the camera 100 and the imaging lens 300 via the connectors 122 and 322 and the lens interface unit 338. In addition, power can be supplied from the camera 100 to the imaging lens 300.

測光部46は、AE処理を行う。撮像レンズ300を通過した光束をミラー130および不図示の測光用レンズを介して測光部46に入射させることにより、被写体像の輝度を測定することができる。また、測光部46は、フラッシュ48と連携して調光処理を行う。フラッシュ48は、被写体に向けて光を発する発光手段(第1の発光手段)として、静止画撮像時にフラッシュ(閃光)発光して被写体を明るく照明するとともに、焦点検出時に間欠発光して被写体に間欠的にAF補助光を投光して被写体を照明する機能を有する。   The photometric unit 46 performs an AE process. The luminance of the subject image can be measured by causing the light beam that has passed through the imaging lens 300 to enter the photometric unit 46 via the mirror 130 and a photometric lens (not shown). The photometric unit 46 performs a light control process in cooperation with the flash 48. The flash 48 is a light emitting unit (first light emitting unit) that emits light toward the subject, emits a flash (flash) when capturing a still image, illuminates the subject brightly, and emits light intermittently when focus is detected to intermittently emit light to the subject. It has a function of projecting AF auxiliary light to illuminate a subject.

なお、測光部46に代わり、システム制御部50が、画像処理部20により生成された画像データから輝度を演算した結果に基づいてシャッター制御部36と撮像レンズ300内の絞り制御部344に対してAE制御を行うことも可能である。   Note that, instead of the photometric unit 46, the system control unit 50 sends the shutter control unit 36 and the aperture control unit 344 in the imaging lens 300 based on the result of calculating the luminance from the image data generated by the image processing unit 20. It is also possible to perform AE control.

LEDランプ49は、被写体を照明する光源として、常時発光(連続発光)が可能な発光手段(第2の発光手段)である。LEDランプ49が発するLED光は、AF補助光であるLED補助光として機能する以外に、いわゆる赤目現象を軽減したり、セルフタイマー撮像時の撮像タイミングの指標となったりする。   The LED lamp 49 is a light emitting unit (second light emitting unit) capable of constantly emitting light (continuous emission) as a light source for illuminating the subject. The LED light emitted from the LED lamp 49 not only functions as LED auxiliary light, which is AF auxiliary light, but also reduces so-called red-eye effect and serves as an index of an imaging timing at the time of self-timer imaging.

システム制御部50は、カメラ100の動作全体を制御する。メモリ52は、システム制御部50の動作に用いられる定数、変数およびプログラム等を記憶する。表示部54は、液晶表示パネルやLED等の表示デバイスにより構成され、文字、画像および音声等を用いて動作状態やメッセージ等を表示する。具体的には、撮像済画像数や残撮像可能画像数等の撮像画像数に関する情報や、シャッタースピード、絞り値、露出補正およびフラッシュ発光の有無等の撮像条件に関する情報や、電池残量や日付・時刻等を表示する。前述したように表示部54の一部は、光学ファインダ104内にも設けられている。   The system control unit 50 controls the entire operation of the camera 100. The memory 52 stores constants, variables, programs, and the like used for the operation of the system control unit 50. The display unit 54 is configured by a display device such as a liquid crystal display panel or an LED, and displays an operation state, a message, and the like using characters, images, sounds, and the like. More specifically, information on the number of captured images, such as the number of captured images and the number of remaining images that can be captured, information on imaging conditions such as shutter speed, aperture value, exposure correction, and presence or absence of flash emission, battery remaining amount and date・ Displays the time, etc. As described above, a part of the display unit 54 is also provided in the optical viewfinder 104.

不揮発性メモリ56は、EEPROM等により構成され、電気的に記録および消去可能なメモリである。モードダイヤル60、シャッタースイッチ62,64、画像表示オン/オフスイッチ66、クイックレビューオン/オフスイッチ68および操作部70は、システム制御部50に対して各種動作指示を入力するためにユーザにより操作される。操作部70は、スイッチ、ダイアル、タッチパネル、視線検知によるポインティングデバイス、音声認識デバイス等を含む。   The non-volatile memory 56 is configured by an EEPROM or the like, and is an electrically recordable and erasable memory. The mode dial 60, the shutter switches 62 and 64, the image display on / off switch 66, the quick review on / off switch 68, and the operation unit 70 are operated by the user to input various operation instructions to the system control unit 50. You. The operation unit 70 includes a switch, a dial, a touch panel, a pointing device based on gaze detection, a voice recognition device, and the like.

電源制御部80は、電池検出部、DC/DCコンバータおよび通電するブロックを切り替えるスイッチ部を含む。電源制御部80は、電池検出部を通じて電池の装着の有無、電池の種類および電池残量を検出し、その検出結果およびシステム制御部50からの指示に応じてDC/DCコンバータを制御し、必要な電圧を必要な期間、記録媒体を含む各部に供給する。コネクタ82,84は、アルカリ電池やリチウム電池等の一次電池やNiCd電池やNiMH電池、リチウムイオン電池等の二次電池、ACアダプタ等からなる電源部86をカメラ100に接続する。   The power control unit 80 includes a battery detection unit, a DC / DC converter, and a switch unit that switches a block to be energized. The power control unit 80 detects whether or not a battery is installed, the type of the battery, and the remaining battery level through the battery detection unit, controls the DC / DC converter according to the detection result and an instruction from the system control unit 50, and Voltage is supplied to each part including the recording medium for a necessary period. The connectors 82 and 84 connect the camera 100 to a power supply unit 86 including a primary battery such as an alkaline battery or a lithium battery, a secondary battery such as a NiCd battery, a NiMH battery, and a lithium ion battery, and an AC adapter.

インターフェース90は、メモリカードやハードディスク等の記録媒体200との接続機能を有し、コネクタ92は、メモリカードやハードディスク等の記録媒体と物理的接続を行う。記録媒体着脱検知部98は、コネクタ92に記録媒体200が接続されていることを検知する。   The interface 90 has a function of connecting to a recording medium 200 such as a memory card or a hard disk, and the connector 92 makes a physical connection to a recording medium such as a memory card or a hard disk. The recording medium attachment / detachment detection unit 98 detects that the recording medium 200 is connected to the connector 92.

次に、撮像レンズ300の構成について説明する。撮像レンズ300は、変倍(ズーム)レンズ310、上述したフォーカスレンズ311および絞り312等により構成される撮像光学系を有する。ズーム制御部340は、ズームレンズ310を光軸方向に移動させて変倍を行わせる。焦点調節手段としてのフォーカス制御部342は、フォーカスレンズ311を光軸方向に移動させて焦点調節を行わせる。絞り制御部344は、測光部46およびシステム制御部50からの測光情報に基づいて絞り312を駆動する。   Next, the configuration of the imaging lens 300 will be described. The imaging lens 300 has an imaging optical system including a variable power (zoom) lens 310, the focus lens 311 described above, the stop 312, and the like. The zoom control unit 340 causes the zoom lens 310 to move in the optical axis direction to perform zooming. The focus control unit 342 as a focus adjusting unit moves the focus lens 311 in the optical axis direction to perform focus adjustment. The aperture control unit 344 drives the aperture 312 based on photometric information from the photometric unit 46 and the system control unit 50.

レンズシステム制御部346は、撮像レンズ300の動作全体を制御する。レンズシステム制御部346は、その動作に用いる定数、変数およびプログラム等を記憶するメモリ機能を備えている。   The lens system control unit 346 controls the entire operation of the imaging lens 300. The lens system control unit 346 has a memory function for storing constants, variables, programs, and the like used for the operation.

不揮発性メモリ348は、撮像レンズ300に固有の製造番号等の識別情報や、開放絞り値、最小絞り値および焦点距離等の光学情報や、現在または過去の各種設定値等を記憶する。また、不揮発性メモリ348は、撮像レンズ300の状態に応じた枠情報やデフォーカス関連情報も記憶されている。   The non-volatile memory 348 stores identification information such as a serial number unique to the imaging lens 300, optical information such as an open aperture value, a minimum aperture value, and a focal length, and various current or past set values. Further, the nonvolatile memory 348 also stores frame information and defocus-related information according to the state of the imaging lens 300.

枠情報は、撮像レンズ(撮像光学系)300を通過する光束の径を決定する「枠」に関する情報であり、具体的には該「枠」の撮像素子14からの距離と、該「枠」の光束通過開口の半径を示す情報である。「枠」の1つは絞り312であり、他にも撮像光学系を構成するレンズを保持するレンズ保持部材が「枠」に相当する。「枠」は、ズームレンズ310の位置(ズーム位置)やフォーカスレンズ311の位置(フォーカス位置)に応じて異なるため、ズーム位置ごとおよびフォーカス位置ごとに用意されている。焦点検出を行う際には、ズーム位置とフォーカス位置に応じた最適な枠情報が選択され、該枠情報がレンズ制御部346からシステム制御部50に送られる。   The frame information is information on a “frame” that determines the diameter of a light beam passing through the imaging lens (imaging optical system) 300, and specifically, the distance of the “frame” from the image sensor 14 and the “frame” Is the information indicating the radius of the light beam passage opening of FIG. One of the “frames” is the stop 312, and the other lens holding member that holds the lens that forms the imaging optical system corresponds to the “frame”. Since the “frame” differs depending on the position of the zoom lens 310 (zoom position) and the position of the focus lens 311 (focus position), the “frame” is prepared for each zoom position and each focus position. When performing focus detection, optimal frame information according to the zoom position and the focus position is selected, and the frame information is transmitted from the lens control unit 346 to the system control unit 50.

デフォーカス関連情報は、被写体距離ごとの無限遠端および至近端までのデフォーカス量の情報であり、フォーカス位置に対応付けられた被写体距離ごとに分割されて記憶されている。   The defocus-related information is information on the defocus amount from the infinity end and the closest end for each subject distance, and is divided and stored for each subject distance associated with the focus position.

次に、撮像素子14の構成について図2(a)〜(c)を用いて説明する。図2(a)は、撮像素子14の1つの画素200の構成を示す。画素200は、一対の光電変換部としての2つのフォトダイオード(PD)201a,201bと、転送スイッチ202a,202bと、フローティングディフュージョン領域203と、増幅部204と、リセットスイッチ205と、選択スイッチ206とを有する。各スイッチは、MOSトランジスタ等により構成される。以下の説明では、例として、各スイッチがN型MOSトランジスタにより構成されているものとする。ただし、各スイッチはP型MOSトランジスタにより構成されていてもよく、さらに他のスイッチング素子により構成されていてもよい。また、 画素200に設けられるフォトダイオードの数は3つ以上(例えば、4つ)であってもよい。   Next, the configuration of the image sensor 14 will be described with reference to FIGS. FIG. 2A shows a configuration of one pixel 200 of the image sensor 14. The pixel 200 includes two photodiodes (PD) 201a and 201b as a pair of photoelectric conversion units, transfer switches 202a and 202b, a floating diffusion region 203, an amplification unit 204, a reset switch 205, and a selection switch 206. Having. Each switch is configured by a MOS transistor or the like. In the following description, as an example, it is assumed that each switch is configured by an N-type MOS transistor. However, each switch may be composed of a P-type MOS transistor, and may be composed of another switching element. Further, the number of photodiodes provided in the pixel 200 may be three or more (for example, four).

フォトダイオード201a,201bはそれぞれ、図2(b)に示すように、同一のマイクロレンズ201cを通過した光を受光して光電変換し、その受光量に応じた電荷を発生する。以下の説明において、フォトダイオード201aで発生した電荷により得られる信号をA信号といい、フォトダイオード201bで発生した電荷により得られる信号をB信号という。   As shown in FIG. 2B, each of the photodiodes 201a and 201b receives light passing through the same microlens 201c, performs photoelectric conversion, and generates electric charges according to the amount of received light. In the following description, a signal obtained by the charge generated by the photodiode 201a is called an A signal, and a signal obtained by the charge generated by the photodiode 201b is called a B signal.

転送スイッチ202aは、フォトダイオード201aとフローティングディフュージョン領域203との間に接続され、転送スイッチ202bはフォトダイオード201bとフローティングディフュージョン領域203との間に接続される。転送スイッチ202a,202bはそれぞれ、フォトダイオード201a,201bで発生した電荷を共通のフローティングディフュージョン領域203に転送する。転送スイッチ202a,202bはそれぞれ、制御信号TX_A,TX_Bによって制御される。   The transfer switch 202a is connected between the photodiode 201a and the floating diffusion region 203, and the transfer switch 202b is connected between the photodiode 201b and the floating diffusion region 203. The transfer switches 202a and 202b transfer charges generated in the photodiodes 201a and 201b to a common floating diffusion region 203, respectively. The transfer switches 202a and 202b are controlled by control signals TX_A and TX_B, respectively.

フローティングディフュージョン領域203は、フォトダイオード201a,201bから転送された電荷を一時的に保持するとともに、保持した電荷を電圧信号に変換する。   The floating diffusion region 203 temporarily holds the charges transferred from the photodiodes 201a and 201b, and converts the held charges into a voltage signal.

増幅部204は、ソースフォロワMOSトランジスタである。増幅部204のゲートは、フローティングディフュージョン領域203に接続され、増幅部204のドレインは電源電位VDDを供給する共通電源208に接続される。増幅部204は、フローティングディフュージョン領域203に保持された電荷により得られる電圧信号を増幅して出力する。   The amplifier 204 is a source follower MOS transistor. The gate of the amplification unit 204 is connected to the floating diffusion region 203, and the drain of the amplification unit 204 is connected to a common power supply 208 that supplies the power supply potential VDD. The amplifying unit 204 amplifies and outputs a voltage signal obtained from the charges held in the floating diffusion region 203.

リセットスイッチ205は、フローティングディフュージョン領域203と共通電源208との間に接続されている。リセットスイッチ205は、制御信号RESによって制御され、フローティングディフュージョン領域203の電位を電源電位VDDにリセットする。   The reset switch 205 is connected between the floating diffusion region 203 and the common power supply 208. The reset switch 205 is controlled by the control signal RES, and resets the potential of the floating diffusion region 203 to the power supply potential VDD.

選択スイッチ206は、増幅部204のソースと垂直出力線207の間に接続されている。選択スイッチ206は、制御信号SELによって制御され、増幅部204で増幅された電圧信号を垂直出力線207に出力する。   The selection switch 206 is connected between the source of the amplification unit 204 and the vertical output line 207. The selection switch 206 is controlled by the control signal SEL, and outputs the voltage signal amplified by the amplifier 204 to the vertical output line 207.

図2(c)は、撮像素子14の回路構成を示す。撮像素子14は、画素アレイ234、垂直走査回路209、電流源負荷210、読み出し回路235、共通出力線228,229、水平走査回路232およびデータ出力部233を有する。   FIG. 2C shows a circuit configuration of the image sensor 14. The imaging device 14 includes a pixel array 234, a vertical scanning circuit 209, a current source load 210, a readout circuit 235, common output lines 228 and 229, a horizontal scanning circuit 232, and a data output unit 233.

画素アレイ234は、行列状に配置された複数の画素200を有する。図2(c)には説明を簡略化するために、水平方向n画素×垂直方向4画素を示している。また、各画素200には、複数色のカラーフィルタのうちいずれか1つが設けられている。図2(c)に示す例では、カラーフィルタの色は赤色(R)、緑色(G)および青色(B)である。
これらのカラーフィルタが設けられたn×m画素はベイヤー配列に従って配置されている。
The pixel array 234 has a plurality of pixels 200 arranged in a matrix. FIG. 2C shows n pixels in the horizontal direction × 4 pixels in the vertical direction for the sake of simplicity. Each pixel 200 is provided with one of a plurality of color filters. In the example shown in FIG. 2C, the colors of the color filters are red (R), green (G), and blue (B).
The n × m pixels provided with these color filters are arranged according to a Bayer arrangement.

また、撮像素子14は、画素アレイ234の一部が遮光層で遮光された領域(OB)を持つ。   The image sensor 14 has a region (OB) in which a part of the pixel array 234 is shielded from light by a light-shielding layer.

垂直走査回路209は、画素行ごとに設けられた駆動信号線208を介して、各画素行の画素200に制御信号を出力する。図2(c)では駆動信号線208は画素行ごとに1本ずつ示されているが、実際には画素行ごとに複数の駆動信号線が接続されている。   The vertical scanning circuit 209 outputs a control signal to the pixels 200 of each pixel row via a drive signal line 208 provided for each pixel row. In FIG. 2C, one drive signal line 208 is shown for each pixel row, but a plurality of drive signal lines are actually connected for each pixel row.

同じ画素列の画素200は、画素列ごとに設けられた垂直出力線207に共通接続される。各画素200から出力される信号は、この垂直出力線207を介して読み出し部235に入力され、読み出し部235で処理される。電流源負荷210は、各画素列の垂直出力線207に接続される。   Pixels 200 in the same pixel column are commonly connected to a vertical output line 207 provided for each pixel column. A signal output from each pixel 200 is input to the reading unit 235 via the vertical output line 207, and is processed by the reading unit 235. The current source load 210 is connected to the vertical output line 207 of each pixel column.

水平走査回路232は、制御信号HSR(0)〜HSR(n−1)を出力することで、複数の読み出し部235の中から信号を出力させる読み出し部を順次選択する。選択された読み出し部235は、共通出力線228,229を介して出力アンプ233に処理した信号を出力する。   By outputting the control signals HSR (0) to HSR (n-1), the horizontal scanning circuit 232 sequentially selects a reading unit to output a signal from among the plurality of reading units 235. The selected reading unit 235 outputs the processed signal to the output amplifier 233 via the common output lines 228 and 229.

読み出し部235の具体的な構成を説明する。読み出し部235は、クランプ容量211、フィードバック容量214〜216、オペアンプ213、基準電圧源212およびスイッチ217〜220を有する。また、比較器221、Latch_N222、Latch_S223およびスイッチ226,227を有する。   A specific configuration of the reading unit 235 will be described. The read unit 235 includes a clamp capacitor 211, feedback capacitors 214 to 216, an operational amplifier 213, a reference voltage source 212, and switches 217 to 220. Further, it has a comparator 221, Latch_N222, Latch_S223, and switches 226 and 227.

垂直出力線207を介して読み出し部235に入力される信号は、クランプ容量211を介してオペアンプ213の反転入力端子に入力される。オペアンプ213の非反転入力端子には、基準電圧源212から基準電圧Vrefが供給される。フィードバック容量214〜216は、オペアンプ213の反転入力端子と出力端子の間に接続される。スイッチ217もオペアンプ213の反転入力端子と出力端子の間に接続され、フィードバック容量214〜216の両端をショートさせる。スイッチ217は、制御信号RES_Cにより制御される。また、スイッチ218〜220は、制御信号GAIN0〜2で制御される。   A signal input to the reading unit 235 via the vertical output line 207 is input to an inverting input terminal of the operational amplifier 213 via the clamp capacitor 211. The reference voltage Vref is supplied from the reference voltage source 212 to the non-inverting input terminal of the operational amplifier 213. The feedback capacitors 214 to 216 are connected between the inverting input terminal and the output terminal of the operational amplifier 213. The switch 217 is also connected between the inverting input terminal and the output terminal of the operational amplifier 213, and shorts both ends of the feedback capacitors 214 to 216. Switch 217 is controlled by control signal RES_C. The switches 218 to 220 are controlled by control signals GAIN0 to GAIN2.

比較器221にはオペアンプ213の出力端子と、ランプ信号発生器230から出力されるランプ信号224が接続されている。Latch_N222はノイズレベル(N信号)を保持するための記憶素子であり、Latch_SはA信号およびA信号とB信号が加算されたAB信号の信号レベル(S信号)を保持するための記憶素子である。比較器221の出力端子とカウンタ231から出力されるカウンタ値225がLatch_N222とLatch_S223に入力され、それぞれLATEN_N、LATEN_Sで制御される。Latch_N、Latch_Sの出力端子はスイッチ222、223を介してそれぞれ共通出力線228、229に接続される。共通出力線228、229はデータ出力部233に接続される。   The output terminal of the operational amplifier 213 and the ramp signal 224 output from the ramp signal generator 230 are connected to the comparator 221. Latch_N 222 is a storage element for holding a noise level (N signal), and Latch_S is a storage element for holding a signal level (S signal) of an A signal and an AB signal obtained by adding the A signal and the B signal. . The output terminal of the comparator 221 and the counter value 225 output from the counter 231 are input to Latch_N 222 and Latch_S 223, and are controlled by LATEN_N and LATEN_S, respectively. Output terminals of Latch_N and Latch_S are connected to common output lines 228 and 229 via switches 222 and 223, respectively. The common output lines 228 and 229 are connected to the data output unit 233.

スイッチ226,227は、水平走査回路232からの制御信号hsr(h)により制御される。ここで、hは制御信号線が接続されている読み出し部235の列番号を示す。Latch_N222およびLatch_S223に保持された信号は、共通出力線238、229を介して出力され、データ出力部233から外部へ出力される。この動作を水平転送と呼ぶ。   Switches 226 and 227 are controlled by control signal hsr (h) from horizontal scanning circuit 232. Here, h indicates the column number of the reading unit 235 to which the control signal line is connected. The signals held in Latch_N 222 and Latch_S 223 are output via common output lines 238 and 229 and output from data output unit 233 to the outside. This operation is called horizontal transfer.

本実施例では、撮像素子14は、第1の読み出しモードと第2の読み出しモードとを有する。第1の読み出しモードは、記録用の高精細の静止画を撮像するために全画素から出力信号が読み出される全画素読み出しモードである。第2の読み出しモードは、記録用の静止画よりも画素数が少ないライブビュー画像や記録用の動画の表示を行うため、全画素のうち一部の画素からの出力信号のみが読み出される間引き読み出しモードである。ライブビュー画像や動画の生成に必要な画素数は全画素数よりも少ないため、撮像素子から水平方向および垂直方向ともに所定比率で間引いた数の画素のみから出力信号を読み出すことで、信号処理負荷を軽減するとともに、消費電力の低減にも寄与する。また、第1および第2の読み出しモードのいずれにおいても各画素に設けられた各光電変換部からの出力信号は独立して読み出しされるため、いずれの読み出しモードでも一対の位相差像信号の生成が可能である。   In the present embodiment, the image sensor 14 has a first read mode and a second read mode. The first reading mode is an all-pixel reading mode in which output signals are read from all pixels in order to capture a high-definition still image for recording. The second readout mode is a thinning-out readout in which only output signals from some of the pixels are read out to display a live view image or a moving image for recording, which has a smaller number of pixels than a still image for recording. Mode. Since the number of pixels required to generate a live view image or a moving image is smaller than the total number of pixels, the signal processing load can be reduced by reading output signals from only a small number of pixels in the horizontal and vertical directions at a predetermined ratio from the image sensor. In addition to reducing power consumption. In each of the first and second readout modes, the output signal from each photoelectric conversion unit provided for each pixel is read out independently, so that the generation of a pair of phase difference image signals is performed in any of the readout modes. Is possible.

図3(a),(b)は、本実施例のカメラシステムにおける撮像光学系101の射出瞳面と、撮像素子14における像高0付近、すなわち像面の中央近傍に配置された画素(以下、中央画素という)200における一対の光電変換部201a,201bとの共役関係を示す。撮像光学系の射出瞳面と一対の光電変換部とは、マイクロレンズ201cによって共役関係となるように設定されている。撮像光学系の射出瞳は、一般的に、絞り312が配置された面に位置する。一方、本実施例の撮像光学系は変倍機能を有し、変倍によって像面からの射出瞳からの距離(射出瞳距離)や大きさが変化する。図3(a)に示す撮像光学系101は、焦点距離が広角端と望遠端との間の中間ズーム状態にある。これを標準的な射出瞳距離Zepと仮定して、マイクロレンズ201cの形状や像高(X,Y座標)に応じた偏心パラメータが最適化される。   FIGS. 3A and 3B show pixels (hereinafter, referred to as pixels) arranged near the exit pupil plane of the imaging optical system 101 and near the image height 0 of the image sensor 14 in the camera system of the present embodiment, that is, near the center of the image plane. , A central pixel) 200 with a pair of photoelectric conversion units 201a, 201b. The exit pupil plane of the imaging optical system and the pair of photoelectric conversion units are set to have a conjugate relationship by the microlens 201c. The exit pupil of the imaging optical system is generally located on the surface where the stop 312 is arranged. On the other hand, the imaging optical system of the present embodiment has a zoom function, and the distance from the image plane to the exit pupil (exit pupil distance) and the size change according to the zooming. The imaging optical system 101 shown in FIG. 3A has a focal length in an intermediate zoom state between the wide-angle end and the telephoto end. Assuming this as a standard exit pupil distance Zep, the eccentricity parameter according to the shape and image height (X, Y coordinates) of the microlens 201c is optimized.

図3(a)において、301は撮像光学系の最も被写体側に配置された第1レンズ群であり、301bは第1レンズ群301を保持する鏡筒部材である。311bはフォーカスレンズ311を保持する鏡筒部材である。312aは絞り312の開放口径を決める開口を有する開口板であり、312bは絞り込み開口径を調節するための絞り羽根である。撮像光学系を通過する光束を制限する部材としての鏡筒部材301b、開口板312a、絞り羽根312bは、像面側から観察した場合の光学的な虚像として示している。また、絞り312の近傍における合成開口を撮像光学系の射出瞳(以下、レンズ射出瞳という)と定義して、前述したように像面からのレンズ射出瞳までの距離をZepとする。   In FIG. 3A, reference numeral 301 denotes a first lens group disposed closest to the subject in the imaging optical system, and reference numeral 301b denotes a lens barrel member that holds the first lens group 301. Reference numeral 311b denotes a lens barrel member that holds the focus lens 311. Reference numeral 312a denotes an aperture plate having an opening for determining the aperture of the aperture 312, and reference numeral 312b denotes aperture blades for adjusting the aperture of the aperture. The lens barrel member 301b, the aperture plate 312a, and the aperture blade 312b as members for restricting the light flux passing through the imaging optical system are shown as optical virtual images when observed from the image plane side. Further, the synthetic aperture near the stop 312 is defined as an exit pupil (hereinafter, referred to as a lens exit pupil) of the imaging optical system, and the distance from the image plane to the lens exit pupil is Zep as described above.

中央画素200に含まれる一対の光電変換部201a,201bは、マイクロレンズ201cによってレンズ射出瞳面上に像EP1a,EP1bとして逆投影される。言い換えれば、レンズ射出瞳のうち互いに異なる瞳領域(以下、焦点検出瞳という)であるEP1a,EP1bが、マイクロレンズ201cを介して光電変換部201a,201bの表面に投影される。中央画素200は、その最下層から順に、光電変換部201a,201b、配線層201e〜201g、カラーフィルタ201hおよびマイクロレンズ201cにより構成されている。   The pair of photoelectric conversion units 201a and 201b included in the central pixel 200 are back-projected by the microlens 201c as images EP1a and EP1b onto the lens exit pupil plane. In other words, different pupil areas (hereinafter, referred to as focus detection pupils) EP1a and EP1b of the lens exit pupil are projected onto the surfaces of the photoelectric conversion units 201a and 201b via the microlenses 201c. The central pixel 200 includes, in order from the lowest layer, photoelectric conversion units 201a and 201b, wiring layers 201e to 201g, a color filter 201h, and a microlens 201c.

図3(b)は、撮像光学系の射出瞳面上における光電変換部201a,201bの逆投影像EP1a,EP1bを光軸方向から見て示す。撮像素子14は、2つの光電変換部201a,201bのうち一方からの信号を出力することができるとともに、これらの両方からの信号を加算して出力できる画素を有する。加算して出力された信号は、焦点検出瞳EP1a,EP1bを通過した全ての光束を光電変換して得られた信号である。   FIG. 3B shows back-projected images EP1a and EP1b of the photoelectric conversion units 201a and 201b on the exit pupil plane of the imaging optical system as viewed from the optical axis direction. The imaging element 14 has a pixel that can output a signal from one of the two photoelectric conversion units 201a and 201b and that can add and output a signal from both of them. The signal output by the addition is a signal obtained by photoelectrically converting all the light beams that have passed through the focus detection pupils EP1a and EP1b.

図3(a)において、撮像光学系を通過する光束(図ではその外縁を直線で示している)Lは、絞り312の開口板312aによって制限されており、焦点検出瞳EP1a,EP1bからの光束は撮像光学系においてケラレることなく画素200に到達する。図3(b)では、図3(a)に示した光束Lの射出瞳面での断面(外縁)をTLとして示している。TLで示される円(つまりは開口板312aの開口)の内部に2つの光電変換部201a,201bの逆投影像EP1a,EP1bの大部分が含まれていることから、逆投影像EP1a,EP1bにはわずかなケラレしか発生していないことが分かる。この際、射出瞳面の中央では逆投影像EP1a,EP1bのケラレ状態は、撮像光学系の光軸(図3(a)に一点鎖線で示す)に関して対称となり、光電変換部201a,201bが受光する光量は互いに等しい。   In FIG. 3A, the light beam L passing through the imaging optical system (the outer edge thereof is shown by a straight line) is limited by the aperture plate 312a of the stop 312, and the light beam from the focus detection pupils EP1a and EP1b. Reaches the pixel 200 without vignetting in the imaging optical system. In FIG. 3B, the cross section (outer edge) of the light beam L shown in FIG. 3A on the exit pupil plane is indicated as TL. Since most of the back-projected images EP1a and EP1b of the two photoelectric conversion units 201a and 201b are included in the circle indicated by TL (that is, the opening of the aperture plate 312a), the back-projected images EP1a and EP1b are included in the circle. Shows that only slight vignetting occurs. At this time, in the center of the exit pupil plane, the vignetting state of the back-projected images EP1a and EP1b is symmetric with respect to the optical axis of the imaging optical system (indicated by a dashed line in FIG. 3A), and the photoelectric conversion units 201a and 201b receive light. The amounts of light emitted are equal to each other.

このように、撮像素子14は被写体像を撮像する機能だけではなく、レンズ射出瞳における互いに異なる焦点検出瞳からの光束を個別に受光して撮像面位相差検出方式の焦点検出を行う機能も有する。なお、本実施例では、撮像素子14の1つの画素が一対の光電変換部を有する場合について説明するが、互いに異なる一部が遮光された2つの焦点検出専用画素を一対の光電変換部として用いてもよい。   As described above, the imaging device 14 has not only a function of capturing an image of a subject, but also a function of individually receiving light beams from different focus detection pupils in the lens exit pupil and performing focus detection by an imaging surface phase difference detection method. . In the present embodiment, a case where one pixel of the image sensor 14 has a pair of photoelectric conversion units will be described. However, two focus detection-dedicated pixels, each of which is partly different from each other and shaded, are used as a pair of photoelectric conversion units. You may.

図4は、撮像範囲400内における焦点検出領域401を示す。本実施例では、複数(3つ)の焦点検出領域401で撮像面位相差検出方式の焦点検出を行う。焦点検出領域401内では、水平方向のコントラスト差を用いて位相差を検出する。   FIG. 4 shows a focus detection area 401 within the imaging range 400. In the present embodiment, focus detection of the imaging surface phase difference detection method is performed in a plurality (three) of focus detection areas 401. In the focus detection area 401, a phase difference is detected using a horizontal contrast difference.

図5は、本実施例における一対の位相差像信号430a,430bの例を示している。一対の位相差像信号430a,430bは、撮像素子14における焦点検出領域401内の複数の画素から得られたA信号同士およびB信号同士をそれぞれ連結し、さらに画像処理部20よる各種画像処理(補正)が行われた信号である。一対の位相差像信号430a,430bはAF部42に送られる。   FIG. 5 shows an example of a pair of phase difference image signals 430a and 430b in the present embodiment. The pair of phase difference image signals 430a and 430b connect A signals and B signals obtained from a plurality of pixels in the focus detection area 401 of the image sensor 14, respectively, and further perform various types of image processing ( (Correction). The pair of phase difference image signals 430a and 430b are sent to the AF unit 42.

図5において、横軸は互いに連結された信号(AまたはB信号)の画素配列方向を示し、縦軸は該信号の強度を示す。図5は、撮像光学系が被写体に対してデフォーカスした状態(非合焦状態)での一対の位相差像信号430a,430bを示している。合焦状態に比べて、位相差像信号430aは左側にずれ、位相差像信号430bは右側にずれている。AF部42は、一対の位相差像信号430a,430bのずれ量(位相差)を相関演算を用いて算出し、該位相差から撮像光学系の被写体に対するデフォーカス量を求める。   In FIG. 5, the horizontal axis indicates the pixel arrangement direction of the mutually connected signals (A or B signals), and the vertical axis indicates the intensity of the signals. FIG. 5 shows a pair of phase difference image signals 430a and 430b in a state where the imaging optical system is defocused on the subject (out of focus state). The phase difference image signal 430a is shifted to the left and the phase difference image signal 430b is shifted to the right as compared to the focused state. The AF unit 42 calculates a shift amount (phase difference) between the pair of phase difference image signals 430a and 430b using a correlation operation, and obtains a defocus amount for the subject in the imaging optical system from the phase difference.

システム制御部50は、レンズ制御部346から送信されたフォーカス敏感度(フォーカスレンズ311の単位移動量に対する像面移動量)の情報およびAF部42から得られたたデフォーカス量とからフォーカスレンズ311の駆動量を算出する。さらにシステム制御部50は、レンズ制御部346から送信されたフォーカス位置の情報とフォーカスレンズ311の駆動量とからフォーカスレンズ311を移動させる目標位置の情報を求めて、レンズ制御部346に送信する。レンズ制御部346は、フォーカス制御部342を通じてフォーカスレンズ311を移動させる目標位置に移動させる。以上により、撮像面位相差AFによる焦点調節が行われる。   The system control unit 50 determines the focus lens 311 from the information on the focus sensitivity (image plane movement amount with respect to the unit movement amount of the focus lens 311) transmitted from the lens control unit 346 and the defocus amount obtained from the AF unit 42. Is calculated. Further, the system control unit 50 obtains information on a target position for moving the focus lens 311 from the information on the focus position transmitted from the lens control unit 346 and the driving amount of the focus lens 311, and transmits the information to the lens control unit 346. The lens control unit 346 moves the focus lens 311 to a target position for moving through the focus control unit 342. As described above, the focus adjustment by the imaging plane phase difference AF is performed.

次に、図6のフローチャートを用いて、本実施例のカメラ100における撮像制御処理(制御方法)について説明する。図6は、ライブビュー画像を表示する状態から静止画撮像を行う場合の撮像制御処理の流れを示している。コンピュータとしてのシステム制御部50は、コンピュータプログラムとしての制御プログラムに従って本処理を実行する。以下の説明において、「S」はステップを意味する。   Next, an imaging control process (control method) in the camera 100 of the present embodiment will be described with reference to the flowchart of FIG. FIG. 6 shows a flow of an imaging control process when a still image is captured from a state in which a live view image is displayed. The system control unit 50 as a computer executes this processing according to a control program as a computer program. In the following description, “S” means a step.

まずS1において、システム制御部50は、ライブビュー画像を生成するための撮像素子14による撮像を開始させて撮像信号を画像処理部20に入力させる。   First, in S1, the system control unit 50 starts imaging by the imaging element 14 for generating a live view image, and inputs an imaging signal to the image processing unit 20.

次にS2では、システム制御部50は、画像処理部20に撮像信号からライブビュー画像データおよび焦点検出データを生成させる。   Next, in S2, the system control unit 50 causes the image processing unit 20 to generate live view image data and focus detection data from the imaging signal.

次にS3において、システム制御部50は、S2にて生成されたライブビュー画像データに基づいてライブビュー画像を画像表示部28に表示する。ユーザは、このライブビュー画像を見ることで撮像構図を決定することができる。ライブビュー画像の表示は、ユーザが撮像範囲や撮像条件を確認するために用いられ、所定時間間隔、例えば33.3ms(30fps)や16.6ms(60fps)で更新される。   Next, in S3, the system control unit 50 displays a live view image on the image display unit 28 based on the live view image data generated in S2. The user can determine the imaging composition by looking at the live view image. The display of the live view image is used by the user to confirm the imaging range and imaging conditions, and is updated at predetermined time intervals, for example, 33.3 ms (30 fps) or 16.6 ms (60 fps).

ただし、システム制御部50は、後述するAF補助光の発光時には画像表示部28にライブビュー画像を表示しないように制御してもよい。例えば閃光発光を用いたAF補助光(以下、閃光補助光という)の場合は被写体の一部が輝度飽和する等して高質の画像を取得できないおそれがあるので、閃光補助光の発光時にはライブビュー画像の表示を停止して、その後表示を再開すればよい。   However, the system control unit 50 may control the live view image not to be displayed on the image display unit 28 when the AF auxiliary light described below is emitted. For example, in the case of AF auxiliary light using flash light emission (hereinafter referred to as flash auxiliary light), there is a possibility that a high-quality image cannot be acquired due to saturation of a part of the subject or the like. The display of the view image may be stopped and then resumed.

一方、LEDから発光されるAF補助光(以下、LED補助光という)は、常時発光が可能であり、測光部46により表示画像を適正露出状態に保つことができるため、表示を停止する必要はない。閃光発光を行う場合でも、輝度飽和する領域が限定的であったり閃光発光量が小さかったりする場合は、ライブビュー画像の表示を継続してもよい。   On the other hand, the AF auxiliary light emitted from the LED (hereinafter, referred to as LED auxiliary light) can emit light at all times, and the display image can be kept in an appropriate exposure state by the photometry unit 46. Therefore, it is not necessary to stop the display. Absent. Even when flash light emission is performed, the display of the live view image may be continued when the region where the luminance is saturated is limited or the flash light emission amount is small.

次にS4では、システム制御部50(AF部42)は、図4に示した3つの焦点検出領域401における焦点検出データを用いて焦点検出処理を行う。すなわち、AF部42は、図5に示した一対の位相差像信号の位相差からデフォーカス量を算出するまでの焦点検出処理を行う。   Next, in S4, the system control unit 50 (AF unit 42) performs focus detection processing using the focus detection data in the three focus detection areas 401 shown in FIG. That is, the AF unit 42 performs focus detection processing until calculating the defocus amount from the phase difference between the pair of phase difference image signals shown in FIG.

次のS5において、システム制御部50は、撮像準備開始指示としてのスイッチSW1のオン/オフを検出する。スイッチSW1は、操作部70に含まれるレリーズ(撮像トリガ)スイッチの半押し操作によりオンになる。スイッチSW1がオンであればSスイッチSW1がオフである場合はS10に進む。   In the next S5, the system control unit 50 detects ON / OFF of the switch SW1 as an imaging preparation start instruction. The switch SW1 is turned on by half-pressing a release (imaging trigger) switch included in the operation unit 70. If the switch SW1 is on, the process proceeds to S10 if the S switch SW1 is off.

S10では、システム制御部50は、メイン(電源)スイッチがオフされたか否かを判定する。メインスイッチがオフされていない場合、S2に戻る。一方、メインスイッチがオフされた場合、本フローを終了する。   In S10, the system control unit 50 determines whether the main (power) switch has been turned off. If the main switch has not been turned off, the process returns to S2. On the other hand, when the main switch is turned off, the present flow ends.

一方、S5にてスイッチSW1のオンが検出されると、システム制御部50はS6に進む。S6において、システム制御部50は、焦点検出領域モードを取得する。焦点検出領域モードは、任意選択モード、自動選択モードおよび被写体検出モードを含む。任意選択モードは、ユーザが指定した1または複数の焦点検出領域を設定するモードである。自動選択モードは、システム制御部50が1または複数の焦点検出領域を設定するモードである。被写体検出モードは、人物の顔等の特定の被写体を検出して1または複数の焦点検出領域を設定するモードである。またS6では、システム制御部50は、事前に設定された焦点検出領域モードの情報や人物の顔等の特定の被写体の情報である被写体検出情報を取得し、焦点検出領域の位置、配置および数を設定する。   On the other hand, if the switch SW1 is detected to be on in S5, the system control unit 50 proceeds to S6. In S6, the system control unit 50 acquires the focus detection area mode. The focus detection area mode includes an arbitrary selection mode, an automatic selection mode, and a subject detection mode. The optional mode is a mode in which one or a plurality of focus detection areas specified by the user are set. The automatic selection mode is a mode in which the system control unit 50 sets one or a plurality of focus detection areas. The subject detection mode is a mode for detecting a specific subject such as a human face and setting one or a plurality of focus detection areas. In step S6, the system control unit 50 acquires information on a focus detection area mode set in advance and subject detection information that is information on a specific subject such as a person's face, and acquires the position, location, and number of focus detection areas. Set.

次にS7において、システム制御部50(AF部42)は、S6において取得された焦点検出領域モードに応じて設定された焦点検出領域401で焦点調節処理を行う。焦点調節処理の詳細については後述する。焦点調節処理が終了すると、システム制御部50はS8に進む。   Next, in S7, the system control unit 50 (AF unit 42) performs focus adjustment processing in the focus detection area 401 set according to the focus detection area mode acquired in S6. Details of the focus adjustment processing will be described later. When the focus adjustment processing ends, the system control unit 50 proceeds to S8.

S8において、システム制御部50は、撮像開始指示としてのスイッチSW2のオン/オフを検出する。スイッチSW2は、レリーズスイッチの全押し操作によりオンになる。システム制御部50は、スイッチSW2がオンになるまで待機し、スイッチSW2がオンになるとS9に進む。   In S8, the system control unit 50 detects ON / OFF of the switch SW2 as an imaging start instruction. The switch SW2 is turned on by fully pressing the release switch. The system control unit 50 waits until the switch SW2 is turned on, and proceeds to S9 when the switch SW2 is turned on.

S9では、システム制御部50は、撮像処理を行う。撮像処理の詳細については後述する。S9での撮像処理が終了すると、システム制御部50はS10に進む。   In S9, the system control unit 50 performs an imaging process. Details of the imaging process will be described later. When the imaging process in S9 ends, the system control unit 50 proceeds to S10.

S10において、システム制御部50は、メインスイッチがオフされたか否かを判定する。メインスイッチがオフされていない場合はS2に戻り、メインスイッチがオフされた
場合は本処理を終了する。
In S10, the system control unit 50 determines whether the main switch has been turned off. If the main switch has not been turned off, the process returns to S2, and if the main switch has been turned off, this processing ends.

次に、図7のフローチャートを用いて、図6のS7で行われる焦点調節処理について説明する。焦点調節処理を開始したシステム制御部50は、S201において、S4で行われた焦点検出の結果としてのデフォーカス量(以下、検出デフォーカス量という)を取得する。また、システム制御部50は、取得した検出デフォーカス量の信頼性が高いか否かを判定する。検出デフォーカス量の信頼性が高い場合は、システム制御部50はS202に進む。   Next, the focus adjustment processing performed in S7 of FIG. 6 will be described with reference to the flowchart of FIG. In S201, the system control unit 50 that has started the focus adjustment process acquires a defocus amount (hereinafter, referred to as a detected defocus amount) as a result of the focus detection performed in S4. Further, the system control unit 50 determines whether or not the reliability of the acquired detected defocus amount is high. If the reliability of the detected defocus amount is high, the system control unit 50 proceeds to S202.

ここでの信頼性は、システム制御部50が、一対の位相差像信号の相関量の極小値と、相関演算において相関量が極小値を示すシフト量の近傍での相関量の差分の大きさとを用
いて判定する。
Here, the reliability is determined by the system controller 50 that the minimum value of the correlation amount between the pair of phase difference image signals and the magnitude of the difference between the correlation amounts near the shift amount at which the correlation amount shows the minimum value in the correlation calculation. Is determined using

相関量とは、一対の位相差像信号の相関度合いを示し、相関が高いほど小さい値となる。言い換えれば、相関量の極小値が小さいほど信頼性が高くなる。本実施例では、相関量の極小値が閾値Thr1より小さければ信頼性が高いと判定する。理想的には、相関量の極小値は、一対の位相差像信号が完全に同一形状である場合に0となる。しかし、実際の一対の位相差像信号は、被写体からの光の拡散特性や光量調節誤差や画素ごとに個別に生じるノイズの影響等の影響によって互いに形状が異なる。このため、相関量の極小値は正の値となるのが一般的である。一方、一対の位相差像信号の形状の差が大きいほど、極小値の検出精度が低下し、結果的には焦点検出の精度が低下する。   The correlation amount indicates the degree of correlation between a pair of phase difference image signals. The higher the correlation, the smaller the value. In other words, the smaller the minimum value of the correlation amount, the higher the reliability. In the present embodiment, if the minimum value of the correlation amount is smaller than the threshold Thr1, it is determined that the reliability is high. Ideally, the minimum value of the correlation amount is 0 when the pair of phase difference image signals have completely the same shape. However, the actual pair of phase difference image signals have different shapes due to the diffusion characteristics of light from the subject, the light amount adjustment error, the influence of noise generated individually for each pixel, and the like. For this reason, the local minimum value of the correlation amount is generally a positive value. On the other hand, as the difference between the shapes of the pair of phase difference image signals increases, the detection accuracy of the minimum value decreases, and as a result, the accuracy of focus detection decreases.

また、相関量が極小値を示すフト量近傍で得られた相関量の差分は大きいほど、シフト量を高精度に算出することができる。これは、相関量が誤差によりばらついた場合でも、相関量の差分が大きければシフト量の検出に与える影響が小さいためである。このことから、相関量の差分が閾値Thr2より大きい場合に信頼性が高い(第1の信頼性である)と判定する。   Also, the larger the difference between the correlation amounts obtained near the shift amount at which the correlation amount shows the minimum value, the more accurately the shift amount can be calculated. This is because, even when the correlation amount varies due to an error, if the difference between the correlation amounts is large, the influence on the shift amount detection is small. From this, it is determined that the reliability is high (first reliability) when the difference between the correlation amounts is larger than the threshold Thr2.

S202では、システム制御部50は、S6において取得された焦点検出領域モードに応じて設定された全ての焦点検出領域で信頼性が高い検出デフォーカス量が取得できたか否かを判定する。そして、全ての焦点検出領域で信頼性が高い検出デフォーカス量が取得できた場合はS203に進む。S202において設定された全ての焦点検出領域で信頼性が高い検出デフォーカス量が取得できた場合にのみS203に進むのは、焦点検出領域のいくつかがAF補助光の発光によって信頼性が高くなる可能性があるためである。システム制御部50は、信頼性が低い検出デフォーカス量が取得された焦点検出領域が存在する場合にはAF補助光を用いた焦点検出を試みる。ただし、焦点検出領域の数が多い場合には、全ての焦点検出領域の信頼性が高い場合のみAF補助光を使用しないとする必要はない。例えば、複数の焦点検出領域のうち像高が中央近傍の焦点検出領域のみ信頼性高い場合にAF補助光を使用しないと判定してもよい。   In S202, the system control unit 50 determines whether a highly reliable detected defocus amount has been acquired in all the focus detection areas set according to the focus detection area mode acquired in S6. Then, if a highly reliable detected defocus amount can be obtained in all the focus detection areas, the process proceeds to S203. The process proceeds to S203 only when a highly reliable detection defocus amount can be acquired in all the focus detection regions set in S202. The reason is that some of the focus detection regions have higher reliability due to the emission of the AF auxiliary light. This is because there is a possibility. If there is a focus detection area in which the detected defocus amount with low reliability is obtained, the system control unit 50 attempts focus detection using the AF auxiliary light. However, when the number of focus detection areas is large, it is not necessary to use the AF auxiliary light only when the reliability of all the focus detection areas is high. For example, it may be determined that the AF auxiliary light is not used when the image height is high only in the focus detection area near the center of the plurality of focus detection areas.

S203では、システム制御部50は、S6において設定された焦点検出領域401での検出デフォーカス量が所定デフォーカス量以下となる合焦状態を示すか非合焦状態を示すかを判定する。ここでは、焦点検出領域モードに応じて設定された焦点検出領域のうち、至近優先、中央領域優先の所定のアルゴリズムにしたがって、1つの焦点検出領域を選択し、検出デフォーカス量を所定量と比較する。非合焦状態であると判定したシステム制御部50は、S204に進み、検出デフォーカス量に基づいてフォーカスレンズ311を駆動する。   In S203, the system control unit 50 determines whether the detected defocus amount in the focus detection area 401 set in S6 indicates a focused state or an out-of-focus state where the detected defocus amount is equal to or less than a predetermined defocus amount. Here, among the focus detection areas set according to the focus detection area mode, one focus detection area is selected according to a predetermined algorithm of nearest priority and central area priority, and the detected defocus amount is compared with the predetermined amount. I do. The system control unit 50, which has determined that the state is out of focus, proceeds to S204, and drives the focus lens 311 based on the detected defocus amount.

一方、S203において検出デフォーカス量が所定デフォーカス量以下で合焦状態にあると判定したシステム制御部50は、S205に進み、画像表示部28に合焦状態を示す合焦表示を行う。例えば、合焦状態が得られた焦点検出領域を示す枠を特定色で表示したり、合焦状態が得られたことを示す音を出力したりする。   On the other hand, the system control unit 50, which has determined in S203 that the detected defocus amount is equal to or less than the predetermined defocus amount and is in focus, proceeds to S205, and performs in-focus display indicating the in-focus state on the image display unit 28. For example, a frame indicating the focus detection area in which the in-focus state has been obtained is displayed in a specific color, or a sound indicating that the in-focus state has been obtained is output.

またS202において信頼性が高いデフォーカス量が検出できていないと判定したシステム制御部50は、S206に進み、AF補助光の発光要否判定の処理を行う。該処理の詳細については後述する。   Further, the system control unit 50 that has determined in S202 that a highly reliable defocus amount has not been detected, proceeds to S206, and performs processing for determining whether or not to emit AF auxiliary light. Details of the processing will be described later.

次にS207では、システム制御部50は、S206での判定処理の結果が、LED補助光または閃光補助光としてのAF補助光が必要であることを示すか否かを判定する。AF補助光が不要である場合には、システム制御部50はS208に進む。   Next, in S207, the system control unit 50 determines whether or not the result of the determination processing in S206 indicates that the AF auxiliary light as the LED auxiliary light or the flash auxiliary light is necessary. If the AF auxiliary light is unnecessary, the system control unit 50 proceeds to S208.

S208では、システム制御部50は、フォーカスレンズ311の駆動、すなわちサーチ駆動を行いながらの焦点検出処理(第2の焦点検出処理)を行う。ここで行う焦点検出処理は、S4で行った焦点検出処理と同様である。S208においてサーチ駆動と焦点検出を行った結果、S209で焦点検出が可能であると判定したシステム制御部50はS203に進む。   In S208, the system control unit 50 performs focus detection processing (second focus detection processing) while driving the focus lens 311, that is, performing search driving. The focus detection processing performed here is the same as the focus detection processing performed in S4. As a result of performing the search driving and the focus detection in S208, the system control unit 50 that has determined in S209 that the focus detection is possible proceeds to S203.

一方、S209にて焦点検出が引き続き不可能と判定したシステム制御部50は、S210において、フォーカスレンズ311が光軸方向における可動範囲端(望遠端または至近端)に位置しているか否かを判定する。フォーカスレンズ311が可動範囲端に到達していない場合には、S208に戻ってサーチ駆動と焦点検出処理とを継続する。   On the other hand, in S210, the system control unit 50 that has determined that focus detection cannot be continued in S209 determines whether or not the focus lens 311 is located at the movable range end (telephoto end or closest end) in the optical axis direction. judge. If the focus lens 311 has not reached the end of the movable range, the process returns to S208, and the search driving and focus detection processing are continued.

S210においてフォーカスレンズ311が可動範囲端に到達している場合は、システム制御部50は、フォーカスレンズ311の移動によって合焦可能な被写体がフォーカスレンズ311の可動範囲内で合焦する位置に存在しないものとしてS211に進む。   If the focus lens 311 has reached the end of the movable range in S210, the system control unit 50 determines that the subject that can be focused by the movement of the focus lens 311 does not exist at a position where the focus is within the movable range of the focus lens 311. Then, the process proceeds to S211.

S211では、システム制御部50は、焦点検出を中断し、画像表示部28に合焦状態が得られないことを示す非合焦判定表示を行わせる。   In S211, the system control unit 50 suspends the focus detection and causes the image display unit 28 to perform the out-of-focus determination display indicating that the in-focus state cannot be obtained.

S207でAF補助光が必要と判定したシステム制御部50は、S212に進んでフォーカスレンズ311の初期位置(以下、フォーカス初期位置という)を算出する。まずシステム制御部50は、後述する焦点検出情報を取得し、該焦点検出情報を用いて焦点検出が可能と想定される検出可能デフォーカス量を算出する。また、システム制御部50は、検出可能デフォーカス量と撮像レンズ300の至近端での被写体距離の情報とから、至近端を含むなるべく広い被写体距離範囲をカバーできる(信頼性の高いデフォーカス量を算出できるデフォーカス範囲がなるべく広くなる)フォーカス初期位置を算出する。   The system control unit 50 that determines that the AF auxiliary light is necessary in S207 proceeds to S212 and calculates an initial position of the focus lens 311 (hereinafter, referred to as a focus initial position). First, the system control unit 50 acquires focus detection information described later, and calculates a detectable defocus amount that is assumed to be capable of focus detection using the focus detection information. Further, the system control unit 50 can cover as wide a subject distance range as possible including the closest end from the detectable defocus amount and information on the subject distance at the closest end of the imaging lens 300 (defocus with high reliability). (The defocus range in which the amount can be calculated becomes as large as possible).

図8は、フォーカス初期位置を示す。横軸は合焦する被写体距離に対応するフォーカス位置を示している。算出された検出可能デフォーカス量の範囲(以下、デフォーカス量検出可能範囲という)を矢印で示す。フォーカスレンズ311の可動範囲端である至近端を含むデフォーカス量検出可能範囲内に、至近端よりも遠距離側にデフォーカス量検出可能範囲が広がるように、フォーカス初期位置が設定されている。   FIG. 8 shows the focus initial position. The horizontal axis indicates the focus position corresponding to the subject distance to be focused. The calculated range of the detectable defocus amount (hereinafter, referred to as a defocus amount detectable range) is indicated by an arrow. The focus initial position is set such that the defocus amount detectable range extends to a farther side than the close end within the defocus amount detectable range including the closest end which is the movable range end of the focus lens 311. I have.

至近端を含むデフォーカス量検出可能範囲内にフォーカス初期位置を設定するのは、AF補助光が到達して焦点検出が可能になる被写体距離が近距離だからである。このため、至近端に限らず、被写体が存在する確率が高い距離として、焦点距離の定数倍や1m等の被写体距離を予め設定し、その被写体距離を含むようにフォーカス初期位置を算出すればよい。至近端ではなく、焦点距離の定数倍や1m等の被写体距離を設定した場合は、より至近側の被写体に対する焦点検出ができない場合が発生するが、遠距離側の被写体距離の範囲を焦点検出可能な範囲とすることができる。   The focus initial position is set within the defocus amount detectable range including the closest end, because the subject distance at which the AF auxiliary light reaches and the focus can be detected is short. For this reason, if the subject distance such as a constant multiple of the focal length or 1 m is set in advance as the distance at which the probability that the subject is present is high, the initial focus position is calculated so as to include the subject distance. Good. If a subject distance such as a constant multiple of the focal length or 1 m is set instead of the closest end, focus detection may not be performed on the closer subject, but focus detection is performed on the range of the far subject distance. It can be in the possible range.

また、AF補助光としての閃光補助光の到達距離を設定し、その到達距離を遠距離側の端としてフォーカス初期位置を設定してもよい。これにより、焦点検出を行う被写体距離を限定することができるため、より適切でマージンのあるフォーカス初期位置を設定することができる。   Alternatively, the reaching distance of the flash auxiliary light as the AF auxiliary light may be set, and the reaching distance may be set as the far end to set the initial focus position. As a result, the subject distance for focus detection can be limited, so that a more appropriate and initial focus position with a margin can be set.

焦点検出情報とは、検出可能デフォーカス量を概算するための焦点検出に関する情報であり、撮像レンズ300のF値、前述した枠情報、焦点検出を行う焦点検出領域の像高および位相差像信号のコントラストのうち少なくとも1つに関する情報である。撮像レンズ300のF値、枠情報および焦点検出領域の像高の情報から、焦点検出を行う一対の光電変換部間の基線長(焦点検出瞳間の重心間隔)やAF光束径(焦点検出瞳において位相差像を形成している光束が通過する範囲)が算出される。基線長が長いほど単位デフォーカス量あたりの一対の位相差像信号間のずれ量が大きくなるため、より精度が良い焦点検出を行える。また、AF光束径が小さいほどデフォーカスによって位相差像信号がぼけにくく、大きくデフォーカスした状態でも一対の位相差像信号間のずれ量の検出が可能になる。なお、AF光束径が大きいほど基線長は長くなる。   The focus detection information is information related to focus detection for estimating a detectable defocus amount, and includes an F value of the imaging lens 300, the above-described frame information, an image height and a phase difference image signal of a focus detection area where focus detection is performed. Is information on at least one of the contrasts. Based on the F value of the imaging lens 300, frame information, and information on the image height of the focus detection area, the base line length (center-of-gravity distance between the focus detection pupils) and the AF beam diameter (focus detection pupil) between a pair of photoelectric conversion units that perform focus detection Is calculated, the range through which the light beam forming the phase contrast image passes) is calculated. The longer the base line length is, the larger the amount of shift between the pair of phase difference image signals per unit defocus amount is, so that more accurate focus detection can be performed. In addition, the smaller the AF light beam diameter, the less the phase difference image signal is blurred due to defocusing, and the amount of displacement between a pair of phase difference image signals can be detected even in a large defocused state. Note that the larger the AF light beam diameter, the longer the base line length.

また、検出可能デフォーカス量は、被写体のコントラストや空間周波数特性等によって異なる。より高い空間周波数の情報を多く有し、コントラストが高い被写体に対しては、より大きくデフォーカスした状態でも焦点検出が可能となる。被写体のコントラストの情報は、例えば位相差像信号における互いに隣接する画素信号の出力差の二乗和を用いればよい。   In addition, the detectable defocus amount differs depending on the contrast of the subject, the spatial frequency characteristics, and the like. For a subject having a lot of information of a higher spatial frequency and having a high contrast, it is possible to perform focus detection even in a larger defocused state. The information on the contrast of the subject may be, for example, the sum of squares of the output differences between mutually adjacent pixel signals in the phase difference image signal.

システム制御部50は、上述した焦点検出情報と対応する検出可能デフォーカス量の情報をテーブル化して記憶している。図9に検出可能デフォーカス量のテーブルの例を示す。上述したように、システム制御部50は、焦点検出情報として、AF光束径と被写体のコントラストを算出し、図9に示すテーブルから検出可能デフォーカス量を取得する。   The system control unit 50 stores the information of the detectable defocus amount corresponding to the focus detection information described above in a table. FIG. 9 shows an example of a table of detectable defocus amounts. As described above, the system control unit 50 calculates the AF beam diameter and the contrast of the subject as the focus detection information, and acquires the detectable defocus amount from the table shown in FIG.

また、閃光補助光の到達距離も、AF光束径に応じて変更してもよい。AF光束径が小さいほど閃光補助光の到達距離は短くなる。これにより、より適切にフォーカス初期位置を設定することができる。   Further, the reaching distance of the flash auxiliary light may be changed according to the AF light beam diameter. The smaller the AF beam diameter, the shorter the reach of the flash auxiliary light. Thereby, the focus initial position can be set more appropriately.

S212でフォーカス初期位置を算出したシステム制御部50は、S213に進み、フォーカスレンズ311を算出されたフォーカス初期位置に移動させる。   The system control unit 50 that has calculated the focus initial position in S212 proceeds to S213, and moves the focus lens 311 to the calculated focus initial position.

次にS214では、システム制御部50は、LED補助光のみの発光が許可されているか否かを判定する。本実施例では、システム制御部50がAF補助光の発光手段としてのフラッシュ48とLEDランプ49の発光を制御する。システム制御部50は、LED補助光のみが発光許可されている場合(閃光補助光の発光が禁止されている場合)は、S215に進み、LEDランプ49のみからLED補助光を発光させて焦点調節処理(以下、LED焦点調節処理という)を行う。一方、閃光補助光の発光が許可されている場合には、システム制御部50は、S216に進み、LED補助光または閃光補助光を発光させて焦点調節処理(以下、LED/閃光焦点調節処理という)を行う。これらの焦点調節処理については詳細を後述する。S215でのLED焦点調節処理またはS216でのLED/閃光焦点調節処理を終えたシステム制御部50は、焦点調節処理を終了する。   Next, in S214, the system control unit 50 determines whether emission of only the LED auxiliary light is permitted. In the present embodiment, the system control unit 50 controls the light emission of the flash 48 and the LED lamp 49 as the light emitting means of the AF auxiliary light. If only the LED auxiliary light is permitted to be emitted (if the emission of the flash auxiliary light is prohibited), the system control unit 50 proceeds to S215, and causes the LED lamp 49 to emit the LED auxiliary light to adjust the focus. Processing (hereinafter, referred to as LED focus adjustment processing) is performed. On the other hand, if the emission of the flash auxiliary light is permitted, the system control unit 50 proceeds to S216, emits the LED auxiliary light or the flash auxiliary light, and performs focus adjustment processing (hereinafter, referred to as LED / flash focus adjustment processing). )I do. Details of these focus adjustment processes will be described later. The system control unit 50 that has completed the LED focus adjustment processing in S215 or the LED / flash focus adjustment processing in S216 ends the focus adjustment processing.

次に、図10のフローチャートを用いて、図6のS9で行われる撮像処理について説明する。まずS301において、システム制御部50は、光量調節のために絞り312を駆動し、露光時間を制御するメカニカルシャッタ12を駆動する。フラッシュ48を閃光発光させて撮像を行う場合には、システム制御部50は、その発光のタイミングに合わせてメカニカルシャッタ12を駆動する。   Next, the imaging process performed in S9 of FIG. 6 will be described with reference to the flowchart of FIG. First, in step S301, the system control unit 50 drives the diaphragm 312 to adjust the amount of light, and drives the mechanical shutter 12 that controls the exposure time. When performing imaging by flashing the flash 48, the system control unit 50 drives the mechanical shutter 12 in accordance with the timing of the light emission.

続いてS302では、システム制御部50は、撮像素子14から静止画撮像のための全画素読み出しを行う。   Subsequently, in S302, the system control unit 50 reads out all pixels from the image sensor 14 for capturing a still image.

次にS303では、システム制御部50(画像処理部20)は、撮像素子14から読み出した撮像信号に対して、事前に記憶された欠陥画素の位置情報に基づく欠陥画素補間を行う。欠陥画素は、画素間の出力オフセットやゲインのばらつきが大きい画素や、撮像に使用されなかった画素(前述した焦点検出専用画素等)が含まれる。   Next, in step S303, the system control unit 50 (image processing unit 20) performs defective pixel interpolation on the image signal read from the image sensor 14 based on the position information of the defective pixel stored in advance. The defective pixel includes a pixel having a large variation in output offset and gain between pixels, and a pixel not used for imaging (such as the focus detection pixel described above).

次にS304では、システム制御部50は、撮像信号に対して、γ補正、色変換、エッジ強調等の画像処理を行って撮像画像データ(静止画データ)を生成する。そしてS305において、システム制御部50は、撮像画像データをメモリ30に記録する。   Next, in S304, the system control unit 50 performs image processing such as γ correction, color conversion, and edge enhancement on the imaging signal to generate captured image data (still image data). Then, in S305, the system control unit 50 records the captured image data in the memory 30.

続いてステップ306において、システム制御部50は、S305にて記録した撮像画像データに対応付けて、カメラ100の特性情報をメモリ30およびシステム制御部50内のメモリに記録する。カメラ100の特性情報とは、例えば、露光時間、現像時の画像処理、撮像素子14の画素の受光感度分布およびカメラ100内での撮像光束のケラレに関する情報である。画素の受光感度分布は、マイクロレンズ201cおよびフォトダイオード201a,201bにより決定されるため、これらの構造に関する情報(フォトダイオード201a,201bの大きさやピッチ、マイクロレンズ201cとの距離等)を記録してもよい。また、カメラ100の特性情報は、カメラ100と撮像レンズ300との取り付け面から撮像素子14までの距離や製造誤差に関する情報も含む。   Subsequently, in step 306, the system control unit 50 records the characteristic information of the camera 100 in the memory 30 and the memory in the system control unit 50 in association with the captured image data recorded in S305. The characteristic information of the camera 100 is, for example, information on an exposure time, image processing at the time of development, a light receiving sensitivity distribution of pixels of the image sensor 14, and vignetting of an imaged light beam in the camera 100. Since the light receiving sensitivity distribution of the pixel is determined by the microlens 201c and the photodiodes 201a and 201b, information on the structure (the size and pitch of the photodiodes 201a and 201b, the distance from the microlens 201c, and the like) is recorded. Is also good. The characteristic information of the camera 100 also includes information on a distance from a mounting surface of the camera 100 and the imaging lens 300 to the imaging device 14 and information on a manufacturing error.

次にS307において、システム制御部50は、S305にて記録した撮像画像データに対応付けて、撮像レンズ300の特性情報をメモリ30とシステム制御部50内のメモリに記録する。撮像レンズ300の特性情報とは、例えば、射出瞳、枠情報、撮像時の焦点距離やFナンバー、撮像光学系の収差および製造誤差に関する情報である。   Next, in S307, the system control unit 50 records the characteristic information of the imaging lens 300 in the memory 30 and the memory in the system control unit 50 in association with the captured image data recorded in S305. The characteristic information of the imaging lens 300 is, for example, information on an exit pupil, frame information, a focal length and F-number at the time of imaging, aberrations of the imaging optical system, and manufacturing errors.

次にS308において、システム制御部50は、撮像画像データに関する画像関連情報をメモリ30およびシステム制御部50内のメモリに記録する。画像関連情報とは、例えば、撮像前の焦点検出動作に関する情報、被写体の移動、焦点検出動作の精度に関する情報である。S307の処理を終了したシステム制御部50は、図6のS10に進む。   Next, in S308, the system control unit 50 records the image-related information on the captured image data in the memory 30 and the memory in the system control unit 50. The image-related information is, for example, information on a focus detection operation before imaging, movement of a subject, and information on accuracy of the focus detection operation. The system control unit 50 that has completed the processing of S307 proceeds to S10 of FIG.

次に、図11のフローチャートを用いて、図7のS206で行われるAF補助光の発光要否判定について説明する。S401において、システム制御部50は、焦点検出領域に関する情報を取得する。ここでは、図6のS6において焦点検出領域モードに従って設定された焦点検出領域の配置、位置および数等の情報を取得する。   Next, with reference to the flowchart of FIG. 11, the determination of the necessity of emission of the AF auxiliary light performed in S206 of FIG. 7 will be described. In S401, the system control unit 50 acquires information on the focus detection area. Here, information such as the arrangement, position, and number of focus detection areas set according to the focus detection area mode in S6 of FIG. 6 is acquired.

次にS402では、システム制御部50は、測光情報を取得する。ここでは、焦点検出領域ごとに対応した測光値と、全ての焦点検出領域を包含する領域の測光値の両方を取得する。   Next, in S402, the system control unit 50 acquires photometric information. Here, both the photometric value corresponding to each focus detection area and the photometric value of the area including all the focus detection areas are acquired.

次にS403では、システム制御部50は、LED補助光と閃光補助光を発光する際の閾値(以下、発光閾値という)を設定する。LED補助光は、撮像範囲に占める照射範囲は狭いが、常時発光が可能であるために発光しながらの焦点検出を行いやすい。一方、閃光補助光は、その照射範囲は広いものの間欠発光するために、焦点検出において多くの回数、発光すると、画像記録用の撮像時の発光量を確保できなくなるおそれがある。このため、S403では、システム制御部50は、LED補助光は発光しやすいが、閃光補助光は発光しにくくなるように発光閾値を設定する。ただし、LED補助光が赤等の単色光である場合の焦点検出誤差やLEDランプ49が撮像レンズ300の近くに配置されることによる撮像レンズ300によるLED補助光のケラレを考慮してし、閃光補助光の方が発光しやすくなるように発光閾値を設定してもよい。   Next, in step S403, the system control unit 50 sets a threshold (hereinafter, referred to as a light emission threshold) for emitting the LED auxiliary light and the flash auxiliary light. The LED auxiliary light has a narrow irradiation range occupying the imaging range, but since it can always emit light, it is easy to perform focus detection while emitting light. On the other hand, since the flash auxiliary light emits intermittently with a wide irradiation range, if the flash auxiliary light is emitted a large number of times in focus detection, it may not be possible to secure a light emission amount at the time of imaging for image recording. For this reason, in S403, the system control unit 50 sets the light emission threshold so that the LED auxiliary light is easily emitted, but the flash auxiliary light is hardly emitted. However, in consideration of the focus detection error when the LED auxiliary light is monochromatic light such as red and the vignetting of the LED auxiliary light by the image pickup lens 300 due to the LED lamp 49 being arranged near the image pickup lens 300, the flashing is performed. The light emission threshold may be set so that the auxiliary light emits light more easily.

次にS404では、システム制御部50は、S402で得られた測光情報が示す測光値とS403で得られたLED補助光の発光閾値とを比較する。ここでの比較に用いる測光値は、全ての焦点検出領域を包含する領域の測光値と各焦点検出領域の測光値である。いずれか1つの測光値がLED補助光の発光閾値より小さい場合は、システム制御部50は、S405に進んでLED発光判定をオン(LED発光許可)に設定する。一方、いずれか1つの測光値がLED補助光の発光閾値以上である場合には、システム制御部50は、S406に進んでLED発光判定をオフ(LED発光禁止)に設定する。   Next, in S404, the system control unit 50 compares the photometric value indicated by the photometric information obtained in S402 with the light emission threshold of the LED auxiliary light obtained in S403. The photometric values used for the comparison here are the photometric value of the area including all the focus detection areas and the photometric value of each focus detection area. If any one of the photometric values is smaller than the light emission threshold value of the LED auxiliary light, the system control unit 50 proceeds to S405 and sets the LED light emission determination to ON (LED light emission permitted). On the other hand, if any one of the photometric values is equal to or greater than the light emission threshold value of the LED auxiliary light, the system control unit 50 proceeds to S406 and sets the LED light emission determination to off (LED light emission prohibited).

次にS407では、システム制御部50は、S402で得られた測光値とS403で得られた閃光補助光の発光閾値とを比較する。ここでも、全ての焦点検出領域を包含する領域の測光値と各焦点検出領域の測光値を用いる。いずれか1つの測光値が閃光補助光の発光閾値より小さい場合は、システム制御部50は、S408に進んで閃光発光判定をオン(閃光発光許可)に設定する。一方、いずれか1つの測光値が閃光補助光の発光閾値以上である場合は、システム制御部50は、S409に進んで閃光発光判定をオフ(閃光発光禁止)に設定する。S408またはS409を終えたシステム制御部50は、本処理を終了する。   Next, in step S407, the system control unit 50 compares the photometric value obtained in step S402 with the light emission threshold value of the flash auxiliary light obtained in step S403. Also in this case, the photometric value of the area including all the focus detection areas and the photometric value of each focus detection area are used. If any one of the photometric values is smaller than the light emission threshold value of the flash auxiliary light, the system control unit 50 proceeds to S408 and sets the flash light emission determination to ON (flash light emission permitted). On the other hand, if any one of the photometric values is equal to or greater than the flash auxiliary light emission threshold, the system control unit 50 proceeds to S409 and sets the flash emission determination to off (flash emission prohibited). The system control unit 50 that has completed S408 or S409 ends this processing.

閃光補助光の発光閾値はLED補助光の発光閾値より小さくしてもよい。閃光補助光は後述するように発光時間が短いため、撮像素子14のフレームレートを高速フレームレート(例えば60fps)に設定することにより、外光を取り込む光量は減少する。そのため外光の影響が少ない発光輝度でのみ閃光補助光を発光させる必要がある。内蔵LEDは常時発光のため、蓄積時間を増加させることで内蔵LEDによる光量を受光できるため、外光の影響がある被写体輝度で発光してもよい。以上から、閃光補助光の発光閾値は内蔵LEDより小さい値にするとよい。   The light emission threshold value of the flash auxiliary light may be smaller than the light emission threshold value of the LED auxiliary light. Since the flash auxiliary light has a short light emission time as described later, by setting the frame rate of the image sensor 14 to a high frame rate (for example, 60 fps), the amount of external light to be taken in decreases. Therefore, it is necessary to emit the flash auxiliary light only at a light emission luminance that is less affected by external light. Since the built-in LED always emits light, the amount of light from the built-in LED can be received by increasing the accumulation time. From the above, the light emission threshold value of the flash auxiliary light is preferably set to a value smaller than the built-in LED.

次に図12のフローチャートを用いて、図7のS215で行われるLED焦点調節処理について説明する。S501において、システム制御部50は、LED補助光を発光させる。LED補助光の発光は、少なくとも後述するS504にて合焦状態が得られるまでは継続させる。   Next, the LED focus adjustment processing performed in S215 of FIG. 7 will be described using the flowchart of FIG. In S501, the system control unit 50 emits LED auxiliary light. The emission of the LED auxiliary light is continued at least until a focused state is obtained in S504 described later.

次のS502からS510までの処理は、それぞれのステップに括弧書きで示すように、図7に示したS201〜S205およびS208〜S211の処理と同じである。   The following processes from S502 to S510 are the same as the processes from S201 to S205 and S208 to S211 shown in FIG.

次に図13のフローチャートを用いて、図7のS216で行われるLED/閃光焦点調節処理について説明する。S601において、システム制御部50は、事前に行われた発光要否判定において閃光補助光のみが発光許可されたか否かを判定する。LED補助光は許可されず、閃光補助光のみが発光許可された場合は、システム制御部50はS605に進む。LED補助光および閃光補助光の両方が発光許可されている場合は、システム制御部50はS602に進む。   Next, the LED / flash focus adjustment process performed in S216 of FIG. 7 will be described with reference to the flowchart of FIG. In step S <b> 601, the system control unit 50 determines whether only the flash auxiliary light has been permitted to be emitted in the emission necessity determination performed in advance. If the LED auxiliary light is not permitted and only the flash auxiliary light is permitted to emit light, the system control unit 50 proceeds to S605. If both the LED auxiliary light and the flash auxiliary light are permitted to emit light, the system control unit 50 proceeds to S602.

S602では、システム制御部50は、被写体有無の判定処理を行う。上述したようにLED補助光は常時発光が可能な反面、照射範囲が狭いことや撮像レンズ300によるケラレが生じやすいという欠点がある。このため、S602では、システム制御部50は、LED補助光が有効に機能する被写体が存在するか否かを判定する。この被写体有無の判定処理については詳細を後述する。   In step S602, the system control unit 50 performs a process of determining the presence or absence of a subject. As described above, although the LED auxiliary light can always emit light, it has disadvantages that the irradiation range is narrow and that the imaging lens 300 is easily vignetted. Therefore, in S602, the system control unit 50 determines whether or not there is a subject for which the LED auxiliary light functions effectively. Details of the subject presence / absence determination processing will be described later.

次にS603では、システム制御部50は、LED補助光が有効に機能する被写体が存在すると判定されたか否かを判定し、存在する場合にはS604に、存在しない場合はS605に進む。   Next, in S603, the system control unit 50 determines whether or not it is determined that there is a subject for which the LED auxiliary light functions effectively. If so, the process proceeds to S604; otherwise, the process proceeds to S605.

S604では、システム制御部50は、図7のS215と同様のLED補助光焦点調節処理を行う。S605では、システム制御部50は、閃光焦点調節処理を行う。この閃光焦点調節処理の詳細については後述する。S604またはS605の処理を終えたシステム制御部50は、LED/閃光焦点調節処理を終了する。   In S604, the system control unit 50 performs the same LED auxiliary light focus adjustment processing as in S215 of FIG. In S605, the system control unit 50 performs a flash focus adjustment process. Details of the flash focus adjustment processing will be described later. The system control unit 50 that has completed the processing of S604 or S605 ends the LED / flash focus adjustment processing.

次に、図14のフローチャートを用いて、図13のS602で行われる被写体有無判定処理について説明する。S701において、システム制御部50は、焦点検出領域の測光情報を取得する。ここでは、図6のS6で設定された焦点検出領域に対応する測光値を取得する。   Next, the subject presence / absence determination processing performed in S602 of FIG. 13 will be described with reference to the flowchart of FIG. In S701, the system control unit 50 acquires photometric information of the focus detection area. Here, a photometric value corresponding to the focus detection area set in S6 of FIG. 6 is obtained.

次にS702では、システム制御部50は、LED補助光を発光する。そして、S703では、システム制御部50は、再度、焦点検出領域に対応する測光値を取得する。   Next, in S702, the system control unit 50 emits the LED auxiliary light. Then, in S703, the system control unit 50 acquires a photometric value corresponding to the focus detection area again.

次にS704では、システム制御部50は、LED補助光の発光を停止する。そして、S705では、システム制御部50は、S701で得られたLED補助光の発光前の測光値からS703で得られたLED発光中の測光値への変化量を算出する。システム制御部50は、LED補助光により照明可能な被写体が存在することで測光値に変化が生ずることを利用して、LED補助光が有効に機能する被写体が存在するか否かを判定する。これにより、被写体の位置がLED補助光の到達範囲外である場合、撮像レンズ300のケラレによりLED補助光が被写体に照射されない場合、被写体距離が遠くてLED補助光が到達しない場合等を検出することができる。   Next, in S704, the system control unit 50 stops emitting the LED auxiliary light. Then, in S705, the system control unit 50 calculates the amount of change from the photometric value before emission of the LED auxiliary light obtained in S701 to the photometric value during LED emission obtained in S703. The system control unit 50 determines whether there is a subject in which the LED auxiliary light functions effectively, utilizing the fact that the photometric value changes due to the presence of the subject that can be illuminated by the LED auxiliary light. Thereby, when the position of the subject is out of the reach of the LED supplementary light, when the subject is not irradiated with the LED supplementary light due to vignetting of the imaging lens 300, when the subject is far away and the LED supplementary light does not reach, it is detected. be able to.

被写体有無判定の方法として、LED補助光の発光中に焦点検出を行い、焦点検出が可能であれば被写体が存在すると判定する方法も考えられる。しかし、この方法では、被写体に対して大きくデフォーカスしている場合に焦点検出が不可能になり、被写体が存在するにもかかわらず存在しないと判定するおそれがある。したがって、LED補助光の発光前後の測光情報の変化を用いて、被写体有無判定を行うことにより、デフォーカス状態によらず適切な被写体有無判定を行うことができる。   As a method of determining the presence or absence of a subject, a method of performing focus detection during emission of LED auxiliary light and determining that a subject is present when focus detection is possible can be considered. However, in this method, when the subject is largely defocused, focus detection becomes impossible, and it may be determined that the subject does not exist even though the subject exists. Therefore, by performing the subject presence / absence determination using the change in the photometric information before and after the emission of the LED auxiliary light, it is possible to perform the appropriate subject presence / absence determination regardless of the defocus state.

次にS705では、システム制御部50は、焦点検出領域に対応する測光値のLED補助光の発光前後で変化が所定値以上であった場合に、LED補助光が有効に機能する被写体が存在すると判定する。そして、本処理を終了する。   Next, in step S705, the system control unit 50 determines that there is a subject in which the LED auxiliary light functions effectively when the change in the photometric value corresponding to the focus detection area before and after the emission of the LED auxiliary light is equal to or greater than a predetermined value. judge. Then, the present process ends.

次に、図15および16を用いて、図14のS605で行われる閃光焦点調節処理について説明する。図15は、閃光補助光の発光時における典型的なフォーカスレンズ311の駆動方法と閃光補助光の発光タイミングを示す。横軸は時間を、縦軸はフォーカス(レンズ)位置を示す。図15は、焦点調節の開始位置から合焦位置までフォーカスレンズ311を駆動した際のフォーカス位置の変化を示している。図15中の黒丸は、閃光補助光を発光したタイミングを示している。   Next, the flash focus adjustment process performed in S605 of FIG. 14 will be described with reference to FIGS. FIG. 15 shows a typical driving method of the focus lens 311 and emission timing of the flash auxiliary light when the flash auxiliary light is emitted. The horizontal axis indicates time, and the vertical axis indicates the focus (lens) position. FIG. 15 shows a change in the focus position when the focus lens 311 is driven from the focus adjustment start position to the focus position. The black circles in FIG. 15 indicate the timing at which the flash auxiliary light was emitted.

まずシステム制御部50は、焦点調節の開始位置にフォーカスレンズ311を停止させた状態で2回、閃光補助光を発光させる(F1)。これは、焦点調節を開始するに当たってデフォーカス量を得るための発光である。フォーカスレンズ311を停止させた状態で行う閃光補助光の発光(間欠発光)を、以下の説明においてステップ閃光発光という。また、ステップ閃光発光を伴う焦点検出は、第1の焦点検出処理に相当する。2回の発光の詳細については後述する。   First, the system control unit 50 emits the flash auxiliary light twice with the focus lens 311 stopped at the focus adjustment start position (F1). This is light emission for obtaining a defocus amount at the start of focus adjustment. The emission of flash auxiliary light (intermittent emission) performed with the focus lens 311 stopped is referred to as step flash emission in the following description. The focus detection accompanied by the step flash emission corresponds to a first focus detection process. The details of the two light emission operations will be described later.

F1の閃光補助光の発光によってデフォーカス量が検出されると、システム制御部50はフォーカスレンズ駆動を開始する(時刻T1)。フォーカスレンズ駆動の開始後、フォーカスレンズ311が合焦位置が近づいてきた場合に、システム制御部50はフォーカスレンズ駆動を継続したまま複数回、閃光補助光を発光させる(M1)。すなわち、閃光補助光を間欠発光させる。フォーカスレンズ駆動中、常に閃光補助光を発光させると、必要な電力が大きくなる。このため、システム制御部50は、フォーカスレンズ駆動前に得られたデフォーカス量を用いて決められた位置にフォーカスレンズ311が到達することに応じて間欠発光を開始する。フォーカスレンズ駆動中に行う閃光補助光の間欠発光を、以下の説明では、レンズ駆動中閃光発光という。また、レンズ駆動中閃光発光を伴って行われる焦点検出は、第2の焦点検出処理に相当する。   When the amount of defocus is detected by the emission of the flash auxiliary light of F1, the system control unit 50 starts driving the focus lens (time T1). When the focus position of the focus lens 311 is approaching after the start of the focus lens driving, the system control unit 50 emits the flash auxiliary light a plurality of times while continuing the focus lens driving (M1). That is, the flash auxiliary light is intermittently emitted. If the flash auxiliary light is always emitted while the focus lens is being driven, the required power will increase. Therefore, the system control unit 50 starts intermittent light emission in response to the focus lens 311 reaching a position determined using the defocus amount obtained before driving the focus lens. The intermittent light emission of the flash auxiliary light performed during driving of the focus lens is referred to as flash light emission during driving of the lens in the following description. The focus detection performed with flash light emission during driving of the lens corresponds to a second focus detection process.

システム制御部50は、レンズ駆動中閃光発光を伴う焦点検出により得られたデフォーカス量に基づく合焦位置にてフォーカスレンズ311を停止させる。その後、システム制御部50は、再度ステップ閃光発光を行い(F2)、所定の合焦範囲内に停止しているか否かを確認する。以上により、閃光焦点調節処理が終了する。   The system control unit 50 stops the focus lens 311 at the in-focus position based on the defocus amount obtained by the focus detection accompanied by flash emission during driving of the lens. After that, the system control unit 50 performs step flash emission again (F2), and confirms whether or not the operation is stopped within a predetermined focusing range. Thus, the flash focus adjustment processing ends.

図16のフローチャートには、上述した閃光焦点調節処理のより詳細を示している。S801において、システム制御部50は、ステップ閃光発光の回数のカウント値を初期化する。本実施例では、ステップ閃光発光の回数に上限を設け、不要に電力を消費することを防ぐ。   The flowchart of FIG. 16 shows the flash focus adjustment processing described above in more detail. In step S801, the system control unit 50 initializes a count value of the number of times of step flash emission. In the present embodiment, an upper limit is set for the number of times of the step flash emission to prevent unnecessary power consumption.

次にS802では、システム制御部50は、ステップ閃光発光を行いながら焦点検出(第1の焦点検出処理)と調光を行う。ここでは、システム制御部50は、焦点検出を行いながら、レンズ駆動中閃光発光の光量を設定するための調光を並行して行う。またS802では、システム制御部50は、後に焦点検出を行う焦点検出領域を選択する。   Next, in step S802, the system control unit 50 performs focus detection (first focus detection processing) and light control while performing step flash emission. Here, the system control unit 50 performs dimming for setting the amount of flash light emission during lens driving while performing focus detection. In step S802, the system control unit 50 selects a focus detection area in which focus detection is to be performed later.

次にS803では、システム制御部50は、S802で信頼性が高い(第1の信頼性より高い第2の信頼性を有する)焦点検出結果が得られたか否かを判定する。信頼性が高い焦点検出結果が得られなかった場合(焦点検出結果が第1の信頼性しか有さない場合)は、システム制御部50は、S804に進んで所定の全てのフォーカス位置でステップ閃光発光を伴う焦点検出を終えたか否かを判定する。   Next, in S803, the system control unit 50 determines whether or not a focus detection result with high reliability (having a second reliability higher than the first reliability) has been obtained in S802. When a highly reliable focus detection result is not obtained (when the focus detection result has only the first reliability), the system control unit 50 proceeds to S804 and performs step flashing at all predetermined focus positions. It is determined whether or not focus detection with light emission has been completed.

本実施例では、上述したように閃光発光を行うためにフォーカスレンズ311をフォーカス初期位置に移動させる。システム制御部50は、フォーカス初期位置での焦点検出が不可能な場合に、無限遠側にフォーカスレンズ311を移動させて停止し、再びステップ閃光発光を伴う焦点検出を行う。ステップ閃光発光を伴う焦点検出の試行回数は任意である。例えば上述したデフォーカス量検出可能範囲ごとにステップ閃光発光を行うことができる。この場合は、ステップ閃光発光回数は、2回より多くなる。また、フォーカス初期位置で発光した後、フォーカスレンズ311の無限端位置からデフォーカス量検出可能範囲分だけ至近側でステップ閃光発光を行ってもよい。この場合は、焦点検出が不可能な場合のステップ閃光発光回数は最大2回となり、より高速に焦点調節の可否を判断することができる。   In this embodiment, as described above, the focus lens 311 is moved to the focus initial position in order to perform flash light emission. When it is impossible to detect the focus at the initial focus position, the system control unit 50 moves the focus lens 311 to the infinity side, stops the focus lens 311 and performs the focus detection with step flash emission again. The number of trials of focus detection involving step flash emission is arbitrary. For example, step flash emission can be performed for each defocus amount detectable range described above. In this case, the number of step flash emission becomes more than two. Further, after the light is emitted at the focus initial position, the step flash light emission may be performed from the infinite end position of the focus lens 311 on the close side by the defocus amount detectable range. In this case, the number of times of step flash emission when focus detection is impossible becomes a maximum of two times, and it is possible to determine whether or not focus adjustment can be performed more quickly.

S804において所定の全てのフォーカス位置でステップ閃光発光を伴う焦点検出を終えた場合は、システム制御部50は、S820に進んで焦点調節が不可能と判定して、S211と同様に非合焦判定表示を行う。一方、S804で所定の全フォーカス位置でステップ閃光発光を伴う焦点検出を終えていない場合は、システム制御部50は、S805で次のフォーカス位置にフォーカスレンズ駆動を行う。そして、S802に戻る。   When the focus detection with the step flash emission has been completed at all the predetermined focus positions in S804, the system control unit 50 proceeds to S820, determines that the focus adjustment is impossible, and determines the out-of-focus state similarly to S211. Display. On the other hand, if the focus detection with the step flash emission has not been completed at all the predetermined focus positions in S804, the system control unit 50 drives the focus lens to the next focus position in S805. Then, the process returns to S802.

S803において信頼性が高い焦点検出結果が得られたと判定したシステム制御部50は、S806に進み、レンズ駆動中閃光発光の条件を設定する。この条件とは、発光を開始するデフォーカス量やフォーカス位置(発光開始フォーカス位置)、さらにフォーカスレンズ311の駆動速度等であり、詳細については後述する。   The system control unit 50, which has determined in S803 that a highly reliable focus detection result has been obtained, proceeds to S806, and sets conditions for flash emission during lens driving. The conditions include a defocus amount at which light emission is started, a focus position (light emission start focus position), a driving speed of the focus lens 311 and the like, and details thereof will be described later.

次にS807において、システム制御部50は、S806で設定した条件に従ってフォーカスレンズ駆動を開始する。そしてS808では、システム制御部50は、フォーカスレンズ311がS806で設定した発光開始フォーカス位置を通過したか否かを判定する。まだ通過していない場合は、システム制御部50は、フォーカスレンズ駆動を継続した状態でS808の判定を繰り返す。一方、フォーカスレンズ311が発光開始フォーカス位置を通過した場合には、システム制御部50は、S809に進んでレンズ駆動中閃光発光を伴う焦点検出(第2の焦点検出処理)を行う。この際、システム制御部50は、画像データを生成する(撮像素子14を駆動する)フレームレートに同期して閃光発光を行わせ、S802で設定(選択)された焦点検出領域から得られる一対の位相差像信号を用いた焦点検出を繰り返し行う。詳細については後述する。   Next, in step S807, the system control unit 50 starts driving the focus lens according to the conditions set in step S806. In step S808, the system control unit 50 determines whether the focus lens 311 has passed the light emission start focus position set in step S806. If it has not passed yet, the system control unit 50 repeats the determination of S808 while driving the focus lens. On the other hand, when the focus lens 311 has passed the light emission start focus position, the system control unit 50 proceeds to S809 and performs focus detection accompanied by flash emission during lens driving (second focus detection processing). At this time, the system control unit 50 causes the flash emission to be performed in synchronization with the frame rate at which the image data is generated (driving the image sensor 14), and a pair of the focus detection areas obtained (selected) in S802 is obtained. Focus detection using the phase difference image signal is repeatedly performed. Details will be described later.

次にS810では、システム制御部50は、レンズ駆動中閃光発光の回数が所定回数以下か否かを判定し、所定回数より多くなった場合にはS820に進み、焦点検出を中断して非合焦判定表示を行う。これは、フォーカスレンズ駆動の開始前に検出した被写体を、その被写体の移動やユーザのフレーミング等によって見失ったとみなし、不要な発光を防ぐために行う処理である。S810においてレンズ駆動中閃光発光の回数が所定回数以下である場合は、システム制御部50は、S811に進む。   Next, in S810, the system control unit 50 determines whether or not the number of flashes during driving the lens is equal to or less than a predetermined number. If the number exceeds the predetermined number, the process proceeds to S820, in which the focus detection is interrupted and the A focus determination display is performed. This is a process performed to prevent unnecessary light emission by regarding a subject detected before the start of focus lens driving as being lost due to the movement of the subject or framing of the user. If the number of flashes during driving of the lens is equal to or less than the predetermined number in S810, the system control unit 50 proceeds to S811.

S811では、システム制御部50は、得られた検出デフォーカス量が所定デフォーカス量以下であるか否かを判定する。検出デフォーカス量が所定デフォーカス量より大きい場合は、システム制御部50は、S809に戻って処理を継続する。検出デフォーカス量が所定デフォーカス量以下である場合は、システム制御部50は、S812に進んでフォーカスレンズ駆動を停止させる。   In S811, the system control unit 50 determines whether the obtained detected defocus amount is equal to or less than a predetermined defocus amount. If the detected defocus amount is larger than the predetermined defocus amount, the system control unit 50 returns to S809 and continues the processing. If the detected defocus amount is equal to or less than the predetermined defocus amount, the system control unit 50 proceeds to S812 and stops driving the focus lens.

そしてS813では、システム制御部50は、S802と同様に、ステップ閃光発光を行いながら(すなわち、フォーカスレンズ駆動を停止させた状態で間欠発光させながら)焦点検出と調光を行う。このように合焦位置の近傍で、再度、調光処理を行うのは、デフォーカス状態の変化によって飽和した一対の位相差像信号を用いて焦点検出を行うことを回避するためである。特に被写体が細い線を含むような場合に、ボケ状態から合焦状態になるにしたがってボケが小さくなり、一対の位相差像信号の輝度レベルが上がって飽和することがある。飽和した一対の位相差像信号は焦点検出誤差を招くので、合焦位置近傍で調光処理を行う。   Then, in step S813, the system control unit 50 performs focus detection and light control while performing step flash emission (that is, performing intermittent light emission while the focus lens driving is stopped), as in step S802. The reason why the light adjustment processing is performed again near the in-focus position is to avoid performing focus detection using a pair of phase difference image signals saturated by a change in the defocus state. In particular, when the object includes a thin line, the blur becomes smaller as the focus changes from the blur state to the focused state, and the luminance level of the pair of phase difference image signals may increase and become saturated. Since a pair of saturated phase difference image signals causes a focus detection error, light adjustment processing is performed near the in-focus position.

S813を終えたシステム制御部50は、S814において、検出デフォーカス量が合焦判定用閾値より小さいか否かを判定する。小さい場合はS815に進み、S205と同様に合焦表示を行って本処理を終了する。   After S813, the system control unit 50 determines in S814 whether the detected defocus amount is smaller than the focus determination threshold. If it is smaller, the process proceeds to S815, in-focus display is performed in the same manner as in S205, and this processing ends.

S814で検出デフォーカス量が合焦判定用閾値より大きいと判定したシステム制御部50は、S816に進み、検出デフォーカス量に基づいてフォーカスレンズ駆動を行う。   The system control unit 50 that has determined in S814 that the detected defocus amount is larger than the focus determination threshold value proceeds to S816, and drives the focus lens based on the detected defocus amount.

S816でのフォーカスレンズ駆動の終了(停止)後、S817において、システム制御部50は、ステップ閃光発光の回数が所定回数以下であるか否かを判定する。ステップ閃光発光はフォーカスレンズ駆動の開始前にも行っているため、ここではフォーカスレンズ駆動の開始前からの合計回数で判定する。ステップ閃光発光回数が所定回数を超えた場合には、システム制御部50はS820に進み、焦点検出を中断して非合焦判定表示を行う。   After the end (stop) of the drive of the focus lens in S816, in S817, the system control unit 50 determines whether or not the number of times of the step flash emission is equal to or less than a predetermined number. Since the step flash emission is also performed before the start of the focus lens driving, the determination is made here based on the total number of times from before the start of the focus lens drive. If the number of times of step flash emission exceeds the predetermined number, the system control unit 50 proceeds to S820, interrupts the focus detection, and performs the out-of-focus determination display.

一方、ステップ閃光発光回数が所定回数以下である場合には、システム制御部50はS818に進み、事前の調光結果に基づいて発光量を設定した閃光補助光の発光と焦点検出を行う。   On the other hand, when the number of times of step flash emission is equal to or less than the predetermined number, the system control unit 50 proceeds to S818, and performs the emission of the flash auxiliary light and the focus detection in which the light emission amount is set based on the previous dimming result.

続いてS818では、S813からのデフォーカス状態の変化が小さいことが想定されるため、システム制御部50は改めて調光を行わずに、S813で得られた調光結果を用いて焦点検出を行う。これにより、不要な発光を行わずに精度の高い焦点検出を実現することができる。S813で得られたデフォーカス量が大きく、S818と大きくデフォーカス状態が異なる場合は、改めてS813と同様の処理を行ってもよい。   Subsequently, in S818, since it is assumed that the change in the defocus state from S813 is small, the system control unit 50 performs focus detection using the dimming result obtained in S813 without performing dimming again. . As a result, highly accurate focus detection can be realized without performing unnecessary light emission. If the defocus amount obtained in S813 is large and the defocus state is largely different from S818, the same processing as S813 may be performed again.

次にS819において、システム制御部50は、ステップ閃光発光回数をインクリメントしてS814に戻る。   Next, in S819, the system control unit 50 increments the number of times of step flash emission, and returns to S814.

次に、図17のフローチャートを用いて、図15のS802で行われる閃光発光を伴う焦点検出と調光処理について説明する。S901において、システム制御部50は、閃光発光を行わない状態で事前に設定された1つ以上の焦点検出領域で焦点検出および焦点検出結果の信頼性判定を行い、信頼性が高い焦点検出結果を記憶する。   Next, with reference to the flowchart of FIG. 17, the focus detection and light adjustment processing involving flash light emission performed in S802 of FIG. 15 will be described. In step S901, the system control unit 50 performs focus detection and reliability determination of the focus detection result in one or more focus detection areas set in advance without performing flash light emission, and outputs a highly reliable focus detection result. Remember.

次にS902では、システム制御部50は、第1の発光量で閃光発光を行わせ、これに同期して撮像素子14から取得した一対の位相差像信号を用いて焦点検出および焦点検出結果の信頼性判定を行い、信頼性が高い焦点検出結果を選択して記憶する。   Next, in S902, the system control unit 50 causes the flash emission to be performed at the first light emission amount, and in synchronization with this, the focus detection and the detection of the focus detection result are performed using the pair of phase difference image signals acquired from the image sensor 14. A reliability determination is performed, and a focus detection result with high reliability is selected and stored.

次にS903では、システム制御部50は、第1の発光量より大きい第2の発光量で閃光発光を行わせ、これに同期して撮像素子14から取得した一対の位相差像信号を用いて焦点検出および焦点検出結果の信頼性判定を行う。そして、信頼性が高い焦点検出結果を選択して記憶する。   Next, in step S <b> 903, the system control unit 50 causes a flash light emission to be performed at a second light emission amount larger than the first light emission amount, and uses a pair of phase difference image signals acquired from the image sensor 14 in synchronization with the flash light emission. The focus detection and the reliability determination of the focus detection result are performed. Then, a focus detection result with high reliability is selected and stored.

次にS904では、システム制御部50は、S901、S902およびS903で得られた焦点検出結果を用いて、複数の焦点検出領域から焦点調節に用いる焦点検出領域を設定する。具体的には、例えば、最も至近側の被写体の存在を示す焦点検出領域を焦点調節に用いる焦点検出領域として設定する。これは、ユーザが撮像を意図する主被写体は近距離側に存在する可能性が高いためである。ただし、焦点調節に用いる焦点検出領域の選択方法はこれに限らない。例えば、閃光発光量が互いに異なる複数回の焦点検出結果に対して平均化処理を行い、平均化された焦点検出結果を用いて焦点調節に用いる焦点検出領域を設定してもよい。   Next, in step S904, the system control unit 50 sets a focus detection area to be used for focus adjustment from a plurality of focus detection areas using the focus detection results obtained in steps S901, S902, and S903. Specifically, for example, a focus detection area indicating the existence of the closest object is set as a focus detection area used for focus adjustment. This is because the main subject that the user intends to image is likely to be on the near distance side. However, the method of selecting a focus detection area used for focus adjustment is not limited to this. For example, averaging processing may be performed on a plurality of focus detection results having different flash light emission amounts, and a focus detection area used for focus adjustment may be set using the averaged focus detection results.

なお、一般に、一対の位相差像信号のコントラストが高い方がデフォーカス量の検出精度が高いが、前述したように一対の位相差像信号が飽和している場合はその限りではない。このため、S902およびS903で得られた一対の位相差像信号の飽和を検出して、飽和した信号から得られた焦点検出結果は用いないようにしてもよい。   In general, the higher the contrast of the pair of phase difference image signals, the higher the detection accuracy of the defocus amount. However, this is not the case when the pair of phase difference image signals are saturated as described above. Therefore, the saturation of the pair of phase difference image signals obtained in S902 and S903 may be detected, and the focus detection result obtained from the saturated signal may not be used.

次にS905では、システム制御部50は、調光処理を行い、調光結果を取得する。システム制御部50は、S904で設定した焦点検出領域がS901で選択した焦点検出結果に対応する焦点検出領域である場合には調光処理を行わない。また、以後の焦点検出の際にはAF補助光を発光させずに焦点検出を行う。一方、S904で選択した焦点検出領域が、S902もしくはS903で選択した焦点検出結果に対応する焦点検出領域である場合には調光処理を行う。   Next, in S905, the system control unit 50 performs a dimming process and acquires a dimming result. If the focus detection area set in S904 is the focus detection area corresponding to the focus detection result selected in S901, the system control unit 50 does not perform the light control processing. In the subsequent focus detection, the focus detection is performed without emitting the AF auxiliary light. On the other hand, when the focus detection area selected in S904 is the focus detection area corresponding to the focus detection result selected in S902 or S903, the light control processing is performed.

さらにシステム制御部50は、選択した焦点検出領域での閃光発光を行わない状態における測光情報と、選択した焦点検出結果が得られた閃光発光の発光量(第1または第2の発光量)に対応する、選択した焦点検出領域の測光情報とを取得する。そして、これら2つの測光情報の差分から焦点検出を行うのに必要十分な発光量を算出する。   Further, the system control unit 50 adds the light metering information in a state where flash light emission is not performed in the selected focus detection area and the flash light emission amount (first or second light emission amount) from which the selected focus detection result is obtained. The corresponding photometric information of the selected focus detection area is acquired. Then, a light emission amount necessary and sufficient for performing focus detection is calculated from the difference between these two photometric information.

閃光発光を行わない状態における測光値をBV_nとし、閃光発光時の測光値をBV_afとし、焦点検出を行うのに必要十分な目標測光値をBV_Tとする。この場合、基準となる発光量、すなわち選択した焦点検出結果が得られた閃光発光量に対するゲインGは、下記の式(1)で算出される。
G=(BV_T‐BV_n)/(BV_af‐BV_n) (1)
式(1)では、測光値がリニアスケールの場合を示しているが、測光情報は対数スケールである場合も多い。この場合、リニアスケールと対数スケールとの間の変換を行ってゲインGを算出すればよい。閃光発光時の測光値が測光可能な範囲外である場合には適切に測光値が計測できない。このため、測光値として信頼性が低い(例えば適露光の5段以上、−5段以下となる測光値)の測光値の場合には信頼性が高い測光値の上限値または下限値でクリップした値を閃光発光時の測光値として、上記の算出を行う。
A photometric value in a state where flash light emission is not performed is BV_n, a photometric value when flash light is emitted is BV_af, and a target photometric value necessary and sufficient for focus detection is BV_T. In this case, the reference light emission amount, that is, the gain G for the flash light emission amount at which the selected focus detection result is obtained is calculated by the following equation (1).
G = (BV_T-BV_n) / (BV_af-BV_n) (1)
Equation (1) shows a case where the photometric value is on a linear scale, but the photometric information is often on a logarithmic scale. In this case, the gain G may be calculated by performing conversion between a linear scale and a logarithmic scale. If the photometric value at the time of flash emission is out of the photometric range, the photometric value cannot be measured properly. For this reason, in the case of a photometric value having low reliability as a photometric value (for example, a photometric value of 5 steps or more and -5 steps or less of an appropriate exposure), clipping is performed at an upper limit or a lower limit of a highly reliable photometric value. The above calculation is performed using the value as a photometric value at the time of flash light emission.

システム制御部50は、得られたゲインGと基準となる発光量とから、以後の閃光補助光の発光量を設定する。これにより、適切な発光量を設定することができ、不要な電力消費を抑えたり、一対の位相差像信号が飽和したりすることによる焦点検出精度の低下を防止したりすることができる。適切な発光量が閃光補助光で可能な発光量の上限より大きい場合には撮像素子のISO感度を上げることで位相差像信号を適切な信号量に調節する。   The system control unit 50 sets the subsequent light emission amount of the flash auxiliary light from the obtained gain G and the reference light emission amount. This makes it possible to set an appropriate light emission amount, to suppress unnecessary power consumption, and to prevent a decrease in focus detection accuracy due to saturation of the pair of phase difference image signals. If the appropriate amount of light emission is larger than the upper limit of the amount of light emission possible with the flash auxiliary light, the ISO sensitivity of the image sensor is increased to adjust the phase difference image signal to an appropriate amount.

S905で調光結果の取得を終えたシステム制御部50は、S906に進み、ステップ閃光発光回数をインクリメントして、本処理を終了する。   The system control unit 50 that has finished acquiring the dimming result in step S905 proceeds to step S906, increments the number of times of step flash emission, and ends this processing.

次に図18のフローチャートを用いて、図16のS806で行われるレンズ駆動中閃光発光の条件設定処理について説明する。システム制御部50は、S1001において撮像レンズの焦点距離の情報を取得し、S1002に進む。   Next, with reference to the flowchart of FIG. 18, a description will be given of the flash drive emission condition setting processing during lens driving performed in S806 of FIG. 16. The system control unit 50 acquires the information on the focal length of the imaging lens in S1001, and proceeds to S1002.

S1002では、システム制御部50は、ステップS1001で取得した焦点距離が所定値(例えば100mm)以上か否かを判定し、所定値以上である場合はS1003に進み、所定値未満である場合はS1004に進む。   In step S1002, the system control unit 50 determines whether the focal length acquired in step S1001 is equal to or larger than a predetermined value (for example, 100 mm). If the focal length is equal to or larger than the predetermined value, the process proceeds to step S1003; Proceed to.

S1003では、システム制御部50は、発光開始デフォーカス量として第1のデフォーカス量を設定し、S1004では発光開始デフォーカス量として第1のデフォーカス量より小さい第2のデフォーカス量を設定して、S1005に進む。   In S1003, the system control unit 50 sets the first defocus amount as the light emission start defocus amount, and sets the second defocus amount smaller than the first defocus amount as the light emission start defocus amount in S1004. Then, the process proceeds to S1005.

本実施例では、撮像レンズの焦点距離に応じて発光開始デフォーカス位置を設定する。焦点距離が長い撮像レンズは一般的に無限端から至近端までのデフォーカス範囲が広いため、フォーカスレンズの駆動速度が速い。一方、焦点距離が短い撮像レンズはデフォーカス範囲が狭いため、フォーカスレンズの駆動速度が遅い。このため、本実施例では、撮像レンズの焦点距離が所定値以上である場合には第1のデフォーカス量を発光開始デフォーカス量とし、焦点距離が所定値より短い場合には第1のデフォーカス量より小さい第2デフォーカス量を発光開始デフォーカス量とする。システム制御部50は、上記のように設定した発光開始デフォーカス量を、現在のフォーカス位置の情報と合わせて発光開始フォーカス位置に変換し、フォーカスレンズ311がその位置に移動することでレンズ駆動中閃光発光を開始してもよい。このように発光開始デフォーカス量を設定することで、補助光を用いた焦点検出が不成功となる確率を少なくすることができる。   In this embodiment, the light emission start defocus position is set according to the focal length of the imaging lens. An imaging lens having a long focal length generally has a wide defocus range from an infinity end to a close end, so that the driving speed of the focus lens is high. On the other hand, an imaging lens having a short focal length has a narrow defocus range, and thus the driving speed of the focus lens is low. For this reason, in the present embodiment, when the focal length of the imaging lens is equal to or longer than a predetermined value, the first defocus amount is set as the light emission start defocus amount, and when the focal length is shorter than the predetermined value, the first defocus amount is set. The second defocus amount smaller than the focus amount is defined as a light emission start defocus amount. The system control unit 50 converts the light emission start defocus amount set as described above into a light emission start focus position in accordance with the information on the current focus position, and moves the focus lens 311 to that position to drive the lens. Flash emission may be started. By setting the light emission start defocus amount in this way, the probability that the focus detection using the auxiliary light is unsuccessful can be reduced.

S1005では、システム制御部50は、フォーカスレンズ311の駆動速度(以下、フォーカス駆動速度という)を設定する。ここでは、システム制御部50は、S1003またはS1004で設定した発光開始デフォーカス量の範囲で所定回数の閃光発光を行うためのフォーカス駆動速度を設定する。例えば、一対の位相差像信号のサンプリングレートが60fpsで、発光開始デフォーカス量D(mm)の範囲内で5回の閃光発光を行うためには、フォーカス駆動速度をD/5×60(mm/s)に設定する。このようにして、システム制御部50は、発光開始デフォーカス量と位相差像信号のサンプリングレート(サンプリング周期)に応じて適切なフォーカス駆動速度を設定する。   In step S1005, the system control unit 50 sets a drive speed of the focus lens 311 (hereinafter, referred to as a focus drive speed). Here, the system control unit 50 sets a focus drive speed for performing a predetermined number of flashes within the range of the light emission start defocus amount set in S1003 or S1004. For example, when the sampling rate of the pair of phase difference image signals is 60 fps and the flash drive is performed five times within the range of the light emission start defocus amount D (mm), the focus drive speed is set to D / 5 × 60 (mm). / s). In this way, the system control unit 50 sets an appropriate focus driving speed according to the light emission start defocus amount and the sampling rate (sampling cycle) of the phase difference image signal.

次にS1006では、システム制御部50は、事前のステップ閃光発光での調光結果を用いて、レンズ駆動中閃光発光における発光量の設定(調整)または撮像信号に対するゲインの設定を行う。発光量とゲインの設定はいずれも一対の位相差像信号に必要なコントラストを発生させるために有効であるが、被写体としての人や動物等の閃光に対する眩しさ、消費電力および一対の位相差像信号のS/Nを考慮して適切な発光量またはゲインを設定する。   Next, in step S <b> 1006, the system control unit 50 sets (adjusts) the light emission amount in the flash light emission while driving the lens or sets the gain for the imaging signal using the dimming result in the step flash light emission in advance. Both the light emission amount and the gain setting are effective to generate the contrast required for a pair of phase difference image signals, but the glare for the flash of a person or an animal as a subject, power consumption and a pair of phase difference image signals are effective. An appropriate light emission amount or gain is set in consideration of the S / N of the signal.

例えば、一対の位相差像信号により大きいコントラストを生じさせるために、被写体が人の場合はゲイン設定で対応し、人ではない場合は発光量で対応する。具体的には、システム制御部50は、フラッシュ48を互いに異なる発光量でステップ閃光発光させながら複数回の焦点検出を行わせるか又は撮像素子から得られる信号に対して互いに異なる複数のゲインを設定することにより複数の焦点検出結果を得る。そして、その後の焦点検出における発光量またはゲインを設定する。上記複数の焦点検出結果に加えて、フラッシュ48を発光させずに得られた焦点検出結果を用いて発光量またはゲインを設定してもよい。S1006を終えたシステム制御部50は、本処理を終了する。   For example, in order to generate a larger contrast between a pair of phase difference image signals, the gain is set when the subject is a person, and the light emission amount when the subject is not a person. Specifically, the system control unit 50 causes the flash 48 to perform a plurality of focus detections while causing the flash 48 to emit step flashes with different light emission amounts, or sets a plurality of different gains to a signal obtained from the image sensor. By doing so, a plurality of focus detection results are obtained. Then, the light emission amount or gain in the subsequent focus detection is set. In addition to the plurality of focus detection results, a light emission amount or a gain may be set using a focus detection result obtained without causing the flash 48 to emit light. After finishing S1006, the system control unit 50 ends this processing.

次に図19を用いて、図16のS809で行われるレンズ駆動中閃光発光および焦点検出について説明する。S1101では、システム制御部50は、撮像素子14を駆動するフレームレートを高速フレームレート(第2のフレームレート)に設定する。例えば、低速フレームレートである30fpsから高速フレームレートの60fpsにする。閃光発光は、発光時間が非常に短いため、撮像素子14の露光時間を長くする必要がない。撮像素子14の全画素行が露光されているタイミングに同期して閃光発光を行えばよい。これにより、閃光発光の照射範囲が十分に広ければ、撮像素子14の全画素領域から得られる一対の位相差像信号のコントラストを確保することができる。   Next, flash emission and focus detection during lens driving performed in S809 of FIG. 16 will be described with reference to FIG. In step S1101, the system control unit 50 sets the frame rate for driving the image sensor 14 to the high-speed frame rate (second frame rate). For example, a low frame rate of 30 fps is changed to a high frame rate of 60 fps. Since the flash light emission time is very short, it is not necessary to lengthen the exposure time of the image sensor 14. The flash light emission may be performed in synchronization with the timing at which all the pixel rows of the image sensor 14 are exposed. Thus, if the irradiation range of the flash light emission is sufficiently wide, the contrast of the pair of phase difference image signals obtained from all the pixel regions of the image sensor 14 can be ensured.

一方、AF補助光を使用しない場合やLED補助光を使用する場合には、撮像素子14の露光時間が長いほど一対の位相差像信号のコントラストを確保することができる。このため、本実施例では、AF補助光を使用しない場合やLED補助光を使用する場合のフレームレート(第1のフレームレート)に対して、閃光補助光を使用する場合のフレームレート(第2のフレームレート)を高速に設定する。これにより、閃光補助光を使用する場合の焦点調節の高速化を実現することができる。   On the other hand, when the AF auxiliary light is not used or when the LED auxiliary light is used, the longer the exposure time of the image sensor 14, the more the contrast of the pair of phase difference image signals can be secured. For this reason, in the present embodiment, the frame rate (the second frame rate) when the flash auxiliary light is used (the second frame rate) when the AF auxiliary light is not used or when the LED auxiliary light is used is used. Frame rate) is set to high speed. Thereby, it is possible to realize a high-speed focus adjustment when the flash auxiliary light is used.

また本実施例では、フレームレートの高速化をレンズ駆動中閃光発光時のみ行う。すなわち、レンズ駆動中閃光発光時には高速フレームレートを用い、ステップ閃光発光時には低速フレームレートを用いる。ステップ閃光発光時の焦点検出は、上述したように閃光発光を行わない場合の焦点検出結果も用いる。このため、ステップ閃光発光時にフレームレートを高速化すると、閃光発光の前後でフレームレートを変更する必要が生じて3回の焦点検出間のタイムラグが拡大する。上述したように閃光発光を使用しない場合と第1の発光量および第2の発光量での閃光発光を使用する場合の焦点検出結果を比較して選択するため、なるべく同じ条件で焦点検出を行うことが望ましい。このため、本実施例では、フォーカスレンズ駆動中の閃光発光時のみフレームレートを高速化する。   In the present embodiment, the frame rate is increased only when the flash is emitted during driving of the lens. That is, a high-speed frame rate is used for flash light emission during lens driving, and a low-speed frame rate is used for step flash light emission. As described above, the focus detection at the time of the step flash emission also uses the focus detection result when no flash emission is performed. For this reason, if the frame rate is increased during the step flash emission, it is necessary to change the frame rate before and after the flash emission, and the time lag between the three focus detections increases. As described above, focus detection is performed under the same conditions as possible, in order to compare and select focus detection results when flash light is not used and when flash light is used at the first light emission amount and the second light emission amount. It is desirable. For this reason, in the present embodiment, the frame rate is increased only during flash light emission during driving of the focus lens.

ただし、フレームレートの切り替えに必要な時間が短い場合にはこれに限らない。閃光発光を使用しない場合と閃光発光を使用する場合とで適宜フレームレートを切り替えて、ステップ閃光発光を伴う焦点検出を行えばよい。   However, this is not limited to the case where the time required for switching the frame rate is short. The frame rate may be appropriately switched between a case where flash light emission is not used and a case where flash light emission is used, and focus detection accompanied by step flash light emission may be performed.

また、上述したように、レンズ駆動中閃光発光時には、信頼性が高い焦点検出結果が得られていることが前提である。得られたデフォーカス量から算出されるフォーカスレンズ駆動量が小さいと焦点調節の高速化の効果が低いため、フレームレートの高速化は省略してもよい。   Further, as described above, it is premised that a highly reliable focus detection result is obtained at the time of flash emission during driving of the lens. If the focus lens driving amount calculated from the obtained defocus amount is small, the effect of speeding up the focus adjustment is low, so that the speeding up of the frame rate may be omitted.

また、レンズ駆動中閃光発光時に焦点検出領域が絞り込まれておらず、閃光発光を使用する場合と閃光発光を使用しない場合の両方で信頼性が高い焦点検出結果が得られる場合にはフレームレートを高速化しなくてもよい。これにより、閃光補助光が到達しない遠距離被写体と閃光補助光が到達する近距離被写体とが混在するような撮像シーンでも、適切に焦点調節を行うことができる。   Also, if the focus detection area is not narrowed down during flash emission while the lens is being driven, and a highly reliable focus detection result can be obtained both when flash emission is used and when flash emission is not used, the frame rate should be set. It is not necessary to speed up. This makes it possible to appropriately perform focus adjustment even in an imaging scene in which a long-distance subject to which the flash auxiliary light does not reach and a short-distance subject to which the flash auxiliary light reaches are mixed.

次にS1102では、システム制御部50は、閃光発光および焦点検出を行う。ここでは、事前に設定された発光量での閃光発光を伴う焦点検出により得られた一対の位相差像信号を用いてデフォーカス量を算出する。   Next, in step S1102, the system control unit 50 performs flash emission and focus detection. Here, the defocus amount is calculated using a pair of phase difference image signals obtained by focus detection accompanied by flash light emission at a preset light emission amount.

そしてS1103では、システム制御部50は、算出したデフォーカス量に基づいてフォーカスレンズ駆動量を更新する。レンズ駆動中の閃光発光および焦点検出では、検出されるデフォーカス量が小さいほど検出誤差が小さい。このため、上述したようにフォーカスレンズ駆動量、言い換えればフォーカスレンズ駆動の目標位置を更新することにより、高精度な焦点調節を行うことができる。   In step S1103, the system control unit 50 updates the focus lens driving amount based on the calculated defocus amount. In flash light emission and focus detection during lens driving, the smaller the detected defocus amount, the smaller the detection error. Therefore, by updating the focus lens drive amount, in other words, the target position of the focus lens drive as described above, it is possible to perform highly accurate focus adjustment.

本実施例では、フォーカスレンズ311を停止させた状態で間欠発光する閃光補助光を用いて行う焦点検出処理と、フォーカスレンズ311を駆動しながら上記閃光補助光を用いて行う焦点検出処理とを、信頼性が高い焦点検出結果が得られるか否かにより切り替える。これにより、信頼性が高い焦点検出結果が得られない場合での不要な閃光補助光の発光を抑制しつつ、高速な焦点調節を実現することができる。   In the present embodiment, a focus detection process performed using the flash auxiliary light that emits light intermittently with the focus lens 311 stopped, and a focus detection process performed using the flash auxiliary light while driving the focus lens 311 include: The switching is performed depending on whether or not a highly reliable focus detection result is obtained. Thereby, it is possible to realize high-speed focus adjustment while suppressing unnecessary emission of the flash auxiliary light when a highly reliable focus detection result cannot be obtained.

本実施例では、S809で取得する焦点検出結果を信頼して焦点調節を行う場合について説明した。しかし、フォーカスレンズ駆動中のあるフォーカス位置(第1の位置)での検出デフォーカス量と、その前にステップ閃光発光を伴う焦点検出を行ったフォーカス位置から第1の位置にフォーカスレンズ駆動した状態で推定される推定デフォーカス量との乖離から信頼性を判定してもよい。これら2つのデフォーカス量の乖離が大きい(すなわち所定差分値より大きい差分値を有する)場合には、フォーカスレンズ駆動の開始前と開始後とで、被写体が大きく移動したり、カメラ100の向きが大きく変化したりした可能性が考えられる。このような場合には、フォーカスレンズ駆動および焦点検出を中断してもよい。これにより、信頼性が保証されていない焦点検出結果を用いた焦点調節を早期に完了させることができる。ユーザは、必要に応じて、再度、焦点調節処理を開始させることで、撮像を意図する被写体に対する焦点調節に要する時間を短縮することができる。   In the present embodiment, a case has been described in which the focus adjustment is performed while relying on the focus detection result acquired in S809. However, the defocus amount detected at a certain focus position (first position) during driving of the focus lens, and the state where the focus lens is driven from the focus position where focus detection with step flash emission was performed to the first position before that The reliability may be determined based on the deviation from the estimated defocus amount estimated in step (1). When the difference between these two defocus amounts is large (that is, the difference value is larger than the predetermined difference value), the subject moves greatly or the direction of the camera 100 changes before and after the start of the focus lens driving. It is possible that it has changed significantly. In such a case, focus lens driving and focus detection may be interrupted. Thereby, the focus adjustment using the focus detection result whose reliability is not guaranteed can be completed early. The user can start the focus adjustment process again as needed, thereby reducing the time required for focus adjustment on the subject to be imaged.

また、S810で説明したフォーカスレンズ駆動中の閃光発光の許容回数は、事前のステップ閃光発光回数に応じて可変としてもよい。上述したように、消費電力を削減したり焦点調節後の画像記録用撮像時の発光量を確保したりする観点から、フォーカスレンズ駆動中の間欠発光回数を適切に設定すればよい。また、間欠発光回数を多くする場合には、発光開始デフォーカス量を大きくすることにより、フォーカスレンズ駆動中の被写体移動の影響を低減して、より確実に焦点検出を行うことができる。   Further, the allowable number of times of flash light emission during driving of the focus lens described in S810 may be variable in accordance with the number of times of previous step flash light emission. As described above, the number of times of intermittent light emission during driving of the focus lens may be appropriately set from the viewpoint of reducing power consumption and securing the amount of light emission during imaging for image recording after focus adjustment. In addition, when the number of intermittent light emission is increased, by increasing the light emission start defocus amount, the influence of the movement of the subject during driving of the focus lens can be reduced, and the focus can be detected more reliably.

本実施例では、予め互いに異なるように決められた発光量で閃光発光を行い、そこで得られた一対の位相差像信号を用いて焦点検出領域の選択やデフォーカス量の算出を行う。また、選択した焦点検出結果が得られた発光量を基準として、それ以後の発光量を調整する調光処理を行う。これにより、焦点検出を行う前に、調光処理を行う必要がないため、迅速な焦点調節を行うことができる。また、ステップ閃光発光時に調光を行うことにより、1回の閃光発光で信頼性が高い焦点検出結果を得ることができる。このため、レンズ駆動中閃光発光やこれ以後のステップ閃光発光の回数を低減することが可能である。   In the present embodiment, flash light emission is performed with a light emission amount determined differently in advance, and a focus detection area is selected and a defocus amount is calculated using a pair of phase difference image signals obtained therefrom. Further, based on the light emission amount at which the selected focus detection result is obtained, light adjustment processing for adjusting the light emission amount thereafter is performed. Accordingly, it is not necessary to perform the light adjustment processing before performing the focus detection, and thus the focus can be quickly adjusted. Further, by performing dimming at the time of step flash emission, a highly reliable focus detection result can be obtained with one flash emission. For this reason, it is possible to reduce the number of times of flash light emission during driving of the lens and the number of step flash light emissions thereafter.

また、本実施例では、位相差像信号のコントラストの調整を主として発光量を調整することにより実現する。しかし、撮像素子14から読み出す撮像信号のゲイン調整により実現してもよい。発光量による調整では、被写体の反射率や距離等により、より近くて反射率が高い被写体のコントラストの調整に効果が大きく、位相差像信号のS/N比が改善される。一方、ゲイン調整によるコントラストの調整では、焦点検出信号のS/N比は改善されないが、被写体の距離や反射率によらず、より容易にコントラストの調整を行うことができる。   In this embodiment, the adjustment of the contrast of the phase difference image signal is realized mainly by adjusting the light emission amount. However, it may be realized by adjusting the gain of the image signal read from the image sensor 14. In the adjustment based on the light emission amount, the effect of adjusting the contrast of a subject that is closer and has a higher reflectance is great depending on the reflectance and distance of the subject, and the S / N ratio of the phase difference image signal is improved. On the other hand, in the contrast adjustment by the gain adjustment, the S / N ratio of the focus detection signal is not improved, but the contrast can be adjusted more easily irrespective of the distance and the reflectance of the subject.

また、本実施例では、レンズ駆動中閃光発光を行う前に焦点検出領域が決定している場合について説明した。ただし、上述した自動選択モード等、信頼性が高い焦点検出結果が得られたものの焦点検出領域を絞り込まないモードでは、個々の焦点検出領域に対応した発光量の調整は行えない。このため、第1の発光量、第2の発光量および発光無しのいずれかから選択すればよい。例えば、より多くの信頼性が高い焦点検出結果やより近距離の近い被写体の存在を示す焦点検出結果に対応する発光量を選択すればよい。   Further, in the present embodiment, a case has been described in which the focus detection area is determined before flash light emission is performed during driving of the lens. However, in a mode in which a highly reliable focus detection result is obtained but a focus detection area is not narrowed down, such as the above-described automatic selection mode, the light emission amount cannot be adjusted corresponding to each focus detection area. Therefore, one of the first light emission amount, the second light emission amount, and no light emission may be selected. For example, a light emission amount corresponding to a more reliable focus detection result or a focus detection result indicating the presence of an object at a shorter distance may be selected.

本発明の実施例2について説明する。なお、実施例1の場合と共通または同様の構成要素については実施例1と同じ符号を付して説明に代える。   A second embodiment of the present invention will be described. Note that components that are the same as or similar to those in the first embodiment are denoted by the same reference numerals as in the first embodiment, and description thereof is omitted.

図20を用いて、本実施例におけるレンズ駆動中閃光発光の条件設定処理について説明する。この処理は、実施例1で図18を用いて説明したレンズ駆動中閃光発光の条件設定処理に代えて、図16のS806で行われる。システム制御部50は、S1201においてフォーカス駆動速度を設定し、S1202に進む。   A condition setting process of flash light emission during lens driving according to the present embodiment will be described with reference to FIG. This process is performed in step S806 in FIG. 16 instead of the condition setting process of flash light emission during lens driving described with reference to FIG. 18 in the first embodiment. The system control unit 50 sets the focus drive speed in S1201, and proceeds to S1202.

S1202では、システム制御部50は、第2の焦点検出処理でのレンズ駆動中閃光発光における間欠発光回数(例えば5回)を設定する。   In step S <b> 1202, the system control unit 50 sets the number of intermittent flashes (for example, five times) in the flash emission during the lens driving in the second focus detection processing.

次にS1203では、システム制御部50は、レンズ駆動中閃光発光を開始する発光開始デフォーカス量をフォーカス駆動速度に応じて設定する。第2の焦点検出処理での間欠発光回数をCとし、撮像素子14を駆動するフレームレートをR[frame/sec]とし、フォーカス駆動速度をV[mm/sec]とする。システム制御部50は、発光開始デフォーカス量Defを下記の式(2)により算出する。
Def=C/R×V (2)
すなわち、システム制御部50は、発光開始デフォーカス量Defを、フォーカス駆動速度Vが速いほど大きくなるように、逆に言えばフォーカス駆動速度Vが遅いほど小さくなるように設定する。
次にS1204では、システム制御部50は、事前のステップ閃光発光での調光結果を用いて、レンズ駆動中閃光発光における発光量の設定(調整)または撮像信号に対するゲインの設定を行う。ここでの発光量やゲインの設定の方法は、実施例1(S1006)で説明した通りである。S1204を終えたシステム制御部50は、本処理を終了する。
Next, in step S <b> 1203, the system control unit 50 sets a flash start defocus amount for starting flash emission during driving of the lens according to the focus drive speed. In the second focus detection process, the number of intermittent light emission is C, the frame rate for driving the image sensor 14 is R [frame / sec], and the focus drive speed is V [mm / sec]. The system control unit 50 calculates the light emission start defocus amount Def by the following equation (2).
Def = C / R × V (2)
That is, the system control unit 50 sets the light emission start defocus amount Def such that it increases as the focus driving speed V increases, or conversely, decreases as the focus driving speed V decreases.
Next, in step S1204, the system control unit 50 sets (adjusts) the light emission amount in the flash light emission during driving of the lens or sets the gain for the image pickup signal using the dimming result in the step flash light emission in advance. The method of setting the light emission amount and the gain here is as described in the first embodiment (S1006). After finishing S1204, the system control unit 50 ends this processing.

本実施例では、フォーカス駆動速度に応じて発光開始デフォーカス量を設定することで、撮像光学系が異なることでフォーカス駆動速度が異なる場合でも、フォーカスレンズ駆動中に一定の間欠発光回数を維持して閃光発光を行うことができる。この結果、焦点検出が不成功となる確率を少なくすることができる。   In the present embodiment, by setting the light emission start defocus amount in accordance with the focus drive speed, even when the focus drive speed differs due to different imaging optical systems, a constant number of intermittent light emission is maintained during the focus lens drive. Flash light can be emitted. As a result, the probability of unsuccessful focus detection can be reduced.

なお、本実施例のようにフォーカス駆動速度に応じてだけでなく、実施例1で説明したように撮像光学系の焦点距離にも応じて発光開始デフォーカス量を設定してもよい。つまり、撮像光学系の焦点距離とフォーカス駆動速度のうち少なくとも一方に応じて発光開始デフォーカス量を設定してもよい。   The light emission start defocus amount may be set not only according to the focus drive speed as in the present embodiment but also according to the focal length of the imaging optical system as described in the first embodiment. That is, the light emission start defocus amount may be set according to at least one of the focal length of the imaging optical system and the focus drive speed.

本発明の実施例3について説明する。なお、実施例1の場合と共通または同様の構成要素については実施例1と同じ符号を付して説明に代える。本実施例では、システム制御部50は、レンズ駆動中閃光発光において、焦点検出により得られる検出デフォーカス量が発光間隔デフォーカス量だけ変化するごとに発光させる。すなわち、発光間隔デフォーカス量は、間欠発光における閃光発光と閃光発光との間で変化する検出デフォーカス量である。   Third Embodiment A third embodiment of the present invention will be described. Note that components that are the same as or similar to those in the first embodiment are denoted by the same reference numerals as in the first embodiment, and description thereof is omitted. In the present embodiment, the system control unit 50 emits light in the flash light emission during driving of the lens every time the detected defocus amount obtained by focus detection changes by the light emission interval defocus amount. That is, the light emission interval defocus amount is a detected defocus amount that changes between flash light emission and intermittent light emission.

図21を用いて、本実施例におけるレンズ駆動中閃光発光の条件設定処理について説明する。この処理は、実施例1で図18を用いて説明したレンズ駆動中閃光発光の条件設定処理に代えて、図16のS806で行われる。システム制御部50は、S1301においてフォーカス駆動速度を設定し、S1302に進む。   With reference to FIG. 21, a description will be given of a condition setting process of flash light emission during lens driving according to the present embodiment. This process is performed in step S806 in FIG. 16 instead of the condition setting process of flash light emission during lens driving described with reference to FIG. 18 in the first embodiment. The system control unit 50 sets the focus drive speed in S1301, and proceeds to S1302.

S1302では、システム制御部50は、レンズ駆動中閃光発光における間欠発光回数(例えば5回)を設定する。   In step S1302, the system control unit 50 sets the number of intermittent light emissions (for example, five times) in flash light emission during driving of the lens.

次にS1303において、システム制御部50は、レンズ駆動中閃光発光における発光間隔デフォーカス量を設定する。本実施例では、撮像素子14の全画素行が露光されているタイミングに同期して閃光発光を行うが、発光間隔はフォーカス駆動速度に応じて異なるように設定する。   Next, in step S1303, the system control unit 50 sets the light emission interval defocus amount in flash light emission during driving of the lens. In this embodiment, the flash light emission is performed in synchronization with the timing at which all the pixel rows of the image sensor 14 are exposed, but the light emission interval is set to be different depending on the focus drive speed.

焦点検出領域401で取得された検出デフォーカス量をD2とし、第2の焦点検出処理での間欠発光回数をC2とし、撮像素子14を駆動するフレームレートをR2[frame/sec]とし、フォーカス駆動速度をV2[mm/sec]とする。また、検出デフォーカス量と間欠発光回数の比をD2/C2とし、フォーカス駆動速度とフレームレートの比の値V2/R2とする。システム制御部50は、D2/C2とV2/R2の比であるD2/C2/(V2/R2)をKとして計算する。この際、Kの小数は切り上げて、整数値として計算する。システム制御部50は、発光間隔デフォーカス量Def2を、下記の式(3)により計算する。
Def2=V2/R2×K (3)
すなわち、システム制御部50は、発光間隔デフォーカス量Def2を、フォーカス駆動速度V2が速いほど、検出デフォーカス量D2が大きいほど、間欠発光回数C2が少ないほど、さらにフレームレートR2が遅いほど、大きくなるように設定する。言い換えれば、システム制御部50は、発光間隔デフォーカス量Def2を、フォーカス駆動速度V2が遅いほど、検出デフォーカス量D2が小さいほど、間欠発光回数C2が多いほど、さらにフレームレートR2が速いほど、小さくなるように設定する。
When the detected defocus amount acquired in the focus detection area 401 is D2, the number of intermittent light emission in the second focus detection processing is C2, the frame rate for driving the image sensor 14 is R2 [frame / sec], and focus driving is performed. The speed is set to V2 [mm / sec]. The ratio between the detected defocus amount and the number of intermittent light emission is D2 / C2, and the ratio of the focus drive speed to the frame rate is V2 / R2. The system control unit 50 calculates D2 / C2 / (V2 / R2), which is the ratio of D2 / C2 to V2 / R2, as K. At this time, the decimal number of K is rounded up and calculated as an integer value. The system control unit 50 calculates the light emission interval defocus amount Def2 by the following equation (3).
Def2 = V2 / R2 × K (3)
That is, the system control unit 50 increases the light emission interval defocus amount Def2 as the focus drive speed V2 is faster, the detected defocus amount D2 is larger, the number of intermittent light emission C2 is smaller, and the frame rate R2 is lower. Set to be. In other words, the system control unit 50 sets the light emission interval defocus amount Def2 as the focus drive speed V2 is slower, the detected defocus amount D2 is smaller, the number of intermittent light emission C2 is larger, and the frame rate R2 is faster. Set to be smaller.

システム制御部50は、このように算出した発光間隔デフォーカス量Def2で、かつ撮像素子14の駆動周期(1/フレームレート)に同期してレンズ駆動中閃光発光を行う。   The system control unit 50 emits flash light during driving of the lens at the light emission interval defocus amount Def2 calculated in this manner and in synchronization with the drive cycle (1 / frame rate) of the image sensor 14.

次にS1304では、システム制御部50は、事前のステップ閃光発光での調光結果を用いて、レンズ駆動中閃光発光における発光量の設定(調整)または撮像信号に対するゲインの設定を行う。ここでの発光量やゲインの設定の方法は、実施例1(S1006)で説明した通りである。S1304を終えたシステム制御部50は、本処理を終了する。   Next, in step S1304, the system control unit 50 sets (adjusts) the light emission amount in the flash light emission during driving of the lens or sets the gain for the imaging signal using the dimming result in the step flash light emission in advance. The method of setting the light emission amount and the gain here is as described in the first embodiment (S1006). After finishing S1304, the system control unit 50 ends this processing.

次に図22のフローチャートを用いて、本実施例におけるレンズ駆動中閃光発光および焦点検出について説明する。この処理は、実施例1で図19を用いて説明したレンズ駆動中閃光発光および焦点検出に代えて、図16のS809で行われる。   Next, flash emission during lens driving and focus detection in this embodiment will be described with reference to the flowchart of FIG. This processing is performed in step S809 in FIG. 16 instead of the flash emission and focus detection during lens driving described with reference to FIG. 19 in the first embodiment.

S1401では、システム制御部50は、撮像素子14を駆動するフレームレートを高速フレームレート(第2のフレームレート)に設定する。この詳細は実施例1で説明した通りである。   In step S1401, the system control unit 50 sets the frame rate for driving the image sensor 14 to a high-speed frame rate (second frame rate). The details are as described in the first embodiment.

次にS1402では、システム制御部50は、閃光発光および焦点検出を行う。ここでは、事前に設定された発光量での閃光発光を伴う焦点検出により得られた一対の位相差像信号を用いてデフォーカス量を算出する。   Next, in step S1402, the system control unit 50 performs flash emission and focus detection. Here, the defocus amount is calculated using a pair of phase difference image signals obtained by focus detection accompanied by flash light emission at a preset light emission amount.

次にS1403では、システム制御部50は、上述したS1303で設定した発光間隔デフォーカス量を更新するか否かを判定する。具体的には、システム制御部50は、図16のS802の時点からS1402の時点までのフォーカスレンズ311の駆動量に相当するデフォーカス量(以下、デフォーカス減少量という)を算出する。そして、システム制御部50は、S802で算出したデフォーカス量からデフォーカス減少量を減算したデフォーカス量とS1402で算出したデフォーカス量との差を算出する。システム制御部50は、算出した差が所定値以上である場合には、S802で算出したデフォーカス量の誤差が大きいとみなして、発光間隔デフォーカス量の更新をするためにS1404に進む。一方、算出した差が所定値未満である場合には、発光間隔デフォーカス量の更新をせずにS1405に進む。   Next, in step S1403, the system control unit 50 determines whether to update the light emission interval defocus amount set in step S1303. Specifically, the system control unit 50 calculates a defocus amount (hereinafter, referred to as a defocus decrease amount) corresponding to the drive amount of the focus lens 311 from the time point of S802 to the time point of S1402 in FIG. Then, the system control unit 50 calculates a difference between the defocus amount obtained by subtracting the defocus reduction amount from the defocus amount calculated in S802 and the defocus amount calculated in S1402. If the calculated difference is equal to or larger than the predetermined value, the system control unit 50 determines that the error in the defocus amount calculated in S802 is large, and proceeds to S1404 to update the light emission interval defocus amount. On the other hand, if the calculated difference is less than the predetermined value, the process advances to step S1405 without updating the light emission interval defocus amount.

S1404では、システム制御部50は、S1303と同様に発光間隔デフォーカス量を設定し、つまりは更新してS1405に進む。   In step S1404, the system control unit 50 sets the light emission interval defocus amount similarly to step S1303, that is, updates the defocus amount, and proceeds to step S1405.

そしてS1405では、システム制御部50は、算出したデフォーカス量に基づいてフォーカスレンズ駆動量を更新して本処理を終了する。   In step S1405, the system control unit 50 updates the focus lens driving amount based on the calculated defocus amount, and ends the process.

本実施例によれば、フォーカス駆動速度に応じて発光間隔デフォーカス量を設定することで、撮像光学系が異なるためにフォーカス駆動速度が異なる場合でも、フォーカスレンズ駆動中に一定の間欠発光回数を維持して閃光発光を行うことができる。この結果、焦点検出が不成功となる確率を少なくすることができる。   According to the present embodiment, by setting the light emission interval defocus amount in accordance with the focus drive speed, even when the focus drive speed is different due to a different imaging optical system, a certain number of intermittent light emission during the focus lens drive can be performed. Flash light emission can be performed while maintaining. As a result, the probability of unsuccessful focus detection can be reduced.

なお、発光間隔デフォーカス量を、フォーカス駆動速度、検出デフォーカス量、間欠発光回数およびフレームレートのうち少なくとも1つに応じて設定してもよい。
(その他の実施例)
本発明は、上述の実施形態の1以上の機能を実現するプログラムを、ネットワーク又は
記憶媒体を介してシステム又は装置に供給し、そのシステム又は装置のコンピュータにお
ける1つ以上のプロセッサーがプログラムを読出し実行する処理でも実現可能である。ま
た、1以上の機能を実現する部(例えば、ASIC)によっても実現可能である。
Note that the light emission interval defocus amount may be set according to at least one of the focus drive speed, the detected defocus amount, the number of intermittent light emission, and the frame rate.
(Other Examples)
The present invention supplies a program for realizing one or more functions of the above-described embodiments to a system or an apparatus via a network or a storage medium, and one or more processors in a computer of the system or the apparatus read and execute the program. It can also be realized by the following processing. Further, it can also be realized by a unit (for example, an ASIC) that realizes one or more functions.

以上説明した各実施例は代表的な例にすぎず、本発明の実施に際しては、各実施例に対
して種々の変形や変更が可能である。
Each of the embodiments described above is merely a representative example, and various modifications and changes can be made to each embodiment in practicing the present invention.

14 撮像素子
48 フラッシュ
50 システム制御部
311 フォーカスレンズ
14 Image sensor 48 Flash 50 System controller 311 Focus lens

Claims (10)

撮像光学系により形成される被写体像を撮像する撮像素子と、
前記撮像素子からの出力を用いて焦点検出を行う焦点検出手段と、
前記焦点検出手段の制御、前記焦点検出の結果に応じたフォーカス素子の駆動の制御および被写体を照明する発光手段の制御を行う制御手段とを有し、
前記制御手段は、
前記フォーカス素子を駆動しながら前記焦点検出手段に前記焦点検出を行わせる際に、該焦点検出により得られた検出デフォーカス量が発光開始デフォーカス量になることに応じて前記発光手段に間欠発光を開始させ、
前記発光開始デフォーカス量を、前記撮像光学系の焦点距離および前記フォーカス素子の駆動速度のうち少なくとも1つに応じて設定することを特徴とする撮像装置。
An imaging element for capturing a subject image formed by the imaging optical system;
Focus detection means for performing focus detection using an output from the image sensor,
Control means for controlling the focus detection means, controlling the driving of the focus element according to the result of the focus detection, and controlling the light emitting means for illuminating the subject,
The control means includes:
When causing the focus detection unit to perform the focus detection while driving the focus element, the light emission unit intermittently emits light in response to the detected defocus amount obtained by the focus detection becoming the emission start defocus amount. To start,
An imaging apparatus, wherein the light emission start defocus amount is set according to at least one of a focal length of the imaging optical system and a driving speed of the focus element.
前記制御手段は、前記焦点距離が所定値より長い場合には第1のデフォーカス量を前記発光開始デフォーカス量に設定し、前記焦点距離が前記所定値より短い場合には前記第1のデフォーカス量より小さい第2のデフォーカス量を前記発光開始デフォーカス量に設定することを特徴とする請求項1に記載の撮像装置。   The control means sets a first defocus amount to the light emission start defocus amount when the focal length is longer than a predetermined value, and sets the first defocus amount when the focal length is shorter than the predetermined value. The imaging apparatus according to claim 1, wherein a second defocus amount smaller than a focus amount is set as the light emission start defocus amount. 前記制御手段は、前記発光開始デフォーカス量を、前記駆動速度が遅いほど、小さくなるように設定することを特徴とする請求項1に記載の撮像装置。   2. The imaging apparatus according to claim 1, wherein the control unit sets the light emission start defocus amount to be smaller as the driving speed is lower. 3. 前記制御手段は、
前記フォーカス素子を停止させた状態で前記発光手段を間欠発光させて前記焦点検出手段に前記焦点検出を行わせる第1の焦点検出処理と、前記フォーカス素子を移動させながら前記発光手段を間欠発光させて前記焦点検出手段に前記焦点検出を行わせる第2の焦点検出処理とを切り替えて行い、
前記発光開始デフォーカス量を前記第2の焦点検出処理において設定することを特徴とする請求項1から3のいずれか一項に記載の撮像装置。
The control means includes:
A first focus detection process in which the light emitting unit is intermittently lit while the focus element is stopped and the focus detection unit performs the focus detection, and wherein the light emitting unit is intermittently lit while moving the focus element. Switching to a second focus detection process for causing the focus detection means to perform the focus detection,
The imaging apparatus according to any one of claims 1 to 3, wherein the emission start defocus amount is set in the second focus detection processing.
撮像光学系により形成される被写体像を撮像する撮像素子と、
前記撮像素子からの出力を用いて焦点検出を行う焦点検出手段と、
前記焦点検出手段の制御、前記焦点検出の結果に応じたフォーカス素子の駆動の制御および被写体を照明する発光手段の制御を行う制御手段とを有し、
前記制御手段は、
前記フォーカス素子を駆動しながら前記焦点検出手段に前記焦点検出を行わせる際に、該焦点検出により得られた検出デフォーカス量が発光間隔デフォーカス量だけ変化するごとに発光させるように前記発光手段を間欠発光させ、
前記発光間隔デフォーカス量を、前記フォーカス素子の駆動速度、前記検出デフォーカス量、前記発光手段の間欠発光回数および前記撮像素子の駆動するフレームレートのうち少なくとも1つに応じて設定することを特徴とする撮像装置。
An imaging element for capturing a subject image formed by the imaging optical system;
Focus detection means for performing focus detection using an output from the image sensor,
Control means for controlling the focus detection means, controlling the driving of the focus element according to the result of the focus detection, and controlling the light emitting means for illuminating the subject,
The control means includes:
When the focus detecting unit performs the focus detection while driving the focus element, the light emitting unit emits light every time a detected defocus amount obtained by the focus detection changes by a light emission interval defocus amount. Flashes intermittently,
The light emitting interval defocus amount is set according to at least one of a driving speed of the focus element, the detected defocus amount, the number of intermittent light emission of the light emitting unit, and a frame rate at which the imaging element is driven. Imaging device.
前記制御手段は、前記発光間隔デフォーカス量を、前記駆動速度が遅いほど、前記検出デフォーカス量が小さいほど、前記閃光発光回数が多いほどおよび前記フレームレートが速いほど、小さくなるように設定することを特徴とする請求項5に記載の撮像装置。   The control unit sets the light emission interval defocus amount to be smaller as the driving speed is lower, the detected defocus amount is smaller, the number of times of flash emission is larger, and the frame rate is faster. The imaging device according to claim 5, wherein: 前記制御手段は、
前記フォーカス素子を停止させた状態で前記発光手段を間欠発光させて前記焦点検出手段に前記焦点検出を行わせる第1の焦点検出処理と、前記フォーカス素子を移動させながら前記発光手段を間欠発光させて前記焦点検出手段に前記焦点検出を行わせる第2の焦点検出処理とを切り替えて行い、
前記発光間隔デフォーカス量を前記第2の焦点検出処理において設定することを特徴とする請求項5または6に記載の撮像装置。
The control means includes:
A first focus detection process in which the light emitting unit is intermittently lit while the focus element is stopped and the focus detection unit performs the focus detection, and wherein the light emitting unit is intermittently lit while moving the focus element. Switching to a second focus detection process for causing the focus detection means to perform the focus detection,
The imaging apparatus according to claim 5, wherein the light emission interval defocus amount is set in the second focus detection processing.
撮像光学系により形成される被写体像を撮像する撮像素子を有し、前記撮像素子からの出力を用いて焦点検出を行い、該焦点検出の結果に応じたフォーカス素子の駆動の制御および被写体を照明する発光手段の制御を行う撮像装置の制御方法であって、
前記フォーカス素子を駆動しながら前記焦点検出を行うステップと、
前記焦点検出において、該焦点検出により得られた検出デフォーカス量が発光開始デフォーカス量になることに応じて前記発光手段に間欠発光を開始させるステップとを有し、
前記発光開始デフォーカス量を、前記撮像光学系の焦点距離および前記フォーカス素子の駆動速度のうち少なくとも1つに応じて設定することを特徴とする撮像装置の制御方法。
An image pickup device for picking up an image of a subject formed by an image pickup optical system, performing focus detection using an output from the image pickup device, controlling drive of the focus element according to a result of the focus detection, and illuminating the subject; A method of controlling an imaging device that controls a light emitting unit to perform,
Performing the focus detection while driving the focus element;
In the focus detection, a step of causing the light emitting unit to start intermittent light emission in accordance with the detected defocus amount obtained by the focus detection becomes a light emission start defocus amount,
A method of controlling an imaging apparatus, wherein the light emission start defocus amount is set according to at least one of a focal length of the imaging optical system and a driving speed of the focus element.
撮像光学系により形成される被写体像を撮像する撮像素子を有し、前記撮像素子からの出力を用いて焦点検出を行い、該焦点検出の結果に応じたフォーカス素子の駆動の制御および被写体を照明する発光手段の制御を行う撮像装置の制御方法であって、
前記フォーカス素子を駆動しながら前記焦点検出を行うステップと、
前記焦点検出において、該焦点検出により得られた検出デフォーカス量が発光間隔デフォーカス量だけ変化するごとに発光させるように前記発光手段を間欠発光させるステップとを有し、
前記発光間隔デフォーカス量を、前記フォーカス素子の駆動速度、前記検出デフォーカス量、前記発光手段の間欠発光回数および前記撮像素子の駆動するフレームレートのうち少なくとも1つに応じて設定することを特徴とする撮像装置の制御方法。
An image pickup device for picking up an image of a subject formed by an image pickup optical system, performing focus detection using an output from the image pickup device, controlling drive of the focus element according to a result of the focus detection, and illuminating the subject; A method of controlling an imaging device that controls a light emitting unit to perform,
Performing the focus detection while driving the focus element;
In the focus detection, the step of intermittently emitting the light emitting means so as to emit light every time the detected defocus amount obtained by the focus detection changes by the light emission interval defocus amount,
The light emitting interval defocus amount is set according to at least one of a driving speed of the focus element, the detected defocus amount, the number of intermittent light emission of the light emitting unit, and a frame rate at which the imaging element is driven. A control method of the imaging device.
撮像装置のコンピュータに、請求項8または9に記載の制御方法に従う処理を実行させることを特徴とするコンピュータプログラム。   A computer program for causing a computer of an imaging device to execute a process according to the control method according to claim 8.
JP2018123625A 2018-06-28 2018-06-28 IMAGING DEVICE, ACCESSORY DEVICE AND CONTROL METHOD THEREOF Active JP7195783B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2018123625A JP7195783B2 (en) 2018-06-28 2018-06-28 IMAGING DEVICE, ACCESSORY DEVICE AND CONTROL METHOD THEREOF

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2018123625A JP7195783B2 (en) 2018-06-28 2018-06-28 IMAGING DEVICE, ACCESSORY DEVICE AND CONTROL METHOD THEREOF

Publications (2)

Publication Number Publication Date
JP2020003672A true JP2020003672A (en) 2020-01-09
JP7195783B2 JP7195783B2 (en) 2022-12-26

Family

ID=69099950

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2018123625A Active JP7195783B2 (en) 2018-06-28 2018-06-28 IMAGING DEVICE, ACCESSORY DEVICE AND CONTROL METHOD THEREOF

Country Status (1)

Country Link
JP (1) JP7195783B2 (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013165318A (en) * 2012-02-09 2013-08-22 Nikon Corp Imaging apparatus

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013165318A (en) * 2012-02-09 2013-08-22 Nikon Corp Imaging apparatus

Also Published As

Publication number Publication date
JP7195783B2 (en) 2022-12-26

Similar Documents

Publication Publication Date Title
JP5676988B2 (en) Focus adjustment device
US8629934B2 (en) Imaging apparatus and method for controlling the same
US11539874B2 (en) Image-capturing apparatus and control method thereof
JP7195120B2 (en) Imaging device and its control method
JP2012113171A (en) Imaging device and control method therefor
JP2012113189A (en) Imaging apparatus
JP6960755B2 (en) Imaging device and its control method, program, storage medium
JP7195783B2 (en) IMAGING DEVICE, ACCESSORY DEVICE AND CONTROL METHOD THEREOF
JP2008287123A (en) Imaging apparatus, light emitting device and focus detecting method
JP7225192B2 (en) Imaging device and its control method
JP2014206711A (en) Imaging apparatus, and control method therefor
JP2019086635A (en) Imaging apparatus and control method thereof
JP2008042471A (en) Imaging apparatus and processing method thereof
JP7066458B2 (en) Imaging device and its control method, program
US9692981B2 (en) Image pickup apparatus with emission unit, control method therefor, and storage medium storing control program therefor
JP7171265B2 (en) Imaging device and its control method
JP2021156961A (en) Imaging device and control method of the same, program and storage medium
CN109387992B (en) Image pickup apparatus capable of sufficiently ensuring light emission accuracy and control method thereof
JP7158880B2 (en) IMAGING DEVICE, CONTROL METHOD THEREOF, AND CONTROL PROGRAM
JP2021060571A (en) Imaging apparatus and control method thereof, program, and storage medium
JP2016142776A (en) Imaging device
US6222998B1 (en) Camera for controlling light emission timing of electronic flash device
JP2018116265A (en) Focal point detector, method for control, program, and storage medium
JP2019117333A (en) Imaging device and control method therefor
JP2019204037A (en) Imaging apparatus

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20210621

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20220422

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20220531

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20220726

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20221214

R151 Written notification of patent or utility model registration

Ref document number: 7195783

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151