JP5984595B2 - Automatic focusing apparatus, control method therefor, and imaging apparatus - Google Patents

Automatic focusing apparatus, control method therefor, and imaging apparatus Download PDF

Info

Publication number
JP5984595B2
JP5984595B2 JP2012203539A JP2012203539A JP5984595B2 JP 5984595 B2 JP5984595 B2 JP 5984595B2 JP 2012203539 A JP2012203539 A JP 2012203539A JP 2012203539 A JP2012203539 A JP 2012203539A JP 5984595 B2 JP5984595 B2 JP 5984595B2
Authority
JP
Japan
Prior art keywords
scan
start position
focus
focus lens
evaluation value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2012203539A
Other languages
Japanese (ja)
Other versions
JP2014059400A5 (en
JP2014059400A (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 JP2012203539A priority Critical patent/JP5984595B2/en
Publication of JP2014059400A publication Critical patent/JP2014059400A/en
Publication of JP2014059400A5 publication Critical patent/JP2014059400A5/ja
Application granted granted Critical
Publication of JP5984595B2 publication Critical patent/JP5984595B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、自動合焦装置及びその制御方法に関する。また本発明は、自動合焦装置を備える撮像装置に関する。   The present invention relates to an automatic focusing device and a control method thereof. The present invention also relates to an imaging device including an automatic focusing device.

従来、電子スチルカメラなどでは、CCDなどの撮像素子から得られる輝度信号に基づいてフォーカスレンズ位置を動かすことで、被写体に焦点を合わせる自動合焦(AF)装置が用いられている。   2. Description of the Related Art Conventionally, an electronic still camera or the like uses an automatic focusing (AF) device that focuses on a subject by moving a focus lens position based on a luminance signal obtained from an image sensor such as a CCD.

自動合焦装置では、例えば、撮影モードごとに予め決められた、フォーカスレンズ駆動範囲(以下、スキャン範囲と呼ぶ)を有する。そして、スキャン範囲内でフォーカスレンズを駆動させている間に所定の周期でサンプリングした画像信号から算出した焦点評価値が最大となるフォーカスレンズ位置を、合焦位置として検出する(このフォーカスレンズ動作を以下、AFスキャンと呼ぶ)。   The automatic focusing device has, for example, a focus lens drive range (hereinafter referred to as a scan range) that is predetermined for each shooting mode. Then, the focus lens position at which the focus evaluation value calculated from the image signal sampled at a predetermined period while the focus lens is driven within the scan range is maximized is detected as the in-focus position (this focus lens operation is performed). Hereinafter referred to as AF scan).

AFスキャンを行う場合、まず所定のAFスキャン開始位置へフォーカスレンズを駆動する。AFスキャン開始位置は通常、スキャン範囲の一端である。AFスキャン開始位置で焦点評価値を取得したあと、所定の方向へフォーカスレンズの駆動を開始するが、AFスキャン開始位置へフォーカスレンズを駆動した直後は、図7に示すように、時間間隔StTの間、フォーカスレンズが振動している。そのため、フォーカスレンズの振動中にサンプリングした画像信号から算出した焦点評価値は、振動によるブレやピント変動によって、フォーカスレンズが振動していない状態でサンプリングした画像信号から算出した焦点評価値よりも低い値となってしまう。一方、その後実行されるAFスキャン動作では、フォーカスレンズを停止させないため、焦点評価値は上述したような停止時のレンズ振動を受けない。   When performing an AF scan, first, the focus lens is driven to a predetermined AF scan start position. The AF scan start position is usually one end of the scan range. After the focus evaluation value is acquired at the AF scan start position, the focus lens starts to be driven in a predetermined direction. Immediately after the focus lens is driven to the AF scan start position, as shown in FIG. During this time, the focus lens vibrates. Therefore, the focus evaluation value calculated from the image signal sampled during the vibration of the focus lens is lower than the focus evaluation value calculated from the image signal sampled in a state where the focus lens is not oscillating due to vibration and focus fluctuation due to vibration. Value. On the other hand, in the AF scan operation executed thereafter, since the focus lens is not stopped, the focus evaluation value does not receive the lens vibration at the time of stop as described above.

AFスキャン中、フォーカスレンズは動いてはいるが、等速駆動であればレンズ駆動による画像信号への影響は各レンズ位置でサンプリングしたそれぞれの画像信号に対してほぼ一律である。従って、各画像信号について取得した焦点評価値から算出した焦点評価値のピーク位置に対してレンズ駆動が与える影響は小さい。   Although the focus lens is moving during AF scanning, if the lens is driven at a constant speed, the influence of the lens drive on the image signal is almost uniform for each image signal sampled at each lens position. Therefore, the influence of lens driving on the peak position of the focus evaluation value calculated from the focus evaluation value acquired for each image signal is small.

このように、AFスキャン動作において取得する焦点評価値のうち、AFスキャン開始位置で取得した焦点評価値のみ、他のレンズ位置と異なったレンズ挙動中に取得した値となる。焦点評価値を取得するレンズ位置は離散的であるため、焦点評価値の補間曲線を用いて焦点評価値がピークとなるフォーカスレンズ位置を求めることが多い。AFスキャン開始位置で取得した焦点評価値がレンズ振動の影響を受けて本来の値と異なる場合、例えば図8に示すように、補間曲線の形状が影響を受け、焦点評価値のピーク位置が実際の合焦位置からずれてしまう。   As described above, among the focus evaluation values acquired in the AF scan operation, only the focus evaluation value acquired at the AF scan start position is a value acquired during lens behavior different from other lens positions. Since the lens position from which the focus evaluation value is acquired is discrete, the focus lens position at which the focus evaluation value reaches a peak is often obtained using an interpolation curve of the focus evaluation value. When the focus evaluation value acquired at the AF scan start position is different from the original value due to the influence of lens vibration, for example, as shown in FIG. 8, the shape of the interpolation curve is affected, and the peak position of the focus evaluation value is actually Will shift from the in-focus position.

また、図9に示すように、停止状態から所定の速度Vsでのフォーカスレンズの駆動を開始した直後(駆動開始0から時間AcTまでの間)は加速している状態であり、その間は所定の速度Vsよりも遅い速度(例えばVf)となる。AFスキャン中のフォーカスレンズの速度が異なると、レンズ駆動による、サンプリングした画像信号への影響が異なる。所定のフォーカスレンズ速度Vsで駆動中にサンプリングした焦点評価値は、例えば図10に示すように、Vsよりも遅いフォーカスレンズ速度Vfで駆動中にサンプリングした焦点評価値よりも低い値となる。これは焦点評価値が高周波成分に依存し、またフォーカスレンズ速度が速い方が、レンズ駆動によるローパス効果が高くなるためである。   Further, as shown in FIG. 9, immediately after the focus lens is started to be driven at a predetermined speed Vs from the stop state (between the start of driving 0 and time AcT), the state is accelerating. The speed is slower than the speed Vs (for example, Vf). When the speed of the focus lens during AF scanning is different, the influence on the sampled image signal due to lens driving is different. For example, as shown in FIG. 10, the focus evaluation value sampled during driving at a predetermined focus lens speed Vs is lower than the focus evaluation value sampled during driving at a focus lens speed Vf slower than Vs. This is because the focus evaluation value depends on the high-frequency component, and the faster the focus lens speed, the higher the low-pass effect due to lens driving.

AFスキャン中の速度がレンズ位置によって異なると、レンズ駆動が焦点評価値に与える影響が一律とならない。そのため、所定のフォーカスレンズ速度とは異なる速度でフォーカスレンズが移動中に得られた焦点評価値を補間演算に用いてピーク位置を求めると、図10に示すように、実際の合焦位置とずれてしまう。なお、図10では、図8と同様に、最初の焦点評価値はレンズ振動の影響を受けて本来の値と異なっている。   If the speed during AF scanning varies depending on the lens position, the influence of lens driving on the focus evaluation value is not uniform. Therefore, when the peak position is obtained by using the focus evaluation value obtained while the focus lens is moving at a speed different from the predetermined focus lens speed for the interpolation calculation, as shown in FIG. End up. In FIG. 10, as in FIG. 8, the initial focus evaluation value differs from the original value due to the influence of lens vibration.

特許文献1では、クイックリターン方式のミラーを採用するカメラにおいて、ミラーバウンドによるフォーカスレンズの振動が収まるまでAF動作の開始を待つようにして、フォーカスレンズの振動によるAF精度の低下を防いでいる。   In Patent Document 1, in a camera that employs a quick return type mirror, the start of the AF operation is waited until the vibration of the focus lens due to the mirror bounces, thereby preventing a decrease in AF accuracy due to the vibration of the focus lens.

特開2010−128273号公報JP 2010-128273 A

しかし、特許文献1の方法では、フォーカスレンズの振動が収まるまでAF動作を開始しない。そのため、特許文献1の方法を適用して、上述したAFスキャン開始位置へフォーカスレンズを駆動した後の振動が収まるまでAFスキャンの開始を待つようにすると、待ち時間の分だけAF時間が長くなってしまうという問題がある。また、特許文献1では、フォーカスレンズの駆動速度の差異が焦点評価値に与える影響については何ら考慮されていない。   However, in the method of Patent Document 1, the AF operation is not started until the vibration of the focus lens is settled. Therefore, if the method of Patent Document 1 is applied to wait for the start of AF scan until the vibration after driving the focus lens to the above-described AF scan start position is settled, the AF time becomes longer by the waiting time. There is a problem that it ends up. In Patent Document 1, no consideration is given to the influence of the difference in driving speed of the focus lens on the focus evaluation value.

本発明はこのような従来技術の課題に鑑みなされたもので、AF精度とAF動作速度の少なくとも一方を改善することが可能な自動合焦装置および制御方法ならびに撮像装置を提供することを目的とする。   The present invention has been made in view of the above-described problems of the prior art, and an object thereof is to provide an automatic focusing device, a control method, and an imaging device capable of improving at least one of AF accuracy and AF operation speed. To do.

上述の目的は、AFスキャンの開始位置からフォーカスレンズを駆動し、異なるフォーカスレンズ位置で撮像された画像データに基づく焦点評価値から焦点評価値のピーク位置を算出する自動合焦装置であって、AFスキャンの開始位置を、予め定められた初期スキャン範囲の開始位置よりも外側の位置であって、フォーカスレンズがAFスキャンの開始位置から初期スキャン範囲の開始位置に至るまでに少なくとも1つの焦点評価値が算出される位置に設定する設定手段と、フォーカスレンズがAFスキャンの開始位置に駆動されるとAFスキャンを開始する制御手段と、AFスキャンが終了するまでの間に得られた焦点評価値のうち、最初に算出された焦点評価値を用いずに焦点評価値のピーク位置を算出するピーク算出手段と、を有することを特徴とする自動合焦装置によって達成される。 The above-described object is an automatic focusing device that drives a focus lens from an AF scan start position and calculates a peak position of a focus evaluation value from a focus evaluation value based on image data captured at different focus lens positions. The start position of the AF scan is located outside the start position of the predetermined initial scan range, and at least one focus evaluation is performed until the focus lens reaches the start position of the initial scan range from the start position of the AF scan. setting means for setting a position value is calculated, when the focus lens is Ru is driven to the start position of the AF scan and control means for starting the AF scan, the focus evaluation values obtained until AF scanning is completed And a peak calculation means for calculating a peak position of the focus evaluation value without using the focus evaluation value calculated first. It is achieved by an automatic focusing device, characterized in that.

このような構成により、本発明によれば、AF精度とAF動作速度の少なくとも一方を改善することが可能となる。   With such a configuration, according to the present invention, it is possible to improve at least one of AF accuracy and AF operation speed.

本発明の実施形態に係る自動合焦装置を適用した撮像装置の一例としてのデジタルカメラの機能構成例を示すブロック図1 is a block diagram showing a functional configuration example of a digital camera as an example of an imaging apparatus to which an automatic focusing device according to an embodiment of the present invention is applied. 本発明の実施形態に係るデジタルカメラ100における、SW1 119およびSW2 120の状態とAE処理、AF動作、撮影動作との関係を示すフローチャートThe flowchart which shows the relationship between the state of SW1 119 and SW2 120, AE process, AF operation | movement, and imaging | photography operation | movement in the digital camera 100 which concerns on embodiment of this invention. 図2におけるS203のAF動作の詳細を説明するフローチャートFlowchart for explaining the details of the AF operation in S203 in FIG. 図3のS303で行うAFスキャン開始位置StartPosの算出処理の詳細を説明するフローチャートFlowchart for explaining the details of the AF scan start position StartPos calculation process performed in S303 of FIG. 本発明の実施形態におけるAF動作の具体例を模式的に示す図である。It is a figure which shows typically the specific example of AF operation | movement in embodiment of this invention. 図3におけるS314の焦点評価値のピーク位置算出動作の詳細を説明するフローチャートFIG. 3 is a flowchart for explaining details of the focus evaluation value peak position calculating operation in S314 in FIG. AFスキャン開始位置へのフォーカスレンズ駆動直後のレンズ振動状態を説明する図The figure explaining the lens vibration state immediately after driving the focus lens to the AF scan start position フォーカスレンズの振動が焦点評価値に与える影響を説明する図The figure explaining the influence which the vibration of the focus lens gives to the focus evaluation value AFスキャン駆動開始直後のフォーカスレンズの速度変化の例を示す図The figure which shows the example of the speed change of the focus lens immediately after AF scan drive start AFスキャン駆動開始直後のフォーカスレンズの速度変化が焦点評価値に与える影響を説明する図The figure explaining the influence which the speed change of the focus lens immediately after AF scan drive starts has on a focus evaluation value

以下、添付図面を参照して、本発明の例示的な実施形態について詳細に説明する。図1は本発明の実施形態に係る自動合焦装置を適用した撮像装置の一例としてのデジタルカメラの機能構成例を示すブロック図である。なお、本発明に係る自動合焦装置は、デジタルカメラやデジタルビデオカメラのような撮像装置はもとより、撮像装置を内蔵もしくは接続可能な任意の装置に適用可能である。このような装置には、携帯電話機、コンピュータ、ゲーム機、タブレット端末、家電製品、車両など様々なものが含まれる。
なお、自動合焦装置にはフォーカスレンズの駆動を制御する機能があれば足り、フォーカスレンズやその駆動機構は含まれなくてよい。
Hereinafter, exemplary embodiments of the present invention will be described in detail with reference to the accompanying drawings. FIG. 1 is a block diagram illustrating a functional configuration example of a digital camera as an example of an imaging apparatus to which an automatic focusing apparatus according to an embodiment of the present invention is applied. The automatic focusing device according to the present invention can be applied not only to an imaging device such as a digital camera or a digital video camera, but also to any device in which the imaging device can be incorporated or connected. Such devices include various devices such as mobile phones, computers, game machines, tablet terminals, home appliances, and vehicles.
Note that the automatic focusing device only needs to have a function of controlling the driving of the focus lens, and the focus lens and its driving mechanism need not be included.

デジタルカメラ100は、ズーム機構を含む撮影レンズ101と、光量を制御する絞り及びシャッター102、撮影レンズ101を撮像素子107の撮像面に合焦させるためのフォーカスレンズ104、フォーカスレンズ104を駆動するモータ105を有する。撮像素子107は、たとえばCCDまたはCMOSイメージセンサであり、被写体像を画素単位の電気信号に変換する。A/D変換部108は、撮像素子107の出力信号に対してノイズ除去を適用したり、非線形増幅処理を適用したりした後、デジタル信号に変換する。   The digital camera 100 includes a photographic lens 101 including a zoom mechanism, a diaphragm and shutter 102 for controlling the amount of light, a focus lens 104 for focusing the photographic lens 101 on the imaging surface of the image sensor 107, and a motor for driving the focus lens 104. 105. The image sensor 107 is, for example, a CCD or CMOS image sensor, and converts a subject image into an electrical signal in units of pixels. The A / D conversion unit 108 applies noise removal to the output signal of the image sensor 107 or applies nonlinear amplification processing, and then converts the signal into a digital signal.

AE処理部103は、システム制御部113の制御に従って絞り及びシャッター102の動作を制御する。AF処理部106は、システム制御部113の制御に従ってモータ105を制御し、フォーカスレンズ104を駆動する。また、フォーカスレンズ104の位置を検出し、システム制御部113に通知する。画像処理部109は、A/D変換部108の出力するデジタル信号に対して色補間処理、ホワイトバランス調整処理などの画像処理を適用して画像データを生成する。   The AE processing unit 103 controls the operation of the aperture and shutter 102 according to the control of the system control unit 113. The AF processing unit 106 controls the motor 105 according to the control of the system control unit 113 and drives the focus lens 104. Further, the position of the focus lens 104 is detected and notified to the system control unit 113. The image processing unit 109 applies image processing such as color interpolation processing and white balance adjustment processing to the digital signal output from the A / D conversion unit 108 to generate image data.

フォーマット変換部110は、RGB形式の画像データをYCrCr形式に変換する。
DRAM111は高速な内蔵メモリであり、一時的な画像記憶手段としての高速バッファとして、あるいは画像の圧縮伸張における作業用メモリなどに使用される。
The format conversion unit 110 converts image data in RGB format into YCrCr format.
The DRAM 111 is a high-speed built-in memory, and is used as a high-speed buffer as temporary image storage means or a working memory for image compression / decompression.

画像記録部112はメモリーカードなどの記録媒体とそのインターフェースからなり、画像データを所定のファイルシステムに従って記録する。システム制御部113は、例えばCPUやMPU等のプログラマブルプロセッサであり、予め記憶されたプログラムを実行することにより、後述する自動合焦制御を始めとしたデジタルカメラ100の動作全体を制御する。画像表示用メモリ(以下VRAM)114は、表示用の画像データを記憶するメモリである。画像表示部115は、画像表示の他、操作補助のための表示やカメラ状態の表示の他、撮影時には撮影画面と、焦点検出領域を表す指標を表示する。   The image recording unit 112 includes a recording medium such as a memory card and its interface, and records image data according to a predetermined file system. The system control unit 113 is a programmable processor such as a CPU or MPU, and controls the overall operation of the digital camera 100 including automatic focusing control described later by executing a program stored in advance. An image display memory (hereinafter referred to as VRAM) 114 is a memory for storing image data for display. In addition to image display, the image display unit 115 displays a shooting screen and an index representing a focus detection area at the time of shooting, in addition to display for operation assistance and camera status.

操作部116はスイッチ、ボタン、タッチパネルなど、デジタルカメラ100に外部から指示を与えるための入力デバイス群である。操作部116には、例えば次のようなものが含まれる。撮像装置の撮影機能や画像再生時の設定などの各種設定を行うメニュースイッチ、撮影レンズのズーム動作を指示するズームレバー、撮影モードと再生モードの動作モード切換えスイッチ。撮影モードスイッチ117は、マクロモード、遠景モード、スポーツモードなど、デジタルカメラ100が有する撮影モードを指定するために用いられる。本実施形態のデジタルカメラ100は、撮影モードに応じて焦点検出する距離範囲やAF動作などが変更されてもよい。   The operation unit 116 is an input device group for giving instructions to the digital camera 100 from the outside, such as a switch, a button, and a touch panel. The operation unit 116 includes the following, for example. A menu switch that performs various settings such as the shooting function of the imaging device and settings for image playback, a zoom lever that instructs the zoom operation of the shooting lens, and an operation mode switch between the shooting mode and the playback mode. The shooting mode switch 117 is used to designate a shooting mode that the digital camera 100 has, such as a macro mode, a distant view mode, and a sports mode. In the digital camera 100 of the present embodiment, the distance range for focus detection, the AF operation, and the like may be changed according to the shooting mode.

メインスイッチ118は、デジタルカメラ100に電源を投入したり電源を切断するために用いられる。SW1 119およびSW2 120は例えばレリーズスイッチの押下状態によってONするスイッチである。例えばSW1 119はレリーズスイッチの半押し状態でONし、SW2 120はレリーズスイッチの全押し状態でONする。SW1 119のONは、AFやAE等の撮影スタンバイ動作の開始指示であり、SW2 120のONは撮影指示である。なお、SW1 119およびSW2 120がONする条件は、レリーズボタンの押下状態に限らず、操作部116に含まれる入力デバイスの、撮影スタンバイ動作の開始を指示するための操作、撮影開始を指示するための操作であってよい。   The main switch 118 is used to turn on or turn off the digital camera 100. SW1 119 and SW2 120 are switches that are turned on when the release switch is pressed, for example. For example, SW1 119 is turned on when the release switch is half-pressed, and SW2 120 is turned on when the release switch is fully pressed. The ON of SW1 119 is an instruction to start a shooting standby operation such as AF or AE, and the ON of SW2 120 is a shooting instruction. The conditions for turning on SW1 119 and SW2 120 are not limited to the state where the release button is pressed, but the operation for instructing the start of the shooting standby operation of the input device included in the operation unit 116 and the start of shooting are instructed. It may be an operation.

(デジタルカメラ100の動作概要)
図2は、デジタルカメラ100における、SW1 119およびSW2 120の状態とAE処理、AF動作、撮影動作との関係を示すフローチャートである。ここでは、電源が投入されると、撮像素子107によって動画撮影を開始し、撮影した動画を画像表示部115に表示することで、画像表示部115を電子ビューファインダーとして機能させるものとする。また、動画撮影は撮影動作が開始されるまで、所定のフレームレートで継続されるものとする。
(Operation overview of the digital camera 100)
FIG. 2 is a flowchart showing the relationship between the state of SW1 119 and SW2 120 and the AE processing, AF operation, and photographing operation in the digital camera 100. Here, when the power is turned on, moving image shooting is started by the image sensor 107, and the shot moving image is displayed on the image display unit 115 so that the image display unit 115 functions as an electronic viewfinder. The moving image shooting is continued at a predetermined frame rate until the shooting operation is started.

まず、S201でAE処理部103が画像処理部109の出力から得られる被写体輝度等に基づいて、露出条件を予め設定されたプログラム線図などに従って決定するAE処理を行う。S202でシステム制御部113はSW1 119の状態を調べ、ONであればS203へ、そうでなければS201へ処理を進める。S203でシステム制御部113は、後述するAF動作を行う。ここで、AF動作中の露出条件(シャッター速度、絞り、感度)は、直前のS201のAE処理で決定する。S204でシステム制御部113は、SW1 119の状態を調べ、ONであればS205へ、そうでなければS201へ処理を進める。S205でシステム制御部113は、SW2 120の状態を調べ、ONであればS206へ、そうでなければS204へ処理を進める。S206でシステム制御部113は、撮影動作を行い、S201へ処理を進める。   First, in S201, the AE processing unit 103 performs AE processing for determining an exposure condition according to a preset program diagram or the like based on subject brightness obtained from the output of the image processing unit 109. In step S202, the system control unit 113 checks the state of the SW1 119. If ON, the process proceeds to step S203. If not, the process proceeds to step S201. In S203, the system control unit 113 performs an AF operation described later. Here, the exposure conditions (shutter speed, aperture, sensitivity) during the AF operation are determined by the AE process in S201 immediately before. In step S204, the system control unit 113 checks the state of the SW1 119. If it is ON, the process proceeds to step S205. If not, the process proceeds to step S201. In step S205, the system control unit 113 checks the state of the SW2 120. If ON, the process proceeds to step S206. If not, the process proceeds to step S204. In step S206, the system control unit 113 performs a shooting operation and advances the process to step S201.

(AF動作の全体)
図3は、図2におけるS203のAF動作の詳細を説明するフローチャートである。
まず、S301でシステム制御部113は、画面内の所定の領域に焦点検出領域を設定する。焦点検出領域は例えば予め設定された領域に設定したり、人物の顔など特定の被写体に対応する領域に設定したりすることができる。
(Overall AF operation)
FIG. 3 is a flowchart for explaining the details of the AF operation in S203 in FIG.
First, in S301, the system control unit 113 sets a focus detection area in a predetermined area in the screen. For example, the focus detection area can be set to a predetermined area, or can be set to an area corresponding to a specific subject such as a human face.

S302でシステム制御部113は、撮影モードスイッチ117で設定されている撮影モードや、撮影レンズ101の焦点距離(画角)に応じた初期スキャン範囲を設定する。
S303でシステム制御部113は、後述するAFスキャン開始位置StartPosを算出する。
S304でシステム制御部113は、AF処理部106を通じてモータ105を動作させ、フォーカスレンズ104をS303で算出したAFスキャン開始位置StartPosへ駆動する。
In step S <b> 302, the system control unit 113 sets an initial scan range according to the shooting mode set by the shooting mode switch 117 and the focal length (field angle) of the shooting lens 101.
In step S303, the system control unit 113 calculates an AF scan start position StartPos described later.
In step S304, the system control unit 113 operates the motor 105 through the AF processing unit 106 to drive the focus lens 104 to the AF scan start position StartPos calculated in step S303.

S305でシステム制御部113は、S303のAFスキャン開始位置StartPos算出処理において設定されるレンズ駆動待ちFlg(フラグ)がTRUEかどうかを調べ、TRUEであればS306へ、そうでなければS307へ処理を進める。
S306でシステム制御部113は、フォーカスレンズ104を所定時間だけ停止させる。これは、S304においてフォーカスレンズ104をAFスキャン開始位置StartPosへ駆動し、停止させた後、フォーカスレンズの振動が後述するS307で取得する焦点評価値に影響を与えてしまうのを防ぐための処理である。ここで、所定時間は、例えば予め測定した、フォーカスレンズ104の振動幅が所定範囲内に収まるまでの時間であってよい。または、フォーカスレンズ104の位置がAFスキャン開始位置StartPosから所定の範囲内に所定時間収まっていることが判断できるまでの時間としてもよい。
In step S305, the system control unit 113 checks whether the lens driving wait Flg (flag) set in the AF scan start position StartPos calculation process in step S303 is TRUE. If TRUE, the system control unit 113 proceeds to step S306. If not, the process proceeds to step S307. Proceed.
In step S306, the system control unit 113 stops the focus lens 104 for a predetermined time. This is a process for preventing the focus lens vibration from affecting the focus evaluation value acquired in S307 described later after the focus lens 104 is driven to the AF scan start position StartPos and stopped in S304. is there. Here, the predetermined time may be, for example, a time measured in advance until the vibration width of the focus lens 104 falls within a predetermined range. Alternatively, it may be a time until it can be determined that the position of the focus lens 104 is within a predetermined range from the AF scan start position StartPos for a predetermined time.

S307でシステム制御部113は、S301で設定した焦点検出領域内の画像データから、焦点評価値を、フォーカスレンズ104をAFスキャン開始位置StartPosで停止させた状態で取得する。焦点評価値の取得方法に特に制限は無く、公知の方法から適切なものを用いることができる。   In step S307, the system control unit 113 acquires a focus evaluation value from the image data in the focus detection area set in step S301 in a state where the focus lens 104 is stopped at the AF scan start position StartPos. There is no restriction | limiting in particular in the acquisition method of a focus evaluation value, A suitable thing can be used from a well-known method.

S308でシステム制御部113は、AF処理部106を通じて現在のフォーカスレンズ104の位置を取得する。
S309でシステム制御部113は、予め設定した所定の速度Vsで所定の方向にフォーカスレンズ104の駆動を行うようAF処理部106に指示する。AF処理部106は指示された方向および速度でフォーカスレンズ104を駆動するようモータ105を制御する。
In step S <b> 308, the system control unit 113 acquires the current position of the focus lens 104 through the AF processing unit 106.
In step S309, the system control unit 113 instructs the AF processing unit 106 to drive the focus lens 104 in a predetermined direction at a predetermined speed Vs set in advance. The AF processing unit 106 controls the motor 105 to drive the focus lens 104 at the instructed direction and speed.

S310でシステム制御部113は、S301で設定した焦点検出領域内の画像データから焦点評価値を取得する。
S311でシステム制御部113は、AF処理部106を通じて現在のフォーカスレンズ104の位置を取得する。
S312でシステム制御部113は、S311で取得した現在のフォーカスレンズ104の位置が、S302で設定したAFスキャン範囲内にあるかどうかを調べ、AFスキャン範囲内にあればS310へ、そうでなければS313へ処理を進める。
In step S310, the system control unit 113 acquires a focus evaluation value from the image data in the focus detection area set in step S301.
In step S <b> 311, the system control unit 113 acquires the current position of the focus lens 104 through the AF processing unit 106.
In step S312, the system control unit 113 checks whether the current position of the focus lens 104 acquired in step S311 is within the AF scan range set in step S302. If it is within the AF scan range, the process proceeds to step S310. The process proceeds to S313.

ここで、S310〜S312の一連の動作は、現在のフレームレートにおける1フレーム分の時間で行われるものとする。またシステム制御部113は、S307で取得した焦点評価値とS308で取得したレンズ位置、S310で取得した焦点評価値とS311で取得したレンズ位置、をそれぞれ対応付け、後述するS314の焦点評価値のピーク位置算出で用いる。例えばシステム制御部113は、i番目(iは0以上の整数)に取得した焦点評価値、レンズ位置をそれぞれafVal[i]、Pos[i]として、取得した焦点評価値の総数DataCntに等しい数、例えばDRAM111に格納しておく。   Here, it is assumed that the series of operations from S310 to S312 is performed in a time corresponding to one frame at the current frame rate. In addition, the system control unit 113 associates the focus evaluation value acquired in S307 with the lens position acquired in S308, the focus evaluation value acquired in S310, and the lens position acquired in S311. Used in peak position calculation. For example, the system control unit 113 sets the focus evaluation value and lens position acquired i-th (i is an integer of 0 or more) as the afVal [i] and Pos [i], respectively, and is equal to the total number of acquired focus evaluation values DataCnt. For example, it is stored in the DRAM 111.

なお、AF動作中、フォーカスレンズ104は連続して移動している。そのため、システム制御部113は、対応するフレームを撮影した露光時間の中心のタイミングでのフォーカスレンズ104の位置を算出して焦点評価値と対応付ける。   During the AF operation, the focus lens 104 moves continuously. Therefore, the system control unit 113 calculates the position of the focus lens 104 at the timing of the center of the exposure time when the corresponding frame is captured and associates it with the focus evaluation value.

S313でシステム制御部113は、AF処理部106を通じてフォーカスレンズ104の駆動を停止する。
S314でピーク算出手段としてのシステム制御部113は、S307およびS310で取得した焦点評価値と、対応するフォーカスレンズ104の位置(S308、S311で取得)を用いて、焦点評価値のピーク位置を算出する。焦点評価値のピーク位置算出の詳細は後述する。
S315でシステム制御部113は合焦判定を行う。
S316でシステム制御部113は、S314で求めた焦点評価値のピーク位置に対応するレンズ位置へフォーカスレンズ104を駆動するようAF処理部106に指示し、AF動作を終了する。
In step S <b> 313, the system control unit 113 stops driving the focus lens 104 through the AF processing unit 106.
In step S314, the system control unit 113 serving as a peak calculation unit calculates the peak position of the focus evaluation value using the focus evaluation value acquired in steps S307 and S310 and the position of the corresponding focus lens 104 (obtained in steps S308 and S311). To do. Details of calculation of the peak position of the focus evaluation value will be described later.
In step S315, the system control unit 113 performs in-focus determination.
In step S316, the system control unit 113 instructs the AF processing unit 106 to drive the focus lens 104 to the lens position corresponding to the peak position of the focus evaluation value obtained in step S314, and ends the AF operation.

(AFスキャン開始位置StartPosの算出処理)
図4は、図3のS303で行うAFスキャン開始位置StartPosの算出処理の詳細を説明するフローチャートである。
ここでは、AFスキャン開始位置StartPosが現在のフォーカスレンズ位置よりも遠側方向で、かつS309におけるAFスキャン時のレンズ駆動方向が近側方向である場合を例として、AF動作について説明する。
(Calculation process of AF scan start position StartPos)
FIG. 4 is a flowchart for explaining the details of the AF scan start position StartPos calculation process performed in S303 of FIG.
Here, the AF operation will be described by taking as an example a case where the AF scan start position StartPos is in the far side direction from the current focus lens position and the lens driving direction during AF scan in S309 is the near side direction.

まず、S401でシステム制御部113は、S302で設定した初期スキャン範囲の遠端レンズ位置PosFと近端レンズ位置PosNを取得する。これらのレンズ位置は、初期スキャン範囲が固定であれば予め記憶しておくことができる。また、初期スキャン範囲が例えば現在のフォーカスレンズ位置に対する相対範囲であれば、現在のフォーカスレンズ位置から算出することができる。もちろん、他の方法で取得してもよい。   First, in step S401, the system control unit 113 acquires the far end lens position PosF and the near end lens position PosN in the initial scan range set in step S302. These lens positions can be stored in advance if the initial scan range is fixed. If the initial scan range is a relative range with respect to the current focus lens position, for example, it can be calculated from the current focus lens position. Of course, you may acquire by another method.

S402でシステム制御部113は、S307で取得する焦点評価値と、その後S310で順次取得する焦点評価値のうち、ピーク位置算出に用いない焦点評価値の数(削除するスキャン点数)MaxDelPointを取得する。ここで、削除するスキャン点数MaxDelPointは、上述したフォーカスレンズ104の駆動停止後の振動や所定の駆動速度に満たない駆動速度の影響を受ける期間の長さと、サンプリング周期とから予め設定しておくことができる。   In S402, the system control unit 113 acquires MaxDelPoint, which is the number of focus evaluation values not used for peak position calculation (the number of scan points to be deleted) among the focus evaluation values acquired in S307 and the focus evaluation values sequentially acquired in S310. . Here, the number of scan points MaxDelPoint to be deleted is set in advance from the length of the period affected by the vibration after the driving of the focus lens 104 is stopped, the driving speed less than the predetermined driving speed, and the sampling cycle. Can do.

例えば、所定の駆動速度に満たない駆動速度の影響を受ける焦点評価値の数(スキャン点数)は、図9のAcTと焦点評価値のサンプリング周期とを用いて予め算出して設定しておく。あるいは、AFスキャン中に検出したレンズ位置よりレンズ加速度もしくはレンズ速度を算出し、レンズ加速度が0近傍に達するまでの期間や、レンズ速度が所定速度に達するまでの期間と、サンプリング周期とを用いても良い。なお、フォーカスレンズ104の駆動停止後の振動の影響を受ける焦点評価値の数は、レンズ駆動待ちFlg=TRUEの場合は0であり、レンズ駆動待ちFlg=FALSEの場合は1である。従って、S402を最初に処理する場合には、レンズ駆動待ちFlgの初期値に応じてなお、フォーカスレンズ104の駆動停止後の振動の影響を受ける焦点評価値の数を決定する。システム制御部113は、削除するスキャン点数MaxDelPointを、所定の駆動速度に満たない駆動速度の影響を受ける焦点評価値の数と、駆動停止後の振動の影響を受ける焦点評価値の数の合計として設定することができる。   For example, the number of focus evaluation values (the number of scan points) affected by a drive speed that does not satisfy a predetermined drive speed is calculated and set in advance using AcT in FIG. 9 and the focus evaluation value sampling period. Alternatively, the lens acceleration or lens speed is calculated from the lens position detected during the AF scan, and the period until the lens acceleration reaches near zero, the period until the lens speed reaches a predetermined speed, and the sampling period are used. Also good. Note that the number of focus evaluation values affected by the vibration after the driving of the focus lens 104 is stopped is 0 when the lens driving wait Flg = TRUE, and is 1 when the lens driving wait Flg = FALSE. Therefore, when processing S402 for the first time, the number of focus evaluation values that are affected by the vibration after the driving of the focus lens 104 is stopped is determined according to the initial value of the lens driving wait Flg. The system control unit 113 sets the number of scan points MaxDelPoint to be deleted as the sum of the number of focus evaluation values that are affected by the drive speed that is less than the predetermined drive speed and the number of focus evaluation values that are affected by the vibration after the drive is stopped. Can be set.

S403でシステム制御部113は、AFスキャン間隔(焦点評価値を求めるフォーカスレンズ位置の間隔)ScanIntを例えば内蔵する不揮発性メモリなどから取得する。
S404でシステム制御部113は、フォーカスレンズ104の駆動可能範囲の端であるFarLimitPosを例えば内蔵する不揮発性メモリなどから取得する。
S405でシステム制御部113は、AFスキャン開始位置StartPosに、初期スキャン範囲の遠端レンズ位置PosFを設定する。
S406でシステム制御部113は、レンズ振動待ちFlgをTRUEに初期化する。
S407でシステム制御部113は、実際に削除するスキャン点数DelPointを0に初期化する。
In step S403, the system control unit 113 acquires an AF scan interval (interval of focus lens positions for obtaining focus evaluation values) ScanInt from, for example, a built-in nonvolatile memory.
In step S <b> 404, the system control unit 113 acquires FarLimitPos that is the end of the driveable range of the focus lens 104 from, for example, a built-in nonvolatile memory.
In step S405, the system control unit 113 sets the far-end lens position PosF in the initial scan range as the AF scan start position StartPos.
In S406, the system control unit 113 initializes the lens vibration waiting Flg to TRUE.
In step S407, the system control unit 113 initializes the number of scan points DelPoint to be actually deleted to 0.

S408でシステム制御部113は、実削除スキャン点数DelPointが削除スキャン点数MaxDelPoint以上かどうかを調べ、そうであればS412へ、そうでなければS409へ処理を進める。
S409でシステム制御部113は、StartPos−ScanInt×(DelPoint+1)がFarLimitPos以上かどうかを調べ、そうであればS410へ、そうでなければS413へ処理を進める。
S410でシステム制御部113は、実削除スキャン点数DelPointをインクリメント(1増加)させる。
S411でシステム制御部113は、スキャン開始位置StartPosに、StartPos−ScanInt×DelPointを設定し、処理をS408に進める。
In step S408, the system control unit 113 checks whether the actual deletion scan point number DelPoint is greater than or equal to the deletion scan point number MaxDelPoint. If so, the process advances to step S412; otherwise, the process advances to step S409.
In step S409, the system control unit 113 checks whether StartPos−ScanInt × (DelPoint + 1) is equal to or greater than FarLimitPos. If so, the process proceeds to step S410. If not, the process proceeds to step S413.
In S410, the system control unit 113 increments (increases by 1) the actual deletion scan point DelPoint.
In step S411, the system control unit 113 sets StartPos−ScanInt × DelPoint as the scan start position StartPos, and the process proceeds to step S408.

実削除スキャン点数DelPointが削除スキャン点数MaxDelPoint以上の場合、S412でシステム制御部113は、レンズ振動待ちFlgをFALSEに設定する。
S413でシステム制御部113は、この時点で設定されているスキャン開始位置StartPosから、初期スキャン範囲の近端レンズ位置PosNまでの範囲をスキャン範囲として設定し、S304へ処理を進める。このように、フォーカスレンズの可動範囲を超えない範囲で、初期スキャン範囲の外側の位置であって、削除スキャン点数MaxDelPoint以下かつ最大の実削除スキャン点数DelPointとなるようにAFスキャンの開始位置を設定する。
If the actual deletion scan point DelPoint is equal to or larger than the deletion scan point MaxDelPoint, the system control unit 113 sets the lens vibration waiting Flg to FALSE in S412.
In S413, the system control unit 113 sets a range from the scan start position StartPos set at this time to the near end lens position PosN of the initial scan range as the scan range, and advances the process to S304. In this way, the AF scan start position is set so that it does not exceed the movable range of the focus lens, is outside the initial scan range, and is equal to or less than the maximum number of deleted scan points, DelPoint, below the maximum number of deleted scan points. To do.

図5に、削除スキャン点数MaxDelPoint=2の時の、(a)実削除スキャン点数DelPointが2の場合、(b)実削除スキャン点数DelPointが0の場合、のAF動作の例を模式的に示す。図5(a)に示すように、実削除スキャン点数≧削除スキャン点数となる場合、システム制御部113は、AFスキャン開始位置StartPosにフォーカスレンズ104を駆動した後、直ちにAFスキャンを開始する。   FIG. 5 schematically shows an example of the AF operation when the number of deleted scan points MaxDelPoint = 2, (a) when the actual deleted scan points DelPoint is 2, and (b) when the actual deleted scan points DelPoint is 0. . As shown in FIG. 5A, when the actual number of deleted scan points is equal to or greater than the number of deleted scan points, the system control unit 113 starts the AF scan immediately after driving the focus lens 104 to the AF scan start position StartPos.

ここで、「直ちに」とは、図7におけるStTの期間内にAFスキャンを開始することであり、
・フォーカスレンズ104の振動が収まるのを待たずに、
・フォーカスレンズ104の振動が収まる所定時間が経過する前に、
・フォーカスレンズ104がAFスキャン開始位置StartPosに達したことが検出されたことに応じて、
のいずれかを意味する。
なお、「AFスキャンの開始」とは、焦点評価値の算出開始およびフォーカスレンズ104の駆動(AFスキャン駆動)開始の少なくとも一方である。
そして、後述するように、最初に(S307で)得られた焦点評価値と、AFスキャン駆動開始後に最初に得られた2番目の焦点評価値は、ピーク位置算出に用いない。
Here, “immediately” means to start an AF scan within the period of StT in FIG.
-Without waiting for the vibration of the focus lens 104 to settle,
・ Before the predetermined time for the vibration of the focus lens 104 to settle,
In response to detecting that the focus lens 104 has reached the AF scan start position StartPos,
Means either.
“Start of AF scan” is at least one of the calculation start of the focus evaluation value and the drive of the focus lens 104 (AF scan drive).
As will be described later, the focus evaluation value obtained first (in S307) and the second focus evaluation value obtained first after the start of AF scan driving are not used for peak position calculation.

このように、本実施形態によれば、AFスキャン開始位置を、初期スキャン範囲の外側の位置であって、フォーカスレンズが初期スキャン範囲の開始位置に至るまでに少なくとも1つの焦点評価値が得られる位置に設定する。あるいは、フォーカスレンズの振動や加速中のレンズ挙動による影響を受ける焦点評価値が初期スキャン範囲で得られる焦点評価値に含まれることを抑制するようにスキャン範囲を広げる。これにより、フォーカスレンズの振動が収まるまで待つことなくAFスキャン動作を開始しても、振動の影響を受けた焦点評価値がピーク位置の算出に用いられることを抑制できる。そのため、AF動作に要する時間を削減することができるほか、ピーク位置の精度を向上させることができる。   Thus, according to this embodiment, the AF scan start position is a position outside the initial scan range, and at least one focus evaluation value is obtained before the focus lens reaches the start position of the initial scan range. Set to position. Alternatively, the scan range is widened so that the focus evaluation value affected by the vibration of the focus lens or the lens behavior during acceleration is not included in the focus evaluation value obtained in the initial scan range. Thereby, even if the AF scan operation is started without waiting until the vibration of the focus lens is settled, it is possible to suppress the focus evaluation value affected by the vibration from being used for calculating the peak position. Therefore, the time required for the AF operation can be reduced and the accuracy of the peak position can be improved.

一方、フォーカスレンズの駆動可能範囲の制約によってスキャン範囲を広げることができない場合は、レンズ振動待ちFlgをTRUEのままとして、S306において所定時間レンズ停止させる。これにより、レンズの振動が収まるまでの待ち時間の削減よりも、S307の焦点評価値にレンズの振動が影響を与えないようにすることを優先する。   On the other hand, if the scan range cannot be expanded due to restrictions on the drive range of the focus lens, the lens vibration wait Flg remains TRUE and the lens is stopped for a predetermined time in S306. Accordingly, priority is given to preventing the lens vibration from affecting the focus evaluation value in S307 rather than reducing the waiting time until the lens vibration is settled.

(ピーク位置算出動作)
図6は、図3におけるS314の焦点評価値のピーク位置算出動作の詳細を説明するフローチャートである。
まず、S601でシステム制御部113は、変数iを0に初期化する。
S602でシステム制御部113は、変数iがS303で決定した実削除スキャン点数DelPoint以上かどうかを調べ、そうであればS604へ、そうでなければS603へ処理を進める。
S603でシステム制御部113は、変数iをインクリメントし、処理をS604へ進める。
(Peak position calculation operation)
FIG. 6 is a flowchart for explaining the details of the focus position calculation operation of the focus evaluation value in S314 in FIG.
First, in step S601, the system control unit 113 initializes a variable i to 0.
In step S602, the system control unit 113 checks whether the variable i is greater than or equal to the actual deletion scan point DelPoint determined in step S303. If so, the process proceeds to step S604. If not, the process proceeds to step S603.
In step S603, the system control unit 113 increments the variable i and advances the process to step S604.

S604でシステム制御部113は、変数AFValue[i-DelPoint]に、焦点評価値afVal[i]を、変数FocusPos[i-DelPoint]に対応するレンズ位置Pos[i]をそれぞれ設定する。
S605でシステム制御部113は、変数iが(取得した焦点評価値の総数DataCnt)-1以上かどうかを調べ、そうであればS607へ、そうでなければS606へ処理を進める。
In S604, the system control unit 113 sets the focus evaluation value afVal [i] in the variable AFValue [i-DelPoint] and the lens position Pos [i] corresponding to the variable FocusPos [i-DelPoint].
In step S605, the system control unit 113 checks whether the variable i is equal to or greater than (the total number of acquired focus evaluation values DataCnt) −1. If so, the process advances to step S607; otherwise, the process advances to step S606.

S606でシステム制御部113は、変数iをインクリメントしてS605へ処理を進める。
S607でシステム制御部113は、AFValue[i]とFocusPos[i](i=0,...,DataCnt-DelPoint-1)を用いて焦点評価値のピーク位置を補間計算してS315へ処理を進める。
これにより、削除された焦点評価値をピーク位置算出に使用しないようにすることができる。
In step S606, the system control unit 113 increments the variable i and proceeds to step S605.
In S607, the system control unit 113 performs interpolation calculation of the peak position of the focus evaluation value using AFValue [i] and FocusPos [i] (i = 0,..., DataCnt-DelPoint-1), and the process proceeds to S315. Proceed.
Thereby, it is possible to prevent the deleted focus evaluation value from being used for peak position calculation.

なお、本実施形態の効果は、実削除スキャン点数DelPoint≧削除スキャン点数MaxDelPointとなる場合に最も大きくなるが、実削除スキャン点数DelPoint≧1であれば、AF時間の短縮とAF精度の向上効果は得ることができる。これは、初期に得られる焦点評価値ほどレンズの振動およびレンズ加速中の挙動の影響を大きく受けるからである。   The effect of the present embodiment is greatest when the actual deletion scan point number DelPoint ≧ the deletion scan point number MaxDelPoint. However, if the actual deletion scan point number DelPoint ≧ 1, the effect of shortening the AF time and improving the AF accuracy is as follows. Can be obtained. This is because the focus evaluation value obtained in the initial stage is greatly affected by the vibration of the lens and the behavior during lens acceleration.

本実施形態によれば、AFスキャン開始位置を、フォーカスレンズが初期スキャン範囲の開始位置に至るまでに少なくとも1つの焦点評価値が得られる位置に設定し、フォーカスレンズをAFスキャン開始位置に駆動後、直ちにAFスキャン動作を開始する。AFスキャン開始位置に駆動後、直ちにAFスキャン動作を開始するため、駆動後にフォーカスレンズの振動が収まるまで待つ場合よりもAF動作の時間短縮を実現でき、AF動作速度を改善できる。また、AFスキャン開始位置の設定により、AFスキャン開始位置に駆動直後のフォーカスレンズの振動や、AFスキャン時の駆動速度まで加速している際のレンズ挙動の影響を受ける焦点評価値が焦点評価値のピーク位置算出結果に与える影響を低減できる。その結果、AF精度を改善することができる。   According to the present embodiment, the AF scan start position is set to a position where at least one focus evaluation value is obtained before the focus lens reaches the start position of the initial scan range, and the focus lens is driven to the AF scan start position. Immediately, the AF scan operation is started. Since the AF scan operation is started immediately after driving to the AF scan start position, the AF operation time can be shortened and the AF operation speed can be improved as compared with the case where the focus lens vibration is settled after the drive. Also, the focus evaluation value is affected by the focus lens vibration immediately after driving to the AF scan start position and the lens behavior when accelerating to the driving speed at the time of AF scan by setting the AF scan start position. The influence on the peak position calculation result can be reduced. As a result, AF accuracy can be improved.

以上、本発明をその好適な実施形態に基づいて詳述してきたが、本発明はこれら特定の実施形態に限られるものではなく、この発明の要旨を逸脱しない範囲の様々な形態も本発明に含まれる。上述の実施形態の一部を適宜組み合わせてもよい。   Although the present invention has been described in detail based on preferred embodiments thereof, the present invention is not limited to these specific embodiments, and various forms within the scope of the present invention are also included in the present invention. included. A part of the above-described embodiments may be appropriately combined.

(その他の実施形態)
また、本発明は、以下の処理を実行することによっても実現される。即ち、上述した実施形態の機能を実現するソフトウェア(プログラム)を、ネットワーク又は各種記憶媒体を介してシステム或いは装置に供給し、そのシステム或いは装置のコンピュータ(またはCPUやMPU等)がプログラムを読み出して実行する処理である。
(Other embodiments)
The present invention can also be realized by executing the following processing. That is, software (program) that realizes the functions of the above-described embodiments is supplied to a system or apparatus via a network or various storage media, and a computer (or CPU, MPU, or the like) of the system or apparatus reads the program. It is a process to be executed.

Claims (11)

AFスキャンの開始位置からフォーカスレンズを駆動し、異なるフォーカスレンズ位置で撮像された画像データに基づく焦点評価値から前記焦点評価値のピーク位置を算出する自動合焦装置であって、
前記AFスキャンの開始位置を、予め定められた初期スキャン範囲の開始位置よりも外側の位置であって、前記フォーカスレンズが前記AFスキャンの開始位置から前記初期スキャン範囲の開始位置に至るまでに少なくとも1つの前記焦点評価値が算出される位置に設定する設定手段と、
前記フォーカスレンズが前記AFスキャンの開始位置に駆動されると前記AFスキャンを開始する制御手段と、
前記AFスキャンが終了するまでの間に得られた焦点評価値のうち、最初に算出された焦点評価値を用いずに前記焦点評価値のピーク位置を算出するピーク算出手段と、を有することを特徴とする自動合焦装置。
An automatic focusing device that drives a focus lens from an AF scan start position and calculates a peak position of the focus evaluation value from a focus evaluation value based on image data captured at different focus lens positions,
The start position of the AF scan is a position outside a start position of a predetermined initial scan range, and the focus lens is at least from the start position of the AF scan to the start position of the initial scan range. Setting means for setting a position at which one focus evaluation value is calculated;
And a control means for the focus lens starts the AF scan and Ru is driven to the start position of the AF scan,
Peak calculation means for calculating a peak position of the focus evaluation value without using the focus evaluation value calculated first among the focus evaluation values obtained until the AF scan ends. Features an automatic focusing device.
前記設定手段が、前記フォーカスレンズが前記AFスキャンの開始位置から前記初期スキャン範囲の開始位置に至るまでに予め定められた数の焦点評価値が算出される位置に前記AFスキャンの開始位置を設定することを特徴とする請求項1記載の自動合焦装置。   The setting means sets the start position of the AF scan to a position where a predetermined number of focus evaluation values are calculated from the start position of the AF scan to the start position of the initial scan range. The automatic focusing device according to claim 1, wherein: 前記予め定められた数が、前記フォーカスレンズが加速中に得られる焦点評価値の数に基づいて決定されることを特徴とする請求項2記載の自動合焦装置。   3. The automatic focusing apparatus according to claim 2, wherein the predetermined number is determined based on a number of focus evaluation values obtained during acceleration of the focus lens. 前記予め定められた数が、前記フォーカスレンズが停止した状態から、予め定めた駆動速度に達するまでの間に算出される前記焦点評価値の数に基づいて決定されることを特徴とする請求項2または3記載の自動合焦装置。 The predetermined number is determined based on the number of the focus evaluation values calculated from when the focus lens is stopped until reaching a predetermined driving speed. The automatic focusing device according to 2 or 3. 前記設定手段は、前記フォーカスレンズの駆動可能範囲を超えない範囲で前記AFスキャンの開始位置を設定することを特徴とする請求項1ないし4のいずれか1項に記載の自動合焦装置。   5. The automatic focusing apparatus according to claim 1, wherein the setting unit sets the start position of the AF scan within a range that does not exceed a driveable range of the focus lens. 6. 前記制御手段は、前記フォーカスレンズが前記AFスキャンの開始位置に駆動された後、前記フォーカスレンズの振動が収まるのを待たずに前記AFスキャンを開始することを特徴とする請求項1ないし5のいずれか1項に記載の自動合焦装置。   6. The control unit according to claim 1, wherein the control unit starts the AF scan without waiting for the vibration of the focus lens to settle after the focus lens is driven to the start position of the AF scan. The automatic focusing device according to any one of claims. 前記制御手段は、前記フォーカスレンズが前記AFスキャンの開始位置に駆動された後、前記フォーカスレンズの振動が収まる所定時間が経過する前に前記AFスキャンを開始することを特徴とする請求項1ないし5のいずれか1項に記載の自動合焦装置。   2. The control unit according to claim 1, wherein after the focus lens is driven to the start position of the AF scan, the AF scan is started before a predetermined period of time during which the vibration of the focus lens is settled. 6. The automatic focusing device according to any one of 5 above. 前記制御手段は、前記フォーカスレンズが前記AFスキャンの開始位置に達したことが検出されたことに応じて前記AFスキャンを開始することを特徴とする請求項1ないし5のいずれか1項に記載の自動合焦装置。   The said control means starts the said AF scan according to having detected that the said focus lens reached the start position of the said AF scan, The any one of Claim 1 thru | or 5 characterized by the above-mentioned. Automatic focusing device. 前記設定手段は、前記フォーカスレンズが前記AFスキャンの開始位置から前記初期スキャン範囲の開始位置に至るまでに少なくとも1つの前記焦点評価値が算出される位置に前記AFスキャンの開始位置を設定できない場合、前記初期スキャン範囲の開始位置に前記AFスキャンの開始位置を設定し、
前記制御手段は、前記フォーカスレンズが前記AFスキャンの開始位置に駆動された後、前記フォーカスレンズの振動が収まるのを待って前記AFスキャンを開始し、
前記ピーク算出手段は、前記最初に算出された焦点評価値を含む、前記AFスキャンが終了するまでの間に得られた焦点評価値を用いて前記焦点評価値のピーク位置を算出する、ことを特徴とする請求項1ないし8のいずれか1項に記載の自動合焦装置。
When the setting unit cannot set the start position of the AF scan to a position where at least one focus evaluation value is calculated from the start position of the AF scan to the start position of the initial scan range. , Set the start position of the AF scan to the start position of the initial scan range,
The control means starts the AF scan after the focus lens is driven to the AF scan start position and waits for the vibration of the focus lens to stop,
The peak calculation means calculates the peak position of the focus evaluation value using the focus evaluation value obtained until the AF scan is completed, including the first calculated focus evaluation value; The automatic focusing apparatus according to claim 1, wherein the automatic focusing apparatus is characterized.
請求項1ないし9のいずれか1項に記載の自動合焦装置を有し、前記ピーク算出手段が算出した前記焦点評価値のピーク位置に対応する位置に撮影レンズのフォーカスレンズを駆動する撮像装置。   An image pickup apparatus comprising the automatic focusing device according to claim 1 and driving a focus lens of a photographing lens to a position corresponding to a peak position of the focus evaluation value calculated by the peak calculation unit. . AFスキャンの開始位置からフォーカスレンズを駆動し、異なるフォーカスレンズ位置で撮像された画像データに基づく焦点評価値から前記焦点評価値のピーク位置を算出する自動合焦装置の制御方法であって、
設定手段が、前記AFスキャンの開始位置を、予め定められた初期スキャン範囲の開始位置よりも外側の位置であって、前記フォーカスレンズが前記AFスキャンの開始位置から前記初期スキャン範囲の開始位置に至るまでに少なくとも1つの前記焦点評価値が算出される位置に設定する設定ステップと、
制御手段が、前記フォーカスレンズが前記AFスキャンの開始位置に駆動されると前記AFスキャンを開始させる制御ステップと、
ピーク算出手段が、前記AFスキャンが終了するまでの間に得られた焦点評価値のうち、最初に算出された焦点評価値を用いずに前記焦点評価値のピーク位置を算出するピーク算出ステップと、を有することを特徴とする自動合焦装置の制御方法。
A method for controlling an automatic focusing device that drives a focus lens from an AF scan start position and calculates a peak position of the focus evaluation value from a focus evaluation value based on image data captured at different focus lens positions,
The setting means sets the start position of the AF scan to a position outside a predetermined start position of the initial scan range, and the focus lens moves from the start position of the AF scan to the start position of the initial scan range. A setting step for setting at a position where at least one of the focus evaluation values is calculated,
Control means, and a control step of the focus lens is to start the AF scan and Ru is driven to the start position of the AF scan,
A peak calculating step in which a peak calculating means calculates a peak position of the focus evaluation value without using the focus evaluation value calculated first among the focus evaluation values obtained until the AF scan is completed; And a method of controlling the automatic focusing device.
JP2012203539A 2012-09-14 2012-09-14 Automatic focusing apparatus, control method therefor, and imaging apparatus Expired - Fee Related JP5984595B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2012203539A JP5984595B2 (en) 2012-09-14 2012-09-14 Automatic focusing apparatus, control method therefor, and imaging apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2012203539A JP5984595B2 (en) 2012-09-14 2012-09-14 Automatic focusing apparatus, control method therefor, and imaging apparatus

Publications (3)

Publication Number Publication Date
JP2014059400A JP2014059400A (en) 2014-04-03
JP2014059400A5 JP2014059400A5 (en) 2015-11-05
JP5984595B2 true JP5984595B2 (en) 2016-09-06

Family

ID=50615933

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2012203539A Expired - Fee Related JP5984595B2 (en) 2012-09-14 2012-09-14 Automatic focusing apparatus, control method therefor, and imaging apparatus

Country Status (1)

Country Link
JP (1) JP5984595B2 (en)

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004077959A (en) * 2002-08-21 2004-03-11 Nikon Corp Focus adjusting method and camera
JP2007256463A (en) * 2006-03-22 2007-10-04 Nikon Corp Automatic focusing device and camera
JP5007613B2 (en) * 2007-07-04 2012-08-22 株式会社ニコン Autofocus device and photographing device
JP2011013499A (en) * 2009-07-02 2011-01-20 Nikon Corp Imaging apparatus
JP2011138103A (en) * 2009-12-02 2011-07-14 Ricoh Co Ltd Imaging apparatus and method
JP2012093409A (en) * 2010-10-25 2012-05-17 Ricoh Co Ltd Image-pickup device and image-pickup method

Also Published As

Publication number Publication date
JP2014059400A (en) 2014-04-03

Similar Documents

Publication Publication Date Title
US7884862B2 (en) Camera and camera zoom control method
JP4727534B2 (en) Imaging device
KR20070063605A (en) Image capture device and control method for automatic focusing
JP2012217100A (en) Imaging device and imaging device control method and program
JP6727453B2 (en) IMAGING DEVICE, IMAGING DEVICE CONTROL METHOD, AND IMAGING DEVICE CONTROL PROGRAM
JP2008054062A (en) Image pickup device
JP6234016B2 (en) Focus adjustment device, imaging device, and control method thereof
JP5257969B2 (en) Focus position control device, focus position control method, focus position control program
JP2009088578A (en) Image display device and image display method
JP2006276683A (en) Imaging apparatus and program
US9930267B2 (en) Image pickup apparatus that automatically generates time-lapse moving image, moving image generation method, and storage medium
JP4981955B2 (en) Imaging apparatus and control method thereof
KR101812656B1 (en) Digital photographing apparatus and control method thereof
JP2016024315A (en) Imaging device, imaging method, and program
JP2015040930A (en) Image-capturing device, image-capturing system, method for controlling image-capturing device, program, and recording medium
JP5984595B2 (en) Automatic focusing apparatus, control method therefor, and imaging apparatus
JP6087538B2 (en) Automatic focus detection apparatus, control method therefor, and imaging apparatus
JP2007208717A (en) Imaging apparatus and control method therefor
JP5225477B2 (en) Imaging apparatus and control method thereof
JP2012132957A (en) Imaging apparatus and setup method therefor
JP6579755B2 (en) FOCUS DETECTION DEVICE, ITS CONTROL METHOD, CONTROL PROGRAM, AND IMAGING DEVICE
JP6095351B2 (en) Imaging device, control method thereof, and control program
JP4227181B2 (en) Digital camera
JP5686869B2 (en) Imaging device
JP2013054375A (en) Camera, camera control program, and camera control method

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20150911

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20150911

TRDD Decision of grant or rejection written
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20160630

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20160704

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20160802

R151 Written notification of patent or utility model registration

Ref document number: 5984595

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

LAPS Cancellation because of no payment of annual fees