Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP6884582B2 - Imaging device, imaging method and imaging program - Google Patents
[go: Go Back, main page]

JP6884582B2 - Imaging device, imaging method and imaging program - Google Patents

Imaging device, imaging method and imaging program Download PDF

Info

Publication number
JP6884582B2
JP6884582B2 JP2017015372A JP2017015372A JP6884582B2 JP 6884582 B2 JP6884582 B2 JP 6884582B2 JP 2017015372 A JP2017015372 A JP 2017015372A JP 2017015372 A JP2017015372 A JP 2017015372A JP 6884582 B2 JP6884582 B2 JP 6884582B2
Authority
JP
Japan
Prior art keywords
amount
focus
variation
defocus
degree
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2017015372A
Other languages
Japanese (ja)
Other versions
JP2018124374A (en
Inventor
宏和 石井
宏和 石井
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Canon Inc
Original Assignee
Canon Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Canon Inc filed Critical Canon Inc
Priority to JP2017015372A priority Critical patent/JP6884582B2/en
Publication of JP2018124374A publication Critical patent/JP2018124374A/en
Application granted granted Critical
Publication of JP6884582B2 publication Critical patent/JP6884582B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

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

Description

本発明は、焦点調節制御(AF)を行う撮像装置に関する。 The present invention relates to an image pickup apparatus that performs focus adjustment control (AF).

AF方式には、撮像光学系の射出瞳のうち互いに異なる領域を通過した2つの光束により形成される一対の被写体像を光電変換して得られた一対の像信号のずれ量である像ずれ量からデフォーカス量を算出する位相差検出方式(位相差AF)がある。この位相差AFでは、デフォーカス量から算出されたフォーカスレンズの駆動量を算出して、フォーカスレンズを該駆動量だけ駆動することで合焦状態を得る。合焦状態は、フォーカスレンズの駆動後のデフォーカス量が所定範囲(以下、合焦判定幅という)内であることで判定される。 In the AF method, an image shift amount, which is a shift amount of a pair of image signals obtained by photoelectric conversion of a pair of subject images formed by two light fluxes passing through different regions of the exit pupils of an imaging optical system. There is a phase difference detection method (phase difference AF) that calculates the amount of defocus from. In this phase difference AF, the drive amount of the focus lens calculated from the defocus amount is calculated, and the focus lens is driven by the drive amount to obtain the in-focus state. The in-focus state is determined when the defocus amount after driving the focus lens is within a predetermined range (hereinafter, referred to as an in-focus determination width).

このような位相差AFは、撮像装置のレリーズボタンが半押し操作されることに応じて開始される。通常は、AFによって合焦状態が得られた後にレリーズボタンが全押し操作されることに応じて撮像(露光)を行うことで、十分にピントが合った静止画像が得られる。ただし、レリーズボタンが半押し操作状態で止められることなく一気に全押し操作される場合がある。このような場合の処理としては、AFの終了後に撮像を行う処理と、合焦状態か否かにかかわらず撮像を開始する処理とがある。特許文献1には、レリーズボタンが一気に全押し操作されたか否かに応じて合焦判定幅を変更することで、実用上において許容される合焦精度での速写に対応する撮像装置が開示されている。 Such phase-difference AF is started in response to a half-press operation of the release button of the image pickup apparatus. Normally, by performing imaging (exposure) in response to the release button being fully pressed after the in-focus state is obtained by AF, a sufficiently focused still image can be obtained. However, the release button may be fully pressed at once without being stopped in the half-pressed operation state. In such a case, there are a process of performing imaging after the end of AF and a process of starting imaging regardless of whether or not it is in focus. Patent Document 1 discloses an imaging device that supports quick shooting with practically acceptable focusing accuracy by changing the focusing determination width according to whether or not the release button is fully pressed at once. ing.

また、AFによりフォーカスレンズを駆動したにもかかわらず、合焦状態が得られなかった場合は、再度AFを行う。特許文献2には、数回のAFによってもデフォーカス量が合焦判定幅内に収まらずにフォーカスレンズが移動し続けるハンチングが発生している際に、合焦判定幅を変更することで撮像のタイミングの遅延を防ぐ撮像装置が開示されている。 If the focus lens is not obtained even though the focus lens is driven by AF, AF is performed again. In Patent Document 2, when the defocus amount does not fall within the focusing determination width and hunting occurs in which the focus lens continues to move even after several AFs, imaging is performed by changing the focusing determination width. An imaging device that prevents a delay in the timing of the above is disclosed.

特開2010−197601号公報Japanese Unexamined Patent Publication No. 2010-197601 特開2013−061537号公報Japanese Unexamined Patent Publication No. 2013-061537

合焦判定幅は、AFの精度やAFに要する時間に直結するパラメータである。例えば、合焦判定幅が小さければ、合焦状態が得られずにAFをやり直す回数が増加するためにAFに要する時間は長くなるが、AFの精度は向上する。 The focus determination width is a parameter that is directly related to the accuracy of AF and the time required for AF. For example, if the focusing determination width is small, the time required for AF increases because the number of times AF is repeated without obtaining the focusing state is increased, but the accuracy of AF is improved.

ただし、合焦判定幅を小さくしても、実際のフォーカスレンズの駆動精度の限界や被写体のばらつきによるデフォーカス量の検出ばらつき等の種々の要因から、必ずしもAFの精度が向上するわけではなく、AFの速度を無駄に遅くさせる要因となり得る。一方、AFの速度は、シャッターチャンスを逃さないためにも、実用上許容される合焦精度が得られる範囲において高速であることが望まれる。 However, even if the focus determination width is reduced, the AF accuracy does not necessarily improve due to various factors such as the limit of the actual drive accuracy of the focus lens and the detection variation of the defocus amount due to the variation of the subject. It can be a factor that unnecessarily slows down the AF speed. On the other hand, the AF speed is desired to be high within a range in which a practically acceptable focusing accuracy can be obtained so as not to miss a shutter chance.

本発明は、被写体にかかわらず、AFの精度を良好としつつ、AFにより合焦状態が得られるまでの時間を短縮することができるようにした撮像装置を提供する。 The present invention provides an image pickup apparatus capable of shortening the time until an in-focus state is obtained by AF while improving the accuracy of AF regardless of the subject.

本発明の一側面としての撮像装置は、撮像光学系のデフォーカス量を検出するデフォーカス検出手段と、デフォーカス量が合焦判定範囲内になるように焦点調節制御を行う制御手段とを有する。そして、制御手段は、撮像光学系により形成される被写体像を光電変換して得られた信号を用いてデフォーカス量のばらつき度を示す情報を取得し、前記ばらつき度が相対的に大きい第1の場合は、前記ばらつき度が相対的に小さい第2の場合よりも前記合焦判定範囲を小さくすることを特徴とする。 The imaging apparatus as one aspect of the present invention includes a defocus detecting means for detecting the defocus amount of the imaging optical system and a control means for performing focus adjustment control so that the defocus amount is within the focusing determination range. .. Then, the control means acquires information indicating the degree of variation in the defocus amount by using the signal obtained by photoelectric conversion of the subject image formed by the imaging optical system, and the first type having a relatively large degree of variation. In the case of, the focus determination range is made smaller than in the second case where the degree of variation is relatively small .

また、本発明の他の一側面としての焦点調節制御方法は、撮像光学系のデフォーカス量を検出するステップと、デフォーカス量が合焦判定範囲内になるように焦点調節制御を行うステップとを有する。そして、焦点調節制御において、撮像光学系により形成される被写体像を光電変換して得られた信号を用いてデフォーカス量のばらつき度を示す情報を取得し、前記ばらつき度が相対的に大きい第1の場合は、前記ばらつき度が相対的に小さい第2の場合よりも前記合焦判定範囲を小さくすることを特徴とする。 Further, the focus adjustment control method as another aspect of the present invention includes a step of detecting the defocus amount of the imaging optical system and a step of performing focus adjustment control so that the defocus amount is within the focusing determination range. Has. Then, in the focus adjustment control, information indicating the degree of variation in the defocus amount is acquired using the signal obtained by photoelectric conversion of the subject image formed by the imaging optical system, and the degree of variation is relatively large. The case of 1 is characterized in that the focusing determination range is made smaller than that of the second case where the degree of variation is relatively small.

なお、撮像装置のコンピュータに、上記焦点調節制御方法に従う処理を実行させるコンピュータプログラムである焦点調節制御プログラムも、本発明の他の一側面を構成する。 A focus adjustment control program, which is a computer program for causing a computer of an imaging device to execute a process according to the focus adjustment control method, also constitutes another aspect of the present invention.

本発明によれば、被写体に依存するデフォーカス量のばらつき度に応じて合焦判定範囲を適切に変更するので、被写体にかかわらず、良好な精度の焦点調節制御を行いつつ、合焦状態が得られるまでの時間を短縮することができる。 According to the present invention, the focusing determination range is appropriately changed according to the degree of variation in the defocus amount depending on the subject, so that the focusing state can be maintained regardless of the subject while performing focus adjustment control with good accuracy. The time to obtain can be shortened.

本発明の実施例である撮像装置の構成を示すブロック図。The block diagram which shows the structure of the image pickup apparatus which is the Example of this invention. 実施例における撮像素子の画素構成を示す図。The figure which shows the pixel composition of the image pickup device in an Example. 実施例における撮像に関する動作を示すフローチャート。The flowchart which shows the operation about the image pickup in an Example. 実施例におけるAF処理を示すフローチャート。The flowchart which shows the AF processing in an Example. 実施例における焦点検出処理を示すフローチャート。The flowchart which shows the focus detection processing in an Example. 上記焦点検出処理で用いられるAF領域を示す図。The figure which shows the AF area used in the said focus detection process. 上記AF領域から得られる像信号を示す図。The figure which shows the image signal obtained from the said AF area. 上記像信号のシフト量と相関量との関係を示す図。The figure which shows the relationship between the shift amount and the correlation amount of the image signal. 上記像信号のシフト量と相関変化量との関係を示す図。The figure which shows the relationship between the shift amount of the image signal and the correlation change amount. 実施例における信頼度評価処理を示すフローチャート。The flowchart which shows the reliability evaluation process in an Example. 従来の合焦判定幅を示す図。The figure which shows the conventional focusing determination width. 実施例における合焦判定幅を示す図。The figure which shows the focusing determination width in an Example. 実施例におけるmaxderと像ずれ量の標準偏差との関係を示すグラフ。The graph which shows the relationship between maxder and the standard deviation of the image displacement amount in an Example. 実施例における合焦判定幅算出処理を示すフローチャート。The flowchart which shows the focusing determination width calculation process in an Example. 実施例においてフィルタから出力できる評価値を示す図。The figure which shows the evaluation value which can be output from a filter in an Example.

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

図1は、本発明の実施例である撮像装置としてのデジタルカメラ本体(以下、カメラ本体という)200と交換レンズユニット100の構成を示す。交換レンズユニット100は、電気接点ユニット106を有する不図示のマウント部を介して着脱可能(交換可能)にカメラ本体200に取り付けられる。 FIG. 1 shows the configuration of a digital camera main body (hereinafter referred to as a camera main body) 200 and an interchangeable lens unit 100 as an imaging device according to an embodiment of the present invention. The interchangeable lens unit 100 is detachably attached (replaceable) to the camera body 200 via a mount portion (not shown) having an electrical contact unit 106.

交換レンズユニット100において、101はズーム機構を含む撮像レンズであり、102は光量を制御する絞りシャッタである。103は光軸方向に移動して焦点調節を行うフォーカスレンズである。撮像レンズ101、絞りシャッタ102およびフォーカスレンズ103により撮像光学系が構成される。104はフォーカスレンズを駆動するフォーカスモータであり、105はフォーカスモータ104の駆動等、交換レンズユニット100の動作を制御するレンズコントローラである。 In the interchangeable lens unit 100, 101 is an image pickup lens including a zoom mechanism, and 102 is an aperture shutter for controlling the amount of light. Reference numeral 103 denotes a focus lens that moves in the optical axis direction to adjust the focus. The image pickup optical system is composed of the image pickup lens 101, the aperture shutter 102, and the focus lens 103. Reference numeral 104 denotes a focus motor for driving the focus lens, and reference numeral 105 denotes a lens controller for controlling the operation of the interchangeable lens unit 100 such as driving the focus motor 104.

カメラ本体200において、201は撮像光学系により形成された被写体像を光電変換する撮像素子であり、202は撮像素子201から出力されるアナログ電気信号をデジタル信号に変換するA/D変換部である。203は画像処理部であり、204はAF信号処理部である。205はフォーマット変換部であり、206はランダムアクセスメモリ等のメモリ(以下、DRAMと記す)であり、画像データの一時記憶用の高速バッファとして、また画像データの圧縮伸張処理における作業用メモリ等として使用される。207はメモリカード等の記録媒体とそのインターフェースからなる画像記録部である。208はタイミングジェネレータであり、209はAF処理(焦点調節制御)や撮像処理(撮像制御)等のカメラ本体200の動作を制御するシステム制御部である。 In the camera body 200, 201 is an image pickup element that photoelectrically converts a subject image formed by the image pickup optical system, and 202 is an A / D conversion unit that converts an analog electric signal output from the image pickup element 201 into a digital signal. .. Reference numeral 203 is an image processing unit, and 204 is an AF signal processing unit. Reference numeral 205 denotes a format conversion unit, and 206 is a memory such as a random access memory (hereinafter referred to as DRAM), as a high-speed buffer for temporary storage of image data, and as a working memory for compression / decompression processing of image data. used. Reference numeral 207 is an image recording unit including a recording medium such as a memory card and its interface. Reference numeral 208 denotes a timing generator, and 209 is a system control unit that controls operations of the camera body 200 such as AF processing (focus adjustment control) and imaging processing (imaging control).

210はカメラ本体200(システム制御部209)と交換レンズユニット100(レンズコントローラ105)との通信を行う通信部である。211はAE処理部であり、212は画像表示用メモリ(以下、VRAMと記す)である。213は画像表示部であり、撮像前に取得されるライブビュー映像や撮像により取得された撮像静止画の他、撮像に関する各種情報を表示する画像表示部である。215は撮像モードをユーザが選択するために操作するモードスイッチである。撮像モードには、マクロモードやスポーツモード等がある。 Reference numeral 210 denotes a communication unit that communicates between the camera body 200 (system control unit 209) and the interchangeable lens unit 100 (lens controller 105). Reference numeral 211 is an AE processing unit, and reference numeral 212 denotes an image display memory (hereinafter referred to as VRAM). Reference numeral 213 is an image display unit, which is an image display unit that displays various information related to imaging, in addition to a live view image acquired before imaging and a still image captured by imaging. Reference numeral 215 is a mode switch operated by the user to select an imaging mode. The imaging mode includes a macro mode, a sports mode, and the like.

216はカメラ本体200およびカメラ本体200から電源供給を受ける交換レンズユニット100に電源を投入するためにユーザにより操作されるメインスイッチである。217は第1スイッチ(以下、SW1と記す)である。SW1(217)は、ユーザによる不図示の操作部材であるレリーズボタンの第1の操作としての半押し操作に応じてONになり、AF(自動焦点調節)やAE(自動露光)等の撮像準備処理の実行をシステム制御部209に指示する信号を出力する。218は第2スイッチ(以下、SW2と記す)である。SW2(218)は、ユーザによるレリーズボタンの第2の操作としての全押し操作に応じてONになり、撮像処理の実行をシステム制御部209に指示する信号を出力する。214はモードスイッチ215、メインスイッチ216、SW1(217)およびSW2(218)以外のユーザにより操作される各種スイッチやダイヤル等を含む操作部である。操作部214は、撮像時および画像再生時における各種設定を行うためのメニュースイッチや、撮像モードと再生モードとを切り替える撮像/再生モードスイッチ等を含む。 Reference numeral 216 is a main switch operated by the user to turn on the power to the camera body 200 and the interchangeable lens unit 100 that receives power from the camera body 200. Reference numeral 217 is a first switch (hereinafter referred to as SW1). SW1 (217) is turned on in response to a half-press operation as the first operation of the release button, which is an operation member (not shown) by the user, and prepares for imaging such as AF (autofocus adjustment) and AE (autoexposure). A signal instructing the system control unit 209 to execute the process is output. Reference numeral 218 is a second switch (hereinafter referred to as SW2). The SW2 (218) is turned on in response to a full-press operation of the release button as a second operation by the user, and outputs a signal instructing the system control unit 209 to execute the imaging process. Reference numeral 214 denotes an operation unit including various switches and dials operated by a user other than the mode switch 215, the main switch 216, SW1 (217) and SW2 (218). The operation unit 214 includes a menu switch for making various settings at the time of imaging and image reproduction, an imaging / reproduction mode switch for switching between an imaging mode and a reproduction mode, and the like.

上述した撮像素子201は、CCDセンサやCMOSセンサ等により構成され、その撮像面上に結像した光(被写体像)を複数の画素のそれぞれに含まれるフォトダイオードにより光電変換する。撮像素子201の各フォトダイオードは、光電変換した光の光量に応じた電荷を蓄積する。各フォトダイオードに蓄積された電荷は、システム制御部209の指令に応じてタイミングジェネレータ208から与えられる駆動パルスに基づいて順次読み出されてアナログ電気信号として出力される。 The image sensor 201 described above is composed of a CCD sensor, a CMOS sensor, or the like, and photoelectrically converts the light (subject image) imaged on the image pickup surface by a photodiode included in each of the plurality of pixels. Each photodiode of the image sensor 201 accumulates an electric charge according to the amount of photoelectrically converted light. The electric charge accumulated in each photodiode is sequentially read out based on the drive pulse given from the timing generator 208 in response to the command of the system control unit 209, and is output as an analog electric signal.

本実施例で用いられる撮像素子201の各画素は、2つ(一対)のフォトダイオードA,Bとこれら一対のフォトダイオードA,Bに対して設けられた1つのマイクロレンズから構成されている。一対のフォトダイオードA,Bは、1つのマイクロレンズを介して撮像光学系の射出瞳のうち互いに異なる領域(AF瞳)からの光束により形成される一対の光学像を光電変換する。該一対のフォトダイオードA,Bから一対のAF用信号であるA信号およびB信号を出力する。また、一対のフォトダイオードA,Bの出力を加算することで、撮像用画素信号(A+B信号)を得ることができ、この撮像用画素信号を全画素において加算することで撮像信号が得られる。 Each pixel of the image sensor 201 used in this embodiment is composed of two (pair) photodiodes A and B and one microlens provided for the pair of photodiodes A and B. The pair of photodiodes A and B photoelectrically convert a pair of optical images formed by light fluxes from different regions (AF pupils) of the exit pupils of the imaging optical system via one microlens. A pair of AF signals, A signal and B signal, are output from the pair of photodiodes A and B. Further, an imaging pixel signal (A + B signal) can be obtained by adding the outputs of the pair of photodiodes A and B, and an imaging signal can be obtained by adding the imaging pixel signals in all the pixels.

複数の画素から出力された複数のA信号と複数のB信号をそれぞれ瞳分割方向と直交する方向において加算することで、撮像面位相差検出方式によるAF(以下、撮像面位相差AFという)に用いられる一対の位相差像信号が得られる。AF信号処理部204は、該一対の位相差像信号に対して相関演算を行い、これら一対の位相差像信号の位相差である像ずれ量を算出し、さらに該像ずれ量から被写体に対する撮像光学系のデフォーカス量(およびデフォーカス方向)を算出する。 By adding a plurality of A signals and a plurality of B signals output from a plurality of pixels in a direction orthogonal to the pupil division direction, AF by the imaging surface phase difference detection method (hereinafter referred to as imaging surface phase difference AF) can be obtained. The pair of phase difference image signals used is obtained. The AF signal processing unit 204 performs a correlation calculation on the pair of phase difference image signals, calculates an image shift amount which is a phase difference between the pair of phase difference image signals, and further captures an image of the subject from the image shift amount. Calculate the defocus amount (and defocus direction) of the optical system.

図2(a)には撮像面位相差AFに対応していない画素構成を、図2(b)は撮像面位相差AFに対応した画素構成を示している。いずれの図においても、ベイヤー配列が用いられており、Rは赤のカラーフィルタを、Bは青のカラーフィルタを、Gr,Gbは緑のカラーフィルタを示している。図2(b)に示す撮像面位相差AF対応の画素構成では、図2(a)に示す撮像面位相AF非対応の画素構成での1画素(実線で囲む)に相当する画素内に、図の水平方向に2分割された2つのフォトダイオード(小さいA,Bを付す)が設けられている。なお、図2(b)に示した画素の分割方法は例に過ぎず、図の垂直方向に分割したり、水平および垂直方向に2分割ずつ(計4分割)したりしてもよい。また、同じ撮像素子内において互いに異なる分割方法で分割された複数種類の画素が含まれてもよい。 FIG. 2A shows a pixel configuration that does not correspond to the imaging surface phase-difference AF, and FIG. 2B shows a pixel configuration that corresponds to the imaging surface phase-difference AF. In each figure, the Bayer arrangement is used, where R indicates a red color filter, B indicates a blue color filter, and Gr and Gb indicate a green color filter. In the pixel configuration corresponding to the imaging surface phase difference AF shown in FIG. 2 (b), within the pixel corresponding to one pixel (enclosed by a solid line) in the pixel configuration not compatible with the imaging surface phase AF shown in FIG. 2 (a). Two photodiodes (with small A and B) divided into two in the horizontal direction in the figure are provided. The pixel division method shown in FIG. 2B is merely an example, and may be divided in the vertical direction of the figure or divided into two in the horizontal and vertical directions (four divisions in total). Further, a plurality of types of pixels divided by different division methods may be included in the same image pickup device.

撮像素子201から読み出されたそれぞれアナログ電気信号としての撮像信号および一対の位相差像信号は、A/D変換部202に入力される。A/D変換部202は、リセットノイズを除去するための相関二重サンプリング、ゲインの調節およびアナログ電気信号のデジタル化を行う。A/D変換部202は、撮像信号を画像処理部203に、一対の位相差像信号をAF信号処理部204にそれぞれ出力する。 The image pickup signal and the pair of phase difference image signals as analog electric signals read from the image pickup element 201 are input to the A / D conversion unit 202. The A / D converter 202 performs correlated double sampling for removing reset noise, gain adjustment, and digitization of an analog electric signal. The A / D conversion unit 202 outputs the image pickup signal to the image processing unit 203 and the pair of phase difference image signals to the AF signal processing unit 204, respectively.

AF信号処理部204は、A/D変換部202から出力された一対の位相差像信号に対する相関演算を行って像ずれ量および信頼度情報(2像一致度、2像急峻度、コントラスト情報、飽和情報、キズ情報等)を算出する。さらにAF信号処理部204は、算出した像ずれ量からデフォーカス量を算出し、該デフォーカス量と信頼度情報をシステム制御部209に出力する。相関演算の詳細については、図6から図9を用いて後述する。撮像素子201およびAF信号処理部204によりデフォーカス検出手段が構成される。 The AF signal processing unit 204 performs a correlation calculation on the pair of phase difference image signals output from the A / D conversion unit 202 to perform image shift amount and reliability information (two-image matching degree, two-image steepness, contrast information, etc.). Calculate saturation information, scratch information, etc.). Further, the AF signal processing unit 204 calculates the defocus amount from the calculated image shift amount, and outputs the defocus amount and reliability information to the system control unit 209. The details of the correlation calculation will be described later with reference to FIGS. 6 to 9. The defocus detection means is configured by the image sensor 201 and the AF signal processing unit 204.

