JP6164978B2 - FOCUS ADJUSTMENT DEVICE, ITS CONTROL METHOD, CONTROL PROGRAM, AND IMAGING DEVICE - Google Patents

FOCUS ADJUSTMENT DEVICE, ITS CONTROL METHOD, CONTROL PROGRAM, AND IMAGING DEVICE Download PDF

Info

Publication number
JP6164978B2
JP6164978B2 JP2013171248A JP2013171248A JP6164978B2 JP 6164978 B2 JP6164978 B2 JP 6164978B2 JP 2013171248 A JP2013171248 A JP 2013171248A JP 2013171248 A JP2013171248 A JP 2013171248A JP 6164978 B2 JP6164978 B2 JP 6164978B2
Authority
JP
Japan
Prior art keywords
focus
focus adjustment
subject
lens
control unit
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
JP2013171248A
Other languages
Japanese (ja)
Other versions
JP2015040940A (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 JP2013171248A priority Critical patent/JP6164978B2/en
Publication of JP2015040940A publication Critical patent/JP2015040940A/en
Application granted granted Critical
Publication of JP6164978B2 publication Critical patent/JP6164978B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

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

Description

本発明は、焦点調整装置、その制御方法、および制御プログラム、並びに撮像装置に関し、特に、被写体を指定して動画撮影を行う際に用いられる焦点調整装置に関する。   The present invention relates to a focus adjustment apparatus, a control method thereof, a control program, and an imaging apparatus, and more particularly to a focus adjustment apparatus used when a subject is designated to perform moving image shooting.

従来、ビデオカメラ又はデジタルカメラなどの撮像装置では、被写体を自動的に認識して、当該認識した被写体に対して自動的に焦点調整を行う制御が行われている。そして、複数の被写体を認識して、これら被写体の優先度を切り替えて焦点調整を行うようにした撮像装置がある(特許文献1参照)。   Conventionally, in an imaging device such as a video camera or a digital camera, control is performed to automatically recognize a subject and automatically adjust the focus on the recognized subject. There is an imaging apparatus that recognizes a plurality of subjects and performs focus adjustment by switching the priorities of these subjects (see Patent Document 1).

ところで、撮像装置で用いられる焦点調整装置(つまり、オートフォーカス装置)では、撮像素子によって被写体像(光学像)を光電変換して得られた映像信号に基づいてその鮮鋭度をAF評価値として検出する。そして、AF評価値が最大となるようにフォーカスレンズの位置を駆動制御して焦点調整を行う。   By the way, in a focus adjustment device (that is, an autofocus device) used in an imaging device, the sharpness is detected as an AF evaluation value based on a video signal obtained by photoelectrically converting a subject image (optical image) by an imaging device. To do. Then, the focus adjustment is performed by driving and controlling the position of the focus lens so that the AF evaluation value is maximized.

一般に、AF評価値には、所定の周波数帯域を通過させるバンドパスフィルタ−を用いて抽出された映像信号における高周波成分レベルが用いられる。そして、被写体を撮影する際、当該被写体にピントが合うにつれてAF評価値が大きくなって、AF評価値が最大になるフォーカスレンズの位置が合焦位置となる。   In general, as the AF evaluation value, a high-frequency component level in a video signal extracted using a band-pass filter that passes a predetermined frequency band is used. When the subject is photographed, the AF evaluation value increases as the subject is focused, and the position of the focus lens that maximizes the AF evaluation value becomes the in-focus position.

但し、映像信号に応じてAF評価値を求めるので、ブレなどの影響によって撮影画像(つまり、映像信号)における空間周波数が低下して高周波成分が減少する。このため、被写体までの距離とは無関係にAF評価値が低下してしまうことがある。   However, since the AF evaluation value is obtained according to the video signal, the spatial frequency in the photographed image (that is, the video signal) is reduced due to the influence of blurring or the like, and the high frequency component is reduced. For this reason, the AF evaluation value may decrease regardless of the distance to the subject.

空間周波数の低下によって、今までユーザが意図する被写体に合焦していたにも拘わらず、撮像装置が被写体までの距離が変化したと判断して合焦位置を探す動作に入ってしまうことがある。その結果、ユーザの意図しない被写体に対して合焦されてしまうことがある。   Due to the decrease in the spatial frequency, the imaging apparatus may enter an operation of searching for a focus position by determining that the distance to the subject has changed even though the user has focused on the subject intended by the user. is there. As a result, a subject unintended by the user may be focused.

さらに、焦点調整を行う際、フォーカスレンズを断続的に駆動してAF評価値を得て、AF評価値が大きくなる方向にフォーカスレンズを制御する所謂微小駆動動作がある。また、特定の方向にフォーカスレンズを駆動しつつAF評価値を得て、複数のAF評価値をプロットした形状に応じて合焦位置を特定する山登り動作がある。   Furthermore, when performing focus adjustment, there is a so-called micro-drive operation in which the focus lens is intermittently driven to obtain an AF evaluation value, and the focus lens is controlled in a direction in which the AF evaluation value increases. Further, there is a hill climbing operation in which an AF evaluation value is obtained while driving the focus lens in a specific direction, and a focus position is specified according to a shape in which a plurality of AF evaluation values are plotted.

このような複数の焦点調整方式を使い分けて焦点調整を行う場合には次のよう問題点がある。   There are the following problems when focus adjustment is performed using a plurality of such focus adjustment methods.

まず微小駆動動作を行って合焦位置の方向および合焦位置の特定を行うと、前述のブレなどの影響がある場合には撮影画像が安定している場合と比べてAF評価値の変化を検出することが難しい。このため、合焦位置およびその方向の特定に時間が掛かってしまう。   First, when the direction of the in-focus position and the in-focus position are specified by performing a minute drive operation, the AF evaluation value changes when there is an influence of the above-described blurring compared to the case where the captured image is stable. It is difficult to detect. For this reason, it takes time to specify the in-focus position and its direction.

その結果、焦点調整の途中で山登り動作に遷移して、広い範囲において合焦位置を探索することになるが、AF評価値の連続した変化から合焦位置を特定する山登り動作ではブレなどの影響を受けやすい。このため、誤判定によって本来の合焦位置ではない位置にフォーカスレンズが停止することがある。さらに、合焦位置への追従動作が不安定になることがある。   As a result, a transition to hill-climbing operation is performed during focus adjustment, and the focus position is searched in a wide range. It is easy to receive. For this reason, the focus lens may stop at a position other than the original in-focus position due to erroneous determination. Furthermore, the follow-up operation to the in-focus position may become unstable.

特に、動画撮影の際には、合焦位置への追従動作を行う際に得られる画像が動画として記録されてしまうので、得られた動画が見苦しくなることがある。   In particular, when shooting a moving image, an image obtained when performing the follow-up operation to the in-focus position is recorded as a moving image, and thus the obtained moving image may be unsightly.

特開2008−206018号公報JP 2008-206018 A

上述のような問題点について、ユーザが任意に合焦動作を停止することができれば、撮像装置の使い勝手が向上する。一方、撮像装置にはタッチパネルが搭載され、表示部に表示された所謂スルー画像においてユーザが意図する被写体をタッチして合焦すべき被写体を指定するようにしたものがある。   If the user can arbitrarily stop the focusing operation with respect to the above-described problems, the usability of the imaging apparatus is improved. On the other hand, there is an image pickup apparatus that includes a touch panel and designates a subject to be focused by touching a subject intended by a user in a so-called through image displayed on a display unit.

しかしながら、このような撮像装置ではタッチパネル上で合焦すべき被写体を指定する操作と合焦動作を停止する操作とが異なるので、操作が煩雑となって使い勝手が悪くなってしまう。   However, in such an imaging apparatus, an operation for designating a subject to be focused on the touch panel is different from an operation for stopping the focusing operation, which makes the operation complicated and unusable.

従って、本発明の目的はブレなどによって画像に影響が生じる状況下において操作性を損なうことなくユーザが意図した被写体にピントを合わせることができる焦点調整装置、その制御方法、および制御プログラム、並びに撮像装置を提供することにある。   Accordingly, an object of the present invention is to provide a focus adjustment device that can focus on a subject intended by a user without impairing operability in a situation where an image is affected by blurring, a control method thereof, a control program, and an imaging To provide an apparatus.

上記の目的を達成するため、本発明による焦点調整装置は、フォーカスレンズを備える撮像光学系を介して入射した光学像に応じて得られた画像データに応じて前記フォーカスレンズを前記撮像光学系の光軸に沿って移動して焦点調整を行う焦点調整装置であって、前記画像データに応じた画像において指定された被写体に焦点を合わせる第1の焦点調整モードおよび前記画像データにおいて被写体を検出被写体として検出して当該検出被写体に焦点を合わせる第2の焦点調整モードを選択的に行う制御手段を有し、前記制御手段は、前記第1の焦点調整モードの際、前記画像において被写体が指定されると当該指定された被写体に焦点を合わせた後、前記フォーカスレンズの焦点位置を固定し、前記第2の焦点調整モードを実行している際に、前記画像において被写体が指定されると当該指定された被写体に焦点を合わせた後、前記フォーカスレンズによる焦点調整を継続することを特徴とする。   In order to achieve the above object, a focus adjustment apparatus according to the present invention includes a focus lens that is connected to an imaging optical system that includes a focus lens according to image data obtained according to an optical image. A focus adjustment device that performs focus adjustment by moving along an optical axis, wherein a subject is detected in a first focus adjustment mode for focusing on a subject specified in an image corresponding to the image data and the image data And a control unit that selectively performs a second focus adjustment mode that focuses on the detected subject, and the control unit specifies a subject in the image during the first focus adjustment mode. Then, after focusing on the designated subject, the focus position of the focus lens is fixed, and the second focus adjustment mode is executed. After the object is focused on the specified is the designated object in the image, characterized by continuing the focus adjustment by the focusing lens.

本発明による撮像装置は、フォーカスレンズを備える撮像光学系と、前記撮像光学系を介して入射した光学像に応じた画像データを得る撮像手段と、上記の焦点調整装置とを有することを特徴とする。   An image pickup apparatus according to the present invention includes an image pickup optical system including a focus lens, an image pickup unit that obtains image data according to an optical image incident through the image pickup optical system, and the focus adjustment apparatus described above. To do.

本発明による制御方法は、フォーカスレンズを備える撮像光学系を介して入射した光学像に応じて得られた画像データに応じて前記フォーカスレンズを前記撮像光学系の光軸に沿って移動して焦点調整を行う焦点調整装置の制御方法であって、前記画像データに応じた画像において指定された被写体に焦点を合わせる第1の焦点調整モードを行う第1の制御ステップと、前記画像データにおいて被写体を検出被写体として検出して当該検出被写体に焦点を合わせる第2の焦点調整モードを行う第2の制御手段とを有し、前記第1の制御ステップでは、前記第1の焦点調整モードの際、前記画像において被写体が指定されると当該指定された被写体に焦点を合わせた後、前記フォーカスレンズの焦点位置を固定し、前記第2の制御ステップでは、第2の焦点調整モードを実行している際に、前記画像において被写体が指定されると当該指定された被写体に焦点を合わせた後、前記フォーカスレンズによる焦点調整を継続することを特徴とする。   According to the control method of the present invention, the focus lens is moved along the optical axis of the imaging optical system in accordance with image data obtained according to an optical image incident through the imaging optical system including the focus lens. A control method of a focus adjustment apparatus that performs adjustment, wherein a first control step of performing a first focus adjustment mode for focusing on a subject specified in an image corresponding to the image data, and a subject in the image data And a second control means for performing a second focus adjustment mode for detecting the detected subject and focusing on the detected subject. In the first control step, in the first focus adjustment mode, When a subject is specified in the image, the focus position of the focus lens is fixed after focusing on the specified subject, and in the second control step, When running a second focal point adjustment mode, after the subject in the image is focused on the specified is the designated object, characterized by continuing the focus adjustment by the focusing lens.

本発明による制御プログラムは、フォーカスレンズを備える撮像光学系を介して入射した光学像に応じて得られた画像データに応じて前記フォーカスレンズを前記撮像光学系の光軸に沿って移動して焦点調整を行う焦点調整装置で用いられる制御プログラムであって、前記焦点調整装置が備えるコンピュータに、前記画像データに応じた画像において指定された被写体に焦点を合わせる第1の焦点調整モードを行う第1の制御ステップと、前記画像データにおいて被写体を検出被写体として検出して当該検出被写体に焦点を合わせる第2の焦点調整モードを行う第2の制御手段とを実行させ、前記第1の制御ステップでは、前記第1の焦点調整モードの際、前記画像において被写体が指定されると当該指定された被写体に焦点を合わせた後、前記フォーカスレンズの焦点位置を固定し、前記第2の制御ステップでは、第2の焦点調整モードを実行している際に、前記画像において被写体が指定されると当該指定された被写体に焦点を合わせた後、前記フォーカスレンズによる焦点調整を継続することを特徴とする。   The control program according to the present invention moves the focus lens along the optical axis of the imaging optical system according to image data obtained according to an optical image incident through the imaging optical system including the focus lens. A control program used in a focus adjustment apparatus that performs adjustment, wherein a first focus adjustment mode is performed in which a computer included in the focus adjustment apparatus performs a first focus adjustment mode for focusing on a subject specified in an image corresponding to the image data. And a second control means for detecting a subject as a detection subject in the image data and performing a second focus adjustment mode for focusing on the detection subject. In the first control step, In the first focus adjustment mode, when a subject is designated in the image, after focusing on the designated subject, When the focus position of the focus lens is fixed and the subject is designated in the image in the second control step when the second focus adjustment mode is executed, the designated subject is focused. After that, the focus adjustment by the focus lens is continued.

本発明によれば、ブレなどによって映像に影響が生じる状況下において操作性を損なうことなくユーザが意図した被写体にピントを合わせることができる。   According to the present invention, it is possible to focus on a subject intended by a user without impairing operability in a situation where an image is affected by blurring or the like.

本発明の第1の実施形態による焦点調整装置を備える撮像装置の一例についてその構成を示すブロック図である。It is a block diagram which shows the structure about an example of an imaging device provided with the focus adjustment apparatus by the 1st Embodiment of this invention. 図1に示すAF処理部の構成についてその一例を示すブロック図である。It is a block diagram which shows the example about the structure of the AF process part shown in FIG. 図1で説明したフォーカスレンズの位置とAF評価値および合焦度との関係を説明するための図であり、(a)はフォーカスレンズの位置とAF評価値との関係を示す図、(b)はフォーカスレンズの位置と合焦度との関係を示す図である。FIG. 2 is a diagram for explaining a relationship between the position of the focus lens described in FIG. 1, an AF evaluation value, and a focus degree, and (a) is a diagram illustrating a relationship between the position of the focus lens and an AF evaluation value; ) Is a diagram showing the relationship between the position of the focus lens and the degree of focus. 図1に示すカメラで行われる焦点調整処理の一例を説明するためのフローチャートである。3 is a flowchart for explaining an example of a focus adjustment process performed by the camera shown in FIG. 1. 図4に示す微小駆動動作の一例を説明するためのフローチャートである。5 is a flowchart for explaining an example of a minute driving operation shown in FIG. 4. 図4に示す山登り動作の一例を説明するためのフローチャートである。It is a flowchart for demonstrating an example of the mountain climbing operation | movement shown in FIG. 図4に示すAF評価値監視処理の一例を説明するためのフローチャートである。6 is a flowchart for explaining an example of an AF evaluation value monitoring process shown in FIG. 4. 図4に示す被写体指定処理の一例を説明するためのフローチャートである。5 is a flowchart for explaining an example of a subject designation process shown in FIG. 4. 図1に示すカメラで行われる焦点調整動作における状態遷移の一例を説明するための遷移図である。It is a transition diagram for demonstrating an example of the state transition in the focus adjustment operation | movement performed with the camera shown in FIG. 本発明の第2の実施形態に係るカメラで行われる焦点調整動作における状態遷移の一例を説明するための遷移図である。It is a transition diagram for demonstrating an example of the state transition in the focus adjustment operation | movement performed with the camera which concerns on the 2nd Embodiment of this invention.

