JP2016126299A - Imaging apparatus, method for controlling the same, imaging system, program, and storage medium - Google Patents

Imaging apparatus, method for controlling the same, imaging system, program, and storage medium Download PDF

Info

Publication number
JP2016126299A
JP2016126299A JP2015002597A JP2015002597A JP2016126299A JP 2016126299 A JP2016126299 A JP 2016126299A JP 2015002597 A JP2015002597 A JP 2015002597A JP 2015002597 A JP2015002597 A JP 2015002597A JP 2016126299 A JP2016126299 A JP 2016126299A
Authority
JP
Japan
Prior art keywords
focus
lens
evaluation value
timing
focus lens
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2015002597A
Other languages
Japanese (ja)
Other versions
JP6478642B2 (en
JP2016126299A5 (en
Inventor
正晃 上西
Masaaki Uenishi
正晃 上西
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 JP2015002597A priority Critical patent/JP6478642B2/en
Publication of JP2016126299A publication Critical patent/JP2016126299A/en
Publication of JP2016126299A5 publication Critical patent/JP2016126299A5/ja
Application granted granted Critical
Publication of JP6478642B2 publication Critical patent/JP6478642B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

PROBLEM TO BE SOLVED: To provide an imaging apparatus capable of performing an accurate automatic focus adjustment operation, even when the position of a focus lens cannot be acquired at a proper timing.SOLUTION: The imaging apparatus includes a focus adjustment part which calculates a focus evaluation value indicating the contrast of a focus detection area on the basis of image data formed by a photographic lens, while moving a focus lens in an optical axis direction and adjusts the position of the focus lens so as to make the focus evaluation value maximum, a first acquisition part which acquires the focus evaluation value from an image captured at a first timing, a second acquisition part which acquires the position of the focus lens by communication with the photographic lens at a second timing, a storage part which stores the focus evaluation value and the position of the focus lens in the acquisition order, and a control part which associates the position of the focus lens with the focus evaluation value, when being in such a state that both of the position of the focus lens and the focus evaluation value are stored in the storage part at the first timing or the second timing.SELECTED DRAWING: Figure 5

Description

本発明は、デジタルカメラ、ビデオカメラ等の撮像装置における自動焦点検出技術に関するものである。   The present invention relates to an automatic focus detection technique in an imaging apparatus such as a digital camera or a video camera.

従来より、デジタルカメラなどにおいて、フォーカスレンズを動かして被写体に焦点を合わせる方法として、CCDなどの撮像素子から得られる画像信号を用いて自動的に合焦動作を行うコントラスト検出方式のオートフォーカス(AF)が用いられている。このAF方式では、フォーカスレンズを移動させながら、定期的にレンズ位置を取得して保存し、撮像素子から得られる輝度信号の高域周波数成分(以下、焦点評価値と呼ぶ)を生成したタイミングで保存されているレンズ位置と対応付ける。そして、焦点評価値が最大となるレンズ位置にフォーカスレンズを移動させることでピントを合わせる。   Conventionally, in a digital camera or the like, as a method of moving a focus lens to focus on a subject, a contrast detection type autofocus (AF) that automatically performs a focusing operation using an image signal obtained from an image sensor such as a CCD is used. ) Is used. In this AF method, the lens position is periodically acquired and stored while moving the focus lens, and at the timing when a high frequency component (hereinafter referred to as a focus evaluation value) of the luminance signal obtained from the image sensor is generated. Correlate with saved lens position. Then, the focus lens is moved to the lens position where the focus evaluation value is maximized to focus.

ここで、レンズ交換式の一眼レフカメラシステムにおいては、カメラ本体と交換レンズとの間の通信によって交換レンズからフォーカスレンズの位置を取得する。その際に、他の通信処理に阻害されることでレンズ位置の取得タイミングが遅延したり、レンズ位置の取得ができない場合が発生する。このような場合には、前述した焦点評価値とレンズ位置の対応付けが正確でなくなり、焦点検出精度が低下してしまう場合がある。   Here, in the interchangeable lens single-lens reflex camera system, the position of the focus lens is acquired from the interchangeable lens by communication between the camera body and the interchangeable lens. At this time, there are cases where the acquisition timing of the lens position is delayed or the lens position cannot be acquired due to obstruction by other communication processing. In such a case, the above-described association between the focus evaluation value and the lens position may not be accurate, and the focus detection accuracy may decrease.

これに関連して、特許文献1には、コントラスト検出方式のオートフォーカスにおいて、カメラ本体が定期的にタイミングを生成し、そのタイミングに応じて焦点評価値とレンズ位置を定期的に取得して関連付けし、合焦制御を行う方法が提案されている。また、特許文献2には、所定間隔でレンズ位置情報を取得して、そのレンズ位置情報を時刻情報とともに記憶し、焦点評価値の算出が完了した時点において、焦点評価値に対応するレンズ位置情報を選択する方法が提案されている。   In relation to this, in Patent Document 1, in the autofocus of the contrast detection method, the camera body periodically generates a timing, and periodically obtains and associates the focus evaluation value and the lens position according to the timing. However, a method for performing focusing control has been proposed. Further, Patent Document 2 acquires lens position information at a predetermined interval, stores the lens position information together with time information, and lens position information corresponding to the focus evaluation value when the calculation of the focus evaluation value is completed. A method of selecting is proposed.

特開2008−242442号公報JP 2008-242442 A 特開2009−199047号公報JP 2009-199047 A

しかしながら、特許文献1に記載の技術では、既に述べたように、カメラ本体と交換レンズ間の通信が他の処理に阻害されることでレンズ位置が取得できない場合に、露光したタイミングではないレンズ位置と焦点評価値が対応付けされてしまう場合がある。そのため、焦点検出精度が低下してしまうという問題がある。   However, in the technique described in Patent Document 1, as described above, when the lens position cannot be acquired because communication between the camera body and the interchangeable lens is obstructed by other processing, the lens position that is not at the exposure timing. And the focus evaluation value may be associated with each other. Therefore, there is a problem that the focus detection accuracy is lowered.

また、特許文献2に記載の技術では、他の処理によりレンズ位置の取得が遅延した場合に、焦点評価値の取得時にその焦点評価値と対応付けるレンズ位置がないため、レンズ位置と焦点評価値の対応付け自体ができないという問題がある。   Further, in the technique described in Patent Document 2, when the acquisition of the lens position is delayed by other processing, there is no lens position associated with the focus evaluation value when the focus evaluation value is acquired. There is a problem that the association itself is not possible.

本発明は上述した課題に鑑みてなされたものであり、その目的は、適切なタイミングでフォーカスレンズの位置が取得できない場合でも、正確な自動焦点調節動作を可能とする撮像装置を提供することである。   The present invention has been made in view of the above-described problems, and an object of the present invention is to provide an imaging apparatus that enables an accurate automatic focus adjustment operation even when the position of the focus lens cannot be acquired at an appropriate timing. is there.

本発明に係わる撮像装置は、撮影レンズが交換可能に装着される撮像装置であって、前記撮影レンズに備えられたフォーカスレンズを光軸方向に移動させながら前記撮影レンズで結像された被写体像を撮像した画像データに基づいて、焦点検出領域のコントラストを示す焦点評価値を算出し、該焦点評価値が最大となるように前記フォーカスレンズの位置を調節する焦点調節手段と、第1のタイミングで撮像した画像から前記焦点評価値を取得する第1の取得手段と、第2のタイミングで前記撮影レンズとの通信によりフォーカスレンズの位置を取得する第2の取得手段と、前記第1の取得手段と前記第2の取得手段のそれぞれにおいて、取得した順番に前記焦点評価値と前記フォーカスレンズの位置を記憶しておく記憶手段と、前記第1のタイミングまたは前記第2のタイミングにおいて前記フォーカスレンズの位置と前記焦点評価値が前記記憶手段に共に記憶されている状態となった場合に、前記フォーカスレンズの位置と前記焦点評価値とを対応付ける制御手段と、を備えることを特徴とする。   An imaging apparatus according to the present invention is an imaging apparatus in which a photographic lens is replaceably mounted, and an object image formed by the photographic lens while moving a focus lens provided in the photographic lens in an optical axis direction. A focus adjustment unit that calculates a focus evaluation value indicating the contrast of the focus detection region based on the image data obtained by capturing the image and adjusts the position of the focus lens so that the focus evaluation value is maximized; and a first timing. A first acquisition unit that acquires the focus evaluation value from the image captured in step 2; a second acquisition unit that acquires a position of the focus lens through communication with the photographing lens at a second timing; and the first acquisition unit. Storage means for storing the focus evaluation value and the position of the focus lens in the order of acquisition in each of the first acquisition means and the second acquisition means; Control means for associating the position of the focus lens with the focus evaluation value when the position of the focus lens and the focus evaluation value are stored in the storage means at the time of the imming or the second timing. And.

本発明によれば、適切なタイミングでフォーカスレンズの位置が取得できない場合でも、正確な自動焦点調節動作を可能とする撮像装置を提供することが可能となる。   According to the present invention, it is possible to provide an imaging apparatus that enables an accurate automatic focus adjustment operation even when the position of the focus lens cannot be acquired at an appropriate timing.

本発明の撮像装置の一実施形態であるカメラシステムの構成を示すブロック図。1 is a block diagram showing a configuration of a camera system that is an embodiment of an imaging apparatus of the present invention. 一実施形態の撮像装置の動作を説明するフローチャート。6 is a flowchart for explaining the operation of the imaging apparatus according to the embodiment. 一実施形態の撮像装置のAF動作を説明するフローチャート。6 is a flowchart for explaining an AF operation of the imaging apparatus according to the embodiment. 図3における読み出し動作を説明するフローチャート。4 is a flowchart for explaining a read operation in FIG. 3. 図3における焦点評価値の生成動作を説明するフローチャート。FIG. 4 is a flowchart for explaining a focus evaluation value generation operation in FIG. 3. FIG. 図3におけるレンズ通信動作を説明するフローチャート。4 is a flowchart for explaining a lens communication operation in FIG. 3. 図5及び図6における露光中心レンズ位置の算出を説明するフローチャート。7 is a flowchart for explaining calculation of an exposure center lens position in FIGS. 図7における露光中心レンズ位置の算出を説明する図。The figure explaining calculation of the exposure center lens position in FIG. 図5と図6で説明した焦点評価値と露光中心レンズ位置を対応付ける具体的な動作例を示した図。The figure which showed the specific operation example which matches the focus evaluation value and exposure center lens position which were demonstrated in FIG. 5 and FIG.

以下、本発明の一実施形態について、添付図面を参照して詳細に説明する。   Hereinafter, an embodiment of the present invention will be described in detail with reference to the accompanying drawings.

図1は本発明の撮像装置の一実施形態であるカメラシステム(撮像システム)の構成を示すブロック図である。図1に示すように、デジタルカメラ本体200には、交換レンズ100が、電気接点ユニット106aを有するレンズマウント106を介して、着脱可能に(交換可能に)装着される。   FIG. 1 is a block diagram showing a configuration of a camera system (imaging system) which is an embodiment of an imaging apparatus of the present invention. As shown in FIG. 1, the interchangeable lens 100 is detachably mounted on the digital camera body 200 via a lens mount 106 having an electrical contact unit 106a.

101はズーム機構を含み被写体像を結像させるための撮影レンズ、102は光量を制御する絞り及びシャッター、103は後述する撮像素子上に焦点を合わせるためのフォーカスレンズ、104はフォーカスレンズを駆動するモータである。105は交換レンズ200全体を制御するレンズコントローラである。また、201は被写体からの反射光を電気信号に変換する撮像素子である。202は撮像素子201の出力ノイズを除去するCDS回路やA/D変換前に行う非線形増幅回路を含み画像データを出力するA/D変換部、203は画像処理部、204はフォーマット変換部である。205は高速な内蔵メモリ(例えばランダムアクセスメモリなどであり、以下DRAMと記す)、206はメモリーカードなどの記録媒体とそのインターフェースからなる画像記録部、207はタイミングジェネレータである。208は撮影シーケンスなどの制御を行い、カメラシステム全体を制御するシステム制御部(以下、CPUと記す)である。209はカメラ本体200と交換レンズ100との通信を行うレンズ通信部、210は自動焦点調節の処理を行うAF処理部、211は露出制御の処理を行うAE処理部である。212は画像表示用メモリ(以下VRAMと記す)である。213は撮影後の画像表示、操作補助のための表示やカメラ状態の表示、撮影時の撮影画面と焦点検出領域などを表示する画像表示部である。214はカメラを外部から操作するための操作部、215はマクロモード、スポーツモードなどの撮影モードを選択するための撮影モードスイッチ、216はシステムに電源を投入するためのメインスイッチである。217はレリーズボタンの半押しでONとなり、AF処理やAE処理等の撮影スタンバイ動作を行うためのスイッチ(以下SW1と記す)、218はレリーズボタンの全押しでONとなり、SW1の操作後、撮影を行う撮影スイッチ(以下SW2と記す)である。DRAM205は一時的な画像記憶用の高速バッファとして、あるいは画像の圧縮伸張における作業用メモリとして使用される。操作部214には、例えば撮像装置の撮影機能の設定や画像再生時の設定などの各種設定を行うメニュースイッチ、撮影モードと再生モードの動作モード切り替えスイッチなどが含まれる。   101 is a photographing lens for forming a subject image including a zoom mechanism, 102 is an aperture and shutter for controlling the amount of light, 103 is a focus lens for focusing on an image sensor to be described later, and 104 drives the focus lens. It is a motor. A lens controller 105 controls the entire interchangeable lens 200. Reference numeral 201 denotes an image sensor that converts reflected light from an object into an electrical signal. Reference numeral 202 denotes a CDS circuit that removes output noise of the image sensor 201 and a non-linear amplifier circuit that is performed before A / D conversion, and an A / D converter that outputs image data. 203 is an image processor. . Reference numeral 205 denotes a high-speed built-in memory (for example, a random access memory or the like, hereinafter referred to as DRAM), 206 denotes an image recording unit including a recording medium such as a memory card and its interface, and 207 denotes a timing generator. Reference numeral 208 denotes a system control unit (hereinafter referred to as a CPU) that controls the photographing sequence and controls the entire camera system. Reference numeral 209 denotes a lens communication unit that performs communication between the camera body 200 and the interchangeable lens 100, 210 denotes an AF processing unit that performs automatic focus adjustment processing, and 211 denotes an AE processing unit that performs exposure control processing. Reference numeral 212 denotes an image display memory (hereinafter referred to as VRAM). An image display unit 213 displays an image after shooting, a display for assisting operation, a display of a camera state, a shooting screen at the time of shooting, a focus detection area, and the like. Reference numeral 214 denotes an operation unit for operating the camera from the outside. Reference numeral 215 denotes a shooting mode switch for selecting a shooting mode such as a macro mode or a sports mode. Reference numeral 216 denotes a main switch for turning on the system. A switch 217 is turned on when the release button is half-pressed, and a switch for performing a shooting standby operation such as AF processing or AE processing (hereinafter referred to as SW1). 218 is turned on when the release button is fully pressed. A shooting switch (hereinafter referred to as SW2). The DRAM 205 is used as a high-speed buffer for temporary image storage or as a working memory for image compression / decompression. The operation unit 214 includes, for example, a menu switch for performing various settings such as a shooting function setting of the imaging apparatus and a setting at the time of image reproduction, an operation mode switching switch between a shooting mode and a playback mode, and the like.

以下、本実施形態のカメラシステムの動作について説明する。図2は、カメラシステムの全体動作を示すフローチャートである。   Hereinafter, the operation of the camera system of the present embodiment will be described. FIG. 2 is a flowchart showing the overall operation of the camera system.

まず、S201では、AE処理部211で画像処理部203の出力から、被写体の明るさに応じてシャッター速度、感度、絞り値等を決定するAE処理を行ってS202へと進む。S202では、スイッチSW1(217)の状態を調べ、ONであればS203へ進み、そうでなければS201へ戻る。S203では、後述する自動焦点調節動作(AF動作)を行いS204へ進む。ここで、AF動作中の露出条件(シャッター速度、絞り、感度)は、直前のS201のAE処理で決定する。S204では、スイッチSW1(217)の状態を調べ、ONであればS205へ進み、そうでなければS201へ戻る。S205では、スイッチSW2(218)の状態を調べONであればS206へ進み、そうでなければS204へ戻る。S206では、撮影動作を行った後に、S201へ戻る。   First, in S201, the AE processing unit 211 performs AE processing for determining the shutter speed, sensitivity, aperture value, and the like according to the brightness of the subject from the output of the image processing unit 203, and proceeds to S202. In S202, the state of the switch SW1 (217) is checked. If it is ON, the process proceeds to S203, and if not, the process returns to S201. In S203, an automatic focus adjustment operation (AF operation) described later is performed, and the process proceeds to S204. Here, the exposure conditions (shutter speed, aperture, sensitivity) during the AF operation are determined by the AE process in S201 immediately before. In S204, the state of the switch SW1 (217) is checked. If it is ON, the process proceeds to S205, and if not, the process returns to S201. In S205, the state of the switch SW2 (218) is checked, and if it is ON, the process proceeds to S206, and if not, the process returns to S204. In S206, after performing a photographing operation, the process returns to S201.

図3は、図2のS203におけるAF動作を説明するフローチャートである。まず、S301では、画面内の所定の領域に焦点検出領域を設定してS302へ進む。S302では、フォーカスレンズ103を光軸方向に移動させながら画像のコントラストを示す焦点評価値を生成するために必要な画像を取得するための電荷蓄積及び電荷読み出し動作を開始させた後、S303へ進む。電荷読み出し動作については後述する。   FIG. 3 is a flowchart for explaining the AF operation in S203 of FIG. First, in S301, a focus detection area is set as a predetermined area in the screen, and the process proceeds to S302. In S302, charge accumulation and charge readout operations for acquiring an image necessary for generating a focus evaluation value indicating the contrast of the image while moving the focus lens 103 in the optical axis direction are started, and then the process proceeds to S303. . The charge reading operation will be described later.

S303では、焦点評価値の生成動作を開始してS304へ進む。焦点評価値生成の動作については後述する。なお、焦点評価値の生成動作は、S303で開始された後一定の周期で繰り返される。S304では、レンズ通信動作によるレンズ位置の取得動作を開始してS305へ進む。レンズ通信動作については後述する。なお、レンズ通信動作は、S304で開始された後、他の処理が入らない限りは一定の周期で繰り返される。また、上記のS303における焦点評価値の生成動作とS304におけるレンズ通信動作によるレンズ位置の取得動作は、時間的に交互に行われる。   In S303, the focus evaluation value generation operation is started, and the process proceeds to S304. The focus evaluation value generation operation will be described later. It should be noted that the focus evaluation value generation operation is repeated at a constant cycle after starting in S303. In S304, the lens position acquisition operation by the lens communication operation is started, and the process proceeds to S305. The lens communication operation will be described later. It should be noted that the lens communication operation starts at S304 and is repeated at a constant cycle unless another process is entered. Further, the focus evaluation value generation operation in S303 and the lens position acquisition operation by the lens communication operation in S304 are performed alternately in time.

S302〜S304の一連の動作を行うことにより、焦点評価値の生成に必要な画像を取得するための電荷蓄積及び電荷読み出し動作、焦点評価値の生成動作、レンズ通信動作のそれぞれが定期的に行われる。   By performing a series of operations in S302 to S304, each of charge accumulation and charge readout operations for acquiring an image necessary for generating a focus evaluation value, focus evaluation value generation operation, and lens communication operation is performed periodically. Is called.

S305では、後述するLinkFlgがTRUEかどうかを調べ、TRUEであればS306へ進み、そうでなければS308へ進む。なお、LinkFlgは、焦点評価値と、その焦点評価値と対応する露光中心におけるレンズ位置の2つが揃ったことを示すものである。S306では、焦点評価値と後述する露光中心レンズ位置を用いて焦点評価値ピーク判定を行い、S307へ進む。ここで焦点評価値ピーク判定は、ピークの形状により合焦すべき被写体であるかどうかを判定し、合焦すべき被写体であれば焦点評価値が最大となるレンズ位置を演算して合焦位置とする。ピークの形状の判断の仕方については本実施形態の主眼点ではないため詳細な説明は省略する。   In S305, it is checked whether LinkFlg, which will be described later, is TRUE. If TRUE, the process proceeds to S306, and if not, the process proceeds to S308. Note that LinkFlg indicates that the focus evaluation value and the lens position at the exposure center corresponding to the focus evaluation value are aligned. In S306, the focus evaluation value peak determination is performed using the focus evaluation value and the exposure center lens position described later, and the process proceeds to S307. Here, the focus evaluation value peak determination determines whether or not the subject is to be focused based on the shape of the peak, and if the subject is to be focused, calculates the lens position where the focus evaluation value is the maximum and calculates the focus position. And Since the method of determining the peak shape is not the main point of the present embodiment, detailed description thereof is omitted.

S308では、後述するExpStartFlgがTRUEかどうかを調べ、TRUEであればS309へ進み、そうでなければS310へ進む。S309では、焦点評価値に基づいてフォーカスレンズ103の移動速度を決定してレンズ駆動制御を行った後S310へ進む。S310では、ExpStartFlgをFALSEにしてS311へ進む。S311では、S306で判定した結果によりAF動作を終了させるか否かを調べ、AF動作を終了させるのであればS312へ進み、そうでなければS305へ戻る。S312では、S306で算出した合焦位置へフォーカスレンズ103を移動させた後、S313へ進む。S313では、前述した電荷蓄積及び電荷読み出し動作を停止させた後、S314へ進む。S314では、前述した焦点評価値の生成動作を停止させてS315へ進む。S315では、前述したレンズ通信動作を停止させてAF動作を終了する。   In S308, it is checked whether ExpStartFlg, which will be described later, is TRUE. If TRUE, the process proceeds to S309, and if not, the process proceeds to S310. In S309, the moving speed of the focus lens 103 is determined based on the focus evaluation value to perform lens drive control, and then the process proceeds to S310. In S310, ExpStartFlg is set to FALSE, and the process proceeds to S311. In S311, whether or not to end the AF operation is checked based on the result determined in S306. If the AF operation is to be ended, the process proceeds to S312; otherwise, the process returns to S305. In S312, the focus lens 103 is moved to the in-focus position calculated in S306, and then the process proceeds to S313. In S313, after stopping the above-described charge accumulation and charge reading operations, the process proceeds to S314. In S314, the focus evaluation value generation operation described above is stopped, and the process proceeds to S315. In S315, the lens communication operation described above is stopped and the AF operation is terminated.

図4は、図3におけるS302で開始された読み出し動作を説明するフローチャートである。まず、S401では、現在が読み出し開始タイミングであるか否かを調べ、読み出しタイミングであればS402へ進み、そうでなければそのまま待機する。S402では、読み出しを開始するフレームのIDであるFrmIDをインクリメントしてS403へ進む。このFrmIDにより、後述する焦点評価値を生成したフレームのIDであるEvaFrmIDと、後述するレンズ位置を取得したフレームのIDであるLensFrmIDとの相関を確認することができる。S403では、FrmIDとEvaFrmIDとの差が所定値より大きいか否かを調べ、差が所定値より大きければS406へ進み、そうでなければS404へ進む。S404では、FrmIDとLensFrmIDとの差が所定値より大きいか否かを調べ、差が所定値より大きければS406へ進み、そうでなければS405へ進む。S405では、ExpStartFlgをTRUEにして本フローを終了する。S406では、S403、またはS404による判定により、焦点評価値の生成、またはレンズ通信が所定時間以上行われない異常状態であると判断してAF動作を終了させるなどのエラー処理を行った後、本フローを終了する。   FIG. 4 is a flowchart for explaining the read operation started in S302 in FIG. First, in S401, it is checked whether or not the current time is the read start timing. If it is the read timing, the process proceeds to S402. In S402, FrmID which is the ID of the frame from which reading is started is incremented, and the process proceeds to S403. With this FrmID, it is possible to confirm the correlation between EvaFrmID, which is an ID of a frame that generates a focus evaluation value, which will be described later, and LensFrmID, which is an ID of a frame, which acquires a lens position, which will be described later. In S403, it is checked whether or not the difference between FrmID and EvaFrmID is larger than a predetermined value. If the difference is larger than the predetermined value, the process proceeds to S406, and if not, the process proceeds to S404. In S404, it is checked whether or not the difference between FrmID and LensFrmID is larger than a predetermined value. If the difference is larger than the predetermined value, the process proceeds to S406, and if not, the process proceeds to S405. In S405, ExpStartFlg is set to TRUE and this flow ends. In S406, after performing error processing such as determining whether the focus evaluation value is generated or the lens communication is not performed for a predetermined time or more based on the determination in S403 or S404, the AF operation is terminated. End the flow.

図5は、図3におけるS303で開始された焦点評価値生成動作を説明するフローチャートである。まず、S501では、焦点評価値が生成されたか否かを調べ、生成されていればS502へ進み、そうでなければそのまま待機する。S502では、焦点評価値を生成したフレームのIDであるEvaFrmIDをインクリメントしてS503へ進む。S503では焦点評価値を生成された順番にバッファに格納してS504へ進む。S504では後述するレンズ通信動作によりバッファにレンズ位置が格納されているかどうかを調べ、格納されていればS505へ進み、そうでなければ本フローを終了する。S505ではバッファに格納されているレンズ位置のうち最も古いものを取り出すとともに、最も古いものをバッファから削除してS506へ進む。この削除されたレンズ位置は、後述する図7のS711においてBefPosとしてバッファとは別の記憶部に記憶される。S506では、S505で取り出したレンズ位置(StdPos)と以前にバッファとは別の記憶部に記憶されているレンズ位置(上記のように図7のS711においてBefPosとして記憶されていたレンズ位置)を用いて後述する露光中心レンズ位置(露光期間の中心におけるフォーカスレンズ103の位置)の算出を行った後、S507へ進む。S507では、焦点評価値と、その焦点評価値と対応する露光中心レンズ位置の2つが揃ったことを示すLinkFlgをTRUEにして本フローを終了する。なお、図6を参照して後述するが、レンズ位置情報が配信されたにも関わらず焦点評価値がバッファに格納されていなかった場合には、バッファにレンズ位置が複数格納される(S606でNoの場合)。この場合、焦点評価値は生成されるタイミングが遅れることはあっても、取得できずに抜けてしまうことはない。そのため、S505で、バッファに格納されているレンズ位置のうち最も古いものを取り出すようにすることで、焦点評価値とレンズ位置を適正に関連付けることができる。   FIG. 5 is a flowchart for explaining the focus evaluation value generation operation started in S303 in FIG. First, in S501, it is checked whether or not a focus evaluation value has been generated. If it has been generated, the process proceeds to S502, and if not, the process waits as it is. In S502, EvaFrmID, which is the ID of the frame that generated the focus evaluation value, is incremented, and the process proceeds to S503. In S503, the focus evaluation values are stored in the buffer in the order of generation, and the process proceeds to S504. In S504, it is checked whether or not the lens position is stored in the buffer by a lens communication operation to be described later. If it is stored, the process proceeds to S505, and if not, this flow ends. In S505, the oldest lens position stored in the buffer is taken out, and the oldest lens position is deleted from the buffer, and the process proceeds to S506. The deleted lens position is stored as BefPos in a storage unit different from the buffer in S711 of FIG. 7 described later. In S506, the lens position (StdPos) extracted in S505 and the lens position previously stored in a storage unit different from the buffer (the lens position stored as BefPos in S711 in FIG. 7 as described above) are used. After calculating the exposure center lens position (the position of the focus lens 103 at the center of the exposure period) which will be described later, the process proceeds to S507. In S507, the LinkFlg indicating that both the focus evaluation value and the exposure center lens position corresponding to the focus evaluation value are set to TRUE is set, and this flow is finished. As will be described later with reference to FIG. 6, when the focus evaluation value is not stored in the buffer despite the lens position information being distributed, a plurality of lens positions are stored in the buffer (in S606). In the case of No). In this case, the focus evaluation value is not obtained because it cannot be acquired even if the timing at which the focus evaluation value is generated is delayed. Therefore, by extracting the oldest lens position stored in the buffer in S505, the focus evaluation value and the lens position can be properly associated.