次に、本実施例のカメラ本体200における制御手段としてのシステム制御部209が行う処理について説明する。まず、図3のフローチャートを用いて、システム制御部209が実行する撮像に関する処理全体について説明する。CPU等を含むコンピュータにより構成されるシステム制御部209は、コンピュータプログラムである撮像プログラムに従って本処理を実行する。以下の説明において、「S」はステップを意味する。 Next, the processing performed by the system control unit 209 as the control means in the camera body 200 of this embodiment will be described. First, the entire process related to imaging executed by the system control unit 209 will be described with reference to the flowchart of FIG. The system control unit 209 composed of a computer including a CPU and the like executes this process according to an imaging program which is a computer program. In the following description, "S" means a step.

まずS301では、システム制御部209は、AE処理部211に画像処理部203からの出力に対してAE処理を行わせてS302に進む。 First, in S301, the system control unit 209 causes the AE processing unit 211 to perform AE processing on the output from the image processing unit 203, and proceeds to S302.

S302では、システム制御部209は、SW1(217)の状態を調べ、ONであればS303に進み、そうでなければS301に進む。 In S302, the system control unit 209 checks the state of SW1 (217), and if it is ON, proceeds to S303, otherwise proceeds to S301.

S303では、システム制御部209は、AF信号処理部204とともに後述するAF処理を行い、撮像光学系のデフォーカス量が後述する合焦判定幅内(合焦判定範囲内)になるようにフォーカスレンズ103の駆動を制御する。その後S304に進む。 In S303, the system control unit 209 performs AF processing described later together with the AF signal processing unit 204, and the focus lens is set so that the defocus amount of the imaging optical system is within the focusing determination width (within the focusing determination range) described later. Controls the drive of 103. Then proceed to S304.