以下、本発明の実施の形態による焦点調整装置を備える撮像装置の一例について図面を参照して説明する。   Hereinafter, an example of an imaging apparatus including a focus adjustment apparatus according to an embodiment of the present invention will be described with reference to the drawings.

[第1の実施形態]
図1は、本発明の第1の実施形態による焦点調整装置を備える撮像装置の一例についてその構成を示すブロック図である。
[First Embodiment]
FIG. 1 is a block diagram illustrating a configuration of an example of an imaging apparatus including a focus adjustment apparatus according to the first embodiment of the present invention.

<撮像装置全体の構成>
図示の撮像装置は、例えば、デジタルカメラ(以下単にカメラと呼ぶ)であり、所謂動画撮影機能を有している。システム制御部115はカメラ全体の制御を司り、例えば、CPU、RAM、およびROMを有している。そして、CPUはROMに予め記録されたプログラムに従ってRAMを作業領域として用い、カメラの動作を制御する。
<Configuration of the entire imaging device>
The illustrated imaging apparatus is, for example, a digital camera (hereinafter simply referred to as a camera) and has a so-called moving image shooting function. The system control unit 115 controls the entire camera and includes, for example, a CPU, a RAM, and a ROM. Then, the CPU uses the RAM as a work area according to a program recorded in advance in the ROM, and controls the operation of the camera.

後述するように、システム制御部115は、AF処理部105によって算出された焦点評価値に基づいて合焦位置(焦点位置ともいう)を特定する。そして、システム制御部115はフォーカスレンズ制御部104を制御してフォーカスレンズを光軸に沿って移動させて、自動焦点調整(AF)処理を行う。なお、焦点評価値は測距領域におけるコントラストの指標となる数値である。   As will be described later, the system control unit 115 specifies a focus position (also referred to as a focus position) based on the focus evaluation value calculated by the AF processing unit 105. Then, the system control unit 115 controls the focus lens control unit 104 to move the focus lens along the optical axis to perform an automatic focus adjustment (AF) process. The focus evaluation value is a numerical value serving as a contrast index in the distance measurement area.

撮影レンズユニット(以下単に撮影レンズと呼ぶ)100は、ズーム機能を備えている。ズームレンズ制御部101は、システム制御部115の制御下で焦点距離を変化させるズームレンズを駆動制御する。   The taking lens unit (hereinafter simply referred to as a taking lens) 100 has a zoom function. The zoom lens control unit 101 drives and controls a zoom lens that changes the focal length under the control of the system control unit 115.

絞り・シャッタ制御部102は、システム制御部115の制御下で光量を調節する絞りとシャッタとを駆動制御する。フォーカスレンズ制御部104は、システム制御部115の制御下でフォーカスレンズを駆動制御して、撮像素子108の受光面(撮像面ともいう)に焦点を合わせる。   The aperture / shutter controller 102 drives and controls an aperture and a shutter that adjust the amount of light under the control of the system controller 115. The focus lens control unit 104 drives and controls the focus lens under the control of the system control unit 115 to focus on the light receiving surface (also referred to as an imaging surface) of the image sensor 108.

なお、図示はしないが、ズームレンズ制御部101、絞り・シャッタ制御部102、およびフォーカスレンズ制御部104は、レンズなどの光学要素、絞り・シャッタなどの機構、そして、これらを駆動するために必要な各種装置を備えている。各種装置には、光学要素および上記の機構を駆動するためのアクチュエータ、当該アクチュエータを制御するための回路、およびD/A変換器などが含まれる。   Although not shown, the zoom lens control unit 101, the aperture / shutter control unit 102, and the focus lens control unit 104 are necessary for driving optical elements such as lenses, mechanisms such as an aperture / shutter, and the like. Equipped with various devices. Various devices include an optical element and an actuator for driving the above mechanism, a circuit for controlling the actuator, a D / A converter, and the like.

発光装置(ストロボ)106は、周囲に向けて光を発して被写体の輝度を調整する。EF処理部107は、システム制御部115からフラッシュオン信号を受けると、ストロボ106を制御して発光させる。システム制御部115は、ストロボ106を発光させる必要があると判断すると、EF処理部107に前述のフラッシュオン信号を送る。   The light emitting device (strobe) 106 emits light toward the surroundings to adjust the luminance of the subject. When receiving the flash-on signal from the system control unit 115, the EF processing unit 107 controls the flash 106 to emit light. When the system control unit 115 determines that the strobe 106 needs to emit light, the system control unit 115 sends the aforementioned flash-on signal to the EF processing unit 107.

撮像素子108は、入射光(光学像)に応じた電気信号(アナログ信号)を出力する。例えば、撮像素子108は、CCD又はCMOSイメージセンサであり、複数の光電変換素子を備えて、入射光を光電変換してアナログ信号である撮像信号(画像信号)を生成する。   The image sensor 108 outputs an electrical signal (analog signal) corresponding to incident light (optical image). For example, the imaging element 108 is a CCD or CMOS image sensor, and includes a plurality of photoelectric conversion elements, and photoelectrically converts incident light to generate an imaging signal (image signal) that is an analog signal.

撮像処理部109は、CDS(相関2重サンプリング)回路、非線形増幅回路、およびA/D変換部を備えている。CDS回路は、撮像素子108の出力である撮像信号におけるノイズを相関2重サンプリングによって除去する。非線形増幅回路は、ノイズが除去された撮像信号について信号増幅(ゲイン制御)を行う。そして、A/D変換部は、信号増幅された撮像信号をデジタル信号(画像データ)に変換する。   The imaging processing unit 109 includes a CDS (correlated double sampling) circuit, a nonlinear amplification circuit, and an A / D conversion unit. The CDS circuit removes noise in the imaging signal that is the output of the imaging device 108 by correlated double sampling. The nonlinear amplifier circuit performs signal amplification (gain control) on the imaging signal from which noise has been removed. The A / D converter converts the signal-amplified imaging signal into a digital signal (image data).

なお、撮像素子108および撮像処理部109が被写体の撮像によって画像データを得る撮像部として機能する。   Note that the imaging element 108 and the imaging processing unit 109 function as an imaging unit that obtains image data by imaging a subject.

画像処理部110は、画像データについてガンマ補正および輪郭補正などの所定の画像処理を行う。さらに、画像処理部110は、WB処理部111の制御によって画像データに対してホワイトバランス処理を行う。   The image processing unit 110 performs predetermined image processing such as gamma correction and contour correction on the image data. Further, the image processing unit 110 performs white balance processing on the image data under the control of the WB processing unit 111.

フォーマット変換部112は、画像処理部110の出力である処理済み画像データを、記録および表示に適合するフォーマットにフォーマット変換する。   The format converter 112 converts the processed image data, which is the output of the image processor 110, into a format suitable for recording and display.

DRAM(ランダムアクセスメモリ)113は、高速の内蔵メモリであって、フォーマット変換された画像データ(変換済み画像データ)を一時的に記憶する高速バッファとして用いられる。また、DRAM113は、変換済み画像データを圧縮・伸張する際の作業用メモリとしても用いられる。   A DRAM (Random Access Memory) 113 is a high-speed built-in memory, and is used as a high-speed buffer that temporarily stores image data that has undergone format conversion (converted image data). The DRAM 113 is also used as a working memory when compressing / decompressing the converted image data.

画像記録部114は、メモリカードなどの記録媒体およびインターフェースを備えており、画像記録部114にはDRAM113に記憶された変換済み画像データが記録される。   The image recording unit 114 includes a recording medium such as a memory card and an interface, and converted image data stored in the DRAM 113 is recorded in the image recording unit 114.

AE処理部103は、撮像処理部109の出力である画像データに基づいて被写体の明るさに応じた測光値を求める。つまり、AE処理部103と撮像処理部109とは被写体を撮影する際の露出条件を検出する露出条件検出部として機能する。   The AE processing unit 103 obtains a photometric value corresponding to the brightness of the subject based on the image data output from the imaging processing unit 109. That is, the AE processing unit 103 and the imaging processing unit 109 function as an exposure condition detection unit that detects an exposure condition when photographing a subject.

また、AE処理部103は、被写体の輝度が低い場合(所定の輝度レベル未満である場合)に、撮像信号を増幅して適正露出を維持するための信号増幅量(ゲイン量)を決定する。言い換えると、AE処理部103は、撮像信号を適正な露出に補正するための信号増幅量(ゲイン量)を決定する。   Further, the AE processing unit 103 determines a signal amplification amount (gain amount) for amplifying the imaging signal and maintaining a proper exposure when the luminance of the subject is low (less than a predetermined luminance level). In other words, the AE processing unit 103 determines a signal amplification amount (gain amount) for correcting the imaging signal to an appropriate exposure.

システム制御部115は、AE処理部103で求められた測光値に基づいて、絞り・シャッタ制御部102と撮像処理部109の非線形増幅回路とを制御する。これによって、システム制御部115は、露光量を自動的に調整する。つまり、システム制御部115は、露出条件検出部であるAE処理部103が検出した露出条件(つまり、測光値)を用いて自動露出(AE)処理を行うことになる。   The system control unit 115 controls the aperture / shutter control unit 102 and the nonlinear amplification circuit of the imaging processing unit 109 based on the photometric value obtained by the AE processing unit 103. Accordingly, the system control unit 115 automatically adjusts the exposure amount. That is, the system control unit 115 performs automatic exposure (AE) processing using the exposure conditions (that is, photometric values) detected by the AE processing unit 103 that is an exposure condition detection unit.

AF処理部105は、撮像処理部109の出力である画像データに応じてAF評価値を求める。そして、システム制御部115は、当該AF評価値に応じてフォーカスレンズ制御部104を制御し自動焦点調整(AF)処理を行う。   The AF processing unit 105 obtains an AF evaluation value according to the image data that is the output of the imaging processing unit 109. Then, the system control unit 115 controls the focus lens control unit 104 according to the AF evaluation value and performs an automatic focus adjustment (AF) process.

図2は、図1に示すAF処理部105の構成についてその一例を示すブロック図である。   FIG. 2 is a block diagram showing an example of the configuration of the AF processing unit 105 shown in FIG.

AF処理部105は測距ゲート122を有しており、測距ゲート122は画像データについてその画面の一部(例えば、AF枠で示される領域)を抽出する(以下この画像データを抽出画像データと呼ぶ)。そして、この抽出画像データはバンドパスフィルタ(BPF)123およびローパスフィルタ(LPF)125に与えられる。   The AF processing unit 105 includes a distance measurement gate 122, and the distance measurement gate 122 extracts a part of the screen (for example, an area indicated by an AF frame) from the image data (hereinafter, this image data is extracted image data). Called). The extracted image data is given to a band pass filter (BPF) 123 and a low pass filter (LPF) 125.

BPF123は所定の周波数帯域の高周波成分を抽出して、当該高周波成分を検出(検波)部(DET)124に送る。DET124は、当該高周波成分についてピークホールド処理および積分処理を行って、その積分処理結果をAF評価値として出力する。   The BPF 123 extracts a high frequency component in a predetermined frequency band and sends the high frequency component to the detection (detection) unit (DET) 124. The DET 124 performs peak hold processing and integration processing on the high-frequency component, and outputs the integration processing result as an AF evaluation value.