図6は、図3におけるS304で開始されたレンズ通信動作を説明するフローチャートである。まずS601ではレンズ位置情報が配信されたか否かを調べ、配信されていればS602へ進み、そうでなければそのまま待機する。S602では、レンズ位置が配信されたフレームのIDであるLensFrmIDをインクリメントしてS603へ進む。S603では、LensFrmIDにSkipCntを足してS604へ進む。このSkipCntは、レンズ通信動作が他の処理によって阻害されることによりレンズ位置情報が配信されなかったフレーム数を示しており、SkipCntを足すことにより前述したFrmIDとEvaFrmIDとの相関が誤りとならないようにすることができる。S604では、古いものからSkipCntの数だけ焦点評価値を削除してS605へ進む。SkipCntの数だけ焦点評価値を削除することにより焦点評価値とレンズ位置の対応付けが誤りとならないようにすることができる。S605ではバッファに配信されたレンズ位置を格納してS606へ進む。S606ではバッファに焦点評価値が格納されているかどうかを調べ、格納されていればS607へ進み、そうでなければ本フローを終了する。S607ではバッファに格納されている焦点評価値のうち最も古いものを取り出すとともに最も古いものをバッファから削除してS608へ進む。S608では、後述する露光中心レンズ位置を算出してS609へ進む。S609では、焦点評価値と、その焦点評価値と対応する露光中心レンズ位置の2つが揃ったことを示すLinkFlgをTRUEにして本フローを終了する。   FIG. 6 is a flowchart for explaining the lens communication operation started in S304 in FIG. First, in S601, it is checked whether or not lens position information has been distributed. If distributed, the process proceeds to S602, and if not, the process waits as it is. In S602, LensFrmID which is the ID of the frame to which the lens position is distributed is incremented, and the process proceeds to S603. In S603, SkipCnt is added to LensFrmID, and the process proceeds to S604. This SkipCnt indicates the number of frames for which lens position information was not delivered because the lens communication operation was hindered by other processing, and adding the SkipCnt prevents the above-mentioned correlation between FrmID and EvaFrmID from becoming an error. Can be. In S604, focus evaluation values are deleted from the old ones by the number of SkipCnts, and the process proceeds to S605. By deleting the focus evaluation values by the number of SkipCnts, the correspondence between the focus evaluation values and the lens positions can be prevented from being erroneous. In S605, the lens position distributed in the buffer is stored, and the process proceeds to S606. In S606, it is checked whether or not the focus evaluation value is stored in the buffer. If it is stored, the process proceeds to S607, and if not, this flow ends. In S607, the oldest focus evaluation value stored in the buffer is extracted, and the oldest one is deleted from the buffer, and the process proceeds to S608. In S608, an exposure center lens position to be described later is calculated, and the process proceeds to S609. In S609, LinkFlg indicating that the focus evaluation value and the exposure center lens position corresponding to the focus evaluation value are set to TRUE is set to TRUE, and this flow ends.