S304では、システム制御部209は、SW1(217)の状態を調べ、ONであればS305に進み、そうでなければS301に進む。 In S304, the system control unit 209 checks the state of SW1 (217), and if it is ON, proceeds to S305, otherwise proceeds to S301.

S305では、システム制御部209は、SW2(218)の状態を調べ、ONであればS306に進み、そうでなければS304に進む。 In S305, the system control unit 209 checks the state of SW2 (218), and if it is ON, proceeds to S306, and if not, proceeds to S304.

S306では、システム制御部209は、撮像処理を行い、その後S301に戻る。 In S306, the system control unit 209 performs an imaging process, and then returns to S301.

図4のフローチャートを用いて、上述したS303でシステム制御部209がAF信号処理部204とともに実行するAF処理(焦点調節制御方法)について説明する。システム制御部209およびAF信号処理部204は、上述した撮像プログラムの一部である焦点調節制御プログラムに従って本処理を実行する。 The AF process (focus adjustment control method) executed by the system control unit 209 together with the AF signal processing unit 204 in S303 described above will be described with reference to the flowchart of FIG. The system control unit 209 and the AF signal processing unit 204 execute this processing according to the focus adjustment control program which is a part of the above-mentioned imaging program.

まずS401において、システム制御部209は、AF処理に関する初期化を行う。 First, in S401, the system control unit 209 initializes the AF process.

次にS402では、システム制御部209は、AF信号処理部204に焦点検出処理を行わせ、AF信号処理部204が算出したデフォーカス量と信頼度情報を取得する。そして、S403に進む。焦点検出処理は、撮像素子201から撮像用画素信号およびAF用信号が読み出されるフレーム(以下、撮像フレームという)ごとに行われる。焦点検出処理の詳細については後述する。 Next, in S402, the system control unit 209 causes the AF signal processing unit 204 to perform focus detection processing, and acquires the defocus amount and reliability information calculated by the AF signal processing unit 204. Then, the process proceeds to S403. The focus detection process is performed for each frame (hereinafter referred to as an image pickup frame) in which the image pickup pixel signal and the AF signal are read out from the image pickup element 201. The details of the focus detection process will be described later.

S403では、システム制御部209は、S402で取得した信頼度情報が示す信頼度が予め設定された「信頼度閾値2」より高いか否かを判定し、そうであればS404に進み、そうでなければS413に進む。「信頼度閾値2」は、信頼度がこの信頼度閾値2未満であるときは、デフォーカス量の精度は保証できないが、被写体のピント位置方向は保証できることを示す閾値である。 In S403, the system control unit 209 determines whether or not the reliability indicated by the reliability information acquired in S402 is higher than the preset "reliability threshold value 2", and if so, proceeds to S404, and so on. If not, proceed to S413. The "reliability threshold value 2" is a threshold value indicating that the accuracy of the defocus amount cannot be guaranteed when the reliability is less than the reliability threshold value 2, but the focus position direction of the subject can be guaranteed.

S404では、システム制御部209は、S402で取得したデフォーカス量(以下、検出デフォーカス量という)が予め設定された合焦判定幅である「Def量閾値2」より小さいか否かを判定する。検出デフォーカス量がDef量閾値2以下である場合は、ピント位置が第2の合焦判定範囲内にある。検出デフォーカス量がDef量閾値2より小さければS405に進み、そうでなければS412に進む。「Def量閾値2」は、検出デフォーカス量がこのDef量閾値2以下であれば、その検出デフォーカス量に従ってフォーカスレンズ103を所定回数(例えば3回)駆動することで、第2の合焦状態が得られることを示す閾値である。第2の合焦状態とは、被写体が撮像光学系の焦点深度内に入り、被写体に高精度にピントが合った状態である。Def量閾値2は、例えば焦点深度の5倍の値に設定する。 In S404, the system control unit 209 determines whether or not the defocus amount acquired in S402 (hereinafter referred to as the detected defocus amount) is smaller than the preset focusing determination width “Def amount threshold value 2”. .. When the detected defocus amount is Def amount threshold value 2 or less, the focus position is within the second focus determination range. If the detected defocus amount is smaller than the Def amount threshold value 2, the process proceeds to S405, and if not, the process proceeds to S412. In the "Def amount threshold value 2", if the detected defocus amount is equal to or less than the Def amount threshold value 2, the focus lens 103 is driven a predetermined number of times (for example, three times) according to the detected defocus amount to cause a second focusing. It is a threshold value indicating that a state is obtained. The second focusing state is a state in which the subject enters the depth of focus of the imaging optical system and the subject is in focus with high accuracy. The Def amount threshold value 2 is set to, for example, a value 5 times the depth of focus.

S405では、システム制御部209は、フォーカスレンズ103が停止状態であるか否かを判定し、そうであればS406に進み、そうでなければS410に進む。 In S405, the system control unit 209 determines whether or not the focus lens 103 is in the stopped state, and if so, proceeds to S406, and if not, proceeds to S410.

S406では、システム制御部209は、S402で取得した信頼度情報に示される信頼度が予め設定された「信頼度閾値1」より高いか否かを判定し、そうであればS407に進み、そうでなければS410に進む。「信頼度閾値1」は、信頼度がこの信頼度閾値1以上であれば、検出デフォーカス量のばらつきが所定範囲内(例えば焦点深度内)となることを示す閾値である。 In S406, the system control unit 209 determines whether or not the reliability indicated in the reliability information acquired in S402 is higher than the preset "reliability threshold value 1", and if so, proceeds to S407, and so on. If not, proceed to S410. The "reliability threshold value 1" is a threshold value indicating that the variation in the detected defocus amount is within a predetermined range (for example, within the depth of focus) when the reliability is the reliability threshold value 1 or more.

S407では、システム制御部209は、検出デフォーカス量が予め設定された合焦判定幅である「Def量閾値1」より小さいか否かを判定し、そうであればS408に進み、そうでなければS409に進む。検出デフォーカス量がDef量閾値1より小さい場合は、ピント位置が第1の合焦判定範囲にある。「Def量閾値1」は、検出デフォーカス量がこのDef量閾値1以下であれば、第1の合焦状態が得られることを示す閾値であり、Def量閾値2よりも小さい値をとる。第1の合焦状態とは、第2の合焦状態より検出デフォーカス量が小さく、実用上許容される合焦精度が得られている状態を意味する。 In S407, the system control unit 209 determines whether or not the detected defocus amount is smaller than the preset focusing determination width "Def amount threshold value 1", and if so, proceeds to S408, otherwise. Then proceed to S409. When the detected defocus amount is smaller than the Def amount threshold value 1, the focus position is in the first focusing determination range. The “Def amount threshold value 1” is a threshold value indicating that the first focusing state is obtained when the detected defocus amount is 1 or less of the Def amount threshold value, and takes a value smaller than the Def amount threshold value 2. The first in-focus state means a state in which the detected defocus amount is smaller than that in the second in-focus state, and practically acceptable focusing accuracy is obtained.

このように本実施例では、合焦判定幅の端の値であるDef量閾値として、「Def量閾値1」と「Def量閾値2」を用いる。さらに本実施例では、後に図14を用いて説明するように、第1の合焦判定幅である「Def量閾値1」を検出デフォーカス量のばらつきの大きさ(ばらつき度)に応じて複数の合焦判定幅(1〜4)間で変更する。 As described above, in this embodiment, "Def amount threshold value 1" and "Def amount threshold value 2" are used as the Def amount threshold value which is the value at the end of the focusing determination width. Further, in this embodiment, as will be described later with reference to FIG. 14, a plurality of “Def amount threshold values 1”, which are the first focusing determination widths, are set according to the magnitude (variation degree) of the variation in the detected defocus amount. It is changed between the focusing determination widths (1 to 4) of.

S408では、システム制御部209は、撮像光学系が合焦状態にあると判定して本処理を終了する。 In S408, the system control unit 209 determines that the imaging optical system is in the focused state and ends this process.