図示のAF処理部105は、画像データについてどの程度ピントが合っているかを示す合焦度を求める。前述のように、抽出画像データはLPF125に与えられ、LPF125は所定の低周波成分のみを通過させる。つまり、LPF125は高域周波成分を除去して低周波成分をライン最大値部(Line・Max)126およびライン最小値部(Line・Min)127に送る。   The illustrated AF processing unit 105 obtains a degree of focus indicating how much the image data is in focus. As described above, the extracted image data is given to the LPF 125, and the LPF 125 passes only a predetermined low frequency component. In other words, the LPF 125 removes the high frequency component and sends the low frequency component to the line maximum value portion (Line · Max) 126 and the line minimum value portion (Line · Min) 127.

Line・Max126は水平1ラインにおける最大値を検出し、一方、Line・Min127は水平1ラインにおける最小値を検出する。   Line · Max 126 detects the maximum value in one horizontal line, while Line · Min 127 detects the minimum value in one horizontal line.

加算部128は水平1ラインの最大値と最小値との差分(最大値−最小値)を求める。そして、ピークホールド部(Peak Hold)129は、加算部128から水平1ライン毎の差分を受けて、抽出画像データにおける全てのラインにおいて差分(最大値−最小値)のピーク値MMを検出する。このピーク値MMは抽出画像データにおけるコントラストの最大値に相当する。   The adder 128 calculates a difference (maximum value−minimum value) between the maximum value and the minimum value of one horizontal line. The peak hold unit (Peak Hold) 129 receives the difference for each horizontal line from the adding unit 128 and detects the peak value MM of the difference (maximum value−minimum value) in all the lines in the extracted image data. This peak value MM corresponds to the maximum contrast value in the extracted image data.

除算部130には、前述のAF評価値(ここでは、ピークホールド値)が与えられるとともに、ピーク値MMが与えられる。除算部130はそして、ピークホールド値をピーク値MMで除算して、当該除算結果を合焦度として出力する。   The division unit 130 is given the AF evaluation value (here, the peak hold value) and the peak value MM. Then, the division unit 130 divides the peak hold value by the peak value MM and outputs the division result as a focus degree.

図3は、図1で説明したフォーカスレンズの位置(レンズ位置)とAF評価値および合焦度との関係を説明するための図である。そして、図3(a)はレンズ位置とAF評価値との関係を示す図であり、図3(b)はレンズ位置と合焦度との関係を示す図である。   FIG. 3 is a diagram for explaining the relationship between the position (lens position) of the focus lens described in FIG. 1, the AF evaluation value, and the degree of focus. FIG. 3A shows the relationship between the lens position and the AF evaluation value, and FIG. 3B shows the relationship between the lens position and the degree of focus.

前述のように、AF評価値は積分処理結果であるので、ノイズなどの影響を受けにくいものの、被写体の種類および撮像条件(例えば、被写体輝度、照度、焦点距離)に応じて合焦位置における値が大きく変化する(図3(a)参照)。つまり、図示の領域AではAF評価値は極めて高くなるものの、領域BではAF評価値の変化が激しい。また、領域Cにおいては、AF評価値は低い。   As described above, since the AF evaluation value is the result of the integration process, the AF evaluation value is not easily affected by noise or the like. Changes significantly (see FIG. 3A). That is, in the illustrated area A, the AF evaluation value is extremely high, but in the area B, the AF evaluation value changes drastically. In region C, the AF evaluation value is low.

一方、合焦度は正規化することによって、合焦位置においては所定の値(図3(b)に示すMax)に近づき、画像がボケるにつれてその値が小さくなる傾向を示す。このため、後述するように、自動焦点調整処理(AF処理)の際にはAF評価値および合焦度を用いて、AF処理が行われる。   On the other hand, by normalizing the in-focus degree, the in-focus position approaches a predetermined value (Max shown in FIG. 3B), and the value tends to decrease as the image is blurred. For this reason, as will be described later, the AF process is performed using the AF evaluation value and the degree of focus during the automatic focus adjustment process (AF process).

再び図1を参照して、VRAM(画像表示用メモリ)116には、フォーマット変換された画像データ(ここでは、表示用画像データ)が記録される。操作表示部117は、システム制御部115の制御下で画像表示、操作補助のための表示、およびカメラ状態の表示を行う。   Referring to FIG. 1 again, format-converted image data (here, display image data) is recorded in VRAM (image display memory) 116. The operation display unit 117 performs image display, display for assisting operation, and display of the camera state under the control of the system control unit 115.

操作表示部117には、撮影の際にはVRAM116に一時的に記録された画像データに応じた画像が撮影画面として表示される。さらに、操作表示部117は、各種ボタンおよびタッチパネルなどを備えており、ユーザは操作表示部117を用いてカメラの操作を行うことができる。   The operation display unit 117 displays an image corresponding to the image data temporarily recorded in the VRAM 116 at the time of shooting as a shooting screen. Furthermore, the operation display unit 117 includes various buttons and a touch panel, and the user can operate the camera using the operation display unit 117.

メインスイッチ(メインSW)118は、カメラの電源をON/OFFするためのスイッチである。第1のスイッチ(SW1)119は、AFおよびAEなどの撮影スタンバイ動作(撮影準備動作)を行うためのスイッチである。第2のスイッチ(SW2)120は、第1のスイッチ119が操作された後、撮像を行う際に操作されるスイッチである。   The main switch (main SW) 118 is a switch for turning on / off the power of the camera. The first switch (SW1) 119 is a switch for performing a shooting standby operation (shooting preparation operation) such as AF and AE. The second switch (SW2) 120 is a switch that is operated when imaging is performed after the first switch 119 is operated.

<基本動作>
図4は、図1に示すカメラで行われる焦点調整処理の一例を説明するためのフローチャートである。
<Basic operation>
FIG. 4 is a flowchart for explaining an example of the focus adjustment process performed by the camera shown in FIG.

図示のフローチャートに係る処理はカメラによる動画記録中および待機中に継続して行われる。さらに、当該フローチャートに係る処理はコンピュータプログラム(ソフトウェア)としてシステム制御部115に備えられたROMに記憶されている。そして、メインSW118の操作によって電源が投入されて、カメラが起動した後に、システム制御部115はROMに記憶されたプログラムに応じて処理を実行する。   The processing according to the flowchart shown in the figure is continuously performed during moving image recording and standby by the camera. Furthermore, the processing according to the flowchart is stored in a ROM provided in the system control unit 115 as a computer program (software). Then, after the power is turned on by the operation of the main SW 118 and the camera is activated, the system control unit 115 executes processing according to the program stored in the ROM.

焦点調整処理を開始すると、システム制御部115はまず、後述する微小駆動動作を行う(ステップS200)。ここで、微小駆動動作とは、断続的に少しずつフォーカスレンズを光軸に沿って移動させて、断続的に得られるAF評価値の変化に応じて合焦位置の方向および合焦位置(焦点位置ともいう)を特定することをいう。   When the focus adjustment process is started, the system control unit 115 first performs a minute driving operation described later (step S200). Here, the minute driving operation refers to the direction of the in-focus position and the in-focus position (focal point) according to the change in the AF evaluation value obtained intermittently by moving the focus lens little by little along the optical axis. To identify).

微小駆動動作によって合焦位置の方向および合焦位置を特定した後、システム制御部115は、後述する被写体指定処理を行う(ステップS201)。被写体指定処理においては、操作表示部117に備えられたタッチパネルを用いてユーザが画面における被写体を指定すると、焦点調整動作によって合焦させる被写体が設定される。   After specifying the direction of the in-focus position and the in-focus position by the minute driving operation, the system control unit 115 performs subject designation processing described later (step S201). In the subject designation process, when the user designates a subject on the screen using the touch panel provided in the operation display unit 117, the subject to be focused is set by the focus adjustment operation.

さらに、被写体指定処理においては、図2で説明した測距ゲート122によって抽出される画像データの一部領域(例えば、AF枠の領域)が設定される。加えて、被写体指定処理においては、後述するように、焦点調整動作の状態遷移が変更される。   Further, in the subject specifying process, a partial area (for example, an AF frame area) of the image data extracted by the distance measuring gate 122 described with reference to FIG. 2 is set. In addition, in the subject designation process, the state transition of the focus adjustment operation is changed as will be described later.

続いて、システム制御部115は、ステップS200およびS201の処理結果に応じてAF評価値監視処理に遷移するか否かを判定する(ステップS202)。AF評価値監視処理に遷移しないと判定すると(ステップS202において、NO)、システム制御部115は山登り動作に遷移するか否かを判定する(ステップS203)。山登り動作に遷移しないと判定すると(ステップS203において、NO)、システム制御部115はステップS200の処理に戻って微小駆動動作を継続する。   Subsequently, the system control unit 115 determines whether or not to transition to the AF evaluation value monitoring process according to the processing results of steps S200 and S201 (step S202). If it is determined that the transition to the AF evaluation value monitoring process is not made (NO in step S202), the system control unit 115 determines whether or not the transition is made to a hill climbing operation (step S203). If it is determined that the transition to the hill-climbing operation is not made (NO in step S203), the system control unit 115 returns to the process of step S200 and continues the minute driving operation.

山登り動作に遷移すると判定すると(ステップS203において、YES)、システム制御部115は、後述する山登り動作を行う(ステップS204)。ここで、山登り動作とは、連続的にフォーカスレンズを光軸に沿って移動させた結果得られた複数のAF評価値の変化に応じて合焦位置を特定する手法である。   If it is determined that a transition is made to a hill-climbing operation (YES in step S203), system control unit 115 performs a hill-climbing operation described later (step S204). Here, the hill-climbing operation is a method for specifying the in-focus position in accordance with changes in a plurality of AF evaluation values obtained as a result of continuously moving the focus lens along the optical axis.

ステップS204の処理の後、システム制御部115は、後述する被写体指定処理を行う(ステップS205)。ステップS205における被写体指定処理では、操作表示部117に備えられたタッチパネルを用いてユーザが画面上の被写体を指定したか否かに応じて、焦点調整動作の状態遷移が変更される。   After the processing in step S204, the system control unit 115 performs subject designation processing described later (step S205). In the subject designation process in step S205, the state transition of the focus adjustment operation is changed according to whether or not the user has designated a subject on the screen using the touch panel provided in the operation display unit 117.

続いて、システム制御部115はステップS204およびS205の処理結果に応じて微小駆動動作に遷移するか否かを判定する(ステップS206)。微小駆動動作に遷移しないと判定すると(ステップS206において、NO)、システム制御部115はAF評価値監視処理に遷移するか否かを判定する(ステップS207)。   Subsequently, the system control unit 115 determines whether or not to shift to the minute driving operation according to the processing results of steps S204 and S205 (step S206). If it is determined that the micro drive operation is not changed (NO in step S206), the system control unit 115 determines whether or not the operation is shifted to the AF evaluation value monitoring process (step S207).

AF評価値監視処理に遷移しないと判定すると(ステップS207において、NO)、システム制御部115はステップS204の処理に戻って山登り動作を行う。一方、AF評価値監視処理に遷移すると判定すると(ステップS207において、YES)、システム制御部115はAF固定フラグの状態を判定する(ステップS208)。ここでは、システム制御部115はAF固定フラグがFALSEであるか否かを判定する。   If it is determined that the transition to the AF evaluation value monitoring process is not made (NO in step S207), the system control unit 115 returns to the process in step S204 and performs a hill climbing operation. On the other hand, if it is determined to shift to the AF evaluation value monitoring process (YES in step S207), the system control unit 115 determines the state of the AF fixed flag (step S208). Here, the system control unit 115 determines whether or not the AF fixed flag is FALSE.

ここで、AF固定フラグは被写体指定処理において設定されるフラグである。そして、AF固定フラグの状態に応じて、システム制御部115はAF評価値監視処理の遷移を継続するか又はAF評価値監視処理に遷移せずにAFを固定して焦点調整動作を終了するかを決定する。   Here, the AF fixed flag is a flag set in the subject specifying process. Then, depending on the state of the AF fixed flag, whether the system control unit 115 continues the transition of the AF evaluation value monitoring process or whether the AF is fixed without completing the AF evaluation value monitoring process and the focus adjustment operation is terminated. To decide.

AF固定フラグがFALSEであると(ステップS208において、YES)、システム制御部115は、前述のステップS200で特定した合焦位置又は非合焦として中断したレンズ位置におけるAF評価値を記憶する(ステップS209)。そして、システム制御部115はAF評価値監視処理を行う(ステップS210)。   When the AF fixed flag is FALSE (YES in step S208), the system control unit 115 stores the AF evaluation value at the in-focus position specified in step S200 described above or the lens position interrupted as out-of-focus (step S208). S209). Then, the system control unit 115 performs AF evaluation value monitoring processing (step S210).

ステップS210で行われるAF評価値監視処理では、システム制御部115は、記憶したAF評価値と周期的に得られるAF評価値とを比較して、その変化を監視する。   In the AF evaluation value monitoring process performed in step S210, the system control unit 115 compares the stored AF evaluation value with the periodically obtained AF evaluation value and monitors the change.

続いて、システム制御部115は被写体指定処理を行う(ステップS211)。ステップS211における被写体指定処理では、操作表示部117に備えられたタッチパネルを用いてユーザが被写体を指定したか否かに応じて焦点調整動作の状態遷移が変更される。   Subsequently, the system control unit 115 performs subject designation processing (step S211). In the subject designation process in step S211, the state transition of the focus adjustment operation is changed according to whether or not the user designates the subject using the touch panel provided in the operation display unit 117.

ステップS211の処理の後、システム制御部115はステップS210およびS211の処理結果に応じて微小駆動動作に遷移するか否かを判定する(ステップS212)。微小駆動動作に遷移すると判定すると(ステップS212において、YES)、システム制御部115は、ステップS200の処理に戻って微小駆動動作を行う。   After the process of step S211, the system control unit 115 determines whether or not to make a transition to the minute driving operation according to the process results of steps S210 and S211 (step S212). If it is determined that a transition to the minute driving operation is made (YES in step S212), the system control unit 115 returns to the process of step S200 and performs the minute driving operation.

