JP6884582B2 - Imaging device, imaging method and imaging program - Google Patents
Imaging device, imaging method and imaging program Download PDFInfo
- Publication number
- JP6884582B2 JP6884582B2 JP2017015372A JP2017015372A JP6884582B2 JP 6884582 B2 JP6884582 B2 JP 6884582B2 JP 2017015372 A JP2017015372 A JP 2017015372A JP 2017015372 A JP2017015372 A JP 2017015372A JP 6884582 B2 JP6884582 B2 JP 6884582B2
- Authority
- JP
- Japan
- Prior art keywords
- amount
- focus
- variation
- defocus
- degree
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Images
Landscapes
- Focusing (AREA)
- Automatic Focus Adjustment (AREA)
- Studio Devices (AREA)
Description
本発明は、焦点調節制御(AF)を行う撮像装置に関する。 The present invention relates to an image pickup apparatus that performs focus adjustment control (AF).
AF方式には、撮像光学系の射出瞳のうち互いに異なる領域を通過した2つの光束により形成される一対の被写体像を光電変換して得られた一対の像信号のずれ量である像ずれ量からデフォーカス量を算出する位相差検出方式(位相差AF)がある。この位相差AFでは、デフォーカス量から算出されたフォーカスレンズの駆動量を算出して、フォーカスレンズを該駆動量だけ駆動することで合焦状態を得る。合焦状態は、フォーカスレンズの駆動後のデフォーカス量が所定範囲(以下、合焦判定幅という)内であることで判定される。 In the AF method, an image shift amount, which is a shift amount of a pair of image signals obtained by photoelectric conversion of a pair of subject images formed by two light fluxes passing through different regions of the exit pupils of an imaging optical system. There is a phase difference detection method (phase difference AF) that calculates the amount of defocus from. In this phase difference AF, the drive amount of the focus lens calculated from the defocus amount is calculated, and the focus lens is driven by the drive amount to obtain the in-focus state. The in-focus state is determined when the defocus amount after driving the focus lens is within a predetermined range (hereinafter, referred to as an in-focus determination width).
このような位相差AFは、撮像装置のレリーズボタンが半押し操作されることに応じて開始される。通常は、AFによって合焦状態が得られた後にレリーズボタンが全押し操作されることに応じて撮像(露光)を行うことで、十分にピントが合った静止画像が得られる。ただし、レリーズボタンが半押し操作状態で止められることなく一気に全押し操作される場合がある。このような場合の処理としては、AFの終了後に撮像を行う処理と、合焦状態か否かにかかわらず撮像を開始する処理とがある。特許文献1には、レリーズボタンが一気に全押し操作されたか否かに応じて合焦判定幅を変更することで、実用上において許容される合焦精度での速写に対応する撮像装置が開示されている。
Such phase-difference AF is started in response to a half-press operation of the release button of the image pickup apparatus. Normally, by performing imaging (exposure) in response to the release button being fully pressed after the in-focus state is obtained by AF, a sufficiently focused still image can be obtained. However, the release button may be fully pressed at once without being stopped in the half-pressed operation state. In such a case, there are a process of performing imaging after the end of AF and a process of starting imaging regardless of whether or not it is in focus.
また、AFによりフォーカスレンズを駆動したにもかかわらず、合焦状態が得られなかった場合は、再度AFを行う。特許文献2には、数回のAFによってもデフォーカス量が合焦判定幅内に収まらずにフォーカスレンズが移動し続けるハンチングが発生している際に、合焦判定幅を変更することで撮像のタイミングの遅延を防ぐ撮像装置が開示されている。
If the focus lens is not obtained even though the focus lens is driven by AF, AF is performed again. In
合焦判定幅は、AFの精度やAFに要する時間に直結するパラメータである。例えば、合焦判定幅が小さければ、合焦状態が得られずにAFをやり直す回数が増加するためにAFに要する時間は長くなるが、AFの精度は向上する。 The focus determination width is a parameter that is directly related to the accuracy of AF and the time required for AF. For example, if the focusing determination width is small, the time required for AF increases because the number of times AF is repeated without obtaining the focusing state is increased, but the accuracy of AF is improved.
ただし、合焦判定幅を小さくしても、実際のフォーカスレンズの駆動精度の限界や被写体のばらつきによるデフォーカス量の検出ばらつき等の種々の要因から、必ずしもAFの精度が向上するわけではなく、AFの速度を無駄に遅くさせる要因となり得る。一方、AFの速度は、シャッターチャンスを逃さないためにも、実用上許容される合焦精度が得られる範囲において高速であることが望まれる。 However, even if the focus determination width is reduced, the AF accuracy does not necessarily improve due to various factors such as the limit of the actual drive accuracy of the focus lens and the detection variation of the defocus amount due to the variation of the subject. It can be a factor that unnecessarily slows down the AF speed. On the other hand, the AF speed is desired to be high within a range in which a practically acceptable focusing accuracy can be obtained so as not to miss a shutter chance.
本発明は、被写体にかかわらず、AFの精度を良好としつつ、AFにより合焦状態が得られるまでの時間を短縮することができるようにした撮像装置を提供する。 The present invention provides an image pickup apparatus capable of shortening the time until an in-focus state is obtained by AF while improving the accuracy of AF regardless of the subject.
本発明の一側面としての撮像装置は、撮像光学系のデフォーカス量を検出するデフォーカス検出手段と、デフォーカス量が合焦判定範囲内になるように焦点調節制御を行う制御手段とを有する。そして、制御手段は、撮像光学系により形成される被写体像を光電変換して得られた信号を用いてデフォーカス量のばらつき度を示す情報を取得し、前記ばらつき度が相対的に大きい第1の場合は、前記ばらつき度が相対的に小さい第2の場合よりも前記合焦判定範囲を小さくすることを特徴とする。 The imaging apparatus as one aspect of the present invention includes a defocus detecting means for detecting the defocus amount of the imaging optical system and a control means for performing focus adjustment control so that the defocus amount is within the focusing determination range. .. Then, the control means acquires information indicating the degree of variation in the defocus amount by using the signal obtained by photoelectric conversion of the subject image formed by the imaging optical system, and the first type having a relatively large degree of variation. In the case of, the focus determination range is made smaller than in the second case where the degree of variation is relatively small .
また、本発明の他の一側面としての焦点調節制御方法は、撮像光学系のデフォーカス量を検出するステップと、デフォーカス量が合焦判定範囲内になるように焦点調節制御を行うステップとを有する。そして、焦点調節制御において、撮像光学系により形成される被写体像を光電変換して得られた信号を用いてデフォーカス量のばらつき度を示す情報を取得し、前記ばらつき度が相対的に大きい第1の場合は、前記ばらつき度が相対的に小さい第2の場合よりも前記合焦判定範囲を小さくすることを特徴とする。 Further, the focus adjustment control method as another aspect of the present invention includes a step of detecting the defocus amount of the imaging optical system and a step of performing focus adjustment control so that the defocus amount is within the focusing determination range. Has. Then, in the focus adjustment control, information indicating the degree of variation in the defocus amount is acquired using the signal obtained by photoelectric conversion of the subject image formed by the imaging optical system, and the degree of variation is relatively large. The case of 1 is characterized in that the focusing determination range is made smaller than that of the second case where the degree of variation is relatively small.
なお、撮像装置のコンピュータに、上記焦点調節制御方法に従う処理を実行させるコンピュータプログラムである焦点調節制御プログラムも、本発明の他の一側面を構成する。 A focus adjustment control program, which is a computer program for causing a computer of an imaging device to execute a process according to the focus adjustment control method, also constitutes another aspect of the present invention.
本発明によれば、被写体に依存するデフォーカス量のばらつき度に応じて合焦判定範囲を適切に変更するので、被写体にかかわらず、良好な精度の焦点調節制御を行いつつ、合焦状態が得られるまでの時間を短縮することができる。 According to the present invention, the focusing determination range is appropriately changed according to the degree of variation in the defocus amount depending on the subject, so that the focusing state can be maintained regardless of the subject while performing focus adjustment control with good accuracy. The time to obtain can be shortened.
以下、本発明の実施例について図面を参照しながら説明する。 Hereinafter, examples of the present invention will be described with reference to the drawings.
図1は、本発明の実施例である撮像装置としてのデジタルカメラ本体(以下、カメラ本体という)200と交換レンズユニット100の構成を示す。交換レンズユニット100は、電気接点ユニット106を有する不図示のマウント部を介して着脱可能(交換可能)にカメラ本体200に取り付けられる。
FIG. 1 shows the configuration of a digital camera main body (hereinafter referred to as a camera main body) 200 and an
交換レンズユニット100において、101はズーム機構を含む撮像レンズであり、102は光量を制御する絞りシャッタである。103は光軸方向に移動して焦点調節を行うフォーカスレンズである。撮像レンズ101、絞りシャッタ102およびフォーカスレンズ103により撮像光学系が構成される。104はフォーカスレンズを駆動するフォーカスモータであり、105はフォーカスモータ104の駆動等、交換レンズユニット100の動作を制御するレンズコントローラである。
In the
カメラ本体200において、201は撮像光学系により形成された被写体像を光電変換する撮像素子であり、202は撮像素子201から出力されるアナログ電気信号をデジタル信号に変換するA/D変換部である。203は画像処理部であり、204はAF信号処理部である。205はフォーマット変換部であり、206はランダムアクセスメモリ等のメモリ(以下、DRAMと記す)であり、画像データの一時記憶用の高速バッファとして、また画像データの圧縮伸張処理における作業用メモリ等として使用される。207はメモリカード等の記録媒体とそのインターフェースからなる画像記録部である。208はタイミングジェネレータであり、209はAF処理(焦点調節制御)や撮像処理(撮像制御)等のカメラ本体200の動作を制御するシステム制御部である。
In the
210はカメラ本体200(システム制御部209)と交換レンズユニット100(レンズコントローラ105)との通信を行う通信部である。211はAE処理部であり、212は画像表示用メモリ(以下、VRAMと記す)である。213は画像表示部であり、撮像前に取得されるライブビュー映像や撮像により取得された撮像静止画の他、撮像に関する各種情報を表示する画像表示部である。215は撮像モードをユーザが選択するために操作するモードスイッチである。撮像モードには、マクロモードやスポーツモード等がある。
216はカメラ本体200およびカメラ本体200から電源供給を受ける交換レンズユニット100に電源を投入するためにユーザにより操作されるメインスイッチである。217は第1スイッチ(以下、SW1と記す)である。SW1(217)は、ユーザによる不図示の操作部材であるレリーズボタンの第1の操作としての半押し操作に応じてONになり、AF(自動焦点調節)やAE(自動露光)等の撮像準備処理の実行をシステム制御部209に指示する信号を出力する。218は第2スイッチ(以下、SW2と記す)である。SW2(218)は、ユーザによるレリーズボタンの第2の操作としての全押し操作に応じてONになり、撮像処理の実行をシステム制御部209に指示する信号を出力する。214はモードスイッチ215、メインスイッチ216、SW1(217)およびSW2(218)以外のユーザにより操作される各種スイッチやダイヤル等を含む操作部である。操作部214は、撮像時および画像再生時における各種設定を行うためのメニュースイッチや、撮像モードと再生モードとを切り替える撮像/再生モードスイッチ等を含む。
上述した撮像素子201は、CCDセンサやCMOSセンサ等により構成され、その撮像面上に結像した光(被写体像)を複数の画素のそれぞれに含まれるフォトダイオードにより光電変換する。撮像素子201の各フォトダイオードは、光電変換した光の光量に応じた電荷を蓄積する。各フォトダイオードに蓄積された電荷は、システム制御部209の指令に応じてタイミングジェネレータ208から与えられる駆動パルスに基づいて順次読み出されてアナログ電気信号として出力される。
The
本実施例で用いられる撮像素子201の各画素は、2つ(一対)のフォトダイオードA,Bとこれら一対のフォトダイオードA,Bに対して設けられた1つのマイクロレンズから構成されている。一対のフォトダイオードA,Bは、1つのマイクロレンズを介して撮像光学系の射出瞳のうち互いに異なる領域(AF瞳)からの光束により形成される一対の光学像を光電変換する。該一対のフォトダイオードA,Bから一対のAF用信号であるA信号およびB信号を出力する。また、一対のフォトダイオードA,Bの出力を加算することで、撮像用画素信号(A+B信号)を得ることができ、この撮像用画素信号を全画素において加算することで撮像信号が得られる。
Each pixel of the
複数の画素から出力された複数のA信号と複数のB信号をそれぞれ瞳分割方向と直交する方向において加算することで、撮像面位相差検出方式によるAF(以下、撮像面位相差AFという)に用いられる一対の位相差像信号が得られる。AF信号処理部204は、該一対の位相差像信号に対して相関演算を行い、これら一対の位相差像信号の位相差である像ずれ量を算出し、さらに該像ずれ量から被写体に対する撮像光学系のデフォーカス量(およびデフォーカス方向)を算出する。
By adding a plurality of A signals and a plurality of B signals output from a plurality of pixels in a direction orthogonal to the pupil division direction, AF by the imaging surface phase difference detection method (hereinafter referred to as imaging surface phase difference AF) can be obtained. The pair of phase difference image signals used is obtained. The AF
図2(a)には撮像面位相差AFに対応していない画素構成を、図2(b)は撮像面位相差AFに対応した画素構成を示している。いずれの図においても、ベイヤー配列が用いられており、Rは赤のカラーフィルタを、Bは青のカラーフィルタを、Gr,Gbは緑のカラーフィルタを示している。図2(b)に示す撮像面位相差AF対応の画素構成では、図2(a)に示す撮像面位相AF非対応の画素構成での1画素(実線で囲む)に相当する画素内に、図の水平方向に2分割された2つのフォトダイオード(小さいA,Bを付す)が設けられている。なお、図2(b)に示した画素の分割方法は例に過ぎず、図の垂直方向に分割したり、水平および垂直方向に2分割ずつ(計4分割)したりしてもよい。また、同じ撮像素子内において互いに異なる分割方法で分割された複数種類の画素が含まれてもよい。 FIG. 2A shows a pixel configuration that does not correspond to the imaging surface phase-difference AF, and FIG. 2B shows a pixel configuration that corresponds to the imaging surface phase-difference AF. In each figure, the Bayer arrangement is used, where R indicates a red color filter, B indicates a blue color filter, and Gr and Gb indicate a green color filter. In the pixel configuration corresponding to the imaging surface phase difference AF shown in FIG. 2 (b), within the pixel corresponding to one pixel (enclosed by a solid line) in the pixel configuration not compatible with the imaging surface phase AF shown in FIG. 2 (a). Two photodiodes (with small A and B) divided into two in the horizontal direction in the figure are provided. The pixel division method shown in FIG. 2B is merely an example, and may be divided in the vertical direction of the figure or divided into two in the horizontal and vertical directions (four divisions in total). Further, a plurality of types of pixels divided by different division methods may be included in the same image pickup device.
撮像素子201から読み出されたそれぞれアナログ電気信号としての撮像信号および一対の位相差像信号は、A/D変換部202に入力される。A/D変換部202は、リセットノイズを除去するための相関二重サンプリング、ゲインの調節およびアナログ電気信号のデジタル化を行う。A/D変換部202は、撮像信号を画像処理部203に、一対の位相差像信号をAF信号処理部204にそれぞれ出力する。
The image pickup signal and the pair of phase difference image signals as analog electric signals read from the
AF信号処理部204は、A/D変換部202から出力された一対の位相差像信号に対する相関演算を行って像ずれ量および信頼度情報(2像一致度、2像急峻度、コントラスト情報、飽和情報、キズ情報等)を算出する。さらにAF信号処理部204は、算出した像ずれ量からデフォーカス量を算出し、該デフォーカス量と信頼度情報をシステム制御部209に出力する。相関演算の詳細については、図6から図9を用いて後述する。撮像素子201およびAF信号処理部204によりデフォーカス検出手段が構成される。
The AF
次に、本実施例のカメラ本体200における制御手段としてのシステム制御部209が行う処理について説明する。まず、図3のフローチャートを用いて、システム制御部209が実行する撮像に関する処理全体について説明する。CPU等を含むコンピュータにより構成されるシステム制御部209は、コンピュータプログラムである撮像プログラムに従って本処理を実行する。以下の説明において、「S」はステップを意味する。
Next, the processing performed by the
まずS301では、システム制御部209は、AE処理部211に画像処理部203からの出力に対してAE処理を行わせてS302に進む。
First, in S301, the
S302では、システム制御部209は、SW1(217)の状態を調べ、ONであればS303に進み、そうでなければS301に進む。
In S302, the
S303では、システム制御部209は、AF信号処理部204とともに後述するAF処理を行い、撮像光学系のデフォーカス量が後述する合焦判定幅内(合焦判定範囲内)になるようにフォーカスレンズ103の駆動を制御する。その後S304に進む。
In S303, the
S304では、システム制御部209は、SW1(217)の状態を調べ、ONであればS305に進み、そうでなければS301に進む。
In S304, the
S305では、システム制御部209は、SW2(218)の状態を調べ、ONであればS306に進み、そうでなければS304に進む。
In S305, the
S306では、システム制御部209は、撮像処理を行い、その後S301に戻る。
In S306, the
図4のフローチャートを用いて、上述したS303でシステム制御部209がAF信号処理部204とともに実行するAF処理(焦点調節制御方法)について説明する。システム制御部209およびAF信号処理部204は、上述した撮像プログラムの一部である焦点調節制御プログラムに従って本処理を実行する。
The AF process (focus adjustment control method) executed by the
まずS401において、システム制御部209は、AF処理に関する初期化を行う。
First, in S401, the
次にS402では、システム制御部209は、AF信号処理部204に焦点検出処理を行わせ、AF信号処理部204が算出したデフォーカス量と信頼度情報を取得する。そして、S403に進む。焦点検出処理は、撮像素子201から撮像用画素信号およびAF用信号が読み出されるフレーム(以下、撮像フレームという)ごとに行われる。焦点検出処理の詳細については後述する。
Next, in S402, the
S403では、システム制御部209は、S402で取得した信頼度情報が示す信頼度が予め設定された「信頼度閾値2」より高いか否かを判定し、そうであればS404に進み、そうでなければS413に進む。「信頼度閾値2」は、信頼度がこの信頼度閾値2未満であるときは、デフォーカス量の精度は保証できないが、被写体のピント位置方向は保証できることを示す閾値である。
In S403, the
S404では、システム制御部209は、S402で取得したデフォーカス量(以下、検出デフォーカス量という)が予め設定された合焦判定幅である「Def量閾値2」より小さいか否かを判定する。検出デフォーカス量がDef量閾値2以下である場合は、ピント位置が第2の合焦判定範囲内にある。検出デフォーカス量がDef量閾値2より小さければS405に進み、そうでなければS412に進む。「Def量閾値2」は、検出デフォーカス量がこのDef量閾値2以下であれば、その検出デフォーカス量に従ってフォーカスレンズ103を所定回数(例えば3回)駆動することで、第2の合焦状態が得られることを示す閾値である。第2の合焦状態とは、被写体が撮像光学系の焦点深度内に入り、被写体に高精度にピントが合った状態である。Def量閾値2は、例えば焦点深度の5倍の値に設定する。
In S404, the
S405では、システム制御部209は、フォーカスレンズ103が停止状態であるか否かを判定し、そうであればS406に進み、そうでなければS410に進む。
In S405, the
S406では、システム制御部209は、S402で取得した信頼度情報に示される信頼度が予め設定された「信頼度閾値1」より高いか否かを判定し、そうであればS407に進み、そうでなければS410に進む。「信頼度閾値1」は、信頼度がこの信頼度閾値1以上であれば、検出デフォーカス量のばらつきが所定範囲内(例えば焦点深度内)となることを示す閾値である。
In S406, the
S407では、システム制御部209は、検出デフォーカス量が予め設定された合焦判定幅である「Def量閾値1」より小さいか否かを判定し、そうであればS408に進み、そうでなければS409に進む。検出デフォーカス量がDef量閾値1より小さい場合は、ピント位置が第1の合焦判定範囲にある。「Def量閾値1」は、検出デフォーカス量がこのDef量閾値1以下であれば、第1の合焦状態が得られることを示す閾値であり、Def量閾値2よりも小さい値をとる。第1の合焦状態とは、第2の合焦状態より検出デフォーカス量が小さく、実用上許容される合焦精度が得られている状態を意味する。
In S407, the
このように本実施例では、合焦判定幅の端の値であるDef量閾値として、「Def量閾値1」と「Def量閾値2」を用いる。さらに本実施例では、後に図14を用いて説明するように、第1の合焦判定幅である「Def量閾値1」を検出デフォーカス量のばらつきの大きさ(ばらつき度)に応じて複数の合焦判定幅(1〜4)間で変更する。
As described above, in this embodiment, "Def
S408では、システム制御部209は、撮像光学系が合焦状態にあると判定して本処理を終了する。
In S408, the
一方、S409では、システム制御部209は、検出デフォーカス量からフォーカスレンズ103の駆動量(以下、フォーカス駆動量という)を算出し、該フォーカス駆動量を含むフォーカス指令をレンズコントローラ105に送信する。レンズコントローラ105は、フォーカス指令に含まれるフォーカス駆動量だけフォーカスレンズ103が駆動されるようにフォーカスモータ104の駆動を制御する。この後、システム制御部209はS402に戻る。
On the other hand, in S409, the
上述したS405〜S409の処理を行うことにより、S402で取得した信頼度が「信頼度閾値1」よりも高い場合に、フォーカスレンズ103を停止させた状態で再度、デフォーカス量を算出(検出)することができる。
By performing the above-mentioned processes S405 to S409, when the reliability acquired in S402 is higher than the "
S410では、システム制御部209は、検出デフォーカス量の所定割合分に対するフォーカス駆動量(以下、部分フォーカス駆動量という)を算出し、該部分フォーカス駆動量を含むフォーカス指令をレンズコントローラ105に送信する。所定割合については後述する。レンズコントローラ105は、フォーカス指令に含まれる部分フォーカス駆動量だけフォーカスレンズ103が駆動されるようにフォーカスモータ104の駆動を制御する。
In S410, the
次にS411では、システム制御部209は、レンズコントローラ105に対してフォーカスレンズ103の停止を指示し、S402に戻る。
Next, in S411, the
また、S412では、システム制御部209は、S410と同様に、S402で取得したデフォーカス量の所定割合分に対する部分フォーカス駆動量を算出し、該部分フォーカス駆動量を含むフォーカス指令をレンズコントローラ105に送信する。レンズコントローラ105は、フォーカス指令に含まれる部分フォーカス駆動量だけフォーカスレンズ103が駆動されるようにフォーカスモータ104の駆動を制御する。そして、システム制御部209は、S402に戻る。
Further, in S412, the
S410およびS421にいう「所定割合」は、例えば8割のように、検出デフォーカス量に対してフォーカスレンズ103の駆動量が少なくなる割合である。また、S410およびS421でのフォーカスレンズ103の駆動速度は、次の撮像フレームでの焦点検出処理が完了するまでに部分フォーカス駆動量分のフォーカスレンズ103の駆動が完了する駆動速度よりも遅く設定される。これにより、検出デフォーカス量が正しくない場合においてフォーカスレンズ103が被写体に対して合焦状態が得られる位置(合焦位置)を通過してしまうことを防ぐことができる。また、S412からS402に戻る場合は、フォーカスレンズ103を停止させずに駆動しながら次の焦点検出処理を行う(すなわちオーバーラップAF制御を行う)ことができる。
The "predetermined ratio" referred to in S410 and S421 is a ratio in which the driving amount of the
S413では、システム制御部209は、非合焦条件が満足されたか否かを判定し、そうであればS414に進み、そうでなければS415に進む。非合焦条件とは、ピントを合わせるべき被写体が存在しないと判定するための条件である。例えば、フォーカスレンズ103の全可動範囲での駆動が完了して、つまりはフォーカスレンズ103が遠側と近側の両方の可動端を検出して初期位置に戻ったという条件である。
In S413, the
そしてS414では、システム制御部209は、撮像光学系が非合焦状態であると判定して本処理を終了する。
Then, in S414, the
S415では、システム制御部209は、フォーカスレンズ103が遠側または近側の可動端に到達したか否かを判定し、そうであればS416に進み、そうでなければS417に進む。
In S415, the
S416では、システム制御部209は、フォーカスレンズ103の駆動方向を反転させてS402に戻る。
In S416, the
S417では、システム制御部209は、フォーカスレンズ103を所定方向に駆動させてS402に戻る。ここでのフォーカスレンズ103の駆動速度は、例えばデフォーカス量が検出できるようになった時点で合焦位置を通り過ぎることのないような駆動速度の範囲で最も速い速度が設定される。
In S417, the
次に、上述したS402でシステム制御部209およびAF信号処理部204が実行する焦点検出処理について図5のフローチャートを用いて説明する。まず、S501では、システム制御部209は、撮像素子201の撮像面内においてユーザにより選択された又は所定のアルゴリズムに従って選択した範囲の焦点検出領域(以下、AF領域という)を設定し、S502に進む。
Next, the focus detection process executed by the
S502では、AF信号処理部204は、撮像素子201の撮像面のうちS501で設定されたAF領域に含まれる画素からAF用信号(A信号およびB信号)を取得してS503に進む。
In S502, the AF
S503では、AF信号処理部204は、S502で取得したAF用信号に対して垂直方向に行加算平均処理を行い、一対の位相差像信号を生成する。この垂直行加算平均処理によって一対の位相差像信号におけるノイズの影響を軽減することができる。
In S503, the AF
S504では、AF信号処理部204は、S503での垂直行加算平均処理により生成された一対の位相差像信号から所定の周波数帯域の信号成分を取り出す複数種類のフィルタ処理のうち1つを行い、S505に進む。
In S504, the AF
S505では、AF信号処理部204は、S504でのフィルタ処理を経た一対の位相差像信号の相関量を算出して、S506に進む。
In S505, the AF
S506では、AF信号処理部204は、S505において算出した相関量から相関変化量を算出して、S507に進む。
In S506, the AF
S507では、AF信号処理部204は、S505において算出した相関変化量から像ずれ量を算出して、S508に進む。
In S507, the AF
S508では、AF信号処理部204は、S507で算出した像ずれ量の信頼度を評価して、S509に進む。
In S508, the AF
S509では、AF信号処理部204は、像ずれ量をデフォーカス量に変換して検出デフォーカス量をシステム制御部209に出力する。そして、S510に進む。
In S509, the AF
S510では、AF信号処理部204は、S504での複数種類のフィルタ処理の全てが完了したか否かを判定し、そうであればS511に進み、そうでなければS504に進む。AF信号処理部204は、S504での複数種類のフィルタ処理として、例えば垂直行加算平均処理により生成された一対の位相差像信号に対してそれぞれ帯域が異なる複数の周波数帯域のバンドパスフィルタによる処理を水平方向に行う。
In S510, the AF
AF信号処理部204は、S510において、S504〜S509の一連の処理を複数の周波数帯域の全てに対して行ったか否かを判定し、そうであればS511に進み、そうでなければS504に戻る。
The AF
S511では、S504〜S509の一連の処理によって算出された複数の周波数帯域のそれぞれに対応した複数の検出デフォーカス量の中から少なくとも1つを選択して焦点検出処理を終了する。 In S511, at least one of a plurality of detection defocus amounts corresponding to each of the plurality of frequency bands calculated by the series of processes of S504 to S509 is selected to end the focus detection process.
次に、図5で説明した焦点検出処理について詳細に説明する。図6には、焦点検出処理において撮像素子201の画素アレイ601上でのAF領域602の例を示している。AF領域602の両側のシフト領域603は、相関演算に必要な領域である。このため、AF域602とシフト領域603とを合わせた領域604が相関演算に必要な画素領域である。図中のp,q,s,tはそれぞれ、水平方向(x軸方向)での座標を表し、pとqはそれぞれ画素領域704の始点と終点のx座標を、sとtはそれぞれAF領域602の始点と終点のx座標を示している。
Next, the focus detection process described with reference to FIG. 5 will be described in detail. FIG. 6 shows an example of the
図7(a)は、図6に示したAF領域602に含まれる複数の画素から取得した一対の位相差像信号の例を示す。実線が一方の位相差像信号701を示し、以下ではA像信号という。また、破線が他方の位相差像信号702を示し、以下ではB像信号という。図7(a)はシフト前のA像およびB像信号701,702を示し、図7(b),(c)はそれぞれA像およびB像信号701,702をそれぞれ、図7(a)の位置からプラス方向およびマイナス方向にシフトした状態を示している。これらA像およびB像信号701,702の相関量を算出する際には、A像およびB像信号701,702の両方を矢印の方向に1ビットずつシフトする。
FIG. 7A shows an example of a pair of phase difference image signals acquired from a plurality of pixels included in the
次に、相関量の算出方法について説明する。まず、図7(b),(c)に示すように、A像およびB像信号701,702をそれぞれ1ビットずつシフトして、A像およびB像信号701,702の差の絶対値の和を算出する。シフト量をiとし、マイナス方向の最大シフト量をp−sとし、プラス方向の最大シフト量をq−tとし、xをAF領域602の開始座標とし、yをAF領域602の終了座標とする。このとき、相関量CORは以下の式(1)によって算出することができる。
Next, a method of calculating the correlation amount will be described. First, as shown in FIGS. 7 (b) and 7 (c), the A image and the B image signals 701 and 702 are shifted by 1 bit each, and the sum of the absolute values of the differences between the A image and the B image signals 701 and 702 is summed. Is calculated. Let i be the shift amount, ps be the maximum shift amount in the minus direction, qt be the maximum shift amount in the plus direction, x be the start coordinate of the
図8(a)には、シフト量と相関量CORとの関係の例を示している。横軸はシフト量を示し、縦軸は相関量CORを示す。シフト量とともに変化する相関量801における極値付近802,803のうち、より小さい相関量に対応するシフト量においてA像およびB像信号701,702の一致度が最も高くなる。
FIG. 8A shows an example of the relationship between the shift amount and the correlation amount COR. The horizontal axis shows the shift amount, and the vertical axis shows the correlation amount COR. Among the 802,803 near the extreme values in the
次に、相関変化量の算出方法について説明する。図8(a)に示した相関量801の波形における1シフトおきの相関量の差を相関変化量として算出する。シフト量をiとし、マイナス方向の最大シフト量をp−sとし、プラス方向の最大シフト量をq−tとすると、相関変化量ΔCORは以下の式(2)によって算出することができる。
Next, a method of calculating the amount of correlation change will be described. The difference in the correlation amount every other shift in the waveform of the
図9(a)には、シフト量と相関変化量ΔCORとの関係の例を示している。横軸はシフト量を示し、縦軸は相関変化量ΔCORを示す。シフト量とともに変化する相関変化量901は、902,903の部分でプラスからマイナスになる。相関変化量が0となる状態をゼロクロスと呼び、A像およびB像信号701,702の一致度が最も高くなる。したがって、ゼロクロスを与えるシフト量が像ずれ量となる。
FIG. 9A shows an example of the relationship between the shift amount and the correlation change amount ΔCOR. The horizontal axis shows the shift amount, and the vertical axis shows the correlation change amount ΔCOR. The
図9(b)には、図9(a)中の902で示した部分を拡大して示す。904は相関変化量901の一部分である。この図9(b)を用いて像ずれ量PRDの算出方法について説明する。
FIG. 9B shows an enlarged portion shown by 902 in FIG. 9A. 904 is a part of the
ゼロクロスを与えるシフト量(k−1+α)は、整数部分β(=k−1)と小数部分αとに分けられる。小数部分αは、図中の三角形ABCと三角形ADEとの相似の関係から、以下の式(3)によって算出することができる。 The shift amount (k-1 + α) that gives a zero cross is divided into an integer part β (= k-1) and a decimal part α. The fractional part α can be calculated by the following equation (3) from the similarity relationship between the triangle ABC and the triangle ADE in the figure.
整数部分βは、図9(b)から以下の式(4)によって算出することができる。
β=k−1 (4)
そして、αとβの和(α+β)から像ずれ量PRDを算出することができる。
図9(a)に示したように相関変化量ΔCORのゼロクロスが複数存在する場合は、その付近での相関変化量ΔCORの変化の急峻性がより大きい方を第1のゼロクロスとする。この急峻性はAFの行い易さを示す指標であり、値が大きいほど精度良いAFを行い易い点であることを示す。急峻性maxderは、以下の式(5)によって算出することができる。
The integer part β can be calculated from FIG. 9B by the following equation (4).
β = k-1 (4)
Then, the image shift amount PRD can be calculated from the sum of α and β (α + β).
When there are a plurality of zero crosses of the correlation change amount ΔCOR as shown in FIG. 9A, the one having a larger change in the correlation change amount ΔCOR in the vicinity thereof is defined as the first zero cross. This steepness is an index showing the ease of performing AF, and the larger the value, the easier it is to perform accurate AF. The steepness maxder can be calculated by the following equation (5).
このように、本実施例では、相関変化量のゼロクロスが複数存在する場合は、その急峻性によって第1のゼロクロスを決定し、この第1のゼロクロスを与えるシフト量を像ずれ量とする。 As described above, in this embodiment, when there are a plurality of zero crosses of the correlation change amount, the first zero cross is determined by the steepness thereof, and the shift amount that gives the first zero cross is defined as the image shift amount.
次に、S508でAF信号処理部204が行う信頼度評価処理について、図10のフローチャートを用いて説明する。S1001では、AF信号処理部204は、maxderを撮像条件(センサーゲインおよび読み出し行加算数等)や被写体条件(コントラスト等)で正規化する。maxderを正規化する理由は、信頼度の精度を高めるためである。
Next, the reliability evaluation process performed by the AF
次にS1002では、AF信号処理部204は、検出デフォーカス量が所定のデフォーカス量閾値より大きいか否かを判定する。AF信号処理部204は、検出デフォーカス量がデフォーカス量閾値より大きいときはS1003に進んで信頼度を0とする。また、検出デフォーカス量がデフォーカス量閾値以下のときはS1004に進み、S1001で正規化したmaxderが正規化maxder閾値以下か否かを判定する。
Next, in S1002, the AF
AF信号処理部204は、正規化maxderが正規化maxder閾値以下のときは、S1003に進み信頼度を0として、本処理を終了する。信頼度0は、検出デフォーカス量の信頼度がきわめて低いことを示す。
When the normalized maxder is equal to or less than the normalized maxder threshold value, the AF
本実施例では、デフォーカス量閾値とmaxder閾値をフィルタごとに設定している。デフォーカス量閾値は各フィルタのデフォーカス量検出能力(総シフト量の観点から焦点検出可能な限界距離)に応じて設定する。また、低輝度時や低コントラスト被写体に対する焦点検出処理のように信頼度を誤りやすい場面では、正規化maxderが小さくなる。このため、正規化maxder閾値を設定することで誤った信頼度を出力することを防止している。 In this embodiment, the defocus amount threshold value and the maxder threshold value are set for each filter. The defocus amount threshold is set according to the defocus amount detection capability of each filter (the limit distance at which focus can be detected from the viewpoint of the total shift amount). Further, the normalized maxder becomes small in a scene where the reliability is likely to be mistaken, such as when the brightness is low or when the focus detection process is performed for a low contrast subject. Therefore, by setting the normalized maxder threshold value, it is possible to prevent an erroneous output of reliability.
S1004で正規化maxderが正規化maxder閾値より大きいと判定したAF信号処理部204はS1005に進み、正規化maxderに基づいて像ずれ量の標準偏差を推定する。図13に示すように、正規化maxderと像ずれ量の標準偏差との間には負の相関があるため、正規化maxderから像ずれ量の標準偏差を推定することができる。
The AF
次にS1006では、AF信号処理部204は、像ずれ量の標準偏差に所定の換算係数を乗算して、検出デフォーカス量の標準偏差を算出する。ここで使用する換算係数は、像ずれ量から検出デフォーカス量を算出する際に使用した換算係数と同様に、絞り102の絞り値、撮像光学系の射出瞳距離、撮像素子201の個体情報および撮像面上におけるAF領域の座標によって決定される値である。このように、検出デフォーカス量のばらつき度を示す情報としての標準偏差は、像ずれ量、すなわち被写体像を光電変換して得られた一対の位相差像信号のずれ量から得られる。
Next, in S1006, the AF
また、検出デフォーカス量の標準偏差に対しても、絞り値Fと許容錯乱円δで除算して正規化する。maxderに基づいて信頼度(つまりは検出デフォーカス量の標準偏差)を評価する場合は、上記換算係数の個数分の閾値を設定する必要がある。このため、本実施例では、大量の閾値データをROM137に保持しておかなくても、より所望の閾値を設定することができる。また、絞り値Fによって正規化しているため、絞り102の状態に関係なく閾値を設定することが可能である。 Further, the standard deviation of the detected defocus amount is also normalized by dividing by the aperture value F and the permissible circle of confusion δ. When evaluating the reliability (that is, the standard deviation of the detected defocus amount) based on the maxder, it is necessary to set the threshold value for the number of the above conversion coefficients. Therefore, in this embodiment, a more desired threshold value can be set without holding a large amount of threshold data in the ROM 137. Further, since it is normalized by the aperture value F, it is possible to set the threshold value regardless of the state of the aperture 102.
続くS1400では、AF信号処理部204は、合焦判定幅を設定する。このステップでの合焦判定幅の設定処理については後述する。
In the following S1400, the AF
次にS1007以降において、AF信号処理部204は、検出デフォーカス量の標準偏差に応じて該検出デフォーカス量の信頼度を評価する。本実施例では、検出デフォーカス量の標準偏差の閾値を3段階(THRESHOLD1、THRESHOLD2、THRESHOLD3)設定している。THRESHOLD1、THRESHOLD2およびTHRESHOLD3は、
THRESHOLD3<THRESHOLD2<THRESHOLD1
という関係を有する。また、信頼度N(N=0〜3)は数字が小さいほど信頼度がより低いことを意味する。
Next, in S1007 and thereafter, the AF
THRESHOLD3 <THRESHOLD2 <THRESHOLD1
Has a relationship. Further, the reliability N (N = 0 to 3) means that the smaller the number, the lower the reliability.
まずS1007において検出デフォーカス量の標準偏差がTHRESHOLD1より大きい場合は、AF信号処理部204はS1003に進み、検出デフォーカス量の信頼度を信頼度0と判定する。また、S1008において検出デフォーカス量の標準偏差がTHRESHOLD1以下で、かつTHRESHOLD2より大きい場合は、AF信号処理部204はS1009に進み、信頼度を信頼度1と判定する。
First, if the standard deviation of the detected defocus amount is larger than THRESHOLD1 in S1007, the AF
さらに、S1010において検出デフォーカス量の標準偏差がTHRESHOLD2以下であり、かつTHRESHOLD3より大きい場合は、AF信号処理部204はS1011に進み、信頼度を信頼度2と判定する。検出デフォーカス量の標準偏差がTHRESHOLD3以下である場合は、AF信号処理部204はS1012に進み、信頼度を信頼度3と判定する。
Further, in S1010, when the standard deviation of the detected defocus amount is THRESHOLD2 or less and larger than THRESSHOLD3, the AF
以上が信頼度を評価する基本的な処理であるが、信頼度の評価方法は3種類のフィルタの役割ごとに変えてもよい。図15は、各フィルタから出力できる信頼度を示しており、○が記された条件は出力できる信頼度を意味し、×が記された条件は出力しない信頼度を意味する。低域フィルタは精度が低いため、合焦可能であることを意味する信頼度3は出力しない。また、高域フィルタでは、総シフト量が小さく大ボケ時の被写体に対して焦点検出を行えないため、信頼度1は出力しない。このように処理することで、誤った信頼度を出力する可能性を軽減することができる。
The above is the basic process for evaluating the reliability, but the reliability evaluation method may be changed for each of the roles of the three types of filters. FIG. 15 shows the reliability that can be output from each filter. The condition marked with ◯ means the reliability that can be output, and the condition marked with × means the reliability that is not output. Since the low-frequency filter has low accuracy, it does not output reliability 3, which means that it can be focused. Further, in the high frequency filter, the total shift amount is small and the focus cannot be detected for the subject at the time of large blur, so the
撮像面位相差AFでは、バンドパスフィルタの周波数帯域と被写体の周波数帯域との相違や、撮像光学系を構成するレンズを保持するレンズ枠によるAF瞳のケラレの影響がデフォーカス量に応じて変化する。このため、撮像面位相差AFでは、特にフォーカスレンズ103の実際のデフォーカス量に対して、検出されるデフォーカス量が比例関係(線形性)から外れる場合がある。この検出デフォーカス量のずれは、特に検出デフォーカス量が大きい場合に発生しやすく、被写体の空間周波数および検出デフォーカス量に応じて変化するため、被写体やフォーカスレンズ103の位置ごとにこのずれに対する補正を行うことは困難である。
In the imaging surface phase difference AF, the difference between the frequency band of the bandpass filter and the frequency band of the subject and the effect of vignetting of the AF pupil due to the lens frame holding the lens constituting the imaging optical system change according to the amount of defocus. To do. Therefore, in the imaging surface phase difference AF, the detected defocus amount may deviate from the proportional relationship (linearity) with respect to the actual defocus amount of the
一方、AF処理に要する時間やAF処理における動作品位を考えると、フォーカスレンズ103の駆動方向の反転を極力少なくする(無くする)ことが望ましい。このため、本実施例では、前述したように、デフォーカス量が大きい状態からのAFでは検出デフォーカス量にそのまま対応するフォーカス駆動量を設定するのではなく、検出デフォーカス量に対して1以下の係数を乗じて部分フォーカス駆動量を設定する。これにより、フォーカスレンズ103が合焦位置を通過することで駆動方向の反転が必要となることを防止し、スムーズなAFを実現することが可能となる。
On the other hand, considering the time required for the AF process and the operation quality in the AF process, it is desirable to minimize (eliminate) the reversal of the drive direction of the
ただし、前述したように、検出デフォーカス量のずれはデフォーカス量が大きい状態で発生しやすく、デフォーカス量が小さい状態では線形性は保たれる。このように検出デフォーカス量の線形性が保たれる条件では、検出デフォーカス量にそのまま対応するフォーカス駆動量を設定して、より高速なAFを実現することが望ましい。 However, as described above, the deviation of the detected defocus amount tends to occur when the defocus amount is large, and the linearity is maintained when the defocus amount is small. Under the condition that the linearity of the detected defocus amount is maintained, it is desirable to set the focus drive amount corresponding to the detected defocus amount as it is to realize faster AF.
本実施例では、1フレームでのフォーカス駆動量として、検出デフォーカス量にそのまま対応するフォーカス駆動量が設定可能な検出デフォーカス量の範囲を第1のデフォーカス範囲とし、それより大きい検出デフォーカス量の範囲を第2のデフォーカス範囲とする。検出デフォーカス量が第1のデフォーカス範囲にあれば、合焦状態が得られたか否かを判定するための第1の合焦判定幅を広げても、実用上許容される合焦状態(第1の合焦状態)は得られる。一方、検出デフォーカス量が第2のデフォーカス範囲にある場合は、合焦判定幅を狭くして精度の高い合焦状態(第2の合焦状態)が得られるまでフォーカスレンズ103を駆動することが望ましい。
In this embodiment, as the focus drive amount in one frame, the range of the detection defocus amount in which the focus drive amount corresponding to the detection defocus amount can be set is set as the first defocus range, and the detection defocus larger than that is set as the first defocus range. The range of quantity is defined as the second defocus range. If the detected defocus amount is within the first defocus range, even if the first focus determination range for determining whether or not the in-focus state is obtained is widened, the in-focus state (practically acceptable) The first in-focus state) is obtained. On the other hand, when the detected defocus amount is in the second defocus range, the
また本実施例では、検出デフォーカス量が第1のデフォーカス範囲にある場合により高速なAFを実現するために、1フレームでのフォーカス駆動量のみならず、第1の合焦判定幅である「Def量閾値1」も被写体に応じて変更する。
Further, in this embodiment, in order to realize faster AF when the detected defocus amount is in the first defocus range, not only the focus drive amount in one frame but also the first focus determination width is used. The "Def
次に、「Def量閾値1」について、図11(a),(b)および図12(a),(b)を用いて説明する。本実施例は、撮像する被写体(つまりは被写体像)に応じて「Def量閾値1」である合焦判定幅を適切に設定(変更)することで、AF処理により合焦状態が得られるまでに要する時間を短縮させる。図11(a),(b)および図12(a),(b)のいずれにおいても、実用上許容される合焦精度としては、デフォーカス量が合焦基準幅としての±1Fδ以内とする。
Next, “Def
図11(a),(b)は、被写体によらず合焦判定幅(±0.25Fδ)を一定とする従来方式を示している。図11(a)は、被写体が高コントラストであり、検出デフォーカス量のばらつき度(以下、デフォーカス検出ばらつきという)が±0.25Fδとなる場合の該デフォーカス検出ばらつきと第1の合焦判定幅との関係を示している。また、図11(b)は、被写体が低コントラストであり、デフォーカス検出ばらつきが±0.75Fδとなる場合の該デフォーカス検出ばらつきと第1の合焦判定幅との関係を示している。 FIGS. 11A and 11B show a conventional method in which the focusing determination width (± 0.25Fδ) is constant regardless of the subject. FIG. 11A shows a first focus with the defocus detection variation when the subject has high contrast and the degree of variation in the detected defocus amount (hereinafter referred to as defocus detection variation) is ± 0.25 Fδ. The relationship with the judgment width is shown. Further, FIG. 11B shows the relationship between the defocus detection variation and the first focus determination width when the subject has a low contrast and the defocus detection variation is ± 0.75 Fδ.
撮像面位相差AFにおけるデフォーカス量の検出誤差としては、前述したような帯域ずれ等の種々の要因から生じるオフセット誤差や、デフォーカス量を繰り返して検出したときの検出ごとのばらつき等がある。図11(a)に示す従来方式では、デフォーカス検出ばらつきが小さい高コントラスト被写体においても、デフォーカス検出ばらつきが大きい低コントラスト被写体と同じ合焦判定幅を使用している。このため、上述した実用上許容される合焦精度より厳しく合焦状態を判定している。 The detection error of the defocus amount in the imaging surface phase difference AF includes an offset error caused by various factors such as the band shift as described above, a variation for each detection when the defocus amount is repeatedly detected, and the like. In the conventional method shown in FIG. 11A, even a high-contrast subject having a small defocus detection variation uses the same focusing determination width as a low-contrast subject having a large defocus detection variation. For this reason, the focusing state is determined more strictly than the above-mentioned practically acceptable focusing accuracy.
図4のS407にて説明したように、検出デフォーカス量が合焦判定幅(Def量閾値1)以内にない場合は、再度、フォーカスレンズの駆動が行われる。合焦状態の近傍でのフォーカスレンズの駆動は、デフォーカス量の検出精度を確保するために、フォーカスレンズが停止しているフレームで取得された検出デフォーカス量に基づいて行われることが望ましい。このため、デフォーカス量を検出するために、フォーカスレンズの停止を判定するためのフレーム、レンズ停止後の撮像フレームおよび撮像フレームで得られた一対の位相差像信号からデフォーカス量を演算するフレーム等が必要である。これらの複数のフレーム分の期間の間、フォーカスレンズは動けず、フォーカスレンズを合焦位置まで移動させるAF処理が遅延する。 As described in S407 of FIG. 4, when the detected defocus amount is not within the focusing determination width (Def amount threshold value 1), the focus lens is driven again. It is desirable that the focus lens is driven in the vicinity of the in-focus state based on the detected defocus amount acquired in the frame in which the focus lens is stopped in order to ensure the detection accuracy of the defocus amount. Therefore, in order to detect the defocus amount, a frame for determining the stop of the focus lens, an imaging frame after the lens is stopped, and a frame for calculating the defocus amount from a pair of phase difference image signals obtained by the imaging frame. Etc. are required. During these plurality of frames, the focus lens cannot move, and the AF process for moving the focus lens to the in-focus position is delayed.
図12(a),(b)は、本実施例における合焦判定幅を示す。本実施例では、被写体に応じたデフォーカス検出ばらつき、つまりは焦点検出処理内(図5のS1006)で取得される検出デフォーカス量の標準偏差に応じて、「Def量閾値1」としての合焦判定幅を設定する。
12 (a) and 12 (b) show the focusing determination width in this embodiment. In this embodiment, the defocus detection variation according to the subject, that is, the standard deviation of the detection defocus amount acquired in the focus detection process (S1006 in FIG. 5) is set as the “Def
図12(a)は、被写体が高コントラストであり、デフォーカス検出ばらつきが±0.25Fδとなる場合の該デフォーカス検出ばらつきと合焦判定幅との関係を示している。また、図12(b)は、被写体が低コントラストであり、デフォーカス検出ばらつきが±0.75Fδとなる場合の該デフォーカス検出ばらつきと合焦判定幅との関係を示している。 FIG. 12A shows the relationship between the defocus detection variation and the in-focus determination width when the subject has high contrast and the defocus detection variation is ± 0.25 Fδ. Further, FIG. 12B shows the relationship between the defocus detection variation and the in-focus determination width when the subject has a low contrast and the defocus detection variation is ± 0.75 Fδ.
図12(a)では、デフォーカス検出ばらつきを適切に考慮し、実用上許容される合焦精度を確保しつつ、合焦判定幅(Def量閾値1)を広げる。これにより、合焦状態の近傍において複数回のフォーカスレンズ103の駆動が行われる頻度を少なくする。
In FIG. 12A, the defocus detection variation is appropriately considered, and the focusing determination width (Def amount threshold value 1) is widened while ensuring the focusing accuracy that is practically allowed. As a result, the frequency with which the
図14のフローチャートは、図10のS1400においてAF信号処理部204が実行する合焦判定幅の設定処理を示している。本実施例では、信頼度の判定と同様に、合焦判定幅を段階的に設定する。ステップS1401において、AF信号処理部204は、S1006で算出した検出デフォーカス量の標準偏差を読み込む。
The flowchart of FIG. 14 shows the focusing determination width setting process executed by the AF
続いてS1402では、AF信号処理部204は、検出デフォーカス量の標準偏差がDef1_Th1より小さいか否かを判定し、そうである場合はS1403に進み、合焦判定幅(Def量閾値1)を高コントラスト被写体用の合焦判定幅1に設定する。検出デフォーカス量の標準偏差がDef1_Th1以上でDef1_Th2より小さい場合は、AF信号処理部204はS1405に進み、合焦判定幅を中コントラスト被写体用の合焦判定幅2に設定する。
Subsequently, in S1402, the AF
また、検出デフォーカス量の標準偏差がDef1_Th2以上であり、かつDef1_Th3より小さい場合は、AF信号処理部204はS1407に進み、合焦判定幅を低コントラスト被写体用の合焦判定幅3に設定する。検出デフォーカス量の標準偏差がDef1_Th3以上である場合は、AF信号処理部204は、S1408に進み、合焦判定幅を超低コントラスト被写体用の合焦判定幅4に設定する。ここで、合焦判定幅の大小関係を以下に示す。
If the standard deviation of the detected defocus amount is Def1_Th2 or more and smaller than Def1_Th3, the AF
合焦判定幅4<合焦判定幅3<合焦判定幅2<合焦判定幅1
このように、本実施例では、被写体のコントラストが高く、デフォーカス検出ばらつきが小さいほど、合焦判定幅を広く設定する。これにより、少なくとも実用上許容される合焦精度を確保しつつ、AF処理により合焦状態が得られるまでに要する時間を短縮することができる。
As described above, in this embodiment, the higher the contrast of the subject and the smaller the defocus detection variation, the wider the focusing determination width is set. As a result, it is possible to shorten the time required for the AF process to obtain the focusing state while ensuring at least the practically acceptable focusing accuracy.
上記実施例では、合焦判定幅を段階的に変更する場合について説明したが、検出デフォーカス量の標準偏差と合焦基準幅との差分に応じて合焦判定幅が連続的に変更されるようにしてもよい。 In the above embodiment, the case where the focusing determination width is changed stepwise has been described, but the focusing determination width is continuously changed according to the difference between the standard deviation of the detected defocus amount and the focusing reference width. You may do so.
また、上記実施例では検出デフォーカス量のばらつき度を示す情報として標準偏差を用いたが、分散等、他のばらつき度を示す情報を用いてもよい。また、上記実施例では、デフォーカス量のばらつき度を一対の位相差像信号を用いて算出する場合について説明したが、被写体像を光電変換して得られる他の信号を用いてばらつき度を取得してもよい。例えば、撮像素子201からの出力により生成される撮像信号から被写体像のコントラストを示す情報を生成し、該コントラストの高低を示す情報からデフォーカス量のばらつき度を推定してもよい。
Further, in the above embodiment, the standard deviation is used as the information indicating the degree of variation in the detected defocus amount, but information indicating other degrees of variation such as dispersion may be used. Further, in the above embodiment, the case where the degree of variation in the defocus amount is calculated by using a pair of phase difference image signals has been described, but the degree of variation is acquired by using another signal obtained by photoelectric conversion of the subject image. You may. For example, information indicating the contrast of the subject image may be generated from the image pickup signal generated by the output from the
また、上記実施例ではフォーカスレンズ光軸方向に駆動してAFを行う場合について説明したが、撮像素子を光軸方向に駆動してAFを行う場合にも、上記実施例を適用することができる。 Further, in the above embodiment, the case where AF is performed by driving the focus lens in the optical axis direction has been described, but the above embodiment can also be applied when AF is performed by driving the image sensor in the optical axis direction. ..
さらに上記実施例では、レリーズボタンの半押し操作(SW1のON)から全押し操作(SW2のON)までの間のAF処理において合焦判定幅をデフォーカス検出ばらつきに応じて変更する場合について説明した。しかし、レリーズボタンの半押し操作から全押し操作までが一気に行われる等の特定条件を満足する場合に限って、合焦判定幅をデフォーカス検出ばらつきに応じて変更するようにしてもよい。これにより、ユーザが求める速写性を確保することができる。
(その他の実施例)
本発明は、上述の実施形態の1以上の機能を実現するプログラムを、ネットワーク又は記憶媒体を介してシステム又は装置に供給し、そのシステム又は装置のコンピュータにおける1つ以上のプロセッサーがプログラムを読出し実行する処理でも実現可能である。また、1以上の機能を実現する回路(例えば、ASIC)によっても実現可能である。
Further, in the above embodiment, a case where the focus determination width is changed according to the defocus detection variation in the AF process from the half-press operation (SW1 ON) to the full-press operation (SW2 ON) of the release button will be described. did. However, the focusing determination width may be changed according to the defocus detection variation only when a specific condition such that the half-press operation to the full-press operation of the release button is performed at once is satisfied. As a result, the quick shooting property required by the user can be ensured.
(Other Examples)
The present invention supplies a program that realizes one or more functions of the above-described embodiment to a system or device via a network or storage medium, and one or more processors in the computer of the system or device reads and executes the program. It can also be realized by the processing to be performed. It can also be realized by a circuit (for example, ASIC) that realizes one or more functions.
以上説明した各実施例は代表的な例にすぎず、本発明の実施に際しては、各実施例に対して種々の変形や変更が可能である。 Each of the above-described examples is only a representative example, and various modifications and changes can be made to each of the examples in carrying out the present invention.
103 フォーカスレンズ
200 デジタルカメラ本体
201 撮像素子
204 AF信号処理部
209 システム制御部
103
Claims (7)
前記デフォーカス量が合焦判定範囲内になるように焦点調節制御を行う制御手段とを有し、
前記制御手段は、
前記撮像光学系により形成される被写体像を光電変換して得られた信号を用いて前記デフォーカス量のばらつき度を示す情報を取得し、
前記ばらつき度が相対的に大きい第1の場合は、前記ばらつき度が相対的に小さい第2の場合よりも前記合焦判定範囲を小さくすることを特徴とする撮像装置。 Defocus detection means for detecting the amount of defocus in the imaging optical system,
It has a control means for performing focus adjustment control so that the defocus amount is within the focus determination range.
The control means
Using the signal obtained by photoelectric conversion of the subject image formed by the imaging optical system, information indicating the degree of variation in the defocus amount is acquired.
The first case in which the degree of variation is relatively large is characterized in that the focusing determination range is made smaller than in the second case where the degree of variation is relatively small.
前記制御手段は、前記像ずれ量を用いて前記ばらつき度を示す情報を取得することを特徴とする請求項1に記載の撮像装置。 The defocus detection means calculates the defocus amount from the image shift amount of the pair of phase difference image signals obtained by the phase difference detection method.
The imaging device according to claim 1, wherein the control means acquires information indicating the degree of variation using the image shift amount.
前記制御手段は、前記第2の合焦判定範囲を前記ばらつき度に応じて変更することを特徴とする請求項1から3のいずれか一項に記載の撮像装置。 The control means determines whether the defocus amount is within the first focus determination range, and then determines whether the defocus amount is within the second focus determination range narrower than the first focus determination range. ,
The imaging device according to any one of claims 1 to 3 , wherein the control means changes the second focusing determination range according to the degree of variation.
操作部材の第1の操作に応じて前記焦点調節制御を行い、前記操作部材の第2の操作に応じて撮像制御を行い、
前記焦点調節制御が終了する前に前記第2の操作が行われた場合に、前記ばらつき度に応じて前記合焦判定範囲を変更することを特徴とする請求項1から4のいずれか一項に記載の撮像装置。 The control means
The focus adjustment control is performed according to the first operation of the operating member, and the imaging control is performed according to the second operation of the operating member.
Any one of claims 1 to 4 , wherein when the second operation is performed before the focus adjustment control is completed, the focus determination range is changed according to the degree of variation. The imaging apparatus according to.
前記デフォーカス量が合焦判定範囲内になるように焦点調節制御を行うステップとを有し、
前記焦点調節制御において、
前記撮像光学系により形成される被写体像を光電変換して得られた信号を用いて前記デフォーカス量のばらつき度を示す情報を取得し、
前記ばらつき度が相対的に大きい第1の場合は、前記ばらつき度が相対的に小さい第2の場合よりも前記合焦判定範囲を小さくすることを特徴とする焦点調節制御方法。 Steps to detect the amount of defocus in the imaging optical system,
It has a step of performing focus adjustment control so that the defocus amount is within the focusing determination range.
In the focus adjustment control,
Using the signal obtained by photoelectric conversion of the subject image formed by the imaging optical system, information indicating the degree of variation in the defocus amount is acquired.
A focus adjustment control method characterized in that the first case where the degree of variation is relatively large is smaller than the second case where the degree of variation is relatively small.
撮像光学系のデフォーカス量を検出する処理と、
前記デフォーカス量が合焦判定範囲内になるように焦点調節制御を行う処理とを実行させるコンピュータプログラムであって、
前記焦点調節制御を行う前記コンピュータに、
前記撮像光学系により形成される被写体像を光電変換して得られた信号を用いて前記デフォーカス量のばらつき度を示す情報を取得させ、
前記ばらつき度が相対的に大きい第1の場合は、前記ばらつき度が相対的に小さい第2の場合よりも前記合焦判定範囲を小さくさせることを特徴とする焦点調節制御プログラム。 To the computer of the image pickup device
Processing to detect the amount of defocus in the imaging optical system and
A computer program that executes a process of performing focus adjustment control so that the defocus amount is within the focus determination range.
To the computer that performs the focus adjustment control,
Using the signal obtained by photoelectric conversion of the subject image formed by the imaging optical system, information indicating the degree of variation in the defocus amount is acquired.
A focus adjustment control program characterized in that the focus adjustment determination range is made smaller in the first case where the degree of variation is relatively large than in the second case where the degree of variation is relatively small.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2017015372A JP6884582B2 (en) | 2017-01-31 | 2017-01-31 | Imaging device, imaging method and imaging program |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2017015372A JP6884582B2 (en) | 2017-01-31 | 2017-01-31 | Imaging device, imaging method and imaging program |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2018124374A JP2018124374A (en) | 2018-08-09 |
| JP6884582B2 true JP6884582B2 (en) | 2021-06-09 |
Family
ID=63110551
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2017015372A Expired - Fee Related JP6884582B2 (en) | 2017-01-31 | 2017-01-31 | Imaging device, imaging method and imaging program |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP6884582B2 (en) |
Family Cites Families (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP3713793B2 (en) * | 1996-03-26 | 2005-11-09 | 株式会社ニコン | Focus adjustment device |
| JP3675039B2 (en) * | 1996-06-26 | 2005-07-27 | 株式会社ニコン | Focus adjustment device |
| JP2010197601A (en) * | 2009-02-24 | 2010-09-09 | Hoya Corp | Camera equipped with automatic focusing device |
| JP6390198B2 (en) * | 2014-06-23 | 2018-09-19 | リコーイメージング株式会社 | Imaging apparatus and imaging method |
-
2017
- 2017-01-31 JP JP2017015372A patent/JP6884582B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JP2018124374A (en) | 2018-08-09 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP6457776B2 (en) | IMAGING DEVICE AND IMAGING DEVICE CONTROL METHOD | |
| JP6506560B2 (en) | Focus control device and method therefor, program, storage medium | |
| US10542202B2 (en) | Control apparatus that performs focusing by imaging-plane phase difference AF, image capturing apparatus, control method, and non-transitory computer-readable storage medium | |
| US10873694B2 (en) | Imaging apparatus, control apparatus, and storage medium providing phase difference detection focusing control of an image having a saturated object | |
| JP6806473B2 (en) | Imaging device and its control method | |
| JP2016142999A (en) | Imaging device and control method of the same | |
| JP6682319B2 (en) | Focus detection apparatus and method, imaging apparatus, program, storage medium | |
| US20170054893A1 (en) | Focus detecting apparatus and method of controlling the same | |
| JP7179509B2 (en) | Imaging device and imaging device control method | |
| JP2018091977A (en) | Focus controller, imaging apparatus, focus control method, and focus control program | |
| JP7532067B2 (en) | Focus detection device, imaging device, and focus detection method | |
| JP6234016B2 (en) | Focus adjustment device, imaging device, and control method thereof | |
| JP6833405B2 (en) | Focus detection device, focus adjustment device, imaging device and focus detection method | |
| CN106993110B (en) | Image pickup apparatus and control method thereof | |
| JP2020122906A (en) | Focus detection device, imaging apparatus, and focus detection method | |
| JP2016156950A (en) | Automatic focus adjustment device and control method of the same | |
| JP7050569B2 (en) | Imaging device and its control method | |
| US10747089B2 (en) | Imaging apparatus and control method of the same | |
| JP6884582B2 (en) | Imaging device, imaging method and imaging program | |
| JP2018010245A (en) | Signal processor and control method therefor | |
| JP7071165B2 (en) | Display control device and method, and image pickup device | |
| JP7282227B2 (en) | Imaging device and its control method | |
| JP2016080738A (en) | Imaging device, automatic focusing method | |
| JP7207874B2 (en) | CONTROL DEVICE, IMAGING DEVICE, CONTROL METHOD, PROGRAM, AND STORAGE MEDIUM | |
| JP2016194665A (en) | Focus detection device, optical instrument, focus detection program |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20200123 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20201208 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20210105 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20210302 |
|
| 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: 20210413 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20210512 |
|
| R151 | Written notification of patent or utility model registration |
Ref document number: 6884582 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R151 |
|
| LAPS | Cancellation because of no payment of annual fees |