一方、S409では、システム制御部209は、検出デフォーカス量からフォーカスレンズ103の駆動量(以下、フォーカス駆動量という)を算出し、該フォーカス駆動量を含むフォーカス指令をレンズコントローラ105に送信する。レンズコントローラ105は、フォーカス指令に含まれるフォーカス駆動量だけフォーカスレンズ103が駆動されるようにフォーカスモータ104の駆動を制御する。この後、システム制御部209はS402に戻る。 On the other hand, in S409, the system control unit 209 calculates the drive amount of the focus lens 103 (hereinafter referred to as the focus drive amount) from the detected defocus amount, and transmits a focus command including the focus drive amount to the lens controller 105. The lens controller 105 controls the drive of the focus motor 104 so that the focus lens 103 is driven by the focus drive amount included in the focus command. After this, the system control unit 209 returns to S402.

上述したS405〜S409の処理を行うことにより、S402で取得した信頼度が「信頼度閾値1」よりも高い場合に、フォーカスレンズ103を停止させた状態で再度、デフォーカス量を算出(検出)することができる。 By performing the above-mentioned processes S405 to S409, when the reliability acquired in S402 is higher than the "reliability threshold value 1", the defocus amount is calculated (detected) again with the focus lens 103 stopped. can do.

S410では、システム制御部209は、検出デフォーカス量の所定割合分に対するフォーカス駆動量(以下、部分フォーカス駆動量という)を算出し、該部分フォーカス駆動量を含むフォーカス指令をレンズコントローラ105に送信する。所定割合については後述する。レンズコントローラ105は、フォーカス指令に含まれる部分フォーカス駆動量だけフォーカスレンズ103が駆動されるようにフォーカスモータ104の駆動を制御する。 In S410, the system control unit 209 calculates a focus drive amount (hereinafter, referred to as a partial focus drive amount) with respect to a predetermined ratio of the detected defocus amount, and transmits a focus command including the partial focus drive amount to the lens controller 105. .. The predetermined ratio will be described later. The lens controller 105 controls the drive of the focus motor 104 so that the focus lens 103 is driven by the partial focus drive amount included in the focus command.

次にS411では、システム制御部209は、レンズコントローラ105に対してフォーカスレンズ103の停止を指示し、S402に戻る。 Next, in S411, the system control unit 209 instructs the lens controller 105 to stop the focus lens 103, and returns to S402.

また、S412では、システム制御部209は、S410と同様に、S402で取得したデフォーカス量の所定割合分に対する部分フォーカス駆動量を算出し、該部分フォーカス駆動量を含むフォーカス指令をレンズコントローラ105に送信する。レンズコントローラ105は、フォーカス指令に含まれる部分フォーカス駆動量だけフォーカスレンズ103が駆動されるようにフォーカスモータ104の駆動を制御する。そして、システム制御部209は、S402に戻る。 Further, in S412, the system control unit 209 calculates a partial focus drive amount with respect to a predetermined ratio of the defocus amount acquired in S402, and sends a focus command including the partial focus drive amount to the lens controller 105, similarly to S410. Send. The lens controller 105 controls the drive of the focus motor 104 so that the focus lens 103 is driven by the partial focus drive amount included in the focus command. Then, the system control unit 209 returns to S402.

S410およびS421にいう「所定割合」は、例えば8割のように、検出デフォーカス量に対してフォーカスレンズ103の駆動量が少なくなる割合である。また、S410およびS421でのフォーカスレンズ103の駆動速度は、次の撮像フレームでの焦点検出処理が完了するまでに部分フォーカス駆動量分のフォーカスレンズ103の駆動が完了する駆動速度よりも遅く設定される。これにより、検出デフォーカス量が正しくない場合においてフォーカスレンズ103が被写体に対して合焦状態が得られる位置(合焦位置)を通過してしまうことを防ぐことができる。また、S412からS402に戻る場合は、フォーカスレンズ103を停止させずに駆動しながら次の焦点検出処理を行う(すなわちオーバーラップAF制御を行う)ことができる。 The "predetermined ratio" referred to in S410 and S421 is a ratio in which the driving amount of the focus lens 103 is smaller than the detected defocus amount, for example, 80%. Further, the drive speed of the focus lens 103 in S410 and S421 is set to be slower than the drive speed at which the drive of the focus lens 103 for the partial focus drive amount is completed by the time the focus detection process in the next imaging frame is completed. To. This makes it possible to prevent the focus lens 103 from passing through a position (focusing position) where a focusing state can be obtained with respect to the subject when the detected defocus amount is incorrect. Further, when returning from S412 to S402, the next focus detection process can be performed (that is, overlap AF control is performed) while driving the focus lens 103 without stopping it.

S413では、システム制御部209は、非合焦条件が満足されたか否かを判定し、そうであればS414に進み、そうでなければS415に進む。非合焦条件とは、ピントを合わせるべき被写体が存在しないと判定するための条件である。例えば、フォーカスレンズ103の全可動範囲での駆動が完了して、つまりはフォーカスレンズ103が遠側と近側の両方の可動端を検出して初期位置に戻ったという条件である。 In S413, the system control unit 209 determines whether or not the out-of-focus condition is satisfied, and if so, proceeds to S414, and if not, proceeds to S415. The out-of-focus condition is a condition for determining that there is no subject to be focused on. For example, it is a condition that the driving of the focus lens 103 in the entire movable range is completed, that is, the focus lens 103 detects both the far side and the near side movable ends and returns to the initial position.

そしてS414では、システム制御部209は、撮像光学系が非合焦状態であると判定して本処理を終了する。 Then, in S414, the system control unit 209 determines that the imaging optical system is out of focus and ends this process.

S415では、システム制御部209は、フォーカスレンズ103が遠側または近側の可動端に到達したか否かを判定し、そうであればS416に進み、そうでなければS417に進む。 In S415, the system control unit 209 determines whether or not the focus lens 103 has reached the movable end on the far side or the near side, and if so, proceeds to S416, and if not, proceeds to S417.

S416では、システム制御部209は、フォーカスレンズ103の駆動方向を反転させてS402に戻る。 In S416, the system control unit 209 reverses the driving direction of the focus lens 103 and returns to S402.

S417では、システム制御部209は、フォーカスレンズ103を所定方向に駆動させてS402に戻る。ここでのフォーカスレンズ103の駆動速度は、例えばデフォーカス量が検出できるようになった時点で合焦位置を通り過ぎることのないような駆動速度の範囲で最も速い速度が設定される。 In S417, the system control unit 209 drives the focus lens 103 in a predetermined direction and returns to S402. The driving speed of the focus lens 103 here is set to be the fastest in the range of the driving speed that does not pass the in-focus position when the defocus amount can be detected, for example.

次に、上述したS402でシステム制御部209およびAF信号処理部204が実行する焦点検出処理について図5のフローチャートを用いて説明する。まず、S501では、システム制御部209は、撮像素子201の撮像面内においてユーザにより選択された又は所定のアルゴリズムに従って選択した範囲の焦点検出領域(以下、AF領域という)を設定し、S502に進む。 Next, the focus detection process executed by the system control unit 209 and the AF signal processing unit 204 in the above-mentioned S402 will be described with reference to the flowchart of FIG. First, in S501, the system control unit 209 sets a focus detection region (hereinafter, referred to as AF region) in a range selected by the user or selected according to a predetermined algorithm in the imaging surface of the image sensor 201, and proceeds to S502. ..

S502では、AF信号処理部204は、撮像素子201の撮像面のうちS501で設定されたAF領域に含まれる画素からAF用信号(A信号およびB信号)を取得してS503に進む。 In S502, the AF signal processing unit 204 acquires AF signals (A signal and B signal) from the pixels included in the AF region set in S501 of the image pickup surface of the image pickup element 201, and proceeds to S503.

S503では、AF信号処理部204は、S502で取得したAF用信号に対して垂直方向に行加算平均処理を行い、一対の位相差像信号を生成する。この垂直行加算平均処理によって一対の位相差像信号におけるノイズの影響を軽減することができる。 In S503, the AF signal processing unit 204 vertically performs row addition averaging processing on the AF signal acquired in S502 to generate a pair of phase difference image signals. This vertical row addition averaging process can reduce the influence of noise on a pair of phase difference image signals.

S504では、AF信号処理部204は、S503での垂直行加算平均処理により生成された一対の位相差像信号から所定の周波数帯域の信号成分を取り出す複数種類のフィルタ処理のうち1つを行い、S505に進む。 In S504, the AF signal processing unit 204 performs one of a plurality of types of filter processing for extracting signal components in a predetermined frequency band from the pair of phase difference image signals generated by the vertical row addition averaging processing in S503. Proceed to S505.

S505では、AF信号処理部204は、S504でのフィルタ処理を経た一対の位相差像信号の相関量を算出して、S506に進む。 In S505, the AF signal processing unit 204 calculates the correlation amount of the pair of phase difference image signals that have undergone the filtering process in S504, and proceeds to S506.

S506では、AF信号処理部204は、S505において算出した相関量から相関変化量を算出して、S507に進む。 In S506, the AF signal processing unit 204 calculates the amount of correlation change from the amount of correlation calculated in S505, and proceeds to S507.

S507では、AF信号処理部204は、S505において算出した相関変化量から像ずれ量を算出して、S508に進む。 In S507, the AF signal processing unit 204 calculates the amount of image shift from the amount of correlation change calculated in S505, and proceeds to S508.

S508では、AF信号処理部204は、S507で算出した像ずれ量の信頼度を評価して、S509に進む。 In S508, the AF signal processing unit 204 evaluates the reliability of the image shift amount calculated in S507, and proceeds to S509.

S509では、AF信号処理部204は、像ずれ量をデフォーカス量に変換して検出デフォーカス量をシステム制御部209に出力する。そして、S510に進む。 In S509, the AF signal processing unit 204 converts the image shift amount into a defocus amount and outputs the detected defocus amount to the system control unit 209. Then, the process proceeds to S510.

S510では、AF信号処理部204は、S504での複数種類のフィルタ処理の全てが完了したか否かを判定し、そうであればS511に進み、そうでなければS504に進む。AF信号処理部204は、S504での複数種類のフィルタ処理として、例えば垂直行加算平均処理により生成された一対の位相差像信号に対してそれぞれ帯域が異なる複数の周波数帯域のバンドパスフィルタによる処理を水平方向に行う。 In S510, the AF signal processing unit 204 determines whether or not all of the plurality of types of filter processing in S504 has been completed, and if so, proceeds to S511, and if not, proceeds to S504. As a plurality of types of filter processing in S504, the AF signal processing unit 204 processes, for example, a pair of phase difference image signals generated by vertical row addition averaging by a bandpass filter having a plurality of frequency bands having different bands. In the horizontal direction.

AF信号処理部204は、S510において、S504〜S509の一連の処理を複数の周波数帯域の全てに対して行ったか否かを判定し、そうであればS511に進み、そうでなければS504に戻る。 The AF signal processing unit 204 determines in S510 whether or not the series of processing of S504 to S509 has been performed for all of the plurality of frequency bands, and if so, proceeds to S511, and if not, returns to S504. ..

S511では、S504〜S509の一連の処理によって算出された複数の周波数帯域のそれぞれに対応した複数の検出デフォーカス量の中から少なくとも1つを選択して焦点検出処理を終了する。 In S511, at least one of a plurality of detection defocus amounts corresponding to each of the plurality of frequency bands calculated by the series of processes of S504 to S509 is selected to end the focus detection process.