一方、微小駆動動作に遷移しないと判定すると(ステップS212において、NO)、システム制御部115は、ステップS210の処理に戻ってAF評価値監視処理を行う。   On the other hand, when it is determined that the transition to the minute driving operation is not made (NO in step S212), the system control unit 115 returns to the process of step S210 and performs the AF evaluation value monitoring process.

AF固定フラグがFALSEでないと(ステップS208において、NO)、つまり、AF固定フラグがTRUEであると、システム制御部115は、AF固定フラグをFALSEとして(ステップS213)、AFを固定する(ステップS214)。そして、システム制御部115は焦点調整処理を終了する。   If the AF fixed flag is not FALSE (NO in step S208), that is, if the AF fixed flag is TRUE, the system control unit 115 sets the AF fixed flag to FALSE (step S213) and fixes AF (step S214). ). Then, the system control unit 115 ends the focus adjustment process.

なお、ステップS206において、微小駆動動作に遷移すると判定すると(ステップS206において、YES)、システム制御部115はステップS200の処理に戻って微小駆動動作を行う。また、ステップS202において、AF評価値監視処理に遷移すると判定すると(ステップS202において、YES)、システム制御部115はステップS208の処理に進んで、AF固定フラグがFALSEであるか否かを判定する。   If it is determined in step S206 that the mode is to be changed to the minute driving operation (YES in step S206), the system control unit 115 returns to the process in step S200 and performs the minute driving operation. If it is determined in step S202 that the process proceeds to the AF evaluation value monitoring process (YES in step S202), the system control unit 115 proceeds to the process of step S208 and determines whether or not the AF fixed flag is FALSE. .

このように、焦点調整処理においては、システム制御部115は微小駆動動作、山登り動作、およびAF評価値監視処理のいずれかを選択して、様々なシーンの変化に応じて合焦状態を維持するようにフォーカスレンズを制御することになる。   As described above, in the focus adjustment process, the system control unit 115 selects any one of the minute driving operation, the hill-climbing operation, and the AF evaluation value monitoring process, and maintains the focused state according to various scene changes. Thus, the focus lens is controlled.

<微小駆動動作>
図5は、図4に示す微小駆動動作の一例を説明するためのフローチャートである。
<Small drive operation>
FIG. 5 is a flowchart for explaining an example of the minute driving operation shown in FIG.

前述したように、微小駆動動作とは、断続的に少しずつフォーカスレンズを光軸に沿って移動させた結果得られたAF評価値の変化に応じて合焦位置の方向および合焦位置を特定する手法である。   As described above, the micro-drive operation is to specify the direction of the in-focus position and the in-focus position according to the change in the AF evaluation value obtained as a result of intermittently moving the focus lens along the optical axis. It is a technique to do.

微小駆動動作を開始すると、システム制御部115は、AF処理部105からAF評価値を取得する(ステップS300)。続いて、システム制御部115は、AF処理部105から合焦度を取得する(ステップS301)。   When the minute driving operation is started, the system control unit 115 acquires an AF evaluation value from the AF processing unit 105 (step S300). Subsequently, the system control unit 115 acquires the degree of focus from the AF processing unit 105 (step S301).

次に、システム制御部115は微小駆動におけるフォーカスレンズの移動量を設定する(ステップS302)。ここでは、合焦位置に近づく程、フォーカスレンズの移動量を小さくし、合焦位置から外れる程フォーカスレンズの移動量を大きくして微小駆動動作において安定したピント追従を行う。   Next, the system control unit 115 sets the movement amount of the focus lens in the minute driving (step S302). Here, the closer the in-focus position is, the smaller the amount of movement of the focus lens is, and the farther the distance from the in-focus position is, the larger the amount of movement of the focus lens is.

このため、システム制御部115はステップS301で取得した合焦度(つまり、現在の合焦度)に応じてフォーカスレンズの移動量を設定する。   For this reason, the system control unit 115 sets the amount of movement of the focus lens in accordance with the degree of focus acquired in step S301 (that is, the current degree of focus).

図3(b)を参照して、例えば、合焦度に関して第1の合焦閾値α、第2の合焦閾値β、および第3の合焦閾値γが設定されて、α>β>γの関係にあるものとする。この第1〜第3の合焦閾値α〜γを用いて、システム制御部115は次のようにフォーカスレンズの移動量を設定する。   Referring to FIG. 3B, for example, the first focus threshold value α, the second focus threshold value β, and the third focus threshold value γ are set with respect to the focus degree, and α> β> γ. It shall be in the relationship. Using the first to third focus threshold values α to γ, the system control unit 115 sets the movement amount of the focus lens as follows.

合焦度>αの場合、システム制御部115はフォーカスレンズの移動量を移動量Step1とする。α≧合焦度>βの場合、システム制御部115はフォーカスレンズの移動量を移動量Step2とする。β≧合焦度>γの場合、システム制御部115はフォーカスレンズの移動量を移動量Step3とする。そして、γ≧合焦度の場合、システム制御部115はフォーカスレンズの移動量を移動量Step4とする。   When the degree of focus> α, the system control unit 115 sets the movement amount of the focus lens as the movement amount Step1. When α ≧ focus degree> β, the system control unit 115 sets the movement amount of the focus lens as the movement amount Step2. When β ≧ focus degree> γ, the system control unit 115 sets the movement amount of the focus lens as the movement amount Step3. When γ ≧ focus degree, the system control unit 115 sets the movement amount of the focus lens as the movement amount Step4.

なお、Step1<Step2<Step3<Step4である。   Note that Step1 <Step2 <Step3 <Step4.

次に、システム制御部115は現在のAF評価値が(直前のAF評価値+変化閾値A)よりも大きいか否かを判定する(ステップS303)。ここで変化閾値AはAF評価値が明確に上昇したと判定するための閾値であって、AF評価値の増加量に加えてノイズ成分によるばらつきを考慮して設定される。   Next, the system control unit 115 determines whether or not the current AF evaluation value is larger than (immediate AF evaluation value + change threshold A) (step S303). Here, the change threshold A is a threshold for determining that the AF evaluation value has clearly increased, and is set in consideration of variations due to noise components in addition to the increase amount of the AF evaluation value.

現在のAF評価値>直前のAF評価値+変化閾値Aであると(ステップS303において、YES)、システム制御部115は内蔵する方向特定カウンタをインクリメントする(ステップS304)。この方向特定カウンタは合焦位置の方向を特定するためのものであり、方向特定カウンタのカウント値が大きくなる程合焦位置に向けて安定してAF評価値が増加していることを示している。   If current AF evaluation value> immediate AF evaluation value + change threshold A (YES in step S303), system control unit 115 increments a built-in direction specifying counter (step S304). This direction specifying counter is for specifying the direction of the in-focus position, and indicates that the AF evaluation value increases stably toward the in-focus position as the count value of the direction specifying counter increases. Yes.

続いて、システム制御部115はフォーカスレンズ制御部104を制御して、ステップS302で設定した移動量に応じて現在のレンズ位置からフォーカスレンズを光軸に沿って移動させる(ステップS305)。この際、その移動方向は直前の移動方向と同一とされる。   Subsequently, the system control unit 115 controls the focus lens control unit 104 to move the focus lens from the current lens position along the optical axis according to the movement amount set in step S302 (step S305). At this time, the movement direction is the same as the previous movement direction.

一方、現在のAF評価値≦直前のAF評価値+変化閾値Aであると(ステップS303において、NO)、システム制御部115は現在のAF評価値が(直前のAF評価値−変化閾値A)よりも大きいか否かを判定する(ステップS306)。ステップS306の処理では、システム制御部115はAF評価値の減少傾向を検出することになる。   On the other hand, if the current AF evaluation value ≦ the previous AF evaluation value + the change threshold A (NO in step S303), the system control unit 115 determines that the current AF evaluation value is (the previous AF evaluation value−the change threshold A). It is determined whether it is larger than (step S306). In the process of step S306, the system control unit 115 detects a decreasing tendency of the AF evaluation value.

現在のAF評価値≧直前のAF評価値−変化閾値Aであると、ステップS302で設定した移動量に応じて現在のレンズ位置からフォーカスレンズを光軸に沿って移動させる(ステップS307)。ステップS307では、システム制御部115がフォーカスレンズ制御部104を制御して、フォーカスレンズを光軸に沿って移動させる。   If the current AF evaluation value ≧ the previous AF evaluation value−the change threshold A, the focus lens is moved along the optical axis from the current lens position in accordance with the movement amount set in step S302 (step S307). In step S307, the system control unit 115 controls the focus lens control unit 104 to move the focus lens along the optical axis.

この際、明示的なAF評価値の増減が検出できないので、システム制御部115は方向特定カウンタによるカウントを行わない。   At this time, since an increase or decrease in the explicit AF evaluation value cannot be detected, the system control unit 115 does not perform counting by the direction specifying counter.

現在のAF評価値<直前のAF評価値−変化閾値Aであると(ステップS306において、YES)、システム制御部115は方向特定カウンタをクリアする(ステップS308)。そして、システム制御部115はフォーカスレンズ制御部104を制御して直前の移動方向とは反対方向に、ステップS302で設定した移動量に応じて現在のレンズ位置からフォーカスレンズを光軸に沿って移動させる(ステップS309)。   If current AF evaluation value <immediate AF evaluation value−change threshold A (YES in step S306), system control unit 115 clears the direction specifying counter (step S308). Then, the system control unit 115 controls the focus lens control unit 104 to move the focus lens from the current lens position along the optical axis in the direction opposite to the previous movement direction according to the movement amount set in step S302. (Step S309).

ステップS305、S307、又はS309の処理に続いて、システム制御部115は所定の回数、同一のエリア内でフォーカスレンズを往復したか否かを判定する(ステップS310)。   Following the processing of step S305, S307, or S309, the system control unit 115 determines whether or not the focus lens has reciprocated within the same area a predetermined number of times (step S310).

図3(a)を参照して、例えば、領域Aで示すように合焦位置の近傍までレンズ位置が収束した場合には、微小駆動動作において合焦位置を通過するとAF評価値が減少するので、次の制御タイミングでAF評価値は反転することになる。そして、微小駆動動作を継続すると、最終的に合焦位置を跨いでフォーカスレンズが往復動作することになる。よって、所定の回数同一エリア内でフォーカスレンズが往復していれば、フォーカスレンズが合焦位置にあると推定することができる。   Referring to FIG. 3A, for example, when the lens position converges to the vicinity of the in-focus position as indicated by region A, the AF evaluation value decreases when the in-focus position is passed in the minute driving operation. The AF evaluation value is inverted at the next control timing. When the minute driving operation is continued, the focus lens finally reciprocates across the in-focus position. Therefore, if the focus lens reciprocates within the same area a predetermined number of times, it can be estimated that the focus lens is in the in-focus position.

再び図5を参照して、所定の回数同一のエリア内でフォーカスレンズが往復していないと(ステップS310において、NO)、システム制御部115は方向特定カウンタのカウント値が所定のカウント値以上であるか否かを判定する(ステップS311)。方向特定カウンタのカウント値が所定のカウント値未満であると(ステップS311において、NO)、一連の微小駆動動作を所定の回数行い、かつステップS301で取得した合焦度が所定の閾値よりも低いか否かを判定する(ステップS312)。   Referring to FIG. 5 again, if the focus lens does not reciprocate within the same area a predetermined number of times (NO in step S310), system control unit 115 determines that the count value of the direction specifying counter is equal to or greater than the predetermined count value. It is determined whether or not there is (step S311). If the count value of the direction specifying counter is less than the predetermined count value (NO in step S311), a series of minute driving operations are performed a predetermined number of times, and the degree of focus acquired in step S301 is lower than the predetermined threshold value. Is determined (step S312).

図3(a)を参照すると、例えば、領域CのようにAF評価値の変化が乏しい領域(エリア)においては、所定の回数以内で合焦位置およびその方向が特定できないことがある。つまり、領域Cのようにサーチ範囲が広く、しかも合焦位置から現在のレンズ位置が離れすぎていると合焦位置を探索することが困難となるか又はサーチ範囲外に合焦位置が存在することがある。このような状況では、微小駆動動作を継続しても合焦位置とその方向を探索することは困難である。   Referring to FIG. 3A, for example, in an area (area) where the AF evaluation value hardly changes like the area C, the in-focus position and its direction may not be specified within a predetermined number of times. That is, if the search range is wide as in the region C and the current lens position is too far from the focus position, it is difficult to search for the focus position, or the focus position exists outside the search range. Sometimes. In such a situation, it is difficult to search for the in-focus position and its direction even if the minute driving operation is continued.

再び図5を参照して、一連の微小駆動動作が所定の回数行われ、かつ合焦度が所定の閾値よりも低い状態でないと(ステップS312において、NO)、システム制御部115は微小駆動動作を継続すると判定して(ステップS313)、焦点調整処理に戻る。   Referring to FIG. 5 again, if the series of micro driving operations are performed a predetermined number of times and the degree of focus is not lower than the predetermined threshold (NO in step S312), system control unit 115 performs micro driving operations. Is determined to continue (step S313), and the process returns to the focus adjustment process.

一連の微小駆動動作が所定の回数行われ、かつ合焦度が所定の閾値よりも低い状態であると(ステップS312において、YES)、システム制御部115は非合焦と判定し、微小駆動動作から山登り動作に遷移する(ステップS314)。そして、システム制御部115は焦点調整処理に戻る。   When a series of micro drive operations are performed a predetermined number of times and the in-focus degree is lower than a predetermined threshold (YES in step S312), system control unit 115 determines that the focus is not in focus, and the micro drive operation is performed. To hill-climbing operation (step S314). Then, the system control unit 115 returns to the focus adjustment process.