図7は、図5及び図6における露光中心レンズ位置の算出を説明するフローチャートである。また、図8は図7の露光中心レンズ位置の算出を説明する図である。図7及び図8を参照して、露光中心レンズ位置の算出方法について説明する。   FIG. 7 is a flowchart for explaining the calculation of the exposure center lens position in FIGS. FIG. 8 is a diagram for explaining the calculation of the exposure center lens position of FIG. A method for calculating the exposure center lens position will be described with reference to FIGS.

まず、S701では、図8に示す焦点検出領域の中心ラインVafを算出してS702へ進む。S702では露光中心レンズ位置算出が初回であるかどうかを調べ、初回であればS710へ進み、そうでなければS703へ進む。S703では、現在レンズが停止状態か否かを調べ、停止状態であればS710へ進み、そうでなければS704へ進む。   First, in S701, the center line Vaf of the focus detection area shown in FIG. 8 is calculated, and the process proceeds to S702. In S702, it is checked whether or not the exposure center lens position calculation is the first time. If it is the first time, the process proceeds to S710, and if not, the process proceeds to S703. In S703, it is determined whether or not the lens is currently stopped. If it is stopped, the process proceeds to S710, and if not, the process proceeds to S704.

S704では、図8に示すように、前回のレンズ通信で配信されたレンズ位置BefPosと、今回のレンズ通信で配信されたレンズ位置StdPosとの差分であるPosDiffを算出してS705へ進む。S705ではSkipCntが1以上かどうかを調べ、1以上であればS706へ進み、そうでなければS707へ進む。S706ではPosDiffをSkipCntで割った値を新たにPosDiffとおいた後S707へ進む。これにより、レンズ通信動作が他の処理に阻害されてレンズ位置の配信ができなかったタイミングがあってもその前のタイミングで配信されたレンズ位置を用いて露光中心レンズ位置を算出することができる。   In S704, as shown in FIG. 8, PosDiff, which is the difference between the lens position BefPos distributed in the previous lens communication and the lens position StdPos distributed in the current lens communication, is calculated, and the process proceeds to S705. In S705, it is checked whether SkipCnt is 1 or more. If 1 or more, the process proceeds to S706, and if not, the process proceeds to S707. In S706, a value obtained by dividing PosDiff by SkipCnt is newly set as PosDiff, and the process proceeds to S707. Thereby, even if there is a timing at which the lens communication operation is inhibited by other processing and the lens position cannot be distributed, the exposure center lens position can be calculated using the lens position distributed at the previous timing. .