次に、図5で説明した焦点検出処理について詳細に説明する。図6には、焦点検出処理において撮像素子201の画素アレイ601上でのAF領域602の例を示している。AF領域602の両側のシフト領域603は、相関演算に必要な領域である。このため、AF域602とシフト領域603とを合わせた領域604が相関演算に必要な画素領域である。図中のp,q,s,tはそれぞれ、水平方向(x軸方向)での座標を表し、pとqはそれぞれ画素領域704の始点と終点のx座標を、sとtはそれぞれAF領域602の始点と終点のx座標を示している。 Next, the focus detection process described with reference to FIG. 5 will be described in detail. FIG. 6 shows an example of the AF region 602 on the pixel array 601 of the image sensor 201 in the focus detection process. The shift regions 603 on both sides of the AF region 602 are regions necessary for the correlation calculation. Therefore, the area 604, which is the combination of the AF area 602 and the shift area 603, is a pixel area required for the correlation calculation. In the figure, p, q, s, and t represent the coordinates in the horizontal direction (x-axis direction), p and q represent the x-coordinates of the start point and the end point of the pixel area 704, respectively, and s and t represent the AF area, respectively. The x-coordinates of the start point and the end point of 602 are shown.

図7(a)は、図6に示したAF領域602に含まれる複数の画素から取得した一対の位相差像信号の例を示す。実線が一方の位相差像信号701を示し、以下ではA像信号という。また、破線が他方の位相差像信号702を示し、以下ではB像信号という。図7(a)はシフト前のA像およびB像信号701,702を示し、図7(b),(c)はそれぞれA像およびB像信号701,702をそれぞれ、図7(a)の位置からプラス方向およびマイナス方向にシフトした状態を示している。これらA像およびB像信号701,702の相関量を算出する際には、A像およびB像信号701,702の両方を矢印の方向に1ビットずつシフトする。 FIG. 7A shows an example of a pair of phase difference image signals acquired from a plurality of pixels included in the AF region 602 shown in FIG. The solid line indicates one phase difference image signal 701, which is referred to as an A image signal below. Further, the broken line indicates the other phase difference image signal 702, which is referred to as a B image signal below. 7 (a) shows the A image and B image signals 701 and 702 before the shift, and FIGS. 7 (b) and 7 (c) show the A image and B image signals 701 and 702, respectively, of FIG. 7 (a). It shows a state of shifting from the position in the plus direction and the minus direction. When calculating the amount of correlation between the A image and the B image signals 701 and 702, both the A image and the B image signals 701 and 702 are shifted by 1 bit in the direction of the arrow.

次に、相関量の算出方法について説明する。まず、図7(b),(c)に示すように、A像およびB像信号701,702をそれぞれ1ビットずつシフトして、A像およびB像信号701,702の差の絶対値の和を算出する。シフト量をiとし、マイナス方向の最大シフト量をp−sとし、プラス方向の最大シフト量をq−tとし、xをAF領域602の開始座標とし、yをAF領域602の終了座標とする。このとき、相関量CORは以下の式(1)によって算出することができる。 Next, a method of calculating the correlation amount will be described. First, as shown in FIGS. 7 (b) and 7 (c), the A image and the B image signals 701 and 702 are shifted by 1 bit each, and the sum of the absolute values of the differences between the A image and the B image signals 701 and 702 is summed. Is calculated. Let i be the shift amount, ps be the maximum shift amount in the minus direction, qt be the maximum shift amount in the plus direction, x be the start coordinate of the AF area 602, and y be the end coordinate of the AF area 602. .. At this time, the correlation amount COR can be calculated by the following equation (1).

Figure 0006884582
Figure 0006884582

図8(a)には、シフト量と相関量CORとの関係の例を示している。横軸はシフト量を示し、縦軸は相関量CORを示す。シフト量とともに変化する相関量801における極値付近802,803のうち、より小さい相関量に対応するシフト量においてA像およびB像信号701,702の一致度が最も高くなる。 FIG. 8A shows an example of the relationship between the shift amount and the correlation amount COR. The horizontal axis shows the shift amount, and the vertical axis shows the correlation amount COR. Among the 802,803 near the extreme values in the correlation amount 801 that changes with the shift amount, the degree of coincidence between the A image and the B image signals 701 and 702 is the highest in the shift amount corresponding to the smaller correlation amount.

次に、相関変化量の算出方法について説明する。図8(a)に示した相関量801の波形における1シフトおきの相関量の差を相関変化量として算出する。シフト量をiとし、マイナス方向の最大シフト量をp−sとし、プラス方向の最大シフト量をq−tとすると、相関変化量ΔCORは以下の式(2)によって算出することができる。 Next, a method of calculating the amount of correlation change will be described. The difference in the correlation amount every other shift in the waveform of the correlation amount 801 shown in FIG. 8A is calculated as the correlation change amount. Assuming that the shift amount is i, the maximum shift amount in the minus direction is ps, and the maximum shift amount in the plus direction is qt, the correlation change amount ΔCOR can be calculated by the following equation (2).

Figure 0006884582
Figure 0006884582

図9(a)には、シフト量と相関変化量ΔCORとの関係の例を示している。横軸はシフト量を示し、縦軸は相関変化量ΔCORを示す。シフト量とともに変化する相関変化量901は、902,903の部分でプラスからマイナスになる。相関変化量が0となる状態をゼロクロスと呼び、A像およびB像信号701,702の一致度が最も高くなる。したがって、ゼロクロスを与えるシフト量が像ずれ量となる。 FIG. 9A shows an example of the relationship between the shift amount and the correlation change amount ΔCOR. The horizontal axis shows the shift amount, and the vertical axis shows the correlation change amount ΔCOR. The correlation change amount 901 that changes with the shift amount changes from plus to minus in the portion of 902 and 903. The state in which the amount of correlation change is 0 is called zero cross, and the degree of coincidence between the A image and B image signals 701 and 702 is the highest. Therefore, the shift amount that gives zero cross is the image shift amount.

図9(b)には、図9(a)中の902で示した部分を拡大して示す。904は相関変化量901の一部分である。この図9(b)を用いて像ずれ量PRDの算出方法について説明する。 FIG. 9B shows an enlarged portion shown by 902 in FIG. 9A. 904 is a part of the correlation change amount 901. A method of calculating the image shift amount PRD will be described with reference to FIG. 9B.

ゼロクロスを与えるシフト量(k−1+α)は、整数部分β(=k−1)と小数部分αとに分けられる。小数部分αは、図中の三角形ABCと三角形ADEとの相似の関係から、以下の式(3)によって算出することができる。 The shift amount (k-1 + α) that gives a zero cross is divided into an integer part β (= k-1) and a decimal part α. The fractional part α can be calculated by the following equation (3) from the similarity relationship between the triangle ABC and the triangle ADE in the figure.

Figure 0006884582
Figure 0006884582

整数部分βは、図9(b)から以下の式(4)によって算出することができる。
β=k−1 (4)
そして、αとβの和(α+β)から像ずれ量PRDを算出することができる。
図9(a)に示したように相関変化量ΔCORのゼロクロスが複数存在する場合は、その付近での相関変化量ΔCORの変化の急峻性がより大きい方を第1のゼロクロスとする。この急峻性はAFの行い易さを示す指標であり、値が大きいほど精度良いAFを行い易い点であることを示す。急峻性maxderは、以下の式(5)によって算出することができる。
The integer part β can be calculated from FIG. 9B by the following equation (4).
β = k-1 (4)
Then, the image shift amount PRD can be calculated from the sum of α and β (α + β).
When there are a plurality of zero crosses of the correlation change amount ΔCOR as shown in FIG. 9A, the one having a larger change in the correlation change amount ΔCOR in the vicinity thereof is defined as the first zero cross. This steepness is an index showing the ease of performing AF, and the larger the value, the easier it is to perform accurate AF. The steepness maxder can be calculated by the following equation (5).

Figure 0006884582
Figure 0006884582

このように、本実施例では、相関変化量のゼロクロスが複数存在する場合は、その急峻性によって第1のゼロクロスを決定し、この第1のゼロクロスを与えるシフト量を像ずれ量とする。 As described above, in this embodiment, when there are a plurality of zero crosses of the correlation change amount, the first zero cross is determined by the steepness thereof, and the shift amount that gives the first zero cross is defined as the image shift amount.

次に、S508でAF信号処理部204が行う信頼度評価処理について、図10のフローチャートを用いて説明する。S1001では、AF信号処理部204は、maxderを撮像条件(センサーゲインおよび読み出し行加算数等)や被写体条件(コントラスト等)で正規化する。maxderを正規化する理由は、信頼度の精度を高めるためである。 Next, the reliability evaluation process performed by the AF signal processing unit 204 in S508 will be described with reference to the flowchart of FIG. In S1001, the AF signal processing unit 204 normalizes the maxder according to the imaging conditions (sensor gain, read-out line addition number, etc.) and subject conditions (contrast, etc.). The reason for normalizing maxder is to improve the accuracy of reliability.

次にS1002では、AF信号処理部204は、検出デフォーカス量が所定のデフォーカス量閾値より大きいか否かを判定する。AF信号処理部204は、検出デフォーカス量がデフォーカス量閾値より大きいときはS1003に進んで信頼度を0とする。また、検出デフォーカス量がデフォーカス量閾値以下のときはS1004に進み、S1001で正規化したmaxderが正規化maxder閾値以下か否かを判定する。 Next, in S1002, the AF signal processing unit 204 determines whether or not the detected defocus amount is larger than the predetermined defocus amount threshold value. When the detected defocus amount is larger than the defocus amount threshold value, the AF signal processing unit 204 proceeds to S1003 and sets the reliability to 0. When the detected defocus amount is equal to or less than the defocus amount threshold value, the process proceeds to S1004, and it is determined whether or not the maxder normalized in S1001 is equal to or less than the normalized maxder threshold value.

AF信号処理部204は、正規化maxderが正規化maxder閾値以下のときは、S1003に進み信頼度を0として、本処理を終了する。信頼度0は、検出デフォーカス量の信頼度がきわめて低いことを示す。 When the normalized maxder is equal to or less than the normalized maxder threshold value, the AF signal processing unit 204 proceeds to S1003, sets the reliability to 0, and ends this process. A reliability of 0 indicates that the reliability of the detected defocus amount is extremely low.

本実施例では、デフォーカス量閾値とmaxder閾値をフィルタごとに設定している。デフォーカス量閾値は各フィルタのデフォーカス量検出能力(総シフト量の観点から焦点検出可能な限界距離)に応じて設定する。また、低輝度時や低コントラスト被写体に対する焦点検出処理のように信頼度を誤りやすい場面では、正規化maxderが小さくなる。このため、正規化maxder閾値を設定することで誤った信頼度を出力することを防止している。 In this embodiment, the defocus amount threshold value and the maxder threshold value are set for each filter. The defocus amount threshold is set according to the defocus amount detection capability of each filter (the limit distance at which focus can be detected from the viewpoint of the total shift amount). Further, the normalized maxder becomes small in a scene where the reliability is likely to be mistaken, such as when the brightness is low or when the focus detection process is performed for a low contrast subject. Therefore, by setting the normalized maxder threshold value, it is possible to prevent an erroneous output of reliability.