方向特定カウンタのカウント値が所定のカウント値以上であると(ステップS311において、YES)、システム制御部115は方向特定と判定し、微小駆動動作から山登り動作に遷移する(ステップS315)。そして、システム制御部115は焦点調整処理に戻る。   If the count value of the direction specifying counter is equal to or greater than the predetermined count value (YES in step S311), system control unit 115 determines that the direction is specified, and transitions from a minute driving operation to a hill climbing operation (step S315). Then, the system control unit 115 returns to the focus adjustment process.

所定の回数同一のエリア内でフォーカスレンズが往復していると(ステップS310において、YES)、システム制御部115は合焦と判定し、微小駆動動作からAF評価値監視処理に遷移する(ステップS316)。そして、システム制御部115は焦点調整処理に戻る。   If the focus lens reciprocates within the same area a predetermined number of times (YES in step S310), system control unit 115 determines that the focus is in focus, and transitions from the micro drive operation to the AF evaluation value monitoring process (step S316). ). Then, the system control unit 115 returns to the focus adjustment process.

なお、ステップS310〜S316までの処理では、システム制御部115は周期的に得られるAF評価値の変化を検出して、当該検出結果に基づいて微小駆動動作における判定を行う。   In the processing from step S310 to step S316, the system control unit 115 detects a change in the AF evaluation value obtained periodically and makes a determination in the minute driving operation based on the detection result.

<山登り動作>
図6は、図4に示す山登り動作の一例を説明するためのフローチャートである。
<Mountain climbing action>
FIG. 6 is a flowchart for explaining an example of the mountain climbing operation shown in FIG.

前述のように、山登り動作とは、連続的にフォーカスレンズを光軸に沿って移動させた結果得られた複数のAF評価値の変化に応じて合焦位置を特定する手法である。   As described above, the hill-climbing operation is a method for specifying the in-focus position in accordance with changes in a plurality of AF evaluation values obtained as a result of continuously moving the focus lens along the optical axis.

山登り動作を開始すると、システム制御部115はAF処理部105からAF評価値および当該AF評価値に対応するフォーカスレンズの位置(レンズ位置)を取得する(ステップS400)。次に、システム制御部115はAF処理部105から合焦度を取得する(ステップS401)。   When the mountain climbing operation is started, the system control unit 115 acquires an AF evaluation value and a focus lens position (lens position) corresponding to the AF evaluation value from the AF processing unit 105 (step S400). Next, the system control unit 115 acquires the degree of focus from the AF processing unit 105 (step S401).

続いて、システム制御部115は合焦度に応じて山登り動作におけるフォーカスレンズの移動速度(レンズ速度)を設定する(ステップS402)。ここでは、フォーカスレンズが合焦位置に近づく程レンズ速度を遅くし、フォーカスレンズが合焦位置を外れる程レンズ速度を速くして山登り動作において安定してピント追従が行えるようにする。   Subsequently, the system control unit 115 sets the moving speed (lens speed) of the focus lens in the hill climbing operation according to the degree of focus (step S402). Here, the lens speed is decreased as the focus lens approaches the in-focus position, and the lens speed is increased as the focus lens moves out of the in-focus position so that the focus tracking can be stably performed in the hill-climbing operation.

図3(b)を参照して、前述のように、第1の合焦閾値α>第2の合焦閾値β>第3の合焦閾値γであるとすると、レンズ速度は次のようになる。   Referring to FIG. 3B, as described above, assuming that the first focus threshold value α> the second focus threshold value β> the third focus threshold value γ, the lens speed is as follows: Become.

合焦度>αの場合、システム制御部115はレンズ速度を速度Speed1とする。α≧合焦度>βの場合、システム制御部115はレンズ速度を速度Speed2とする。β≧合焦度>γの場合、システム制御部115はレンズ速度を速度Speed3とする。そして、γ≧合焦度の場合、システム制御部115はレンズ速度を速度Speed4とする。   When the degree of focusing is greater than α, the system control unit 115 sets the lens speed to speed Speed1. When α ≧ focus degree> β, the system control unit 115 sets the lens speed to speed Speed2. When β ≧ focus degree> γ, the system control unit 115 sets the lens speed to speed Speed3. When γ ≧ focus degree, the system control unit 115 sets the lens speed to speed Speed4.

なお、Speed1<Speed2<Speed3<Speed4である。   Note that Speed1 <Speed2 <Speed3 <Speed4.

再び図6を参照して、レンズ速度を設定した後、システム制御部115はフォーカスレンズが停止中であるか否かを判定する(ステップS403)。なお、フォーカスレンズは、微小駆動動作から山登り動作に遷移した直後又は山登り動作中にフォーカスレンズがサーチ範囲の端に到達した場合のいずれかに停止中となる。   Referring to FIG. 6 again, after setting the lens speed, the system control unit 115 determines whether or not the focus lens is stopped (step S403). Note that the focus lens is stopped either immediately after transition from the minute driving operation to the hill-climbing operation or when the focus lens reaches the end of the search range during the hill-climbing operation.

フォーカスレンズが停止中であると(ステップS403において、YES)、システム制御部115は現在のレンズ位置が移動端であるか否かを判定する(ステップS405)。レンズ位置が移動端でないと(ステップS405において、NO)、システム制御部115はフォーカスレンズが微小駆動動作から山登り動作に遷移した直後であると判断する。そして、微小駆動動作における進行方向を指定方向として引き継いでフォーカスレンズを移動させる(ステップS406)。   If the focus lens is stopped (YES in step S403), the system control unit 115 determines whether or not the current lens position is the moving end (step S405). If the lens position is not the moving end (NO in step S405), the system control unit 115 determines that the focus lens has just shifted from the minute driving operation to the mountain climbing operation. Then, the focus lens is moved by taking the traveling direction in the minute driving operation as the designated direction (step S406).

レンズ位置が移動端であると(ステップS405において、YES)、システム制御部115は今までの進行方向とは反対方向にフォーカスレンズを移動させる(ステップS407)。   If the lens position is the moving end (YES in step S405), the system control unit 115 moves the focus lens in the direction opposite to the traveling direction so far (step S407).

ステップS406又はS407の処理に続いて、システム制御部115はフォーカスレンズが所定の回数、移動端に到達したか否かを判定する(ステップS408)。なお、フォーカスレンズが停止中でないと(ステップS403において、NO)、システム制御部115はステップS408の処理に進む。そして、フォーカスレンズが所定の回数移動端に到達すると(ステップS408において、YES)、システム制御部115は、フォーカスレンズ制御部104によってフォーカスレンズを停止する(ステップS409)。   Following the processing of step S406 or S407, the system control unit 115 determines whether or not the focus lens has reached the moving end a predetermined number of times (step S408). If the focus lens is not stopped (NO in step S403), the system control unit 115 proceeds to the process of step S408. When the focus lens reaches the moving end a predetermined number of times (YES in step S408), system control unit 115 stops the focus lens by focus lens control unit 104 (step S409).

図3(a)を参照して、少なくともサーチ範囲の両方の端(移動端)に到達しても、合焦位置が特定できない場合には、サーチ範囲全域が領域CのようにAF評価値の変化が乏しい領域であって、合焦位置はフォーカスレンズのサーチ範囲外に存在すると推定できる。このような状況下で山登り動作を継続すると、ピント変動が大きくなってピント変動の大きな状態が繰り返されることになる。   Referring to FIG. 3A, if the in-focus position cannot be specified even if at least both ends (moving ends) of the search range are reached, the entire search range has the AF evaluation value as in region C. It is an area where the change is scarce, and it can be estimated that the in-focus position is outside the search range of the focus lens. If the mountain climbing operation is continued under such circumstances, the focus variation becomes large, and the state where the focus variation is large is repeated.

このような状態を回避するため、前述のように、フォーカスレンズが所定の回数移動端に到達すると、システム制御部115は、フォーカスレンズ制御部104によってフォーカスレンズを停止する。そして、システム制御部115は山登り動作における判定結果を非合焦として、AF評価値監視処理に遷移し(ステップS410)、焦点調整処理に戻る。   In order to avoid such a state, as described above, when the focus lens reaches the moving end a predetermined number of times, the system control unit 115 causes the focus lens control unit 104 to stop the focus lens. Then, the system control unit 115 sets the determination result in the hill climbing operation as out-of-focus, shifts to the AF evaluation value monitoring process (step S410), and returns to the focus adjustment process.

一方、フォーカスレンズが所定の回数移動端に到達しないと(ステップS408において、NO)、システム制御部115は、現在のAF評価値と直前のAF評価値とを比較する。そして、現在のAF評価値が直前のAF評価値よりも大きいか否かを判定する(ステップS411)。現在のAF評価値>直前のAF評価値であると(ステップS411において、YES)、システム制御部115は山登り動作を継続すると判断して、山登り動作を続行する(ステップS412)。そして、システム制御部115は焦点調整処理に戻る。   On the other hand, if the focus lens does not reach the moving end a predetermined number of times (NO in step S408), system control unit 115 compares the current AF evaluation value with the immediately preceding AF evaluation value. Then, it is determined whether or not the current AF evaluation value is larger than the immediately preceding AF evaluation value (step S411). If the current AF evaluation value> the previous AF evaluation value (YES in step S411), the system control unit 115 determines to continue the hill-climbing operation, and continues the hill-climbing operation (step S412). Then, the system control unit 115 returns to the focus adjustment process.

図3(a)に示すように、領域Bにおいて合焦位置の方向に正しく山登り動作を行っている場合などAF評価値の増加傾向が検出できる場合には、当該方向に向けて山登り動作が行われることになる。   As shown in FIG. 3A, when an upward trend of the AF evaluation value can be detected such as when the hill-climbing operation is correctly performed in the direction of the in-focus position in the region B, the hill-climbing operation is performed in the direction. Will be.

現在のAF評価値≦直前のAF評価値であると(ステップS411において、NO)、システム制御部115はAF評価値がピークを越えて減少したか否かを判定する(ステップS413)。AF評価値がピークを越えて減少すると(ステップS413において、YES)、システム制御部115はフォーカスレンズ制御部104によってフォーカスレンズを停止させる(ステップS414)。   If the current AF evaluation value ≦ the previous AF evaluation value (NO in step S411), the system control unit 115 determines whether or not the AF evaluation value has decreased beyond the peak (step S413). When the AF evaluation value decreases beyond the peak (YES in step S413), system control unit 115 causes focus lens control unit 104 to stop the focus lens (step S414).

例えば、図3(a)に示す領域Bから領域Aに向けて山登り動作を行う場合には、AF評価値がピークを越えて減少することになる。   For example, when a hill-climbing operation is performed from region B to region A shown in FIG. 3A, the AF evaluation value decreases beyond the peak.

ステップS414の処理の後、システム制御部115は山登り動作における判定結果を合焦として、微小駆動動作に遷移する(ステップS415)。そして、システム制御部115は、フォーカスレンズ制御部によってフォーカスレンズをAF評価値がピークを示す位置に移動させて(ステップ416)、焦点調整処理に戻る。   After the process of step S414, the system control unit 115 shifts to the micro drive operation with the determination result in the hill climbing operation as the focus (step S415). Then, the system control unit 115 causes the focus lens control unit to move the focus lens to a position where the AF evaluation value shows a peak (step 416), and returns to the focus adjustment processing.

一方、AF評価値がピークを越えて減少しないと(ステップS413において、NO)、システム制御部115はフォーカスレンズの移動方向を反転して、反対方向にフォーカスレンズを移動させる(ステップS417)。   On the other hand, if the AF evaluation value does not decrease beyond the peak (NO in step S413), the system control unit 115 reverses the moving direction of the focus lens and moves the focus lens in the opposite direction (step S417).

例えば、図3(a)に示す領域Bにおいて合焦位置とは反対方向に山登り動作が行われると、AF評価値がピークを越えて減少しないことになる。   For example, if the mountain climbing operation is performed in the direction opposite to the in-focus position in the region B shown in FIG. 3A, the AF evaluation value does not decrease beyond the peak.

ステップS417の処理の後、システム制御部115は山登り動作を継続すると判断して、山登り動作を続行する(ステップS418)。そして、システム制御部115は焦点調整処理に戻る。   After the process of step S417, the system control unit 115 determines that the mountain climbing operation is continued, and continues the mountain climbing operation (step S418). Then, the system control unit 115 returns to the focus adjustment process.

なお、ステップS408〜S418までの処理は、周期的に得られるAF評価値の変化を検出して、当該変化に基づいて山登り動作における判定を行う。   In the processes from step S408 to S418, a change in the AF evaluation value obtained periodically is detected, and a determination in the hill climbing operation is performed based on the change.

<AF評価値監視処理>
図7は、図4に示すAF評価値監視処理の一例を説明するためのフローチャートである。なお、前述のように、AF評価値監視処理とは、予め記憶されたAF評価値に対して現在のAF評価値が変動したか否かを検出するための処理である。
<AF evaluation value monitoring process>
FIG. 7 is a flowchart for explaining an example of the AF evaluation value monitoring process shown in FIG. As described above, the AF evaluation value monitoring process is a process for detecting whether or not the current AF evaluation value has changed with respect to the previously stored AF evaluation value.

AF評価値監視処理を開始すると、システム制御部115はAF処理部105からAF評価値(これは最新のAF評価値である)を取得する(ステップS500)。次に、システム制御部115は図4に示すステップS209で記憶したAF評価値と最新のAF評価値とを比較して、その差分である変動量(変動値)が予め定められた変動閾値よりも大きいか否かを判定する(ステップS501)。   When the AF evaluation value monitoring process is started, the system control unit 115 acquires an AF evaluation value (this is the latest AF evaluation value) from the AF processing unit 105 (step S500). Next, the system control unit 115 compares the AF evaluation value stored in step S209 shown in FIG. 4 with the latest AF evaluation value, and the variation amount (variation value) that is the difference is determined based on a predetermined variation threshold. Is also larger (step S501).

