JP5868163B2 - IMAGING DEVICE, IMAGING DEVICE CONTROL METHOD, PROGRAM - Google Patents

IMAGING DEVICE, IMAGING DEVICE CONTROL METHOD, PROGRAM Download PDF

Info

Publication number
JP5868163B2
JP5868163B2 JP2011279690A JP2011279690A JP5868163B2 JP 5868163 B2 JP5868163 B2 JP 5868163B2 JP 2011279690 A JP2011279690 A JP 2011279690A JP 2011279690 A JP2011279690 A JP 2011279690A JP 5868163 B2 JP5868163 B2 JP 5868163B2
Authority
JP
Japan
Prior art keywords
value
focus lens
focus
speed
subject
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
JP2011279690A
Other languages
Japanese (ja)
Other versions
JP2013130683A (en
JP2013130683A5 (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 JP2011279690A priority Critical patent/JP5868163B2/en
Priority to US13/618,734 priority patent/US9036075B2/en
Publication of JP2013130683A publication Critical patent/JP2013130683A/en
Publication of JP2013130683A5 publication Critical patent/JP2013130683A5/ja
Application granted granted Critical
Publication of JP5868163B2 publication Critical patent/JP5868163B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、撮像装置、撮像装置の制御方法、プログラムに関する。詳しくは、本発明は、電子スチルカメラやビデオカメラ等などの撮像装置と、この撮像装置の制御方法と、この撮像装置を制御するプログラムとに関する。   The present invention relates to an imaging device, an imaging device control method, and a program. Specifically, the present invention relates to an imaging apparatus such as an electronic still camera or a video camera, a control method for the imaging apparatus, and a program for controlling the imaging apparatus.

従来、電子スチルカメラやビデオカメラなどにおいて、フォーカスレンズ位置を動かして被写体に焦点を合わせる合焦方法として、CCDなどの撮像素子から得られる画像信号を用いて自動的に合焦動作を行うオートフォーカス(AF)方式が用いられている。このAF方式において、AFスキャン動作中に被写体ピーク位置から離れているところにおいて、焦点評価値の形状より被写体ピーク位置を判断し、フォーカス速度を可変させることで高速化する技術がある。
例えば、所定時間内における焦点評価値の変化量とレンズ位置の変化量の比を評価値変化率として算出し、評価値変化率が増加状態にあるか減少状態にあるかに応じてレンズ位置の変更速度を可変するものがある。(特許文献1参照)
また、焦点評価値の増加中の3点からピーク位置を予測し、予測結果のばらつきが所定範囲内で駆動し、その前に増加が0近傍になったらフォーカス停止し、予測したピーク位置が遠い場合は、高速に移動させ、そのあと、低速にして再予測するものがある。(特許文献2参照)
Conventionally, in electronic still cameras and video cameras, as a focusing method that moves the focus lens position and focuses on the subject, autofocus is performed automatically using an image signal obtained from an image sensor such as a CCD. The (AF) method is used. In this AF method, there is a technique of speeding up by determining the subject peak position from the shape of the focus evaluation value and changing the focus speed at a position away from the subject peak position during the AF scan operation.
For example, a ratio between the change amount of the focus evaluation value and the change amount of the lens position within a predetermined time is calculated as an evaluation value change rate, and the lens position is changed depending on whether the evaluation value change rate is in an increasing state or a decreasing state. Some change speed. (See Patent Document 1)
Also, the peak position is predicted from three points where the focus evaluation value is increasing, and the variation in the prediction result is driven within a predetermined range. When the increase becomes near 0 before that, the focus is stopped, and the predicted peak position is far away. In some cases, the object is moved at a high speed and then re-predicted at a low speed. (See Patent Document 2)

特開平7−7650号公報Japanese Patent Laid-Open No. 7-7650 特開平8−29667号公報JP-A-8-29667

フォーカスレンズを駆動しながら焦点評価値を取得するようなAFスキャン方法を適用した場合には、被写体ピーク位置近傍であることを判断してから速度制御をするまでにタイムラグが生じてしまう。また、被写体のコントラストや周波数、絞りや露出などのカメラ設定が異なっていると、焦点評価値の形状が異なる。これより、焦点評価値の形状に基づいて被写体ピーク位置を判断する場合に、被写体によっては、被写体ピーク位置付近までにAF精度が確保できるサンプリング間隔となる所定の速度まで減速するのが間に合わなくなってしまうという問題がある。
しかし、特許文献1や特許文献2では、焦点評価値の形状を判断してから速度制御するまでのタイムラグについて考慮されていない。また、被写体やカメラの設定に応じて、焦点評価値のピーク形状の判断の仕方を変えることは行っていない。そのため、被写体やカメラの設定によっては、被写体ピーク位置までに速度制御が間に合わなくなり、ピント精度が悪くなってしまう。
When an AF scan method that acquires a focus evaluation value while driving the focus lens is applied, there is a time lag between the determination of being near the subject peak position and the speed control. In addition, when the camera settings such as the contrast, frequency, aperture, and exposure of the subject are different, the shape of the focus evaluation value is different. As a result, when determining the subject peak position based on the shape of the focus evaluation value, depending on the subject, it is not in time to decelerate to a predetermined speed that is a sampling interval that can secure AF accuracy up to the vicinity of the subject peak position. There is a problem of end.
However, Patent Literature 1 and Patent Literature 2 do not consider the time lag from the determination of the shape of the focus evaluation value to the speed control. Also, the method of determining the peak shape of the focus evaluation value is not changed according to the setting of the subject or camera. For this reason, depending on the setting of the subject and the camera, the speed control may not be in time for the subject peak position, resulting in poor focus accuracy.

前記課題を解決するため、本発明は、フォーカスレンズの移動中に、被写体からの光を光電変換して撮像信号を順次生成する撮像手段と、所定の領域に対応する前記撮像信号から被写体のコントラストを示す焦点評価値を生成する生成手段と、前記焦点評価値に基づいて前記フォーカスレンズの駆動を制御する制御部とを備える撮像装置であって、前記制御部は、設定されたスキャン範囲において前記フォーカスレンズを一方向に駆動するスキャン動作を行い前記スキャン動作中に第1の速度で前記フォーカスレンズを駆動している際に、前記フォーカスレンズの位置に対する前記焦点評価値の勾配が第1の閾値以上になった場合、前記フォーカスレンズの駆動速度を前記第1の速度より小さい第2の速度に変更し、前記第1の閾値は、前記被写体のコントラスト値、前記被写体の周波数、前記所定の領域のサイズ、絞り状態、現在の前記フォーカスレンズの駆動速度のうち少なくとも一つに基づいて設定されることを特徴とする。 In order to solve the above-described problems, the present invention provides an imaging unit that sequentially generates an imaging signal by photoelectrically converting light from a subject while the focus lens is moving, and a contrast of the subject from the imaging signal corresponding to a predetermined area. an imaging apparatus comprising: a generating means for generating a focus evaluation value, and a control unit for controlling the driving of the focus lens based on the focus evaluation value indicating the control unit, said at set scan range When a scan operation for driving the focus lens in one direction is performed and the focus lens is driven at a first speed during the scan operation, the gradient of the focus evaluation value with respect to the position of the focus lens is a first If equal to or greater than a threshold value, the change of the driving speed of the focus lens to the first speed smaller than the second speed, the first threshold value, before Contrast value of the subject, the frequency of the subject, the size of the predetermined area, aperture state, characterized in that it is set based on at least one of the driving speed of the current of the focus lens.

本発明は、撮像装置の制御方法であって、フォーカスレンズの移動中に、被写体からの光を光電変換して撮像信号を順次生成するステップと、所定の領域に対応する前記撮像信号から被写体のコントラストを示す焦点評価値を生成するステップと、前記焦点評価値に基づいて前記フォーカスレンズの駆動を制御するステップと、設定されたスキャン範囲において前記フォーカスレンズを一方向に駆動するスキャン動作を行うステップと前記スキャン動作中に第1の速度で前記フォーカスレンズを駆動している際に、前記フォーカスレンズの位置に対する前記焦点評価値の勾配が第1の閾値以上になった場合、前記フォーカスレンズの駆動速度を前記第1の速度より小さい第2の速度に変更するステップとを有し、前記第1の閾値は、前記被写体のコントラスト値、前記被写体の周波数、前記所定の領域のサイズ、絞り状態、現在の前記フォーカスレンズの駆動速度のうち少なくとも一つに基づいて設定されることを特徴とする。 The present invention is a method for controlling an imaging apparatus, the step of photoelectrically converting light from a subject while a focus lens is moving to sequentially generate an imaging signal, and the imaging signal corresponding to a predetermined region from the imaging signal. Generating a focus evaluation value indicating contrast, controlling a drive of the focus lens based on the focus evaluation value , and performing a scan operation of driving the focus lens in one direction within a set scan range If, during that drives the focus lens at a first speed during said scanning operation, if the slope of the focus evaluation value with respect to the position of the focus lens is equal to or greater than a first threshold value, the focus lens the driving speed and a step of changing said first velocity less than the second speed, the first threshold value, the object to be Contrast value of the body, the frequency of the subject, the size of the predetermined area, aperture state, characterized in that it is set based on at least one of the driving speed of the current of the focus lens.

本発明は、撮像装置のコンピュータに実行させるプログラムであって、フォーカスレンズの移動中に、被写体からの光を光電変換して撮像信号を順次生成するステップと、所定の領域に対応する前記撮像信号から被写体のコントラストを示す焦点評価値を生成するステップと、前記焦点評価値に基づいて前記フォーカスレンズの駆動を制御するステップと、設定されたスキャン範囲において前記フォーカスレンズを一方向に駆動するスキャン動作を行うステップと、前記スキャン動作中に第1の速度で前記フォーカスレンズを駆動している際に、前記フォーカスレンズの位置に対する前記焦点評価値の勾配が第1の閾値以上になった場合、前記フォーカスレンズの駆動速度を前記第1の速度より小さい第2の速度に変更するステップとを有し、前記第1の閾値は、前記被写体のコントラスト値、前記被写体の周波数、前記所定の領域のサイズ、絞り状態、現在の前記フォーカスレンズの駆動速度のうち少なくとも一つに基づいて設定されることを特徴とする。 The present invention is a program to be executed by a computer of an imaging apparatus, the step of photoelectrically converting light from a subject during the movement of a focus lens to sequentially generate an imaging signal, and the imaging signal corresponding to a predetermined area Generating a focus evaluation value indicating the contrast of the object from the image, controlling the driving of the focus lens based on the focus evaluation value , and scanning operation for driving the focus lens in one direction within a set scan range And when the focus lens is driven at the first speed during the scanning operation and the gradient of the focus evaluation value with respect to the position of the focus lens is equal to or higher than a first threshold , and a step of changing the driving speed of the focus lens in the first speed is less than the second speed The first threshold value is set based on at least one of the contrast value of the subject, the frequency of the subject, the size of the predetermined region, the aperture state, and the current driving speed of the focus lens. And

被写体やカメラの設定に応じて、ピント位置近傍でのフォーカスレンズの減速の判断のしかたを変えることで、被写体やカメラの設定によらず、精度よく高速にAFを行うことができる。   By changing how the focus lens is decelerated in the vicinity of the focus position in accordance with the setting of the subject and camera, AF can be performed with high accuracy and high speed regardless of the setting of the subject and camera.

図1は、本発明の実施例を適用した撮像装置の構成を示すブロック図である。FIG. 1 is a block diagram illustrating a configuration of an imaging apparatus to which an embodiment of the present invention is applied. 図2は、本発明の実施例適用した撮像装置の動作を説明するフローチャート図である。FIG. 2 is a flowchart for explaining the operation of the imaging apparatus to which the embodiment of the present invention is applied. 図3は、本発明の実施例を適用した図2おけるAF動作を説明するフローチャート図である。FIG. 3 is a flowchart for explaining the AF operation in FIG. 2 to which the embodiment of the present invention is applied. 図4は、本発明の実施例を適用した図3における初期フォーカス駆動を説明するフローチャート図である。FIG. 4 is a flowchart for explaining the initial focus drive in FIG. 3 to which the embodiment of the present invention is applied. 図5は、本発明の実施例を適用した図4におけるピーク検出チェックを説明するフローチャート図である。FIG. 5 is a flowchart for explaining the peak detection check in FIG. 4 to which the embodiment of the present invention is applied. 図6は、本発明の実施例を適用した図3におけるフォーカス速度の設定を説明するフローチャート図である。FIG. 6 is a flowchart for explaining setting of the focus speed in FIG. 3 to which the embodiment of the present invention is applied. 図7は、本発明の実施例を適用した図3と図5における焦点評価値の勾配検出を説明するフローチャート図である。FIG. 7 is a flowchart for explaining focus evaluation value gradient detection in FIGS. 3 and 5 to which the embodiment of the present invention is applied. 図8は、本発明の実施例を適用した図3と図4と図5における焦点評価値の勾配閾値SlopeThrの算出を説明するフローチャート図である。FIG. 8 is a flowchart for explaining the calculation of the focus evaluation value gradient threshold SlopeThr in FIGS. 3, 4 and 5 to which the embodiment of the present invention is applied.

以下、図1〜図8を参照しながら本発明の実施例を説明する。
まず、本発明の実施例が適用される撮像装置の全体的な構成について、図1を参照して説明する。本発明の実施例が適用される撮像装置は、電子カメラ1である。図1は本発明の実施例を適用した電子カメラ1の構成を示すブロック図である。撮影レンズ101は、ズーム機構を含む1以上のレンズ群である。絞りおよびシャッター102は、光量を制御する。AE処理部103はAE処理を行う。フォーカスレンズ104は、被写体からの光を後述する撮像素子107上に焦点をあわせる。モータ105は、フォーカスレンズ104を駆動するための駆動源である。AF処理部106はAF処理を行う。撮像素子107は、被写体からの光を電気信号に変換する受光手段又は光電変換手段が適用される。A/D変換部108は、撮像素子107の出力ノイズを除去するCDS回路や、A/D変換前に行う非線形増幅回路を含む。画像処理部109は、画像処理を行う。フォーマット変換部110は、出力する画像を所定の規格のフォーマットに変換する。DRAM111は、たとえばランダムアクセスメモリなどの高速な内蔵メモリである。DRAM111は、一時的な画像記憶手段としての高速バッファとして、あるいは画像の圧縮伸張における作業用メモリなどとして使用される。画像記録部112は、メモリーカードなどの記録媒体とそのインターフェースからなる。システム制御部113は、撮影シーケンスなどシステムを制御する。システム制御部113は、コンピュータプログラム(ソフトウェア)を格納するメモリ131と、メモリ131に格納されるコンピュータプログラムを読み出して実行するCPU132とを含む。VRAM114は画像表示用メモリである。画像表示部115は、画像表示、操作補助のための表示、カメラ状態の表示を行う。さらに画像表示部115は、撮影時には、撮影画面と測距領域を表示する。操作部116は、電子カメラ1を外部から操作するために用いられる。操作部116は、例えば、電子カメラ1の撮影機能や画像再生時の設定などの各種設定を行うメニュースイッチ、撮影レンズのズーム動作を指示するズームレバー、撮影モードと再生モードの動作モード切換えスイッチなどを含む。撮影モードスイッチ117は、マクロモード、遠景モード、スポーツモードなどの撮影モードを選択するために用いられるスイッチである。撮影モードスイッチ117は、ユーザーが選択した撮影モードに応じて測距距離範囲やAF動作などを変更することができる。メインスイッチ118は、システムに電源を投入するためのスイッチである。スイッチ119(以下、SW1と記すことがある)は、AFやAE等の撮影スタンバイ動作を行うためのスイッチである。スイッチ120(以下、SW2と記すことがある)は、SW1の操作後、撮影を行う撮影スイッチである。加速度センサ部121は、手ぶれやパンなどのよる電子カメラ1の動きを検知する。動体検出部122は、画面内の輝度情報より動体を検出する。
Embodiments of the present invention will be described below with reference to FIGS.
First, an overall configuration of an imaging apparatus to which an embodiment of the present invention is applied will be described with reference to FIG. An imaging apparatus to which an embodiment of the present invention is applied is an electronic camera 1. FIG. 1 is a block diagram showing the configuration of an electronic camera 1 to which an embodiment of the present invention is applied. The photographing lens 101 is one or more lens groups including a zoom mechanism. The aperture and shutter 102 controls the amount of light. The AE processing unit 103 performs AE processing. The focus lens 104 focuses light from the subject on an image sensor 107 described later. The motor 105 is a drive source for driving the focus lens 104. The AF processing unit 106 performs AF processing. As the image sensor 107, light receiving means or photoelectric conversion means for converting light from a subject into an electrical signal is applied. The A / D converter 108 includes a CDS circuit that removes output noise of the image sensor 107 and a non-linear amplifier circuit that is performed before A / D conversion. The image processing unit 109 performs image processing. The format conversion unit 110 converts an output image into a predetermined standard format. DRAM 111 is a high-speed built-in memory such as a random access memory. The DRAM 111 is used as a high-speed buffer as temporary image storage means or a working memory for image compression / decompression. The image recording unit 112 includes a recording medium such as a memory card and its interface. The system control unit 113 controls the system such as a shooting sequence. The system control unit 113 includes a memory 131 that stores a computer program (software), and a CPU 132 that reads and executes the computer program stored in the memory 131. The VRAM 114 is an image display memory. The image display unit 115 performs image display, operation assistance display, and camera state display. Further, the image display unit 115 displays a shooting screen and a distance measurement area during shooting. The operation unit 116 is used for operating the electronic camera 1 from the outside. The operation unit 116 includes, for example, a menu switch for performing various settings such as a shooting function of the electronic camera 1 and a setting at the time of image reproduction, a zoom lever for instructing a zoom operation of the photographing lens, an operation mode switching switch between a shooting mode and a playback mode, including. The shooting mode switch 117 is a switch used to select a shooting mode such as a macro mode, a distant view mode, or a sports mode. The shooting mode switch 117 can change the distance measuring distance range, the AF operation, and the like according to the shooting mode selected by the user. The main switch 118 is a switch for turning on the system. A switch 119 (hereinafter also referred to as SW1) is a switch for performing a shooting standby operation such as AF or AE. The switch 120 (hereinafter sometimes referred to as SW2) is a photographing switch that performs photographing after the operation of SW1. The acceleration sensor unit 121 detects the movement of the electronic camera 1 due to camera shake or panning. The moving object detection unit 122 detects a moving object from the luminance information in the screen.

以下、本発明の実施例が適用される電子カメラ1の動作について、図2〜図8を用いて詳細に説明する。以下の処理は、コンピュータプログラム(ソフトウェア)としてシステム制御部113のメモリ131に格納されており、システム制御部113のCPU132が読み出して実行することにより実施される。   Hereinafter, the operation of the electronic camera 1 to which the embodiment of the present invention is applied will be described in detail with reference to FIGS. The following processing is stored in the memory 131 of the system control unit 113 as a computer program (software), and is executed by the CPU 132 of the system control unit 113 reading and executing it.

まず、電子カメラ1の全体的な動作について、図2を参照して説明する。図2は、電子カメラ1の動作を説明するフローチャートである。
まず、S201では、AE処理部103が、画像処理部109の出力を用いてAE処理を実行する。そしてS202へと進む。
S202では、システム制御部113は、スイッチ119(SW1)の状態が「ON」であるかを調べる。そして、ONであれば(「Yes」であれば)S203へ進み、そうでなければ(「No」であれば)S201へ進む。
S203では、システム制御部113は、後述するAF動作を行う。そしてS204へ進む。なお、AF動作中の露出条件(シャッター速度、絞り、感度)は、直前のS201のAE処理において決定される。
S204では、システム制御部113は、スイッチ119(SW1)の状態がONであるかを調べる。そして、ONであれば(「Yes」であれば)S205へ進み、そうでなければ(「No」であれば)S201へ進む。
S205では、システム制御部113は、スイッチ120(SW2)の状態がONであるかを調べる。そしてONであれば(「Yes」であれば)S206へ進み、そうでなければ(「No」であれば)S204へ進む。
S206では、システム制御部113は、撮影動作を実行する。そしてその後、S201へ進む。
First, the overall operation of the electronic camera 1 will be described with reference to FIG. FIG. 2 is a flowchart for explaining the operation of the electronic camera 1.
First, in step S <b> 201, the AE processing unit 103 executes AE processing using the output of the image processing unit 109. Then, the process proceeds to S202.
In S202, the system control unit 113 checks whether the state of the switch 119 (SW1) is “ON”. If it is ON (if “Yes”), the process proceeds to S203; otherwise (if “No”), the process proceeds to S201.
In S203, the system control unit 113 performs an AF operation described later. Then, the process proceeds to S204. Note that the exposure conditions (shutter speed, aperture, sensitivity) during the AF operation are determined in the immediately preceding AE process of S201.
In S204, the system control unit 113 checks whether the state of the switch 119 (SW1) is ON. If it is ON (if “Yes”), the process proceeds to S205; otherwise (if “No”), the process proceeds to S201.
In S205, the system control unit 113 checks whether the state of the switch 120 (SW2) is ON. If it is ON (if “Yes”), the process proceeds to S206; otherwise (if “No”), the process proceeds to S204.
In S206, the system control unit 113 performs a shooting operation. Then, the process proceeds to S201.

次に、電子カメラ1のS203のAF動作について、図3を参照して説明する。図3は、図2におけるS203のAF動作を説明するフローチャートである。
S301では、システム制御部113は、画面内の所定の領域に測距領域を設定する。そしてS302へ進む。
S302では、システム制御部113は、撮影モードや焦点距離に応じたスキャン範囲を設定する。そして、S303へ進む。
S303では、システム制御部113は、初期フォーカス駆動を実行する。この初期フォーカス駆動では、システム制御部113は、AF処理部106を介してフォーカスレンズ104を駆動し、フォーカスレンズ104をあらかじめ決められたAFスキャンの開始位置へ移動させる。なお、この初期フォーカス駆動の詳細については後述する。そしてS304へ進む。
S304では、システム制御部113は、フォーカス速度を設定する。フォーカス速度は、フォーカスレンズの駆動速度をいうものとする。フォーカス速度の設定方法は後述する。そして、S305へ進む。
S305では、システム制御部113は、S304で設定したフォーカス速度で、所定方向にフォーカス駆動を開始する。なお、システム制御部113は、「所定方向」を、S303の初期フォーカス駆動におけるフォーカスレンズ104の駆動方向と反対方向に設定する。そしてS306へ進む。
S306では、システム制御部113は、S301で設定した測距領域内の焦点評価値を取得する。そしてS307へ進む。
S307では、システム制御部113は、現在のフォーカスレンズ104の位置を取得する。そしてS308へ進む。
S308では、システム制御部113は、フォーカスレンズ位置および焦点評価値の変化に基づいて、焦点評価値の勾配を検出する。具体的な検出方法については後述する。その後、S309へ進む。
S309では、システム制御部113は、焦点評価値の勾配閾値SlopeThrを算出する。焦点評価値の勾配閾値SlopeThrは、フォーカスレンズ104がピント位置の近傍にあるか否かを判定するための指標として用いられる閾値である。焦点評価値の勾配閾値SlopeThrの算出方法については後述する。その後、S310へ進む。
S310では、システム制御部113は、S308で検出した焦点評価値の勾配が、S309で算出した焦点評価値の勾配閾値SlopeThrの値以上で、かつフォーカス速度が「高速」に設定されているかどうかを調べる。なお、このステップで調べるフォーカス速度は、S304または後述するS311で設定される。検出した勾配が算出したSlopeThr以上であり、かつフォーカス速度が高速に設定されている場合には(「Yes」であれば)311へ進み、そうでない場合には(「No」であれば)313へ進む。
S311では、システム制御部113は、フォーカス速度を低速に設定する。そしてS312へ進む。すなわち、システム制御部113は、フォーカスレンズ104の現在位置がピント位置近傍にあると判断できた場合には、フォーカス速度を低速に設定する。その後、S312へ進む。
S312では、システム制御部113は、S311で設定したフォーカス速度でフォーカスレンズ104を駆動する(=フォーカス駆動する)。このように、S310〜S311〜S312の処理によれば、AFスキャン開始時に高速でフォーカス駆動を開始している場合に、ピント位置近傍が判断できた時点でフォーカスレンズの減速制御することができる。そしてS313へ進む。
S313では、システム制御部113は、S307で取得した現在のフォーカスレンズ104の位置が、S302で設定したスキャン範囲内にあるかどうかを調べる。現在のフォーカスレンズ104の位置がスキャン範囲内にあれば(「Yes」であれば)、S306へ進み、そうでなければ(「No」であれば)S314へ進む。
S306〜S313の一連の処理は、現在のフレームレートの1フレーム分の時間で行われる。また、システム制御部113は、S306で取得した焦点評価値とS307で取得したレンズ位置とを対応付け、後述するS315の焦点評価値のピーク位置算出で用いる。なお、システム制御部113は、焦点評価値を取得している間に、AF処理部106を介してフォーカスレンズ104を駆動する。すなわち、焦点評価値に対応するフォーカスレンズ位置には、ある程度の幅がある。そこで、システム制御部113は、露光時間の中心のタイミングでのフォーカスレンズ104の位置を算出し、算出したフォーカスレンズ104の位置と焦点評価値とを対応付ける。
S314では、システム制御部113は、AF処理部106を介してフォーカスレンズ104の駆動を停止する。そしてS315へ進む。
S315では、システム制御部113は、S306で取得した焦点評価値とそれに対応付けられたフォーカスレンズ104の位置(S307で取得)とを用いて、焦点評価値のピーク位置を算出する。そしてS316へ進む。
S316では、システム制御部113は、合焦判定を行う。そして、S317へ進む。
S317では、システム制御部113は、AF処理部を介して、S315で求めた焦点評価値のピーク位置へフォーカスレンズ104を駆動する。そして、AF動作を終了する。
Next, the AF operation in S203 of the electronic camera 1 will be described with reference to FIG. FIG. 3 is a flowchart for explaining the AF operation in S203 in FIG.
In S301, the system control unit 113 sets a distance measurement area to a predetermined area in the screen. Then, the process proceeds to S302.
In S <b> 302, the system control unit 113 sets a scan range corresponding to the shooting mode and the focal length. Then, the process proceeds to S303.
In S303, the system control unit 113 performs initial focus driving. In this initial focus drive, the system control unit 113 drives the focus lens 104 via the AF processing unit 106 and moves the focus lens 104 to a predetermined AF scan start position. Details of the initial focus drive will be described later. Then, the process proceeds to S304.
In S304, the system control unit 113 sets the focus speed. The focus speed refers to the drive speed of the focus lens. A method for setting the focus speed will be described later. Then, the process proceeds to S305.
In S305, the system control unit 113 starts focus driving in a predetermined direction at the focus speed set in S304. The system control unit 113 sets the “predetermined direction” to a direction opposite to the driving direction of the focus lens 104 in the initial focus driving of S303. Then, the process proceeds to S306.
In S306, the system control unit 113 acquires the focus evaluation value in the distance measurement area set in S301. Then, the process proceeds to S307.
In step S307, the system control unit 113 acquires the current position of the focus lens 104. Then, the process proceeds to S308.
In S308, the system control unit 113 detects the gradient of the focus evaluation value based on the change in the focus lens position and the focus evaluation value. A specific detection method will be described later. Then, it progresses to S309.
In step S309, the system control unit 113 calculates the gradient evaluation value slope threshold SlopeThr. The focus evaluation value gradient threshold SlopeThr is a threshold used as an index for determining whether or not the focus lens 104 is in the vicinity of the focus position. A method for calculating the focus evaluation value gradient threshold SlopeThr will be described later. Thereafter, the process proceeds to S310.
In S310, the system control unit 113 determines whether the gradient of the focus evaluation value detected in S308 is equal to or greater than the value of the gradient threshold SlopeThr of the focus evaluation value calculated in S309, and whether the focus speed is set to “high speed”. Investigate. The focus speed checked in this step is set in S304 or S311 described later. If the detected gradient is equal to or greater than the calculated SlopeThr and the focus speed is set to a high speed (if “Yes”), the process proceeds to 311, otherwise (if “No”) 313. Proceed to
In S311, the system control unit 113 sets the focus speed to a low speed. Then, the process proceeds to S312. That is, when the system control unit 113 can determine that the current position of the focus lens 104 is in the vicinity of the focus position, the system control unit 113 sets the focus speed to a low speed. Thereafter, the process proceeds to S312.
In step S312, the system control unit 113 drives the focus lens 104 at the focus speed set in step S311 (= focus drive). As described above, according to the processes of S310 to S311 to S312, when the focus drive is started at a high speed when the AF scan starts, the focus lens can be decelerated when the vicinity of the focus position can be determined. Then, the process proceeds to S313.
In step S313, the system control unit 113 checks whether the current position of the focus lens 104 acquired in step S307 is within the scan range set in step S302. If the current position of the focus lens 104 is within the scan range (if “Yes”), the process proceeds to S306; otherwise (if “No”), the process proceeds to S314.
A series of processing of S306 to S313 is performed in a time corresponding to one frame of the current frame rate. Further, the system control unit 113 associates the focus evaluation value acquired in S306 with the lens position acquired in S307, and uses it in calculating the peak position of the focus evaluation value in S315 described later. The system control unit 113 drives the focus lens 104 via the AF processing unit 106 while acquiring the focus evaluation value. That is, the focus lens position corresponding to the focus evaluation value has a certain width. Therefore, the system control unit 113 calculates the position of the focus lens 104 at the center timing of the exposure time, and associates the calculated position of the focus lens 104 with the focus evaluation value.
In step S <b> 314, the system control unit 113 stops driving the focus lens 104 via the AF processing unit 106. Then, the process proceeds to S315.
In S315, the system control unit 113 calculates the peak position of the focus evaluation value using the focus evaluation value acquired in S306 and the position of the focus lens 104 associated therewith (acquired in S307). Then, the process proceeds to S316.
In S316, the system control unit 113 performs in-focus determination. Then, the process proceeds to S317.
In S317, the system control unit 113 drives the focus lens 104 to the peak position of the focus evaluation value obtained in S315 via the AF processing unit. Then, the AF operation ends.

次に、図4を参照して、図3のS303の初期フォーカス駆動について説明する。図4は、図3のS303の初期フォーカス駆動の処理を説明するフローチャートである。
まず、S401では、システム制御部113は、フォーカス速度を低速に設定する。ここで、初期フォーカス駆動における「低速」には、例えば、後述する焦点評価値の勾配を判断できる最低速が適用される。そしてS402へ進む。
S402では、システム制御部113は、AF処理部106を介して、S401で設定したフォーカス速度で、所定方向にフォーカス駆動を開始する。この「所定方向」は、例えば、被写体の存在確率が高いと考えられる方向や、現在のフォーカスレンズ位置に対して遠端と近端のいずれか近い側への方向などが適用できる。そしてS403へ進む。
S403では、システム制御部113は、S301で設定した測距領域内の焦点評価値を取得する。そしてS404へ進む。
S404では、システム制御部113は、現在のフォーカスレンズ104の位置を取得する。そしてS405へ進む。
S405では、システム制御部113は、ピーク検出チェックを行う。ピーク検出チェックでは、システム制御部113は、焦点評価値のピークが検出されたか否か、検出されない場合には、焦点評価値が増加しているか、減少しているか、変化していないかをチェックする。すなわち、システム制御部113は、焦点評価値の変化をチェックする。ピーク検出チェックの詳細については後述する。そして、S406へ進む。
S406では、システム制御部113は、S405でチェックしたピーク検出結果がOKかどうかを調べる。そして、ピーク検出結果がOKであれば、すなわち、ピークが検出された場合には(「Yes」であれば)S409へ進み、そうでなければ(「No」であれば)S407へ進む。
S407では、システム制御部113は、S405でチェックしたピーク検出結果が減少で、かつ減少回数が減少回数閾値よりも多いかどうかを調べる。ピーク検出結果が減少で、かつ減少回数が減少回数閾値よりも多い場合には(「Yes」であれば)S409へ進み、そうでなければ(「No」であれば)S408へ進む。
S408では、システム制御部113は、現在のフォーカスレンズ104の位置が進行方向の端まで到達したかどうかを調べる。到達した場合には(「Yes」であれば)S409へ進み、そうでなければ(「No」であれば)S403へ進む。
S409では、システム制御部113は、焦点評価値の勾配閾値SlopeThrを算出する。焦点評価値の勾配閾値SlopeThrは、フォーカスレンズ104がピント位置近傍にあるか否かを判定する指標となる。なお、焦点評価値の勾配閾値SlopeThrの算出方法については後述する。その後、ステップS410へ進む。
S410では、システム制御部113は、焦点評価値の勾配がS409で算出した焦点評価値の勾配閾値SlopeThr以上かどうかを調べる。この焦点評価値は、後述するS502の焦点評価値の勾配検出において検出したものである。そして、焦点評価値の勾配が焦点評価値の勾配閾値SlopeThr以上であれば(「Yes」であれば)S411へ進み、そうでなければ(「No」であれば)S412へ進む。
S411では、システム制御部113は、FASTAF判定の結果を「NG」とする。そしてS413へ進む。
S412では、システム制御部113は、FASTAF判定の結果を「OK」とする。そしてS413へ進む。
FASTAF判定の結果は、AFスキャン動作開始タイミングであるS305において、高速にフォーカス駆動を開始するか否かを決定する指標の一つとなる。FASTAF判定は、S411とS412に示すように、焦点評価値の勾配閾値SlopeThrに基づいて実行される。このように、フォーカスレンズ104がピント位置近傍にない場合には、FASTAF判定の結果が「OK」とされ、ピント位置近傍にあれば「NG」とされる。FASTAF判定の結果は、後述するS304のフォーカス速度の設定で用いられる。
S413では、システム制御部113は、AF処理部106を介してフォーカスレンズ104を停止する。そしてS304へ進む。
Next, with reference to FIG. 4, the initial focus drive in S303 of FIG. 3 will be described. FIG. 4 is a flowchart for explaining the initial focus driving process in S303 of FIG.
First, in S401, the system control unit 113 sets the focus speed to a low speed. Here, for the “low speed” in the initial focus driving, for example, a minimum speed at which a gradient of a focus evaluation value described later can be determined is applied. Then, the process proceeds to S402.
In S402, the system control unit 113 starts focus driving in a predetermined direction via the AF processing unit 106 at the focus speed set in S401. As the “predetermined direction”, for example, a direction considered to have a high probability of existence of a subject, a direction toward either the far end or the near end with respect to the current focus lens position can be applied. Then, the process proceeds to S403.
In step S403, the system control unit 113 acquires a focus evaluation value in the distance measurement area set in step S301. Then, the process proceeds to S404.
In step S <b> 404, the system control unit 113 acquires the current position of the focus lens 104. Then, the process proceeds to S405.
In S405, the system control unit 113 performs a peak detection check. In the peak detection check, the system control unit 113 checks whether or not the peak of the focus evaluation value has been detected, and if not detected, whether the focus evaluation value has increased, decreased, or has not changed. To do. That is, the system control unit 113 checks a change in the focus evaluation value. Details of the peak detection check will be described later. Then, the process proceeds to S406.
In S406, the system control unit 113 checks whether the peak detection result checked in S405 is OK. If the peak detection result is OK, that is, if a peak is detected (if “Yes”), the process proceeds to S409; otherwise (if “No”), the process proceeds to S407.
In step S407, the system control unit 113 checks whether the peak detection result checked in step S405 is a decrease and whether the number of decreases is greater than a decrease count threshold. If the peak detection result is a decrease and the number of reductions is greater than the reduction number threshold (if “Yes”), the process proceeds to S409; otherwise (if “No”), the process proceeds to S408.
In step S408, the system control unit 113 checks whether the current position of the focus lens 104 has reached the end in the traveling direction. If reached (if “Yes”), the process proceeds to S409; otherwise (if “No”), the process proceeds to S403.
In step S409, the system control unit 113 calculates a focus evaluation value gradient threshold SlopeThr. The gradient evaluation value slope threshold SlopeThr serves as an index for determining whether or not the focus lens 104 is in the vicinity of the focus position. A method for calculating the gradient evaluation value slope threshold SlopeThr will be described later. Thereafter, the process proceeds to step S410.
In S410, the system control unit 113 checks whether or not the gradient of the focus evaluation value is equal to or greater than the gradient threshold SlopeThr of the focus evaluation value calculated in S409. This focus evaluation value is detected in gradient detection of the focus evaluation value in S502 described later. If the gradient of the focus evaluation value is equal to or greater than the gradient threshold value SlopeThr of the focus evaluation value (if “Yes”), the process proceeds to S411, otherwise (if “No”), the process proceeds to S412.
In step S411, the system control unit 113 sets the result of the FASTAF determination to “NG”. Then, the process proceeds to S413.
In step S <b> 412, the system control unit 113 sets the result of the FASTAF determination to “OK”. Then, the process proceeds to S413.
The result of FASTAF determination is one of the indexes for determining whether or not to start focus driving at high speed in S305, which is the AF scan operation start timing. The FASTAF determination is performed based on the gradient threshold value SlopeThr of the focus evaluation value, as shown in S411 and S412. Thus, when the focus lens 104 is not in the vicinity of the focus position, the result of the FASTAF determination is “OK”, and when the focus lens 104 is in the vicinity of the focus position, it is “NG”. The result of the FASTAF determination is used for setting the focus speed in S304 described later.
In step S <b> 413, the system control unit 113 stops the focus lens 104 via the AF processing unit 106. Then, the process proceeds to S304.

次に、図4におけるS405のピーク検出チェックの処理について、図5を参照して説明する。図5は、図4におけるS405のピーク検出チェックの処理を説明するフローチャートである。
まず、S501では、システム制御部113は、現在までにS403で取得した焦点評価値の最大値と最小値を求め、メモリ131に記憶する。そしてS502へ進む。
S502では、システム制御部113は、焦点評価値の勾配閾値SlopeThrを算出する(算出方法は後述)。その後、ステップS503へ進む。
S503では、システム制御部113は、焦点評価値の勾配検出(検出方法は後述する)を行う。その後、S504へ進む。
S504では、システム制御部113は、今回取得した焦点評価値が、前回取得した焦点評価値に対して所定量以上増加しているかどうかを調べる。所定量以上増加している場合には(「Yes」であれば)S505へ進み、そうでなければ(「No」であれば)S514へ進む。
S505では、システム制御部113は、減少回数をクリアする(=0にする)。そしてS506へ進む。
S506では、システム制御部113は、増加回数(=今回取得した焦点評価値が、前回取得した焦点評価値よりも増加したと判定された回数)をインクリメントする。そしてS507へ進む。
S507では、システム制御部113は、増加回数が加減速判定閾値よりも多いかどうかを調べる。加減速判定閾値は、フォーカス速度を「高速」に設定するか否かを決定する際の指標となる閾値である。ピーク検出チェックでは、できるだけ早い段階で被写体ピント位置の方向を判断したいため、加減速判定閾値は、例えば、被写体ピント位置の方向の判断が可能な最低の回数(例えば2回)で決まる閾値とする。増加回数が加減速判定閾値よりも多い場合には(「Yes」であれば)S508へ進み、そうでなければ(「No」であれば)S511へ進む。
S508では、システム制御部113は、焦点評価値の勾配がS502で算出した焦点評価値の勾配閾値SlopeThr以上かどうかを調べる。焦点評価値の勾配が焦点評価値の勾配閾値SlopeThr以上であれば(「Yes」であれば)S509へ進み、そうでなければ(「No」であれば)S510へ進む。
S509では、システム制御部113は、フォーカス速度を「低速」に設定する。そしてS512へ進む。
S510では、システム制御部113は、フォーカス速度を「高速」に設定する。そしてS512へ進む。
S511では、システム制御部113は、FASTAF判定の結果を「OK」にする。そして、S513へ進む。
S512では、システム制御部113は、FASTAF判定の結果を「NG」にする。そして、S513へ進む。
S513では、システム制御部113は、ピーク検出結果を「増加」とする。そしてS525へ進む。
S514では、システム制御部113は、今回の焦点評価値が、前回の焦点評価値に対して所定値よりも減少しているかどうかを調べる。所定値よりも減少している場合には(「Yes」であれば)S515へ進み、そうでなければ(「No」であれば)S521へ進む。
S515では、システム制御部113は、次の(1)〜(4)の4つの項目について調べる。(1)増加回数が1以上であるか。(2)今回の焦点評価値がS501で記憶している焦点評価値の最大値よりも所定の割合以上減少しているか。(3)S501で記憶している最大値と最小値の差が所定量以上であるか。(4)ピーク位置が今回までに取得している焦点評価値データの端ではないか。そして、(1)〜(4)のすべてを全て充足していれば(「Yes」であれば)S520へ進み、そうでなければ(「No」であれば)S516へ進む。
S516では、システム制御部113は、増加回数をクリアして0にする。そしてS517へ進む。
S517では、システム制御部113は、減少回数をインクリメントする。そしてS518へ進む。
S518では、システム制御部113は、FASTAF判定をOKにする。そしてS519へ進む。
S519では、システム制御部113は、ピーク検出結果を「減少」とする。そしてS525へ進む。
S520では、システム制御部113は、ピーク検出結果を「OK」にする。すなわち、システム制御部113は、S515で「Yes」と判定した場合には、焦点評価値のピークが検出されたと判定する。そしてS525へ進む。
S521では、システム制御部113は、焦点評価値の変化がない回数が加減速判定閾値よりも多いかどうかを調べる。多い場合には(「Yes」であれば)S522へ進み、そうでなければ(「No」であれば)S523へ進む。
S522では、システム制御部113は、フォーカス速度を「高速」に設定する。そしてS523へ進む。
S523では、システム制御部113は、FASTAF判定を「OK」とする。そしてS524へ進む。
S524では、システム制御部113は、ピーク検出結果を「変化なし」とする。そしてS525へ進む。
S525では、システム制御部113は、設定されたフォーカス速度で、AF処理部106を介してフォーカスレンズ104を駆動する。そしてS406へ進む。
Next, the peak detection check process of S405 in FIG. 4 will be described with reference to FIG. FIG. 5 is a flowchart for explaining the peak detection check process of S405 in FIG.
First, in step S <b> 501, the system control unit 113 obtains the maximum and minimum focus evaluation values acquired in step S <b> 403 so far and stores them in the memory 131. Then, the process proceeds to S502.
In S502, the system control unit 113 calculates a gradient threshold value SlopeThr of the focus evaluation value (a calculation method will be described later). Thereafter, the process proceeds to step S503.
In step S <b> 503, the system control unit 113 detects a gradient of the focus evaluation value (a detection method will be described later). Thereafter, the process proceeds to S504.
In S504, the system control unit 113 checks whether or not the focus evaluation value acquired this time has increased by a predetermined amount or more with respect to the focus evaluation value acquired last time. If it has increased by a predetermined amount or more (if “Yes”), the process proceeds to S505; otherwise (if “No”), the process proceeds to S514.
In step S505, the system control unit 113 clears the decrease count (sets it to 0). Then, the process proceeds to S506.
In step S506, the system control unit 113 increments the number of increases (= the number of times that the focus evaluation value acquired this time has been determined to be greater than the focus evaluation value acquired last time). Then, the process proceeds to S507.
In step S507, the system control unit 113 checks whether the number of increases is greater than the acceleration / deceleration determination threshold value. The acceleration / deceleration determination threshold value is a threshold value that serves as an index when determining whether or not to set the focus speed to “high speed”. In the peak detection check, since it is desired to determine the direction of the subject focus position at the earliest possible stage, the acceleration / deceleration determination threshold value is a threshold value determined by, for example, the minimum number of times (for example, twice) at which the direction of the subject focus position can be determined. . If the number of increases is greater than the acceleration / deceleration determination threshold (if “Yes”), the process proceeds to S508; otherwise (if “No”), the process proceeds to S511.
In S508, the system control unit 113 checks whether or not the gradient of the focus evaluation value is equal to or greater than the gradient threshold SlopeThr of the focus evaluation value calculated in S502. If the gradient of the focus evaluation value is equal to or greater than the gradient threshold SlopeThr of the focus evaluation value (if “Yes”), the process proceeds to S509; otherwise (if “No”), the process proceeds to S510.
In step S509, the system control unit 113 sets the focus speed to “low speed”. Then, the process proceeds to S512.
In S510, the system control unit 113 sets the focus speed to “high speed”. Then, the process proceeds to S512.
In step S511, the system control unit 113 sets the result of the FASTAF determination to “OK”. Then, the process proceeds to S513.
In S512, the system control unit 113 sets the result of FASTAF determination to “NG”. Then, the process proceeds to S513.
In S513, the system control unit 113 sets the peak detection result to “increase”. Then, the process proceeds to S525.
In S514, the system control unit 113 checks whether or not the current focus evaluation value is smaller than a predetermined value with respect to the previous focus evaluation value. If it is less than the predetermined value (if “Yes”), the process proceeds to S515; otherwise (if “No”), the process proceeds to S521.
In S515, the system control unit 113 examines the following four items (1) to (4). (1) Whether the number of increases is 1 or more. (2) Whether the current focus evaluation value has decreased by a predetermined rate or more than the maximum focus evaluation value stored in S501. (3) Whether the difference between the maximum value and the minimum value stored in S501 is greater than or equal to a predetermined amount. (4) Is the peak position the end of the focus evaluation value data acquired so far? If all of (1) to (4) are satisfied (if “Yes”), the process proceeds to S520; otherwise (if “No”), the process proceeds to S516.
In S516, the system control unit 113 clears the increase count to zero. Then, the process proceeds to S517.
In S517, the system control unit 113 increments the decrease count. Then, the process proceeds to S518.
In step S518, the system control unit 113 sets FASTAF determination to OK. Then, the process proceeds to S519.
In S519, the system control unit 113 sets the peak detection result to “decrease”. Then, the process proceeds to S525.
In S520, the system control unit 113 sets the peak detection result to “OK”. In other words, the system control unit 113 determines that the peak of the focus evaluation value has been detected when it determines “Yes” in S515. Then, the process proceeds to S525.
In step S521, the system control unit 113 checks whether the number of times that the focus evaluation value has not changed is greater than the acceleration / deceleration determination threshold value. If there are many (if “Yes”), the process proceeds to S522; otherwise (if “No”), the process proceeds to S523.
In S522, the system control unit 113 sets the focus speed to “high speed”. Then, the process proceeds to S523.
In step S523, the system control unit 113 sets the FASTAF determination to “OK”. Then, the process proceeds to S524.
In S524, the system control unit 113 sets the peak detection result to “no change”. Then, the process proceeds to S525.
In S525, the system control unit 113 drives the focus lens 104 via the AF processing unit 106 at the set focus speed. Then, the process proceeds to S406.

このような処理によれば、システム制御部113は、フォーカスレンズ104をAFスキャン開始位置に駆動するまでの焦点評価値の変化の態様(すなわち、焦点評価値の形状)に基づいて、ピント位置が近傍にあるかどうかを判断できる。また、システム制御部113は、フォーカス駆動の間において、ピント位置から離れている場合にはフォーカスレンズ104を高速に駆動し、ピント位置近傍ではフォーカスレンズ104を低速に駆動する。これにより、フォーカス駆動時間を短縮できる。   According to such processing, the system control unit 113 determines the focus position based on the manner of change in the focus evaluation value until the focus lens 104 is driven to the AF scan start position (that is, the shape of the focus evaluation value). Whether it is in the vicinity can be determined. Further, the system control unit 113 drives the focus lens 104 at a high speed when it is away from the focus position during focus driving, and drives the focus lens 104 at a low speed near the focus position. Thereby, the focus drive time can be shortened.

次に、図3におけるS304のフォーカス速度の設定の処理について、図6を参照して説明する。図6は、図3におけるS304のフォーカス速度の設定を説明するフローチャートである。
まずS601では、システム制御部113は、FASTAF判定が「OK」かどうかを調べる。「OK」であれば(「Yes」であれば)S602へ進み、そうでなければ(「No」であれば)S608へ進む。
S602では、システム制御部113は、加速度センサ部121により検出した電子カメラ1の動き量が所定量以下かどうかを調べる。所定量以下であれば(「Yes」であれば)S603へ進み、そうでなければ(「No」であれば)S608へ進む。これにより、後述するS308,S502の焦点評価値の勾配検出において、手ぶれによる焦点評価値の変動に起因する誤検出の影響を低減することができる。
S603では、システム制御部113は、動体検出部122で検出した画角の変動が所定よりも小さいかどうかを調べる。所定量より小さい場合には(「Yes」であれば)S604へ進み、そうでなければ(「No」であれば)S608へ進む。
S604では、測距領域の輝度が所定の範囲内にあるかどうかを調べる。所定範囲内にある場合には(「Yes」であれば)S605へ進み、所定範囲内にない場合には(「No」であれば)S608へ進む。
S605では、システム制御部113は、現在のカメラ設定において焦点距離が所定よりも長いかどうかを調べる。所定よりも長い場合には(「Yes」であれば)S606へ進み、そうでなければ(「No」であれば)S608へ進む。
S606では、システム制御部113は、現在のカメラ設定において測距距離範囲が所定よりも長いかどうかを調べる。測距距離範囲が所定よりも長い場合には(「Yes」であれば)S607へ進み、そうでなければ(「No」であれば)S608へ進む。
S607では、システム制御部113は、フォーカス速度を「高速」に設定する。そしてS305へ進む。
S608では、システム制御部113は、フォーカス速度を「低速」に設定する。そしてS305へ進む。
Next, the focus speed setting process of S304 in FIG. 3 will be described with reference to FIG. FIG. 6 is a flowchart for explaining the setting of the focus speed in S304 in FIG.
First, in step S601, the system control unit 113 checks whether the FASTAF determination is “OK”. If it is “OK” (if “Yes”), the process proceeds to S602; otherwise (if “No”), the process proceeds to S608.
In step S <b> 602, the system control unit 113 checks whether the amount of movement of the electronic camera 1 detected by the acceleration sensor unit 121 is equal to or less than a predetermined amount. If it is not more than the predetermined amount (if “Yes”), the process proceeds to S603, otherwise (if “No”), the process proceeds to S608. Thereby, in the focus evaluation value gradient detection in S308 and S502, which will be described later, it is possible to reduce the influence of erroneous detection caused by fluctuations in the focus evaluation value due to camera shake.
In step S <b> 603, the system control unit 113 checks whether the change in the angle of view detected by the moving object detection unit 122 is smaller than a predetermined value. If it is smaller than the predetermined amount (if “Yes”), the process proceeds to S604; otherwise (if “No”), the process proceeds to S608.
In S604, it is checked whether or not the brightness of the distance measurement area is within a predetermined range. If it is within the predetermined range (if “Yes”), the process proceeds to S605. If it is not within the predetermined range (if “No”), the process proceeds to S608.
In step S605, the system control unit 113 checks whether the focal length is longer than a predetermined value in the current camera setting. If it is longer than the predetermined (if “Yes”), the process proceeds to S606; otherwise (if “No”), the process proceeds to S608.
In step S606, the system control unit 113 checks whether the distance measurement distance range is longer than a predetermined value in the current camera setting. If the distance measurement distance range is longer than the predetermined range (if “Yes”), the process proceeds to S607; otherwise (if “No”), the process proceeds to S608.
In step S <b> 607, the system control unit 113 sets the focus speed to “high speed”. Then, the process proceeds to S305.
In step S608, the system control unit 113 sets the focus speed to “low speed”. Then, the process proceeds to S305.

次に、S308およびS502の焦点評価値の勾配検出の処理について、図7を参照して説明する。図7は、図3のS308および図5のS502の焦点評価値の勾配検出の処理の内容を示すフローチャートである。
まずS701では、システム制御部113は、S307またはS404で取得した今回のレンズ位置を「Pos1」とする。そしてS702へ進む。
S702では、システム制御部113は、S306またはS403で取得した今回の焦点評価値を「T1」とする。そしてS703へ進む。
S703では、システム制御部113は、S307またはS404で取得した前回のレンズ位置を「Pos2」とする。そしてS704へ進む。
S704では、システム制御部113は、S306またはS403で取得した前回の焦点評価値を「T2」とする。そしてS705へ進む。
S705では、システム制御部113は、焦点評価値の勾配を算出する。焦点評価値の勾配は、
(焦点評価値の勾配)=(T1 − T2)/(Pos1 − Pos2)
で算出される。そして、S309またはS503へ進む。
Next, the focus detection value gradient detection process in S308 and S502 will be described with reference to FIG. FIG. 7 is a flowchart showing the contents of focus evaluation value gradient detection processing in S308 of FIG. 3 and S502 of FIG.
First, in S701, the system control unit 113 sets the current lens position acquired in S307 or S404 to “Pos1”. Then, the process proceeds to S702.
In S702, the system control unit 113 sets “T1” as the current focus evaluation value acquired in S306 or S403. Then, the process proceeds to S703.
In S703, the system control unit 113 sets “Pos2” as the previous lens position acquired in S307 or S404. Then, the process proceeds to S704.
In S704, the system control unit 113 sets “T2” as the previous focus evaluation value acquired in S306 or S403. Then, the process proceeds to S705.
In step S705, the system control unit 113 calculates the gradient of the focus evaluation value. The gradient of the focus evaluation value is
(Gradient of focus evaluation value) = (T1−T2) / (Pos1−Pos2)
Is calculated by Then, the process proceeds to S309 or S503.

次に、図3のS309、図4のS409、図5のS503における焦点評価値の勾配閾値SlopeThrの算出について、図8を参照して説明する。図8は、図3のS309、図4のS409、図5のS503における焦点評価値の勾配閾値SlopeThrの算出の処理を示すフローチャートである。
まず、S801では、システム制御部113は、現在の絞りおよびシャッター102の状態を調べ、現在の絞り値を取得する。そしてS802へ進む。
S802では、システム制御部113は、S301で設定した測距領域のサイズを取得する。そしてS803へ進む。
S803では、システム制御部113は、S301で設定した測距領域内のコントラスト値を取得する。そしてS804へ進む。「測距領域内のコントラスト値」は、S301で設定した測距領域内における輝度値の最大値と最小値の差分とする。これにより、被写体にピントが合っていなくても、測距領域内の被写体のコントラストをある程度把握することができる。
S804では、システム制御部113は、S301で設定した測距領域内の周波数を取得する。そしてS805へ進む。なお、測距領域内の周波数の取得には、公知の各種方法が適用できる。したがって詳細な説明は省略する。
S805では、システム制御部113は、現在のフォーカスレンズ104のフォーカス速度を取得する。そしてS806へ進む。
S806では、基準値SlopeThr0を決定する。基準値SlopeThr0は、後述するS807で焦点評価値の勾配閾値SlopeThrを算出する際に、焦点評価値の勾配閾値SlopeThrの基準となる値である。なお、基準値SlopeThr0は、基準となる被写体や電子カメラ1の設定において決定する。また、用途によって基準値SlopeThr0の決定の仕方を変えてもよい。例えば、図3のS303における初期フォーカス駆動では、後に行うAFスキャン動作時に被写体の焦点評価値のピークを検出できるように、被写体の焦点評価値のピークを越えた位置でフォーカス速度を減速すればよい。これに対して、AFスキャン動作時には、必要なAF精度を確保するために、被写体の焦点評価値のピーク位置を越える前に、フォーカスレンズ速度を減速しなければならない。したがって、AFスキャン前の初期フォーカス駆動中であるS409またはS502と、AFスキャン動作中のS309でSlopeThr0を変えるようにする。具体的には、初期フォーカス駆動における基準値SlopeThr0の値を、AFスキャン動作における基準値SlopeThr0の値よりも大きくする。したがって、初期フォーカス駆動における焦点評価値の勾配閾値SlopeThrの値は、AFスキャン動作における焦点評価値の勾配閾値SlopeThrの値よりも大きくなる。このような構成によれば、初期フォーカス駆動においては、フォーカスレンズ104をあらかじめ決められたスキャン開始位置に迅速に移動させることができる。そして、AFスキャン動作においては、AF精度を上げることができる。そしてS807へ進む。
S807では、システム制御部113は、焦点評価値の勾配閾値SlopeThrを算出する。焦点評価値の勾配閾値SlopeThrは、たとえば次の式によって算出される。

SlopeThr = SlopeThr0 × MMP × WinSize × Freq × (1/ Speed) × (1/ FNum)

FNum:絞り値によって決まる係数
MMP:測距領域内のコントラストによって決まる係数
Freq:測距領域内の周波数によって決まる係数
WinSize:測距領域のサイズによって決まる係数
Speed:フォーカス速度によって決まる係数

以下、前記のSlopeThr0と各係数の決定方法について説明する。まず、基準となる、F値(FNum0)、被写体コントラスト値(MMP0)、被写体の周波数(Freq0)、測距領域サイズ(WinSize0)、フォーカス速度(Speed0)のそれぞれを条件として仮に決定する。その条件における焦点評価値ピーク形状より、フォーカス速度を減速させたいタイミングの焦点評価値ピークの勾配をSlopeThr0とする。FNumは、絞り値によって決まる係数である。絞り値が変わると焦点深度が変わり焦点評価値ピークの勾配が変わるため、絞り値に応じてSlopeThrを変えるための係数としてFNumを用いる。絞り値が大きくなると焦点深度は深くなり、勾配は小さくなるので、FNumは、例えば、

FNum =現在のF値/ FNum0

で算出して決定する。MMPは、測距領域内のコントラストによって決まる係数である。コントラスト値が高くなると焦点評価値ピークの勾配も大きくなるので、MMPは、例えば、

MMP = 現在の被写体のコントラスト値 / MMP0

で算出して決定する。Freqは、測距領域内の周波数によって決まる係数である。被写体の周波数が高くなると焦点評価値ピークの勾配も大きくなるので、Freqは、例えば、

Freq = 現在の被写体の周波数 / Freq0

で算出して決定する。WinSizeは、測距領域のサイズによって決まる係数である。測距領域のサイズが大きくなると、信号量が増えることで焦点評価値ピークの勾配も大きくなるので、WinSizeは例えば、

WinSize = 現在のWiSize / WinSize0

で算出して決定する。Speedは、フォーカス速度によって決まる係数である。Speedが速くなると焦点評価値ピークの勾配が大きくなるので、Speedは、例えば、

Speed = 現在のフォーカス速度 / Speed0

で算出して決定する。
なお、この計算式においては、基準値SlopeThr0に前記係数の全てを用いて焦点評価値の勾配閾値SlopeThrを算出しているが、前記係数の少なくとも一つを用いて算出する構成であってもよい。このような算出方法によれば、焦点評価値の勾配閾値SlpeThrは、被写体のコントラスト値、被写体の周波数、測距領域のサイズ、絞り状態、フォーカス速度のうち少なくとも一つに基づいて決定される。
これにより、被写体やカメラの設定によって焦点評価値の形状が異なっていた場合でも、被写体ピーク位置の判断を適切に行うことができる。そしてS310、S409、S503のいずれかへ進む。
Next, calculation of the gradient evaluation value slope threshold SlopeThr in S309 of FIG. 3, S409 of FIG. 4, and S503 of FIG. 5 will be described with reference to FIG. FIG. 8 is a flowchart showing processing for calculating the gradient evaluation value slope threshold SlopeThr in S309 of FIG. 3, S409 of FIG. 4, and S503 of FIG.
First, in step S801, the system control unit 113 checks the current aperture and the state of the shutter 102, and acquires the current aperture value. Then, the process proceeds to S802.
In step S802, the system control unit 113 acquires the size of the distance measurement area set in step S301. Then, the process proceeds to S803.
In step S803, the system control unit 113 acquires the contrast value in the distance measurement area set in step S301. Then, the process proceeds to S804. The “contrast value in the distance measurement area” is the difference between the maximum value and the minimum value of the luminance values in the distance measurement area set in S301. Thereby, even if the subject is not in focus, the contrast of the subject in the distance measurement area can be grasped to some extent.
In step S804, the system control unit 113 acquires the frequency within the distance measurement area set in step S301. Then, the process proceeds to S805. Various known methods can be applied to obtain the frequency within the distance measurement area. Therefore, detailed description is omitted.
In step S <b> 805, the system control unit 113 acquires the current focus speed of the focus lens 104. Then, the process proceeds to S806.
In S806, a reference value SlopeThr0 is determined. The reference value SlopeThr0 is a value that serves as a reference for the focus evaluation value gradient threshold SlopeThr when calculating the focus evaluation value gradient threshold SlopeThr in S807 described later. The reference value SlopeThr0 is determined in the setting of the reference subject and the electronic camera 1. Further, how to determine the reference value SlopeThr0 may be changed depending on the application. For example, in the initial focus drive in S303 of FIG. 3, the focus speed may be reduced at a position that exceeds the peak of the focus evaluation value of the subject so that the peak of the focus evaluation value of the subject can be detected during the AF scan operation performed later. . On the other hand, during the AF scan operation, the focus lens speed must be reduced before the peak position of the focus evaluation value of the subject is exceeded in order to ensure the necessary AF accuracy. Therefore, SlopeThr0 is changed in S409 or S502 during initial focus driving before AF scan and in S309 during AF scan operation. Specifically, the reference value SlopeThr0 in the initial focus drive is set to be larger than the reference value SlopeThr0 in the AF scan operation. Therefore, the value of the gradient threshold value SlopeThr of the focus evaluation value in the initial focus drive is larger than the value of the gradient threshold value SlopeThr of the focus evaluation value in the AF scan operation. According to such a configuration, in the initial focus drive, the focus lens 104 can be quickly moved to a predetermined scan start position. In the AF scan operation, AF accuracy can be increased. Then, the process proceeds to S807.
In step S <b> 807, the system control unit 113 calculates a focus evaluation value gradient threshold SlopeThr. The focus evaluation value gradient threshold SlopeThr is calculated by, for example, the following equation.

SlopeThr = SlopeThr0 × MMP × WinSize × Freq × (1 / Speed) × (1 / FNum)

FNum: coefficient determined by the aperture value MMP: coefficient determined by the contrast in the distance measurement area Freq: coefficient determined by the frequency in the distance measurement area WinSize: coefficient determined by the size of the distance measurement area Speed: coefficient determined by the focus speed

Hereinafter, the method of determining the above-described SlopeThr0 and each coefficient will be described. First, the F value (FNum0), the subject contrast value (MMP0), the subject frequency (Freq0), the distance measurement area size (WinSize0), and the focus speed (Speed0), which are the references, are temporarily determined. From the focus evaluation value peak shape under the condition, the slope of the focus evaluation value peak at the timing when the focus speed is desired to be decelerated is set to SlopeThr0. FNum is a coefficient determined by the aperture value. When the aperture value changes, the depth of focus changes and the gradient of the focus evaluation value peak changes. Therefore, FNum is used as a coefficient for changing SlopeThr according to the aperture value. As the aperture value increases, the depth of focus becomes deeper and the gradient becomes smaller.

FNum = current F value / FNum0

Calculate and decide on. MMP is a coefficient determined by the contrast in the distance measurement area. Since the gradient of the focus evaluation value peak increases as the contrast value increases, the MMP is, for example,

MMP = current subject contrast value / MMP0

Calculate and decide on. Freq is a coefficient determined by the frequency in the ranging area. Since the gradient of the focus evaluation value peak increases as the frequency of the subject increases, Freq is, for example,

Freq = Current subject frequency / Freq0

Calculate and decide on. WinSize is a coefficient determined by the size of the distance measurement area. As the size of the distance measurement area increases, the signal amount increases and the gradient of the focus evaluation value peak also increases.

WinSize = current WiSize / WinSize0

Calculate and decide on. Speed is a coefficient determined by the focus speed. Since the gradient of the focus evaluation value peak increases as the speed increases, the speed is, for example,

Speed = Current focus speed / Speed0

Calculate and decide on.
In this calculation formula, the gradient threshold value SlopeThr of the focus evaluation value is calculated using all of the coefficients as the reference value SlopeThr0. However, the calculation formula may be calculated using at least one of the coefficients. . According to such a calculation method, the gradient threshold value SlpeThr of the focus evaluation value is determined based on at least one of the contrast value of the subject, the frequency of the subject, the size of the ranging area, the aperture state, and the focus speed.
Thereby, even when the shape of the focus evaluation value differs depending on the setting of the subject and the camera, it is possible to appropriately determine the subject peak position. Then, the process proceeds to any of S310, S409, and S503.

本実施例では、焦点評価値の勾配が所定の閾値より大きいかどうかを判断することにより、低速または高速の2値でフォーカスレンズ速度の調節を行っているが、焦点評価値の勾配によりフォーカス速度を細かく可変させてもよい。   In this embodiment, the focus lens speed is adjusted at a low speed or a high speed binary value by determining whether the gradient of the focus evaluation value is larger than a predetermined threshold value. May be finely varied.

以上、本発明をその好適な実施形態に基づいて詳述してきたが、本発明はこれら特定の実施形態に限られるものではなく、この発明の要旨を逸脱しない範囲の様々な形態も本発明に含まれる。上述の実施形態の一部を適宜組み合わせてもよい。また、上述の実施形態の機能を実現するソフトウェアのプログラムを、記録媒体から直接、或いは有線/無線通信を用いてプログラムを実行可能なコンピュータを有するシステム又は装置に供給し、そのプログラムを実行する場合も本発明に含む。従って、本発明の機能処理をコンピュータで実現するために、該コンピュータに供給、インストールされるプログラムコード自体も本発明を実現するものである。つまり、本発明の機能処理を実現するためのコンピュータプログラム自体も本発明に含まれる。その場合、プログラムの機能を有していれば、オブジェクトコード、インタプリタにより実行されるプログラム、OSに供給するスクリプトデータ等、プログラムの形態を問わない。プログラムを供給するための記録媒体としては、例えば、ハードディスク、磁気テープ等の磁気記録媒体、光/光磁気記憶媒体、不揮発性の半導体メモリでもよい。また、プログラムの供給方法としては、コンピュータネットワーク上のサーバに本発明を形成するコンピュータプログラムを記憶し、接続のあったクライアントコンピュータがコンピュータプログラムをダウンロードしてプログラムするような方法も考えられる。   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. Also, when a software program that realizes the functions of the above-described embodiments is supplied from a recording medium directly to a system or apparatus having a computer that can execute the program using wired / wireless communication, and the program is executed Are also included in the present invention. Accordingly, the program code itself supplied and installed in the computer in order to implement the functional processing of the present invention by the computer also realizes the present invention. That is, the computer program itself for realizing the functional processing of the present invention is also included in the present invention. In this case, the program may be in any form as long as it has a program function, such as an object code, a program executed by an interpreter, or script data supplied to the OS. As a recording medium for supplying the program, for example, a magnetic recording medium such as a hard disk or a magnetic tape, an optical / magneto-optical storage medium, or a nonvolatile semiconductor memory may be used. As a program supply method, a computer program that forms the present invention is stored in a server on a computer network, and a connected client computer downloads and programs the computer program.

101:撮影レンズ、102:絞りおよびシャッター、103:AE処理部、104:フォーカスレンズ、105:モータ、106:AF処理部、107:撮像素子、108:A/D変換部、109:画像処理部、110:フォーマット変換部、111:DRAM、112:画像記録部、113:システム制御部、114:VRAM、115:画像表示部、116:操作部、117:撮影モードスイッチ、118:メインスイッチ、119:撮影スタンバイスイッチ、120:撮影スイッチ、121:加速度センサ部、122:動体検出部   101: Shooting lens, 102: Aperture and shutter, 103: AE processing unit, 104: Focus lens, 105: Motor, 106: AF processing unit, 107: Image sensor, 108: A / D conversion unit, 109: Image processing unit 110: Format conversion unit, 111: DRAM, 112: Image recording unit, 113: System control unit, 114: VRAM, 115: Image display unit, 116: Operation unit, 117: Shooting mode switch, 118: Main switch, 119 : Shooting standby switch, 120: shooting switch, 121: acceleration sensor unit, 122: moving object detection unit

Claims (13)

フォーカスレンズの移動中に、被写体からの光を光電変換して撮像信号を順次生成する撮像手段と、所定の領域に対応する前記撮像信号から被写体のコントラストを示す焦点評価値を生成する生成手段と、前記焦点評価値に基づいて前記フォーカスレンズの駆動を制御する制御部とを備える撮像装置であって、
前記制御部は、設定されたスキャン範囲において前記フォーカスレンズを一方向に駆動するスキャン動作を行い前記スキャン動作中に第1の速度で前記フォーカスレンズを駆動している際に、前記フォーカスレンズの位置に対する前記焦点評価値の勾配が第1の閾値以上になった場合、前記フォーカスレンズの駆動速度を前記第1の速度より小さい第2の速度に変更し、
前記第1の閾値は、前記被写体のコントラスト値、前記被写体の周波数、前記所定の領域のサイズ、絞り状態、現在の前記フォーカスレンズの駆動速度のうち少なくとも一つに基づいて設定されることを特徴とする撮像装置。
An imaging unit that sequentially generates an imaging signal by photoelectrically converting light from the subject while the focus lens is moving, and a generation unit that generates a focus evaluation value indicating the contrast of the subject from the imaging signal corresponding to a predetermined area. An imaging device comprising: a control unit that controls driving of the focus lens based on the focus evaluation value ;
The control unit performs a scan operation for driving the focus lens in one direction within a set scan range, and when driving the focus lens at a first speed during the scan operation , If the slope of the focus evaluation value with respect to the position is equal to or greater than the first threshold value, to change the driving speed of the focus lens to said first speed is less than the second speed,
The first threshold value is set based on at least one of the contrast value of the subject, the frequency of the subject, the size of the predetermined region, the aperture state, and the current driving speed of the focus lens. An imaging device.
前記制御部は、前記スキャン動作の前に、当該スキャン動作と反対方向に前記フォーカスレンズを駆動する初期動作を行い、前記初期動作の際に取得した前記焦点評価値に基づいて、前記スキャン動作を開始する際の前記フォーカスレンズの駆動速度を設定することを特徴とする請求項に記載の撮像装置。 The control unit performs an initial operation for driving the focus lens in a direction opposite to the scan operation before the scan operation, and performs the scan operation based on the focus evaluation value acquired in the initial operation. The imaging apparatus according to claim 1 , wherein a driving speed of the focus lens when starting is set. 前記制御部は、前記スキャン動作の前に、当該スキャン動作と反対方向に前記フォーカスレンズを駆動する初期動作を行い、前記初期動作の終了時に取得した前記焦点評価値の前記フォーカスレンズの位置に対する勾配が第2の閾値以上の場合、前記スキャン動作を開始する際の前記フォーカスレンズの駆動速度を前記第2の速度に設定することを特徴とする請求項1または2に記載の撮像装置。 The controller performs an initial operation of driving the focus lens in a direction opposite to the scan operation before the scan operation, and a gradient of the focus evaluation value acquired at the end of the initial operation with respect to the position of the focus lens is equal to or greater than the second threshold value, the imaging apparatus according to the driving speed of the focus lens at the time of starting the scanning operation to claim 1 or 2, characterized in that set in the second speed. 前記制御部は、前記初期動作の終了時に取得した前記焦点評価値の前記フォーカスレンズの位置に対する勾配が前記第2の閾値より小さく、さらに所定の撮影条件を満たす場合、前記スキャン動作を開始する際の前記フォーカスレンズの駆動速度を前記第1の速度に設定することを特徴とする請求項に記載の撮像装置。 When the gradient of the focus evaluation value acquired at the end of the initial operation with respect to the position of the focus lens is smaller than the second threshold and when a predetermined imaging condition is satisfied, the control unit is configured to start the scan operation. The imaging apparatus according to claim 3 , wherein a driving speed of the focus lens is set to the first speed. 前記第2の閾値は、前記第1の閾値より大きいことを特徴とする請求項3または4に記載の撮像装置。 The imaging apparatus according to claim 3 or 4 , wherein the second threshold value is larger than the first threshold value. 前記被写体のコントラスト値が第1の値のときの前記第1の閾値は、前記被写体のコントラスト値が前記第1の値より低い第2の値のときの前記第1の閾値と比較して大きく設定されることを特徴とする請求項1乃至のいずれか1項に記載の撮像装置。 The first threshold value when the contrast value of the subject is a first value is larger than the first threshold value when the contrast value of the subject is a second value lower than the first value. the imaging apparatus according to any one of claims 1 to 5, characterized in that set. 前記被写体の周波数が第3の値のときの前記第1の閾値は、前記被写体の周波数が前記第3の値より低い第4の値のときの前記第1の閾値と比較して大きく設定されることを特徴とする請求項1乃至のいずれか1項に記載の撮像装置。 The first threshold value when the frequency of the subject is a third value is set to be larger than the first threshold value when the frequency of the subject is a fourth value lower than the third value. the imaging apparatus according to any one of claims 1 to 6, wherein Rukoto. 前記所定の領域のサイズが第5の値のときの前記第1の閾値は、前記所定の領域のサイズが前記第5の値より小さい第6の値のときの前記第1の閾値と比較して大きく設定されることを特徴とする請求項1乃至のいずれか1項に記載の撮像装置。 The first threshold value when the size of the predetermined area is a fifth value is compared with the first threshold value when the size of the predetermined area is a sixth value smaller than the fifth value. that Te is set larger imaging apparatus according to any one of claims 1 to 7, characterized in. 前記絞り状態が第1の状態のときの前記第1の閾値は、前記絞り状態が前記第1の状態より開放側の第2の状態のときの前記第1の閾値と比較して小さく設定されることを特徴とする請求項1乃至のいずれか1項に記載の撮像装置。 The first threshold value when the aperture state is the first state is set smaller than the first threshold value when the aperture state is the second state on the open side with respect to the first state. the imaging apparatus according to any one of claims 1 to 8, characterized in Rukoto. 現在の前記フォーカスレンズの駆動速度が第1の速度のときの前記第1の閾値は、現在の前記フォーカスレンズの駆動速度が前記第1の速度より小さい第2の速度のときの前記第1の閾値と比較して小さく設定されることを特徴とする請求項1乃至のいずれか1項に記載の撮像装置。 The first threshold value when the current driving speed of the focus lens is the first speed is the first threshold value when the current driving speed of the focus lens is a second speed smaller than the first speed. the imaging apparatus according to any one of claims 1 to 9, characterized in that it is set smaller than the threshold value. 前記被写体のコントラスト値は、前記所定の領域内の輝度値の最大値と最小値の差分に基づく値であることを特徴とする請求項1乃至10のいずれか1項に記載の撮像装置。 The contrast value of the subject, the imaging apparatus according to any one of claims 1 to 10, wherein the is a value based on the difference between the maximum value and the minimum value of the luminance values in a predetermined region. 撮像装置の制御方法であって、
フォーカスレンズの移動中に、被写体からの光を光電変換して撮像信号を順次生成するステップと、
所定の領域に対応する前記撮像信号から被写体のコントラストを示す焦点評価値を生成するステップと、
前記焦点評価値に基づいて前記フォーカスレンズの駆動を制御するステップと、
設定されたスキャン範囲において前記フォーカスレンズを一方向に駆動するスキャン動作を行うステップと
前記スキャン動作中に第1の速度で前記フォーカスレンズを駆動している際に、前記フォーカスレンズの位置に対する前記焦点評価値の勾配が第1の閾値以上になった場合、前記フォーカスレンズの駆動速度を前記第1の速度より小さい第2の速度に変更するステップとを有し、
前記第1の閾値は、前記被写体のコントラスト値、前記被写体の周波数、前記所定の領域のサイズ、絞り状態、現在の前記フォーカスレンズの駆動速度のうち少なくとも一つに基づいて設定されることを特徴とする撮像装置の制御方法。
A method for controlling an imaging apparatus,
During the movement of the focus lens, photoelectrically converting light from the subject to sequentially generate imaging signals;
Generating a focus evaluation value indicating contrast of a subject from the imaging signal corresponding to a predetermined area;
Controlling the driving of the focus lens based on the focus evaluation value ;
Performing a scanning operation for driving the focus lens in one direction within a set scanning range ;
When the focus lens is driven at the first speed during the scan operation, and the gradient of the focus evaluation value with respect to the position of the focus lens is equal to or higher than the first threshold , the drive speed of the focus lens Changing to a second speed less than the first speed ,
The first threshold value is set based on at least one of the contrast value of the subject, the frequency of the subject, the size of the predetermined region, the aperture state, and the current driving speed of the focus lens. A method for controlling the imaging apparatus.
撮像装置のコンピュータに実行させるプログラムであって、
フォーカスレンズの移動中に、被写体からの光を光電変換して撮像信号を順次生成するステップと、
所定の領域に対応する前記撮像信号から被写体のコントラストを示す焦点評価値を生成するステップと、
前記焦点評価値に基づいて前記フォーカスレンズの駆動を制御するステップと、
設定されたスキャン範囲において前記フォーカスレンズを一方向に駆動するスキャン動作を行うステップと
前記スキャン動作中に第1の速度で前記フォーカスレンズを駆動している際に、前記フォーカスレンズの位置に対する前記焦点評価値の勾配が第1の閾値以上になった場合、前記フォーカスレンズの駆動速度を前記第1の速度より小さい第2の速度に変更するステップとを有し、
前記第1の閾値は、前記被写体のコントラスト値、前記被写体の周波数、前記所定の領域のサイズ、絞り状態、現在の前記フォーカスレンズの駆動速度のうち少なくとも一つに基づいて設定されることを特徴とするプログラム。
A program to be executed by a computer of an imaging apparatus,
During the movement of the focus lens, photoelectrically converting light from the subject to sequentially generate imaging signals;
Generating a focus evaluation value indicating contrast of a subject from the imaging signal corresponding to a predetermined area;
Controlling the driving of the focus lens based on the focus evaluation value ;
Performing a scanning operation for driving the focus lens in one direction within a set scanning range ;
When the focus lens is driven at the first speed during the scan operation, and the gradient of the focus evaluation value with respect to the position of the focus lens is equal to or higher than the first threshold , the drive speed of the focus lens Changing to a second speed less than the first speed ,
The first threshold value is set based on at least one of the contrast value of the subject, the frequency of the subject, the size of the predetermined region, the aperture state, and the current driving speed of the focus lens. Program.
JP2011279690A 2011-11-14 2011-12-21 IMAGING DEVICE, IMAGING DEVICE CONTROL METHOD, PROGRAM Active JP5868163B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2011279690A JP5868163B2 (en) 2011-12-21 2011-12-21 IMAGING DEVICE, IMAGING DEVICE CONTROL METHOD, PROGRAM
US13/618,734 US9036075B2 (en) 2011-11-14 2012-09-14 Image pickup apparatus, method for controlling the same, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011279690A JP5868163B2 (en) 2011-12-21 2011-12-21 IMAGING DEVICE, IMAGING DEVICE CONTROL METHOD, PROGRAM

Publications (3)

Publication Number Publication Date
JP2013130683A JP2013130683A (en) 2013-07-04
JP2013130683A5 JP2013130683A5 (en) 2015-02-05
JP5868163B2 true JP5868163B2 (en) 2016-02-24

Family

ID=48908289

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011279690A Active JP5868163B2 (en) 2011-11-14 2011-12-21 IMAGING DEVICE, IMAGING DEVICE CONTROL METHOD, PROGRAM

Country Status (1)

Country Link
JP (1) JP5868163B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015094925A (en) * 2013-11-14 2015-05-18 キヤノン株式会社 Focus adjustment device, focus adjustment method and program, and imaging device having focus adjustment device
JP6518452B2 (en) * 2015-02-05 2019-05-22 オリンパス株式会社 Imaging apparatus and imaging method

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0686143A (en) * 1992-08-31 1994-03-25 Canon Inc Autofocus controller
JP2002318341A (en) * 2001-04-20 2002-10-31 Fuji Photo Film Co Ltd Device and method for automatic focusing
JP2004085673A (en) * 2002-08-23 2004-03-18 Fuji Photo Optical Co Ltd Autofocus system
JP4470651B2 (en) * 2003-08-29 2010-06-02 日本ビクター株式会社 Automatic focus adjustment device
JP2005141068A (en) * 2003-11-07 2005-06-02 Canon Inc Automatic focusing device, automatic focusing method, and control program readable by computer
JP2005250127A (en) * 2004-03-04 2005-09-15 Fujinon Corp Autofocus system
JP2010243815A (en) * 2009-04-07 2010-10-28 Lasertec Corp Mechanism and method for detecting focus
JP5292175B2 (en) * 2009-05-15 2013-09-18 株式会社エルモ社 Imaging apparatus and focus adjustment method

Also Published As

Publication number Publication date
JP2013130683A (en) 2013-07-04

Similar Documents

Publication Publication Date Title
US20130033638A1 (en) Auto focus adjusting method, auto focus adjusting apparatus, and digital photographing apparatus including the same
JP2015094925A (en) Focus adjustment device, focus adjustment method and program, and imaging device having focus adjustment device
JP2011248159A (en) Imaging apparatus, imaging system, imaging apparatus control method and program
JP5213813B2 (en) IMAGING DEVICE AND IMAGING DEVICE CONTROL METHOD
JP2010066737A (en) Autofocus apparatus, imaging apparatus, focusing control method, and focusing control program
JP2007206433A (en) Focusing apparatus, imaging apparatus, and control method
JP5095519B2 (en) Imaging apparatus and imaging method
US9036075B2 (en) Image pickup apparatus, method for controlling the same, and storage medium
JP5762156B2 (en) IMAGING DEVICE, FOCUS ADJUSTMENT METHOD, AND PROGRAM
JP5787634B2 (en) Imaging device
JP5868163B2 (en) IMAGING DEVICE, IMAGING DEVICE CONTROL METHOD, PROGRAM
JP6234016B2 (en) Focus adjustment device, imaging device, and control method thereof
US9277114B2 (en) Image pickup apparatus to which a lens unit with a focus lens is attachable and capable of performing accurate and fast focus detection, method of controlling image pickup apparatus, and non-transitory computer-readable storage medium
JP5744501B2 (en) Focus adjustment apparatus, control method thereof, and program
JP6032884B2 (en) IMAGING DEVICE, IMAGING DEVICE CONTROL METHOD, PROGRAM
JP2005141068A (en) Automatic focusing device, automatic focusing method, and control program readable by computer
JP6105917B2 (en) Focus adjustment apparatus and method, and imaging apparatus
JP5904781B2 (en) Automatic focus adjustment device, control method thereof, and program
JP6087538B2 (en) Automatic focus detection apparatus, control method therefor, and imaging apparatus
JP2008197676A (en) Focusing device, imaging apparatus, and control method
JP2015111226A (en) Subject tracking device and control method of the same, imaging device, program, and storage medium
JP4769667B2 (en) Imaging device
JP6202880B2 (en) IMAGING DEVICE, IMAGING SYSTEM, IMAGING DEVICE CONTROL METHOD, PROGRAM, AND STORAGE MEDIUM
JP6521649B2 (en) Image pickup apparatus, control method thereof and program
JP2015118337A (en) Image capturing device, control method therefor, program, and storage medium

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20141211

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20141211

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20150824

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20150901

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20151023

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20160105

R151 Written notification of patent or utility model registration

Ref document number: 5868163

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151