S1004で正規化maxderが正規化maxder閾値より大きいと判定したAF信号処理部204はS1005に進み、正規化maxderに基づいて像ずれ量の標準偏差を推定する。図13に示すように、正規化maxderと像ずれ量の標準偏差との間には負の相関があるため、正規化maxderから像ずれ量の標準偏差を推定することができる。 The AF signal processing unit 204, which determines in S1004 that the normalized maxder is larger than the normalized maxder threshold, proceeds to S1005 and estimates the standard deviation of the image shift amount based on the normalized maxder. As shown in FIG. 13, since there is a negative correlation between the normalized maxder and the standard deviation of the image shift amount, the standard deviation of the image shift amount can be estimated from the normalized maxder.

次にS1006では、AF信号処理部204は、像ずれ量の標準偏差に所定の換算係数を乗算して、検出デフォーカス量の標準偏差を算出する。ここで使用する換算係数は、像ずれ量から検出デフォーカス量を算出する際に使用した換算係数と同様に、絞り102の絞り値、撮像光学系の射出瞳距離、撮像素子201の個体情報および撮像面上におけるAF領域の座標によって決定される値である。このように、検出デフォーカス量のばらつき度を示す情報としての標準偏差は、像ずれ量、すなわち被写体像を光電変換して得られた一対の位相差像信号のずれ量から得られる。 Next, in S1006, the AF signal processing unit 204 multiplies the standard deviation of the image shift amount by a predetermined conversion coefficient to calculate the standard deviation of the detected defocus amount. The conversion coefficient used here is the same as the conversion coefficient used when calculating the detection defocus amount from the image shift amount, the aperture value of the aperture 102, the exit pupil distance of the imaging optical system, the individual information of the image sensor 201, and the conversion coefficient. It is a value determined by the coordinates of the AF region on the image pickup surface. As described above, the standard deviation as information indicating the degree of variation in the detected defocus amount is obtained from the image shift amount, that is, the shift amount of the pair of phase difference image signals obtained by photoelectric conversion of the subject image.

また、検出デフォーカス量の標準偏差に対しても、絞り値Fと許容錯乱円δで除算して正規化する。maxderに基づいて信頼度(つまりは検出デフォーカス量の標準偏差)を評価する場合は、上記換算係数の個数分の閾値を設定する必要がある。このため、本実施例では、大量の閾値データをROM137に保持しておかなくても、より所望の閾値を設定することができる。また、絞り値Fによって正規化しているため、絞り102の状態に関係なく閾値を設定することが可能である。 Further, the standard deviation of the detected defocus amount is also normalized by dividing by the aperture value F and the permissible circle of confusion δ. When evaluating the reliability (that is, the standard deviation of the detected defocus amount) based on the maxder, it is necessary to set the threshold value for the number of the above conversion coefficients. Therefore, in this embodiment, a more desired threshold value can be set without holding a large amount of threshold data in the ROM 137. Further, since it is normalized by the aperture value F, it is possible to set the threshold value regardless of the state of the aperture 102.

続くS1400では、AF信号処理部204は、合焦判定幅を設定する。このステップでの合焦判定幅の設定処理については後述する。 In the following S1400, the AF signal processing unit 204 sets the focusing determination width. The focusing determination width setting process in this step will be described later.

次にS1007以降において、AF信号処理部204は、検出デフォーカス量の標準偏差に応じて該検出デフォーカス量の信頼度を評価する。本実施例では、検出デフォーカス量の標準偏差の閾値を3段階(THRESHOLD1、THRESHOLD2、THRESHOLD3)設定している。THRESHOLD1、THRESHOLD2およびTHRESHOLD3は、
THRESHOLD3<THRESHOLD2<THRESHOLD1
という関係を有する。また、信頼度N(N=0〜3)は数字が小さいほど信頼度がより低いことを意味する。
Next, in S1007 and thereafter, the AF signal processing unit 204 evaluates the reliability of the detected defocus amount according to the standard deviation of the detected defocus amount. In this embodiment, the threshold value of the standard deviation of the detected defocus amount is set in three stages (THRESHOLD1, THRESHOLD2, THRESHOLD3). THRESHOLD1, THRESHOLD2 and THRESHOLD3
THRESHOLD3 <THRESHOLD2 <THRESHOLD1
Has a relationship. Further, the reliability N (N = 0 to 3) means that the smaller the number, the lower the reliability.

まずS1007において検出デフォーカス量の標準偏差がTHRESHOLD1より大きい場合は、AF信号処理部204はS1003に進み、検出デフォーカス量の信頼度を信頼度0と判定する。また、S1008において検出デフォーカス量の標準偏差がTHRESHOLD1以下で、かつTHRESHOLD2より大きい場合は、AF信号処理部204はS1009に進み、信頼度を信頼度1と判定する。 First, if the standard deviation of the detected defocus amount is larger than THRESHOLD1 in S1007, the AF signal processing unit 204 proceeds to S1003 and determines that the reliability of the detected defocus amount is 0. Further, in S1008, when the standard deviation of the detected defocus amount is THRESHOLD1 or less and larger than THRESSHOLD2, the AF signal processing unit 204 proceeds to S1009 and determines the reliability as reliability 1.

さらに、S1010において検出デフォーカス量の標準偏差がTHRESHOLD2以下であり、かつTHRESHOLD3より大きい場合は、AF信号処理部204はS1011に進み、信頼度を信頼度2と判定する。検出デフォーカス量の標準偏差がTHRESHOLD3以下である場合は、AF信号処理部204はS1012に進み、信頼度を信頼度3と判定する。 Further, in S1010, when the standard deviation of the detected defocus amount is THRESHOLD2 or less and larger than THRESSHOLD3, the AF signal processing unit 204 proceeds to S1011 and determines the reliability as reliability 2. When the standard deviation of the detected defocus amount is THRESHOLD 3 or less, the AF signal processing unit 204 proceeds to S1012 and determines the reliability as the reliability 3.

以上が信頼度を評価する基本的な処理であるが、信頼度の評価方法は3種類のフィルタの役割ごとに変えてもよい。図15は、各フィルタから出力できる信頼度を示しており、○が記された条件は出力できる信頼度を意味し、×が記された条件は出力しない信頼度を意味する。低域フィルタは精度が低いため、合焦可能であることを意味する信頼度3は出力しない。また、高域フィルタでは、総シフト量が小さく大ボケ時の被写体に対して焦点検出を行えないため、信頼度1は出力しない。このように処理することで、誤った信頼度を出力する可能性を軽減することができる。 The above is the basic process for evaluating the reliability, but the reliability evaluation method may be changed for each of the roles of the three types of filters. FIG. 15 shows the reliability that can be output from each filter. The condition marked with ◯ means the reliability that can be output, and the condition marked with × means the reliability that is not output. Since the low-frequency filter has low accuracy, it does not output reliability 3, which means that it can be focused. Further, in the high frequency filter, the total shift amount is small and the focus cannot be detected for the subject at the time of large blur, so the reliability 1 is not output. By processing in this way, the possibility of outputting an erroneous reliability can be reduced.

撮像面位相差AFでは、バンドパスフィルタの周波数帯域と被写体の周波数帯域との相違や、撮像光学系を構成するレンズを保持するレンズ枠によるAF瞳のケラレの影響がデフォーカス量に応じて変化する。このため、撮像面位相差AFでは、特にフォーカスレンズ103の実際のデフォーカス量に対して、検出されるデフォーカス量が比例関係(線形性)から外れる場合がある。この検出デフォーカス量のずれは、特に検出デフォーカス量が大きい場合に発生しやすく、被写体の空間周波数および検出デフォーカス量に応じて変化するため、被写体やフォーカスレンズ103の位置ごとにこのずれに対する補正を行うことは困難である。 In the imaging surface phase difference AF, the difference between the frequency band of the bandpass filter and the frequency band of the subject and the effect of vignetting of the AF pupil due to the lens frame holding the lens constituting the imaging optical system change according to the amount of defocus. To do. Therefore, in the imaging surface phase difference AF, the detected defocus amount may deviate from the proportional relationship (linearity) with respect to the actual defocus amount of the focus lens 103. This deviation of the detected defocus amount is likely to occur especially when the detected defocus amount is large, and changes according to the spatial frequency of the subject and the detected defocus amount. It is difficult to make corrections.

一方、AF処理に要する時間やAF処理における動作品位を考えると、フォーカスレンズ103の駆動方向の反転を極力少なくする(無くする)ことが望ましい。このため、本実施例では、前述したように、デフォーカス量が大きい状態からのAFでは検出デフォーカス量にそのまま対応するフォーカス駆動量を設定するのではなく、検出デフォーカス量に対して1以下の係数を乗じて部分フォーカス駆動量を設定する。これにより、フォーカスレンズ103が合焦位置を通過することで駆動方向の反転が必要となることを防止し、スムーズなAFを実現することが可能となる。 On the other hand, considering the time required for the AF process and the operation quality in the AF process, it is desirable to minimize (eliminate) the reversal of the drive direction of the focus lens 103. Therefore, in this embodiment, as described above, in AF from a state where the defocus amount is large, the focus drive amount corresponding to the detected defocus amount is not set as it is, but is 1 or less with respect to the detected defocus amount. Multiply by the coefficient of to set the partial focus drive amount. As a result, it is possible to prevent the focus lens 103 from having to reverse the driving direction due to passing through the in-focus position, and to realize smooth AF.

ただし、前述したように、検出デフォーカス量のずれはデフォーカス量が大きい状態で発生しやすく、デフォーカス量が小さい状態では線形性は保たれる。このように検出デフォーカス量の線形性が保たれる条件では、検出デフォーカス量にそのまま対応するフォーカス駆動量を設定して、より高速なAFを実現することが望ましい。 However, as described above, the deviation of the detected defocus amount tends to occur when the defocus amount is large, and the linearity is maintained when the defocus amount is small. Under the condition that the linearity of the detected defocus amount is maintained, it is desirable to set the focus drive amount corresponding to the detected defocus amount as it is to realize faster AF.

本実施例では、1フレームでのフォーカス駆動量として、検出デフォーカス量にそのまま対応するフォーカス駆動量が設定可能な検出デフォーカス量の範囲を第1のデフォーカス範囲とし、それより大きい検出デフォーカス量の範囲を第2のデフォーカス範囲とする。検出デフォーカス量が第1のデフォーカス範囲にあれば、合焦状態が得られたか否かを判定するための第1の合焦判定幅を広げても、実用上許容される合焦状態(第1の合焦状態)は得られる。一方、検出デフォーカス量が第2のデフォーカス範囲にある場合は、合焦判定幅を狭くして精度の高い合焦状態(第2の合焦状態)が得られるまでフォーカスレンズ103を駆動することが望ましい。 In this embodiment, as the focus drive amount in one frame, the range of the detection defocus amount in which the focus drive amount corresponding to the detection defocus amount can be set is set as the first defocus range, and the detection defocus larger than that is set as the first defocus range. The range of quantity is defined as the second defocus range. If the detected defocus amount is within the first defocus range, even if the first focus determination range for determining whether or not the in-focus state is obtained is widened, the in-focus state (practically acceptable) The first in-focus state) is obtained. On the other hand, when the detected defocus amount is in the second defocus range, the focus lens 103 is driven until a highly accurate focusing state (second focusing state) is obtained by narrowing the focusing determination width. Is desirable.