S707では、S301で設定した焦点検出領域の最上部ラインの露光完了レンズ位置FirstLineCompPos(図8参照)を下記のように算出してS708へ進む。   In S707, the exposure completion lens position FirstLineCompPos (see FIG. 8) of the uppermost line of the focus detection area set in S301 is calculated as follows, and the process proceeds to S708.

FirstLineCompPos=StdPos +(PosDiff × DifTime − DelayTime )/ FrameTime)
レンズ通信動作が他の処理に阻害されることなく正常に動作すれば1フレームの時間FrameTimeの間にPosDiffだけレンズが移動することになる。そのレンズ移動量PosDiffを基準としてレンズ通信動作から露光完了時間の差分であるDifTimeの間のレンズ移動量を算出することで露光完了レンズ位置を算出する。また、レンズ通信動作が他の処理に阻害されてDelayTimeだけ遅延した場合は、その時間でのレンズ移動量で補正することができる。
FirstLineCompPos = StdPos + (PosDiff x DifTime-DelayTime) / FrameTime)
If the lens communication operation operates normally without being obstructed by other processing, the lens moves by PosDiff during one frame time FrameTime. Based on the lens movement amount PosDiff, the lens movement amount is calculated from the lens communication operation to DifTime, which is the difference in exposure completion time, thereby calculating the exposure completion lens position. Further, when the lens communication operation is hindered by other processing and delayed by DelayTime, it can be corrected by the lens movement amount at that time.

