JP2016218428A - Imaging apparatus and control method thereof - Google Patents
Imaging apparatus and control method thereof Download PDFInfo
- Publication number
- JP2016218428A JP2016218428A JP2016006446A JP2016006446A JP2016218428A JP 2016218428 A JP2016218428 A JP 2016218428A JP 2016006446 A JP2016006446 A JP 2016006446A JP 2016006446 A JP2016006446 A JP 2016006446A JP 2016218428 A JP2016218428 A JP 2016218428A
- Authority
- JP
- Japan
- Prior art keywords
- focus detection
- adjustment value
- determination
- focus
- adjustment
- 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.)
- Pending
Links
Images
Landscapes
- Focusing (AREA)
- Automatic Focus Adjustment (AREA)
- Studio Devices (AREA)
Abstract
Description
本発明は、撮像装置及びその制御方法に関し、特に、自動焦点調節が可能な撮像装置及びその制御方法に関するものである。 The present invention relates to an imaging apparatus and a control method thereof, and more particularly to an imaging apparatus capable of automatic focus adjustment and a control method thereof.
一眼レフカメラには、交換レンズ内の撮影光学系を通った光によって形成された一対の像信号の位相差から撮影光学系の焦点状態(デフォーカス値)を検出する位相差検出方式による焦点検出システムが搭載されていることが多い。このような位相差検出方式では、撮影時の環境などの影響や、一眼レフカメラ及び交換レンズの製造誤差の影響等により、合焦位置を正確に検出できないおそれがある。そのため、使用者が自動焦点調節機能(AF)の結果を調整するためのAF調整値を任意に設定する機能(AFマイクロアジャストメント)を有する撮像装置がある。しかしながら、AFマイクロアジャストメントでは、ユーザーが微調節した結果が正しいかどうかを確認するために、撮影と確認の作業を繰り返す必要がある。 For single-lens reflex cameras, focus detection by a phase difference detection method that detects the focus state (defocus value) of the imaging optical system from the phase difference between a pair of image signals formed by light passing through the imaging optical system in the interchangeable lens The system is often installed. In such a phase difference detection method, there is a possibility that the in-focus position cannot be accurately detected due to the influence of the environment at the time of shooting, the influence of manufacturing errors of the single-lens reflex camera and the interchangeable lens, or the like. Therefore, there is an imaging apparatus having a function (AF microadjustment) for arbitrarily setting an AF adjustment value for the user to adjust the result of the automatic focus adjustment function (AF). However, in AF micro-adjustment, it is necessary to repeat the photographing and checking operations to check whether the result of fine adjustment by the user is correct.
そこで、ユーザーがより簡単に所望のAF調整値を設定するための方法が提案されている。特許文献1では、画像にピント位置変位量を関連付けておき、ユーザーがピントが合っていると判断した画像に関連付けられたピント位置変位量を基にAF補正量(AF調整値)を自動的に取得する機能を有する撮像装置が開示されている。具体的には、所定幅ずつフォーカスレンズを移動させて、複数の異なるレンズ位置それぞれにおいて画像の撮影を順次自動的に行う(フォーカスブラケット撮影)。ユーザーは複数枚の撮影画像の中から所望のピントの画像を選択することで、意図通りのAF補正量を簡単に設定することができる。 Therefore, a method has been proposed for allowing a user to set a desired AF adjustment value more easily. In Patent Literature 1, an AF position correction amount (AF adjustment value) is automatically set based on a focus position displacement amount associated with an image that is determined to be in focus by associating the image with a focus position displacement amount. An imaging apparatus having a function to acquire is disclosed. Specifically, the focus lens is moved by a predetermined width, and images are automatically captured sequentially at a plurality of different lens positions (focus bracket imaging). The user can easily set the AF correction amount as intended by selecting a desired focus image from a plurality of captured images.
特許文献1では、AFブラケットステップ量とブラケット回数に応じてピント位置変位量を取得するが、各レンズ位置で実際にデフォーカス量を検出した場合に、種々の誤差要因により上述のピント位置変位量と一致しない可能性がある。そこで、より精度の良いAF調整値を取得するために、各レンズ位置でデフォーカス量を検出し、検出されたデフォーカス量に基づいてAF調整値を算出することが想定される。 In Patent Document 1, the focus position displacement amount is acquired according to the AF bracket step amount and the number of brackets. However, when the defocus amount is actually detected at each lens position, the above-described focus position displacement amount is caused by various error factors. May not match. Therefore, in order to obtain a more accurate AF adjustment value, it is assumed that the defocus amount is detected at each lens position, and the AF adjustment value is calculated based on the detected defocus amount.
しかしながら、例えば直射日光などの影響によりレンズやレンズフードが熱くなることで空気中に局所的な温度勾配が発生する場合等、デフォーカス量の検出誤差が大きくなる場合があり、その結果としてAF調整値に大きな誤差を含むおそれがある。このように大きな誤差を含むAF調整値を実際の撮影時の調整に用いると、AF精度が悪化してしまう問題がある。 However, for example, when the lens or lens hood becomes hot due to the influence of direct sunlight, a local temperature gradient occurs in the air, etc., the detection error of the defocus amount may increase, and as a result, AF adjustment There is a possibility that the value includes a large error. If an AF adjustment value including such a large error is used for adjustment at the time of actual photographing, there is a problem that AF accuracy deteriorates.
本発明は上記問題点を鑑みてなされたものであり、焦点検出結果を調整するためのAF調整値をより精度よく取得することを目的とする。 The present invention has been made in view of the above problems, and an object thereof is to obtain an AF adjustment value for adjusting a focus detection result with higher accuracy.
上記目的を達成するために、第1の本発明は、焦点検出結果の調整に用いる調整値を記憶部に設定するための調整モードを有する撮像装置であって、電荷を蓄積して焦点検出に用いる一対の像信号を生成する信号生成手段と、前記一対の像信号に基づいて焦点検出を行う焦点検出手段と、前記焦点検出手段による焦点検出結果の調整に用いる前記調整値を取得する取得手段と、複数回の焦点検出結果に基づいて、前記調整値の取得に適合した条件かどうかを判定する判定手段と、前記信号生成手段における電荷の蓄積を制御する蓄積制御手段とを有し、前記調整モードにおいて、前記判定手段により前記調整値の取得に適合した条件であると判定された場合に、前記取得手段は、焦点状態の異なる複数の画像の中から選択された画像に対応する焦点検出結果に基づいて前記調整値を取得し、前記蓄積制御手段は、前記判定手段による判定に用いられる前記複数回の焦点検出結果を取得するための時間が所定時間以上となるように、当該複数回の焦点検出結果を取得する際の前記信号生成手段における電荷の蓄積を制御することを特徴とする。 In order to achieve the above object, the first aspect of the present invention is an imaging apparatus having an adjustment mode for setting an adjustment value used for adjustment of a focus detection result in a storage unit, and accumulates electric charges for focus detection. A signal generation unit that generates a pair of image signals to be used; a focus detection unit that performs focus detection based on the pair of image signals; and an acquisition unit that acquires the adjustment value used to adjust a focus detection result by the focus detection unit And determination means for determining whether the condition is suitable for acquisition of the adjustment value based on a plurality of focus detection results, and accumulation control means for controlling charge accumulation in the signal generation means, In the adjustment mode, when the determination unit determines that the condition is suitable for acquisition of the adjustment value, the acquisition unit corresponds to an image selected from a plurality of images having different focus states. The adjustment value is acquired based on a focus detection result, and the accumulation control unit is configured so that a time for acquiring the plurality of focus detection results used for determination by the determination unit is a predetermined time or more. It is characterized by controlling charge accumulation in the signal generating means when acquiring a plurality of focus detection results.
第2の本発明は、焦点検出結果の調整に用いる調整値を取得するための調整モードを有する撮像装置であって、電荷を蓄積して焦点検出に用いる一対の像信号を生成する第1の信号生成手段および第2の信号生成手段と、前記第1の信号生成手段で生成された一対の像信号に基づいて焦点検出を行う第1の焦点検出手段と、前記第2の信号生成手段で生成された一対の像信号に基づいて焦点検出を行う第2の焦点検出手段と、前記第1の焦点検出手段による焦点検出結果の調整に用いる前記調整値を取得する取得手段と、前記第1の焦点検出手段による複数回の焦点検出結果に基づいて、前記調整値の取得に適合した条件かどうかを判定する判定手段と、前記第1の信号生成手段における電荷の蓄積を制御する蓄積制御手段とを有し、前記調整モードにおいて、前記判定手段により前記調整値の取得に適合した条件であると判定された場合に、前記取得手段は、前記第2の焦点検出手段の焦点検出結果に基づいて前記調整値を取得し、前記判定手段は、前記複数回の焦点検出結果のばらつきが所定の範囲内である場合に、前記調整値の取得に適合した条件であると判定し、前記ばらつきが前記所定の範囲外であって、前記第1の信号生成手段で生成された前記像信号が所定の条件を満たす場合には、前記第1の焦点検出手段による複数回の焦点検出および前記判定手段による前記判定を再度行うことを特徴とする。 According to a second aspect of the present invention, there is provided an imaging apparatus having an adjustment mode for acquiring an adjustment value used for adjusting a focus detection result, wherein a first pair of image signals used for focus detection by accumulating charges is generated. A signal generating means and a second signal generating means; a first focus detecting means for performing focus detection based on a pair of image signals generated by the first signal generating means; and the second signal generating means. Second focus detection means for performing focus detection based on the pair of generated image signals, acquisition means for acquiring the adjustment value used for adjusting the focus detection result by the first focus detection means, and the first Determining means for determining whether the condition is suitable for acquisition of the adjustment value based on a plurality of focus detection results by the focus detection means, and an accumulation control means for controlling charge accumulation in the first signal generating means And the tone In the mode, when the determination unit determines that the condition is suitable for acquisition of the adjustment value, the acquisition unit acquires the adjustment value based on a focus detection result of the second focus detection unit. The determination unit determines that the condition is suitable for obtaining the adjustment value when the variation in the plurality of focus detection results is within a predetermined range, and the variation is out of the predetermined range. When the image signal generated by the first signal generation unit satisfies a predetermined condition, the focus detection by the first focus detection unit and the determination by the determination unit are performed again. It is characterized by.
本発明によれば、焦点検出結果を調整するためのAF調整値をより精度良く取得することができる。 According to the present invention, an AF adjustment value for adjusting a focus detection result can be acquired with higher accuracy.
以下、添付図面を参照して本発明にかかる実施形態について説明する。本実施形態において例示される構成部品の寸法、形状、それらの相対配置などは、本発明が適用される装置の構成や各種条件により適宜変更されるべきものであり、本発明がそれらの例示に限定されるものではない。 Embodiments according to the present invention will be described below with reference to the accompanying drawings. The dimensions, shapes, relative arrangements, and the like of the components exemplified in the present embodiment should be appropriately changed according to the configuration of the apparatus to which the present invention is applied and various conditions. It is not limited.
図1は、本実施形態における撮像装置の概略構成を示すブロック図である。図1に示すように、撮像装置200には、撮影レンズ100が不図示のマウント部のレンズ装着機構を介して着脱可能に取り付けられる。マウント部には、電気接点ユニット104が設けられている。撮像装置200は、電気接点ユニット104を介して撮影レンズ100と通信を行い、撮影レンズ100内のフォーカスレンズ101を制御する。なお、図1では、撮影レンズ100内のレンズとしてフォーカスレンズ101のみを示しているが、この他に変倍レンズや固定レンズ等の複数のレンズが通常設けられている。
FIG. 1 is a block diagram illustrating a schematic configuration of an imaging apparatus according to the present embodiment. As shown in FIG. 1, a photographing
不図示の被写体からの光束は、撮影レンズ100内の撮影光学系(フォーカスレンズ101含む)を介して、撮像装置200内のメインミラー201に導かれる。メインミラー201は、撮影光路内に光軸に対して斜めに配置され、被写体からの光束を上方のファインダ光学系に導く第1の位置(図示した位置)と、撮影光路外に退避する第2の位置とに移動が可能である。また、メインミラー201の中央部はハーフミラーになっており、メインミラー201が第1の位置にミラーダウンしているときには、被写体からの光束の一部がハーフミラー部を透過する。そして、この透過した光束は、メインミラー201の背面側に設けられたサブミラー202で反射され、焦点検出部207に導かれる。
A light beam from a subject (not shown) is guided to a
焦点検出部207(信号生成手段)にはラインセンサーの対が配置されており、各ラインセンサーで受光された光束が光電変換されて、一対の像信号が生成される。位相差検出方式においては、一対の像信号の相対的なずれ量に基づいて、デフォーカス値が検出される。 A pair of line sensors is arranged in the focus detection unit 207 (signal generation means), and a light beam received by each line sensor is photoelectrically converted to generate a pair of image signals. In the phase difference detection method, the defocus value is detected based on the relative shift amount of the pair of image signals.
一方、メインミラー201で反射された光束は、撮像素子209と光学的に共役な位置に配置されたピント板203上に結像する。ピント板203にて拡散されてこれを透過した光(被写体像)は、ペンタダハプリズム204によって正立像に変換される。正立像は、接眼レンズ205によって拡大され、ユーザーはこれを観察することができる。
On the other hand, the light beam reflected by the
また、メインミラー201が第2の位置にミラーアップした際には、サブミラー202もメインミラー201と共に折り畳まれて撮影光路外に退避する。これにより、撮影レンズ光学系を通過した光束は、メカシャッタであるフォーカルプレーンシャッタ208を通過し、撮像素子209に至る。フォーカルプレーンシャッタ208は、撮像素子209に入射する光量を制限する。撮像素子209は、撮影レンズ100により形成された被写体像を光電変換して電気信号を出力する、CCDセンサやCMOSセンサ等の光電変換素子等を用いて構成される。
Further, when the
カメラ制御部210は、撮像装置200における各種演算や各種動作の制御を行うコントローラである。カメラ制御部210は、CPUやMPU等を用いて構成され、後述する各回路等の動作を制御する。カメラ制御部210は、電気接点ユニット104を介して、撮影レンズ100内のレンズ制御部103と通信を行う。カメラ制御部210(フォーカス制御手段)は、デフォーカス値の検出を行い、レンズ制御部103は、カメラ制御部210からの制御信号に応じて、フォーカスレンズ101を光軸方向に駆動して焦点調節を行うレンズ駆動機構102を制御する。レンズ駆動機構102は、ステッピングモータを駆動源として有する。
The
また、カメラ制御部210には、EEPROM211が接続されている。EEPROM211には、撮像装置200を制御する上で調整が必要なパラメータや、撮像装置200の個体識別を行うためのカメラID(識別)情報、基準レンズを用いて予め調整された、撮影に関するパラメータの工場調整値等が記憶されている。
The
さらに、カメラ制御部210には、ユーザーによる撮像装置200への操作を検出する操作検出部213と、カウンター214とが接続されている。操作検出部213は、不図示のレリーズボタンや、選択ボタン、後述するブラケット撮影により得られた複数の画像の中から1つを選択させるボタンなどの操作を検出する。カウンター214は、ブラケット撮影を行う際の撮影回数をカウントするためのカウンターである。カウンター214の計数値リセットはカメラ制御部210により行われる。
Furthermore, the
表示部212は、撮像素子209により撮像された画像データや、ユーザーが設定する項目などを表示する装置であり、一般にはカラーの液晶表示素子を用いて構成される。
The
一方、撮影レンズ100のレンズ制御部103には、撮影レンズ100の焦点距離や開放絞り値等の性能情報、撮影レンズ100を識別するための固有の情報であるレンズID(識別)情報を記憶するメモリ(不図示)が設けられている。メモリは、カメラ制御部210から通信により受け取った情報も記憶する。なお、性能情報及びレンズID情報は、撮像装置200への撮影レンズ100装着時における初期通信によりカメラ制御部210に送信され、カメラ制御部210はこれらをEEPROM211に記憶させる。
On the other hand, the
図2は、本実施形態におけるAF調整値設定処理を示すフローチャートである。本実施形態では、ユーザーがAF調整値を任意に設定するAFマイクロアジャストメントを行う第1の調整モードと、マイクロアジャストメントサポート(MAS)を利用してAF調整値を取得する第2の調整モードのいずれかを選択可能とする。なお、AFマイクロアジャストメント及びMASを利用した処理の詳細については後述する。 FIG. 2 is a flowchart showing AF adjustment value setting processing in the present embodiment. In the present embodiment, a first adjustment mode for performing AF micro-adjustment in which the user arbitrarily sets an AF adjustment value, and a second adjustment mode for acquiring an AF adjustment value using micro-adjustment support (MAS). Either of these can be selected. Details of processing using AF micro-adjustment and MAS will be described later.
まず、ステップS201において、カメラ制御部210は、第1の調整モードが選択されたかどうかを判別する。第1の調整モードが選択されていればステップS205に進み、第1の調整モードが選択されていなければステップS202に進む。
First, in step S201, the
ステップS205において、カメラ制御部210は、AFマイクロアジャストメントを行うためのAF調整値設定画面を表示部212に表示するよう制御する。図3は、AF調整値設定画面の一例を示す図である。
In step S205, the
AFマイクロアジャストメントは、ユーザーが直接AF調整値を設定する機能である。ユーザーは、撮影した画像をもとに、焦点検出部207による焦点検出結果に基づく合焦位置から、所望の合焦位置までのピントのずれ量とその方向を判断してAF調整値を設定する。図3に示すように、本実施形態におけるAFマイクロアジャストメントでは、ユーザーがAF調整値を±20目盛の範囲で1目盛刻みで任意に設定することが可能であり、設定されたAF調整値に従って、デフォーカス値に基づく合焦位置がシフトされる。AF調整値の1目盛あたりのピント変化量は、本実施形態では(1/16)×Fδ(F:撮影レンズの開放F値、δ:許容錯乱円径)とするが、これに限られるものではなく、撮影レンズ100や撮像装置200の性能に応じて適宜変更することができる。
The AF micro adjustment is a function in which the user directly sets the AF adjustment value. Based on the photographed image, the user determines the amount of focus shift from the in-focus position based on the focus detection result by the
図3において、「0」は撮像装置200の工場出荷時に設定された基準位置である。図3に示すAF調整値設定画面において、黒塗り三角表示はEEPROM211に格納されているAF調整値を表している。ユーザーが黒塗り三角表示を目盛に沿って移動するように操作することで、AF調整値を変更することができる。なお、本実施形態では、AF調整値を例えば+1のように目盛単位で記憶することとするが、デフォーカス値の単位で記憶してもよい。AF調整値設定画面が表示されるとステップS206へ進む。
In FIG. 3, “0” is a reference position set when the
ステップS206では、カメラ制御部210は、ユーザーによりAF調整値設定画面を用いてAF調整値を変更する操作が行われたかどうかの判定を行う。AF調整値を更新する操作が行われた場合はステップS207へ進み、AF調整値を更新する操作が行われていなければステップS208へ進む。
In step S206, the
ステップS207では、カメラ制御部210は、ユーザーの操作に応じて、AF調整値設定画面の表示を更新するように制御する。ここでは、図3に示すAF調整値設定画面において、ユーザーの操作に応じた位置に黒塗り三角表示が表示される。
In step S207, the
ステップS208では、カメラ制御部210は、ユーザーがAF調整値を決定したかどうかを判定する。ここでは、図3に示すAF調整値設定画面において、「設定」ボタンが選択されたかどうかが判定される。「設定」ボタンが選択されていなければ、ステップS206へ戻って上記の処理を繰り返す。一方、「設定」ボタンが選択されてAF調整値が決定すると、ステップS209へ進み、カメラ制御部210はAF調整値設定画面の表示を終了して、ステップS210へ進む。
In step S208, the
ステップS210では、カメラ制御部210は、第1の調整モードが選択された時点でEEPROM211に記憶されていたAF調整値と、ステップS206〜S208の処理により新たに設定されたAF調整値とが異なるかどうかを判定する。これらが異なる場合、すなわちAF調整値が更新された場合は、ステップS204へ進み、カメラ制御部210はEEPROM211に記憶されているAF調整値の登録を更新し、AF調整値が更新されていない場合は、AF調整値設定処理を終了する。
In step S210, the
一方、ステップS201で第1の調整モードが選択されていなければ、ステップS202において第2の調整モードでMASを利用したAF調整値の算出を行う。MASを利用する第2の調整モードでは、フォーカスレンズ101の位置を微小量ずつ駆動しながら複数の画像を撮影する。得られた画像の中からユーザーが所望するピントの画像を選択し、その画像のデフォーカス値に基づいてAF調整値を求める。なお、ステップS202で行われる第2の調整モードの処理の詳細については後述する。AF調整値が算出されると、ステップS203に進む。
On the other hand, if the first adjustment mode is not selected in step S201, an AF adjustment value using MAS is calculated in the second adjustment mode in step S202. In the second adjustment mode using MAS, a plurality of images are taken while the position of the
ステップS203では、カメラ制御部210は、EEPROM211に記憶されていたAF調整値を、ステップS202で算出したAF調整値に更新するかどうかの判定を行う。ここでは例えば、所定の操作により算出したAF調整値の設定が選択された場合等、AF調整値を更新する場合はステップS204へ進み、カメラ制御部210はEEPROM211に記憶されているAF調整値の登録を更新する。一方、所定の操作によりAF調整値の設定処理がキャンセルされた場合等、AF調整値を更新しない場合はAF調整値の設定処理を終了する。
In step S203, the
上述の処理によって、EEPROM211に記憶されたAF調整値は、下記の式(1)によって、通常撮影時(記録用の画像撮影時)に焦点検出部207による焦点検出結果に基づくAF時のフォーカスレンズの駆動量の補正に用いられる。
レンズ駆動量の算出に用いるピントずれ量=デフォーカス値+AF調整値に対応するピントずれ量 …(1)
The AF adjustment value stored in the
Defocus amount used to calculate the lens drive amount = defocus value + focus shift amount corresponding to the AF adjustment value (1)
なお、上記式(1)において、デフォーカス値は、焦点検出部207が検出するデフォーカス値(焦点検出結果)を表す。デフォーカス値は、製造時のデフォーカス値調整データや、温度によるピントずれ量を補正する温度補正値、レリーズ回数によって変化するピントを補正する耐久補正値などの予め設定されている補正値を加味して算出してよい。
In the above formula (1), the defocus value represents a defocus value (focus detection result) detected by the
なお、本実施例では、第1の調整モードと第2の調整モードからいずれかを選択する構成としたが、第2の調整モードのみを備える撮像装置も本発明の適用範囲内である。 In this embodiment, one of the first adjustment mode and the second adjustment mode is selected. However, an imaging apparatus having only the second adjustment mode is also within the scope of the present invention.
次に、ステップS202で行われる第2の調整モードにおけるMASを利用したAF調整値の設定処理について、図4のフローチャートを参照して説明する。 Next, the AF adjustment value setting process using MAS in the second adjustment mode performed in step S202 will be described with reference to the flowchart of FIG.
まず、ステップS401において、カメラ制御部210は、表示部212にフォーカスブラケット撮影調整用画面を表示するように制御する。表示される内容は、例えばユーザーへの操作指示等である。調整用画面が表示されると、ステップS402に進む。
First, in step S <b> 401, the
ステップS402では、カメラ制御部210は、焦点検出部207で検出された一対の像信号に基づいて、AF調整値の算出に用いる被写体に対するデフォーカス値を検出する。デフォーカス値の検出が終了するとステップS403へ進む。
In step S <b> 402, the
ステップS403では、カメラ制御部210は、検出したデフォーカス値に応じた位置(合焦位置)へフォーカスレンズ101を移動させるように、レンズ制御部103へ駆動指示を送る。フォーカスレンズ101の駆動が終了すると、ステップS404へ進む。
In step S403, the
ステップS404では、カメラ制御部210は、AF調整値の算出に適合した条件かどうかを複数回の焦点検出結果から判定する。判定の詳細については、図5のフローチャートを参照して後述する。適合する条件の場合はステップS405へ進み、適合する条件でない場合はステップS417へ進む。
In step S <b> 404, the
適合する条件でなかった場合、ステップS417では、カメラ制御部210は、エラーメッセージ(エラー発生の事実及びエラーの推定原因)を表示部212に表示するように制御する。表示が完了するとステップS418へ進み、ユーザーから調整をやり直すか中止するかの指示を受け付ける。調整をやり直す場合はステップS402に戻り、中止する場合は第2の調整モードを終了する。
If the condition is not met, in step S417, the
一方、ステップS405では、カメラ制御部210は、フォーカスブラケット開始位置へフォーカスレンズを移動させるように、レンズ制御部103へ駆動指示を送る。ここで、撮影毎のフォーカスレンズの駆動幅をs、撮影枚数をmとしたときのフォーカスブラケット開始位置は、デフォーカス値に基づいて算出された合焦位置から(m−1)×s/2だけ至近側とする。
On the other hand, in step S405, the
ステップS406では、カメラ制御部210は、カウンター214のカウンタ値nのリセットを行う。このカウンタ値nは、フォーカスブラケットの撮影枚数と対応付けられるものであり、フォーカスブラケット撮影開始前に0にした後、ステップS407へ進む。
In step S406, the
ステップS407では、カメラ制御部210は、AF調整値の算出に適合した条件かどうかを複数回の焦点検出結果から判定する。判定の詳細については、図6のフローチャートを参照して後述する。適合する条件の場合はステップS408へ進み、適合する条件でない場合はステップS417へ進んでエラーメッセージを表示する。
In step S407, the
ステップS408では、カメラ制御部210は、焦点検出部207で検出された一対の像信号に基づいてデフォーカス値を検出する。ここで検出されたデフォーカス値は、最終的にステップS410で撮影される画像と対応づけて記憶される。デフォーカス値の検出が終了するとステップS409へ進む。
In step S408, the
ステップS409では、ステップS410の撮影に先立ち、メインミラー201とサブミラー202を撮影光路から退避させた第2の位置へ移動させるミラーアップを行う。ミラーアップが終了するとステップS410へ進む。
In step S409, prior to photographing in step S410, mirror up is performed to move the
ステップS410では、カメラ制御部210は、撮像素子209を用いて撮影を行い、得られた画像をステップS408で検出されたデフォーカス値と対応づけて記憶する。撮影が終わるとステップS411へ進み、メインミラー201とサブミラー202を上述した撮影光路内の第1の位置へ移動するミラーダウンを行う。ミラーダウンが終了するとステップS412へ進む。
In step S410, the
ステップS412では、カメラ制御部210は、撮影枚数を示すカウンタ値nのカウントアップを行って、ステップS413へ進む。ステップS413では、カメラ制御部210は、カウンタ値nの値が撮影枚数mに達したかどうかの判定を行う。カウンタ値nが撮影枚数mに達していない場合はステップS414へ、達した場合はステップS415へ進む。
In step S412, the
ステップS414では、カメラ制御部210は、レンズ駆動幅sだけフォーカスレンズ101を無限側へ移動させるようにレンズ制御部103へ駆動指示を送り、ステップS407へ進む。ステップS407〜S414を繰り返すことで、レンズ駆動幅sずつピント状態がずれた画像が連続してm枚撮影される。
In step S414, the
ステップS415では、レンズ駆動幅ずつピント状態がずれたm枚の画像の中から、所望のピント状態の画像をユーザーが1つ選択する。なお、ステップS415では必ずしも画像を選択する必要はなく、所望のピント状態の画像が選択困難な場合等、画像が所定時間選択されなかったり、所定の操作によりAF調整値の設定処理がキャンセルされた場合等には、第2の調整モードを終了する。一方、いずれかの画像が選択された場合にはステップS416へ進む。 In step S415, the user selects one image in a desired focus state from m images whose focus states are shifted by the lens driving width. In step S415, it is not always necessary to select an image. For example, when it is difficult to select a desired focused image, the image is not selected for a predetermined time, or the AF adjustment value setting process is canceled by a predetermined operation. In some cases, the second adjustment mode is terminated. On the other hand, if any image is selected, the process proceeds to step S416.
ステップS416では、カメラ制御部210は、ステップS415でユーザーが選択した画像に対応づけられているデフォーカス値を基にAF調整値を算出する。AF調整値を算出すると、第2の調整モードを終了し、図2のステップS203に進む。
In step S416, the
なお、上述した例では、第2の調整モードにおいてはMASを利用し、フォーカスブラケット撮影で得られたAF調整値算出用画像群からユーザーが1枚の画像を選ぶものとして説明した。しかしながら、本発明はこれに限るものではなく、AF調整値の算出のためにフォーカスブラケット撮影を行わなくてもよい。例えば、デフォーカス値と画像が対応付けられた時間的に不連続な複数枚の画像をAF調整値算出用画像とし、ユーザーがその中から1枚を選び、選ばれた画像に対応付けられたデフォーカス値からAF調整値を算出してもよい。 In the above-described example, the MAS is used in the second adjustment mode, and the user selects one image from the AF adjustment value calculation image group obtained by focus bracket shooting. However, the present invention is not limited to this, and it is not necessary to perform focus bracket photographing for calculating the AF adjustment value. For example, a plurality of temporally discontinuous images in which a defocus value and an image are associated are used as AF adjustment value calculation images, and the user selects one of them and associates it with the selected image. The AF adjustment value may be calculated from the defocus value.
図5は、本実施例において図4のステップS404で行われる適合条件の判定処理を示すフローチャートである。 FIG. 5 is a flowchart showing the matching condition determination process performed in step S404 of FIG. 4 in the present embodiment.
ステップS501では、カメラ制御部210は、焦点検出部207からAF波形(像信号)の取得を行う。AF波形を取得するとステップS502に進む。
In step S <b> 501, the
ステップS502では、カメラ制御部210は、適合条件かどうかを判定するための判定閾値の設定を行う。ここでは、被写体に十分コントラストがあるかどうかを判定するためのコントラスト判定閾値C1と、焦点検出結果のばらつきが十分小さいかどうかを判定するためのばらつき判定閾値σ1が設定される。コントラスト判定閾値C1とばらつき判定閾値σ1は、撮影環境または撮像装置200の設定の少なくともいずれかに基づいて設定される。
In step S <b> 502, the
例えば、被写体輝度が暗いことにより増大する焦点検出結果のばらつきに対しては、複数回焦点検出を行った結果の平均を取得することにより、真値に近い値が得られることが多い。そのため、被写体輝度が暗い場合であっても、判定閾値σ1は比較的大きな値に(緩く)設定してよい。一方、温度(外気温)が高く、撮像装置と被写体の間の空気の揺らぎによって増大する焦点検出結果のばらつきに対しては、複数回焦点検出を行った結果の平均を取得しても、真値に近づかないことが多い。そのため、外気温が所定の温度よりも高い場合には、所定の温度以下の場合と比較して判定閾値σ1が小さく(判定が厳しくなるように)設定される。 For example, for variations in focus detection results that increase due to dark subject brightness, a value close to the true value is often obtained by obtaining the average of the results of multiple focus detections. Therefore, even when the subject brightness is low, the determination threshold σ1 may be set to a relatively large value (slowly). On the other hand, even if the average of the results of multiple focus detections is acquired for the variation in focus detection results, which are high due to the high temperature (outside air temperature) and increase due to air fluctuation between the imaging device and the subject, Often not close to the value. For this reason, when the outside air temperature is higher than the predetermined temperature, the determination threshold σ1 is set smaller (so that the determination becomes stricter) than in the case where the outside air temperature is lower than the predetermined temperature.
また、撮像装置の設定として、ISO感度が高く撮影画像のノイズが多い場合や、F値(絞り値)が大きく撮影画像の焦点深度が深い場合は、ステップS415における画像選択の選択誤差が大きくなる可能性が高い。そこで、画像選択誤差が大きい状態でも算出されるAF調整値の精度を落とさないために、画像に関連付けられるデフォーカス値の算出誤差を小さくする必要がある。そこで、ISO感度が所定の感度よりも高く設定されたり、F値が所定値よりも大きく設定された場合には、そうでない場合と比較して、判定閾値C1が大きく、判定閾値σ1が小さく(判定が厳しくなるように)設定される。 If the ISO sensitivity is high and there is a lot of noise in the captured image, or if the F value (aperture value) is large and the depth of focus of the captured image is deep, the selection error in image selection in step S415 becomes large. Probability is high. Therefore, it is necessary to reduce the calculation error of the defocus value associated with the image in order not to reduce the accuracy of the AF adjustment value calculated even when the image selection error is large. Therefore, when the ISO sensitivity is set higher than the predetermined sensitivity or when the F value is set higher than the predetermined value, the determination threshold C1 is larger and the determination threshold σ1 is smaller than when the ISO sensitivity is not set ( It is set so that the judgment becomes severe.
ステップS503では、カメラ制御部210は、AF調整値の算出に適合した被写体(適合被写体)かどうかの判定を行う。具体的には、ステップS501で取得したAF波形のコントラストがコントラスト判定閾値C1以下(閾値以下)の場合、正確な焦点検出結果を得にくい被写体であると判定する。また、輝度が所定の輝度以下の場合にも、正確な焦点検出結果を得にくい被写体であると判定する。AF波形のコントラストと輝度の少なくとも一方が条件を満たさなければ、ステップS508に進み、適合条件でないと判定して処理を終了する。一方、AF波形のコントラストがコントラスト判定閾値C1よりも大きく、輝度が所定の輝度よりも大きければ、ステップS504に進む。
In step S503, the
ステップS504では、カメラ制御部210(蓄積制御手段)は、ステップS501におけるAF波形を取得する際のラインセンサーの電荷蓄積時間に基づいて、蓄積設定を行う。具体的には、後述するステップS505における、ばらつき判定のための複数回の焦点検出にかかる時間が所定時間T1以上になるように、ラインセンサーにおける蓄積回数と蓄積間隔の少なくとも一方を設定する。AF波形を取得する際の蓄積時間は、ステップS505における焦点検出においても適用され、通常、輝度が明るいほど短くなる。 In step S504, the camera control unit 210 (accumulation control unit) performs accumulation setting based on the charge accumulation time of the line sensor when acquiring the AF waveform in step S501. Specifically, at least one of the number of accumulations and the accumulation interval in the line sensor is set so that the time required for multiple focus detections for variation determination in step S505 described later is equal to or longer than a predetermined time T1. The accumulation time for acquiring the AF waveform is also applied to the focus detection in step S505, and usually becomes shorter as the brightness becomes brighter.
上述した外気温による空気の揺らぎに起因する焦点検出結果のばらつきは、比較的短い時間スケール(50ms程度)においては小さくても、一連のブラケット撮影にかかる時間スケール(1000ms程度)においては大きくなる傾向がある。そのため、ばらつき判定のための蓄積回数と蓄積間隔を固定すると、AF波形の取得にかかる蓄積時間が短い場合にはトータルの焦点検出時間が短くなり、温度上昇による焦点検出結果のばらつきが生じる状況においてもばらつきが小さいと判定されるおそれがある。 The variation in the focus detection result due to the air fluctuation due to the outside air temperature described above tends to be large on the time scale (about 1000 ms) for a series of bracket photographing even though it is small on a relatively short time scale (about 50 ms). There is. Therefore, if the number of accumulations and the accumulation interval for variation determination are fixed, the total focus detection time is shortened when the accumulation time required for AF waveform acquisition is short, and variations in focus detection results due to temperature rise occur. May also be determined to have small variations.
そこで、本実施例では、ばらつき判定のための焦点検出時間が所定時間T1以上になるように、連続的に電荷蓄積する際の蓄積回数または蓄積間隔を設定する。ここでの所定時間T1は、一連のブラケット撮影にかかる時間程度のオーダー(例えば1000ms)に設定される。 Therefore, in this embodiment, the number of times of accumulation or the accumulation interval when continuously accumulating charges is set so that the focus detection time for variation determination is equal to or longer than the predetermined time T1. Here, the predetermined time T1 is set to an order (for example, 1000 ms) about the time required for a series of bracket shooting.
例えば、被写体が明るく蓄積時間が1msと短い場合には、AF波形取得回数は1000回に設定される。一方、被写体がやや暗く蓄積時間が10msと長い場合のAF波形取得回数は、蓄積時間が短い場合よりも少ない100回に設定される。このように、蓄積時間に応じた蓄積回数を設定することで、所定時間T1以上焦点検出を行った結果のばらつきが算出されるため、温度上昇による焦点検出結果のばらつきをより確実に検出することができる。 For example, when the subject is bright and the accumulation time is as short as 1 ms, the AF waveform acquisition count is set to 1000 times. On the other hand, when the subject is slightly dark and the accumulation time is as long as 10 ms, the number of AF waveform acquisitions is set to 100 times, which is smaller than when the accumulation time is short. In this way, by setting the number of times of accumulation corresponding to the accumulation time, the variation in the result of focus detection for a predetermined time T1 or more is calculated, so that the variation in the focus detection result due to temperature rise can be detected more reliably. Can do.
また、蓄積回数を固定して蓄積間隔を変えることで、複数回の焦点検出にかかる時間を所定時間T1以上にしても良い。例えば蓄積回数が100回であれば、蓄積時間が1msの場合には10ms間隔ごとに、蓄積時間がより長い10msの場合にはより短い間隔で電荷蓄積を行う。この場合、蓄積回数を固定とするので、蓄積時間が非常に短い場合でも蓄積回数が膨大に増えることがなく、連続蓄積による発熱を防いで温度上昇による焦点検出のばらつきを抑えることができる。なお、蓄積時間に応じて、蓄積回数と蓄積間隔の両方を設定してもよい。 In addition, by fixing the number of accumulations and changing the accumulation interval, the time required for multiple focus detections may be set to the predetermined time T1 or more. For example, if the number of accumulations is 100, charge accumulation is performed at intervals of 10 ms when the accumulation time is 1 ms, and at shorter intervals when the accumulation time is 10 ms. In this case, since the number of times of accumulation is fixed, even if the accumulation time is very short, the number of times of accumulation does not increase enormously, heat generation due to continuous accumulation can be prevented, and variations in focus detection due to temperature rise can be suppressed. Note that both the number of accumulations and the accumulation interval may be set according to the accumulation time.
ステップS505では、カメラ制御部210は、ステップS404で設定した蓄積回数または蓄積間隔に基づいて電荷蓄積およびAF波形の取得を行い、その都度デフォーカス値を算出する。そして、カメラ制御部210は、得られた複数回のデフォーカス値から、焦点検出結果のばらつきを算出する。算出されたばらつきが判定閾値σ1以上であれば、ステップS508に進み、適合条件でないと判定されて処理を終了する。一方、算出されたばらつきが判定閾値σ1よりも小さければ(所定範囲内であれば)、ステップS507に進み、適合条件であると判定されて処理を終了する。
In step S505, the
図6は、本実施例において図4のステップS407で行われる適合条件の判定処理を示すフローチャートである。図6のステップS601〜S608の基本的な動作は、図5で説明したステップS501〜S508の動作と同様であり、判定閾値と所定時間の値のみが異なる。そのため、図6では、図5と異なる個所についてのみ説明する。 FIG. 6 is a flowchart showing the matching condition determination process performed in step S407 of FIG. 4 in the present embodiment. The basic operations in steps S601 to S608 in FIG. 6 are the same as the operations in steps S501 to S508 described with reference to FIG. 5, and only the determination threshold value and a predetermined time value are different. Therefore, in FIG. 6, only a different part from FIG. 5 is demonstrated.
ステップS602では、カメラ制御部210は、適合条件かどうかを判定するための判定閾値の設定を行う。ここでは、被写体に十分コントラストがあるかどうかを判定するためのコントラスト判定閾値C2と、焦点検出のばらつきが十分小さいかどうかを判定するためのばらつき判定閾値σ2が設定される。ここで、判定閾値C2とσ2は、判定閾値C1とσ1よりも判定が緩くなるような値(適合被写体ではないと判断されにくい値)に設定される。具体的には、判定閾値C2がより小さく、判定閾値σ2がより大きく設定される。
In step S <b> 602, the
ステップS604では、カメラ制御部210は、ステップS601におけるAF波形を取得する際のラインセンサーの電荷蓄積時間に基づいて、蓄積設定を行う。具体的には、ステップS605におけるばらつき判定のための複数回の焦点検出にかかる時間が所定時間T2以上になるように、ラインセンサーにおける蓄積回数と蓄積間隔の少なくとも一方を設定する。AF波形を取得する際の蓄積時間は、ステップS605における焦点検出においても適用され、通常、輝度が明るいほど短くなる。ここで、所定時間T2は、所定時間T1よりも短い時間であって、一連の撮影動作にかかる時間程度のオーダーに設定される。これにより、実際に撮影する際の焦点検出のばらつきを安定して算出し、より正確に適合条件かどうかを判定することができる。
In step S604, the
上述したように、本実施例では、適合条件の判定を複数回行う。具体的には、図4において、フォーカスブラケット撮影を開始する前にステップS404で適合条件であると判定した後も、ステップS407でフォーカスブラケット撮影の各撮影ごとに適合条件かどうかの判定を行う。これにより、フォーカスブラケット撮影中に撮像装置や被写体が動いたり空気の揺らぎ状態が変化するなどの理由によって、像信号のコントラストや焦点検出のばらつきが大きく変化した場合に、AF調整値の算出を中止することができる。なお、フォーカスブラケット撮影を開始する前の判定を、焦点検出部207により検出された合焦位置において(ステップS403)行うことで、より高いコントラストの像信号が得られるため、コントラストに基づく適合被写体の判定を適切に行うことができる。 As described above, in this embodiment, the matching condition is determined a plurality of times. Specifically, in FIG. 4, even after it is determined in step S <b> 404 that the matching condition is satisfied before the focus bracket shooting is started, in step S <b> 407, whether or not the matching condition is satisfied is determined for each shooting of the focus bracket shooting. This cancels the calculation of AF adjustment values when the contrast of the image signal or the variation in focus detection changes significantly due to factors such as the imaging device or subject moving or the air fluctuations changing during focus bracket shooting. can do. In addition, since the image signal with higher contrast can be obtained by performing the determination before starting the focus bracket photographing at the in-focus position detected by the focus detection unit 207 (step S403), the matching subject based on the contrast can be obtained. Judgment can be made appropriately.
また、本実施例では、適合条件の判定のタイミングによって、判定閾値を異なる値に設定する。具体的には、フォーカスブラケット撮影中の判定に用いられる判定閾値C2とσ2は、フォーカスブラケット撮影前の判定に用いられる判定閾値C1とσ1よりも判定が緩くなるように設定されている。これにより、いったん適合条件であると判断された場合に、僅かな条件の変動によって適合条件でないと判断されにくくなり、ユーザーの使用感が損ねられるのを防ぐことができる。 In the present embodiment, the determination threshold is set to a different value depending on the timing of determination of the matching condition. Specifically, the determination threshold values C2 and σ2 used for determination during focus bracket shooting are set so that the determination is less than the determination threshold values C1 and σ1 used for determination before focus bracket shooting. As a result, once it is determined that the conforming condition is satisfied, it is difficult to determine that the conforming condition is not met due to a slight change in the condition, and it is possible to prevent the user's feeling of use from being impaired.
また、フォーカスブラケット撮影中の判定のための焦点検出に必要な所定時間T2は、フォーカスブラケット撮影前の判定のための焦点検出に必要な所定時間T1よりも短い時間に設定されている。これにより、フォーカスブラケット撮影中の適合条件判定がより短時間で実施されるため、ユーザーの使用感が損なわれるのを防ぐことができる。 The predetermined time T2 necessary for focus detection for determination during focus bracket shooting is set to be shorter than the predetermined time T1 required for focus detection for determination before focus bracket shooting. Thereby, since the adaptation condition determination during focus bracket photography is performed in a shorter time, it is possible to prevent the user's feeling of use from being impaired.
以上説明した方法では、ユーザーの使用感を重視し、フォーカスブラケット撮影前の適合条件判定と比較して、フォーカスブラケット撮影中の適合条件判定を緩く、また短時間で実施するようにしている。しかしながら、より判定の精度を重視して、実際のAF調整値の算出に用いられる焦点検出にかかる判定、つまりフォーカスブラケット撮影中の適合条件判定をより厳しく、長い時間をかけて実施するようにしても良い。具体的には、判定閾値C2とσ2を、判定閾値C1とσ1よりも判定が厳しくなるような値に設定しても良い。また、所定時間T2を、所定時間T1よりも長い時間に設定しても良い。 In the method described above, the user's feeling of use is emphasized, and the adaptation condition determination during focus bracket photography is performed more slowly and in a shorter time than the adaptation condition judgment before focus bracket photography. However, with more emphasis on the accuracy of the determination, the determination related to the focus detection used for the calculation of the actual AF adjustment value, that is, the determination of the adaptation condition during focus bracket shooting is performed more strictly and over a long time. Also good. Specifically, the determination threshold values C2 and σ2 may be set to values that make determination more severe than the determination threshold values C1 and σ1. Further, the predetermined time T2 may be set to a time longer than the predetermined time T1.
以上説明したように、本実施例では、複数回の焦点検出結果のばらつきに基づいて、AF調整値の算出に適した条件であるかどうかの判定を行う。そして、ばらつき判定のための焦点検出にかかる時間が所定時間以上となるようにすることで、外気温が高い場合など空気の揺らぎによる焦点検出結果のばらつきが発生する場合でも、ばらつきをより正確に判定することができる。 As described above, in this embodiment, it is determined whether or not the conditions are suitable for calculating the AF adjustment value based on the variation in the focus detection results of a plurality of times. By making the time required for focus detection for variation determination to be a predetermined time or more, even when the variation in focus detection results due to air fluctuations such as when the outside air temperature is high, the variation can be more accurately detected. Can be determined.
上述した実施例1では、第2の調整モードにおいてフォーカスブラケット撮影画像をもとにAF調整値の算出を行った。実施例2では、第2の調整モードにおいて撮像面位相差AFのデフォーカス値算出結果をもとにAF調整値を算出する。ここでのAF調整値は、実施例1と同様に、通常撮影時において焦点検出部207による焦点検出結果に基づくAF時のフォーカスレンズの駆動量の補正に用いられる。
In the first embodiment described above, the AF adjustment value is calculated based on the focus bracket captured image in the second adjustment mode. In the second embodiment, the AF adjustment value is calculated based on the defocus value calculation result of the imaging surface phase difference AF in the second adjustment mode. The AF adjustment value here is used for correcting the driving amount of the focus lens at the time of AF based on the focus detection result by the
また、実施例1の第2の調整モードでは、適合条件判定において、適合被写体判定と焦点検出ばらつき判定を行い、いずれかの条件を満たさない場合にはAF調整値の算出を行うことができなかった。これに対して、実施例2では、焦点検出ばらつき判定を行い、条件を満たさなかった場合には、適合被写体判定を行う。適合被写体判定で条件を満たさなかった場合にはAF調整値の算出は行わないが、適合被写体判定で条件を満たした場合には、再度焦点検出ばらつき判定を行う。この実施例1との違いについて以下に説明する。 Further, in the second adjustment mode of the first embodiment, in the matching condition determination, the matching subject determination and the focus detection variation determination are performed, and if any of the conditions is not satisfied, the AF adjustment value cannot be calculated. It was. On the other hand, in the second embodiment, the focus detection variation determination is performed, and when the condition is not satisfied, the suitable subject determination is performed. If the condition is not satisfied in the suitable subject determination, the AF adjustment value is not calculated, but if the condition is satisfied in the suitable subject determination, the focus detection variation determination is performed again. Differences from the first embodiment will be described below.
実施例2では、AF調整値を算出する手段として撮像面位相差AFを用いているため、AF調整値の算出にかかる時間がフォーカスブラケット撮影を行う実施例1に対して短くなる。よって、焦点検出ばらつきを判定するために取得するAF波形の取得にかかる時間は実施例1よりも短い。実施例1よりも十分に短いAF波形取得期間においては、焦点検出ばらつきの原因が空気のゆらぎの場合、焦点検出を行うタイミングによって、焦点検出のばらつき量の大小が変化する。よって、空気のゆらぎが原因で焦点検出のばらつきが大きい場合には、焦点検出のばらつきが小さくなるまで繰り返し焦点検出を行うことで、ばらつきの小さな環境でAF調整値を算出することができる。 In the second embodiment, since the imaging surface phase difference AF is used as a means for calculating the AF adjustment value, the time required for calculating the AF adjustment value is shorter than that in the first embodiment in which focus bracket shooting is performed. Therefore, the time required to acquire the AF waveform acquired for determining the focus detection variation is shorter than that in the first embodiment. In the AF waveform acquisition period that is sufficiently shorter than that of the first embodiment, when the focus detection variation is caused by air fluctuation, the amount of focus detection variation varies depending on the timing of focus detection. Therefore, when the variation in focus detection due to air fluctuation is large, the AF adjustment value can be calculated in an environment with small variation by repeatedly performing focus detection until the variation in focus detection becomes small.
撮像装置の構成は図1と同様であるので説明を省略するが、実施例2では撮像素子209が撮像面位相差AFに用いる信号を取得可能な構成を有している。例えば、撮像素子209に設けられた複数の画素部それぞれにおいて、1つのマイクロレンズ下に複数のフォトダイオードを保持し、撮像用と焦点検出用の信号が取得可能な構成を用いてもよい。この場合、2つのフォトダイオードの信号を加算した信号が撮像信号であり、個々のフォトダイオードの信号が焦点検出用の一対の像信号である。あるいは、撮像素子中に撮像用画素と焦点検出用画素を設ける構成を用いてもよい。カメラ制御部210が一対の像信号に対して相関演算を行い、相対的なずれ量からデフォーカス値を検出する。なお、本実施例では、カメラ制御部210が撮像面位相差AFのデフォーカス値検出を行うものとして説明するが、カメラ制御部210と異なる不図示の信号処理部により行ってもよい。撮像面位相差AFについては公知の方法を用いることとして、詳細な説明を省略する。
Since the configuration of the imaging apparatus is the same as that in FIG. 1, description thereof is omitted. However, in the second embodiment, the
本実施例においても、図2で説明したAF調整値設定処理を行う。なお、本実施例も、実施例1と同様に、第2の調整モードのみを備える撮像装置に適用することができる。図2のステップS202で実行される、第2の調整モードにおける撮像面位相差AFを利用したAF調整値の設定処理について、図7のフローチャートを参照して説明する。 Also in this embodiment, the AF adjustment value setting process described in FIG. 2 is performed. Note that this embodiment can also be applied to an imaging apparatus having only the second adjustment mode, as in the first embodiment. The AF adjustment value setting process using the imaging surface phase difference AF in the second adjustment mode executed in step S202 of FIG. 2 will be described with reference to the flowchart of FIG.
まず、ステップS701において、カメラ制御部210は、表示部212に撮像面位相差AF調整用画面を表示するように制御する。表示される内容は、例えばユーザーへの操作指示等である。調整用画面が表示されると、ステップS702に進む。
First, in step S <b> 701, the
ステップS702では、カメラ制御部210は、焦点検出部207で検出された一対の像信号に基づいて、AF調整値の算出に用いる被写体に対するデフォーカス値を検出する。デフォーカス値の検出が終了するとステップS703へ進む。
In step S <b> 702, the
ステップS703では、カメラ制御部210は、検出したデフォーカス値に応じた位置(合焦位置)へフォーカスレンズ101を移動させるように、レンズ制御部103へ駆動指示を送る。フォーカスレンズ101の駆動が終了すると、ステップS704へ進む。
In step S703, the
ステップS704では、カメラ制御部210は、AF調整値の算出に適合した条件かどうかを複数回の焦点検出結果から判定する。判定の詳細については、図8のフローチャートを参照して後述する。適合する条件の場合はステップS705へ進み、適合する条件でない場合はステップS710へ進む。
In step S704, the
適合する条件でなかった場合、ステップS710では、カメラ制御部210は、エラーメッセージ(エラー発生の事実及びエラーの推定原因)を表示部212に表示するように制御する。表示が完了するとステップS711へ進み、ユーザーから調整をやり直すか中止するかの指示を受け付ける。調整をやり直す場合はステップS702に戻り、中止する場合は第2の調整モードを終了する。
If the condition is not met, in step S710, the
一方、ステップS705では、カメラ制御部210は、焦点検出部207で検出された一対の像信号に基づいてデフォーカス値を検出する。デフォーカス値の検出が終了するとステップS706へ進む。
On the other hand, in step S705, the
ステップS706では、カメラ制御部210は、ステップS707の撮像面位相差AFでのデフォーカス値の検出に先立ち、メインミラー201とサブミラー202を撮影光路から退避させた第2の位置へ移動させるミラーアップを行う。ミラーアップが終了するとステップS707へ進む。
In step S706, the
ステップS707では、カメラ制御部210は、撮像素子209を用いて撮像面位相差AFによるデフォーカス値の検出を行う。デフォーカス値の検出が終わるとステップS708へ進み、カメラ制御部210は、メインミラー201とサブミラー202を撮影光路内の第1の位置へ移動するミラーダウンを行う。ミラーダウンが終了するとステップS709へ進む。
In step S <b> 707, the
ステップS709では、カメラ制御部210は、ステップS707で検出されたデフォーカス値を基にAF調整値を算出する。具体的には、ステップS705で検出されたデフォーカス値とステップS707で検出されたデフォーカス値との差分を基に、AF調整値を算出する。AF調整値を算出すると、第2の調整モードを終了し、図2のステップS203に進む。
In step S709, the
図8は、本実施例において図7のステップS704で行われる適合条件の判定処理を示すフローチャートである。 FIG. 8 is a flowchart showing the matching condition determination process performed in step S704 of FIG. 7 in the present embodiment.
ステップS801では、カメラ制御部210は、焦点検出部207からAF波形(像信号)の取得を行う。AF波形を取得するとステップS802に進む。
In step S <b> 801, the
ステップS802では、カメラ制御部210は、適合条件かどうかを判定するための判定閾値の設定を行う。ここでは、被写体に十分コントラストがあるかどうかを判定するためのコントラスト判定閾値C3と、焦点検出結果のばらつきが十分小さいかどうかを判定するためのばらつき判定閾値σ3が設定される。コントラスト判定閾値C3とばらつき判定閾値σ3は、撮影環境に基づいて設定される。
In step S <b> 802, the
ステップS803では、カメラ制御部210は、ステップS801におけるAF波形を取得する際のラインセンサーの電荷蓄積時間に基づいて、蓄積設定を行う。実施例1では、一連のブラケット撮影にかかる時間スケール(1000ms程度)を考慮して蓄積時間を設定していた。一方、本実施例では、撮像面位相差AFでAF調整値を取得するため、ブラケット撮影のような長い時間スケールでの焦点検出ばらつきの考慮は不要である。よって、本ステップの蓄積設定では、焦点検出にとって都合のよい蓄積回数または蓄積間隔が設定される。
In step S803, the
ステップS804では、カメラ制御部210は、ステップS803で設定した蓄積回数または蓄積間隔に基づいて電荷蓄積およびAF波形の取得を行い、その都度デフォーカス値を算出する。そして、カメラ制御部210は、得られた複数回のデフォーカス値から、焦点検出結果のばらつきを算出する。焦点検出結果のばらつき算出が完了すると、ステップS805へと進む。
In step S804, the
ステップS805では、カメラ制御部210は、ステップS804で算出されたばらつきが判定閾値σ3よりも小さいかどうかを判定する。ばらつきが判定閾値σ3よりも小さければ(所定範囲内であれば)、ステップS806に進み、適合条件であると判定されて処理を終了する。一方、ばらつきが判定閾値σ3以上であれば(所定範囲外であれば)、ステップS807へ進む。
In step S805, the
ステップS807では、カメラ制御部210は、AF調整値の算出に適合した被写体(適合被写体)かどうかの判定を行う。具体的には、ステップS801で取得したAF波形のコントラストがコントラスト判定閾値C3以下(閾値以下)の場合、正確な焦点検出結果を得にくい被写体であると判定する。また、輝度が所定の輝度以下の場合にも、正確な焦点検出結果を得にくい被写体であると判定する。AF波形のコントラストと輝度の少なくとも一方が条件を満たさなければ、ステップS808に進み、適合条件でないと判定して処理を終了する。一方、AF波形のコントラストがコントラスト判定閾値C3よりも大きく、輝度が所定の輝度よりも大きければ、被写体条件以外の原因、つまり空気のゆらぎがある条件下にある可能性があるため、ステップS804へ戻り、焦点検出ばらつきの判定を再度行う。
In step S807, the
上述したように、本実施例では、適合条件の判定において、適合被写体にも関わらず焦点ばらつき判定でNGだった場合には再度焦点検出ばらつき判定を行うことで、実施例1に比べてAF調整値の算出可能な機会をより増やすことが可能となる。 As described above, in this embodiment, in the determination of the matching condition, if the focus variation determination is NG regardless of the matching subject, the focus detection variation determination is performed again, so that the AF adjustment is performed as compared with the first embodiment. Opportunities for calculating values can be further increased.
以上、本発明の好ましい実施形態について説明したが、本発明はこれらの実施形態に限定されず、その要旨の範囲内で種々の変形及び変更が可能である。 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.
200 撮像装置
207 焦点検出部
210 カメラ制御部
211 EEPROM
200
Claims (23)
電荷を蓄積して焦点検出に用いる一対の像信号を生成する信号生成手段と、
前記一対の像信号に基づいて焦点検出を行う焦点検出手段と、
前記焦点検出手段による焦点検出結果の調整に用いる前記調整値を取得する取得手段と、
複数回の焦点検出結果に基づいて、前記調整値の取得に適合した条件かどうかを判定する判定手段と、
前記信号生成手段における電荷の蓄積を制御する蓄積制御手段とを有し、
前記調整モードにおいて、前記判定手段により前記調整値の取得に適合した条件であると判定された場合に、前記取得手段は、焦点状態の異なる複数の画像の中から選択された画像に対応する焦点検出結果に基づいて前記調整値を取得し、
前記蓄積制御手段は、前記判定手段による判定に用いられる前記複数回の焦点検出結果を取得するための時間が所定時間以上となるように、当該複数回の焦点検出結果を取得する際の前記信号生成手段における電荷の蓄積を制御することを特徴とする撮像装置。 An imaging apparatus having an adjustment mode for obtaining an adjustment value used for adjusting a focus detection result,
Signal generating means for accumulating electric charge and generating a pair of image signals used for focus detection;
Focus detection means for performing focus detection based on the pair of image signals;
Obtaining means for obtaining the adjustment value used for adjustment of a focus detection result by the focus detection means;
Based on a plurality of focus detection results, determination means for determining whether the condition is suitable for obtaining the adjustment value;
Accumulation control means for controlling charge accumulation in the signal generation means,
In the adjustment mode, when the determination unit determines that the condition is suitable for acquisition of the adjustment value, the acquisition unit selects a focus corresponding to an image selected from a plurality of images having different focus states. Obtaining the adjustment value based on the detection result;
The accumulation control unit is configured to acquire the signal when the focus detection result is acquired a plurality of times so that a time for acquiring the focus detection result of the plurality of times used for determination by the determination unit is a predetermined time or more. An image pickup apparatus that controls charge accumulation in a generation unit.
前記フォーカス制御手段は、通常撮影時において、予め取得された前記調整値を用いて前記焦点検出手段による焦点検出結果を調整した結果に基づく位置に前記フォーカスレンズを移動するように制御することを特徴とする請求項1乃至13のいずれか1項に記載の撮像装置。 A focus control means for controlling the position of the focus lens;
The focus control unit controls the focus lens to move to a position based on a result of adjusting a focus detection result by the focus detection unit using the adjustment value acquired in advance during normal shooting. The imaging device according to any one of claims 1 to 13.
前記調整モードにおいて、前記フォーカス制御手段は、異なる複数のレンズ位置に前記フォーカスレンズを移動するように制御し、前記複数のレンズ位置の各レンズ位置において、前記撮像手段による画像の撮像と前記焦点検出手段による焦点検出を行い、前記取得手段は、複数の前記画像の中から選択された画像に対応する焦点検出結果に基づいて前記調整値を取得することを特徴とする請求項14に記載の撮像装置。 Having imaging means for imaging images;
In the adjustment mode, the focus control unit controls the focus lens to move to a plurality of different lens positions, and images are captured by the imaging unit and the focus detection is performed at each lens position of the plurality of lens positions. 15. The imaging according to claim 14, wherein focus detection is performed by a unit, and the acquisition unit acquires the adjustment value based on a focus detection result corresponding to an image selected from a plurality of the images. apparatus.
前記一対の像信号に基づいて焦点検出を行う焦点検出ステップと、
前記焦点検出ステップによる焦点検出結果の調整に用いる前記調整値を取得する取得ステップと、
複数回の焦点検出結果に基づいて、前記調整値の取得に適合した条件かどうかを判定する判定ステップと、
前記信号生成手段における電荷の蓄積を制御する蓄積制御ステップとを有し、
前記調整モードにおいて、前記判定ステップにより前記調整値の取得に適合した条件であると判定された場合に、前記取得ステップでは、焦点状態の異なる複数の画像の中から選択された画像に対応する焦点検出結果に基づいて前記調整値を取得し、
前記蓄積制御ステップにおいて、前記判定ステップによる判定に用いられる前記複数回の焦点検出結果を取得するための時間が所定時間以上となるように、当該複数回の焦点検出結果を取得する際の前記信号生成手段における電荷の蓄積を制御することを特徴とする撮像装置の制御方法。 A control method for an imaging apparatus having an adjustment mode for acquiring an adjustment value used for adjustment of a focus detection result, and comprising a signal generation unit that accumulates electric charges and generates a pair of image signals used for focus detection,
A focus detection step for performing focus detection based on the pair of image signals;
An acquisition step for acquiring the adjustment value used for adjusting the focus detection result in the focus detection step;
A determination step for determining whether the condition is suitable for obtaining the adjustment value based on a plurality of focus detection results;
An accumulation control step for controlling accumulation of electric charges in the signal generating means,
In the adjustment mode, when it is determined by the determination step that the condition is suitable for acquisition of the adjustment value, the acquisition step includes a focus corresponding to an image selected from a plurality of images having different focus states. Obtaining the adjustment value based on the detection result;
In the accumulation control step, the signal at the time of acquiring the plurality of focus detection results so that the time for acquiring the plurality of focus detection results used for determination in the determination step is a predetermined time or more. An image pickup apparatus control method, comprising: controlling charge accumulation in a generation unit.
電荷を蓄積して焦点検出に用いる一対の像信号を生成する第1の信号生成手段および第2の信号生成手段と、
前記第1の信号生成手段で生成された一対の像信号に基づいて焦点検出を行う第1の焦点検出手段と、
前記第2の信号生成手段で生成された一対の像信号に基づいて焦点検出を行う第2の焦点検出手段と、
前記第1の焦点検出手段による焦点検出結果の調整に用いる前記調整値を取得する取得手段と、
前記第1の焦点検出手段による複数回の焦点検出結果に基づいて、前記調整値の取得に適合した条件かどうかを判定する判定手段と、
前記第1の信号生成手段における電荷の蓄積を制御する蓄積制御手段とを有し、
前記調整モードにおいて、前記判定手段により前記調整値の取得に適合した条件であると判定された場合に、前記取得手段は、前記第2の焦点検出手段の焦点検出結果に基づいて前記調整値を取得し、
前記判定手段は、前記複数回の焦点検出結果のばらつきが所定の範囲内である場合に、前記調整値の取得に適合した条件であると判定し、前記ばらつきが前記所定の範囲外であって、前記第1の信号生成手段で生成された前記像信号が所定の条件を満たす場合には、前記第1の焦点検出手段による複数回の焦点検出および前記判定手段による前記判定を再度行うことを特徴とする撮像装置。 An imaging apparatus having an adjustment mode for obtaining an adjustment value used for adjusting a focus detection result,
A first signal generating means and a second signal generating means for accumulating electric charge and generating a pair of image signals used for focus detection;
First focus detection means for performing focus detection based on a pair of image signals generated by the first signal generation means;
Second focus detection means for performing focus detection based on a pair of image signals generated by the second signal generation means;
Acquisition means for acquiring the adjustment value used for adjustment of a focus detection result by the first focus detection means;
A determination unit that determines whether the condition is suitable for obtaining the adjustment value based on a plurality of focus detection results by the first focus detection unit;
Storage control means for controlling charge storage in the first signal generation means,
In the adjustment mode, when the determination unit determines that the condition is suitable for acquisition of the adjustment value, the acquisition unit calculates the adjustment value based on the focus detection result of the second focus detection unit. Acquired,
The determination unit determines that the condition is suitable for obtaining the adjustment value when the variation in the plurality of focus detection results is within a predetermined range, and the variation is outside the predetermined range. When the image signal generated by the first signal generation unit satisfies a predetermined condition, the focus detection by the first focus detection unit and the determination by the determination unit are performed again. An imaging device that is characterized.
前記第1の信号生成手段で生成された一対の像信号に基づいて焦点検出を行う第1の焦点検出ステップと、
前記第2の信号生成手段で生成された一対の像信号に基づいて焦点検出を行う第2の焦点検出ステップと、
前記第1の焦点検出ステップによる焦点検出結果の調整に用いる前記調整値を取得する取得ステップと、
前記第1の焦点検出ステップによる複数回の焦点検出結果に基づいて、前記調整値の取得に適合した条件かどうかを判定する判定ステップと、
前記第1の信号生成手段における電荷の蓄積を制御する蓄積制御ステップとを有し、
前記調整モードにおいて、前記判定ステップにより前記調整値の取得に適合した条件であると判定された場合に、前記取得ステップにおいて、前記第2の焦点検出ステップによる焦点検出結果に基づいて前記調整値を取得し、
前記判定ステップにおいて、前記複数回の焦点検出結果のばらつきが所定の範囲内である場合に、前記調整値の取得に適合した条件であると判定し、前記ばらつきが前記所定の範囲外であって、前記第1の信号生成手段で生成された前記像信号が所定の条件を満たす場合には、前記第1の焦点検出ステップによる複数回の焦点検出および前記判定ステップによる前記判定を再度行うことを特徴とする撮像装置の制御方法。 A first signal generation unit and a second signal generation unit which have an adjustment mode for acquiring an adjustment value used for adjusting a focus detection result, and which store a charge and generate a pair of image signals used for focus detection; A method for controlling an imaging apparatus comprising:
A first focus detection step for performing focus detection based on a pair of image signals generated by the first signal generation means;
A second focus detection step for performing focus detection based on a pair of image signals generated by the second signal generation means;
An acquisition step of acquiring the adjustment value used for adjustment of a focus detection result in the first focus detection step;
A determination step of determining whether or not the condition is suitable for obtaining the adjustment value based on a plurality of focus detection results obtained by the first focus detection step;
An accumulation control step for controlling accumulation of electric charge in the first signal generating means,
In the adjustment mode, when it is determined by the determination step that the condition is suitable for acquisition of the adjustment value, in the acquisition step, the adjustment value is determined based on a focus detection result by the second focus detection step. Acquired,
In the determination step, when the variation in the plurality of focus detection results is within a predetermined range, it is determined that the condition is suitable for obtaining the adjustment value, and the variation is outside the predetermined range. When the image signal generated by the first signal generation unit satisfies a predetermined condition, the focus detection is performed a plurality of times by the first focus detection step and the determination by the determination step is performed again. A control method for an imaging apparatus.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2015101338 | 2015-05-18 | ||
JP2015101338 | 2015-05-18 |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2016218428A true JP2016218428A (en) | 2016-12-22 |
Family
ID=57578412
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2016006446A Pending JP2016218428A (en) | 2015-05-18 | 2016-01-15 | Imaging apparatus and control method thereof |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2016218428A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPWO2017159336A1 (en) * | 2016-03-18 | 2018-09-13 | 富士フイルム株式会社 | Focus position detection apparatus and focus position detection method |
JP2021001950A (en) * | 2019-06-20 | 2021-01-07 | キヤノン株式会社 | Imaging device and control method therefor, program, and storage medium |
-
2016
- 2016-01-15 JP JP2016006446A patent/JP2016218428A/en active Pending
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPWO2017159336A1 (en) * | 2016-03-18 | 2018-09-13 | 富士フイルム株式会社 | Focus position detection apparatus and focus position detection method |
US10771673B2 (en) | 2016-03-18 | 2020-09-08 | Fujifilm Corporation | Focusing position detecting device and focusing position detecting method |
JP2021001950A (en) * | 2019-06-20 | 2021-01-07 | キヤノン株式会社 | Imaging device and control method therefor, program, and storage medium |
JP7292123B2 (en) | 2019-06-20 | 2023-06-16 | キヤノン株式会社 | IMAGING DEVICE AND CONTROL METHOD THEREOF, PROGRAM, STORAGE MEDIUM |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP6487678B2 (en) | Focus detection apparatus and control method thereof | |
US9781330B2 (en) | Focus detection apparatus and control method for focus detection apparatus | |
US11080863B2 (en) | Imaging apparatus, image processing device, and control method | |
US10277799B2 (en) | Image capturing apparatus, and control method and storage medium thereof | |
JP5402298B2 (en) | Focus detection device and camera | |
JP2016218428A (en) | Imaging apparatus and control method thereof | |
JP6487679B2 (en) | Focus detection apparatus and control method thereof | |
JP6487680B2 (en) | Focus detection apparatus and control method thereof | |
JP6562693B2 (en) | Control device, imaging device, control method, program, and storage medium | |
JP2019004416A (en) | Imaging apparatus, control method for the same, and control program | |
JP6541312B2 (en) | Image pickup apparatus and control method thereof | |
JP6655984B2 (en) | Focus adjusting device, control method therefor, and imaging device | |
JP5590850B2 (en) | Imaging device and focus control method of imaging device | |
JP2016114720A (en) | Imaging apparatus and method of controlling the same | |
JP6486086B2 (en) | IMAGING DEVICE AND IMAGING DEVICE CONTROL METHOD | |
US11368613B2 (en) | Control apparatus, image pickup apparatus, and control method | |
JP2014035505A (en) | Lens device, image pickup device, and control method for these devices | |
JP2014016513A (en) | Lens control device and imaging device | |
JP5904714B2 (en) | FOCUS DETECTION DEVICE, ITS CONTROL METHOD, AND IMAGING DEVICE HAVING FOCUS DETECTION DEVICE | |
JP2018005145A (en) | Imaging device | |
JP2005316187A (en) | Focusing apparatus | |
JP6391448B2 (en) | Imaging apparatus and control method thereof | |
JP6521629B2 (en) | CONTROL DEVICE, IMAGING DEVICE, CONTROL METHOD, AND PROGRAM | |
JP2005157148A (en) | Focal point detector and electronic camera | |
JP2013113967A (en) | Imaging apparatus, control method thereof, and program |