また本実施例では、検出デフォーカス量が第1のデフォーカス範囲にある場合により高速なAFを実現するために、1フレームでのフォーカス駆動量のみならず、第1の合焦判定幅である「Def量閾値1」も被写体に応じて変更する。 Further, in this embodiment, in order to realize faster AF when the detected defocus amount is in the first defocus range, not only the focus drive amount in one frame but also the first focus determination width is used. The "Def amount threshold value 1" is also changed according to the subject.

次に、「Def量閾値1」について、図11(a),(b)および図12(a),(b)を用いて説明する。本実施例は、撮像する被写体(つまりは被写体像)に応じて「Def量閾値1」である合焦判定幅を適切に設定(変更)することで、AF処理により合焦状態が得られるまでに要する時間を短縮させる。図11(a),(b)および図12(a),(b)のいずれにおいても、実用上許容される合焦精度としては、デフォーカス量が合焦基準幅としての±1Fδ以内とする。 Next, “Def amount threshold value 1” will be described with reference to FIGS. 11 (a) and 11 (b) and FIGS. 12 (a) and 12 (b). In this embodiment, by appropriately setting (changing) the focusing determination width, which is the "Def amount threshold value 1", according to the subject to be imaged (that is, the subject image), until the focusing state is obtained by the AF process. Reduce the time required for. In any of FIGS. 11 (a) and 11 (b) and 12 (a) and 12 (b), the defocus amount is within ± 1 Fδ as the focusing reference width as the practically acceptable focusing accuracy. ..

図11(a),(b)は、被写体によらず合焦判定幅(±0.25Fδ)を一定とする従来方式を示している。図11(a)は、被写体が高コントラストであり、検出デフォーカス量のばらつき度(以下、デフォーカス検出ばらつきという)が±0.25Fδとなる場合の該デフォーカス検出ばらつきと第1の合焦判定幅との関係を示している。また、図11(b)は、被写体が低コントラストであり、デフォーカス検出ばらつきが±0.75Fδとなる場合の該デフォーカス検出ばらつきと第1の合焦判定幅との関係を示している。 FIGS. 11A and 11B show a conventional method in which the focusing determination width (± 0.25Fδ) is constant regardless of the subject. FIG. 11A shows a first focus with the defocus detection variation when the subject has high contrast and the degree of variation in the detected defocus amount (hereinafter referred to as defocus detection variation) is ± 0.25 Fδ. The relationship with the judgment width is shown. Further, FIG. 11B shows the relationship between the defocus detection variation and the first focus determination width when the subject has a low contrast and the defocus detection variation is ± 0.75 Fδ.

撮像面位相差AFにおけるデフォーカス量の検出誤差としては、前述したような帯域ずれ等の種々の要因から生じるオフセット誤差や、デフォーカス量を繰り返して検出したときの検出ごとのばらつき等がある。図11(a)に示す従来方式では、デフォーカス検出ばらつきが小さい高コントラスト被写体においても、デフォーカス検出ばらつきが大きい低コントラスト被写体と同じ合焦判定幅を使用している。このため、上述した実用上許容される合焦精度より厳しく合焦状態を判定している。 The detection error of the defocus amount in the imaging surface phase difference AF includes an offset error caused by various factors such as the band shift as described above, a variation for each detection when the defocus amount is repeatedly detected, and the like. In the conventional method shown in FIG. 11A, even a high-contrast subject having a small defocus detection variation uses the same focusing determination width as a low-contrast subject having a large defocus detection variation. For this reason, the focusing state is determined more strictly than the above-mentioned practically acceptable focusing accuracy.

図4のS407にて説明したように、検出デフォーカス量が合焦判定幅(Def量閾値1)以内にない場合は、再度、フォーカスレンズの駆動が行われる。合焦状態の近傍でのフォーカスレンズの駆動は、デフォーカス量の検出精度を確保するために、フォーカスレンズが停止しているフレームで取得された検出デフォーカス量に基づいて行われることが望ましい。このため、デフォーカス量を検出するために、フォーカスレンズの停止を判定するためのフレーム、レンズ停止後の撮像フレームおよび撮像フレームで得られた一対の位相差像信号からデフォーカス量を演算するフレーム等が必要である。これらの複数のフレーム分の期間の間、フォーカスレンズは動けず、フォーカスレンズを合焦位置まで移動させるAF処理が遅延する。 As described in S407 of FIG. 4, when the detected defocus amount is not within the focusing determination width (Def amount threshold value 1), the focus lens is driven again. It is desirable that the focus lens is driven in the vicinity of the in-focus state based on the detected defocus amount acquired in the frame in which the focus lens is stopped in order to ensure the detection accuracy of the defocus amount. Therefore, in order to detect the defocus amount, a frame for determining the stop of the focus lens, an imaging frame after the lens is stopped, and a frame for calculating the defocus amount from a pair of phase difference image signals obtained by the imaging frame. Etc. are required. During these plurality of frames, the focus lens cannot move, and the AF process for moving the focus lens to the in-focus position is delayed.

図12(a),(b)は、本実施例における合焦判定幅を示す。本実施例では、被写体に応じたデフォーカス検出ばらつき、つまりは焦点検出処理内(図5のS1006)で取得される検出デフォーカス量の標準偏差に応じて、「Def量閾値1」としての合焦判定幅を設定する。 12 (a) and 12 (b) show the focusing determination width in this embodiment. In this embodiment, the defocus detection variation according to the subject, that is, the standard deviation of the detection defocus amount acquired in the focus detection process (S1006 in FIG. 5) is set as the “Def amount threshold value 1”. Set the focus judgment width.

図12(a)は、被写体が高コントラストであり、デフォーカス検出ばらつきが±0.25Fδとなる場合の該デフォーカス検出ばらつきと合焦判定幅との関係を示している。また、図12(b)は、被写体が低コントラストであり、デフォーカス検出ばらつきが±0.75Fδとなる場合の該デフォーカス検出ばらつきと合焦判定幅との関係を示している。 FIG. 12A shows the relationship between the defocus detection variation and the in-focus determination width when the subject has high contrast and the defocus detection variation is ± 0.25 Fδ. Further, FIG. 12B shows the relationship between the defocus detection variation and the in-focus determination width when the subject has a low contrast and the defocus detection variation is ± 0.75 Fδ.

図12(a)では、デフォーカス検出ばらつきを適切に考慮し、実用上許容される合焦精度を確保しつつ、合焦判定幅(Def量閾値1)を広げる。これにより、合焦状態の近傍において複数回のフォーカスレンズ103の駆動が行われる頻度を少なくする。 In FIG. 12A, the defocus detection variation is appropriately considered, and the focusing determination width (Def amount threshold value 1) is widened while ensuring the focusing accuracy that is practically allowed. As a result, the frequency with which the focus lens 103 is driven a plurality of times in the vicinity of the focused state is reduced.

図14のフローチャートは、図10のS1400においてAF信号処理部204が実行する合焦判定幅の設定処理を示している。本実施例では、信頼度の判定と同様に、合焦判定幅を段階的に設定する。ステップS1401において、AF信号処理部204は、S1006で算出した検出デフォーカス量の標準偏差を読み込む。 The flowchart of FIG. 14 shows the focusing determination width setting process executed by the AF signal processing unit 204 in S1400 of FIG. In this embodiment, the focusing determination width is set stepwise as in the determination of reliability. In step S1401, the AF signal processing unit 204 reads the standard deviation of the detected defocus amount calculated in S1006.

続いてS1402では、AF信号処理部204は、検出デフォーカス量の標準偏差がDef1_Th1より小さいか否かを判定し、そうである場合はS1403に進み、合焦判定幅(Def量閾値1)を高コントラスト被写体用の合焦判定幅1に設定する。検出デフォーカス量の標準偏差がDef1_Th1以上でDef1_Th2より小さい場合は、AF信号処理部204はS1405に進み、合焦判定幅を中コントラスト被写体用の合焦判定幅2に設定する。 Subsequently, in S1402, the AF signal processing unit 204 determines whether or not the standard deviation of the detected defocus amount is smaller than Def1_Th1, and if so, proceeds to S1403 and sets the focusing determination width (Def amount threshold value 1). Set the focus determination width to 1 for high-contrast subjects. When the standard deviation of the detected defocus amount is Def1_Th1 or more and smaller than Def1_Th2, the AF signal processing unit 204 proceeds to S1405 and sets the focusing determination width to the focusing determination width 2 for the medium contrast subject.

また、検出デフォーカス量の標準偏差がDef1_Th2以上であり、かつDef1_Th3より小さい場合は、AF信号処理部204はS1407に進み、合焦判定幅を低コントラスト被写体用の合焦判定幅3に設定する。検出デフォーカス量の標準偏差がDef1_Th3以上である場合は、AF信号処理部204は、S1408に進み、合焦判定幅を超低コントラスト被写体用の合焦判定幅4に設定する。ここで、合焦判定幅の大小関係を以下に示す。 If the standard deviation of the detected defocus amount is Def1_Th2 or more and smaller than Def1_Th3, the AF signal processing unit 204 proceeds to S1407 and sets the focusing determination width to the focusing determination width 3 for a low-contrast subject. .. When the standard deviation of the detected defocus amount is Def1_Th3 or more, the AF signal processing unit 204 proceeds to S1408 and sets the focusing determination width to the focusing determination width 4 for an ultra-low contrast subject. Here, the magnitude relationship of the focusing determination width is shown below.

合焦判定幅4<合焦判定幅3<合焦判定幅2<合焦判定幅1
このように、本実施例では、被写体のコントラストが高く、デフォーカス検出ばらつきが小さいほど、合焦判定幅を広く設定する。これにより、少なくとも実用上許容される合焦精度を確保しつつ、AF処理により合焦状態が得られるまでに要する時間を短縮することができる。
Focus judgment width 4 <Focus judgment width 3 <Focus judgment width 2 <Focus judgment width 1
As described above, in this embodiment, the higher the contrast of the subject and the smaller the defocus detection variation, the wider the focusing determination width is set. As a result, it is possible to shorten the time required for the AF process to obtain the focusing state while ensuring at least the practically acceptable focusing accuracy.

上記実施例では、合焦判定幅を段階的に変更する場合について説明したが、検出デフォーカス量の標準偏差と合焦基準幅との差分に応じて合焦判定幅が連続的に変更されるようにしてもよい。 In the above embodiment, the case where the focusing determination width is changed stepwise has been described, but the focusing determination width is continuously changed according to the difference between the standard deviation of the detected defocus amount and the focusing reference width. You may do so.

また、上記実施例では検出デフォーカス量のばらつき度を示す情報として標準偏差を用いたが、分散等、他のばらつき度を示す情報を用いてもよい。また、上記実施例では、デフォーカス量のばらつき度を一対の位相差像信号を用いて算出する場合について説明したが、被写体像を光電変換して得られる他の信号を用いてばらつき度を取得してもよい。例えば、撮像素子201からの出力により生成される撮像信号から被写体像のコントラストを示す情報を生成し、該コントラストの高低を示す情報からデフォーカス量のばらつき度を推定してもよい。 Further, in the above embodiment, the standard deviation is used as the information indicating the degree of variation in the detected defocus amount, but information indicating other degrees of variation such as dispersion may be used. Further, in the above embodiment, the case where the degree of variation in the defocus amount is calculated by using a pair of phase difference image signals has been described, but the degree of variation is acquired by using another signal obtained by photoelectric conversion of the subject image. You may. For example, information indicating the contrast of the subject image may be generated from the image pickup signal generated by the output from the image sensor 201, and the degree of variation in the defocus amount may be estimated from the information indicating the level of the contrast.