S708では、S707と同様にPosDiffを基準とし、露光時間ExpTimeを用いて最上部ラインの露光中心レンズ位置FirstLineCenterPosを下記のように算出してS709へ進む。   In S708, as in S707, PosDiff is used as a reference, and the exposure center lens position FirstLineCenterPos of the uppermost line is calculated as follows using the exposure time ExpTime, and the process proceeds to S709.

FirstLineCenterPos=FirstLineCompPos − PosDiff × ExpTime/(FrameRate×2)
S709では、S707、S708と同様にPosDiffを基準とし、焦点検出領域全体を読み出す時間ImageReadoutTime、焦点検出領域全体の垂直ライン数Vall、前述したVafを用いて、焦点検出領域の中心ラインの露光中心レンズ位置ExpCenterPosを下記のように算出してS711へ進む。
FirstLineCenterPos = FirstLineCompPos-PosDiff x ExpTime / (FrameRate x 2)
In S709, as in S707 and S708, using PosDiff as a reference, the exposure center lens of the central line of the focus detection area is obtained using the time ImageReadoutTime for reading the entire focus detection area, the number of vertical lines Vall of the entire focus detection area, and the Vaf described above. The position ExpCenterPos is calculated as follows, and the process proceeds to S711.

ExpCenterPos
=FirstLineCenterPos + PosDiff ×(ImageReadoutTime/FrameRate)×(Vaf/Vall)
S710では、ExpCenterPos に今回のレンズ通信で配信されたレンズ位置StdPosを代入してS711へ進む。S711では、前回のレンズ通信で配信されたレンズ位置であるBefPosにStdPosを代入して本フローを終了する。
ExpCenterPos
= FirstLineCenterPos + PosDiff x (ImageReadoutTime / FrameRate) x (Vaf / Vall)
In S710, the lens position StdPos distributed by the current lens communication is assigned to ExpCenterPos, and the process proceeds to S711. In S711, StdPos is substituted for BefPos, which is the lens position distributed in the previous lens communication, and this flow ends.

次に、図9は、図5と図6で説明した焦点評価値と露光中心レンズ位置を対応付ける具体的な動作例を示した図である。図9(a)は、交換レンズ100とデジタルカメラ本体200の間の通信に他の処理が加わってデジタルカメラ本体200がフォーカスレンズ103のレンズ位置を取得できたタイミングが焦点評価値が得られたタイミングよりも遅れた場合の例を示している。また、図9(b)は、交換レンズ100とデジタルカメラ本体200の間の通信に他の処理が加わってデジタルカメラ本体200がレンズ位置を取得できなかった場合の例を示している。   Next, FIG. 9 is a diagram showing a specific operation example in which the focus evaluation value and the exposure center lens position described in FIGS. 5 and 6 are associated with each other. In FIG. 9A, the focus evaluation value is obtained at the timing when the digital camera body 200 can acquire the lens position of the focus lens 103 by adding other processing to the communication between the interchangeable lens 100 and the digital camera body 200. An example in the case of being delayed from the timing is shown. FIG. 9B shows an example in which the digital camera body 200 cannot acquire the lens position due to other processing added to the communication between the interchangeable lens 100 and the digital camera body 200.

まず、図9(a)において、オートフォーカス動作の最初に図6のレンズ通信動作のフローがスタートし、時刻t1において、レンズ通信によりデジタルカメラ本体200がフォーカスレンズ103のレンズ位置Pos3を取得できたとする。この場合、レンズ位置Pos3は、最初に取得できたレンズ位置であるので、S605においてこのレンズ位置Pos3がバッファに格納されるとともに、S605ではまだ焦点評価値が取得できていないため、S606でNoとなり、図6のフローは終了する。   First, in FIG. 9A, the flow of the lens communication operation of FIG. 6 starts at the beginning of the autofocus operation. At time t1, the digital camera body 200 can acquire the lens position Pos3 of the focus lens 103 by the lens communication. To do. In this case, since the lens position Pos3 is the lens position that can be acquired first, the lens position Pos3 is stored in the buffer in S605, and the focus evaluation value has not yet been acquired in S605, so No in S606. The flow in FIG. 6 ends.

また、図6の処理と並行して図5の焦点評価値生成動作のフローが実行され、時刻t2において最初の焦点評価値Eva3が生成されたとする。この場合、S503において焦点評価値Eva3がバッファに格納される。また、S504においてレンズ位置はPos3がバッファに格納されているので、S504でYesとなり、フローはS505に進む。S505では、レンズ位置の最も古いもの、つまりPos3が取り出される。そして、S506において、S505で取り出したレンズ位置(StdPos=Pos3)と以前にバッファとは別の記憶部に記憶されているレンズ位置(BefPos=Pos2:図7のS711参照)を用いて露光中心レンズ位置が算出される。これにより、対応する焦点評価値Eva3と、Pos3とPos2から算出された露光中心レンズ位置が揃い、それらが対応付けられることになる。   Further, it is assumed that the flow of the focus evaluation value generation operation of FIG. 5 is executed in parallel with the processing of FIG. 6, and the first focus evaluation value Eva3 is generated at time t2. In this case, the focus evaluation value Eva3 is stored in the buffer in S503. In S504, since the lens position Pos3 is stored in the buffer, the result in S504 is Yes, and the flow proceeds to S505. In S505, the oldest lens position, that is, Pos3 is extracted. In S506, the lens position (StdPos = Pos3) extracted in S505 and the lens position (BefPos = Pos2: see S711 in FIG. 7) previously stored in a storage unit different from the buffer are used. The position is calculated. As a result, the corresponding focus evaluation value Eva3 and the exposure center lens position calculated from Pos3 and Pos2 are aligned, and are associated with each other.

