JP6429724B2 - Imaging apparatus and control method thereof - Google Patents

Imaging apparatus and control method thereof Download PDF

Info

Publication number
JP6429724B2
JP6429724B2 JP2015101739A JP2015101739A JP6429724B2 JP 6429724 B2 JP6429724 B2 JP 6429724B2 JP 2015101739 A JP2015101739 A JP 2015101739A JP 2015101739 A JP2015101739 A JP 2015101739A JP 6429724 B2 JP6429724 B2 JP 6429724B2
Authority
JP
Japan
Prior art keywords
defocus amount
evaluation value
focus
focus lens
lens
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
JP2015101739A
Other languages
Japanese (ja)
Other versions
JP2016218206A (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 JP2015101739A priority Critical patent/JP6429724B2/en
Publication of JP2016218206A publication Critical patent/JP2016218206A/en
Application granted granted Critical
Publication of JP6429724B2 publication Critical patent/JP6429724B2/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 a technique for performing focus adjustment using an image signal acquired by an image sensor.

撮像装置の焦点検出および焦点調節方式として、コントラスト検出式AF(AutoFocus)と位相差検出式AFがある。コントラスト検出式AF(以下、コントラストAFという)では、撮像素子の出力信号から、特に高周波成分を抽出してコントラスト情報を示すAF評価値が最も大きくなるフォーカスレンズの位置を合焦位置とする。コントラストAFでは、合焦位置の探索時に合焦位置を通り過ぎる必要があるため、焦点調節に時間がかかる。更には、焦点調節を行うためのフォーカスレンズの駆動方向が判別できていない場合、方向検知に時間がかかると、合焦時間が延びてしまうという問題がある。   As a focus detection and focus adjustment method of the imaging apparatus, there are a contrast detection AF (AutoFocus) and a phase difference detection AF. In contrast detection AF (hereinafter referred to as “contrast AF”), a focus lens position where the AF evaluation value indicating contrast information is maximized by extracting a high-frequency component from the output signal of the image sensor is set as the in-focus position. In contrast AF, since it is necessary to pass through the focus position when searching for the focus position, it takes time to adjust the focus. Furthermore, when the driving direction of the focus lens for performing focus adjustment cannot be determined, there is a problem that if the direction detection takes time, the focusing time is extended.

また、位相差検出式AFのひとつに、撮像面位相差検出式AF(以下、撮像面位相差AFという)がある。撮像面位相差AFでは撮像信号に基づいて位相差検出を行う。しかし撮像画素を特殊な形状としなければならないため、構造が複雑化するという問題がある。   One of the phase difference detection AFs is an imaging surface phase difference detection AF (hereinafter referred to as imaging surface phase difference AF). In imaging plane phase difference AF, phase difference detection is performed based on the imaging signal. However, there is a problem in that the structure is complicated because the imaging pixel must have a special shape.

一方、Depth From Defocus(以下、DFDと略記する)法と称する技術がある。DFD法は、ボケ状態の異なる2つの画像に対して演算処理を行うことでボケ評価値を取得し、現在のデフォーカス量を検出する方法である。DFD方式のAF方法(以下、DFD方式AFという)では、撮像画素を特殊な形状とする必要がないため、撮像面位相差AFよりも構造が簡易である。DFD方式AFでは、具体的には、ボケ評価値とデフォーカス量との相関関係を表すデータが参照テーブル(以下、相関テーブルという)として記憶部に記憶されている。相関テーブルの参照により、ボケ評価値からデフォーカス量を求めることができる。DFD方式AFの場合、ボケが著しい状態になるにつれてノイズの影響を大きく受ける。このため、正確なボケ評価値が算出できなくなると、焦点検出が破綻してしまうという問題がある。この問題に対しては、ノイズの多い領域を除外し、焦点検出可能なデフォーカス領域を限定することにより、良好な焦点検出を行うことが可能である(特許文献1)。   On the other hand, there is a technique referred to as a depth from focus (hereinafter abbreviated as DFD) method. The DFD method is a method of detecting a current defocus amount by obtaining a blur evaluation value by performing arithmetic processing on two images having different blur states. In the DFD AF method (hereinafter referred to as DFD AF), the imaging pixel does not need to have a special shape, and thus the structure is simpler than the imaging plane phase difference AF. Specifically, in the DFD AF, data representing the correlation between the blur evaluation value and the defocus amount is stored in the storage unit as a reference table (hereinafter referred to as a correlation table). The defocus amount can be obtained from the blur evaluation value by referring to the correlation table. In the case of the DFD AF, the influence of noise is greatly affected as blurring becomes significant. For this reason, there is a problem in that focus detection fails if an accurate blur evaluation value cannot be calculated. For this problem, it is possible to perform good focus detection by excluding a noisy region and limiting a defocus region where focus detection is possible (Patent Document 1).

特開2006−3803号公報JP 2006-3803 A

特許文献1に開示された従来技術では、相関テーブルにより、ボケ評価値とデフォーカス量とが1対1対応の範囲に限定されるため、焦点検出可能なデフォーカス領域が狭い。すなわち、焦点検出可能な範囲が狭いことに起因して、焦点検出が可能でない範囲からAF動作が開始された場合に、焦点検出が終了するまでの時間(以下、焦点検出時間という)が長くなってしまうという問題があった。
本発明は、ボケ状態の異なる複数の画像のデータを用いる焦点検出において、ボケ状態の評価値とデフォーカス量との関係を表す相関テーブルの範囲を拡大し、焦点検出時間を短縮することを目的とする。
In the conventional technique disclosed in Patent Document 1, the defocus area where focus detection is possible is narrow because the correlation table limits the blur evaluation value and the defocus amount to a one-to-one correspondence range. That is, due to the narrow focus detection range, when AF operation is started from a range where focus detection is not possible, the time until focus detection ends (hereinafter referred to as focus detection time) becomes long. There was a problem that.
An object of the present invention is to reduce the focus detection time by expanding the range of the correlation table that represents the relationship between the evaluation value of the blur state and the defocus amount in focus detection using data of a plurality of images with different blur states. And

本発明に係る装置は、フォーカスレンズを含む撮像光学系と、前記撮像光学系により結像される被写体像を光電変換する撮像素子と、ボケ状態の異なる複数の画像のデータを前記撮像素子の出力信号から取得してボケ状態の評価値を算出する算出手段と、前記評価値とデフォーカス量との対応関係を示す相関データを記憶する記憶手段と、前記算出手段により算出された評価値を、前記記憶手段に記憶されている前記相関データと照合することによりデフォーカス量を決定する決定手段と、前記決定手段により決定されたデフォーカス量に対応する前記フォーカスレンズの駆動量にしたがって前記フォーカスレンズを駆動する駆動手段と、を備える。前記決定手段は、前記照合によって複数のデフォーカス量の候補が検出される場合、前記駆動手段により前記フォーカスレンズの駆動を行って前記評価値の変化を判定して前記候補から1つのデフォーカス量を決定する。   An apparatus according to the present invention includes an image pickup optical system including a focus lens, an image pickup element that photoelectrically converts a subject image formed by the image pickup optical system, and outputs data of a plurality of images having different blur states from the image pickup element. A calculation means for obtaining an evaluation value of a blur state obtained from the signal, a storage means for storing correlation data indicating a correspondence relationship between the evaluation value and the defocus amount, and an evaluation value calculated by the calculation means, Determining means for determining a defocus amount by collating with the correlation data stored in the storage means; and the focus lens according to the driving amount of the focus lens corresponding to the defocus amount determined by the determining means Driving means for driving the. When a plurality of defocus amount candidates are detected by the collation, the determining unit drives the focus lens by the driving unit to determine a change in the evaluation value and determines one defocus amount from the candidate. To decide.

本発明によれば、ボケ状態の異なる複数の画像のデータを用いる焦点検出において、ボケ状態の評価値とデフォーカス量との関係を表す相関テーブルの範囲を拡大し、焦点検出時間を短縮することができる。   According to the present invention, in focus detection using data of a plurality of images having different blur states, the range of the correlation table representing the relationship between the evaluation value of the blur state and the defocus amount is expanded, and the focus detection time is shortened. Can do.

本発明の実施形態に係わる撮像装置の構成例を示すブロック図である。It is a block diagram which shows the structural example of the imaging device concerning embodiment of this invention. 本発明の実施形態に係わる撮像装置のAF動作を例示するフローチャートである。6 is a flowchart illustrating an AF operation of the imaging apparatus according to the embodiment of the invention. 図2に続く処理を示すフローチャートである。It is a flowchart which shows the process following FIG. 本発明の実施形態におけるボケ評価値とデフォーカス量との相関関係を示す図である。It is a figure which shows the correlation of the blur evaluation value and defocus amount in embodiment of this invention.

以下に、本発明の実施形態を、図1〜図4を参照して詳細に説明する。本発明は、デジタルスチルカメラ、デジタルビデオカメラ、携帯電話等に搭載される撮像装置に適用可能である。本実施形態では、レンズ装置がカメラ本体部に装着された状態で撮影動作を行う装置例を説明するが、レンズ部がカメラ本体部と一体化された装置に適用可能である。   Hereinafter, embodiments of the present invention will be described in detail with reference to FIGS. The present invention can be applied to an imaging apparatus mounted on a digital still camera, a digital video camera, a mobile phone, or the like. In the present embodiment, an example of an apparatus that performs a shooting operation in a state where the lens apparatus is mounted on the camera body is described, but the present invention is applicable to an apparatus in which the lens is integrated with the camera body.

図1を参照して、撮像装置全体の概略構成を説明する。図1は、本実施形態に係わる焦点調節装置を適用した撮像装置として、デジタルカメラの構成例を示すブロック図である。本実施形態で例示するデジタルカメラは交換レンズ式の一眼レフカメラであり、レンズユニット100とカメラ本体部120を有する。レンズユニット100は、図1の中央に点線で示すマウントMを介して、カメラ本体部120と着脱可能に接続される。   With reference to FIG. 1, a schematic configuration of the entire imaging apparatus will be described. FIG. 1 is a block diagram illustrating a configuration example of a digital camera as an imaging apparatus to which the focus adjustment apparatus according to the present embodiment is applied. The digital camera exemplified in this embodiment is an interchangeable lens type single-lens reflex camera, and includes a lens unit 100 and a camera main body 120. The lens unit 100 is detachably connected to the camera body 120 via a mount M indicated by a dotted line in the center of FIG.

レンズユニット100は、第1レンズ群101、絞り兼用シャッタ102、第2レンズ群103、フォーカスレンズ群(以下、単に「フォーカスレンズ」という)104、及び、後述する制御部を備える。レンズユニット100の撮像光学系はフォーカスレンズ104を含み、被写体の像を形成する。以下では、被写体側を前側と定義して、各部の位置関係を説明する。   The lens unit 100 includes a first lens group 101, a diaphragm shutter 102, a second lens group 103, a focus lens group (hereinafter simply referred to as “focus lens”) 104, and a control unit described later. The imaging optical system of the lens unit 100 includes a focus lens 104 and forms an image of a subject. In the following, the subject side is defined as the front side, and the positional relationship between the respective parts will be described.

第1レンズ群101は、レンズユニット100の前端部に配置され、光軸方向OAに沿って進退可能に保持される。絞り兼用シャッタ102は第1レンズ群101の後方に位置し、その開口径を調節することで撮影時の光量調節を行う他、静止画撮影時には露光秒時調節用シャッタとして機能する。絞り兼用シャッタ102及びその後方の第2レンズ群103は、一体として光軸方向OAに進退可能であり、第1レンズ群101の進退動作との連動によりズーム機能を実現する。   The first lens group 101 is disposed at the front end of the lens unit 100 and is held so as to be able to advance and retract along the optical axis direction OA. The aperture / shutter 102 is located behind the first lens group 101 and adjusts the light amount at the time of shooting by adjusting the aperture diameter, and also functions as an exposure time adjustment shutter at the time of still image shooting. The iris / shutter 102 and the second lens group 103 behind it can be moved forward and backward in the optical axis direction OA as one body, and a zoom function is realized by interlocking with the forward / backward movement of the first lens group 101.

フォーカスレンズ104は第2レンズ群103の後方に位置し、光軸方向OAに沿って移動することにより焦点調節を行う。本実施形態においてフォーカスレンズ104が移動可能な範囲の両端のうち、無限遠側のフォーカスレンズ位置を無限端と称し、至近側のフォーカスレンズ位置を至近端と称する。   The focus lens 104 is positioned behind the second lens group 103, and performs focus adjustment by moving along the optical axis direction OA. In the present embodiment, among the two ends of the range in which the focus lens 104 is movable, the focus lens position on the infinity side is referred to as the infinity end, and the focus lens position on the closest side is referred to as the closest end.

レンズユニット100の制御部はレンズMPU(マイクロプロセッシングユニット)117とレンズメモリ118を有する。レンズMPU117は、ズーム駆動部114、絞りシャッタ駆動部115、フォーカス駆動部116を制御する。ズームアクチュエータ111は、第1レンズ群101や第2レンズ群103を光軸方向OAに移動させて、ズーム動作を行う。ズームアクチュエータ111は、撮影者のズーム操作に応じて、レンズMPU117の制御指令にしたがってズーム駆動部114により駆動される。絞りシャッタアクチュエータ112は、絞り兼用シャッタ102の開口径を制御して撮影光量を調節すると共に、静止画撮影時の露光時間を制御する。絞りシャッタアクチュエータ112は、レンズMPU117の制御指令にしたがって絞りシャッタ駆動部115により駆動される。フォーカスアクチュエータ113は、フォーカスレンズ104を光軸方向OAに移動させて焦点調節を行う。フォーカスアクチュエータ113は、フォーカスレンズ104の現在位置を検出する位置検出部の機能を備える。フォーカス駆動部116は、焦点検出結果に基づき、レンズMPU117の制御指令にしたがってフォーカスアクチュエータ113を駆動する。   The control unit of the lens unit 100 includes a lens MPU (microprocessing unit) 117 and a lens memory 118. The lens MPU 117 controls the zoom driving unit 114, the aperture shutter driving unit 115, and the focus driving unit 116. The zoom actuator 111 performs a zoom operation by moving the first lens group 101 and the second lens group 103 in the optical axis direction OA. The zoom actuator 111 is driven by the zoom drive unit 114 according to the control command of the lens MPU 117 in accordance with the zoom operation of the photographer. The aperture shutter actuator 112 controls the aperture diameter of the aperture / shutter 102 to adjust the amount of photographing light, and also controls the exposure time during still image photographing. The aperture shutter actuator 112 is driven by the aperture shutter drive unit 115 in accordance with a control command from the lens MPU 117. The focus actuator 113 performs focus adjustment by moving the focus lens 104 in the optical axis direction OA. The focus actuator 113 has a function of a position detection unit that detects the current position of the focus lens 104. The focus driving unit 116 drives the focus actuator 113 according to the control command of the lens MPU 117 based on the focus detection result.

レンズMPU117は、撮像光学系に係る全ての演算および制御を行う。レンズMPU117は、現在のレンズ位置情報を取得し、後述するカメラMPU125からの要求に対してレンズ位置情報を通知する。レンズメモリ118は、自動焦点調節に必要な様々な光学情報を記憶する記憶部である。具体的には、レンズメモリ118は例えば、フォーカスレンズ104の位置情報とデフォーカス量との対応関係のデータを記憶している。レンズMPU117は、後述のカメラMPU125からデフォーカス量を所定量だけ変更するように要求された場合に、レンズメモリ118に記憶された前記対応関係のデータを参照する。レンズMPU117は所定のデフォーカス量に対応する距離だけフォーカスレンズ104を駆動するように、フォーカス駆動部116に制御指令を送り、フォーカスアクチュエータ113を制御する。   The lens MPU 117 performs all calculations and controls related to the imaging optical system. The lens MPU 117 acquires the current lens position information and notifies the lens position information in response to a request from the camera MPU 125 described later. The lens memory 118 is a storage unit that stores various optical information necessary for automatic focus adjustment. Specifically, the lens memory 118 stores, for example, data on the correspondence between the position information of the focus lens 104 and the defocus amount. When the lens MPU 117 is requested to change the defocus amount by a predetermined amount from the camera MPU 125 described later, the lens MPU 117 refers to the correspondence data stored in the lens memory 118. The lens MPU 117 sends a control command to the focus driving unit 116 to control the focus actuator 113 so as to drive the focus lens 104 by a distance corresponding to a predetermined defocus amount.

カメラ本体部120は、光学的ローパスフィルタ121、撮像素子122、制御部を有する。光学的ローパスフィルタ121は、撮影画像の偽色やモアレを軽減する光学素子である。撮像素子122は撮像光学系により結像される被写体像を光電変換する。撮像素子122は、例えばC−MOS(相補型金属酸化膜半導体)センサとその周辺回路部で構成される。C−MOSセンサは横方向にm画素、縦方向にn画素の受光ピクセル上に光電変換素子がそれぞれ配置された画素配列を有する。撮像素子122は、画素配列の画素ごとに独立な信号の出力が可能な構成をもつ。より具体的には、撮像素子122の画素配列は、被写体の像を形成する撮像光学系の射出瞳の全域を通る光束を各々が受光して被写体の像を生成する複数の撮影用画素を有する。また、画素配列は、撮像光学系の異なる射出瞳の領域を通る光束をそれぞれ受光する複数の焦点検出用画素を更に有する。複数の焦点検出用画素は全体として撮像光学系の射出瞳の全域を通る光束を受光することができ、1つの撮影用画素に対応する。例えば、2行×2列の画素配列において、対角に配置される一対のG(緑色)画素を撮影用画素とし、他の2つのR(赤色)画素とB(青色)画素が焦点検出用画素に置き換えられる。   The camera body 120 includes an optical low-pass filter 121, an image sensor 122, and a controller. The optical low-pass filter 121 is an optical element that reduces false colors and moire in the captured image. The image sensor 122 photoelectrically converts a subject image formed by the imaging optical system. The image sensor 122 is composed of, for example, a C-MOS (complementary metal oxide semiconductor) sensor and its peripheral circuit section. The C-MOS sensor has a pixel array in which photoelectric conversion elements are arranged on light receiving pixels of m pixels in the horizontal direction and n pixels in the vertical direction. The image sensor 122 has a configuration capable of outputting an independent signal for each pixel in the pixel array. More specifically, the pixel array of the image sensor 122 has a plurality of shooting pixels that each receive a light beam passing through the entire exit pupil of the imaging optical system that forms an image of the subject and generate an image of the subject. . The pixel array further includes a plurality of focus detection pixels that respectively receive light beams passing through different exit pupil regions of the imaging optical system. The plurality of focus detection pixels as a whole can receive a light beam passing through the entire exit pupil of the imaging optical system, and corresponds to one photographing pixel. For example, in a 2 × 2 pixel arrangement, a pair of diagonally arranged G (green) pixels is used as a shooting pixel, and the other two R (red) pixels and B (blue) pixels are used for focus detection. Replaced by a pixel.

撮像素子駆動部123は、撮像素子122の駆動制御を行うとともに、撮像素子122から取得した画像信号をA(アナログ)/D(デジタル)変換した上でカメラMPU125に送信する。画像処理部124は、撮像素子122から取得した画像データのγ変換、カラー補間、JPEG(Joint Photographic Experts Group)圧縮等を行う。   The image sensor driving unit 123 performs drive control of the image sensor 122 and transmits the image signal acquired from the image sensor 122 to the camera MPU 125 after A (analog) / D (digital) conversion. The image processing unit 124 performs γ conversion, color interpolation, JPEG (Joint Photographic Experts Group) compression, and the like of image data acquired from the image sensor 122.

カメラMPU125は、カメラ本体部120に係る全ての演算と制御を行う。カメラMPU125は、撮像素子駆動部123、画像処理部124、表示部126、操作部127、メモリ128、焦点検出部129を制御する。カメラMPU125は、マウントMの信号線を介してレンズMPU117と接続されている。これにより、カメラMPU125はレンズMPU117に対してレンズ位置の取得や所定の駆動量でのレンズ駆動要求を発行したり、レンズユニット100に固有の光学情報を取得したりする。カメラMPU125は、カメラ動作を制御するプログラムを格納したROM(リード・オンリ・メモリ)125aと、データや変数等を記憶するRAM(ランダム・アクセス・メモリ)125bを備える。カメラMPU125には諸パラメータを記憶するEEPROM(Electrically Erasable Programmable Read-Only Memory)125cが内蔵されている。更に、カメラMPU125は、ROM125aに格納されたプログラムをロードして実行することで焦点検出状態に基づいて焦点調節処理を実行する。   The camera MPU 125 performs all calculations and control related to the camera body 120. The camera MPU 125 controls the image sensor driving unit 123, the image processing unit 124, the display unit 126, the operation unit 127, the memory 128, and the focus detection unit 129. The camera MPU 125 is connected to the lens MPU 117 via the signal line of the mount M. As a result, the camera MPU 125 acquires the lens position, issues a lens drive request with a predetermined drive amount, or acquires optical information specific to the lens unit 100 to the lens MPU 117. The camera MPU 125 includes a ROM (Read Only Memory) 125a that stores a program for controlling camera operations, and a RAM (Random Access Memory) 125b that stores data, variables, and the like. The camera MPU 125 incorporates an EEPROM (Electrically Erasable Programmable Read-Only Memory) 125c for storing various parameters. Further, the camera MPU 125 loads and executes a program stored in the ROM 125a to execute a focus adjustment process based on the focus detection state.

表示部126はLCD(液晶ディスプレイ)等を備え、カメラの撮影モードに関する情報、撮影前のプレビュー画像と撮影後の確認用画像、焦点検出時における合焦状態の表示画像等を表示する。操作部127は、電源スイッチ、レリーズ(撮影トリガ)スイッチ、ズーム操作スイッチ、撮影モード選択スイッチ等を備え、ユーザの操作指示信号をカメラMPU125に出力する。レリーズスイッチは、ユーザによる第1ストロークの操作でオン状態となる第1スイッチ(SW1と記す)と、さらに第2ストロークの操作でオン状態となる第2スイッチ(SW2と記す)を有する二段スイッチで構成される。撮影動作に先立って行われるAE(自動露出)処理、AF(自動焦点調節)処理を開始させる指示信号は、第1スイッチSW1のオン信号である。実際の露光動作を開始させる指示信号は、第2スイッチSW2のオン信号である。メモリ128は、例えば、カメラ本体部120に着脱可能なフラッシュメモリであり、撮影済み画像のデータ等を記録する。   The display unit 126 includes an LCD (liquid crystal display) or the like, and displays information related to the shooting mode of the camera, a preview image before shooting and a confirmation image after shooting, a display image in a focused state when focus is detected, and the like. The operation unit 127 includes a power switch, a release (shooting trigger) switch, a zoom operation switch, a shooting mode selection switch, and the like, and outputs a user operation instruction signal to the camera MPU 125. The release switch is a two-stage switch having a first switch (denoted as SW1) that is turned on by a user's first stroke operation and a second switch (denoted as SW2) that is turned on by a second stroke operation. Consists of. An instruction signal for starting AE (automatic exposure) processing and AF (automatic focus adjustment) processing performed prior to the photographing operation is an ON signal of the first switch SW1. The instruction signal for starting the actual exposure operation is an ON signal of the second switch SW2. The memory 128 is, for example, a flash memory that can be attached to and detached from the camera body 120, and records data of captured images.

焦点検出部129はDFD方式の焦点検出を行う。すなわち、画像処理部124により得られた画像情報から算出されるボケ評価値に基づいて焦点検出が行われる。画像処理部124により得られた画像情報は、例えば所定のデフォーカス量だけ異なる2つの画像の情報である。これらの画像情報に対して演算処理を行うことでボケ評価値が算出される。演算処理とは、例えば画像の輝度情報から特定の周波数帯域成分を抽出する処理である。本実施形態に係わるボケ評価値とは、撮像画像のボケ状態を示す値であり、撮像光学系の点像強度分布関数の分散と相関をもつ値である。点像強度分布関数とは点像がレンズを通過した後の広がり具合の関数のことである。撮像光学系の点像強度分布関数の分散は、デフォーカス量とも相関がある。以上のことから、ボケ評価値とデフォーカス量との間には相関関係がある。この相関関係を、ボケ評価値・デフォーカス量相関と称する。ボケ評価値・デフォーカス量相関については後で詳述する。   The focus detection unit 129 performs DFD focus detection. That is, focus detection is performed based on the blur evaluation value calculated from the image information obtained by the image processing unit 124. The image information obtained by the image processing unit 124 is, for example, information on two images that differ by a predetermined defocus amount. A blur evaluation value is calculated by performing arithmetic processing on the image information. The arithmetic processing is processing for extracting a specific frequency band component from, for example, luminance information of an image. The blur evaluation value according to the present embodiment is a value indicating the blurring state of the captured image, and is a value having a correlation with the variance of the point image intensity distribution function of the imaging optical system. The point image intensity distribution function is a function of the degree of spread after the point image passes through the lens. The dispersion of the point image intensity distribution function of the imaging optical system is also correlated with the defocus amount. From the above, there is a correlation between the blur evaluation value and the defocus amount. This correlation is referred to as a blur evaluation value / defocus amount correlation. The blur evaluation value / defocus amount correlation will be described in detail later.

焦点検出部129は、DFD方式AFに用いる所定のデフォーカス量だけ異なる2つの画像を取得する必要がある。このためにカメラMPU125は、撮像画像のボケ状態に影響を与える、フォーカスレンズの位置、絞り量、焦点距離等の撮影パラメータを変更して撮影動作を制御する。撮影パラメータの変更については、1つ以上のパラメータの変更であれば、どれを変更してもよい。本実施形態では光軸上でのフォーカスレンズ104の位置を変更することで、デフォーカス量が所定量異なる2つの画像を得る場合を説明する。   The focus detection unit 129 needs to acquire two images that differ by a predetermined defocus amount used for the DFD AF. For this purpose, the camera MPU 125 controls the shooting operation by changing shooting parameters such as the position of the focus lens, the aperture amount, and the focal length that affect the blurring state of the captured image. Regarding the change of the imaging parameter, any one or more parameters may be changed. In the present embodiment, a case will be described in which two images with different defocus amounts are obtained by changing the position of the focus lens 104 on the optical axis.

図2および図3を参照して合焦位置の判定処理を説明する。図2および図3は、本実施形態に係わる焦点調節装置を適用した撮像装置のAF処理を例示するフローチャートである。以下に示す合焦動作(AF動作)の処理はカメラMPU125が実行する制御プログラムにしたがって行われる。なお、図2および図3にて「S」はステップの略である。   The in-focus position determination process will be described with reference to FIGS. 2 and 3 are flowcharts illustrating the AF processing of the imaging apparatus to which the focus adjustment apparatus according to this embodiment is applied. The following focusing operation (AF operation) processing is performed according to a control program executed by the camera MPU 125. In FIG. 2 and FIG. 3, “S” is an abbreviation for step.

図2のS200でAF動作が開始すると、カメラMPU125が行う領域設定処理にて、被写体に対する焦点調節を行うためのAF評価範囲が設定される(S201)。S201の処理では、例えば画像内に1つのAF評価範囲が設定される。AF評価範囲は、AF動作によって焦点調節を行うための画像信号を評価する範囲である。AF動作の目的は、焦点状態検出領域としてのAF評価範囲内にて、撮影者が意図する被写体に対して焦点を合わせることである。   When the AF operation starts in S200 of FIG. 2, an AF evaluation range for performing focus adjustment on the subject is set in the area setting process performed by the camera MPU 125 (S201). In the process of S201, for example, one AF evaluation range is set in the image. The AF evaluation range is a range in which an image signal for performing focus adjustment by an AF operation is evaluated. The purpose of the AF operation is to focus on the subject intended by the photographer within the AF evaluation range as the focus state detection area.

次に撮像素子122への露光が行われ、撮像画像のデータがRAM125bに蓄積される(S202)。これにより、焦点検出に用いる出力信号、およびAF評価範囲を含む近傍の被写体の情報を得ることができる。焦点検出部129が焦点検出用に画像データを取得する場合、必要な焦点調節精度に合わせて、撮像画素の出力信号の数を間引いて用いてもよい。また、撮像素子122への露光はフォーカスレンズ104が連続して移動している最中に行ってもよいし、フォーカスレンズ104が止まっている状態で行ってもよい。   Next, exposure to the image sensor 122 is performed, and captured image data is accumulated in the RAM 125b (S202). As a result, it is possible to obtain output signals used for focus detection and information on nearby subjects including the AF evaluation range. When the focus detection unit 129 acquires image data for focus detection, the number of output signals of the imaging pixels may be thinned out according to the required focus adjustment accuracy. Further, the exposure to the image sensor 122 may be performed while the focus lens 104 is continuously moving, or may be performed while the focus lens 104 is stopped.

S203でカメラMPU125は露光の回数を判定する。露光回数が2回以上である場合、S205へ進み(S203でYes)、露光回数が1回以下である場合(S203でNo)にはS204に移行する。S205で焦点検出部129は、焦点検出に用いるボケ評価値(Cと記す)の算出処理を行う。そして、S206へ進む。   In step S203, the camera MPU 125 determines the number of exposures. If the number of exposures is 2 or more, the process proceeds to S205 (Yes in S203), and if the number of exposures is 1 or less (No in S203), the process proceeds to S204. In step S205, the focus detection unit 129 performs a process of calculating a blur evaluation value (denoted as C) used for focus detection. Then, the process proceeds to S206.

ボケ評価値Cを算出するためには、ボケ状態の異なる2回以上の露光による画像データがRAM125bに蓄積されている必要がある。すなわち、露光回数が1回以下の場合はボケ評価値を算出できないため、もう1回以上露光を繰り返すためにS204の処理が実行される。レンズMPU117は、所定駆動量でフォーカスレンズ104の駆動制御を行い(S204)、露光ステップ(S202)に戻る。具体的には、レンズMPU117は、例えば事前に設定した方向(通常は至近方向)に、所定駆動量に相当する距離だけフォーカスレンズ104を移動させる。レンズ駆動方向を至近方向に設定する理由は、焦点調節の対象とする被写体が至近側に存在する場合が多いことによる。但し、この方向に限らなくてもよい。S204における所定駆動量とは、DFD方式AFを行うために必要な、ボケ状態の異なる2画像のボケ状態の違いに対応している。本実施形態では、フォーカスレンズ104の駆動制御に係る駆動量を常に一定として説明するが、S204が実行されるごとに変更してもよい。その場合には、所定駆動量ごとに対応する相関テーブルをメモリに記憶しておく必要がある。以下では、フォーカスレンズ104の駆動制御に係る所定駆動量をLkと記す。   In order to calculate the blur evaluation value C, image data obtained by two or more exposures with different blur states must be accumulated in the RAM 125b. That is, since the blur evaluation value cannot be calculated when the number of exposures is 1 or less, the process of S204 is executed in order to repeat the exposure once more. The lens MPU 117 performs drive control of the focus lens 104 with a predetermined drive amount (S204), and returns to the exposure step (S202). Specifically, the lens MPU 117 moves the focus lens 104 by a distance corresponding to a predetermined drive amount, for example, in a preset direction (usually the closest direction). The reason for setting the lens driving direction to the close direction is that the subject to be focused is often present on the close side. However, the direction is not limited to this. The predetermined drive amount in S204 corresponds to the difference between the blur states of two images having different blur states, which are necessary for performing the DFD AF. In the present embodiment, the drive amount related to the drive control of the focus lens 104 is described as being always constant, but may be changed each time S204 is executed. In that case, it is necessary to store a correlation table corresponding to each predetermined driving amount in the memory. Hereinafter, the predetermined drive amount related to the drive control of the focus lens 104 is denoted as Lk.

S205で得られるボケ評価値Cは、例えばRAM125bに蓄積されている、ボケ状態の異なる2回の露光分の画像データから算出される。ボケ評価値Cの算出処理では、ボケ状態の異なる2画像のデータに対してそれぞれ同様のフィルタ処理が行われ、所定の周波数帯域成分が抽出される。例えば実空間での畳み込み演算または周波数空間での乗算後に二乗和演算が行われ、周波数空間における画像信号のパワー(以下、Pと称する)が算出される。2画像のP値を比較することで、2画像のボケ具合の違いを評価するためのボケ評価値Cを算出することができる。ボケ状態の異なる2画像とは、フォーカスレンズ104を所定駆動量Lkだけ駆動する際に、その前後の位置で撮像される画像を指す。所定駆動量Lkに対応する真のデフォーカス量の変化をDkと記す。つまりボケ状態の異なる2画像の、真のデフォーカス量の変化量はDkとなる。   The blur evaluation value C obtained in S205 is calculated from, for example, image data for two exposures with different blur states stored in the RAM 125b. In the calculation process of the blur evaluation value C, the same filter process is performed on the data of two images having different blur states, and a predetermined frequency band component is extracted. For example, a square sum operation is performed after a convolution operation in the real space or a multiplication in the frequency space, and the power of the image signal in the frequency space (hereinafter referred to as P) is calculated. By comparing the P values of the two images, a blur evaluation value C for evaluating the difference in the degree of blur between the two images can be calculated. The two images with different blur states indicate images captured at positions before and after the focus lens 104 is driven by a predetermined drive amount Lk. A change in the true defocus amount corresponding to the predetermined drive amount Lk is denoted as Dk. That is, the change amount of the true defocus amount of two images having different blur states is Dk.

本実施形態では、被写体に焦点が合った合焦状態のときにボケ評価値Cがゼロになるものとする。ボケ評価値Cの算出処理については公知の方法を用いる。例えば、第1の画像信号と第2の画像信号とのP値の差を、第1および第2の画像信号のP値の和で除算した値に係数を乗算することでボケ評価値Cを算出できる。この場合、ボケ評価値Cは正値もしくは負値、またはゼロのいずれかである。   In this embodiment, it is assumed that the blur evaluation value C is zero when the subject is in focus. For the process of calculating the blur evaluation value C, a known method is used. For example, the blur evaluation value C is obtained by multiplying a value obtained by dividing the difference between the P values of the first image signal and the second image signal by the sum of the P values of the first and second image signals by a coefficient. It can be calculated. In this case, the blur evaluation value C is either a positive value, a negative value, or zero.

次にS206でカメラMPU125は、S205で算出されたボケ評価値の信頼性判定を行う。S206ではボケ評価値に信頼性があるか否かについて判定される。ボケ評価値Cは2画像のボケ具合の違いを評価するための指標である。ところで、無限端や至近端の付近のように画像のコントラストが大きく減少しているボケの大きい状態では、2画像のボケ具合の違いがほとんど無くなってしまう。このため、S/N比(信号対ノイズ比)が低下する。そこでS206でカメラMPU125は、ボケが大きい状態であるか否かを判定し、ボケが大きい状態で得られた2画像から算出されたボケ評価値Cについては信頼性が低いと判定する。ボケ評価値Cの信頼性判定処理については公知の方法を用いる。ボケ評価値Cに信頼性があると判定された場合(S206でYes)、S208へ進み、ボケ評価値Cに信頼性がないと判定された場合(S206でNo)にはS207に移行する。   In step S206, the camera MPU 125 determines the reliability of the blur evaluation value calculated in step S205. In S206, it is determined whether or not the blur evaluation value is reliable. The blur evaluation value C is an index for evaluating the difference in the degree of blur between the two images. By the way, in the state where the blur of the image where the contrast of the image is greatly reduced as in the vicinity of the infinite end or the close end, the difference in the blur condition between the two images is almost eliminated. For this reason, the S / N ratio (signal to noise ratio) decreases. Therefore, in step S206, the camera MPU 125 determines whether or not the blur is large, and determines that the blur evaluation value C calculated from the two images obtained when the blur is large is low in reliability. A known method is used for the reliability determination process of the blur evaluation value C. If it is determined that the blur evaluation value C is reliable (Yes in S206), the process proceeds to S208. If it is determined that the blur evaluation value C is not reliable (No in S206), the process proceeds to S207.

S207では、ボケ評価値Cを再度算出するためのフォーカスレンズ104の駆動が行われる。レンズMPU117はフォーカスレンズ104を駆動制御して、所定駆動量Lk以上の駆動を行う。さらにカメラMPU125は露光回数をリセットした上で、S202へ戻り、1回目の露光を開始させる(S202)。S207において、所定駆動量Lk以上でフォーカスレンズ104を駆動する目的は、より高速に、ボケ評価値Cに関して信頼性のあるレンズ位置に到達させることである。なお、必要に応じてS204の場合と同様に、所定駆動量Lkでフォーカスレンズ104を駆動してもよい。また、露光回数をリセットする目的は、ボケ評価値Cを、S207におけるフォーカスレンズ104の駆動後の位置で再度算出するためである。S207でレンズMPU117は、例えば事前に設定した方向(通常は至近方向)へフォーカスレンズ104を駆動制御する。レンズ駆動方向を至近方向に設定する理由は前述のとおりである。   In S207, the focus lens 104 for driving the blur evaluation value C again is driven. The lens MPU 117 drives and controls the focus lens 104 to drive the predetermined driving amount Lk or more. Further, the camera MPU 125 resets the number of exposures, returns to S202, and starts the first exposure (S202). In S207, the purpose of driving the focus lens 104 with the predetermined driving amount Lk or more is to reach a reliable lens position with respect to the blur evaluation value C at a higher speed. Note that the focus lens 104 may be driven with a predetermined drive amount Lk as necessary in the same manner as in S204. The purpose of resetting the number of exposures is to recalculate the blur evaluation value C at the position after driving the focus lens 104 in S207. In step S207, the lens MPU 117 controls the drive of the focus lens 104 in, for example, a preset direction (usually the closest direction). The reason for setting the lens driving direction to the closest direction is as described above.

S208においてカメラMPU125は、S206にて信頼性があると判定されたボケ評価値Cを、RAM125bが記憶している相関テーブルのデータ(相関データ)と照合し、デフォーカス量を決定する。その詳細は後述するが、S208におけるテーブル参照の結果、デフォーカス量が複数得られる場合がある。そこで、本ステップにおいて得られるデフォーカス量を、「真のデフォーカス量」とは区別し、用語の混同を避けるために、以下では、相関テーブルの参照によって得られるデフォーカス量を「検出デフォーカス量」と称する。また、フォーカスレンズ104の位置と対応する、正しいデフォーカス量については、真のデフォーカス量と称する。つまりレンズメモリ118は、フォーカスレンズ104の位置情報と真のデフォーカス量との対応関係を表すデータを記憶している。   In S208, the camera MPU 125 collates the blur evaluation value C determined to be reliable in S206 with the data (correlation data) in the correlation table stored in the RAM 125b, and determines the defocus amount. Although details will be described later, as a result of the table reference in S208, a plurality of defocus amounts may be obtained. Therefore, in order to distinguish the defocus amount obtained in this step from the “true defocus amount” and avoid confusion of terms, the defocus amount obtained by referring to the correlation table is referred to as “detection defocus” below. Referred to as “amount”. A correct defocus amount corresponding to the position of the focus lens 104 is referred to as a true defocus amount. That is, the lens memory 118 stores data representing the correspondence between the position information of the focus lens 104 and the true defocus amount.

図4を参照して、S208における処理を説明する。図4は、ボケ評価値Cと真のデフォーカス量との相関関係を例示する図である。横軸は真のデフォーカス量を表し、右側を無限側とする。縦軸はボケ評価値Cを表す。グラフ線は相関テーブルのデータ(相関データ)を表している。図4に示すDsは至近側の真のデフォーカス量であり、Dmは無限側の真のデフォーカス量である。DsとDmの各値は、至近端と無限端にそれぞれ対応する真のデフォーカス量以下の値であるとする。また図4に示すDoは合焦位置に対応する真のデフォーカス量であり、本実施形態ではDo=0とする。ボケ評価値Coは、合焦位置での真のデフォーカス量Doに対応しており、本実施形態ではCo=0とする。   With reference to FIG. 4, the process in S208 will be described. FIG. 4 is a diagram illustrating the correlation between the blur evaluation value C and the true defocus amount. The horizontal axis represents the true defocus amount, and the right side is the infinite side. The vertical axis represents the blur evaluation value C. The graph line represents the correlation table data (correlation data). Ds shown in FIG. 4 is a true defocus amount on the closest side, and Dm is a true defocus amount on the infinite side. Each value of Ds and Dm is assumed to be a value equal to or less than the true defocus amount corresponding to the close end and the infinite end. Also, Do shown in FIG. 4 is a true defocus amount corresponding to the in-focus position, and in this embodiment, Do = 0. The blur evaluation value Co corresponds to the true defocus amount Do at the in-focus position, and Co = 0 in this embodiment.

参照テーブルとしての相関テーブルは、ボケ評価値Cから真のデフォーカス量を求める際に使用される。例えば、図2のS206で信頼性があると判定されたボケ評価値をCo=0とする。この場合、図4に示す相関テーブルを参照すると、Do=0が導かれる。つまり、現在のフォーカス状態が合焦状態であることがわかる。このように図4の縦軸であるボケ評価値Cの値を、図4に示すグラフ線と照合し、図4の横軸である真のデフォーカス量の値を読み取ればよい。横軸上での読み取り値は、カメラがボケ評価値Cを用いて検出した値であり、検出デフォーカス量となる。   The correlation table as a reference table is used when the true defocus amount is obtained from the blur evaluation value C. For example, the blur evaluation value determined to be reliable in S206 of FIG. In this case, referring to the correlation table shown in FIG. 4, Do = 0 is derived. That is, it can be seen that the current focus state is an in-focus state. In this way, the value of the blur evaluation value C, which is the vertical axis of FIG. 4, is compared with the graph line shown in FIG. 4, and the true defocus amount value, which is the horizontal axis of FIG. The read value on the horizontal axis is a value detected by the camera using the blur evaluation value C, and is a detected defocus amount.

次に、図4に示すボケ評価値Cと真のデフォーカス量のそれぞれの符号について説明する。
真のデフォーカス量の符号については、Doよりも至近側における真のデフォーカス量の符号をマイナスとし、Doよりも無限側における真のデフォーカス量の符号をプラスと定義する。また、ボケ評価値Cの符号については、Co=0よりも小さい値をマイナスと定義する。真のデフォーカス量Dbに対応するCbはボケ評価値の最小値を示し、マイナス符号である。Co=0よりも大きいボケ評価値Cの符号をプラスと定義する。真のデフォーカス量Daに対応するCaはボケ評価値の最大値を示し、プラス符号である。
Next, the signs of the blur evaluation value C and the true defocus amount shown in FIG. 4 will be described.
Regarding the sign of the true defocus amount, the sign of the true defocus amount on the near side from Do is defined as minus, and the sign of the true defocus amount on the infinite side from Do is defined as plus. As for the sign of the blur evaluation value C, a value smaller than Co = 0 is defined as minus. Cb corresponding to the true defocus amount Db indicates the minimum value of the blur evaluation value and is a minus sign. The sign of the blur evaluation value C greater than Co = 0 is defined as plus. Ca corresponding to the true defocus amount Da indicates the maximum value of the blur evaluation value and is a plus sign.

このように、図4には、ボケ評価値Cの符号と真のデフォーカス量の符号とが一致している相関テーブルを例示する。本実施形態では、ボケ評価値Cの符号と真のデフォーカス量の符号が一致していることを前提に説明する。但し、図2のS205においてボケ評価値Cを算出する際に用いる算出式に依存してボケ評価値Cの符号は変化する。算出式によっては、ボケ評価値Cの符号と真のデフォーカス量の符号が必ずしも一致しない場合がある。   Thus, FIG. 4 illustrates a correlation table in which the sign of the blur evaluation value C and the sign of the true defocus amount match. In the present embodiment, the description will be made on the assumption that the sign of the blur evaluation value C matches the sign of the true defocus amount. However, the sign of the blur evaluation value C changes depending on the calculation formula used when calculating the blur evaluation value C in S205 of FIG. Depending on the calculation formula, the sign of the blur evaluation value C may not always match the sign of the true defocus amount.

一般的に、ボケ評価値Cと真のデフォーカス量との関係において、真のデフォーカス量の絶対値が合焦位置であるDo=0から大きくなるにつれて、ボケ評価値Cの絶対値も大きくなる。例として、図4において真のデフォーカス量がDbより大きく、且つDaよりも小さい範囲(第3のDef範囲参照)がこの関係を示している。また一般的に、デフォーカス量の絶対値が合焦位置であるDo=0から所定値以上離れると、真のデフォーカス量の絶対値が大きくなるにつれて、ボケ評価値Cの絶対値は小さくなる。例として、図4において真のデフォーカス量がDb以下またはDa以上の範囲(第2のDef範囲参照)がこの関係を示している。このような関係となる理由は、ボケ評価値Cの算出の際に用いる、デフォーカス量がDkだけ異なる2画像のパワーPに違いがあることによる。デフォーカス量がDkだけ異なる2画像のパワーPの変化量をΔPと記す。合焦近傍ではΔPは小さいが合焦位置から離れるにつれてΔPは徐々に大きくなり、合焦位置から所定以上離れてボケの大きい状態になるにつれてΔPは再び小さくなる。一般的に、合焦近傍での状態と、ボケの大きい状態では、デフォーカス量を同じDkだけ変化させたとしても、パワーPはほとんど変化しない。このような性質をもつパワーPを用いてボケ評価値Cが算出される場合、ボケ評価値Cと真のデフォーカス量との関係は図4に示す関係となる。   In general, in the relationship between the blur evaluation value C and the true defocus amount, the absolute value of the blur evaluation value C increases as the absolute value of the true defocus amount increases from the focus position Do = 0. Become. For example, in FIG. 4, a range in which the true defocus amount is larger than Db and smaller than Da (see the third Def range) shows this relationship. In general, when the absolute value of the defocus amount is a predetermined value or more away from the focus position Do = 0, the absolute value of the blur evaluation value C decreases as the absolute value of the true defocus amount increases. . As an example, a range in which the true defocus amount is Db or less or Da or more (see the second Def range) in FIG. 4 shows this relationship. The reason for this relationship is that there is a difference in the power P of the two images that are used when calculating the blur evaluation value C and the defocus amount is different by Dk. A change amount of the power P of two images having different defocus amounts by Dk is denoted by ΔP. In the vicinity of focus, ΔP is small, but ΔP gradually increases as the distance from the focus position increases, and ΔP decreases again as the blur increases with a distance more than a predetermined distance from the focus position. In general, the power P hardly changes even when the defocus amount is changed by the same Dk in the state near the in-focus state and the state where the blur is large. When the blur evaluation value C is calculated using the power P having such properties, the relationship between the blur evaluation value C and the true defocus amount is as shown in FIG.

以下では、説明の便宜のため、本実施形態に係わる真のデフォーカス量を複数のデフォーカス領域に分類する。その分類方法を、図4を用いて説明する。
(1)第1のデフォーカス(Def)範囲
第1のデフォーカス範囲は、図2のS206で説明した、ボケ評価値の信頼性判定において、ボケが大きい状態と判定された真のデフォーカス量のとり得る範囲として定義される。図4に示すように、第1のデフォーカス範囲は、無限端または至近端の近傍領域である(Ds未満の範囲およびDmを超える範囲)。ボケ評価値の信頼性が無いかまたは低い第1のデフォーカス範囲の場合、相関テーブルの参照は行われない。ゆえに図4では、第1のデフォーカス範囲に対応するボケ評価値Cはプロットせず、信頼性のあるデフォーカス範囲に対応するボケ評価値Cのみ表記している。
(2)第2のデフォーカス(Def)範囲
第2のデフォーカス範囲は、Ds以上であってDb以下の範囲、またはDa以上であってDm以下の範囲として定義される。つまり、第2のデフォーカス範囲は図4のグラフ線における2つの変曲点に相当する位置よりも外側(合焦位置から離れる側)の範囲である。
(3)第3のデフォーカス(Def)範囲
第3のデフォーカス範囲は、Dbより大きく且つDaよりも小さい範囲であり、合焦位置Doを含む範囲として定義される。
Hereinafter, for convenience of explanation, the true defocus amount according to the present embodiment is classified into a plurality of defocus areas. The classification method will be described with reference to FIG.
(1) First Defocus (Def) Range The first defocus range is a true defocus amount that is determined to have a large blur in the blur evaluation value reliability determination described in S206 of FIG. It is defined as the range that can be taken. As shown in FIG. 4, the first defocus range is a region near the infinite end or the closest end (range less than Ds and range beyond Dm). When the blur evaluation value is not reliable or is in the first defocus range, the correlation table is not referred to. Therefore, in FIG. 4, the blur evaluation value C corresponding to the first defocus range is not plotted, and only the blur evaluation value C corresponding to the reliable defocus range is shown.
(2) Second Defocus (Def) Range The second defocus range is defined as a range greater than or equal to Ds and less than or equal to Db, or a range greater than or equal to Da and less than or equal to Dm. That is, the second defocus range is a range outside the position corresponding to the two inflection points on the graph line in FIG. 4 (the side away from the focus position).
(3) Third Defocus (Def) Range The third defocus range is a range that is larger than Db and smaller than Da, and is defined as a range including the in-focus position Do.

着目すべき点は、図4に示すように、第2のデフォーカス範囲と第3のデフォーカス範囲を合わせた範囲において、ボケ評価値Cと真のデフォーカス量との符号が一致している点である。すなわち、第2のデフォーカス範囲および第3のデフォーカス範囲を含む範囲では、ボケ評価値の符号について信頼性が有るといえる。換言すれば、ボケ評価値の符号の信頼性が有るということは、至近側と無限側のうちでどちらの方向に合焦位置があるかを、ボケ評価値が算出された時点で判別できるということに他ならない。   The point to be noted is that, as shown in FIG. 4, the signs of the blur evaluation value C and the true defocus amount coincide with each other in the range obtained by combining the second defocus range and the third defocus range. Is a point. That is, in the range including the second defocus range and the third defocus range, it can be said that the sign of the blur evaluation value is reliable. In other words, the reliability of the sign of the blur evaluation value means that it can be determined at the time when the blur evaluation value is calculated in which direction the in-focus side is located on the near side or the infinite side. There is nothing else.

次に、図4を用いて、相関テーブルの参照によりボケ評価値Cから真のデフォーカス量を決定する処理の具体例を説明する。図2のS205で算出されたボケ評価値CがCxであった場合を想定する。図4に例示する相関テーブルを参照すると、Dx1とDx2という2つの検出デフォーカス量が得られる。Dx1は第3のデフォーカス範囲に属し、Dx2は第2のデフォーカス範囲に属する。図4にて検出デフォーカス量が2つであるのに対し、真のデフォーカス量は、検出デフォーカス量Dx1とDx2のどちらか一方である。   Next, a specific example of processing for determining the true defocus amount from the blur evaluation value C by referring to the correlation table will be described with reference to FIG. Assume that the blur evaluation value C calculated in S205 of FIG. 2 is Cx. Referring to the correlation table illustrated in FIG. 4, two detection defocus amounts Dx1 and Dx2 are obtained. Dx1 belongs to the third defocus range, and Dx2 belongs to the second defocus range. While the detected defocus amount is two in FIG. 4, the true defocus amount is one of the detected defocus amounts Dx1 and Dx2.

このように、1つのボケ評価値Cに対して、相関テーブルを参照した結果、検出デフォーカス量が2つ得られる。言い換えれば、相関テーブルにおいて、1つのボケ評価値Cに対して、2つの検出デフォーカス量が対応していること(つまり、1対2対応)が特徴である。この特徴がもつ、従来技術に対する優位性については後で詳述する。なお、本実施形態では説明の便宜上、1対2対応の相関テーブルを例示するが、1つのボケ評価値Cに対して3つ以上の複数のデフォーカス量が得られる相関テーブルを用いても焦点検出が可能である。要は、1つのボケ評価値Cに対応して複数の検出デフォーカス量が得られる相関テーブルを用いることが特徴であり、以下ではこれを1対多対応と称する。   In this way, as a result of referring to the correlation table for one blur evaluation value C, two detection defocus amounts are obtained. In other words, the correlation table is characterized in that two detected defocus amounts correspond to one blur evaluation value C (that is, one-to-two correspondence). The superiority of this feature over the prior art will be described in detail later. In this embodiment, for convenience of explanation, a one-to-two correlation table is illustrated. However, even if a correlation table that obtains a plurality of defocus amounts of three or more with respect to one blur evaluation value C is used, a focal point is used. Detection is possible. In short, a feature is to use a correlation table that can obtain a plurality of detected defocus amounts corresponding to one blur evaluation value C, and this is hereinafter referred to as one-to-many correspondence.

1対2対応の相関テーブルを用いる場合には、参照によって2つの検出デフォーカス量が得られる。2つのうち、第3のデフォーカス範囲に含まれる方、すなわち合焦位置に近い方の検出デフォーカス量(図4のDx1)を、第1の検出デフォーカス量と称する。また、第2のデフォーカス範囲に含まれる方、すなわち合焦位置から遠い方の検出デフォーカス量(図4のDx2)を、第2の検出デフォーカス量と称する。一般化すると、1対多対応の相関テーブルを用いる場合には、最も合焦位置に近い位置のデフォーカス量を第1の検出デフォーカス量とし、合焦位置から離れるにつれて第nの検出デフォーカス量を順次に定義すればよい(n≧2)。   When a one-to-two correlation table is used, two detection defocus amounts are obtained by reference. Of the two, the detected defocus amount (Dx1 in FIG. 4) that is included in the third defocus range, that is, closer to the in-focus position is referred to as a first detected defocus amount. Further, the detected defocus amount (Dx2 in FIG. 4) that is included in the second defocus range, that is, the farther from the in-focus position is referred to as a second detected defocus amount. In general, when a one-to-many correlation table is used, the defocus amount at the position closest to the in-focus position is set as the first detection defocus amount, and the nth detection defocus is increased as the distance from the in-focus position increases. The quantities may be defined sequentially (n ≧ 2).

ここで、第1の検出デフォーカス量と第2の検出デフォーカス量が一致する場合も存在するので説明する。第1の検出デフォーカス量と第2のデフォーカス量が一致する場合とは例えば、図4のCaとDaとの対応関係や、CoとDoとの対応関係である。つまり、1つのボケ評価値Cに対して1つの検出デフォーカス量が対応する1対1対応の場合である。この場合も、図2および図3のフローチャートに示す処理を実行することで焦点検出が可能である。よって、1対1対応の場合でも、1対2対応の場合と同様な処理が行われるものとする。   Here, there will be a case where the first detection defocus amount and the second detection defocus amount coincide with each other. The case where the first detected defocus amount and the second defocus amount coincide with each other is, for example, the correspondence between Ca and Da in FIG. 4 or the correspondence between Co and Do. That is, this is a one-to-one correspondence in which one detected defocus amount corresponds to one blur evaluation value C. Also in this case, focus detection can be performed by executing the processing shown in the flowcharts of FIGS. Therefore, even in the case of one-to-one correspondence, the same processing as that in the case of one-to-two correspondence is performed.

次に、1対多対応の相関テーブルを使用することが、従来技術に対してもつ優位性について説明する。
従来技術の場合、RAM125bの記憶する相関テーブルは、図4に示す第3のデフォーカス範囲内のデータのみを有する。この場合、第2のデフォーカス範囲でボケ評価値Cが算出されると、至近側と無限側どちらの方向に合焦位置があるか判別できないので、焦点検出に時間を要してしまう。これに対し、本実施形態では、RAM125bが記憶している相関テーブルは、第3のデフォーカス範囲だけでなく、第2のデフォーカス範囲をも含む相関テーブルである。この場合、ボケ評価値Cとデフォーカス量とが1対1対応ではなく1対多対応となるため、テーブル参照の結果、複数の検出デフォーカス量が得られることとなる。つまり、真のデフォーカス量に対して、複数の候補が得られるが、候補の選択については後述の処理により解決される。したがって、本実施形態では、従来技術ではデフォーカス量の検出が不可能であった第2のデフォーカス範囲においてデフォーカス量の検出が可能となるため、DFD方式AFの高速化を実現できる。
Next, the superiority of using a one-to-many correlation table over the prior art will be described.
In the case of the prior art, the correlation table stored in the RAM 125b has only data within the third defocus range shown in FIG. In this case, when the blur evaluation value C is calculated in the second defocus range, it cannot be determined whether the in-focus position is in the near side or the infinite side, so that it takes time to detect the focus. On the other hand, in this embodiment, the correlation table stored in the RAM 125b is a correlation table including not only the third defocus range but also the second defocus range. In this case, since the blur evaluation value C and the defocus amount correspond to one-to-many rather than one-to-one, a plurality of detected defocus amounts can be obtained as a result of table reference. That is, a plurality of candidates are obtained for the true defocus amount, but candidate selection is solved by the processing described later. Therefore, in the present embodiment, since the defocus amount can be detected in the second defocus range, in which the defocus amount cannot be detected by the conventional technique, the speed of the DFD AF can be increased.

図2のS209でレンズMPU117はカメラMPU125の制御指令にしたがい、第1の検出デフォーカス量Dx1に対応するレンズ位置から、所定駆動量Lkを減算した量だけ、合焦位置の方向に向けてフォーカスレンズ104を移動させる。所定駆動量Lkに対応する、真のデフォーカス量の変化はDkである。つまり、S209での処理において、真のデフォーカス量の変化は、Dx1からDkを差し引いた量「Dx1−Dk」である。本ステップの処理の目的については後述するが、真のデフォーカス量の変化の様子を、図4を用いて説明する。図4にて第1の検出デフォーカス量Dx1の場合、「Dx1−Dk」に相当する量だけ、合焦位置(Do)の方向に向けてフォーカスレンズ104が駆動される。これにより真のデフォーカス量はDx3に移動する。また、図4にて第2の検出デフォーカス量Dx2の場合には、同様のレンズ駆動が行われる結果、真のデフォーカス量はDx4へ移動する。以下、Dx3を第3の検出デフォーカス量と称し、Dx4を第4の検出デフォーカス量と称する。フォーカスレンズ104の駆動後に、図3のS210へ進む。   In step S209 of FIG. 2, the lens MPU 117 focuses in the direction of the in-focus position by an amount obtained by subtracting the predetermined drive amount Lk from the lens position corresponding to the first detected defocus amount Dx1 in accordance with the control command of the camera MPU 125. The lens 104 is moved. The true defocus amount change corresponding to the predetermined drive amount Lk is Dk. That is, in the processing in S209, the true defocus amount change is an amount “Dx1−Dk” obtained by subtracting Dk from Dx1. The purpose of the processing in this step will be described later, but the change in the true defocus amount will be described with reference to FIG. In the case of the first detected defocus amount Dx1 in FIG. 4, the focus lens 104 is driven toward the in-focus position (Do) by an amount corresponding to “Dx1−Dk”. As a result, the true defocus amount moves to Dx3. Further, in the case of the second detected defocus amount Dx2 in FIG. 4, as a result of the same lens driving, the true defocus amount moves to Dx4. Hereinafter, Dx3 is referred to as a third detected defocus amount, and Dx4 is referred to as a fourth detected defocus amount. After driving the focus lens 104, the process proceeds to S210 in FIG.

S210でカメラMPU125は撮像素子駆動部123を制御し、撮像素子122への露光を行う。S209におけるフォーカスレンズ104の駆動前後における2画像を用いて、再びボケ評価値を取得するために、撮像素子122に関し、第1の露光が行われる。その後にフォーカスレンズ104を所定駆動量Lkで駆動することでボケ状態が変更され(S211)、撮像素子122への第2の露光が行われる(S212)。S210とS212でそれぞれ撮像された2画像のデータはRAM125bに蓄積される。これにより、焦点検出用の出力信号だけでなく、AF評価範囲を含む近傍の被写体の情報を得ることができる。その際には焦点検出用に、必要な焦点調節精度に合わせて、撮像画素の出力信号の数を間引いて用いてもよい。以上の処理を終えると、S213に進む。   In step S <b> 210, the camera MPU 125 controls the image sensor driving unit 123 to expose the image sensor 122. In order to obtain the blur evaluation value again using the two images before and after the driving of the focus lens 104 in S209, the first exposure is performed on the image sensor 122. Thereafter, the focus lens 104 is driven by the predetermined driving amount Lk to change the blurring state (S211), and the second exposure to the image sensor 122 is performed (S212). The data of the two images captured in S210 and S212 are accumulated in the RAM 125b. As a result, not only the focus detection output signal but also information on a nearby subject including the AF evaluation range can be obtained. In that case, the number of output signals of the image pickup pixels may be thinned and used for focus detection in accordance with the required focus adjustment accuracy. When the above process is completed, the process proceeds to S213.

S213で焦点検出部129はボケ評価値Cを算出する。S209におけるフォーカスレンズ104の駆動の前後に露光を行うことで得られた2画像のデータから、ボケ評価値Cが算出される。S208で説明したように、真のデフォーカス量は、第1の検出デフォーカス量Dx1または第2の検出デフォーカス量Dx2のどちらかである。S208の処理時点で真のデフォーカス量が第1の検出デフォーカス量Dx1であった場合、S209でのフォーカスレンズ駆動後には、第3の検出デフォーカス量Dx3に相当する状態である。つまりフォーカスレンズ104は、Doで示す合焦位置の近傍に相当する位置にいるので、ボケ評価値Cの値はゼロに近い。一方、S208の処理時点で真のデフォーカス量が第2の検出デフォーカス量Dx2であった場合、S209でのフォーカスレンズ駆動後には、第4の検出デフォーカス量Dx4に相当する状態である。つまりフォーカスレンズ104は、Doで示す合焦位置に相当する位置から離れた位置にいるので、ボケ評価値Cはゼロとならない。   In step S213, the focus detection unit 129 calculates the blur evaluation value C. A blur evaluation value C is calculated from data of two images obtained by performing exposure before and after driving the focus lens 104 in S209. As described in S208, the true defocus amount is either the first detected defocus amount Dx1 or the second detected defocus amount Dx2. When the true defocus amount is the first detected defocus amount Dx1 at the time of the processing in S208, the state corresponds to the third detected defocus amount Dx3 after the focus lens is driven in S209. That is, since the focus lens 104 is in a position corresponding to the vicinity of the in-focus position indicated by Do, the value of the blur evaluation value C is close to zero. On the other hand, when the true defocus amount is the second detected defocus amount Dx2 at the time of the processing in S208, the state corresponds to the fourth detected defocus amount Dx4 after the focus lens is driven in S209. That is, since the focus lens 104 is located away from the position corresponding to the focus position indicated by Do, the blur evaluation value C does not become zero.

次のS214でカメラMPU125は、ボケ評価値Cの絶対値を所定の閾値と比較する。ボケ評価値Cの絶対値に対して設定される閾値は、撮影画像の観賞者が最も合焦していると感じるボケ状態となる範囲に基づいて予め決定される。S214にてボケ評価値の絶対値|C|が閾値以下である場合(S214でYes)、S216に進み、|C|が閾値より大きい場合(S214でNo)には、S215に移行する。   In next step S214, the camera MPU 125 compares the absolute value of the blur evaluation value C with a predetermined threshold value. The threshold value set for the absolute value of the blur evaluation value C is determined in advance based on a range in which the viewer of the captured image feels in focus most. If the absolute value | C | of the blur evaluation value is equal to or smaller than the threshold value in S214 (Yes in S214), the process proceeds to S216. If | C | is larger than the threshold value (No in S214), the process proceeds to S215.

ボケ評価値Cの絶対値が閾値以下の場合、ボケ評価値Cはゼロに近い値であり、合焦状態と判定される。S216にて合焦表示が行われ、表示部126は合焦状態であることを表示し、ユーザに提示する。例えば、S208の処理時点で第1の検出デフォーカス量Dx1であり、S209の処理時点で第3の検出デフォーカス量Dx3である場合、Dx3でのボケ評価値(C3と記す)はゼロに近い。よって、絶対値|C3|は閾値以下であると判定され、真のデフォーカス量は図4に示すDoを含む閾値範囲内にある。S216の処理後、S217に進む。   When the absolute value of the blur evaluation value C is equal to or smaller than the threshold value, the blur evaluation value C is a value close to zero and is determined to be in focus. In-focus display is performed in S216, and the display unit 126 displays that it is in focus and presents it to the user. For example, when it is the first detected defocus amount Dx1 at the time of processing in S208 and the third detected defocus amount Dx3 at the time of processing in S209, the blur evaluation value at Dx3 (denoted as C3) is close to zero. . Therefore, the absolute value | C3 | is determined to be equal to or smaller than the threshold value, and the true defocus amount is within the threshold range including Do shown in FIG. After the process of S216, the process proceeds to S217.

また、ボケ評価値Cの絶対値が閾値よりも大きい場合、合焦状態ではないと判定されて、S215へ進んでフォーカスレンズ104が駆動される。例えば、S208の処理時点で第2の検出デフォーカス量Dx2であり、S209の処理時点で第4の検出デフォーカス量Dx4である場合、Dx4でのボケ評価値(C4と記す)の絶対値|C4|は閾値よりも大きい。S215でレンズMPU117は、第4の検出デフォーカス量Dx4に対応するレンズ位置から所定駆動量Lkを減算した量だけ、フォーカスレンズ104を合焦位置の方向(合焦方向)に向けて移動させる制御を行う。S215の処理は、第4の検出デフォーカス量Dx4の場合(S214でNo)にのみ実行される。この場合、合焦位置Doまでの残りデフォーカス量はDx4となる。つまり、Dx4に対応するフォーカス駆動量分だけフォーカスレンズ104を合焦方向に向けて駆動すれば、フォーカスレンズ104を合焦位置へ移動させることが可能である。しかし本実施形態では、フォーカスレンズ104の駆動誤差や検出デフォーカス量の検出誤差を考慮して、合焦位置Doよりも僅かにボケの大きい状態であるDx3に対応する位置へフォーカスレンズ104が駆動される。そしてS210に戻って再び露光処理が実行される。S213でボケ評価値Cを再度算出された上で、S214にて合焦判定が再度行われる。S216での合焦表示を終えると、S217へ進んでAF動作を終了する。   On the other hand, if the absolute value of the blur evaluation value C is larger than the threshold value, it is determined that the in-focus state is not achieved, and the process proceeds to S215 to drive the focus lens 104. For example, if the detected defocus amount Dx2 is the second detected defocus amount Dx2 at the time of processing in S208 and the fourth detected defocus amount Dx4 is the processed time of S209, the absolute value of the blur evaluation value (denoted as C4) at Dx4 | C4 | is larger than the threshold value. In S215, the lens MPU 117 moves the focus lens 104 toward the in-focus position (in-focus direction) by an amount obtained by subtracting the predetermined drive amount Lk from the lens position corresponding to the fourth detected defocus amount Dx4. I do. The process of S215 is executed only in the case of the fourth detected defocus amount Dx4 (No in S214). In this case, the remaining defocus amount up to the in-focus position Do is Dx4. That is, if the focus lens 104 is driven in the in-focus direction by the focus drive amount corresponding to Dx4, the focus lens 104 can be moved to the in-focus position. However, in the present embodiment, the focus lens 104 is driven to a position corresponding to Dx3 that is slightly out of focus with respect to the focus position Do in consideration of the drive error of the focus lens 104 and the detection error of the detected defocus amount. Is done. Then, the process returns to S210 and the exposure process is executed again. After the blur evaluation value C is calculated again in S213, the focus determination is performed again in S214. When the focus display in S216 is finished, the process proceeds to S217, and the AF operation is finished.

本実施形態では、DFD法での合焦判定において、ボケ評価値Cに対して1対多対応の場合に複数存在するデフォーカス量に関し、微小駆動を行ってボケ評価値の変化により真のデフォーカス量を判別可能である。この判別により、1つのボケ評価値に対応する複数のデフォーカス量の候補から1つが決定される。図4に示す1対2対応の例では、ボケ評価値Cxに対応する2つの検出デフォーカス量Dx1とDx2が存在する。この場合、Dx1ではDkに相当する微小駆動によってボケ評価値が減少するのに対し、Dx2ではDkに相当する微小駆動によってボケ評価値が増加することから両者の相違を判別できる。本実施形態によれば、従来の相関テーブルの範囲よりも広いデフォーカス範囲において、1つのボケ評価値に対応する1つのデフォーカス量を決定できる。よって、DFD方式のAF動作を高速化に行えるので、焦点検出時間を短縮することができる。   In this embodiment, in the focus determination by the DFD method, with respect to the defocus amounts that exist in the case of one-to-many correspondence with the blur evaluation value C, the true defocus amount is changed by performing minute driving and the blur evaluation value changes. The amount of focus can be determined. By this determination, one is determined from a plurality of defocus amount candidates corresponding to one blur evaluation value. In the example of one-to-two correspondence shown in FIG. 4, there are two detected defocus amounts Dx1 and Dx2 corresponding to the blur evaluation value Cx. In this case, in Dx1, the blur evaluation value decreases due to the minute driving corresponding to Dk, whereas in Dx2, the blur evaluation value increases due to the minute driving corresponding to Dk. According to the present embodiment, one defocus amount corresponding to one blur evaluation value can be determined in a defocus range wider than the range of the conventional correlation table. Therefore, since the DFD AF operation can be performed at high speed, the focus detection time can be shortened.

なお、本実施形態において、図2のS208で用いる相関テーブルについては、S204におけるフォーカスレンズ104の所定駆動量Lkに対応して変化する。本実施形態では、所定駆動量Lkの値を常に一定とする例を説明したが、駆動量Lkを可変値として変更してもよい。その場合には、駆動量Lkを変化させる数に相当する、複数の相関テーブルのデータを記憶部に記憶させておく必要がある。また本実施形態では、図3のS214でボケ評価値Cの絶対値が閾値より大きい場合、S215の処理を行ってからS210へ戻り、ボケ評価値を再度算出する例を説明した。これに限らず、S215にて第4の検出デフォーカス量Dx4に対応するフォーカス駆動量分だけフォーカスレンズ104を合焦方向に向けて移動させてから、S216の合焦表示へ処理を進めてもよい。   In the present embodiment, the correlation table used in S208 of FIG. 2 changes corresponding to the predetermined drive amount Lk of the focus lens 104 in S204. In the present embodiment, the example in which the value of the predetermined drive amount Lk is always constant has been described, but the drive amount Lk may be changed as a variable value. In that case, it is necessary to store data of a plurality of correlation tables corresponding to the number of changes in the drive amount Lk in the storage unit. Further, in this embodiment, when the absolute value of the blur evaluation value C is larger than the threshold value in S214 of FIG. 3, the process returns to S210 after performing the process of S215, and the blur evaluation value is calculated again. Not limited to this, even if the focus lens 104 is moved in the in-focus direction by the focus drive amount corresponding to the fourth detected defocus amount Dx4 in S215, the process may proceed to the in-focus display in S216. Good.

104 フォーカスレンズ
116 フォーカス駆動部
125 カメラMPU
129 焦点検出部

104 Focus lens 116 Focus drive unit 125 Camera MPU
129 Focus detection unit

Claims (7)

フォーカスレンズを含む撮像光学系と、
前記撮像光学系により結像される被写体像を光電変換する撮像素子と、
ボケ状態の異なる複数の画像のデータを前記撮像素子の出力信号から取得してボケ状態の評価値を算出する算出手段と、
前記評価値とデフォーカス量との対応関係を示す相関データを記憶する記憶手段と、
前記算出手段により算出された評価値を、前記記憶手段に記憶されている前記相関データと照合することによりデフォーカス量を決定する決定手段と、
前記決定手段により決定されたデフォーカス量に対応する前記フォーカスレンズの駆動量にしたがって前記フォーカスレンズを駆動する駆動手段と、を備え、
前記決定手段は、前記照合によって複数のデフォーカス量の候補が検出される場合、前記駆動手段により前記フォーカスレンズの駆動を行って前記評価値の変化を判定して前記候補から1つのデフォーカス量を決定することを特徴とする撮像装置。
An imaging optical system including a focus lens;
An image sensor that photoelectrically converts a subject image formed by the imaging optical system;
Calculation means for obtaining data of a plurality of images having different blur states from an output signal of the image sensor and calculating an evaluation value of the blur state;
Storage means for storing correlation data indicating a correspondence relationship between the evaluation value and the defocus amount;
Determining means for determining a defocus amount by collating the evaluation value calculated by the calculating means with the correlation data stored in the storage means;
Drive means for driving the focus lens according to the drive amount of the focus lens corresponding to the defocus amount determined by the determination means;
When a plurality of defocus amount candidates are detected by the collation, the determining unit drives the focus lens by the driving unit to determine a change in the evaluation value and determines one defocus amount from the candidate. An imaging apparatus characterized by determining
前記決定手段は、前記候補のうちで絶対値の小さいデフォーカス量を選択することにより、1つのデフォーカス量を決定することを特徴とする請求項1に記載の撮像装置。   The imaging apparatus according to claim 1, wherein the determining unit determines one defocus amount by selecting a defocus amount having a small absolute value from the candidates. 前記決定手段は、前記フォーカスレンズの駆動を行って前記評価値の変化を判定し、前記候補のうちで合焦方向への前記フォーカスレンズの駆動に伴って前記評価値の絶対値が減少するデフォーカス量を決定することを特徴とする請求項1に記載の撮像装置。   The determination means drives the focus lens to determine a change in the evaluation value, and among the candidates, the absolute value of the evaluation value decreases as the focus lens is driven in a focusing direction. The imaging apparatus according to claim 1, wherein a focus amount is determined. 前記算出手段は、第1および第2の画像の輝度情報から周波数帯域成分を抽出して前記評価値を算出し、
前記決定手段は、前記第1の画像に係るデフォーカス量と前記第2の画像に係るデフォーカス量との差を、前記候補のデフォーカス量から減算した結果であるデフォーカス量に対応する駆動量で、前記駆動手段により前記フォーカスレンズを駆動させることを特徴とする請求項1から3のいずれか1項に記載の撮像装置。
The calculating means calculates the evaluation value by extracting a frequency band component from the luminance information of the first and second images,
The determination means is a drive corresponding to a defocus amount that is a result of subtracting a difference between the defocus amount related to the first image and the defocus amount related to the second image from the candidate defocus amount. The image pickup apparatus according to claim 1, wherein the focus lens is driven by the driving unit by an amount.
前記記憶手段は、1つの前記評価値に対して複数のデフォーカス量が対応する前記相関データを記憶しており、
前記相関データは、前記デフォーカス量がゼロである合焦位置から離れるほど前記評価値の絶対値が大きくなる第1の範囲内のデータ、および前記合焦位置から離れるほど前記評価値の絶対値が小さくなる第2の範囲内のデータを有することを特徴とする請求項1から4のいずれか1項に記載の撮像装置。
The storage means stores the correlation data corresponding to a plurality of defocus amounts for one evaluation value,
The correlation data includes data in a first range in which the absolute value of the evaluation value increases as the distance from the focus position where the defocus amount is zero, and the absolute value of the evaluation value as the distance from the focus position increases. 5. The image pickup apparatus according to claim 1, wherein the image pickup apparatus has data in a second range in which becomes smaller.
フォーカスレンズおよび該フォーカスレンズを駆動する駆動手段を備えるレンズ装置が本体部に装着された状態にて、前記フォーカスレンズの移動により焦点調節を行う撮像装置であって、
前記フォーカスレンズを含む撮像光学系により結像される被写体像を光電変換する撮像素子と、
ボケ状態の異なる複数の画像のデータを前記撮像素子の出力信号から取得してボケ状態の評価値を算出する算出手段と、
前記評価値とデフォーカス量との対応関係を示す相関データを記憶する記憶手段と、
前記算出手段により算出された評価値を、前記記憶手段に記憶されている前記相関データと照合することによりデフォーカス量を決定する決定手段と、を備え、
前記決定手段は、前記照合によって複数のデフォーカス量の候補が検出される場合、前記駆動手段により前記フォーカスレンズの駆動を行って前記評価値の変化を判定して前記候補から1つのデフォーカス量を決定し、決定した該デフォーカス量に対応する制御指令を前記駆動手段に出力することを特徴とする撮像装置。
An imaging apparatus that performs focus adjustment by moving the focus lens in a state where a lens apparatus including a focus lens and a driving unit that drives the focus lens is mounted on a main body,
An image sensor that photoelectrically converts a subject image formed by an imaging optical system including the focus lens;
Calculation means for obtaining data of a plurality of images having different blur states from an output signal of the image sensor and calculating an evaluation value of the blur state;
Storage means for storing correlation data indicating a correspondence relationship between the evaluation value and the defocus amount;
Determining means for determining a defocus amount by collating the evaluation value calculated by the calculating means with the correlation data stored in the storage means;
When a plurality of defocus amount candidates are detected by the collation, the determining unit drives the focus lens by the driving unit to determine a change in the evaluation value and determines one defocus amount from the candidate. And an output of a control command corresponding to the determined defocus amount to the drive means.
フォーカスレンズを含む撮像光学系により結像される被写体像を光電変換する撮像素子を備える撮像装置により実行される制御方法であって、
ボケ状態の異なる複数の画像のデータを前記撮像素子の出力信号から取得してボケ状態の評価値を算出する算出ステップと、
前記算出ステップで算出された評価値を、前記評価値とデフォーカス量との対応関係を示す相関データと照合することによりデフォーカス量を決定する決定ステップと、
前記決定ステップで決定されたデフォーカス量に対応する前記フォーカスレンズの駆動量にしたがって前記フォーカスレンズを駆動する駆動ステップと、を有し、
前記決定ステップにて、前記照合によって複数のデフォーカス量の候補が検出される場合、前記フォーカスレンズの駆動を行って前記評価値の変化を判定して前記候補から1つのデフォーカス量を決定することを特徴とする撮像装置の制御方法。

A control method executed by an imaging apparatus including an imaging element that photoelectrically converts a subject image formed by an imaging optical system including a focus lens,
A calculation step of obtaining data of a plurality of images having different blur states from an output signal of the image sensor and calculating an evaluation value of the blur state;
A determination step of determining the defocus amount by comparing the evaluation value calculated in the calculation step with correlation data indicating a correspondence relationship between the evaluation value and the defocus amount;
A drive step of driving the focus lens according to the drive amount of the focus lens corresponding to the defocus amount determined in the determination step;
In the determining step, when a plurality of defocus amount candidates are detected by the collation, the focus lens is driven to determine a change in the evaluation value, and one defocus amount is determined from the candidates. And a method of controlling the imaging apparatus.

JP2015101739A 2015-05-19 2015-05-19 Imaging apparatus and control method thereof Active JP6429724B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2015101739A JP6429724B2 (en) 2015-05-19 2015-05-19 Imaging apparatus and control method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2015101739A JP6429724B2 (en) 2015-05-19 2015-05-19 Imaging apparatus and control method thereof

Publications (2)

Publication Number Publication Date
JP2016218206A JP2016218206A (en) 2016-12-22
JP6429724B2 true JP6429724B2 (en) 2018-11-28

Family

ID=57578390

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2015101739A Active JP6429724B2 (en) 2015-05-19 2015-05-19 Imaging apparatus and control method thereof

Country Status (1)

Country Link
JP (1) JP6429724B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102382865B1 (en) * 2017-06-28 2022-04-05 삼성전자주식회사 Camera Module, Electronic Device including Camera Module
JP2020060602A (en) * 2018-10-04 2020-04-16 キヤノン株式会社 Focus adjustment device, control method thereof, and program

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006003803A (en) * 2004-06-21 2006-01-05 Olympus Corp Device for obtaining focusing information and method for obtaining focusing information
JP2006145632A (en) * 2004-11-16 2006-06-08 Pentax Corp Multipoint automatic focusing apparatus and camera equipped with the apparatus
JP2007139893A (en) * 2005-11-15 2007-06-07 Olympus Corp Focusing detection device
JP4990234B2 (en) * 2008-07-07 2012-08-01 オリンパス株式会社 Ranging device, ranging method, ranging program or imaging device
JP2014206601A (en) * 2013-04-11 2014-10-30 キヤノン株式会社 Imaging apparatus and focus adjustment method
JP6292790B2 (en) * 2013-08-08 2018-03-14 キヤノン株式会社 Distance detection device, imaging device, and distance detection method
JP2015055635A (en) * 2013-09-10 2015-03-23 キヤノン株式会社 Imaging device and control method of the same
JP6300670B2 (en) * 2014-07-09 2018-03-28 キヤノン株式会社 Focus adjustment apparatus, focus adjustment method and program, and imaging apparatus

Also Published As

Publication number Publication date
JP2016218206A (en) 2016-12-22

Similar Documents

Publication Publication Date Title
US8027581B2 (en) Imaging apparatus, imaging apparatus control method, and computer program
US10638033B2 (en) Focus control apparatus, focus control method and storage medium
JP5950664B2 (en) Imaging apparatus and control method thereof
JP6151867B2 (en) Imaging device, imaging device body, and lens barrel
JP2014056032A (en) Imaging apparatus
JP2009192774A (en) Focus adjustment device and imaging device
US10477101B2 (en) Focus detection apparatus, control method and storage medium
WO2007058099A1 (en) Imaging device
JP2016197202A (en) Focus adjustment device, control method and control program for the same, and imaging device
JP6300670B2 (en) Focus adjustment apparatus, focus adjustment method and program, and imaging apparatus
JP2019121860A (en) Image processing apparatus and control method therefor
US9906709B2 (en) Image pickup apparatus having image pickup element including a plurality of pixels, each pixel including a plurality of photodiodes corresponding to microlens, lens unit to be removably mounted on image pick up apparatus, and methods of controlling image pickup apparatus and lens unit
JP6381434B2 (en) FOCUS CONTROL DEVICE, OPTICAL DEVICE, AND FOCUS CONTROL METHOD
JP6429724B2 (en) Imaging apparatus and control method thereof
WO2016132566A1 (en) Automatic focusing device and automatic focus control device
JP6087714B2 (en) Imaging apparatus and control method thereof
JP6501536B2 (en) Imaging device, control method therefor, program, storage medium
JP2014206711A (en) Imaging apparatus, and control method therefor
JP6427027B2 (en) Focus detection apparatus, control method therefor, imaging apparatus, program, and storage medium
JP2016156950A (en) Automatic focus adjustment device and control method of the same
US9924089B2 (en) Image capturing apparatus, method of displaying image, and storage medium storing program
JP5871196B2 (en) Focus adjustment device and imaging device
JP6501512B2 (en) Focus control apparatus, focus control method and focus control program
JP5447549B2 (en) Focus adjustment device and imaging device
JP5447579B2 (en) Tracking device, focus adjustment device, and photographing device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20180328

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20180912

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20181030

R151 Written notification of patent or utility model registration

Ref document number: 6429724

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151