また、上記実施例ではフォーカスレンズ光軸方向に駆動してAFを行う場合について説明したが、撮像素子を光軸方向に駆動してAFを行う場合にも、上記実施例を適用することができる。 Further, in the above embodiment, the case where AF is performed by driving the focus lens in the optical axis direction has been described, but the above embodiment can also be applied when AF is performed by driving the image sensor in the optical axis direction. ..

さらに上記実施例では、レリーズボタンの半押し操作(SW1のON)から全押し操作(SW2のON)までの間のAF処理において合焦判定幅をデフォーカス検出ばらつきに応じて変更する場合について説明した。しかし、レリーズボタンの半押し操作から全押し操作までが一気に行われる等の特定条件を満足する場合に限って、合焦判定幅をデフォーカス検出ばらつきに応じて変更するようにしてもよい。これにより、ユーザが求める速写性を確保することができる。
(その他の実施例)
本発明は、上述の実施形態の1以上の機能を実現するプログラムを、ネットワーク又は記憶媒体を介してシステム又は装置に供給し、そのシステム又は装置のコンピュータにおける1つ以上のプロセッサーがプログラムを読出し実行する処理でも実現可能である。また、1以上の機能を実現する回路(例えば、ASIC)によっても実現可能である。
Further, in the above embodiment, a case where the focus determination width is changed according to the defocus detection variation in the AF process from the half-press operation (SW1 ON) to the full-press operation (SW2 ON) of the release button will be described. did. However, the focusing determination width may be changed according to the defocus detection variation only when a specific condition such that the half-press operation to the full-press operation of the release button is performed at once is satisfied. As a result, the quick shooting property required by the user can be ensured.
(Other Examples)
The present invention supplies a program that realizes one or more functions of the above-described embodiment to a system or device via a network or storage medium, and one or more processors in the computer of the system or device reads and executes the program. It can also be realized by the processing to be performed. It can also be realized by a circuit (for example, ASIC) that realizes one or more functions.

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

103 フォーカスレンズ
200 デジタルカメラ本体
201 撮像素子
204 AF信号処理部
209 システム制御部
103 Focus lens 200 Digital camera body 201 Image sensor 204 AF signal processing unit 209 System control unit

Claims (7)

撮像光学系のデフォーカス量を検出するデフォーカス検出手段と、
前記デフォーカス量が合焦判定範囲内になるように焦点調節制御を行う制御手段とを有し、
前記制御手段は、
前記撮像光学系により形成される被写体像を光電変換して得られた信号を用いて前記デフォーカス量のばらつき度を示す情報を取得し、
前記ばらつき度が相対的に大きい第1の場合は、前記ばらつき度が相対的に小さい第2の場合よりも前記合焦判定範囲を小さくすることを特徴とする撮像装置。
Defocus detection means for detecting the amount of defocus in the imaging optical system,
It has a control means for performing focus adjustment control so that the defocus amount is within the focus determination range.
The control means
Using the signal obtained by photoelectric conversion of the subject image formed by the imaging optical system, information indicating the degree of variation in the defocus amount is acquired.
The first case in which the degree of variation is relatively large is characterized in that the focusing determination range is made smaller than in the second case where the degree of variation is relatively small.
前記デフォーカス検出手段は、位相差検出方式により得られる一対の位相差像信号の像ずれ量から前記デフォーカス量を算出し、
前記制御手段は、前記像ずれ量を用いて前記ばらつき度を示す情報を取得することを特徴とする請求項1に記載の撮像装置。
The defocus detection means calculates the defocus amount from the image shift amount of the pair of phase difference image signals obtained by the phase difference detection method.
The imaging device according to claim 1, wherein the control means acquires information indicating the degree of variation using the image shift amount.
前記制御手段は、前記信号から得られる前記被写体像のコントラストの情報を用いて前記ばらつき度を示す情報を取得することを特徴とする請求項1に記載の撮像装置。 The imaging device according to claim 1, wherein the control means acquires information indicating the degree of variation by using information on the contrast of the subject image obtained from the signal. 前記制御手段は、前記デフォーカス量が第1の合焦判定範囲内にあるかを判定した後、該第1の合焦判定範囲より狭い第2の合焦判定範囲内にあるかを判定し、
前記制御手段は、前記第2の合焦判定範囲を前記ばらつき度に応じて変更することを特徴とする請求項1からのいずれか一項に記載の撮像装置。
The control means determines whether the defocus amount is within the first focus determination range, and then determines whether the defocus amount is within the second focus determination range narrower than the first focus determination range. ,
The imaging device according to any one of claims 1 to 3 , wherein the control means changes the second focusing determination range according to the degree of variation.
前記制御手段は、
操作部材の第1の操作に応じて前記焦点調節制御を行い、前記操作部材の第2の操作に応じて撮像制御を行い、
前記焦点調節制御が終了する前に前記第2の操作が行われた場合に、前記ばらつき度に応じて前記合焦判定範囲を変更することを特徴とする請求項1からのいずれか一項に記載の撮像装置。
The control means
The focus adjustment control is performed according to the first operation of the operating member, and the imaging control is performed according to the second operation of the operating member.
Any one of claims 1 to 4 , wherein when the second operation is performed before the focus adjustment control is completed, the focus determination range is changed according to the degree of variation. The imaging apparatus according to.
撮像光学系のデフォーカス量を検出するステップと、
前記デフォーカス量が合焦判定範囲内になるように焦点調節制御を行うステップとを有し、
前記焦点調節制御において、
前記撮像光学系により形成される被写体像を光電変換して得られた信号を用いて前記デフォーカス量のばらつき度を示す情報を取得し、
前記ばらつき度が相対的に大きい第1の場合は、前記ばらつき度が相対的に小さい第2の場合よりも前記合焦判定範囲を小さくすることを特徴とする焦点調節制御方法。
Steps to detect the amount of defocus in the imaging optical system,
It has a step of performing focus adjustment control so that the defocus amount is within the focusing determination range.
In the focus adjustment control,
Using the signal obtained by photoelectric conversion of the subject image formed by the imaging optical system, information indicating the degree of variation in the defocus amount is acquired.
A focus adjustment control method characterized in that the first case where the degree of variation is relatively large is smaller than the second case where the degree of variation is relatively small.
撮像装置のコンピュータに、
撮像光学系のデフォーカス量を検出する処理と、
前記デフォーカス量が合焦判定範囲内になるように焦点調節制御を行う処理とを実行させるコンピュータプログラムであって、
前記焦点調節制御を行う前記コンピュータに、
前記撮像光学系により形成される被写体像を光電変換して得られた信号を用いて前記デフォーカス量のばらつき度を示す情報を取得させ、
前記ばらつき度が相対的に大きい第1の場合は、前記ばらつき度が相対的に小さい第2の場合よりも前記合焦判定範囲を小さくさせることを特徴とする焦点調節制御プログラム。
To the computer of the image pickup device
Processing to detect the amount of defocus in the imaging optical system and
A computer program that executes a process of performing focus adjustment control so that the defocus amount is within the focus determination range.
To the computer that performs the focus adjustment control,
Using the signal obtained by photoelectric conversion of the subject image formed by the imaging optical system, information indicating the degree of variation in the defocus amount is acquired.
A focus adjustment control program characterized in that the focus adjustment determination range is made smaller in the first case where the degree of variation is relatively large than in the second case where the degree of variation is relatively small.
JP2017015372A 2017-01-31 2017-01-31 Imaging device, imaging method and imaging program Expired - Fee Related JP6884582B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2017015372A JP6884582B2 (en) 2017-01-31 2017-01-31 Imaging device, imaging method and imaging program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2017015372A JP6884582B2 (en) 2017-01-31 2017-01-31 Imaging device, imaging method and imaging program

Publications (2)

Publication Number Publication Date
JP2018124374A JP2018124374A (en) 2018-08-09
JP6884582B2 true JP6884582B2 (en) 2021-06-09

Family

ID=63110551

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2017015372A Expired - Fee Related JP6884582B2 (en) 2017-01-31 2017-01-31 Imaging device, imaging method and imaging program

Country Status (1)

Country Link
JP (1) JP6884582B2 (en)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3713793B2 (en) * 1996-03-26 2005-11-09 株式会社ニコン Focus adjustment device
JP3675039B2 (en) * 1996-06-26 2005-07-27 株式会社ニコン Focus adjustment device
JP2010197601A (en) * 2009-02-24 2010-09-09 Hoya Corp Camera equipped with automatic focusing device
JP6390198B2 (en) * 2014-06-23 2018-09-19 リコーイメージング株式会社 Imaging apparatus and imaging method

Also Published As

Publication number Publication date
JP2018124374A (en) 2018-08-09

Similar Documents

Publication Publication Date Title
JP6457776B2 (en) IMAGING DEVICE AND IMAGING DEVICE CONTROL METHOD
JP6506560B2 (en) Focus control device and method therefor, program, storage medium
US10542202B2 (en) Control apparatus that performs focusing by imaging-plane phase difference AF, image capturing apparatus, control method, and non-transitory computer-readable storage medium
US10873694B2 (en) Imaging apparatus, control apparatus, and storage medium providing phase difference detection focusing control of an image having a saturated object
JP6806473B2 (en) Imaging device and its control method
JP2016142999A (en) Imaging device and control method of the same
JP6682319B2 (en) Focus detection apparatus and method, imaging apparatus, program, storage medium
US20170054893A1 (en) Focus detecting apparatus and method of controlling the same
JP7179509B2 (en) Imaging device and imaging device control method
JP2018091977A (en) Focus controller, imaging apparatus, focus control method, and focus control program
JP7532067B2 (en) Focus detection device, imaging device, and focus detection method
JP6234016B2 (en) Focus adjustment device, imaging device, and control method thereof
JP6833405B2 (en) Focus detection device, focus adjustment device, imaging device and focus detection method
CN106993110B (en) Image pickup apparatus and control method thereof
JP2020122906A (en) Focus detection device, imaging apparatus, and focus detection method
JP2016156950A (en) Automatic focus adjustment device and control method of the same
JP7050569B2 (en) Imaging device and its control method
US10747089B2 (en) Imaging apparatus and control method of the same
JP6884582B2 (en) Imaging device, imaging method and imaging program
JP2018010245A (en) Signal processor and control method therefor
JP7071165B2 (en) Display control device and method, and image pickup device
JP7282227B2 (en) Imaging device and its control method
JP2016080738A (en) Imaging device, automatic focusing method
JP7207874B2 (en) CONTROL DEVICE, IMAGING DEVICE, CONTROL METHOD, PROGRAM, AND STORAGE MEDIUM
JP2016194665A (en) Focus detection device, optical instrument, focus detection program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20200123

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20201208

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20210105

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20210302

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20210512

R151 Written notification of patent or utility model registration

Ref document number: 6884582

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

LAPS Cancellation because of no payment of annual fees