次に、再び図5の処理において、時刻t3で焦点評価値Eva4が生成されたとする。この場合、S503において焦点評価値Eva4がバッファに格納される。また、S504においてレンズ位置が格納されていないため、S504でNoとなり、図5のフローは終了する。   Next, in the process of FIG. 5 again, it is assumed that the focus evaluation value Eva4 is generated at time t3. In this case, the focus evaluation value Eva4 is stored in the buffer in S503. Further, since the lens position is not stored in S504, No is obtained in S504, and the flow of FIG.

次に、再び図6の処理において、時刻t4でレンズ位置Pos4が取得できたとする。この場合、レンズ位置が取得できずスキップしたフレームは無いので、S603においてSkipCntが0となり、LensFrmID=LensFrmID+0となる。そして、S604では、焦点評価値の削除は行わない。そして、S605においてレンズ位置Pos4がバッファに格納される。そして、S606でYesとなり、フローはS607に進む。S607では、格納されている焦点評価値の最も古い焦点評価値Eva4が取りだされる。そして、S608において、今回格納されたレンズ位置(StdPos=Pos4)と以前にバッファとは別の記憶部に記憶されているレンズ位置(BefPos=Pos3:図7のS711参照)を用いて露光中心レンズ位置が算出される。これにより、対応する焦点評価値Eva4と、Pos4とPos3から算出された露光中心レンズ位置が揃い、それらが対応付けられることになる。   Next, in the process of FIG. 6 again, it is assumed that the lens position Pos4 can be acquired at time t4. In this case, since the lens position cannot be acquired and there is no skipped frame, SkipCnt is 0 in S603, and LensFrmID = LensFrmID + 0. In step S604, the focus evaluation value is not deleted. In step S605, the lens position Pos4 is stored in the buffer. And it becomes Yes in S606 and a flow progresses to S607. In S607, the oldest focus evaluation value Eva4 of the stored focus evaluation values is taken out. In S608, the exposure center lens using the lens position (StdPos = Pos4) stored this time and the lens position (BefPos = Pos3: see S711 in FIG. 7) previously stored in a storage unit different from the buffer. The position is calculated. As a result, the corresponding focus evaluation value Eva4 and the exposure center lens position calculated from Pos4 and Pos3 are aligned, and are associated with each other.

以降は、上記の繰り返しになり、焦点評価値とそれに対応する露光中心レンズ位置が次々と対応付けられる。   Thereafter, the above is repeated, and the focus evaluation value and the exposure center lens position corresponding to the focus evaluation value are successively associated.

このように本実施形態においては、交換レンズ100からデジタルカメラ本体200へのフォーカスレンズ位置の通信のタイミングがずれた場合でも、レンズ位置と焦点評価値が揃った時点で対応付けをするため、間違った対応付けによる誤測距を防止できる。   As described above, in the present embodiment, even when the communication timing of the focus lens position from the interchangeable lens 100 to the digital camera body 200 is shifted, the correspondence is made when the lens position and the focus evaluation value are aligned. Incorrect distance measurement due to matching can be prevented.

次に、図9(b)のように、交換レンズ100とデジタルカメラ本体200の間の通信に他の処理が加わってデジタルカメラ本体200がレンズ位置を取得できなかった場合について説明する。   Next, as shown in FIG. 9B, a case where the digital camera body 200 cannot acquire the lens position due to other processing added to the communication between the interchangeable lens 100 and the digital camera body 200 will be described.

図9(b)に破線で示したように、時刻t3において、レンズ通信に他の処理が加わって通信が遅れ、デジタルカメラ本体200がレンズ位置Pos4を取得できなかったとする。この場合は、時刻t4において焦点評価値Eva4が生成されてバッファに格納される(図5のS501〜S503)が、レンズ位置は格納されていないので、S504でNoとなり、図5のフローは終了する。   As indicated by a broken line in FIG. 9B, it is assumed that at time t3, other processing is added to the lens communication, the communication is delayed, and the digital camera body 200 cannot acquire the lens position Pos4. In this case, the focus evaluation value Eva4 is generated and stored in the buffer at time t4 (S501 to S503 in FIG. 5), but since the lens position is not stored, No in S504 and the flow in FIG. 5 ends. To do.

次に、図6の処理で、時刻t5においてレンズ位置Pos5が取得できたとする。この場合、前回の時刻t3においてレンズ位置Pos4が取得できなかったことをこの次回のタイミングでユーザに通知する。また、この場合、レンズ位置が取得できずスキップしたフレームは1フレームなので、S603においてSkipCntが1となり、S604において1個の焦点評価値を削除する。ここでは、焦点評価値Eva4が削除される。そして、S605においてレンズ位置Pos5がバッファに格納されるとともに、S605では、その前のS604において焦点評価値Eva4が削除されているので、まだ焦点評価値が取得できていないと判断される。そのため、S606でNoとなり、図6のフローは終了する。   Next, it is assumed that the lens position Pos5 can be acquired at the time t5 by the processing of FIG. In this case, the user is notified at this next timing that the lens position Pos4 could not be acquired at the previous time t3. In this case, since the lens position cannot be acquired and the skipped frame is one frame, SkipCnt is 1 in S603, and one focus evaluation value is deleted in S604. Here, the focus evaluation value Eva4 is deleted. In S605, the lens position Pos5 is stored in the buffer. In S605, the focus evaluation value Eva4 is deleted in the previous S604, and therefore it is determined that the focus evaluation value has not yet been acquired. Therefore, it becomes No in S606, and the flow of FIG.

次に、再び図5の処理で、時刻t6において焦点評価値Eva5が生成されたとする。この場合、焦点評価値Eva5がバッファに格納される(図5のS501〜S503)。また、S504においてレンズ位置は既にPos5がバッファに格納されているので、フローはS505に進む。S505では、レンズ位置の最も古いもの、つまり今回のPos5が取り出される。そして、S506において、S505で取り出したレンズ位置(StdPos=Pos5)と以前にバッファとは別の記憶部に記憶されている前々回のレンズ位置(BefPos=Pos3:図7のS711参照)を用いて露光中心レンズ位置が算出される。これにより、対応する焦点評価値Eva5と、Pos5とPos3から算出された露光中心レンズ位置が揃い、それらが対応付けられることになる。   Next, it is assumed that the focus evaluation value Eva5 is generated again at time t6 in the process of FIG. In this case, the focus evaluation value Eva5 is stored in the buffer (S501 to S503 in FIG. 5). In S504, since Pos5 is already stored in the buffer at the lens position, the flow proceeds to S505. In S505, the oldest lens position, that is, the current Pos5 is taken out. In S506, exposure is performed using the lens position extracted in S505 (StdPos = Pos5) and the previous lens position (BefPos = Pos3: see S711 in FIG. 7) previously stored in a storage unit different from the buffer. A central lens position is calculated. As a result, the corresponding focus evaluation value Eva5 and the exposure center lens position calculated from Pos5 and Pos3 are aligned, and are associated with each other.

以降は、上記の繰り返しになり、焦点評価値とそれに対応する露光中心レンズ位置が次々と対応付けられる。   Thereafter, the above is repeated, and the focus evaluation value and the exposure center lens position corresponding to the focus evaluation value are successively associated.

このように本実施形態においては、交換レンズ100からデジタルカメラ本体200へのフォーカスレンズ位置の通信のタイミングがずれてレンズ位置が取得できなかった場合でも、レンズ位置と焦点評価値が揃った時点で対応付けをする。そのため、間違った対応付けによる誤測距を防止できる。   As described above, in the present embodiment, even when the communication of the focus lens position from the interchangeable lens 100 to the digital camera body 200 is shifted and the lens position cannot be acquired, the lens position and the focus evaluation value are aligned. Make a correspondence. Therefore, it is possible to prevent erroneous distance measurement due to incorrect association.

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