変動量が変動閾値よりも大きいと(ステップS501において、YES)、つまり、AF評価値が大きく変動していると、システム制御部115は微小駆動動作に遷移する(ステップS502)。そして、システム制御部115は焦点調整処理に戻る。   If the fluctuation amount is larger than the fluctuation threshold (YES in step S501), that is, if the AF evaluation value fluctuates greatly, the system control unit 115 transitions to a minute driving operation (step S502). Then, the system control unit 115 returns to the focus adjustment process.

変動量が変動閾値以下であると(ステップS501において、NO)、システム制御部115はAF評価値監視処理を継続すると判定して、AF評価値監視処理を続行する(ステップS503)。そして、システム制御部115は焦点調整処理に戻る。   If the fluctuation amount is equal to or less than the fluctuation threshold (NO in step S501), the system control unit 115 determines to continue the AF evaluation value monitoring process, and continues the AF evaluation value monitoring process (step S503). Then, the system control unit 115 returns to the focus adjustment process.

上述の説明から容易に理解できるように、図4に示すステップS209〜ステップS212の処理において、AF評価値の変動が小さく安定している場合にはAF評価値監視処理が周期的に継続して行われることになる。   As can be easily understood from the above description, in the processing of step S209 to step S212 shown in FIG. 4, when the fluctuation of the AF evaluation value is small and stable, the AF evaluation value monitoring processing is periodically continued. Will be done.

<被写体指定処理>
図8は、図4に示す被写体指定処理の一例を説明するためのフローチャートである。
<Subject designation processing>
FIG. 8 is a flowchart for explaining an example of the subject designation process shown in FIG.

前述のように、被写体指定処理では、ユーザの操作によって被写体が指定された際に焦点調整動作(焦点調整処理)によって合焦させる被写体を設定する。そして、さらに測距ゲート122(図2)で抽出する画像データの領域(AF枠の領域)を設定する。そして、焦点調整動作における状態遷移を変更する。   As described above, in the subject designation process, a subject to be focused is set by the focus adjustment operation (focus adjustment process) when the subject is designated by the user's operation. Further, an image data area (an AF frame area) to be extracted by the distance measuring gate 122 (FIG. 2) is set. Then, the state transition in the focus adjustment operation is changed.

被写体指定処理を開始すると、システム制御部115は操作表示部117に備えられたタッチパネルによってユーザが画面上の被写体を指定したか否かを判定する(ステップS600)。ユーザ操作によって被写体が指定されると(ステップS600において、YES)、システム制御部115は焦点調整動作における遷移すべき状態を微少駆動動作に設定する(ステップS601)。   When the subject designation processing is started, the system control unit 115 determines whether or not the user has designated a subject on the screen using the touch panel provided in the operation display unit 117 (step S600). When the subject is designated by a user operation (YES in step S600), system control unit 115 sets the state to be changed in the focus adjustment operation to the minute drive operation (step S601).

続いて、システム制御部115は、AF枠自動モード(第2の焦点調整モード)であるか又はAF枠指定モード(第1の焦点調整モード)であるかを判定する(ステップS602)。AF枠自動モード(第2の焦点調整モード)では、AF枠設定モードがAF枠の位置を画像データから検出した被写体(検出被写体)の位置に自動的に設定する。また、AF枠指定モード(第1の焦点調整モード)では、AF枠の位置をユーザが指定した位置に設定する。   Subsequently, the system control unit 115 determines whether the AF frame automatic mode (second focus adjustment mode) or the AF frame designation mode (first focus adjustment mode) is set (step S602). In the AF frame automatic mode (second focus adjustment mode), the AF frame setting mode automatically sets the position of the AF frame to the position of the subject (detected subject) detected from the image data. In the AF frame designation mode (first focus adjustment mode), the position of the AF frame is set to a position designated by the user.

AF枠設定モードがAF枠指定モードであると(ステップS602において、YES)、システム制御部115は、ユーザが指定した位置にAF枠を設定し(ステップS603)、AF固定フラグをTRUEに設定する(ステップS604)。そして、システム制御部115は焦点調整処理に戻る。   If the AF frame setting mode is the AF frame designation mode (YES in step S602), system control unit 115 sets the AF frame at the position designated by the user (step S603), and sets the AF fixed flag to TRUE. (Step S604). Then, the system control unit 115 returns to the focus adjustment process.

なお、システム制御部115はAF枠指定モードおよびAF枠自動モードを選択的に行う。   The system control unit 115 selectively performs an AF frame designation mode and an AF frame automatic mode.

一方、AF枠モードがAF枠自動モードであると(ステップS602において、NO)、システム制御部115は焦点調整動作で合焦させる被写体をユーザが指定した被写体に設定する(ステップS605)。その後、システム制御部115はAF固定フラグをFALSEに設定して(ステップS606)、焦点調整処理に戻る。   On the other hand, when the AF frame mode is the AF frame automatic mode (NO in step S602), the system control unit 115 sets the subject to be focused by the focus adjustment operation to the subject designated by the user (step S605). Thereafter, the system control unit 115 sets the AF fixed flag to FALSE (step S606), and returns to the focus adjustment process.

なお、AF固定フラグはDRAM113に保存される。また、ユーザ操作によって被写体が指定されないと(ステップS600において、NO)、システム制御部115は焦点調整処理(焦点調整動作)に戻る。   Note that the AF fixed flag is stored in the DRAM 113. If the subject is not designated by the user operation (NO in step S600), the system control unit 115 returns to the focus adjustment process (focus adjustment operation).

このようにして、ユーザ操作によって被写体が指定されると、焦点調整動作で合焦させる被写体又はAF枠の位置を設定するとともに、焦点調整動作を微少駆動動作に遷移させる。そして、システム制御部115は指定された被写体又はAF枠の位置に対して焦点調整動作をやり直すことになる。   In this way, when a subject is specified by a user operation, the position of the subject or AF frame to be focused by the focus adjustment operation is set, and the focus adjustment operation is shifted to a minute drive operation. Then, the system control unit 115 redoes the focus adjustment operation for the designated subject or AF frame position.

<焦点調整動作状態遷移>
図9は、図1に示すカメラで行われる焦点調整動作における状態遷移の一例を説明するための遷移図である。
<Focus adjustment operation state transition>
FIG. 9 is a transition diagram for explaining an example of state transition in the focus adjustment operation performed by the camera shown in FIG.

いま、動画モードでカメラが起動されると、焦点調整動作における動作状態が微少駆動動作状態に遷移し、前述の微少駆動動作が行われる。微少駆動動作状態においては図4に示すステップS200〜S203の一連の処理が繰り返して行われる。   Now, when the camera is activated in the moving image mode, the operation state in the focus adjustment operation transitions to the minute drive operation state, and the aforementioned minute drive operation is performed. In the minute drive operation state, a series of processes in steps S200 to S203 shown in FIG. 4 are repeated.

当該処理中に山登り動作状態に遷移する遷移条件が成立すると、焦点調整動作における動作状態は山登り動作状態に遷移する。また、図4に示すステップS200〜S203の一連の処理中にAF評価値監視状態に遷移する遷移条件が成立すると、焦点調整動作における動作状態はAF評価値監視状態に遷移する。   If the transition condition for transitioning to the hill-climbing operation state is satisfied during the processing, the operation state in the focus adjustment operation transitions to the hill-climbing operation state. In addition, when a transition condition for transitioning to the AF evaluation value monitoring state is satisfied during the series of processing in steps S200 to S203 illustrated in FIG. 4, the operation state in the focus adjustment operation transitions to the AF evaluation value monitoring state.

山登り動作状態においては、図4に示すステップS204〜S207の一連の処理が繰り返して行われる。当該処理中に微少駆動動作状態に遷移する遷移条件が成立すると、焦点調整動作における動作状態は微少駆動動作状態に遷移する。   In the hill-climbing operation state, a series of processes in steps S204 to S207 shown in FIG. 4 are repeated. When the transition condition for transitioning to the minute driving operation state is satisfied during the processing, the operation state in the focus adjustment operation transitions to the minute driving operation state.

また、図4に示すステップS204〜S207の一連の処理中にAF評価値監視処理状態に遷移する遷移条件が成立すると、焦点調整動作における動作状態はAF評価値監視処理状態に遷移する。   In addition, when a transition condition for transitioning to the AF evaluation value monitoring processing state is satisfied during the series of steps S204 to S207 illustrated in FIG. 4, the operation state in the focus adjustment operation transitions to the AF evaluation value monitoring processing state.

AF評価値監視処理状態においては、図4に示すステップS210〜S212の一連の処理が繰り返して行われる。当該処理中に微少駆動動作状態に遷移する遷移条件が成立すると、焦点調整動作における動作状態は微少駆動動作状態に遷移する。   In the AF evaluation value monitoring process state, a series of processes in steps S210 to S212 shown in FIG. 4 are repeated. When the transition condition for transitioning to the minute driving operation state is satisfied during the processing, the operation state in the focus adjustment operation transitions to the minute driving operation state.

このようにして、焦点調整動作においては、その動作状態が遷移条件に応じて微小駆動動作状態、山登り動作状態、又はAF評価値監視状態に継続的に遷移しつつ、様々なシーンの変化に応じて合焦状態を維持する。   In this way, in the focus adjustment operation, the operation state continuously changes to the minute drive operation state, the hill-climbing operation state, or the AF evaluation value monitoring state according to the transition condition, and responds to changes in various scenes. To maintain the in-focus state.

ここで、焦点調整動作の際に操作表示部117に備えられたタッチパネルをユーザが操作して被写体が指定されると、図8に示すステップS601〜S606の一連の処理が行われる。当該処理によって焦点調整動作における動作状態は微少駆動動作状態に遷移し、ユーザによって指定された被写体に対して焦点調整動作がやり直される。また、AF枠設定モードがAF枠指定モードであると、AF固定フラグがTRUEに設定される。   Here, when the user designates a subject by operating the touch panel provided in the operation display unit 117 during the focus adjustment operation, a series of processes in steps S601 to S606 shown in FIG. 8 are performed. By this processing, the operation state in the focus adjustment operation is changed to the minute drive operation state, and the focus adjustment operation is performed again on the subject specified by the user. When the AF frame setting mode is the AF frame designation mode, the AF fixed flag is set to TRUE.

そして、微少駆動動作状態から始まる焦点調整動作の一連の状態遷移を経て焦点調整動作がやり直された後、AF評価値監視処理状態に遷移する。この際、AF固定フラグがTRUEに設定されていると、焦点調整動作は停止されてAF固定状態となる。   Then, after the focus adjustment operation is performed again through a series of state transitions of the focus adjustment operation starting from the minute drive operation state, the state shifts to the AF evaluation value monitoring processing state. At this time, if the AF fixed flag is set to TRUE, the focus adjustment operation is stopped and the AF fixed state is set.

図4に示すフローチャートにおいては、ステップS202又はステップS207においてAF評価値監視処理状態に遷移する場合、ステップS208においてDRAM113に保存されたAF固定フラグの状態が判定される。   In the flowchart shown in FIG. 4, when transitioning to the AF evaluation value monitoring processing state in step S202 or step S207, the state of the AF fixed flag stored in the DRAM 113 is determined in step S208.

AF固定フラグがTRUEであると、ステップS213においてAF固定フラグがFALSEに設定された後、ステップS214においてAFが固定(焦点調整動作を停止)されて焦点調整動作が終了する。   If the AF fixed flag is TRUE, after the AF fixed flag is set to FALSE in step S213, AF is fixed (stops the focus adjustment operation) in step S214, and the focus adjustment operation ends.

以上のように、微少駆動動作、山登り動作、又はAF評価値監視処理を継続的に実施中にユーザから被写体を指示されると、再度一連の焦点調整動作が行われて指定された被写体に対して焦点を調整した後にAFが固定される。   As described above, when the subject is instructed by the user while performing the minute driving operation, the hill climbing operation, or the AF evaluation value monitoring process continuously, a series of focus adjustment operations are performed again on the designated subject. After the focus is adjusted, AF is fixed.

なお、AF固定状態で被写体が指定された場合には、図9に示すように焦点調整動作における動作状態が微少駆動状態に遷移して焦点調整動作が再開されることになる。   When the subject is specified in the AF fixed state, the operation state in the focus adjustment operation is changed to the minute drive state as shown in FIG. 9, and the focus adjustment operation is resumed.

このように、本発明の第1の実施形態では、焦点調整動作(焦点調整処理)中にユーザの操作によって被写体が指示されると、再度一連の焦点調整動作が行われて指定された被写体に対して焦点が調整された後にAFが固定される。   As described above, in the first embodiment of the present invention, when a subject is instructed by a user operation during the focus adjustment operation (focus adjustment processing), a series of focus adjustment operations are performed again to the designated subject. On the other hand, AF is fixed after the focus is adjusted.

これによって、カメラのブレなどが画像に影響を与えるような状況下でAF評価値が期待した変化傾向を示さない場合であっても、操作性を損なうことなくユーザが意図した被写体にピントを合わせることができる。   As a result, even if the AF evaluation value does not show the expected change tendency under the situation where camera shake or the like affects the image, the subject intended by the user is focused without impairing the operability. be able to.

[第2の実施形態]
続いて、本発明の第2の実施形態による焦点調整装置を備えるカメラについて説明する。なお、第2の実施形態に係るカメラの構成は図1および図2に示すカメラと同様である。
[Second Embodiment]
Subsequently, a camera provided with a focus adjustment apparatus according to a second embodiment of the present invention will be described. The configuration of the camera according to the second embodiment is the same as that of the camera shown in FIGS.

