[go: up one dir, main page]

JP7134712B2 - Imaging device and its control method - Google Patents

Imaging device and its control method Download PDF

Info

Publication number
JP7134712B2
JP7134712B2 JP2018100351A JP2018100351A JP7134712B2 JP 7134712 B2 JP7134712 B2 JP 7134712B2 JP 2018100351 A JP2018100351 A JP 2018100351A JP 2018100351 A JP2018100351 A JP 2018100351A JP 7134712 B2 JP7134712 B2 JP 7134712B2
Authority
JP
Japan
Prior art keywords
detection information
focus detection
threshold
focus
calculated
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.)
Active
Application number
JP2018100351A
Other languages
Japanese (ja)
Other versions
JP2019204041A (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 JP2018100351A priority Critical patent/JP7134712B2/en
Publication of JP2019204041A publication Critical patent/JP2019204041A/en
Application granted granted Critical
Publication of JP7134712B2 publication Critical patent/JP7134712B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

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

Description

本発明は、位相差検出方式の焦点検出および焦点調節制御に関する。 The present invention relates to phase difference detection type focus detection and focus adjustment control.

撮像面位相差検出方式では、撮像素子を構成する複数の光電変換部から位相差情報を取得可能であるが、低輝度または低コントラストの被写体の撮影時に課題がある。例えば、夜景や室内等の低輝度環境において人物の顔等を撮影する場合、高輝度または高コントラストの被写体を撮影する場合と比較して像信号のレベルが小さくなり、焦点検出精度が低下する可能性がある。 In the imaging plane phase difference detection method, phase difference information can be obtained from a plurality of photoelectric conversion units that constitute an image sensor, but there is a problem when shooting an object with low brightness or low contrast. For example, when shooting a person's face in a low-brightness environment such as at night or indoors, the image signal level will be lower than when shooting a high-brightness or high-contrast subject, and focus detection accuracy may decrease. have a nature.

特許文献1には、輝度条件およびコントラスト条件に基づいて、デフォーカス量の標準偏差の閾値を変更する方法が開示されている。過去に算出されたデフォーカス量に基づいて最終的なデフォーカス量を算出する処理が行われる。 Patent Literature 1 discloses a method of changing the threshold value of the standard deviation of the defocus amount based on the brightness condition and the contrast condition. A process of calculating the final defocus amount based on the defocus amount calculated in the past is performed.

特開2018-31916号公報JP 2018-31916 A

特許文献1には相関演算に用いるフィルタの周波数帯域条件およびデフォーカス量の標準偏差に基づく適応的な処理に関する言及がなく、低輝度の被写体等の撮影時に、高精度な焦点調節制御を行えないと合焦性能が低下する可能性がある。
本発明の目的は、低輝度の被写体等の撮影時に、より精度の高い位相差検出方式の焦点検出および焦点調節の制御を実現することである。
Patent Document 1 does not mention adaptive processing based on the frequency band condition of the filter used for correlation calculation and the standard deviation of the defocus amount. and focusing performance may deteriorate.
SUMMARY OF THE INVENTION It is an object of the present invention to implement phase difference detection type focus detection and focus adjustment control with higher accuracy when photographing a low-brightness subject or the like.

本発明の実施形態の撮像装置は、撮像素子から位相差を有する複数の像信号を取得する取得手段と、前記複数の像信号に対して、複数の周波数帯域を有するフィルタを用いて相関演算を行い、複数の焦点検出情報および該焦点検出情報の標準偏差を算出する算出手段と、前記複数の焦点検出情報および標準偏差を用いて焦点調節の制御を行う制御手段と、を備える。前記制御手段は、前記複数の周波数帯域のうち、第1の周波数帯域での相関演算により算出された第1の焦点検出情報が選択されている場合であって、前記第1の周波数帯域での相関演算により算出された第1の焦点検出情報の標準偏差が閾値より大きい場合には、当該第1の焦点検出情報を用いて前記焦点調節の制御を行い、前記複数の周波数帯域のうち、前記第1の周波数帯域よりも低域の第2の周波数帯域での相関演算により算出された第2の焦点検出情報が選択されている場合には、前記第2の周波数帯域での相関演算により算出された第2の焦点検出情報を用いて前記焦点調節の制御を行い、前記複数の周波数帯域のうち、第1の周波数帯域での相関演算により算出された第1の焦点検出情報が選択されている場合であって、前記第1の焦点検出情報の標準偏差が前記閾値以下である場合には、前記第1の焦点検出情報および前記第1の焦点検出情報よりも過去に前記第1の周波数帯域での相関演算により得られた焦点検出情報から算出された第3の焦点検出情報を用いて前記焦点調節の制御を行う。
An imaging apparatus according to an embodiment of the present invention includes acquisition means for acquiring a plurality of image signals having phase differences from an imaging device, and correlation calculation is performed on the plurality of image signals using a filter having a plurality of frequency bands. calculating means for calculating a plurality of pieces of focus detection information and standard deviations of the focus detection information; and control means for controlling focus adjustment using the plurality of pieces of focus detection information and standard deviations. When the first focus detection information calculated by the correlation calculation in the first frequency band is selected from among the plurality of frequency bands, the control means controls the focus detection information in the first frequency band. When the standard deviation of the first focus detection information calculated by the correlation calculation is larger than a threshold value , the focus adjustment is controlled using the first focus detection information, and out of the plurality of frequency bands, the When second focus detection information calculated by correlation calculation in a second frequency band lower than the first frequency band is selected, calculation by correlation calculation in the second frequency band The focus adjustment is controlled using the obtained second focus detection information, and the first focus detection information calculated by the correlation calculation in the first frequency band is selected from the plurality of frequency bands. and the standard deviation of the first focus detection information is equal to or less than the threshold, the first focus detection information and the first frequency prior to the first focus detection information The focus adjustment is controlled using the third focus detection information calculated from the focus detection information obtained by the correlation calculation in the band.

本発明によれば、低輝度の被写体等の撮影時に、より精度の高い位相差検出方式の焦点検出および焦点調節の制御を実現することができる。 According to the present invention, it is possible to achieve more accurate phase difference detection type focus detection and focus adjustment control when photographing a low-brightness subject or the like.

本発明の実施形態に係る撮像システムの構成例を示すブロック図である。1 is a block diagram showing a configuration example of an imaging system according to an embodiment of the present invention; FIG. 撮像素子の画素構成を説明する図である。It is a figure explaining the pixel structure of an image pick-up element. 本実施形態に係る撮影処理例を説明するフローチャートである。5 is a flow chart for explaining an example of imaging processing according to the present embodiment; 本実施形態に係る自動焦点検出処理を説明するフローチャートである。4 is a flowchart for explaining automatic focus detection processing according to the embodiment; 2像の相関変化量に関する説明図である。FIG. 10 is an explanatory diagram relating to the amount of correlation change between two images; 撮影感度に対するデフォーカス量の標準偏差の閾値を示す図である。FIG. 10 is a diagram showing a threshold value of standard deviation of defocus amount with respect to photographing sensitivity; 像信号の振幅に対するデフォーカス量の標準偏差の閾値を示す図である。FIG. 10 is a diagram showing a threshold value of standard deviation of defocus amount with respect to amplitude of an image signal; コントラスト評価値に対するデフォーカス量の標準偏差の閾値を示す図である。FIG. 10 is a diagram showing thresholds of standard deviations of defocus amounts with respect to contrast evaluation values; 本実施形態に係るフレーム加算判定演算処理を説明するフローチャートである。7 is a flowchart for explaining frame addition determination calculation processing according to the embodiment; 図9に続く処理を示すフローチャートである。FIG. 10 is a flow chart showing processing subsequent to FIG. 9 ; FIG. 鮮鋭度評価値に対する暈け度の評価値DFDの閾値を示す図である。FIG. 10 is a diagram showing a threshold of a blur evaluation value DFD with respect to a sharpness evaluation value;

以下、本発明の実施形態について、添付図面を参照して詳細に説明する。本実施形態ではレンズ装置およびカメラ本体部からなるレンズ交換式カメラを説明するが、本発明はレンズ部がカメラ本体部と一体化された構成の撮像装置にも適用可能である。 BEST MODE FOR CARRYING OUT THE INVENTION Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings. In this embodiment, an interchangeable lens camera including a lens device and a camera body will be described, but the present invention can also be applied to an imaging device in which the lens is integrated with the camera body.

図1は、本実施形態の撮像システムの構成例を示すブロック図である。本実施形態の撮像システムは、レンズ装置10およびカメラ本体部20から構成される。レンズ装置10の動作を制御するレンズ制御部106と、撮像システム全体の動作制御を統括するカメラ制御部212は、相互に情報を送受可能である。 FIG. 1 is a block diagram showing a configuration example of an imaging system according to this embodiment. The imaging system of this embodiment is composed of a lens device 10 and a camera main body 20 . The lens control unit 106 that controls the operation of the lens device 10 and the camera control unit 212 that controls the operation of the entire imaging system can exchange information with each other.

まず、レンズ装置10の構成について説明する。固定レンズ部101、絞り102、フォーカスレンズ部103は撮像光学系を構成する。固定レンズ部101は第1群レンズ部である。絞り102は絞り駆動部104によって駆動され、後述する撮像素子201への入射光量を制御する。フォーカスレンズ部103はフォーカスレンズ駆動部105によって駆動され、撮像光学系の焦点調節を行う。絞り駆動部104、フォーカスレンズ駆動部105はレンズ制御部106によって制御される。 First, the configuration of the lens device 10 will be described. The fixed lens unit 101, diaphragm 102, and focus lens unit 103 constitute an imaging optical system. A fixed lens portion 101 is a first group lens portion. A diaphragm 102 is driven by a diaphragm drive unit 104 to control the amount of light incident on an imaging device 201, which will be described later. A focus lens unit 103 is driven by a focus lens driving unit 105 to adjust the focus of the imaging optical system. A diaphragm drive unit 104 and a focus lens drive unit 105 are controlled by a lens control unit 106 .

レンズ制御部106はCPU(中央演算処理装置)を備え、レンズ操作部107によるユーザの操作指示を受け付けた場合に操作指示に応じた制御を行う。レンズ制御部106は、例えば、後述するカメラ制御部212から受信した制御命令や制御情報に応じて絞り102の開口量や、フォーカスレンズ部103の位置を決定し、絞り駆動部104やフォーカスレンズ駆動部105の制御を行う。またレンズ制御部106は、レンズ制御情報をカメラ制御部212に送信する。レンズ操作部107はユーザが操作するスイッチ等の操作部材を有する。 The lens control unit 106 includes a CPU (Central Processing Unit), and when receiving a user's operation instruction from the lens operation unit 107, performs control according to the operation instruction. For example, the lens control unit 106 determines the opening amount of the diaphragm 102 and the position of the focus lens unit 103 according to control commands and control information received from the camera control unit 212 described later, and controls the diaphragm driving unit 104 and the focus lens driving unit. It controls the unit 105 . The lens control unit 106 also transmits lens control information to the camera control unit 212 . The lens operation unit 107 has operation members such as switches operated by the user.

次に、カメラ本体部20の構成について説明する。カメラ本体部20は撮像光学系を通過した光から撮像信号を取得する。撮像素子201はCCD(電荷結合素子)型イメージセンサやCMOS(相補型金属酸化膜半導体)型イメージセンサである。撮像光学系を通過した光は撮像素子201の受光面上に結像し、撮像素子201の画素部を構成する光電変換部によって、入射光量に応じた信号電荷への変換が行われる。光電変換部を構成するフォトダイオードに蓄積された信号電荷は、カメラ制御部212の指令に従ってタイミングジェネレータ215から与えられる駆動パルスに基づいて、信号電荷に応じた電圧信号として撮像素子201から順次読み出される。撮像素子201の画素構成については図2を用いて後述する。 Next, the configuration of the camera body section 20 will be described. The camera body 20 acquires an imaging signal from light that has passed through the imaging optical system. The imaging device 201 is a CCD (charge-coupled device) type image sensor or a CMOS (complementary metal oxide semiconductor) type image sensor. Light passing through the imaging optical system forms an image on the light-receiving surface of the imaging device 201, and is converted into signal charges according to the amount of incident light by a photoelectric conversion unit forming a pixel portion of the imaging device 201. FIG. The signal charges accumulated in the photodiodes constituting the photoelectric conversion unit are sequentially read out from the image sensor 201 as voltage signals corresponding to the signal charges based on the drive pulse given from the timing generator 215 in accordance with the command from the camera control unit 212. . The pixel configuration of the image sensor 201 will be described later with reference to FIG.

CDS/AGC/ADコンバータ(以下、撮像信号処理部という)202は、撮像素子201から読み出された撮像信号およびAF(自動焦点調節)用信号を取得する。ここではリセットノイズを除去するためのCDS(相関二重サンプリング)、AGC(自動ゲイン制御)、AD(アナログ-デジタル)変換が行われ、デジタル信号が出力される。撮像信号処理部202は、画像入力コントローラ203へ撮像信号を出力し、AF信号処理部204へ撮像面位相差AF用の信号を出力する。 A CDS/AGC/AD converter (hereinafter referred to as an imaging signal processing unit) 202 acquires an imaging signal read from the imaging device 201 and an AF (automatic focusing) signal. Here, CDS (correlated double sampling), AGC (automatic gain control), and AD (analog-digital) conversion are performed to remove reset noise, and a digital signal is output. The imaging signal processing unit 202 outputs an imaging signal to the image input controller 203 and outputs a signal for imaging plane phase difference AF to the AF signal processing unit 204 .

画像入力コントローラ203は、撮像信号処理部202から出力された撮像信号を取得し、バス21を介してメモリ209に記憶する。メモリ209は、例えばSDRAM(Synchronous Dynamic Random Access Memory)である。SDRAMから読み出された信号はバス21を介して表示制御部205に送られて処理される。表示制御部205は表示用の画像信号を表示部206に出力する。表示部206は液晶パネル等の表示デバイスを備え、画像信号にしたがって画面に画像を表示する。 The image input controller 203 acquires the imaging signal output from the imaging signal processing unit 202 and stores it in the memory 209 via the bus 21 . The memory 209 is, for example, SDRAM (Synchronous Dynamic Random Access Memory). A signal read from the SDRAM is sent to the display control unit 205 via the bus 21 and processed. The display control unit 205 outputs image signals for display to the display unit 206 . A display unit 206 includes a display device such as a liquid crystal panel, and displays an image on a screen according to an image signal.

また、撮像信号の記録モード時に記録媒体制御部207はメモリ209から読み出された信号を、バス21を介して取得して記録媒体208に記録する制御を行う。バス21に接続されたROM(Read Only Memory)210は、カメラ制御部212が実行する制御プログラム、および制御に必要な各種データ等を記憶している。フラッシュROM211には、撮像装置の動作に関する各種の設定情報(ユーザ設定情報等)が格納されている。 Further, in the imaging signal recording mode, the recording medium control unit 207 acquires the signal read from the memory 209 via the bus 21 and controls recording in the recording medium 208 . A ROM (Read Only Memory) 210 connected to the bus 21 stores control programs executed by the camera control unit 212 and various data required for control. The flash ROM 211 stores various setting information (user setting information, etc.) related to the operation of the imaging apparatus.

AF信号処理部204は撮像信号処理部202から出力されたAF用像信号の相関演算を行い、像ずれ量および信頼性情報を算出する。信頼性情報は2像の一致度を表す情報、コントラスト情報、飽和情報、キズ情報等である。AF信号処理部204は算出した像ずれ量および信頼性情報を、カメラ制御部212へ出力する。 The AF signal processing unit 204 performs a correlation operation on the AF image signal output from the imaging signal processing unit 202, and calculates an image shift amount and reliability information. The reliability information includes information indicating the degree of matching between two images, contrast information, saturation information, flaw information, and the like. The AF signal processing unit 204 outputs the calculated image shift amount and reliability information to the camera control unit 212 .

カメラ制御部212は撮像システムの制御を行う中枢部であり、CPUを備える。カメラ制御部212は、AF信号処理部204から取得した像ずれ量や信頼性情報に基づき、これらを算出する際の設定の変更をAF信号処理部204に通知する。例えば、像ずれ量が閾値より大きい場合に相関演算を行う領域を広く設定する処理や、撮像画像のコントラスト情報に応じてバンドパスフィルタの特性を変更する処理等が行われる。カメラ制御部212は、レンズ制御部106との間で情報の送受を行い、各種の処理を実行する。カメラ操作部214は、ユーザが操作に使用する操作部材や表示画面上のタッチパネル等を備え、ユーザによる操作指示をカメラ制御部212に通知する。カメラ制御部212は、カメラ操作部214からの入力信号に応じて、電源のON/OFF、設定の変更、記録の開始、AF制御の開始、記録画像の確認等のカメラ機能に関わる処理を実行する。またカメラ制御部212はレンズ制御部106に対して可動レンズの制御命令および制御情報を送信し、レンズ制御部106からの情報を受信する。 A camera control unit 212 is a central unit that controls the imaging system, and includes a CPU. Based on the image shift amount and the reliability information acquired from the AF signal processing unit 204, the camera control unit 212 notifies the AF signal processing unit 204 of changes in settings when calculating them. For example, when the amount of image shift is larger than a threshold value, a process of setting a wide area for correlation calculation, a process of changing the characteristics of the bandpass filter according to the contrast information of the captured image, and the like are performed. The camera control unit 212 transmits and receives information to and from the lens control unit 106 and executes various types of processing. The camera operation unit 214 includes operation members used for operations by the user, a touch panel on the display screen, and the like, and notifies the camera control unit 212 of operation instructions from the user. The camera control unit 212 executes processing related to camera functions such as power ON/OFF, setting change, recording start, AF control start, recorded image confirmation, etc., according to an input signal from the camera operation unit 214. do. The camera control unit 212 also transmits control commands and control information for the movable lens to the lens control unit 106 and receives information from the lens control unit 106 .

カメラ制御部212はAF制御部213を備え、レンズ制御部106と協働して撮像光学系の焦点調節制御を行う。AF制御部213は本発明の特徴的な構成要素であり、所定の被写体に対して焦点を合わせるために合焦制御を行う。 A camera control unit 212 includes an AF control unit 213 and cooperates with the lens control unit 106 to perform focus adjustment control of the imaging optical system. The AF control unit 213 is a characteristic component of the present invention, and performs focus control to bring a predetermined subject into focus.

図2を参照して、撮像素子の画素構成について説明する。図2(A)は撮像面位相差検出方式ではない通常の画素構成を示す模式図である。R,Gr,Gb,Bはカラーフィルタの色を表し、4画素でひと組を成している。 The pixel configuration of the image sensor will be described with reference to FIG. FIG. 2A is a schematic diagram showing a normal pixel configuration that is not based on the imaging plane phase difference detection method. R, Gr, Gb, and B represent the colors of the color filter, and four pixels make up one set.

図2(B)は撮像面位相差検出方式の画素構成を示す模式図である。撮像素子201は、撮像面位相差AFを行うために、画素部ごとに2つのフォトダイオードを備える。図2(B)の例は、図2(A)の画素構成に対して2分割された光電変換部を有する画素部を示す。1つのマイクロレンズに対して、2つのフォトダイオードが配置された例である。撮像光学系を通過した光はマイクロレンズによって分離されて、2つのフォトダイオードの受光面上に結像する。R,Gr,Gb,BについてAおよびBの記号を付加することによって、2つのフォトダイオードを区別している。2つのフォトダイオードの信号を加算した信号(A+B信号)が撮像信号である。例えば、RAとRBにそれぞれ対応するフォトダイオードの信号から得られる加算信号により、撮像用のR信号を取得できる。また個々のフォトダイオードの信号(A信号、B信号)がAF用の2つの像信号である。例えば、RAに対応するフォトダイオードの信号(A信号)と、RBに対応するフォトダイオードの信号(B信号)とにより、AF用の2つの像信号を取得できる。 FIG. 2B is a schematic diagram showing the pixel configuration of the imaging plane phase difference detection method. The imaging device 201 includes two photodiodes for each pixel unit in order to perform imaging plane phase difference AF. The example of FIG. 2B shows a pixel portion having a photoelectric conversion portion divided into two with respect to the pixel configuration of FIG. 2A. This is an example in which two photodiodes are arranged for one microlens. The light that has passed through the imaging optical system is separated by a microlens and images are formed on the light receiving surfaces of the two photodiodes. The two photodiodes are distinguished by the addition of A and B symbols for R, Gr, Gb and B. A signal (A+B signal) obtained by adding the signals of the two photodiodes is an imaging signal. For example, an R signal for imaging can be acquired from the addition signal obtained from the signals of the photodiodes respectively corresponding to RA and RB. Signals (A signal and B signal) of individual photodiodes are two image signals for AF. For example, two image signals for AF can be obtained from a photodiode signal (A signal) corresponding to RA and a photodiode signal (B signal) corresponding to RB.

このようにA+B信号から撮像用の信号を取得するとともに、A信号とB信号からAF用の2つの信号を取得することができる。AF信号処理部204はAF用の信号に基づく2つの像信号に対して相関演算を行い、像ずれ量および信頼性情報を算出する。 In this way, a signal for imaging can be obtained from the A+B signal, and two signals for AF can be obtained from the A signal and the B signal. The AF signal processing unit 204 performs a correlation operation on two image signals based on the AF signal, and calculates an image shift amount and reliability information.

本実施形態では撮像信号およびAF用の2つの像信号、つまり合計3つの信号を撮像素子201から取り出す例を示すが、本発明はこのような例に限定されない。例えば撮像素子201の処理負荷を考慮して、A+B信号とA信号(またはB信号)を取得してもよい。この場合、2つの信号が撮像素子から読み出され、A+B信号とA信号(またはB信号)との差分を算出することで、B信号(またはA信号)を生成できる。また瞳分割型撮像素子として、1つのマイクロレンズに対して、3以上に分割された光電変換部を有する画素構成の撮像素子を使用してもよい。この場合、複数の光電変換部のうちで視差を有する一対の光電変換部の出力から位相差情報を取得することができる。 In this embodiment, an example in which an imaging signal and two image signals for AF, that is, a total of three signals are extracted from the imaging element 201 is shown, but the present invention is not limited to such an example. For example, considering the processing load of the image sensor 201, the A+B signal and the A signal (or the B signal) may be acquired. In this case, two signals are read out from the imaging device, and the B signal (or A signal) can be generated by calculating the difference between the A+B signal and the A signal (or B signal). As the pupil-splitting type imaging device, an imaging device having a pixel structure having three or more photoelectric conversion units for one microlens may be used. In this case, phase difference information can be acquired from the output of a pair of photoelectric conversion units having parallax among the plurality of photoelectric conversion units.

図3を参照して、本実施形態の撮影処理について説明する。図3は撮影処理の概要を説明するフローチャートである。以下の処理はカメラ制御部212のCPUがROM210から読み出した制御プログラムを実行することにより実現される。まず、S501でカメラ制御部212は、撮影のための第1スイッチ(SW1と記す)がオン状態であるか否かを判定する。カメラ操作部214は、レリーズボタンによって操作される2段階式のスイッチを備える。ユーザは第1スイッチSW1の操作によって撮影準備の指示を行い、第2スイッチ(SW2と記す)の操作によって撮像動作の開始指示を行うことができる。SW1がオン状態であると判定された場合、S502へ処理を進め、SW1がオフ状態であると判定された場合には、待機状態でS501の判定処理が繰り返される。 The imaging process of this embodiment will be described with reference to FIG. FIG. 3 is a flow chart for explaining an outline of photographing processing. The following processing is realized by executing the control program read from the ROM 210 by the CPU of the camera control section 212 . First, in S501, the camera control unit 212 determines whether or not the first switch (denoted as SW1) for photographing is on. A camera operation unit 214 includes a two-stage switch operated by a release button. The user can issue an instruction to prepare for shooting by operating the first switch SW1, and can issue an instruction to start the imaging operation by operating the second switch (referred to as SW2). If it is determined that SW1 is on, the process proceeds to S502, and if it is determined that SW1 is off, the determination process of S501 is repeated in the standby state.

S502でカメラ制御部212は自動焦点検出処理を行う。自動焦点検出処理の詳細については図4を用いて後述する。S503でカメラ制御部212は焦点検出情報(像ずれ量、デフォーカス量)を取得し、S502で算出された焦点検出情報が予め定められた合焦範囲に入っているか否かを判定する。焦点検出情報が合焦範囲内であると判定された場合、S505の処理に進む。また焦点検出情報が合焦範囲外であると判定された場合にはS504に処理を進める。 In S502, the camera control unit 212 performs automatic focus detection processing. Details of the automatic focus detection process will be described later with reference to FIG. In S503, the camera control unit 212 acquires focus detection information (image shift amount, defocus amount), and determines whether the focus detection information calculated in S502 is within a predetermined focus range. If it is determined that the focus detection information is within the focus range, the process proceeds to S505. If it is determined that the focus detection information is outside the in-focus range, the process proceeds to S504.

S504でカメラ制御部212はレンズ制御部106に対し、フォーカスレンズ部103の駆動命令を送信する。レンズ制御部106は、S502で算出された焦点検出情報に基づいてフォーカスレンズ部103の駆動制御を行う。S504の後、S502の処理に戻る。 In step S<b>504 , the camera control unit 212 transmits a command to drive the focus lens unit 103 to the lens control unit 106 . The lens control unit 106 performs drive control of the focus lens unit 103 based on the focus detection information calculated in S502. After S504, the process returns to S502.

S505でカメラ制御部212は、第2スイッチSW2がオン状態であるか否かを判定する。SW2がオン状態であると判定された場合、S506の処理に進み、SW2がオフ状態であると判定された場合にはS507の処理に進む。S506では撮像動作が行われた後、次のS508で撮像後の画像データの記録処理が行われる。記録処理の終了後に処理を終了する。またS507でカメラ制御部212は、SW1がオン状態であるか否かを判定する。SW1がオン状態であると判定された場合、S505に処理を戻す。またSW1がオフ状態であると判定された場合には処理を終了する。 In S505, the camera control unit 212 determines whether the second switch SW2 is on. If it is determined that SW2 is on, the process proceeds to S506, and if it is determined that SW2 is off, the process proceeds to S507. After the imaging operation is performed in S506, processing for recording image data after imaging is performed in the next S508. After finishing the recording process, the process ends. Also, in S507, the camera control unit 212 determines whether SW1 is on. If it is determined that SW1 is on, the process returns to S505. If it is determined that SW1 is off, the process ends.

次に、図4を参照して自動焦点検出処理について説明する。図4は、図3のS502に示す処理を説明するフローチャートである。以下の処理はAF制御部213およびAF信号処理部204が行う。 Next, automatic focus detection processing will be described with reference to FIG. FIG. 4 is a flowchart for explaining the processing shown in S502 of FIG. The following processing is performed by the AF control unit 213 and the AF signal processing unit 204. FIG.

S601にてAF制御部213は焦点検出演算を行うために、AF信号処理部204に対して相関演算を指示する。AF信号処理部204は撮像素子201から取得した一対の位相差像信号の相関演算を行う。そしてAF制御部213は、AF信号処理部204から取得した相関量が極小値となるシフト量である像ずれ量に基づいてデフォーカス量を算出する。相関演算は帯域特性が異なる複数のフィルタを用いて行われる。例えば低域用、中低域用、中域用、高域用といった周波数帯域の異なる4種類のフィルタが使用される。これらのフィルタにより、低域用、中低域用、中域用、高域用の4種類のデフォーカス量が算出される。各フィルタの構成は公知であるため、詳細な説明を割愛する。またAF制御部213は、AF信号処理部204に対して、一対の位相差像信号の相関量をシフト量ごとに算出するよう指示する。AF制御部213は、AF信号処理部204から取得したシフト量ごとの相関量の波形を生成する。 In S601, the AF control unit 213 instructs the AF signal processing unit 204 to perform correlation calculation in order to perform focus detection calculation. An AF signal processing unit 204 performs a correlation calculation on a pair of phase difference image signals acquired from the image sensor 201 . Then, the AF control unit 213 calculates the defocus amount based on the image shift amount, which is the amount of shift at which the correlation amount obtained from the AF signal processing unit 204 becomes the minimum value. Correlation calculation is performed using a plurality of filters with different band characteristics. For example, four types of filters with different frequency bands are used, such as for low frequency, middle-low frequency, middle frequency, and high frequency. These filters are used to calculate four types of defocus amounts for low, middle and low, middle, and high frequencies. Since the configuration of each filter is publicly known, detailed description is omitted. The AF control unit 213 also instructs the AF signal processing unit 204 to calculate the correlation amount between the pair of phase difference image signals for each shift amount. The AF control unit 213 generates a correlation amount waveform for each shift amount acquired from the AF signal processing unit 204 .

S602では、2像の相関変化量を算出する処理が行われる。図5を用いて算出処理について説明する。図5は、撮像面位相差AFにおいて、暈けの度合が大きい状態から合焦位置付近までフォーカスレンズを駆動する際の、相関変化量(相関量の変化量)を例示したグラフである。横軸は被写体の暈けの度合を表す。合焦位置から離れるにつれて暈けが大きくなる。縦軸は相関変化量(以下、MAXDERと記す)を表す。相関変化量MAXDERは、下式(1)で算出することができる。
MAXDER(k)=(COR[k-3]-COR[k-1])
-(COR[k-2]-COR[k]) ・・・(1)
In S602, processing for calculating the amount of correlation change between two images is performed. Calculation processing will be described with reference to FIG. FIG. 5 is a graph showing an example of correlation change amount (change amount of correlation amount) when driving the focus lens from a state where the degree of blur is large to near the in-focus position in imaging plane phase difference AF. The horizontal axis represents the degree of blurring of the subject. The blur increases as the distance from the in-focus position increases. The vertical axis represents the amount of correlation change (hereinafter referred to as MAXDER). The correlation change amount MAXDER can be calculated by the following formula (1).
MAXDER(k)=(COR[k-3]-COR[k-1])
-(COR[k-2]-COR[k]) (1)

式(1)中のkは位置を特定するための変数であり、整数値をとる。COR[k]は、変数kが示す位置での2像の相関量を表す。周波数帯域が異なる4種類のフィルタにそれぞれ対応する低域用、中低域用、中域用、高域用の相関変化量MAXDERが算出される。撮像面位相差検出方式のAFにおいて、暈けの度合が大きい状態から合焦状態(被写体に焦点が合った状態)に近づくにつれて、相関変化量MAXDERの値が大きくなることが分かる。 k in the formula (1) is a variable for specifying the position and takes an integer value. COR[k] represents the amount of correlation between the two images at the position indicated by the variable k. Correlation change amounts MAXDER for low, medium and low, middle, and high frequencies corresponding to four types of filters with different frequency bands are calculated. It can be seen that in the imaging plane phase difference detection AF, the value of the correlation change amount MAXDER increases as the degree of blurring approaches the in-focus state (the state in which the subject is in focus).

図4のS603でAF制御部213は、相関変化量MAXDERに基づいてデフォーカス量の標準偏差を算出する処理を行う。デフォーカス量の標準偏差をDefocus3σと表記すると、これは下式(2)で算出することができる。
Defocus3σ= K ×(A×MAXDER^B) ・・・(2)
In S603 of FIG. 4, the AF control unit 213 performs a process of calculating the standard deviation of the defocus amount based on the correlation change amount MAXDER. If the standard deviation of the defocus amount is expressed as Defocus3σ, it can be calculated by the following equation (2).
Defocus3σ=K×(A×MAXDER̂B) (2)

式(2)中のKは、像ずれ量をデフォーカス量に変換するための変換係数である。AとBは相関変化量MAXDERから像ずれ量の標準偏差に変換するための変換式の係数である。「^」はべき乗を表す。S603で算出された、周波数帯域の異なる4種類のフィルタにそれぞれ対応する低域用、中低域用、中域用、高域用の相関変化量MAXDERを式(2)に代入することで、4種類のデフォーカス量の標準偏差Defocus3σが算出される。 K in Expression (2) is a conversion coefficient for converting the image shift amount into the defocus amount. A and B are coefficients of a conversion formula for converting the amount of correlation change MAXDER into the standard deviation of the amount of image shift. "^" represents exponentiation. By substituting the correlation change amount MAXDER for the low-range, middle-low-range, mid-range, and high-range corresponding to the four types of filters with different frequency bands calculated in S603 into equation (2), A standard deviation Defocus3σ of the four types of defocus amounts is calculated.

S604では、デフォーカス量の信頼性を表す信頼性評価値を算出するために、デフォーカス量の標準偏差Defocus3σの閾値を算出する処理が行われる。Defocus3σの閾値は、輝度条件およびコントラスト条件に基づいて算出される。図6を参照して具体的に説明する。 In S604, in order to calculate a reliability evaluation value representing the reliability of the defocus amount, a process of calculating a threshold value of the standard deviation Defocus3σ of the defocus amount is performed. The Defocus3σ threshold is calculated based on the brightness condition and the contrast condition. A specific description will be given with reference to FIG.

図6は、輝度条件に関して撮影感度とデフォーカス量の標準偏差の閾値との関係を示すグラフである。横軸は撮影感度を表し、Sv1、Sv2、Sv3をそれぞれ示している。縦軸はデフォーカス量の標準偏差Defocus3σの閾値(Defocus3σLMNと記す)を表し、Th1、Th2、Th3をそれぞれ示している。閾値Th1~3はSv1~3にそれぞれ対応する閾値であり、Th1<Th2<Th3とする。 FIG. 6 is a graph showing the relationship between the shooting sensitivity and the threshold value of the standard deviation of the defocus amount with respect to the luminance conditions. The horizontal axis represents the shooting sensitivity and indicates Sv1, Sv2, and Sv3, respectively. The vertical axis represents the threshold value of the standard deviation Defocus3σ of the defocus amount (denoted as Defocus3σLMN), indicating Th1, Th2, and Th3, respectively. Thresholds Th1 to Th3 correspond to Sv1 to Sv3, respectively, and Th1<Th2<Th3.

図6に示すように、撮影シーンにおける撮影感度に基づき、閾値Defocus3σLMNが算出される。撮影輝度が低い場合に撮影輝度と撮影感度には相関があり、撮影感度を上げて露光を適正にする処理が行われる。撮影感度が高い場合にはノイズが増加してデフォーカス量の標準偏差Defocus3σが大きくなる。そのため、撮影感度が高くなるにつれて閾値Defocus3σLMNが大きく設定される。本実施形態では信頼性評価値を大きくして合焦条件を緩和し、合焦しやすい設定としている。ここで、閾値Defocus3σLMNの算出は、合焦条件を緩和するために、合焦条件を決定する最も信頼性の高い信頼性評価値(後述のRel3)に対して行われる。信頼性評価値の高低順の詳細については後述する。 As shown in FIG. 6, the threshold Defocus3σLMN is calculated based on the shooting sensitivity in the shooting scene. When the shooting brightness is low, there is a correlation between the shooting brightness and the shooting sensitivity, and processing is performed to increase the shooting sensitivity and make the exposure appropriate. When the photographing sensitivity is high, noise increases and the standard deviation Defocus3σ of the defocus amount increases. Therefore, the threshold value Defocus3σLMN is set larger as the photographing sensitivity increases. In the present embodiment, the reliability evaluation value is increased to relax the focusing conditions, thereby making it easier to focus. Here, the calculation of the threshold Defocus3σLMN is performed with respect to the most reliable reliability evaluation value (Rel3 described later) for determining the focusing condition in order to relax the focusing condition. The details of the order of reliability evaluation values will be described later.

図6に示す閾値Th2とTh3は、像信号の最大値と最小値との差分である振幅(PBと記す)に基づいて決定される。図7を用いて具体的に説明する。図7は横軸に振幅PBをとり、縦軸に閾値Defocus3σLMNをとって両者の関係を示すグラフである。振幅PBはAF信号処理部204またはAF制御部213によって算出される。 Thresholds Th2 and Th3 shown in FIG. 6 are determined based on the amplitude (denoted as PB), which is the difference between the maximum and minimum values of the image signal. A specific description will be given with reference to FIG. FIG. 7 is a graph showing the relationship between the amplitude PB on the horizontal axis and the threshold value Defocus3σLMN on the vertical axis. Amplitude PB is calculated by AF signal processing section 204 or AF control section 213 .

図7(A)は撮影感度がSv2である場合を示し、振幅PB1に対応する閾値Th2_1と、振幅PB2に対応する閾値Th2_0を示している。PB1<PB2とし、Th2_1>Th2_0とする。振幅PBがPB1未満である場合、閾値はTh2_1である。また振幅PBがPB2より大きい場合、閾値はTh2_0である。振幅PBがPB1以上であってPB2以下である場合には、Th2_1からTh2_0の範囲内で、振幅PBの増加につれて閾値が線形的に減少する。図7(B)は撮影感度がSv3である場合を示し、振幅PB3に対応する閾値Th3_1と、振幅PB4に対応する閾値Th3_0を示している。PB3<PB4とし、Th3_1>Th3_0とする。振幅PBがPB3未満である場合、閾値はTh3_1である。また振幅PBがPB4より大きい場合、閾値はTh3_0である。振幅PBがPB3以上であってPB4以下である場合には、Th3_1からTh3_0の範囲内で、振幅PBの増加につれて閾値が線形的に減少する。 FIG. 7A shows a case where the imaging sensitivity is Sv2, and shows a threshold Th2_1 corresponding to the amplitude PB1 and a threshold Th2_0 corresponding to the amplitude PB2. PB1<PB2 and Th2_1>Th2_0. If the amplitude PB is less than PB1, the threshold is Th2_1. Also, when the amplitude PB is greater than PB2, the threshold is Th2_0. When the amplitude PB is greater than or equal to PB1 and less than or equal to PB2, the threshold linearly decreases within the range of Th2_1 to Th2_0 as the amplitude PB increases. FIG. 7B shows the case where the imaging sensitivity is Sv3, and shows the threshold Th3_1 corresponding to the amplitude PB3 and the threshold Th3_0 corresponding to the amplitude PB4. PB3<PB4 and Th3_1>Th3_0. If the amplitude PB is less than PB3, the threshold is Th3_1. Also, when the amplitude PB is greater than PB4, the threshold is Th3_0. When the amplitude PB is greater than or equal to PB3 and less than or equal to PB4, the threshold linearly decreases within the range of Th3_1 to Th3_0 as the amplitude PB increases.

図7に示すように、閾値Defocus3σLMNは像信号の最大値と最小値との差分である振幅PBに応じて可変設定される。振幅PBは被写体の輝度に応じて変わる値であり、PB値が小さい場合(PB1、PB3参照)には被写体の輝度が低いので、閾値Th2とTh3を相対的に大きくして合焦条件を緩和する処理が行われる。 As shown in FIG. 7, the threshold Defocus3σLMN is variably set according to the amplitude PB, which is the difference between the maximum and minimum values of the image signal. The amplitude PB is a value that changes according to the brightness of the subject. When the PB value is small (see PB1 and PB3), the brightness of the subject is low. processing is performed.

図7では、PB1からPB2までの範囲やPB3からPB4までの範囲においてPB値に対して閾値Th2、Th3が線形関係を有する例を示した。これに限らず、PB値と閾値とを非線形関係に設定する方法や両者を段階的に対応付ける方法を採用してもよい。また輝度評価値については、像信号の振幅PBに限らず、像信号の最大値または最小値、被写体の輝度値を用いることができる。 FIG. 7 shows an example in which the thresholds Th2 and Th3 have a linear relationship with the PB value in the range from PB1 to PB2 and in the range from PB3 to PB4. Without being limited to this, a method of setting the PB value and the threshold in a non-linear relationship or a method of stepwise correspondence between the two may be adopted. Further, the luminance evaluation value is not limited to the amplitude PB of the image signal, but may be the maximum or minimum value of the image signal or the luminance value of the object.

図8を参照して、コントラスト条件に関して説明する。図8は、コントラスト評価値に基づいてDefocus3σの閾値を決定する方法を説明するグラフである。横軸は、像信号の最大値Peakで振幅PBの値を除算することにより正規化した比PB/Peakを表し、PB_Peak1とPB_Peak2を示している。正規化した比PB/Peakとして表現されるコントラスト評価値はAF信号処理部204またはAF制御部213によって算出される。縦軸は、コントラスト評価値に対応するDefocus3σの閾値(Defocus3σCNTと記す)を表し、Th4、Th5を示している。PB_Peak1<PB_Peak2とする。PB_Peak1に対応する閾値Th5と、PB_Peak2に対応する閾値Th4との関係は、Th5>Th4である。PB/PeakがPB_Peak1未満である場合、閾値はTh5である。またPB/PeakがPB_Peak2より大きい場合、閾値はTh4である。PB/PeakがPB_Peak1以上であってPB_Peak2以下である場合には、Th5からTh4の範囲内で、PB/Peakの増加につれて閾値が線形的に減少する。 Contrast conditions will be described with reference to FIG. FIG. 8 is a graph for explaining a method of determining the Defocus3σ threshold based on the contrast evaluation value. The horizontal axis represents the ratio PB/Peak normalized by dividing the value of the amplitude PB by the maximum value Peak of the image signal, indicating PB_Peak1 and PB_Peak2. A contrast evaluation value expressed as a normalized ratio PB/Peak is calculated by the AF signal processing section 204 or the AF control section 213 . The vertical axis represents the Defocus3σ threshold value (Defocus3σCNT) corresponding to the contrast evaluation value, indicating Th4 and Th5. PB_Peak1<PB_Peak2. The relationship between the threshold Th5 corresponding to PB_Peak1 and the threshold Th4 corresponding to PB_Peak2 is Th5>Th4. If PB/Peak is less than PB_Peak1, the threshold is Th5. Also, when PB/Peak is greater than PB_Peak2, the threshold is Th4. When PB/Peak is greater than or equal to PB_Peak1 and less than or equal to PB_Peak2, the threshold linearly decreases within the range of Th5 to Th4 as PB/Peak increases.

PB/Peakの値が小さい場合、被写体のコントラストが低いため、閾値Defocus3σCNTは大きい値に設定される。本実施形態では信頼性評価値を大きくして合焦条件を緩和し、合焦しやすい設定としている。閾値Defocus3σCNTの算出は、合焦条件を緩和するために、合焦条件を決定する最も信頼性の高いコントラスト評価値に対して行われる。なお、図8の例に限らず、PB/Peakと閾値とを非線形関係に設定する方法や両者を段階的に対応付ける方法を採用してもよい。 When the value of PB/Peak is small, the contrast of the subject is low, so the threshold Defocus3σCNT is set to a large value. In the present embodiment, the reliability evaluation value is increased to relax the focusing conditions, thereby making it easier to focus. Calculation of the threshold Defocus3σCNT is performed for the most reliable contrast evaluation value that determines the focusing condition in order to relax the focusing condition. Note that a method of setting the PB/Peak and the threshold in a non-linear relationship or a method of stepwise correspondence between the two may be adopted without being limited to the example of FIG. 8 .

AF信号処理部204またはAF制御部213は、図7から得られる閾値Defocus3σLMNの値と、図8から得られる閾値Defocus3σCNTの値との間で大小を比較する。2つのうちで大きい方の閾値が、標準偏差Defocus3σの閾値Def3σTH3として決定される。 The AF signal processing unit 204 or the AF control unit 213 compares the value of the threshold Defocus3σLMN obtained from FIG. 7 and the value of the threshold Defocus3σCNT obtained from FIG. The larger of the two thresholds is determined as the threshold Defocus3σ of the standard deviation Defocus3σ.

図4のS605では、デフォーカス量の信頼性を表す信頼性評価値(Relと記す)を算出する処理が行われる。信頼性評価値Relについては、例えば4段階で決定される。信頼性が高い順に、4種類の信頼性評価値をRel3、Rel2、Rel1、Rel0と表記する。これらは下式(3)によって算出することができる。
Rel
= Rel3 if(Defocus3σ≦Def3σTH3)
Rel2 if(Def3σTH3<Defocus3σ≦Def3σTH2)
Rel1 if(Def3σTH2<Defocus3σ≦Def3σTH1)
Rel0 if(Def3σTH1≦Defocus3σ)
・・・(3)
In S605 of FIG. 4, a process of calculating a reliability evaluation value (denoted as Rel) representing the reliability of the defocus amount is performed. The reliability evaluation value Rel is determined in four stages, for example. The four types of reliability evaluation values are denoted as Rel3, Rel2, Rel1, and Rel0 in descending order of reliability. These can be calculated by the following formula (3).
Rel
= Rel3 if (Defocus3σ≤Def3σTH3)
Rel2 if (Def3σTH3<Defocus3σ≤Def3σTH2)
Rel1 if (Def3σTH2<Defocus3σ≤Def3σTH1)
Rel0 if (Def3σTH1≤Defocus3σ)
... (3)

式(3)中のDef3σTH3、Def3σTH2、Def3σTH1は、算出されたデフォーカス量の標準偏差Defocus3σに対する閾値である。Def3σTH3は、図4のS604で算出された閾値である。if()内の不等式は条件式を示す。 Def3σTH3, Def3σTH2, and Def3σTH1 in Equation (3) are thresholds for the standard deviation Defocus3σ of the calculated defocus amounts. Def3σTH3 is the threshold calculated in S604 of FIG. An inequality in if( ) indicates a conditional expression.

信頼性評価値Rel=Rel3である場合には、算出されたデフォーカス量の信頼性が高い。これは合焦してよいことを意味し、合焦可能な条件に相当する。また、信頼性評価値Rel=Rel2である場合には、後述するデフォーカス量のフレーム加算処理時のみ合焦してもよいことを意味し、合焦可能な条件に相当する。 When the reliability evaluation value Rel=Rel3, the reliability of the calculated defocus amount is high. This means that focusing is allowed, and corresponds to a condition where focusing is possible. Further, when the reliability evaluation value Rel=Rel2, it means that focusing may be performed only during frame addition processing of the defocus amount, which will be described later, and corresponds to a condition in which focusing is possible.

信頼性評価値Rel=Rel1である場合には、算出されたデフォーカス量の方向が合っていることを意味し、合焦できない条件に相当する。また信頼性評価値Rel=Rel0である場合には、デフォーカス量としての信頼性が最も低いことを意味し、合焦できない条件に相当する。上式(3)を用いて、S601で算出された低域用、中低域用、中域用、高域用のデフォーカス量に対する信頼性評価値がそれぞれ算出される。 If the reliability evaluation value Rel=Rel1, it means that the direction of the calculated defocus amount is correct, and corresponds to a condition in which focusing is not possible. Further, when the reliability evaluation value Rel=Rel0, it means that the reliability of the defocus amount is the lowest, and corresponds to a condition in which focusing is impossible. Using the above equation (3), the reliability evaluation values for the defocus amounts for the low-range, medium-low range, medium-range, and high-range calculated in S601 are calculated.

S606では、S601で算出された4種類のデフォーカス量と、S605で算出された信頼性評価値を用いて、1つのデフォーカス量を選択する処理が実行される。例えば、低域用、中低域用、中域用、高域用の各デフォーカス量のうち、最も高い信頼性評価値を有するデフォーカス量が選択される。 In S606, a process of selecting one defocus amount is executed using the four types of defocus amounts calculated in S601 and the reliability evaluation value calculated in S605. For example, the defocus amount having the highest reliability evaluation value is selected from among the defocus amounts for the low range, middle-low range, middle range, and high range.

S607でAF制御部213は、フレーム加算判定演算を行う。フレーム加算判定演算の詳細については後述する。S608でAF制御部213は、S607で得られた判定結果に基づいて、過去のフレームにおいて算出されたデフォーカス量に対して、フレーム加算を行うか否かを判定する。フレーム加算を行うことが判定された場合、S609へ処理を進め、フレーム加算を行わないことが判定された場合には図4に示す一連の処理を終了する。 In S607, the AF control unit 213 performs frame addition determination calculation. The details of the frame addition determination calculation will be described later. In S<b>608 , the AF control unit 213 determines whether or not to perform frame addition with respect to the defocus amount calculated in the past frame based on the determination result obtained in S<b>607 . If it is determined to perform frame addition, the process advances to step S609, and if it is determined not to perform frame addition, the series of processes shown in FIG. 4 ends.

S609でAF制御部213はデフォーカス量の加算平均処理を行う。現在のフレームで算出されたデフォーカス量と、過去のフレームで算出されたデフォーカス量との加算平均値が算出される。例えば、過去に取得されたmフレーム分のデフォーカス量を用いて算出されたデータと、現在のフレームで算出されたデフォーカス量のデータとの加算平均処理を行うことにより、最終的なデフォーカス量が算出された後、処理を終了する。 In S609, the AF control unit 213 performs averaging processing of the defocus amount. An addition average value of the defocus amount calculated for the current frame and the defocus amount calculated for the past frame is calculated. For example, the data calculated using the defocus amount for m frames acquired in the past and the defocus amount data calculated for the current frame are added and averaged to obtain the final defocus amount. After the amount is calculated, the process ends.

図9および図10に示すフローチャートを用いて、図4のS607のフレーム加算判定演算について説明する。S901でAF制御部213は、図4のS606で選択されたデフォーカス量が、低域用のフィルタを用いて算出されたデフォーカス量、つまり低域用のデフォーカス量であるか否かの判定処理を行う。低域用のデフォーカス量の合焦位置近傍での精度は、高域用、中域用、中低域用のデフォーカス量の精度よりも低いので、低域用のデフォーカス量が選択された場合、S911へ処理を進める。低域用のデフォーカス量が選択されていない場合、S902へ処理を進める。 The frame addition determination calculation of S607 in FIG. 4 will be described with reference to the flowcharts shown in FIGS. In S901, the AF control unit 213 determines whether the defocus amount selected in S606 of FIG. Perform judgment processing. The accuracy of the defocus amount for the low range near the in-focus position is lower than the accuracy of the defocus amounts for the high, mid, and low-mid ranges, so the defocus amount for the low range is selected. If so, the process proceeds to S911. If the defocus amount for low frequencies has not been selected, the process proceeds to S902.

S902では、図4のS606で選択されたデフォーカス量の信頼性評価値Relが、4種類の信頼性評価値のうちのRel2に等しいか否かが判定される。信頼性評価値Rel2は、デフォーカス量に関するフレーム加算処理時のみ合焦可能であることを意味する。Rel=Rel2である場合(判定結果が真)、S903へ処理を進め、Rel=Rel2でない場合(判定結果が偽)、S911へ処理を進める。S903では、図4のS606で選択されたデフォーカス量が、高域用のフィルタを用いて算出されたデフォーカス量、つまり高域用のデフォーカス量であるか否かの判定処理が実行される。高域用のデフォーカス量であって信頼性評価値がRel2である場合には、中域用のデフォーカス量よりも合焦位置近傍でのデフォーカス量の精度が高いので、フレーム加算処理を行うことで合焦可能であると判断される。高域用のデフォーカス量が選択されている場合、S910へ処理を進める。高域用のデフォーカス量が選択されていない場合、S904へ処理を進める。 In S902, it is determined whether or not the reliability evaluation value Rel of the defocus amount selected in S606 of FIG. 4 is equal to Rel2 of the four types of reliability evaluation values. The reliability evaluation value Rel2 means that focusing is possible only during frame addition processing regarding the defocus amount. If Rel=Rel2 (determination result is true), the process proceeds to S903, and if Rel=Rel2 is not (determination result is false), the process proceeds to S911. In S903, it is determined whether or not the defocus amount selected in S606 of FIG. 4 is the defocus amount calculated using the high-frequency filter, that is, the high-frequency defocus amount. be. If the defocus amount for the high frequency band has a reliability evaluation value of Rel2, the accuracy of the defocus amount in the vicinity of the in-focus position is higher than that for the mid-range band, so frame addition processing is performed. By doing so, it is determined that focusing is possible. If the defocus amount for high frequencies has been selected, the process proceeds to S910. If the defocus amount for high frequencies has not been selected, the process proceeds to S904.

S904でAF制御部213は、像の暈け度を表す評価値DFD、および像の鮮鋭度Sharpnessを算出する処理を行う。評価値DFDは下式(4)で算出することができる。
DFD=Σ(A[k]+B[k])/((Σ(A[k])+Σ(B[k]))/2)
・・・(4)
In S<b>904 , the AF control unit 213 performs a process of calculating an evaluation value DFD representing the degree of blurring of the image and the sharpness of the image. The evaluation value DFD can be calculated by the following formula (4).
DFD=Σ(A[k]+B[k]) 2 /((Σ(A[k]) 2 +Σ(B[k]) 2 )/2)
... (4)

式(4)中のkは位置を特定するための変数であり、整数値をとる。A[k]とB[k]はそれぞれ、変数kが示す位置におけるA像とB像の信号値である。Σはkに関する総和演算の記号である。 k in equation (4) is a variable for specifying the position and takes an integer value. A[k] and B[k] are the signal values of the A image and the B image at the position indicated by the variable k, respectively. Σ is the symbol for the summation operation with respect to k.

像の鮮鋭度Sharpnessは、下式(5)で算出することができる。
Sharpness=Σ(S[k+1]-S[k])/Σ(S[k+1]-S[k])
・・・(5)
The sharpness of the image can be calculated by the following formula (5).
Sharpness=Σ(S[k+1]−S[k]) 2 /Σ(S[k+1]−S[k])
... (5)

式(5)中のkは位置を特定するための変数であり、整数値をとる。S[k]は、変数kが示す位置における位相差像信号の信号値である。Σはkに関する総和演算の記号である。式(5)から算出されたSharpnessを像信号の振幅PBで除算して、鮮鋭度評価値Sharpness/PBが算出される。 k in equation (5) is a variable for specifying the position and takes an integer value. S[k] is the signal value of the phase difference image signal at the position indicated by the variable k. Σ is the symbol for the summation operation with respect to k. The sharpness evaluation value sharpness/PB is calculated by dividing the sharpness calculated from the equation (5) by the amplitude PB of the image signal.

S905では、S904で算出された評価値DFDが所定の閾値以上であるか否か、またはS904で算出された鮮鋭度評価値Sharpness/PBが所定の閾値以上であるか否かの判定処理が実行される。評価値DFDに対する閾値(DFD閾値)を、DFD_PARAM_THと表記し、Sharpness/PBに対する閾値をSHARPNESS_TO_PB_THと表記する。S905における第1判定条件は以下のとおりである。
(I)DFD≧DFD_PARAM_TH、または、Sharpness/PB≧SHARPNESS_TO_PB_TH
In S905, determination processing is executed to determine whether the evaluation value DFD calculated in S904 is equal to or greater than a predetermined threshold, or whether the sharpness evaluation value Sharpness/PB calculated in S904 is equal to or greater than a predetermined threshold. be done. A threshold for the evaluation value DFD (DFD threshold) is denoted as DFD_PARAM_TH, and a threshold for Sharpness/PB is denoted as SHARPNESS_TO_PB_TH. The first determination condition in S905 is as follows.
(I) DFD≧DFD_PARAM_TH or Sharpness/PB≧SHARPNESS_TO_PB_TH

判定条件(I)を満たす場合、AF制御部213はフォーカスレンズ位置が合焦位置の近傍であり、合焦可能な条件であると判断してS910へ処理を進める。また判定条件(I)を満たさない場合にはS906へ処理を進める。 If the determination condition (I) is satisfied, the AF control unit 213 determines that the focus lens position is in the vicinity of the in-focus position, that is, a condition that enables focusing, and advances the processing to S910. If the determination condition (I) is not satisfied, the process proceeds to S906.

S906でAF制御部213は、低輝度または低コントラストの被写体の撮影時における合焦条件を緩和するために、鮮鋭度評価値Sharpness/PBに基づいてDFD閾値を更新する。図11を用いて具体的に説明する。図11は、横軸に鮮鋭度評価値Sharpness/PBをとり、縦軸にDFD閾値をとって両者の関係を示すグラフである。図11は撮影感度が異なるSv1、Sv2、Sv3についてのグラフ線を例示しており、Sv1<Sv2<Sv3とする。 In S<b>906 , the AF control unit 213 updates the DFD threshold based on the sharpness evaluation value Sharpness/PB in order to relax the focusing condition when shooting a low-luminance or low-contrast subject. A specific description will be given with reference to FIG. FIG. 11 is a graph showing the relationship between the sharpness evaluation value Sharpness/PB on the horizontal axis and the DFD threshold on the vertical axis. FIG. 11 illustrates graph lines for Sv1, Sv2, and Sv3 with different photographing sensitivities, where Sv1<Sv2<Sv3.

Sharpness/PBがSHARPNESS_TO_PB_THより大きい場合、DFD閾値はDFD_PARAM_THに示す一定値となる。Sharpness/PBがSHARPNESS_TO_PB_RLX_THより小さい場合には、撮影感度ごとに異なるDFD閾値となる。つまり、撮影感度Svj(j=1-3)の場合、DFD閾値はDFD_PARAM_RLX_Svj_THである。DFD_PARAM_RLX_Sv1_TH>DFD_PARAM_RLX_Sv2_TH>DFD_PARAM_RLX_Sv3_THである。 If Sharpness/PB is greater than SHARPNESS_TO_PB_TH, the DFD threshold is a constant value shown in DFD_PARAM_TH. When Sharpness/PB is smaller than SHARPNESS_TO_PB_RLX_TH, the DFD threshold differs for each shooting sensitivity. That is, for the shooting sensitivity Svj (j=1-3), the DFD threshold is DFD_PARAM_RLX_Svj_TH. DFD_PARAM_RLX_Sv1_TH>DFD_PARAM_RLX_Sv2_TH>DFD_PARAM_RLX_Sv3_TH.

Sharpness/PBがSHARPNESS_TO_PB_RLX_TH以上であって、SHARPNESS_TO_PB_TH以下である場合には、Sharpness/PBの増加に伴ってDFD閾値が増加する。例えばDFD閾値は、撮影感度Svj(j=1-3)に応じて、DFD_PARAM_RLX_Svj_THからDFD_PARAM_THの範囲で線形的に変化する。 If Sharpness/PB is greater than or equal to SHARPNESS_TO_PB_RLX_TH and less than or equal to SHARPNESS_TO_PB_TH, the DFD threshold increases as Sharpness/PB increases. For example, the DFD threshold linearly changes in the range from DFD_PARAM_RLX_Svj_TH to DFD_PARAM_TH according to the shooting sensitivity Svj (j=1-3).

図11に示すように、撮影感度に応じてDFD閾値が可変設定される。撮影感度が高いほどDFD閾値が小さくなる。こうすることで、コントラストが低い被写体に対して低輝度条件下で撮影する場合に、輝度条件の変化に応じて適切に合焦条件を変化させることが可能となる。 As shown in FIG. 11, the DFD threshold is variably set according to the imaging sensitivity. The higher the imaging sensitivity, the smaller the DFD threshold. By doing so, when photographing an object with low contrast under low luminance conditions, it is possible to appropriately change the focusing condition according to changes in luminance conditions.

図9のS906の後、図10のZ907の処理に進む。S907でAF制御部213は、以下に示す第2判定条件に関する判定処理を実行する。
(II)DFD≧DFD_PARAM_Svj_TH、かつ、PB/Peak≦PB_TO_PEAK_TH
DFD_PARAM_Svj_THはS906で更新されたDFD閾値である。また閾値PB_TO_PEAK_THは、被写体が高コントラストであるか否かを判定するための、コントラスト評価値PB/Peakに対する閾値である。
After S906 in FIG. 9, the process proceeds to Z907 in FIG. In S907, the AF control unit 213 executes determination processing regarding the second determination condition described below.
(II) DFD≧DFD_PARAM_Svj_TH and PB/Peak≦PB_TO_PEAK_TH
DFD_PARAM_Svj_TH is the DFD threshold updated in S906. Threshold PB_TO_PEAK_TH is a threshold for the contrast evaluation value PB/Peak for determining whether or not the subject has high contrast.

判定条件(II)を満たす場合、つまり、像の暈け度を表す評価値DFDが、変更後のDFD閾値以上であって、かつPB/Peakが閾値以下である場合、フォーカスレンズ位置が合焦位置の近傍であると判断される。この場合、S908へ処理を進める。判定条件(II)を満たさない場合にはS911へ処理を進める。 If the determination condition (II) is satisfied, that is, if the evaluation value DFD representing the degree of image blur is greater than or equal to the changed DFD threshold and PB/Peak is less than or equal to the threshold, the focus lens position is in focus. It is determined to be near the location. In this case, the process proceeds to S908. If the determination condition (II) is not satisfied, the process proceeds to S911.

S908では、図4のS606で選択されたデフォーカス量が、中低域用のフィルタを用いて算出されたデフォーカス量、つまり中低域用のデフォーカス量であるか否かの判定処理が実行される。中低域用のデフォーカス量が選択されている場合、S909へ処理を進める。中低域用のデフォーカス量が選択されていない場合(つまり中域用のデフォーカス量が選択されている場合)には合焦可能と判断され、S910へ処理を進める。 In S908, determination processing is performed to determine whether the defocus amount selected in S606 of FIG. executed. If the defocus amount for middle-low range is selected, the process proceeds to S909. If the defocus amount for the mid-low range is not selected (that is, if the defocus amount for the mid-range is selected), it is determined that focusing is possible, and the process proceeds to S910.

S909では、図4のS603で算出された中低域用のデフォーカス量の標準偏差Defocus3σが所定の閾値と比較される。閾値をDef3σTH2LOWと表記する。これは、中低域用のフィルタを用いて算出されたデフォーカス量に関して、フレーム加算処理を行うことで合焦可能かどうかを判定するための閾値である。閾値Def3σTH2LOWは、S604で算出された閾値Def3σTH3と同様に、撮影感度、被写体の輝度、被写体のコントラストに応じて算出される。あるいは、撮影感度や被写体の輝度のみから閾値を算出してよいし、また被写体のコントラストに基づく閾値の変更による合焦条件の緩和を行わない構成でもよい。S909でDefocus3σが閾値Def3σTH2LOW以下であると判定された場合、合焦可能と判断されてS910へ処理を進める。S909でDefocus3σが閾値Def3σTH2LOWより大きいと判定された場合にはS911へ処理を進める。 In S909, the standard deviation Defocus3σ of the defocus amount for middle and low frequencies calculated in S603 of FIG. 4 is compared with a predetermined threshold. The threshold is represented as Def3σTH2LOW. This is a threshold for determining whether or not focusing is possible by performing frame addition processing with respect to the defocus amount calculated using the filter for middle and low frequencies. The threshold value Def3σTH2LOW is calculated according to the shooting sensitivity, the brightness of the subject, and the contrast of the subject, similarly to the threshold value Def3σTH3 calculated in S604. Alternatively, the threshold may be calculated only from the shooting sensitivity and the brightness of the subject, or the focusing condition may not be relaxed by changing the threshold based on the contrast of the subject. If it is determined in S909 that Defocus3σ is equal to or less than the threshold value Def3σTH2LOW, it is determined that focusing is possible, and the process advances to S910. If it is determined in S909 that Defocus3σ is greater than the threshold value Def3σTH2LOW, the process proceeds to S911.

S910でAF制御部213は、フレーム加算判定演算用のフラグをONに設定する。すなわちデフォーカス量に係るフレーム加算を行うことが判定され、判定結果を示すフラグがONに設定された後で処理を終了する。一方、S911では、デフォーカス量に係るフレーム加算を行わないと判定され、フレーム加算判定演算用のフラグがOFFに設定された後で処理を終了し、リターン処理へ移行する。 In S910, the AF control unit 213 sets ON the flag for frame addition determination calculation. That is, it is determined that the frame addition related to the defocus amount is to be performed, and the processing ends after the flag indicating the determination result is set to ON. On the other hand, in S911, it is determined that the frame addition related to the defocus amount is not performed, and after the flag for frame addition determination calculation is set to OFF, the processing is terminated and the process proceeds to return processing.

本実施形態では、低輝度条件での撮影時や低コントラストの被写体の撮影時に、相関演算用フィルタの周波数帯域およびデフォーカス量の標準偏差に基づいて適応的に合焦条件を緩和する。本来は合焦と判定してもよいにもかかわらず非合焦と判定される可能性のある撮影シーンの発生確率を低減し、被写体の画像が暈けた状態で撮影されてしまうという弊害を抑制しつつ、精度良く合焦可能な撮影シーンを増やすことが可能となる。本実施形態によれば、位相差検出方式(撮像面位相差検出方式を含む)のAF制御において、低輝度の被写体等の撮影時に、より精度の高い焦点検出および焦点調節を実現できる。 In this embodiment, the focusing condition is adaptively relaxed based on the frequency band of the correlation calculation filter and the standard deviation of the defocus amount when photographing under low luminance conditions or when photographing a low-contrast subject. Reduces the probability of shooting scenes that may be judged to be out of focus, even though it should be judged to be in focus. At the same time, it is possible to increase the shooting scenes in which focusing can be achieved with high accuracy. According to the present embodiment, in AF control of a phase difference detection method (including an imaging plane phase difference detection method), more accurate focus detection and focus adjustment can be realized when shooting a low-brightness subject or the like.

103‥‥‥フォーカスレンズ部
105‥‥‥フォーカスレンズ駆動部
106‥‥‥レンズ制御部
201‥‥‥撮像素子
204‥‥‥AF信号処理部
212‥‥‥カメラ制御部
213‥‥‥AF制御部


103: Focus lens unit 105: Focus lens driving unit 106: Lens control unit 201: Image sensor 204: AF signal processing unit 212: Camera control unit 213: AF control unit


Claims (13)

撮像素子から位相差を有する複数の像信号を取得する取得手段と、
前記複数の像信号に対して、複数の周波数帯域を有するフィルタを用いて相関演算を行い、複数の焦点検出情報および該焦点検出情報の標準偏差を算出する算出手段と、
前記複数の焦点検出情報および標準偏差を用いて焦点調節の制御を行う制御手段と、を備え、
前記制御手段は、
前記複数の周波数帯域のうち、第1の周波数帯域での相関演算により算出された第1の焦点検出情報が選択されている場合であって、前記第1の周波数帯域での相関演算により算出された第1の焦点検出情報の標準偏差が閾値より大きい場合には、当該第1の焦点検出情報を用いて前記焦点調節の制御を行い、
前記複数の周波数帯域のうち、前記第1の周波数帯域よりも低域の第2の周波数帯域での相関演算により算出された第2の焦点検出情報が選択されている場合には、前記第2の周波数帯域での相関演算により算出された第2の焦点検出情報を用いて前記焦点調節の制御を行い、
前記複数の周波数帯域のうち、第1の周波数帯域での相関演算により算出された第1の焦点検出情報が選択されている場合であって、前記第1の焦点検出情報の標準偏差が前記閾値以下である場合には、前記第1の焦点検出情報および前記第1の焦点検出情報よりも過去に前記第1の周波数帯域での相関演算により得られた焦点検出情報から算出された第3の焦点検出情報を用いて前記焦点調節の制御を行う
ことを特徴とする撮像装置。
Acquisition means for acquiring a plurality of image signals having phase differences from the imaging device;
calculating means for performing a correlation operation on the plurality of image signals using a filter having a plurality of frequency bands to calculate a plurality of focus detection information and a standard deviation of the focus detection information;
a control means for controlling focus adjustment using the plurality of focus detection information and standard deviation;
The control means is
A case where first focus detection information calculated by correlation calculation in a first frequency band is selected from among the plurality of frequency bands, and the first focus detection information calculated by correlation calculation in the first frequency band is selected. if the standard deviation of the first focus detection information is greater than a threshold , controlling the focus adjustment using the first focus detection information;
When second focus detection information calculated by correlation calculation in a second frequency band lower than the first frequency band is selected from among the plurality of frequency bands, the second focus detection information is selected . controlling the focus adjustment using the second focus detection information calculated by the correlation calculation in the frequency band of
A case where first focus detection information calculated by correlation calculation in a first frequency band is selected from among the plurality of frequency bands, and the standard deviation of the first focus detection information is the threshold value In the case of the following, the third focus detection information calculated from the first focus detection information and the focus detection information obtained by the correlation calculation in the first frequency band prior to the first focus detection information An imaging apparatus, wherein focus detection information is used to control the focus adjustment.
前記制御手段は、前記複数の周波数帯域を有するフィルタを用いてそれぞれ相関演算を行って前記算出手段が算出した前記複数の焦点検出情報のいずれかを選択し、前記焦点検出情報の標準偏差に対する閾値を変更する制御を行う
ことを特徴とする請求項1に記載の撮像装置。
The control means selects one of the plurality of focus detection information calculated by the calculation means by performing correlation calculations using the filters having the plurality of frequency bands, and selects a threshold for the standard deviation of the focus detection information. 2. The imaging apparatus according to claim 1, wherein control is performed to change the .
前記制御手段は、前記複数の周波数帯域のうち、第1の周波数帯域での相関演算により算出された第1の焦点検出情報が選択されている場合であって、前記第1の焦点検出情報の標準偏差が前記閾値以下である場合には、前記第1の焦点検出情報と、前記第1の焦点検出情報よりも過去に前記第1の周波数帯域での相関演算で算出された焦点検出情報との加算平均によって得られた前記第3の焦点検出情報を用いて前記焦点調節の制御を行う
ことを特徴とする請求項2に記載の撮像装置。
When the first focus detection information calculated by the correlation calculation in the first frequency band is selected from among the plurality of frequency bands, the control means controls the first focus detection information When the standard deviation is equal to or less than the threshold , the first focus detection information and the focus detection information calculated by correlation calculation in the first frequency band prior to the first focus detection information. 3. The imaging apparatus according to claim 2, wherein the focus adjustment is controlled using the third focus detection information obtained by averaging the above.
前記算出手段は、前記焦点検出情報の信頼性評価値を算出し、
前記制御手段は、前記撮像素子によって低輝度の被写体を撮像する場合、前記信頼性評価値を用いて前記複数の焦点検出情報からひとつの焦点検出情報を選択する
ことを特徴とする請求項2に記載の撮像装置。
The calculation means calculates a reliability evaluation value of the focus detection information,
3. The method according to claim 2, wherein the control means selects one piece of focus detection information from the plurality of pieces of focus detection information using the reliability evaluation value when an image of a subject with low brightness is captured by the image sensor. The imaging device described.
前記制御手段は、選択した前記焦点検出情報と、当該焦点検出情報よりも過去に算出された焦点検出情報から算出された焦点検出情報を用いて前記焦点調節の制御を行うか否かを判定する
ことを特徴とする請求項4に記載の撮像装置。
The control means determines whether or not to control the focus adjustment using the selected focus detection information and focus detection information calculated from focus detection information calculated prior to the focus detection information. 5. The imaging device according to claim 4, characterized in that:
前記制御手段は、前記複数の周波数帯域ごとに取得される前記焦点検出情報の標準偏差に対する閾値を輝度条件またはコントラスト条件によって変更する制御を行う
ことを特徴とする請求項2に記載の撮像装置。
3. The image pickup apparatus according to claim 2, wherein the control unit performs control to change a threshold value for the standard deviation of the focus detection information acquired for each of the plurality of frequency bands according to brightness conditions or contrast conditions.
前記制御手段は、前記像信号から算出される輝度評価値が第1の値である場合の前記閾値を、前記輝度評価値が前記第1の値よりも大きい第2の値である場合の前記閾値よりも大きく設定する
ことを特徴とする請求項6に記載の撮像装置。
The control means sets the threshold when the luminance evaluation value calculated from the image signal is a first value to the threshold when the luminance evaluation value is a second value larger than the first value. 7. The imaging device according to claim 6, wherein the threshold is set larger than the threshold.
前記算出手段または制御手段は、前記像信号の最大値もしくは最小値、または前記像信号の最大値および最小値から前記輝度評価値を算出する
ことを特徴とする請求項7に記載の撮像装置。
8. The imaging apparatus according to claim 7, wherein the calculation means or the control means calculates the luminance evaluation value from the maximum value or minimum value of the image signal, or the maximum value and minimum value of the image signal.
前記制御手段は、前記像信号から算出されるコントラスト評価値が第1の値である場合の前記閾値を、前記コントラスト評価値が前記第1の値よりも大きい第2の値である場合の前記閾値よりも大きく設定する
ことを特徴とする請求項6に記載の撮像装置。
The control means sets the threshold when the contrast evaluation value calculated from the image signal is a first value to the threshold when the contrast evaluation value is a second value larger than the first value. 7. The imaging device according to claim 6, wherein the threshold is set larger than the threshold.
前記算出手段または制御手段は、前記像信号の振幅を前記像信号の最大値で正規化した前記コントラスト評価値を算出する
ことを特徴とする請求項9に記載の撮像装置。
10. The imaging apparatus according to claim 9, wherein the calculating means or the controlling means calculates the contrast evaluation value by normalizing the amplitude of the image signal by the maximum value of the image signal.
前記算出手段は、前記像信号の相関量の変化量から算出される前記焦点検出情報の標準偏差を用いて前記信頼性評価値を算出する
ことを特徴とする請求項4に記載の撮像装置。
5. The image pickup apparatus according to claim 4, wherein the calculation means calculates the reliability evaluation value using a standard deviation of the focus detection information calculated from a change amount of the correlation amount of the image signal.
前記制御手段は、前記像信号に係る像の暈け度を表す第1の評価値および像のコントラストを表す第2の評価値を算出し、前記第1の評価値が第1の閾値以上であって、かつ前記第2の評価値が第2の閾値以下であり、前記第1の焦点検出情報の標準偏差が前記閾値以下である場合に、前記第3の焦点検出情報を用いて前記焦点調節の制御を行う
ことを特徴とする請求項1から11のいずれか1項に記載の撮像装置。
The control means calculates a first evaluation value representing the degree of blurring of the image and a second evaluation value representing the contrast of the image associated with the image signal. and the second evaluation value is equal to or less than a second threshold, and the standard deviation of the first focus detection information is equal to or less than the threshold, the focus detection using the third focus detection information 12. The imaging device according to any one of claims 1 to 11, wherein adjustment control is performed.
撮像素子から位相差を有する複数の像信号を取得して焦点調節を行う撮像装置にて実行される制御方法であって、
前記複数の像信号に対して、複数の周波数帯域を有するフィルタを用いて相関演算を行い、複数の焦点検出情報および該焦点検出情報の標準偏差を算出する算出工程と、
前記複数の焦点検出情報および標準偏差を用いて焦点調節の制御を行う制御工程と、を有し、
前記制御工程では、
前記複数の周波数帯域のうち、第1の周波数帯域での相関演算により算出された第1の焦点検出情報が選択されている場合であって、前記第1の周波数帯域での相関演算により算出された第1の焦点検出情報の標準偏差が閾値より大きい場合には、当該第1の焦点検出情報を用いて前記焦点調節の制御が行われ、
前記複数の周波数帯域のうち、前記第1の周波数帯域よりも低域の第2の周波数帯域での相関演算により算出された第2の焦点検出情報が選択されている場合には、前記第2の周波数帯域での相関演算により算出された第2の焦点検出情報を用いて前記焦点調節の制御が行われ、
前記複数の周波数帯域のうち、第1の周波数帯域での相関演算により算出された第1の焦点検出情報が選択されている場合であって、前記第1の焦点検出情報の標準偏差が前記閾値以下である場合には、前記第1の焦点検出情報および前記第1の焦点検出情報よりも過去に前記第1の周波数帯域での相関演算により得られた焦点検出情報から算出された第3の焦点検出情報を用いて前記焦点調節の制御が行われる
ことを特徴とする制御方法。
A control method executed in an imaging device that acquires a plurality of image signals having a phase difference from an imaging device and performs focus adjustment,
a calculation step of performing a correlation operation on the plurality of image signals using a filter having a plurality of frequency bands to calculate a plurality of focus detection information and a standard deviation of the focus detection information;
a control step of controlling focus adjustment using the plurality of focus detection information and standard deviation;
In the control step,
A case where first focus detection information calculated by correlation calculation in a first frequency band is selected from among the plurality of frequency bands, and the first focus detection information calculated by correlation calculation in the first frequency band is selected. when the standard deviation of the first focus detection information is greater than a threshold , the focus adjustment is controlled using the first focus detection information;
When second focus detection information calculated by correlation calculation in a second frequency band lower than the first frequency band is selected from among the plurality of frequency bands, the second focus detection information is selected . the focus adjustment is controlled using the second focus detection information calculated by the correlation calculation in the frequency band of
A case where first focus detection information calculated by correlation calculation in a first frequency band is selected from among the plurality of frequency bands, and the standard deviation of the first focus detection information is the threshold value In the case of the following, the third focus detection information calculated from the first focus detection information and the focus detection information obtained by the correlation calculation in the first frequency band prior to the first focus detection information A control method, wherein the focus adjustment is controlled using focus detection information.
JP2018100351A 2018-05-25 2018-05-25 Imaging device and its control method Active JP7134712B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2018100351A JP7134712B2 (en) 2018-05-25 2018-05-25 Imaging device and its control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2018100351A JP7134712B2 (en) 2018-05-25 2018-05-25 Imaging device and its control method

Publications (2)

Publication Number Publication Date
JP2019204041A JP2019204041A (en) 2019-11-28
JP7134712B2 true JP7134712B2 (en) 2022-09-12

Family

ID=68726841

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2018100351A Active JP7134712B2 (en) 2018-05-25 2018-05-25 Imaging device and its control method

Country Status (1)

Country Link
JP (1) JP7134712B2 (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010026177A (en) 2008-07-17 2010-02-04 Canon Inc Phase difference detection device, imaging apparatus, phase difference detection method, and phase difference detection program
JP2018031916A (en) 2016-08-25 2018-03-01 キヤノン株式会社 Focus adjustment device, its control method, and program

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3675039B2 (en) * 1996-06-26 2005-07-27 株式会社ニコン Focus adjustment device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010026177A (en) 2008-07-17 2010-02-04 Canon Inc Phase difference detection device, imaging apparatus, phase difference detection method, and phase difference detection program
JP2018031916A (en) 2016-08-25 2018-03-01 キヤノン株式会社 Focus adjustment device, its control method, and program

Also Published As

Publication number Publication date
JP2019204041A (en) 2019-11-28

Similar Documents

Publication Publication Date Title
JP4149528B2 (en) Automatic focus detection device
KR101777351B1 (en) Image pickup device, digital photographing apparatus using the device, auto-focusing method, and computer-readable storage medium for performing the method
JP6474693B2 (en) Focus detection apparatus, focus detection method, and recording medium
WO2007086378A1 (en) Best-focus detector
JP7271188B2 (en) Control device, imaging device, control method, and program
JP5325966B2 (en) Imaging apparatus and imaging method
US20150358552A1 (en) Image combining apparatus, image combining system, and image combining method
JP2009010616A (en) Imaging device and image output control method
JP6838894B2 (en) Focus control device, its control method and program
JP2016142999A (en) Imaging device and control method of the same
KR101747304B1 (en) A digital photographing apparatus, a method for auto-focusing, and a computer-readable storage medium for executing the method
JP4678053B2 (en) Imaging device
US10747089B2 (en) Imaging apparatus and control method of the same
US10477098B2 (en) Control apparatus which sets defocus amount used for focusing, image capturing apparatus, control method, and storage medium
JP7134712B2 (en) Imaging device and its control method
JP2009164859A (en) Imaging apparatus and imaging control method
WO2017010027A1 (en) Imaging device, signal processing method, and signal processing program
JP4802113B2 (en) Automatic focusing device and photographing device
JP2010062987A (en) Imaging apparatus and method
JP4969349B2 (en) Imaging apparatus and imaging method
JP7023673B2 (en) Focus control device, focus control method, and image pickup device
JP7146474B2 (en) CONTROL DEVICE, IMAGING DEVICE, CONTROL METHOD, PROGRAM, AND STORAGE MEDIUM
JP2006243745A (en) Automatic focus detector
JP4972902B2 (en) Imaging apparatus and imaging method
JP5310315B2 (en) Image processing circuit, image processing method, and imaging apparatus

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20210521

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20220216

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20220222

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20220421

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20220831

R151 Written notification of patent or utility model registration

Ref document number: 7134712

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151