(その他の実施形態)
本発明は、上述の実施形態の1以上の機能を実現するプログラムを、ネットワーク又は記憶媒体を介してシステム又は装置に供給し、そのシステム又は装置のコンピュータにおける1つ以上のプロセッサーがプログラムを読出し実行する処理でも実現可能である。また、1以上の機能を実現する回路(例えば、ASIC)によっても実現可能である。
(Other embodiments)
The present invention supplies a program that realizes one or more functions of the above-described embodiments to a system or apparatus via a network or a storage medium, and one or more processors in a computer of the system or apparatus read and execute the program This process can be realized. It can also be realized by a circuit (for example, ASIC) that realizes one or more functions.

以上、本発明の好ましい実施形態について説明したが、本発明はこれらの実施形態に限定されず、その要旨の範囲内で種々の変形及び変更が可能である。   As mentioned above, although preferable embodiment of this invention was described, this invention is not limited to these embodiment, A various deformation | transformation and change are possible within the range of the summary.

100:交換レンズ、102:撮影レンズ、103:フォーカスレンズ、106:レンズマウント、200:デジタルカメラ本体、201:撮像素子、208:システム制御部 100: interchangeable lens, 102: photographing lens, 103: focus lens, 106: lens mount, 200: digital camera body, 201: image sensor, 208: system control unit

Claims (13)

撮影レンズが交換可能に装着される撮像装置であって、
前記撮影レンズに備えられたフォーカスレンズを光軸方向に移動させながら前記撮影レンズで結像された被写体像を撮像した画像データに基づいて、焦点検出領域のコントラストを示す焦点評価値を算出し、該焦点評価値が最大となるように前記フォーカスレンズの位置を調節する焦点調節手段と、
第1のタイミングで撮像した画像から前記焦点評価値を取得する第1の取得手段と、
第2のタイミングで前記撮影レンズとの通信によりフォーカスレンズの位置を取得する第2の取得手段と、
前記第1の取得手段と前記第2の取得手段のそれぞれにおいて、取得した順番に前記焦点評価値と前記フォーカスレンズの位置を記憶しておく記憶手段と、
前記第1のタイミングまたは前記第2のタイミングにおいて前記フォーカスレンズの位置と前記焦点評価値が前記記憶手段に共に記憶されている状態となった場合に、前記フォーカスレンズの位置と前記焦点評価値とを対応付ける制御手段と、
を備えることを特徴とする撮像装置。
An imaging device in which a photographic lens is interchangeably mounted,
Based on the image data obtained by capturing the subject image formed by the photographing lens while moving the focus lens provided in the photographing lens in the optical axis direction, a focus evaluation value indicating the contrast of the focus detection region is calculated, Focus adjusting means for adjusting the position of the focus lens so that the focus evaluation value is maximized;
First acquisition means for acquiring the focus evaluation value from an image captured at a first timing;
Second acquisition means for acquiring a position of the focus lens by communication with the photographing lens at a second timing;
In each of the first acquisition unit and the second acquisition unit, a storage unit that stores the focus evaluation value and the position of the focus lens in the acquisition order;
When the position of the focus lens and the focus evaluation value are stored in the storage unit at the first timing or the second timing, the position of the focus lens and the focus evaluation value are Control means for associating
An imaging apparatus comprising:
前記制御手段は、前記第2の取得手段により取得された前記フォーカスレンズの位置と、前記第2の取得手段により前回において取得された前記フォーカスレンズの位置とを用いて、露光期間の中心における前記フォーカスレンズの位置を算出することを特徴とする請求項1に記載の撮像装置。   The control means uses the position of the focus lens acquired by the second acquisition means and the position of the focus lens acquired last time by the second acquisition means, so that the control means at the center of the exposure period. The imaging apparatus according to claim 1, wherein the position of the focus lens is calculated. 前記制御手段は、前記第2のタイミングにおいて前記フォーカスレンズの位置が取得できなかった場合には、次回の前記第2のタイミングで前記フォーカスレンズの位置が取得できなかったことを通知することを特徴とする請求項1または2に記載の撮像装置。   If the position of the focus lens cannot be acquired at the second timing, the control means notifies that the position of the focus lens cannot be acquired at the next second timing. The imaging apparatus according to claim 1 or 2. 前記制御手段は、前記第2のタイミングにおいて前記フォーカスレンズの位置が取得できなかった場合には、そのタイミングで前記記憶手段に記憶されている最も古い焦点評価値を使わないことを特徴とする請求項1乃至3のいずれか1項に記載の撮像装置。   The control unit does not use the oldest focus evaluation value stored in the storage unit at the timing when the position of the focus lens cannot be acquired at the second timing. Item 4. The imaging device according to any one of Items 1 to 3. 前記制御手段は、前記第2のタイミングにおいて前記フォーカスレンズの位置が取得できなかった場合には、前々回のフォーカスレンズの位置を用いて露光期間の中心における前記フォーカスレンズの位置を算出することを特徴とする請求項2乃至4のいずれか1項に記載の撮像装置。   The control means calculates the position of the focus lens at the center of the exposure period using the position of the focus lens last time when the position of the focus lens could not be acquired at the second timing. The imaging device according to any one of claims 2 to 4. 撮影レンズと、該撮影レンズが装着される撮像装置とを有する撮像システムであって、
前記撮影レンズは、
被写体像の焦点を合わせるフォーカスレンズと、
前記フォーカスレンズを駆動する駆動手段とを備え、
前記撮像装置は、
前記フォーカスレンズを光軸方向に移動させながら前記撮影レンズで結像された被写体像を撮像した画像データに基づいて、焦点検出領域のコントラストを示す焦点評価値を算出し、該焦点評価値が最大となるように前記フォーカスレンズの位置を調節する焦点調節手段と、
第1のタイミングで撮像した画像から前記焦点評価値を取得する第1の取得手段と、
第2のタイミングで前記撮影レンズとの通信によりフォーカスレンズの位置を取得する第2の取得手段と、
前記第1の取得手段と前記第2の取得手段のそれぞれにおいて、取得した順番に前記焦点評価値と前記フォーカスレンズの位置を記憶しておく記憶手段と、
前記第1のタイミングまたは前記第2のタイミングにおいて前記フォーカスレンズの位置と前記焦点評価値が前記記憶手段に共に記憶されている状態となった場合に、前記フォーカスレンズの位置と前記焦点評価値とを対応付ける制御手段と、
を備えることを特徴とする撮像システム。
An imaging system having a photographic lens and an imaging device to which the photographic lens is attached,
The taking lens is
A focus lens that focuses the subject image;
Driving means for driving the focus lens;
The imaging device
A focus evaluation value indicating the contrast of the focus detection area is calculated based on image data obtained by capturing the subject image formed by the photographing lens while moving the focus lens in the optical axis direction. Focus adjusting means for adjusting the position of the focus lens so that
First acquisition means for acquiring the focus evaluation value from an image captured at a first timing;
Second acquisition means for acquiring a position of the focus lens by communication with the photographing lens at a second timing;
In each of the first acquisition unit and the second acquisition unit, a storage unit that stores the focus evaluation value and the position of the focus lens in the acquisition order;
When the position of the focus lens and the focus evaluation value are stored in the storage unit at the first timing or the second timing, the position of the focus lens and the focus evaluation value are Control means for associating
An imaging system comprising:
前記制御手段は、前記第2の取得手段により取得された前記フォーカスレンズの位置と、前記第2の取得手段により前回において取得された前記フォーカスレンズの位置とを用いて、露光期間の中心における前記フォーカスレンズの位置を算出することを特徴とする請求項6に記載の撮像システム。   The control means uses the position of the focus lens acquired by the second acquisition means and the position of the focus lens acquired last time by the second acquisition means, so that the control means at the center of the exposure period. The imaging system according to claim 6, wherein the position of the focus lens is calculated. 前記制御手段は、前記第2のタイミングにおいて前記フォーカスレンズの位置が取得できなかった場合には、次回の前記第2のタイミングで前記フォーカスレンズの位置が取得できなかったことを通知することを特徴とする請求項6または7に記載の撮像システム。   If the position of the focus lens cannot be acquired at the second timing, the control means notifies that the position of the focus lens cannot be acquired at the next second timing. The imaging system according to claim 6 or 7. 前記制御手段は、前記第2のタイミングにおいて前記フォーカスレンズの位置が取得できなかった場合には、そのタイミングで前記記憶手段に記憶されている最も古い焦点評価値を使わないことを特徴とする請求項6乃至8のいずれか1項に記載の撮像システム。   The control unit does not use the oldest focus evaluation value stored in the storage unit at the timing when the position of the focus lens cannot be acquired at the second timing. Item 9. The imaging system according to any one of Items 6 to 8. 前記制御手段は、前記第2のタイミングにおいて前記フォーカスレンズの位置が取得できなかった場合には、前々回のフォーカスレンズの位置を用いて露光期間の中心における前記フォーカスレンズの位置を算出することを特徴とする請求項7乃至9のいずれか1項に記載の撮像システム。   The control means calculates the position of the focus lens at the center of the exposure period using the position of the focus lens last time when the position of the focus lens could not be acquired at the second timing. The imaging system according to any one of claims 7 to 9. 撮影レンズが交換可能に装着される撮像装置を制御する方法であって、
前記撮影レンズに備えられたフォーカスレンズを光軸方向に移動させながら前記撮影レンズで結像された被写体像を撮像した画像データに基づいて、焦点検出領域のコントラストを示す焦点評価値を算出し、該焦点評価値が最大となるように前記フォーカスレンズの位置を調節する焦点調節工程と、
第1のタイミングで撮像した画像から前記焦点評価値を取得する第1の取得工程と、
第2のタイミングで前記撮影レンズとの通信によりフォーカスレンズの位置を取得する第2の取得工程と、
前記第1の取得工程と前記第2の取得工程のそれぞれにおいて、取得した順番に前記焦点評価値と前記フォーカスレンズの位置を記憶しておく記憶工程と、
前記第1のタイミングまたは前記第2のタイミングにおいて前記フォーカスレンズの位置と前記焦点評価値が前記記憶工程において共に記憶されている状態となった場合に、前記フォーカスレンズの位置と前記焦点評価値をと対応付ける制御工程と、
を備えることを特徴とする撮像装置の制御方法。
A method for controlling an imaging device in which a photographic lens is interchangeably mounted,
Based on the image data obtained by capturing the subject image formed by the photographing lens while moving the focus lens provided in the photographing lens in the optical axis direction, a focus evaluation value indicating the contrast of the focus detection region is calculated, A focus adjustment step of adjusting the position of the focus lens so that the focus evaluation value is maximized;
A first acquisition step of acquiring the focus evaluation value from an image captured at a first timing;
A second acquisition step of acquiring a position of the focus lens by communication with the photographing lens at a second timing;
In each of the first acquisition step and the second acquisition step, a storage step of storing the focus evaluation value and the position of the focus lens in the order of acquisition;
When the position of the focus lens and the focus evaluation value are stored in the storing step at the first timing or the second timing, the position of the focus lens and the focus evaluation value are A control process to associate with
An image pickup apparatus control method comprising:
請求項11に記載の制御方法の各工程をコンピュータに実行させるためのプログラム。   The program for making a computer perform each process of the control method of Claim 11. 請求項11に記載の制御方法の各工程をコンピュータに実行させるためのプログラムを記憶したコンピュータが読み取り可能な記憶媒体。   A computer-readable storage medium storing a program for causing a computer to execute each step of the control method according to claim 11.
JP2015002597A 2015-01-08 2015-01-08 Imaging apparatus and control method therefor, imaging system, program, and storage medium Active JP6478642B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2015002597A JP6478642B2 (en) 2015-01-08 2015-01-08 Imaging apparatus and control method therefor, imaging system, program, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2015002597A JP6478642B2 (en) 2015-01-08 2015-01-08 Imaging apparatus and control method therefor, imaging system, program, and storage medium