図10は、本発明の第2の実施形態に係るカメラで行われる焦点調整動作における状態遷移の一例を説明するための遷移図である。   FIG. 10 is a transition diagram for explaining an example of state transition in the focus adjustment operation performed by the camera according to the second embodiment of the present invention.

ここでは、動画記録中(つまり、動画データ記録中)および待機中における微少駆動動作および山登り駆動動作において、カメラのブレなどの影響によって所定の時間が経過しても合焦しない場合の焦点調整動作における状態遷移を説明する。それ以外の状態遷移については第1の実施形態と同様であるので説明を省略する。   Here, the focus adjustment operation when the camera is not focused even if a predetermined time elapses due to the effects of camera shake, etc. during the recording of moving images (that is, during recording of moving image data) and during the standby operation The state transition in will be described. Since other state transitions are the same as those in the first embodiment, description thereof will be omitted.

図10において、微少駆動動作状態又は山登り動作状態において所定の時間が経過しても合焦しない場合には、システム制御部115はタイムアウトとして焦点調整動作を停止しAF固定状態とする。   In FIG. 10, in the minute drive operation state or the hill-climbing operation state, when the in-focus state is not achieved even after a predetermined time has elapsed, the system control unit 115 stops the focus adjustment operation as a timeout and sets the AF fixed state.

これによって、カメラのブレなどの影響によって所定の時間が経過しても合焦しない場合には、その時点におけるピント位置にAFが固定されて、焦点調整動作が迷走することを防止することができる。   As a result, when the in-focus state is not achieved even after a predetermined time due to camera shake or the like, the AF is fixed at the focus position at that time, and the focus adjustment operation can be prevented from straying. .

上述の被写体指定処理において、合焦度(AF評価値の信頼性)の度合いに応じてAF固定フラグを設定するようにしてもよい。例えば、合焦度が所定値よりも高い場合にはAF固定フラグをTRUEに設定する。一方、合焦度が所定値以下の場合にはAF固定フラグをFALSEに設定する。   In the subject specifying process described above, the AF fixed flag may be set according to the degree of focus (the reliability of the AF evaluation value). For example, when the degree of focus is higher than a predetermined value, the AF fixed flag is set to TRUE. On the other hand, if the degree of focus is less than or equal to a predetermined value, the AF fixed flag is set to FALSE.

これによって、AF評価値の信頼性が低い場合には、ユーザによって被写体が指示されて再度一連の焦点調整動作を行い、指定された被写体に対して焦点を調整した後にAFが固定されることなく焦点調整動作が継続して行われることになる。   Thus, when the reliability of the AF evaluation value is low, the subject is instructed by the user, a series of focus adjustment operations are performed again, and the AF is not fixed after the focus is adjusted with respect to the designated subject. The focus adjustment operation is continuously performed.

この結果、AF評価値が期待した変化傾向を示さない場合であっても、ユーザが意図した被写体にピントを合わせることが可能となる。   As a result, even if the AF evaluation value does not show the expected change tendency, it is possible to focus on the subject intended by the user.

さらに、被写体指定処理において、絞りの絞り込み量に応じてAF固定フラグを設定するようにしてもよい。例えば、絞り込み量が大きく被写界深度が深いことによって焦点調整の精度が比較的要求されない場合には、AF固定フラグをTRUEに設定する。一方、絞り込み量が小さく被写界深度が浅いことによって焦点調整の精度が要求される場合にはAF固定フラグをFALSEに設定する。   Further, in the subject specifying process, the AF fixed flag may be set according to the aperture amount. For example, if the focus adjustment accuracy is relatively not required due to the large aperture amount and the deep depth of field, the AF fixed flag is set to TRUE. On the other hand, the AF fixed flag is set to FALSE when the focus adjustment accuracy is required due to the small amount of aperture and the shallow depth of field.

これによって、焦点調整の精度が要求される場合には、ユーザが被写体を指示して再度一連の焦点調整動作を行い、指定された被写体に対して焦点が調整された後AFが固定されることなく焦点調整動作が継続して行われる。   As a result, when focus adjustment accuracy is required, the user designates the subject, performs a series of focus adjustment operations again, and after the focus is adjusted for the designated subject, AF is fixed. The focus adjustment operation is continuously performed.

この結果、絞り込み量が小さく被写界深度が浅いことによって焦点調整の精度が要求される場合であっても、ユーザが意図した被写体にピントを合わせることが可能となる。   As a result, it is possible to focus on the subject intended by the user even when the focus adjustment accuracy is required due to the small aperture amount and the shallow depth of field.

加えて、被写体指定処理において、システム制御部115は画像データに応じて被写体が動体か否かを判定してAF固定フラグを設定するようにしてもよい。例えば、被写体が動体でない場合にはAF固定フラグをTRUEに設定し、被写体が動体である場合にはAF固定フラグをFALSEに設定する。   In addition, in the subject designation process, the system control unit 115 may determine whether the subject is a moving object according to the image data and set the AF fixed flag. For example, if the subject is not a moving object, the AF fixed flag is set to TRUE, and if the subject is a moving object, the AF fixed flag is set to FALSE.

これによって、被写体が動体である場合に、ユーザが被写体を指示して再度一連の焦点調整動作を行い指定された被写体に対して焦点が調整された後AFが固定されることなく焦点調整動作が継続して行われる。   As a result, when the subject is a moving object, after the user designates the subject and performs a series of focus adjustment operations again to adjust the focus on the designated subject, the focus adjustment operation is performed without fixing the AF. Continued.

この結果、動いている被写体(動体)が指定された場合であっても、ユーザが意図した被写体にピントを合わせることが可能となる。   As a result, even when a moving subject (moving body) is designated, it is possible to focus on the subject intended by the user.

また、被写体指定処理において、加速度センサなどを用いてカメラが三脚などに固定されているか否かを判定してAF固定フラグを設定するようにしてもよい。例えば、カメラが三脚に固定されている場合にはAF固定フラグをTRUEに設定し、カメラが三脚等に固定されていない場合にはAF固定フラグをFALSEにする。   In the subject designation process, an AF sensor may be used to determine whether the camera is fixed to a tripod or the like using an acceleration sensor or the like and set the AF fixing flag. For example, when the camera is fixed to a tripod, the AF fixing flag is set to TRUE, and when the camera is not fixed to a tripod or the like, the AF fixing flag is set to FALSE.

これによって、カメラのブレなどによってAF評価値が期待した変化傾向を示さない場合に、ユーザが被写体を指示して再度一連の焦点調整動作を行い指定された被写体に対して焦点が調整された後AFが継続して行われる。   As a result, when the AF evaluation value does not show the expected change tendency due to camera shake or the like, after the user designates the subject and performs a series of focus adjustment operations again, the focus is adjusted with respect to the designated subject. AF is continuously performed.

この結果、AF評価値が期待した変化傾向を示さない場合であっても、ユーザが意図した被写体にピントを合わせることが可能となる。   As a result, even if the AF evaluation value does not show the expected change tendency, it is possible to focus on the subject intended by the user.

なお、AFを固定する場合には絞りを所定量絞り込むようにすれば、被写界深度を深く設定してAFを固定した後のピント変動をある程度許容することができる。   When the AF is fixed, if the aperture is reduced by a predetermined amount, the focus fluctuation after the AF is fixed by setting the depth of field deep can be allowed to some extent.

このようにして、本発明の実施の形態では、ブレなどによって映像に影響が生じる状況下において操作性を損なうことなくユーザが意図した被写体にピントを合わせることができる。   In this manner, in the embodiment of the present invention, it is possible to focus on the subject intended by the user without impairing operability in a situation where the image is affected by blurring or the like.

上述の説明から明らかなように、図1に示す例においては、システム制御部115が制御手段として機能し、AF処理部105が焦点評価値算出手段として機能する。また、システム制御部115およびフォーカスレンズ制御部104が第1の焦点調整手段および第2の焦点調整手段として機能する。   As is apparent from the above description, in the example shown in FIG. 1, the system control unit 115 functions as a control unit, and the AF processing unit 105 functions as a focus evaluation value calculation unit. In addition, the system control unit 115 and the focus lens control unit 104 function as a first focus adjustment unit and a second focus adjustment unit.

さらに、システム制御部115は動体判定手段として機能し、加速度センサおよびシステム制御部115は固定判定手段として機能する。そして、撮影レンズ、ズームレンズ、絞り・シャッタ、フォーカスレンズは撮像光学系を構成し、撮像素子108および撮像処理部は撮像手段として機能する。   Furthermore, the system control unit 115 functions as a moving body determination unit, and the acceleration sensor and the system control unit 115 function as a fixed determination unit. The photographing lens, zoom lens, aperture / shutter, and focus lens constitute an imaging optical system, and the imaging element 108 and the imaging processing unit function as imaging means.

なお、図1に示す例では、少なくともフォーカスレンズ制御部104、AF処理部105、システム制御部115、および操作表示部117が焦点調整装置を構成する。   In the example shown in FIG. 1, at least the focus lens control unit 104, the AF processing unit 105, the system control unit 115, and the operation display unit 117 constitute a focus adjustment device.

以上、本発明について実施の形態に基づいて説明したが、本発明は、これらの実施の形態に限定されるものではなく、この発明の要旨を逸脱しない範囲の様々な形態も本発明に含まれる。   As mentioned above, although this invention was demonstrated based on embodiment, this invention is not limited to these embodiment, Various forms of the range which does not deviate from the summary of this invention are also contained in this invention. .

例えば、上記の実施の形態の機能を制御方法として、この制御方法を焦点調整装置に実行させるようにすればよい。また、上述の実施の形態の機能を有するプログラムを制御プログラムとして、当該制御プログラムを焦点調整装置が備えるコンピュータに実行させるようにしてもよい。なお、制御プログラムは、例えば、コンピュータに読み取り可能な記録媒体に記録される。   For example, the function of the above-described embodiment may be used as a control method, and this control method may be executed by the focus adjustment apparatus. Further, a program having the functions of the above-described embodiments may be used as a control program, and the control program may be executed by a computer included in the focus adjustment apparatus. The control program is recorded on a computer-readable recording medium, for example.

上記の制御方法および制御プログラムの各々は、少なくとも第1の制御ステップおよび第2の制御ステップを有している。   Each of the above control method and control program has at least a first control step and a second control step.

また、本発明は、以下の処理を実行することによっても実現される。つまり上述した実施形態の機能を実現するソフトウェア(プログラム)を、ネットワーク又は各種の記録媒体を介してシステム或いは装置に供給し、そのシステム或いは装置のコンピュータ(またはCPUやMPUなど)がプログラムを読み出して実行する処理である。   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 recording 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.

100 撮影レンズ
102 絞り・シャッタ制御部
104 フォーカスレンズ制御部
105 AF処理部
108 撮像素子
109 撮像処理部
110 画像処理部
112 フォーマット変換部
115 システム制御部
117 操作表示部
DESCRIPTION OF SYMBOLS 100 Shooting lens 102 Aperture / shutter control unit 104 Focus lens control unit 105 AF processing unit 108 Imaging element 109 Imaging processing unit 110 Image processing unit 112 Format conversion unit 115 System control unit 117 Operation display unit

Claims (13)