Publications (3)

Publication Number Publication Date
JP2016126299A true JP2016126299A (en) 2016-07-11
JP2016126299A5 JP2016126299A5 (en) 2018-02-15
JP6478642B2 JP6478642B2 (en) 2019-03-06

Family

ID=56357890

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2015002597A Active JP6478642B2 (en) 2015-01-08 2015-01-08 Imaging apparatus and control method therefor, imaging system, program, and storage medium

Country Status (1)

Country Link
JP (1) JP6478642B2 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008242442A (en) * 2007-02-15 2008-10-09 Matsushita Electric Ind Co Ltd Camera system
JP2009053429A (en) * 2007-08-27 2009-03-12 Olympus Imaging Corp Lens interchangeable type digital camera system
JP2009128785A (en) * 2007-11-27 2009-06-11 Canon Inc Imaging device and lens unit
JP2009139867A (en) * 2007-12-10 2009-06-25 Samsung Techwin Co Ltd Imaging apparatus and imaging method
JP2009260949A (en) * 2008-03-18 2009-11-05 Panasonic Corp Interchangeable lens type camera system and camera body
JP2013254017A (en) * 2012-06-05 2013-12-19 Canon Inc Imaging apparatus, lens unit, control method for imaging apparatus, control method for lens unit, and imaging system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008242442A (en) * 2007-02-15 2008-10-09 Matsushita Electric Ind Co Ltd Camera system
JP2009053429A (en) * 2007-08-27 2009-03-12 Olympus Imaging Corp Lens interchangeable type digital camera system
JP2009128785A (en) * 2007-11-27 2009-06-11 Canon Inc Imaging device and lens unit
JP2009139867A (en) * 2007-12-10 2009-06-25 Samsung Techwin Co Ltd Imaging apparatus and imaging method
JP2009260949A (en) * 2008-03-18 2009-11-05 Panasonic Corp Interchangeable lens type camera system and camera body
JP2013254017A (en) * 2012-06-05 2013-12-19 Canon Inc Imaging apparatus, lens unit, control method for imaging apparatus, control method for lens unit, and imaging system

Also Published As

Publication number Publication date
JP6478642B2 (en) 2019-03-06

Similar Documents

Publication Publication Date Title
US8525923B2 (en) Focusing method and apparatus, and recording medium for recording the method
JP7086571B2 (en) Image pickup device, lens device and control method thereof
JP2009251557A (en) Imaging apparatus
US10708503B2 (en) Image capture system, image capturing apparatus, lens unit, control methods therefor, and storage medium
JP2017211487A (en) Imaging apparatus and automatic focus adjustment method
JP2012163940A (en) Image pickup device, image pickup method and image pickup program
JP2020022012A (en) Imaging device and control method thereof
JP5787634B2 (en) Imaging device
US8600226B2 (en) Focusing methods and apparatus, and recording media for recording the methods
JP6234016B2 (en) Focus adjustment device, imaging device, and control method thereof
JP2019080123A (en) Imaging control device
JP5744501B2 (en) Focus adjustment apparatus, control method thereof, and program
JP6478642B2 (en) Imaging apparatus and control method therefor, imaging system, program, and storage medium
JP6032884B2 (en) IMAGING DEVICE, IMAGING DEVICE CONTROL METHOD, PROGRAM
JP6429497B2 (en) Imaging apparatus, control method, and program
JP2013061665A (en) Imaging apparatus and camera body
JP6257186B2 (en) Imaging apparatus, imaging method, and program
JP2011059707A (en) Imaging apparatus, control method, and user interface display device
JP2016142895A (en) Focusing control device, control method of the same, and control program thereof, as well as imaging device
JP2007334242A (en) Digital camera
JP2019148668A (en) Focus adjustment device, and focus adjustment device control method
JP5904714B2 (en) FOCUS DETECTION DEVICE, ITS CONTROL METHOD, AND IMAGING DEVICE HAVING FOCUS DETECTION DEVICE
JP2017219591A (en) Imaging apparatus, lens device, method for controlling imaging apparatus, program, and storage medium
JP2016219984A (en) Imaging device, imaging method, and program
JP6415279B2 (en) Imaging control apparatus, imaging apparatus, and imaging control program

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20171225

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20171225

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20180725

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20180817

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20181009

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20190205

R151 Written notification of patent or utility model registration

Ref document number: 6478642

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151