フォーカスレンズを備える撮像光学系を介して入射した光学像に応じて得られた画像データに応じて前記フォーカスレンズを前記撮像光学系の光軸に沿って移動して焦点調整を行う焦点調整装置であって、
前記画像データに応じた画像において指定された被写体に焦点を合わせる第1の焦点調整モードおよび前記画像データにおいて被写体を検出被写体として検出して当該検出被写体に焦点を合わせる第2の焦点調整モードを選択的に行う制御手段を有し、
前記制御手段は、前記第1の焦点調整モードの際、前記画像において被写体が指定されると当該指定された被写体に焦点を合わせた後、前記フォーカスレンズの焦点位置を固定し、前記第2の焦点調整モードを実行している際に、前記画像において被写体が指定されると当該指定された被写体に焦点を合わせた後、前記フォーカスレンズによる焦点調整を継続することを特徴とする焦点調整装置。
A focus adjustment device that performs focus adjustment by moving the focus lens along the optical axis of the imaging optical system in accordance with image data obtained according to an optical image incident through an imaging optical system including a focus lens. There,
A first focus adjustment mode for focusing on a subject specified in an image corresponding to the image data and a second focus adjustment mode for detecting the subject as a detection subject in the image data and focusing on the detection subject are selected. Control means to perform automatically
In the first focus adjustment mode, when the subject is designated in the image, the control means focuses the designated subject and then fixes the focus position of the focus lens, and the second focus adjustment mode. A focus adjustment apparatus, wherein when a subject is specified in the image while performing a focus adjustment mode, the focus adjustment by the focus lens is continued after focusing on the specified subject.
前記画像データに応じて当該画像データのコントラストを示す焦点評価値を求める焦点評価値算出手段と、
断続的に前記フォーカスレンズを前記光軸に沿って移動して得られた前記焦点評価値の変化に応じて焦点位置を特定する第1の焦点調整手段と、
連続的に前記フォーカスレンズを移動して得られた前記焦点評価値の変化に応じて焦点位置を特定する第2の焦点調整手段とを有し、
前記制御手段は、前記焦点評価値に基づいて前記第1の焦点調整手段および前記第2の焦点調整手段のいずれか一方を選択して焦点調整を行うことを特徴とする請求項1に記載の焦点調整装置。
A focus evaluation value calculating means for obtaining a focus evaluation value indicating the contrast of the image data according to the image data;
First focus adjustment means for specifying a focus position according to a change in the focus evaluation value obtained by intermittently moving the focus lens along the optical axis;
Second focus adjustment means for specifying a focus position according to a change in the focus evaluation value obtained by continuously moving the focus lens;
2. The control unit according to claim 1, wherein the control unit performs focus adjustment by selecting one of the first focus adjustment unit and the second focus adjustment unit based on the focus evaluation value. Focus adjustment device.
前記制御手段は、前記画像データが動画データである際に、前記第1の焦点調整モードおよび前記第2の焦点調整モードを選択的に行うことを特徴とする請求項1又は2に記載の焦点調整装置。   3. The focus according to claim 1, wherein the control unit selectively performs the first focus adjustment mode and the second focus adjustment mode when the image data is moving image data. 4. Adjustment device. 前記制御手段は前記第1の焦点調整手段および前記第2の焦点調整手段による焦点調整が所定の時間で終了しないと、前記フォーカスレンズの焦点位置を固定することを特徴とする請求項2に記載の焦点調整装置。   3. The focus position of the focus lens is fixed when the focus adjustment by the first focus adjustment unit and the second focus adjustment unit is not completed in a predetermined time. Focus adjustment device. 前記制御手段は、前記第1の焦点調整モードを行う際、前記画像データに関してピントの度合いを示す合焦度に応じて前記指定された被写体に焦点を合わせた後、前記フォーカスレンズの焦点位置を固定するか否かを決定することを特徴とする請求項1〜4のいずれか1項に記載の焦点調整装置。   When the control means performs the first focus adjustment mode, the control means focuses the designated subject in accordance with a focus degree indicating a focus degree with respect to the image data, and then determines a focus position of the focus lens. The focus adjustment apparatus according to claim 1, wherein it is determined whether or not to fix the focus adjustment apparatus. 前記制御手段は、前記合焦度が所定の閾値以下であると、前記指定された被写体に焦点を合わせた後、前記フォーカスレンズによる焦点調整を継続することを特徴とする請求項5に記載の焦点調整装置。   6. The control unit according to claim 5, wherein, when the degree of focus is equal to or less than a predetermined threshold, the control unit continues focus adjustment by the focus lens after focusing on the designated subject. Focus adjustment device. 前記撮像光学系には絞りが備えられており、
前記制御手段は、前記第1の焦点調整モードを行う際、前記絞りの絞り込み量に応じて前記指定された被写体に焦点を合わせた後、前記フォーカスレンズの焦点位置を固定するか否かを決定することを特徴とする請求項1〜6のいずれか1項に記載の焦点調整装置。
The imaging optical system is provided with a diaphragm,
The control means determines whether or not to fix the focus position of the focus lens after focusing on the designated subject in accordance with the aperture amount of the aperture when performing the first focus adjustment mode. The focus adjusting apparatus according to claim 1, wherein
前記撮像光学系には絞りが備えられており、
前記制御手段は、前記フォーカスレンズの焦点位置を固定した後に絞りを所定量絞り込むことを特徴とする請求項1〜6のいずれか1項に記載の焦点調整装置。
The imaging optical system is provided with a diaphragm,
The focus adjustment apparatus according to claim 1, wherein the control unit narrows the aperture by a predetermined amount after fixing the focus position of the focus lens.
前記画像データに応じて前記指定された被写体が動体であるか否かを判定する動体判定手段を有し、
前記動体判定手段によって前記指定された被写体が動体であると判定されると、前記制御手段は、前記第1の焦点調整モードを行う際、前記指定された被写体に焦点を合わせた後、前記フォーカスレンズによる焦点調整を継続することを特徴とする請求項1〜8のいずれか1項に記載の焦点調整装置。
Moving object determining means for determining whether or not the designated subject is a moving object according to the image data;
When the moving object determining means determines that the designated subject is a moving object, the control means focuses the designated object after performing the first focus adjustment mode, and then performs the focus. The focus adjustment apparatus according to claim 1, wherein the focus adjustment by the lens is continued.
フォーカスレンズを備える撮像光学系と、
前記撮像光学系を介して入射した光学像に応じた画像データを得る撮像手段と、
請求項1〜9のいずれか1項に記載の焦点調整装置と、
を有することを特徴とする撮像装置。
An imaging optical system including a focus lens;
Imaging means for obtaining image data according to an optical image incident through the imaging optical system;
The focus adjustment apparatus according to any one of claims 1 to 9,
An imaging device comprising:
前記撮像装置が固定されているか否かを判定する固定判定手段を有し、
前記固定判定手段によって前記撮像装置が固定されていないと判定されると、前記制御手段は、前記第1の焦点調整モードを行う際、前記指定された被写体に焦点を合わせた後、前記フォーカスレンズによる焦点調整を継続することを特徴とする請求項10に記載の撮像装置。
Having a fixing determination means for determining whether or not the imaging device is fixed;
If it is determined by the fixing determination means that the imaging device is not fixed, the control means focuses the designated subject and then the focus lens when performing the first focus adjustment mode. The imaging apparatus according to claim 10, wherein the focus adjustment is continued.
フォーカスレンズを備える撮像光学系を介して入射した光学像に応じて得られた画像データに応じて前記フォーカスレンズを前記撮像光学系の光軸に沿って移動して焦点調整を行う焦点調整装置の制御方法であって、
前記画像データに応じた画像において指定された被写体に焦点を合わせる第1の焦点調整モードを行う第1の制御ステップと、
前記画像データにおいて被写体を検出被写体として検出して当該検出被写体に焦点を合わせる第2の焦点調整モードを行う第2の制御手段とを有し、
前記第1の制御ステップでは、前記第1の焦点調整モードの際、前記画像において被写体が指定されると当該指定された被写体に焦点を合わせた後、前記フォーカスレンズの焦点位置を固定し、前記第2の制御ステップでは、第2の焦点調整モードを実行している際に、前記画像において被写体が指定されると当該指定された被写体に焦点を合わせた後、前記フォーカスレンズによる焦点調整を継続することを特徴とする制御方法。
A focus adjustment device that performs focus adjustment by moving the focus lens along the optical axis of the imaging optical system in accordance with image data obtained according to an optical image incident through an imaging optical system including a focus lens. A control method,
A first control step of performing a first focus adjustment mode for focusing on a subject specified in an image according to the image data;
Second control means for detecting a subject as a detection subject in the image data and performing a second focus adjustment mode for focusing on the detection subject;
In the first control step, in the first focus adjustment mode, when a subject is specified in the image, the focus position of the focus lens is fixed after focusing on the specified subject. In the second control step, when the subject is specified in the image while the second focus adjustment mode is being executed, the focus adjustment by the focus lens is continued after focusing on the specified subject. A control method characterized by:
フォーカスレンズを備える撮像光学系を介して入射した光学像に応じて得られた画像データに応じて前記フォーカスレンズを前記撮像光学系の光軸に沿って移動して焦点調整を行う焦点調整装置で用いられる制御プログラムであって、
前記焦点調整装置が備えるコンピュータに、
前記画像データに応じた画像において指定された被写体に焦点を合わせる第1の焦点調整モードを行う第1の制御ステップと、
前記画像データにおいて被写体を検出被写体として検出して当該検出被写体に焦点を合わせる第2の焦点調整モードを行う第2の制御手段とを実行させ、
前記第1の制御ステップでは、前記第1の焦点調整モードの際、前記画像において被写体が指定されると当該指定された被写体に焦点を合わせた後、前記フォーカスレンズの焦点位置を固定し、前記第2の制御ステップでは、第2の焦点調整モードを実行している際に、前記画像において被写体が指定されると当該指定された被写体に焦点を合わせた後、前記フォーカスレンズによる焦点調整を継続することを特徴とする制御プログラム。
A focus adjustment device that performs focus adjustment by moving the focus lens along the optical axis of the imaging optical system in accordance with image data obtained according to an optical image incident through an imaging optical system including a focus lens. A control program used,
A computer provided in the focus adjustment device,
A first control step of performing a first focus adjustment mode for focusing on a subject specified in an image according to the image data;
Executing a second focus adjustment mode for detecting a subject as a detection subject in the image data and focusing on the detection subject;
In the first control step, in the first focus adjustment mode, when a subject is specified in the image, the focus position of the focus lens is fixed after focusing on the specified subject. In the second control step, when the subject is specified in the image while the second focus adjustment mode is being executed, the focus adjustment by the focus lens is continued after focusing on the specified subject. A control program characterized by:
JP2013171248A 2013-08-21 2013-08-21 FOCUS ADJUSTMENT DEVICE, ITS CONTROL METHOD, CONTROL PROGRAM, AND IMAGING DEVICE Active JP6164978B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2013171248A JP6164978B2 (en) 2013-08-21 2013-08-21 FOCUS ADJUSTMENT DEVICE, ITS CONTROL METHOD, CONTROL PROGRAM, AND IMAGING DEVICE

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2013171248A JP6164978B2 (en) 2013-08-21 2013-08-21 FOCUS ADJUSTMENT DEVICE, ITS CONTROL METHOD, CONTROL PROGRAM, AND IMAGING DEVICE

Publications (2)

Publication Number Publication Date
JP2015040940A JP2015040940A (en) 2015-03-02
JP6164978B2 true JP6164978B2 (en) 2017-07-19

Family

ID=52695145

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2013171248A Active JP6164978B2 (en) 2013-08-21 2013-08-21 FOCUS ADJUSTMENT DEVICE, ITS CONTROL METHOD, CONTROL PROGRAM, AND IMAGING DEVICE

Country Status (1)

Country Link
JP (1) JP6164978B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7252680B2 (en) 2009-07-13 2023-04-05 アイリスオーヤマ株式会社 LED lighting device

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6028876B1 (en) 2016-02-02 2016-11-24 ソニー株式会社 Lens unit, imaging device, and control method

Family Cites Families (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01287612A (en) * 1988-05-16 1989-11-20 Minolta Camera Co Ltd Automatic focus adjusting device
JP3263061B2 (en) * 1989-08-15 2002-03-04 オリンパス光学工業株式会社 Focus adjustment device
JPH04285926A (en) * 1991-03-14 1992-10-12 Minolta Camera Co Ltd Camera
JPH06148510A (en) * 1992-10-30 1994-05-27 Canon Inc Camera with line-of-sight detector
JPH10173980A (en) * 1996-12-11 1998-06-26 Sony Corp Automatic focus device
JP3732665B2 (en) * 1998-12-22 2006-01-05 株式会社リコー Automatic focus control device and focusing operation determination method thereof
JP2000330156A (en) * 1999-05-19 2000-11-30 Canon Inc Optical apparatus with image blurring correction function
JP3962658B2 (en) * 2002-08-26 2007-08-22 キヤノン株式会社 Camera, lens apparatus and camera system
JP3867687B2 (en) * 2003-07-08 2007-01-10 コニカミノルタフォトイメージング株式会社 Imaging device
EP2560370A3 (en) * 2005-12-06 2013-07-03 Panasonic Corporation Digital camera
JP2009147853A (en) * 2007-12-18 2009-07-02 Fujifilm Corp Photographing device and photographing method
JP5473551B2 (en) * 2009-11-17 2014-04-16 富士フイルム株式会社 Auto focus system
JP5474528B2 (en) * 2009-12-25 2014-04-16 富士フイルム株式会社 Auto focus system
JP5306266B2 (en) * 2010-03-15 2013-10-02 キヤノン株式会社 Imaging apparatus and control method thereof
JP5375846B2 (en) * 2011-02-04 2013-12-25 カシオ計算機株式会社 Imaging apparatus, automatic focus adjustment method, and program
JP5839857B2 (en) * 2011-06-29 2016-01-06 オリンパス株式会社 Imaging apparatus, imaging method, and imaging program
JP6083987B2 (en) * 2011-10-12 2017-02-22 キヤノン株式会社 Imaging apparatus, control method thereof, and program
JP5830373B2 (en) * 2011-12-22 2015-12-09 オリンパス株式会社 Imaging device
JP5486662B2 (en) * 2012-11-12 2014-05-07 パナソニック株式会社 Imaging device and camera body

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7252680B2 (en) 2009-07-13 2023-04-05 アイリスオーヤマ株式会社 LED lighting device

Also Published As

Publication number Publication date
JP2015040940A (en) 2015-03-02

Similar Documents

Publication Publication Date Title
JP6204644B2 (en) Imaging apparatus and control method thereof
JP2008170508A (en) Imaging apparatus
JP2008009341A (en) Autofocus device and method, and imaging apparatus
US8502912B2 (en) Focusing apparatus and method for controlling the same
EP2007135B1 (en) Imaging apparatus
JP6151867B2 (en) Imaging device, imaging device body, and lens barrel
JP6154081B2 (en) Imaging device, imaging device body, and lens barrel
JP2010139666A (en) Imaging device
US11012627B2 (en) Image capturing apparatus and control method thereof
JP2009027212A (en) Imaging apparatus
US10057478B2 (en) Focus detecting apparatus and method of controlling the same
JP2017129613A (en) Focus adjustment device and focus adjustment method
US9036075B2 (en) Image pickup apparatus, method for controlling the same, and storage medium
JP2007133301A (en) Autofocus camera
JP6087714B2 (en) Imaging apparatus and control method thereof
JP6234016B2 (en) Focus adjustment device, imaging device, and control method thereof
JP6164978B2 (en) FOCUS ADJUSTMENT DEVICE, ITS CONTROL METHOD, CONTROL PROGRAM, AND IMAGING DEVICE
JP6057608B2 (en) Focus adjustment apparatus and control method thereof
KR101777353B1 (en) Digital photographing apparatus and control method thereof
JP6087536B2 (en) Imaging apparatus and control method thereof
JP6425440B2 (en) Imaging apparatus and imaging method
JP2008051871A (en) Automatic focusing device
JP2015079158A (en) Image capturing device and control method therefor
JP5322842B2 (en) Automatic focusing device, automatic focusing method and program
JP5943759B2 (en) FOCUS ADJUSTMENT DEVICE, FOCUS ADJUSTMENT DEVICE CONTROL METHOD, PROGRAM

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20160808

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20170428

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20170620

R151 Written notification of patent or utility model registration

Ref document number: 6164978

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151