JP2013054326A - Focus detector and imaging apparatus - Google Patents

Focus detector and imaging apparatus Download PDF

Info

Publication number
JP2013054326A
JP2013054326A JP2011200194A JP2011200194A JP2013054326A JP 2013054326 A JP2013054326 A JP 2013054326A JP 2011200194 A JP2011200194 A JP 2011200194A JP 2011200194 A JP2011200194 A JP 2011200194A JP 2013054326 A JP2013054326 A JP 2013054326A
Authority
JP
Japan
Prior art keywords
optical system
focus
phase difference
frequency band
unit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
JP2011200194A
Other languages
Japanese (ja)
Inventor
Akira Takemura
朗 竹村
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nikon Corp
Original Assignee
Nikon Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nikon Corp filed Critical Nikon Corp
Priority to JP2011200194A priority Critical patent/JP2013054326A/en
Publication of JP2013054326A publication Critical patent/JP2013054326A/en
Withdrawn legal-status Critical Current

Links

Images

Landscapes

  • Focusing (AREA)
  • Automatic Focus Adjustment (AREA)
  • Transforming Light Signals Into Electric Signals (AREA)
  • Studio Devices (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a focus detector capable of properly detecting a focus of an optical system.SOLUTION: The focus detector comprises: a phase difference detection section for acquiring an image deviation signal corresponding to deviation amount of image surfaces by optical systems 31, 32 and 33, selecting a filter capable of detecting a frequency band suitable for the image deviation signal of a plurality of filters and detecting the deviation amount on the basis of a filter processing signal obtained by performing filter processing on the image deviation signal; a contrast detection section for detecting the focus states of the optical systems 31, 32 and 33 from the contrast of the images by the optical systems 31, 32 and 33; and a control section for determining whether or not the frequency band detectable by the selected filter is a frequency band different from a specific frequency band corresponding to a photographic scene and executing scan driving of the phase difference detection section and the contrast detection section, while driving the focus adjustment optical system 32 in a prescribed direction, when the frequency band of the selected filter is the frequency band different from the specific frequency band.

Description

本発明は、焦点検出装置および撮像装置に関する。   The present invention relates to a focus detection apparatus and an imaging apparatus.

従来より、光学系の焦点調節を行なう際に、焦点調節精度を高めるために、まず、位相差検出方式により光学系の焦点状態の検出を行い、位相差検出方式による検出結果に基づいて、焦点調節レンズを合焦位置近傍まで駆動し、次いで、合焦位置近傍において、コントラスト検出方式によって光学系の焦点状態の検出を行い、該コントラスト検出方式による検出結果に基づいて、焦点調節レンズを合焦位置まで駆動する技術が知られている(たとえば、特許文献1参照)。   Conventionally, when adjusting the focus of an optical system, in order to improve the focus adjustment accuracy, first, the focus state of the optical system is detected by the phase difference detection method, and the focus is determined based on the detection result by the phase difference detection method. The adjustment lens is driven to the vicinity of the focus position, and then the focus state of the optical system is detected by the contrast detection method in the vicinity of the focus position, and the focus adjustment lens is focused based on the detection result by the contrast detection method. A technique for driving to a position is known (for example, see Patent Document 1).

特開2006−84545号公報JP 2006-84545 A

しかしながら、従来技術では、まず、位相差検出方式による焦点検出を行い、これに続いて、コントラスト検出方式による焦点検出を行うものであるため、焦点検出に時間が掛かってしまうという問題があった。   However, in the prior art, focus detection is first performed by the phase difference detection method, and subsequently focus detection is performed by the contrast detection method. Therefore, there is a problem that it takes time to detect the focus.

本発明が解決しようとする課題は、光学系の焦点検出を適切に行なうことができる焦点検出装置を提供することにある。   The problem to be solved by the present invention is to provide a focus detection apparatus capable of appropriately performing focus detection of an optical system.

本発明は、以下の解決手段によって上記課題を解決する。なお、以下においては、本発明の実施形態を示す図面に対応する符号を付して説明するが、この符号は本発明の理解を容易にするためだけのものであって発明を限定する趣旨ではない。   The present invention solves the above problems by the following means. In the following description, the reference numerals corresponding to the drawings showing the embodiments of the present invention are used for explanation, but these reference numerals are only for facilitating the understanding of the present invention and are not intended to limit the invention. Absent.

[1]本発明の第一の観点に係る焦点検出装置は、焦点調節光学系を有する光学系(31,32,33)による像を撮像し、撮像した像に対応する画像信号を出力する撮像部(22)と、位相差を用いて、前記光学系による像面のずれ量を検出することで、前記光学系の焦点状態を検出する位相差検出部(222a,222b)と、前記撮像部により出力された前記画像信号に基づいて、前記光学系による像のコントラストに関する評価値を算出することで、前記光学系の焦点状態を検出するコントラスト検出部(221)と、前記位相差検出部による焦点状態の検出に用いられ、検出可能な周波数帯域の異なる複数のフィルタを記憶する記憶部(21)と、撮影シーンを判定するシーン判定部(21)と、前記光学系の光軸方向に、前記焦点調節光学系(32)を駆動させる駆動部(36)と、前記駆動部を制御することで、前記焦点調節光学系の駆動を制御する制御部(21)と、を備え、前記位相差検出部は、位相差を用いて、前記光学系による像面のずれ量に対応する像ずれ信号を取得し、前記記憶部に記憶された前記複数のフィルタを用いて、前記取得した像ずれ信号をフィルタ処理し、前記複数のフィルタで処理された複数のフィルタ処理信号を算出した後、前記複数のフィルタ処理信号の算出に用いた複数のフィルタのうち、前記取得した像ずれ信号に適した周波数帯域を検出可能なフィルタを選択し、前記複数のフィルタ処理信号のうち、前記選択されたフィルタを用いて得られたフィルタ処理信号に基づいて、前記ずれ量を検出し、前記制御部は、前記位相差検出部に前記光学系の焦点状態の検出を行わせた結果、前記位相差検出部により選択されたフィルタの検出可能な周波数帯域が、前記シーン判定部により判定された撮影シーンに対応する特定周波数帯域と異なる周波数帯域であるか否かの判定を行ない、前記選択されたフィルタの周波数帯域が、前記特定周波数帯域と異なる周波数帯域である場合には、前記駆動部に、前記焦点調節光学系を所定の方向に駆動させながら、前記位相差検出部および前記コントラスト検出部に前記光学系の焦点状態の検出を行わせるスキャン駆動を実行することを特徴とする。   [1] A focus detection apparatus according to a first aspect of the present invention captures an image by an optical system (31, 32, 33) having a focus adjustment optical system, and outputs an image signal corresponding to the captured image. A phase difference detection unit (222a, 222b) for detecting a focal state of the optical system by detecting a shift amount of an image plane by the optical system using a phase difference (22), and the imaging unit; The contrast detection unit (221) for detecting the focus state of the optical system by calculating an evaluation value related to the contrast of the image by the optical system based on the image signal output by the optical system, and the phase difference detection unit A storage unit (21) for storing a plurality of filters having different frequency bands that can be detected and used for detection of a focus state, a scene determination unit (21) for determining a shooting scene, and an optical axis direction of the optical system, The focus A drive unit (36) for driving the moderating optical system (32); and a control unit (21) for controlling the drive of the focus adjustment optical system by controlling the drive unit, and the phase difference detection unit Acquires an image shift signal corresponding to an image plane shift amount by the optical system using a phase difference, and filters the acquired image shift signal using the plurality of filters stored in the storage unit. After processing and calculating a plurality of filter processing signals processed by the plurality of filters, out of a plurality of filters used for calculation of the plurality of filter processing signals, a frequency band suitable for the acquired image shift signal is selected. A detectable filter is selected, the amount of deviation is detected based on a filter processing signal obtained using the selected filter among the plurality of filter processing signals, and the control unit is configured to detect the phase difference. Detection unit As a result of detecting the focus state of the optical system, the frequency band that can be detected by the filter selected by the phase difference detection unit is a specific frequency band corresponding to the shooting scene determined by the scene determination unit. It is determined whether or not the frequency band is different, and when the frequency band of the selected filter is a frequency band different from the specific frequency band, the focus adjustment optical system is provided in the drive unit with a predetermined frequency band. While driving in the direction, scan driving is performed to cause the phase difference detection unit and the contrast detection unit to detect the focus state of the optical system.

[2]本発明の第二の観点に係る焦点検出装置は、焦点調節光学系を有する光学系(31,32,33)による像を撮像し、撮像した像に対応する画像信号を出力する撮像部(22)と、位相差を用いて、前記光学系による像面のずれ量を検出することで、前記光学系の焦点状態を検出する位相差検出部(222a,222b)と、前記撮像部により出力された前記画像信号に基づいて、前記光学系による像のコントラストに関する評価値を算出することで、前記光学系の焦点状態を検出するコントラスト検出部(221)と、前記位相差検出部による焦点状態の検出に用いられ、検出可能な周波数帯域の異なる複数のフィルタを記憶する記憶部(21)と、撮影シーンを判定するシーン判定部(21)と、前記光学系の光軸方向に、前記焦点調節光学系(32)を駆動させる駆動部(36)と、前記駆動部を制御することで、前記焦点調節光学系の駆動を制御する制御部(21)と、を備え、前記位相差検出部は、位相差を用いて、前記光学系による像面のずれ量に対応する像ずれ信号を取得し、前記複数のフィルタのうち、前記像ずれ信号に適した周波数帯域を検出可能なフィルタを選択し、前記選択されたフィルタにより前記取得した像ずれ信号をフィルタ処理することにより得られたフィルタ処理信号に基づいて、前記ずれ量を検出し、前記制御部は、前記位相差検出部に前記光学系の焦点状態の検出を行わせた結果、前記位相差検出部により選択されたフィルタの検出可能な周波数帯域が、前記シーン判定部により判定された撮影シーンに対応する特定周波数帯域と異なる周波数帯域であるか否かの判定を行ない、前記選択されたフィルタの周波数帯域が、前記特定周波数帯域と異なる周波数帯域である場合には、前記駆動部に、前記焦点調節光学系を所定の方向に駆動させながら、前記位相差検出部および前記コントラスト検出部に前記光学系の焦点状態の検出を行わせるスキャン駆動を実行することを特徴とする。   [2] A focus detection apparatus according to the second aspect of the present invention captures an image by an optical system (31, 32, 33) having a focus adjustment optical system, and outputs an image signal corresponding to the captured image. A phase difference detection unit (222a, 222b) for detecting a focal state of the optical system by detecting a shift amount of an image plane by the optical system using a phase difference (22), and the imaging unit; The contrast detection unit (221) for detecting the focus state of the optical system by calculating an evaluation value related to the contrast of the image by the optical system based on the image signal output by the optical system, and the phase difference detection unit A storage unit (21) for storing a plurality of filters having different frequency bands that can be detected and used for detection of a focus state, a scene determination unit (21) for determining a shooting scene, and an optical axis direction of the optical system, The focus A drive unit (36) for driving the moderating optical system (32); and a control unit (21) for controlling the drive of the focus adjustment optical system by controlling the drive unit, and the phase difference detection unit Acquires an image shift signal corresponding to an image plane shift amount by the optical system using a phase difference, and selects a filter capable of detecting a frequency band suitable for the image shift signal from the plurality of filters. The shift amount is detected based on a filter processing signal obtained by filtering the acquired image shift signal with the selected filter, and the control unit supplies the optical signal to the phase difference detection unit. As a result of detecting the focus state of the system, the frequency band that can be detected by the filter selected by the phase difference detection unit differs from the specific frequency band corresponding to the shooting scene determined by the scene determination unit. Whether the frequency band of the selected filter is a frequency band different from the specific frequency band is determined whether or not it is a wave number band. While being driven, the phase difference detection unit and the contrast detection unit perform scan driving for detecting the focus state of the optical system.

[3]本発明の第三の観点に係る焦点検出装置は、焦点調節光学系を有する光学系(31,32,33)による像を撮像し、撮像した像に対応する画像信号を出力する撮像部(22)と、位相差を用いて、前記光学系による像面のずれ量を検出することで、前記光学系の焦点状態を検出する位相差検出部(222a,222b)と、前記位相差検出部による焦点状態の検出に用いられ、検出可能な周波数帯域の異なる複数のフィルタを記憶する記憶部(21)と、撮影シーンを判定するシーン判定部(21)と、前記光学系の光軸方向に、前記焦点調節光学系(32)を駆動させる駆動部(36)と、前記駆動部を制御することで、前記焦点調節光学系の駆動を制御する制御部(21)と、を備え、前記位相差検出部は、位相差を用いて、前記光学系による像面のずれ量に対応する像ずれ信号を取得し、前記記憶部に記憶された前記複数のフィルタを用いて、前記取得した像ずれ信号をフィルタ処理し、前記複数のフィルタで処理された複数のフィルタ処理信号を算出した後、前記複数のフィルタ処理信号の算出に用いた複数のフィルタのうち、前記取得した像ずれ信号に適した周波数帯域を検出可能なフィルタを選択し、前記複数のフィルタ処理信号のうち、前記選択されたフィルタを用いて得られたフィルタ処理信号に基づいて、前記ずれ量を検出し、前記制御部は、前記位相差検出部に前記光学系の焦点状態の検出を行わせた結果、前記位相差検出部により選択されたフィルタの検出可能な周波数帯域が、前記シーン判定部により判定された撮影シーンに対応する特定周波数帯域と異なる周波数帯域であるか否かの判定を行ない、前記選択されたフィルタの周波数帯域が、前記特定周波数帯域と異なる周波数帯域である場合には、前記位相差検出部により検出された前記ずれ量に基づく制御を禁止することを特徴とする。   [3] A focus detection apparatus according to a third aspect of the present invention captures an image by an optical system (31, 32, 33) having a focus adjustment optical system, and outputs an image signal corresponding to the captured image. A phase difference detection unit (222a, 222b) that detects a focal state of the optical system by detecting a shift amount of the image plane by the optical system using the unit (22), and the phase difference; and the phase difference A storage unit (21) for storing a plurality of filters having different frequency bands that can be detected and used for detection of a focus state by the detection unit, a scene determination unit (21) for determining a shooting scene, and an optical axis of the optical system A drive unit (36) for driving the focus adjustment optical system (32) in a direction, and a control unit (21) for controlling the drive of the focus adjustment optical system by controlling the drive unit; The phase difference detection unit uses the phase difference, and An image shift signal corresponding to an image plane shift amount by an academic system is acquired, and the acquired image shift signal is filtered using the plurality of filters stored in the storage unit, and processed by the plurality of filters. After calculating the plurality of filtered signals, a filter capable of detecting a frequency band suitable for the acquired image shift signal is selected from the plurality of filters used for calculating the plurality of filtered signals, The shift amount is detected based on a filter processing signal obtained by using the selected filter among a plurality of filter processing signals, and the control unit detects a focus state of the optical system in the phase difference detection unit. As a result of the detection, the frequency band that can be detected by the filter selected by the phase difference detection unit is a specific frequency band corresponding to the shooting scene determined by the scene determination unit If the frequency band of the selected filter is a frequency band different from the specific frequency band, the deviation amount detected by the phase difference detection unit is determined. The control based on is prohibited.

[4]本発明の第四の観点に係る焦点検出装置は、焦点調節光学系を有する光学系(31,32,33)による像を撮像し、撮像した像に対応する画像信号を出力する撮像部(22)と、位相差を用いて、前記光学系による像面のずれ量を検出することで、前記光学系の焦点状態を検出する位相差検出部(222a,222b)と、前記位相差検出部による焦点状態の検出に用いられ、検出可能な周波数帯域の異なる複数のフィルタを記憶する記憶部(21)と、撮影シーンを判定するシーン判定部(21)と、前記光学系の光軸方向に、前記焦点調節光学系(32)を駆動させる駆動部(36)と、前記駆動部を制御することで、前記焦点調節光学系の駆動を制御する制御部(21)と、を備え、前記位相差検出部は、位相差を用いて、前記光学系による像面のずれ量に対応する像ずれ信号を取得し、前記複数のフィルタのうち、前記像ずれ信号に適した周波数帯域を検出可能なフィルタを選択し、前記選択されたフィルタにより前記取得した像ずれ信号をフィルタ処理することにより得られたフィルタ処理信号に基づいて、前記ずれ量を検出し、前記制御部は、前記位相差検出部に前記光学系の焦点状態の検出を行わせた結果、前記位相差検出部により選択されたフィルタの検出可能な周波数帯域が、前記シーン判定部により判定された撮影シーンに対応する特定周波数帯域と異なる周波数帯域であるか否かの判定を行ない、前記選択されたフィルタの周波数帯域が、前記特定周波数帯域と異なる周波数帯域である場合には、前記位相差検出部により検出された前記ずれ量に基づく制御を禁止することを特徴とする焦点検出装置。   [4] A focus detection apparatus according to a fourth aspect of the present invention captures an image by an optical system (31, 32, 33) having a focus adjustment optical system, and outputs an image signal corresponding to the captured image. A phase difference detection unit (222a, 222b) that detects a focal state of the optical system by detecting a shift amount of the image plane by the optical system using the unit (22), and the phase difference; and the phase difference A storage unit (21) for storing a plurality of filters having different frequency bands that can be detected and used for detection of a focus state by the detection unit, a scene determination unit (21) for determining a shooting scene, and an optical axis of the optical system A drive unit (36) for driving the focus adjustment optical system (32) in a direction, and a control unit (21) for controlling the drive of the focus adjustment optical system by controlling the drive unit; The phase difference detection unit uses the phase difference, and An image shift signal corresponding to an image plane shift amount by an academic system is acquired, a filter capable of detecting a frequency band suitable for the image shift signal is selected from the plurality of filters, and the filter is used to select the filter. The control unit detects the shift amount based on the filter processing signal obtained by filtering the acquired image shift signal, and the control unit causes the phase difference detection unit to detect the focus state of the optical system. As a result, it is determined whether or not the frequency band detectable by the filter selected by the phase difference detection unit is a frequency band different from the specific frequency band corresponding to the shooting scene determined by the scene determination unit. When the frequency band of the selected filter is a frequency band different from the specific frequency band, it is based on the deviation amount detected by the phase difference detection unit. A focus detection device that prohibits control.

[5]本発明の第一〜第四の観点に係る焦点検出装置において、前記制御部(21)が、前記位相差検出部(222a,222b)により選択されたフィルタの周波数帯域が、前記特定周波数帯域内にある場合には、前記駆動部(36)に、前記位相差検出部により検出されたずれ量に基づいて、前記焦点調節光学系(32)の駆動を行なわせるように構成することができる。   [5] In the focus detection apparatus according to the first to fourth aspects of the present invention, the frequency band of the filter selected by the control unit (21) by the phase difference detection units (222a, 222b) is the specified When in the frequency band, the drive unit (36) is configured to drive the focus adjustment optical system (32) based on the shift amount detected by the phase difference detection unit. Can do.

[6]本発明の第一〜第四の観点に係る焦点検出装置において、前記シーン判定部(21)が、操作部材を介してユーザにより設定されたシーン、または、前記撮像部により撮像された撮像画像に基づいて、撮影シーンの判定を行なうように構成することができる。   [6] In the focus detection apparatus according to the first to fourth aspects of the present invention, the scene determination unit (21) is imaged by a scene set by a user via an operation member or by the imaging unit It can be configured to determine the shooting scene based on the captured image.

[7]本発明の第一〜第四の観点に係る焦点検出装置において、前記制御部(21)が、前記シーン判定部(21)により撮影シーンが人物の顔を撮影するシーンであると判定された場合には、前記特定周波数帯域を、所定の第1閾値以上の周波数帯域に設定するように構成することができる。   [7] In the focus detection apparatus according to the first to fourth aspects of the present invention, the control unit (21) determines that the shooting scene is a scene in which a human face is shot by the scene determination unit (21). In such a case, the specific frequency band can be set to a frequency band equal to or higher than a predetermined first threshold.

[8]本発明の第一〜第四の観点に係る焦点検出装置において、前記制御部(21)が、前記シーン判定部(21)により撮影シーンが、人物の顔を撮影するシーンであると判定された場合には、前記特定周波数帯域を、所定の第1閾値以上の周波数帯域に設定し、前記シーン判定部により撮影シーンが、マクロ撮影するシーンまたは風景を撮影するシーンであると判定された場合には、前記特定周波数帯域を、前記第1閾値よりも高い所定の第2閾値以上の周波数帯域に設定するように構成することができる。   [8] In the focus detection apparatus according to the first to fourth aspects of the present invention, when the control unit (21) captures a human face by the scene determination unit (21). If it is determined, the specific frequency band is set to a frequency band equal to or higher than a predetermined first threshold, and the scene determination unit determines that the shooting scene is a macro shooting scene or a scene shooting scene. In this case, the specific frequency band can be set to a frequency band equal to or higher than a predetermined second threshold value that is higher than the first threshold value.

[9]本発明の第一〜第四の観点に係る焦点検出装置において、前記位相差検出部(222a,222b)が、撮影画面内に設定された複数の焦点検出位置のそれぞれについて、前記ずれ量の検出を行い、前記制御部(21)は、前記複数の検出位置のそれぞれについて検出された複数の前記ずれ量のうち、前記特定周波数帯域と異なる周波数帯域を検出可能なフィルタを用いて検出されたずれ量を除外して、前記位相差検出部に前記光学系の焦点状態の検出を行わせるように構成することができる。   [9] In the focus detection apparatus according to the first to fourth aspects of the present invention, the phase difference detection unit (222a, 222b) is configured to shift the shift with respect to each of a plurality of focus detection positions set in a shooting screen. The amount is detected, and the control unit (21) uses a filter capable of detecting a frequency band different from the specific frequency band among the plurality of deviation amounts detected for each of the plurality of detection positions. The phase difference detection unit can be configured to detect the focus state of the optical system by excluding the shifted amount.

[10]本発明の第五の観点に係る焦点検出装置は、焦点調節光学系を有する光学系(31,32,33)による像を撮像し、撮像した像に対応する画像信号を出力する撮像部(22)と、位相差を用いて、前記光学系による像面のずれ量を検出することで、前記光学系の焦点状態を検出する位相差検出部(222a,222b)と、前記撮像部により出力された前記画像信号に基づいて、前記光学系による像のコントラストに関する評価値を算出することで、前記光学系の焦点状態を検出するコントラスト検出部(221)と、前記位相差検出部による焦点状態の検出に用いられ、検出可能な周波数帯域の異なる複数のフィルタを記憶する記憶部(21)と、前記光学系の光軸方向に、前記焦点調節光学系(32)を駆動させる駆動部(326)と、前記駆動部を制御することで、前記焦点調節光学系の駆動を制御する制御部と(21)、を備え、前記位相差検出部は、位相差を用いて、前記光学系による像面のずれ量に対応する像ずれ信号を取得し、前記記憶部に記憶された前記複数のフィルタを用いて、前記取得した像ずれ信号をフィルタ処理し、前記複数のフィルタで処理された複数のフィルタ処理信号を算出した後、前記複数のフィルタ処理信号の算出に用いた複数のフィルタのうち、前記取得した像ずれ信号に適した周波数帯域を検出可能なフィルタを選択し、前記複数のフィルタ処理信号のうち、前記選択されたフィルタを用いて得られたフィルタ処理信号に基づいて、前記ずれ量を検出し、前記制御部は、前記位相差検出部に前記光学系の焦点状態の検出を行わせた結果、前記位相差検出部により検出されたずれ量が、所定値以上であり、かつ、前記位相差検出部により選択されたフィルタの検出可能な周波数帯域が、所定の特定周波数帯域よりも高い周波数帯域であるか否かの判定を行ない、前記ずれ量が前記所定値以上であり、かつ、前記選択されたフィルタの検出可能な周波数帯域が、前記特定周波数帯域よりも高い周波数帯域である場合には、前記駆動部に、前記焦点調節光学系を所定の方向に駆動させながら、前記位相差検出部および前記コントラスト検出部に前記光学系の焦点状態の検出を行わせるスキャン駆動を実行することを特徴とする。   [10] A focus detection apparatus according to a fifth aspect of the present invention captures an image by an optical system (31, 32, 33) having a focus adjustment optical system and outputs an image signal corresponding to the captured image. A phase difference detection unit (222a, 222b) for detecting a focal state of the optical system by detecting a shift amount of an image plane by the optical system using a phase difference (22), and the imaging unit; The contrast detection unit (221) for detecting the focus state of the optical system by calculating an evaluation value related to the contrast of the image by the optical system based on the image signal output by the optical system, and the phase difference detection unit A storage unit (21) used for detecting a focus state and storing a plurality of filters having different detectable frequency bands, and a drive unit for driving the focus adjustment optical system (32) in the optical axis direction of the optical system (32 ) And a control unit (21) for controlling the driving of the focus adjusting optical system by controlling the driving unit, and the phase difference detecting unit uses the phase difference to generate an image by the optical system. An image shift signal corresponding to a surface shift amount is acquired, the acquired image shift signals are filtered using the plurality of filters stored in the storage unit, and a plurality of filters processed by the plurality of filters are processed. After calculating the filter processing signal, a filter capable of detecting a frequency band suitable for the acquired image shift signal is selected from the plurality of filters used for calculating the plurality of filter processing signals, and the plurality of filter processing Based on the filter processing signal obtained using the selected filter among the signals, the shift amount is detected, and the control unit detects the focus state of the optical system in the phase difference detection unit. Let it come As a result, the amount of deviation detected by the phase difference detection unit is equal to or greater than a predetermined value, and the frequency band that can be detected by the filter selected by the phase difference detection unit is higher than a predetermined specific frequency band. A determination is made as to whether or not the band is a band, and the amount of deviation is equal to or greater than the predetermined value, and the frequency band that can be detected by the selected filter is a frequency band higher than the specific frequency band. Performing a scan drive that causes the phase difference detection unit and the contrast detection unit to detect the focus state of the optical system while causing the drive unit to drive the focus adjustment optical system in a predetermined direction. Features.

[11]本発明の第六の観点に係る焦点検出装置は、焦点調節光学系を有する光学系(31,32,33)による像を撮像し、撮像した像に対応する画像信号を出力する撮像部(22)と、位相差を用いて、前記光学系による像面のずれ量を検出することで、前記光学系の焦点状態を検出する位相差検出部(222a,222b)と、前記撮像部により出力された前記画像信号に基づいて、前記光学系による像のコントラストに関する評価値を算出することで、前記光学系の焦点状態を検出するコントラスト検出部(221)と、前記位相差検出部による焦点状態の検出に用いられ、検出可能な周波数帯域の異なる複数のフィルタを記憶する記憶部(21)と、前記光学系の光軸方向に、前記焦点調節光学系(32)を駆動させる駆動部(326)と、前記駆動部を制御することで、前記焦点調節光学系の駆動を制御する制御部と(21)、を備え、前記位相差検出部は、位相差を用いて、前記光学系による像面のずれ量に対応する像ずれ信号を取得し、検出可能な周波数帯域の異なる複数のフィルタのうち、前記像ずれ信号に適した周波数帯域を検出可能なフィルタを選択し、前記選択されたフィルタにより前記取得した像ずれ信号をフィルタ処理することにより得られたフィルタ処理信号に基づいて、前記ずれ量を検出し、前記制御部は、前記位相差検出部に前記光学系の焦点状態の検出を行わせた結果、前記位相差検出部により検出されたずれ量が、所定値以上であり、かつ、前記位相差検出部により選択されたフィルタの検出可能な周波数帯域が、所定の特定周波数帯域よりも高い周波数帯域であるか否かの判定を行ない、前記ずれ量が前記所定値以上であり、かつ、前記選択されたフィルタの検出可能な周波数帯域が、前記特定周波数帯域よりも高い周波数帯域である場合には、前記駆動部に、前記焦点調節光学系を所定の方向に駆動させながら、前記位相差検出部および前記コントラスト検出部に前記光学系の焦点状態の検出を行わせるスキャン駆動を実行することを特徴とする。   [11] A focus detection apparatus according to a sixth aspect of the present invention captures an image by an optical system (31, 32, 33) having a focus adjustment optical system, and outputs an image signal corresponding to the captured image. A phase difference detection unit (222a, 222b) for detecting a focal state of the optical system by detecting a shift amount of an image plane by the optical system using a phase difference (22), and the imaging unit; The contrast detection unit (221) for detecting the focus state of the optical system by calculating an evaluation value related to the contrast of the image by the optical system based on the image signal output by the optical system, and the phase difference detection unit A storage unit (21) used for detecting a focus state and storing a plurality of filters having different detectable frequency bands, and a drive unit for driving the focus adjustment optical system (32) in the optical axis direction of the optical system (32 ) And a control unit (21) for controlling the driving of the focus adjusting optical system by controlling the driving unit, and the phase difference detecting unit uses the phase difference to generate an image by the optical system. An image shift signal corresponding to a surface shift amount is acquired, a filter capable of detecting a frequency band suitable for the image shift signal is selected from a plurality of filters having different detectable frequency bands, and the selected filter The control unit detects the shift amount based on the filter processing signal obtained by filtering the acquired image shift signal, and the control unit detects the focus state of the optical system in the phase difference detection unit. As a result, the amount of deviation detected by the phase difference detection unit is greater than or equal to a predetermined value, and the detectable frequency band of the filter selected by the phase difference detection unit is greater than a predetermined specific frequency band. Also It is determined whether or not the frequency band is a high frequency band, the deviation amount is equal to or greater than the predetermined value, and the frequency band detectable by the selected filter is a frequency band higher than the specific frequency band. In this case, scan driving is performed so that the phase difference detection unit and the contrast detection unit detect the focus state of the optical system while driving the focus adjustment optical system in a predetermined direction. It is characterized by that.

[12]本発明の第六の観点に係る焦点検出装置において、前記制御部(21)が、前記所定値を、前記光学系の絞り値に応じて設定するように構成することができる。   [12] In the focus detection apparatus according to the sixth aspect of the present invention, the control unit (21) may be configured to set the predetermined value according to an aperture value of the optical system.

[13]本発明の第一〜第六の観点に係る焦点検出装置において、前記位相差検出部(222a,222b)が、前記撮像部(22)の受光面に備えられているように構成することができる。   [13] In the focus detection apparatus according to the first to sixth aspects of the present invention, the phase difference detection unit (222a, 222b) is configured to be provided on the light receiving surface of the imaging unit (22). be able to.

[14]本発明に係る撮像装置は、上記焦点検出装置を備えることを特徴とする。   [14] An imaging apparatus according to the present invention includes the focus detection apparatus.

本発明によれば、光学系の焦点検出を適切に行なうことができる。   According to the present invention, focus detection of an optical system can be performed appropriately.

図1は、本実施形態に係るカメラを示すブロック図である。FIG. 1 is a block diagram showing a camera according to the present embodiment. 図2は、図1に示す撮像素子の撮像面を示す正面図である。FIG. 2 is a front view showing an imaging surface of the imaging device shown in FIG. 図3は、図2の焦点検出画素列22a付近を拡大して焦点検出画素222a,222bの配列を模式的に示す正面図である。FIG. 3 is a front view schematically showing the arrangement of the focus detection pixels 222a and 222b by enlarging the vicinity of the focus detection pixel row 22a of FIG. 図4は、撮像画素221の一つを拡大して示す正面図である。FIG. 4 is an enlarged front view showing one of the imaging pixels 221. 図5(A)は、焦点検出画素222aの一つを拡大して示す正面図、図5(B)は、焦点検出画素222bの一つを拡大して示す正面図である。FIG. 5A is an enlarged front view showing one of the focus detection pixels 222a, and FIG. 5B is an enlarged front view showing one of the focus detection pixels 222b. 図6は、撮像画素221の一つを拡大して示す断面図である。FIG. 6 is an enlarged cross-sectional view showing one of the imaging pixels 221. 図7(A)は、焦点検出画素222aの一つを拡大して示す断面図、図7(B)は、焦点検出画素222bの一つを拡大して示す断面図である。FIG. 7A is an enlarged cross-sectional view showing one of the focus detection pixels 222a, and FIG. 7B is an enlarged cross-sectional view showing one of the focus detection pixels 222b. 図8は、焦点検出画素222a,222bの大きさを説明するための図である。FIG. 8 is a diagram for explaining the sizes of the focus detection pixels 222a and 222b. 図9は、従来の位相差検出モジュールに備えられているラインセンサを構成する各画素の大きさを説明するための図である。FIG. 9 is a diagram for explaining the size of each pixel constituting the line sensor provided in the conventional phase difference detection module. 図10は、図3のX-X線に沿う断面図である。10 is a cross-sectional view taken along line XX of FIG. 図11は、本実施形態に係るカメラの動作を示すフローチャートある。FIG. 11 is a flowchart showing the operation of the camera according to the present embodiment. 図12は、本実施形態に係るサーチ動作における、フォーカスレンズ位置と焦点評価値との関係、およびフォーカスレンズ位置と時間との関係を示す図である。FIG. 12 is a diagram illustrating the relationship between the focus lens position and the focus evaluation value and the relationship between the focus lens position and time in the search operation according to the present embodiment.

以下、本発明の実施形態を図面に基づいて説明する。   Hereinafter, embodiments of the present invention will be described with reference to the drawings.

図1は、本発明の実施形態に係るデジタルカメラ1を示す要部構成図である。本実施形態のデジタルカメラ1(以下、単にカメラ1という。)は、カメラ本体2とレンズ鏡筒3から構成され、これらカメラ本体2とレンズ鏡筒3はマウント部4により着脱可能に結合されている。   FIG. 1 is a main part configuration diagram showing a digital camera 1 according to an embodiment of the present invention. A digital camera 1 according to the present embodiment (hereinafter simply referred to as a camera 1) includes a camera body 2 and a lens barrel 3, and the camera body 2 and the lens barrel 3 are detachably coupled by a mount unit 4. Yes.

レンズ鏡筒3は、カメラ本体2に着脱可能な交換レンズである。図1に示すように、レンズ鏡筒3には、レンズ31,32,33、および絞り34を含む撮影光学系が内蔵されている。   The lens barrel 3 is an interchangeable lens that can be attached to and detached from the camera body 2. As shown in FIG. 1, the lens barrel 3 includes a photographic optical system including lenses 31, 32, 33 and a diaphragm 34.

レンズ32は、フォーカスレンズであり、光軸L1方向に移動することで、撮影光学系の焦点距離を調節可能となっている。フォーカスレンズ32は、レンズ鏡筒3の光軸L1に沿って移動可能に設けられ、エンコーダ35によってその位置が検出されつつフォーカスレンズ駆動モータ36によってその位置が調節される。   The lens 32 is a focus lens, and can adjust the focal length of the photographing optical system by moving in the direction of the optical axis L1. The focus lens 32 is provided so as to be movable along the optical axis L1 of the lens barrel 3, and its position is adjusted by the focus lens drive motor 36 while its position is detected by the encoder 35.

このフォーカスレンズ32の光軸L1に沿う移動機構の具体的構成は特に限定されない。一例を挙げれば、レンズ鏡筒3に固定された固定筒に回転可能に回転筒を挿入し、この回転筒の内周面にヘリコイド溝(螺旋溝)を形成するとともに、フォーカスレンズ32を固定するレンズ枠の端部をヘリコイド溝に嵌合させる。そして、フォーカスレンズ駆動モータ36によって回転筒を回転させることで、レンズ枠に固定されたフォーカスレンズ32が光軸L1に沿って直進移動することになる。   The specific configuration of the moving mechanism along the optical axis L1 of the focus lens 32 is not particularly limited. For example, a rotating cylinder is rotatably inserted into a fixed cylinder fixed to the lens barrel 3, a helicoid groove (spiral groove) is formed on the inner peripheral surface of the rotating cylinder, and the focus lens 32 is fixed. The end of the lens frame is fitted into the helicoid groove. Then, by rotating the rotating cylinder by the focus lens drive motor 36, the focus lens 32 fixed to the lens frame moves straight along the optical axis L1.

上述したようにレンズ鏡筒3に対して回転筒を回転させることによりレンズ枠に固定されたフォーカスレンズ32は光軸L1方向に直進移動するが、その駆動源としてのフォーカスレンズ駆動モータ36がレンズ鏡筒3に設けられている。フォーカスレンズ駆動モータ36と回転筒とは、たとえば複数の歯車からなる変速機で連結され、フォーカスレンズ駆動モータ36の駆動軸を何れか一方向へ回転駆動すると所定のギヤ比で回転筒に伝達され、そして、回転筒が何れか一方向へ回転することで、レンズ枠に固定されたフォーカスレンズ32が光軸L1の何れかの方向へ直進移動することになる。なお、フォーカスレンズ駆動モータ36の駆動軸が逆方向に回転駆動すると、変速機を構成する複数の歯車も逆方向に回転し、フォーカスレンズ32は光軸L1の逆方向へ直進移動することになる。   As described above, the focus lens 32 fixed to the lens frame by rotating the rotary cylinder with respect to the lens barrel 3 moves straight in the direction of the optical axis L1, but the focus lens drive motor 36 as the drive source is the lens. The lens barrel 3 is provided. The focus lens drive motor 36 and the rotary cylinder are connected by a transmission composed of a plurality of gears, for example, and when the drive shaft of the focus lens drive motor 36 is driven to rotate in any one direction, it is transmitted to the rotary cylinder at a predetermined gear ratio. Then, when the rotating cylinder rotates in any one direction, the focus lens 32 fixed to the lens frame moves linearly in any direction of the optical axis L1. When the drive shaft of the focus lens drive motor 36 is rotated in the reverse direction, the plurality of gears constituting the transmission also rotate in the reverse direction, and the focus lens 32 moves straight in the reverse direction of the optical axis L1. .

フォーカスレンズ32の位置はエンコーダ35によって検出される。既述したとおり、フォーカスレンズ32の光軸L1方向の位置は回転筒の回転角に相関するので、たとえばレンズ鏡筒3に対する回転筒の相対的な回転角を検出すれば求めることができる。   The position of the focus lens 32 is detected by the encoder 35. As described above, the position of the focus lens 32 in the optical axis L1 direction correlates with the rotation angle of the rotating cylinder, and can be obtained by detecting the relative rotation angle of the rotating cylinder with respect to the lens barrel 3, for example.

本実施形態のエンコーダ35としては、回転筒の回転駆動に連結された回転円板の回転をフォトインタラプタなどの光センサで検出して、回転数に応じたパルス信号を出力するものや、固定筒と回転筒の何れか一方に設けられたフレキシブルプリント配線板の表面のエンコーダパターンに、何れか他方に設けられたブラシ接点を接触させ、回転筒の移動量(回転方向でも光軸方向の何れでもよい)に応じた接触位置の変化を検出回路で検出するものなどを用いることができる。   As the encoder 35 of this embodiment, an encoder that detects the rotation of a rotating disk coupled to the rotational drive of the rotating cylinder with an optical sensor such as a photo interrupter and outputs a pulse signal corresponding to the number of rotations, or a fixed cylinder And the contact point of the brush on the surface of the flexible printed wiring board provided on either one of the rotating cylinders, and the brush contact provided on the other, the amount of movement of the rotating cylinder (in either the rotational direction or the optical axis direction) A device that detects a change in the contact position according to the detection circuit using a detection circuit can be used.

フォーカスレンズ32は、上述した回転筒の回転によってカメラボディ側の端部(至近端ともいう)から被写体側の端部(無限端ともいう)までの間を光軸L1方向に移動することができる。ちなみに、エンコーダ35で検出されたフォーカスレンズ32の現在位置情報は、レンズ制御部37を介して後述するカメラ制御部21へ送出され、フォーカスレンズ駆動モータ36は、この情報に基づいて演算されたフォーカスレンズ32の駆動位置が、カメラ制御部21からレンズ制御部37を介して送出されることにより駆動する。   The focus lens 32 can move in the direction of the optical axis L1 from the end on the camera body side (also referred to as the closest end) to the end on the subject side (also referred to as the infinite end) by the rotation of the rotating cylinder described above. it can. Incidentally, the current position information of the focus lens 32 detected by the encoder 35 is sent to the camera control unit 21 to be described later via the lens control unit 37, and the focus lens drive motor 36 calculates the focus calculated based on this information. The driving position of the lens 32 is driven by being sent from the camera control unit 21 via the lens control unit 37.

絞り34は、上記撮影光学系を通過して撮像素子22に至る光束の光量を制限するとともにボケ量を調整するために、光軸L1を中心にした開口径が調節可能に構成されている。絞り34による開口径の調節は、たとえば自動露出モードにおいて演算された適切な開口径が、カメラ制御部21からレンズ制御部37を介して送出されることにより行われる。また、カメラ本体2に設けられた操作部28によるマニュアル操作により、設定された開口径がカメラ制御部21からレンズ制御部37に入力される。絞り34の開口径は図示しない絞り開口センサにより検出され、レンズ制御部37で現在の開口径が認識される。   The diaphragm 34 is configured such that the aperture diameter around the optical axis L1 can be adjusted in order to limit the amount of light flux that passes through the photographing optical system and reaches the image sensor 22 and to adjust the blur amount. The adjustment of the aperture diameter by the diaphragm 34 is performed, for example, by sending an appropriate aperture diameter calculated in the automatic exposure mode from the camera control unit 21 via the lens control unit 37. Further, the set aperture diameter is input from the camera control unit 21 to the lens control unit 37 by a manual operation by the operation unit 28 provided in the camera body 2. The aperture diameter of the aperture 34 is detected by an aperture sensor (not shown), and the lens controller 37 recognizes the current aperture diameter.

レンズ制御部37は、カメラ制御部21とマウント部4に設けられた電気信号接点部41により電気的に接続され、カメラ制御部21からの指令に基づき、フォーカスレンズ32の駆動、絞り34による開口径の調節などを行なうとともに、フォーカスレンズ32の位置、絞り34の開口径などのレンズ情報をカメラ制御部21に送信する。   The lens control unit 37 is electrically connected to the camera control unit 21 by an electric signal contact unit 41 provided on the mount unit 4, and is driven by the focus lens 32 and opened by the diaphragm 34 based on a command from the camera control unit 21. In addition to adjusting the aperture, lens information such as the position of the focus lens 32 and the aperture diameter of the diaphragm 34 is transmitted to the camera control unit 21.

一方、カメラ本体2には、上記撮影光学系からの光束L1を受光する撮像素子22が、撮影光学系の予定焦点面に設けられ、その前面にシャッター23が設けられている。撮像素子22はCCDやCMOSなどのデバイスから構成され、受光した光信号を電気信号に変換してカメラ制御部21に送出する。カメラ制御部21に送出された撮影画像情報は、逐次、液晶駆動回路25に送出されて観察光学系の電子ビューファインダ(EVF)26に表示されるとともに、操作部28に備えられたレリーズボタン(不図示)が全押しされた場合には、その撮影画像情報が、記録媒体であるカメラメモリ24に記録される。なお、カメラメモリ24は着脱可能なカード型メモリや内蔵型メモリの何れをも用いることができる。撮像素子22の構造の詳細は後述する。   On the other hand, the camera body 2 is provided with an imaging element 22 that receives the light beam L1 from the photographing optical system on a planned focal plane of the photographing optical system, and a shutter 23 is provided on the front surface thereof. The image sensor 22 is composed of a device such as a CCD or CMOS, converts the received optical signal into an electrical signal, and sends it to the camera control unit 21. The captured image information sent to the camera control unit 21 is sequentially sent to the liquid crystal drive circuit 25 and displayed on the electronic viewfinder (EVF) 26 of the observation optical system, and a release button ( When (not shown) is fully pressed, the photographed image information is recorded in the camera memory 24 which is a recording medium. The camera memory 24 can be either a removable card type memory or a built-in memory. Details of the structure of the image sensor 22 will be described later.

カメラ本体2には、撮像素子22で撮像される像を観察するための観察光学系が設けられている。本実施形態の観察光学系は、液晶表示素子からなる電子ビューファインダ(EVF)26と、これを駆動する液晶駆動回路25と、接眼レンズ27とを備えている。液晶駆動回路25は、撮像素子22で撮像され、カメラ制御部21へ送出された撮影画像情報を読み込み、これに基づいて電子ビューファインダ26を駆動する。これにより、ユーザは、接眼レンズ27を通して現在の撮影画像を観察することができる。なお、光軸L2による上記観察光学系に代えて、または、これに加えて、液晶ディスプレイをカメラ本体2の背面等に設け、この液晶ディスプレイに撮影画像を表示させることもできる。   The camera body 2 is provided with an observation optical system for observing an image picked up by the image pickup device 22. The observation optical system of the present embodiment includes an electronic viewfinder (EVF) 26 composed of a liquid crystal display element, a liquid crystal driving circuit 25 that drives the electronic viewfinder (EVF) 26, and an eyepiece lens 27. The liquid crystal drive circuit 25 reads the captured image information captured by the image sensor 22 and sent to the camera control unit 21, and drives the electronic viewfinder 26 based on the read image information. Thereby, the user can observe the current captured image through the eyepiece lens 27. Note that, instead of or in addition to the observation optical system using the optical axis L2, a liquid crystal display may be provided on the back surface of the camera body 2, and a photographed image may be displayed on the liquid crystal display.

カメラ本体2にはカメラ制御部21が設けられている。カメラ制御部21は、マウント部4に設けられた電気信号接点部41によりレンズ制御部37と電気的に接続され、このレンズ制御部37からレンズ情報を受信するとともに、レンズ制御部37へデフォーカス量や絞り開口径などの情報を送信する。また、カメラ制御部21は、上述したように撮像素子22から画素出力を読み出すとともに、読み出した画素出力について、必要に応じて所定の情報処理を施すことにより画像情報を生成し、生成した画像情報を、電子ビューファインダ26の液晶駆動回路25やカメラメモリ24に出力する。また、カメラ制御部21は、撮像素子22からの画像情報の補正やレンズ鏡筒3の焦点調節状態、絞り調節状態などを検出するなど、カメラ1全体の制御を司る。   A camera control unit 21 is provided in the camera body 2. The camera control unit 21 is electrically connected to the lens control unit 37 through an electric signal contact unit 41 provided in the mount unit 4, receives lens information from the lens control unit 37, and defocuses to the lens control unit 37. Send information such as volume and aperture diameter. The camera control unit 21 reads out the pixel output from the image sensor 22 as described above, generates image information by performing predetermined information processing on the read out pixel output as necessary, and generates the generated image information. Are output to the liquid crystal drive circuit 25 and the camera memory 24 of the electronic viewfinder 26. The camera control unit 21 controls the entire camera 1 such as correction of image information from the image sensor 22 and detection of a focus adjustment state and an aperture adjustment state of the lens barrel 3.

また、カメラ制御部21は、上記に加えて、撮像素子22から読み出した画素データに基づき、位相検出方式による撮影光学系の焦点状態の検出、およびコントラスト検出方式による撮影光学系の焦点状態の検出を行う。なお、具体的な焦点状態の検出方法については、後述する。   In addition to the above, the camera control unit 21 detects the focus state of the photographic optical system by the phase detection method and the focus state of the photographic optical system by the contrast detection method based on the pixel data read from the image sensor 22. I do. A specific focus state detection method will be described later.

操作部28は、シャッターレリーズボタンや、動画撮影開始スイッチなどの撮影者がカメラ1の各種動作モードを設定するための入力スイッチであり、オートフォーカスモード/マニュアルフォーカスモードの切換や、オードフォーカスモードの中でも、ワンショットモード/コンティニュアスモードの切換が行えるようになっている。また、これに加えて、操作部28は、撮影モードの選択も可能となっており、具体的には、人物の顔を撮影するための人物撮影モードや、マクロ撮影するためのマクロ撮影モード、あるいは風景を撮影するための風景撮影モードなどの選択が可能となっている。この操作部28により設定された各種モードはカメラ制御部21へ送出され、当該カメラ制御部21によりカメラ1全体の動作が制御される。また、シャッターレリーズボタンは、ボタンの半押しでONとなる第1スイッチSW1と、ボタンの全押しでONとなる第2スイッチSW2とを含む。   The operation unit 28 is an input switch for a photographer to set various operation modes of the camera 1 such as a shutter release button and a moving image shooting start switch. The operation unit 28 switches between an auto focus mode / manual focus mode and an auto focus mode. In particular, the one-shot mode / continuous mode can be switched. In addition to this, the operation unit 28 can also select a shooting mode. Specifically, a person shooting mode for shooting a person's face, a macro shooting mode for macro shooting, Alternatively, it is possible to select a landscape shooting mode for shooting a landscape. Various modes set by the operation unit 28 are sent to the camera control unit 21, and the operation of the entire camera 1 is controlled by the camera control unit 21. The shutter release button includes a first switch SW1 that is turned on when the button is half-pressed and a second switch SW2 that is turned on when the button is fully pressed.

次に、本実施形態に係る撮像素子22について説明する。   Next, the image sensor 22 according to the present embodiment will be described.

図2は、撮像素子22の撮像面を示す正面図、図3は、図2の焦点検出画素列22a付近を拡大して焦点検出画素222a,222bの配列を模式的に示す正面図である。   FIG. 2 is a front view showing the imaging surface of the imaging element 22, and FIG. 3 is a front view schematically showing the arrangement of the focus detection pixels 222a and 222b by enlarging the vicinity of the focus detection pixel row 22a in FIG.

本実施形態の撮像素子22は、図3に示すように、複数の撮像画素221が、撮像面の平面上に二次元的に配列され、緑色の波長領域を透過するカラーフィルタを有する緑画素Gと、赤色の波長領域を透過するカラーフィルタを有する赤画素Rと、青色の波長領域を透過するカラーフィルタを有する青画素Bがいわゆるベイヤー配列(Bayer Arrangement)されたものである。すなわち、隣接する4つの画素群223(稠密正方格子配列)において一方の対角線上に2つの緑画素が配列され、他方の対角線上に赤画素と青画素が1つずつ配列されている。このベイヤー配列された画素群223を単位として、当該画素群223を撮像素子22の撮像面に二次元状に繰り返し配列することで撮像素子22が構成されている。   As shown in FIG. 3, the imaging element 22 of the present embodiment includes a green pixel G having a color filter in which a plurality of imaging pixels 221 are two-dimensionally arranged on the plane of the imaging surface and transmit a green wavelength region. A red pixel R having a color filter that transmits a red wavelength region and a blue pixel B having a color filter that transmits a blue wavelength region are arranged in a so-called Bayer Arrangement. That is, in four adjacent pixel groups 223 (dense square lattice arrangement), two green pixels are arranged on one diagonal line, and one red pixel and one blue pixel are arranged on the other diagonal line. The image sensor 22 is configured by repeatedly arranging the pixel group 223 on the imaging surface of the image sensor 22 in a two-dimensional manner with the Bayer array pixel group 223 as a unit.

なお、単位画素群223の配列は、図示する稠密正方格子以外にも、たとえば稠密六方格子配列にすることもできる。また、カラーフィルタの構成や配列はこれに限定されることはなく、補色フィルタ(緑:G、イエロー:Ye、マゼンタ:Mg,シアン:Cy)の配列を採用することもできる。   The unit pixel group 223 may be arranged in a dense hexagonal lattice arrangement other than the dense square lattice shown in the figure. Further, the configuration and arrangement of the color filters are not limited to this, and an arrangement of complementary color filters (green: G, yellow: Ye, magenta: Mg, cyan: Cy) can also be adopted.

図4は、撮像画素221の一つを拡大して示す正面図、図6は断面図である。一つの撮像画素221は、マイクロレンズ2211と、光電変換部2212と、図示しないカラーフィルタから構成され、図6の断面図に示すように、撮像素子22の半導体回路基板2213の表面に光電変換部2212が造り込まれ、その表面にマイクロレンズ2211が形成されている。光電変換部2212は、マイクロレンズ2211により撮影光学系の射出瞳(たとえばF1.0)を通過する撮像光束を受光する形状とされ、撮像光束を受光する。   FIG. 4 is an enlarged front view showing one of the imaging pixels 221, and FIG. 6 is a cross-sectional view. One imaging pixel 221 includes a micro lens 2211, a photoelectric conversion unit 2212, and a color filter (not shown), and a photoelectric conversion unit is formed on the surface of the semiconductor circuit substrate 2213 of the image sensor 22 as shown in the cross-sectional view of FIG. 2212 is built in and a microlens 2211 is formed on the surface. The photoelectric conversion unit 2212 is configured to receive an imaging light beam that passes through an exit pupil (for example, F1.0) of the photographing optical system by the micro lens 2211, and receives the imaging light beam.

また、撮像素子22の撮像面には、上述した撮像画素221に代えて焦点検出画素222a,222bが配列された5つの焦点検出画素列22a〜22eが設けられている。そして、図3に示すように、一つの焦点検出画素列は、複数の焦点検出画素222aおよび222bが、互いに隣接して交互に、横一列に配列されて構成されている。本実施形態においては、焦点検出画素222aおよび222bは、ベイヤー配列された撮像画素221の緑画素Gと青画素Bとの位置にギャップを設けることなく密に配列されている。   Further, on the imaging surface of the imaging element 22, five focus detection pixel rows 22a to 22e in which focus detection pixels 222a and 222b are arranged instead of the above-described imaging pixel 221 are provided. As shown in FIG. 3, one focus detection pixel column is configured by a plurality of focus detection pixels 222 a and 222 b being alternately arranged adjacent to each other in a horizontal row. In the present embodiment, the focus detection pixels 222a and 222b are densely arranged without providing a gap at the position of the green pixel G and the blue pixel B of the image pickup pixel 221 arranged in the Bayer array.

なお、図2に示す焦点検出画素列22a〜22eの位置は図示する位置にのみ限定されず、何れか一箇所、二箇所、三箇所、あるいは四箇所とすることもでき、また、六箇所以上の位置に配置することもできる。また、図3においては、16個の焦点検出画素222a,222bにより、焦点検出画素列を構成する例を示しているが、焦点検出画素列を構成する焦点検出画素の数は、この例に限定されるものではない。   Note that the positions of the focus detection pixel rows 22a to 22e shown in FIG. 2 are not limited to the illustrated positions, and may be any one, two, three, or four locations, and more than six locations. It can also be arranged at the position. FIG. 3 shows an example in which the focus detection pixel array is configured by 16 focus detection pixels 222a and 222b, but the number of focus detection pixels configuring the focus detection pixel array is limited to this example. Is not to be done.

図5(A)は、焦点検出画素222aの一つを拡大して示す正面図、図7(A)は、焦点検出画素222aの断面図である。また、図5(B)は、焦点検出画素222bの一つを拡大して示す正面図、図7(B)は、焦点検出画素222bの断面図である。焦点検出画素222aは、図5(A)に示すように、マイクロレンズ2221aと、半円形状の光電変換部2222aとから構成され、図7(A)の断面図に示すように、撮像素子22の半導体回路基板2213の表面に光電変換部2222aが造り込まれ、その表面にマイクロレンズ2221aが形成されている。また、焦点検出画素222bは、図5(B)に示すように、マイクロレンズ2221bと、光電変換部2222bとから構成され、図7(B)の断面図に示すように、撮像素子22の半導体回路基板2213の表面に光電変換部2222bが造り込まれ、その表面にマイクロレンズ2221bが形成されている。そして、これら焦点検出画素222aおよび222bは、図3に示すように、互いに隣接して交互に、横一列に配列されることにより、図2に示す焦点検出画素列22a〜22cを構成する。   FIG. 5A is an enlarged front view showing one of the focus detection pixels 222a, and FIG. 7A is a cross-sectional view of the focus detection pixel 222a. FIG. 5B is an enlarged front view showing one of the focus detection pixels 222b, and FIG. 7B is a cross-sectional view of the focus detection pixel 222b. As shown in FIG. 5A, the focus detection pixel 222a includes a micro lens 2221a and a semicircular photoelectric conversion unit 2222a. As shown in the cross-sectional view of FIG. A photoelectric conversion portion 2222a is formed on the surface of the semiconductor circuit substrate 2213, and a micro lens 2221a is formed on the surface. The focus detection pixel 222b includes a micro lens 2221b and a photoelectric conversion unit 2222b as shown in FIG. 5B, and a semiconductor of the image sensor 22 as shown in a cross-sectional view of FIG. 7B. A photoelectric conversion unit 2222b is formed on the surface of the circuit board 2213, and a microlens 2221b is formed on the surface. Then, as shown in FIG. 3, these focus detection pixels 222a and 222b are alternately arranged adjacent to each other in a horizontal row, thereby forming focus detection pixel rows 22a to 22c shown in FIG.

ここで、各焦点検出画素222a,222bは、図8に示すように、その構造上、撮像画素221と略同一のサイズとする必要があるため、撮像画素221と略同一のサイズ、すなわち、縦幅L1および横幅L2がともに、通常、10μm以下程度の大きさに設定される。一方、従来の位相差検出モジュールに備えられるラインセンサ(位相差検出専用のセンサ)においては、図9に示すように、そのサイズに特に制約がないため、ラインセンサ50の各画素50aの大きさは、通常、縦幅L3が数百μm程度、横幅L4が数十μm〜数百μm程度の大きさに設定されている。すなわち、従来のラインセンサ50の各画素50aの大きさは、数百μm×数十μm〜数百μmであるのに対し、焦点検出画素222a,222bは、10μm四方以下のサイズに設定されている。なお、図8は、焦点検出画素222a,222bの画素の大きさを説明するための図であり、図9は、従来の位相差検出モジュールに備えられているラインセンサを構成する各画素の大きさを説明するための図である。   Here, as shown in FIG. 8, the focus detection pixels 222a and 222b are required to have substantially the same size as the imaging pixel 221 because of the structure thereof. Both the width L1 and the lateral width L2 are normally set to a size of about 10 μm or less. On the other hand, in the conventional line sensor (phase difference detection sensor) provided in the phase difference detection module, as shown in FIG. 9, there is no particular limitation on the size thereof, so the size of each pixel 50a of the line sensor 50 is large. In general, the vertical width L3 is set to about several hundred μm, and the horizontal width L4 is set to about several tens μm to several hundred μm. That is, the size of each pixel 50a of the conventional line sensor 50 is several hundreds μm × several tens μm to several hundreds μm, whereas the focus detection pixels 222a and 222b are set to a size of 10 μm square or less. Yes. FIG. 8 is a diagram for explaining the pixel sizes of the focus detection pixels 222a and 222b, and FIG. 9 shows the size of each pixel constituting the line sensor provided in the conventional phase difference detection module. It is a figure for demonstrating this.

なお、焦点検出画素222a,222bの光電変換部2222a,2222bは、マイクロレンズ2221a,2221bにより撮影光学系の射出瞳の所定の領域(たとえばF2.8)を通過する光束を受光するような形状とされる。また、焦点検出画素222a,222bにはカラーフィルタは設けられておらず、その分光特性は、光電変換を行うフォトダイオードの分光特性と、図示しない赤外カットフィルタの分光特性を総合したものとなっている。ただし、撮像画素221と同じカラーフィルタのうちの一つ、たとえば緑フィルタを備えるように構成することもできる。   The photoelectric conversion units 2222a and 2222b of the focus detection pixels 222a and 222b have such a shape that the microlenses 2221a and 2221b receive a light beam that passes through a predetermined region (eg, F2.8) of the exit pupil of the photographing optical system. Is done. Further, the focus detection pixels 222a and 222b are not provided with color filters, and their spectral characteristics are the total of the spectral characteristics of a photodiode that performs photoelectric conversion and the spectral characteristics of an infrared cut filter (not shown). ing. However, it may be configured to include one of the same color filters as the imaging pixel 221, for example, a green filter.

また、図5(A)、図5(B)に示す焦点検出画素222a,222bの光電変換部2222a,2222bは半円形状としたが、光電変換部2222a,2222bの形状はこれに限定されず、他の形状、たとえば、楕円形状、矩形状、多角形状とすることもできる。   In addition, although the photoelectric conversion units 2222a and 2222b of the focus detection pixels 222a and 222b illustrated in FIGS. 5A and 5B have a semicircular shape, the shapes of the photoelectric conversion units 2222a and 2222b are not limited thereto. Other shapes such as an elliptical shape, a rectangular shape, and a polygonal shape can also be used.

ここで、上述した焦点検出画素222a,222bの画素出力に基づいて撮影光学系の焦点状態を検出する、いわゆる位相差検出方式について説明する。   Here, a so-called phase difference detection method for detecting the focus state of the photographing optical system based on the pixel outputs of the focus detection pixels 222a and 222b described above will be described.

図10は、図3のX-X線に沿う断面図であり、撮影光軸L1近傍に配置され、互いに隣接する焦点検出画素222a−1,222b−1,222a−2,222b−2が、射出瞳350の測距瞳351,352から照射される光束AB1−1,AB2−1,AB1−2,AB2−2をそれぞれ受光していることを示している。なお、図10においては、複数の焦点検出画素222a,222bのうち、撮影光軸L1近傍に位置するもののみを例示して示したが、図10に示す焦点検出画素以外のその他の焦点検出画素についても、同様に、一対の測距瞳351,352から照射される光束をそれぞれ受光するように構成されている。   FIG. 10 is a cross-sectional view taken along the line XX in FIG. 3. The focus detection pixels 222 a-1, 222 b-1, 222 a-2, and 222 b-2 arranged in the vicinity of the photographing optical axis L 1 are adjacent to each other. It shows that light beams AB1-1, AB2-1, AB1-2, and AB2-2 irradiated from the distance measuring pupils 351 and 352 of the exit pupil 350 are received. 10 illustrates only the focus detection pixels 222a and 222b that are located in the vicinity of the photographing optical axis L1, but other focus detection pixels other than the focus detection pixels illustrated in FIG. 10 are illustrated. In the same manner, the light beams emitted from the pair of distance measuring pupils 351 and 352 are respectively received.

ここで、射出瞳350とは、撮影光学系の予定焦点面に配置された焦点検出画素222a,222bのマイクロレンズ2221a,2221bの前方の距離Dの位置に設定された像である。距離Dは、マイクロレンズの曲率、屈折率、マイクロレンズと光電変換部との距離などに応じて一義的に決まる値であって、この距離Dを測距瞳距離と称する。また、測距瞳351,352とは、焦点検出画素222a,222bのマイクロレンズ2221a,2221bにより、それぞれ投影された光電変換部2222a,2222bの像をいう。   Here, the exit pupil 350 is an image set at a distance D in front of the microlenses 2221a and 2221b of the focus detection pixels 222a and 222b arranged on the planned focal plane of the photographing optical system. The distance D is a value uniquely determined according to the curvature and refractive index of the microlens, the distance between the microlens and the photoelectric conversion unit, and the distance D is referred to as a distance measurement pupil distance. The distance measurement pupils 351 and 352 are images of the photoelectric conversion units 2222a and 2222b respectively projected by the micro lenses 2221a and 2221b of the focus detection pixels 222a and 222b.

なお、図10において焦点検出画素222a−1,222b−1,222a−2,222b−2の配列方向は一対の測距瞳351,352の並び方向と一致している。   In FIG. 10, the arrangement direction of the focus detection pixels 222a-1, 222b-1, 222a-2, and 222b-2 coincides with the arrangement direction of the pair of distance measurement pupils 351 and 352.

また、図10に示すように、焦点検出画素222a−1,222b−1,222a−2,222b−2のマイクロレンズ2221a−1,2221b−1,2221a−2,2221b−2は、撮影光学系の予定焦点面近傍に配置されている。そして、マイクロレンズ2221a−1,2221b−1,2221a−2,2221b−2の背後に配置された各光電変換部2222a−1,2222b−1,2222a−2,2222b−2の形状が、各マイクロレンズ2221a−1,2221b−1,2221a−2,2221b−2から測距距離Dだけ離れた射出瞳350上に投影され、その投影形状は測距瞳351,352を形成する。   Further, as shown in FIG. 10, the microlenses 2221a-1, 2221b-1, 2221a-2, and 2221b-2 of the focus detection pixels 222a-1, 222b-1, 222a-2, and 222b-2 are photographic optical systems. Near the planned focal plane. The shapes of the photoelectric conversion units 2222a-1, 2222b-1, 2222a-2, 2222b-2 arranged behind the micro lenses 2221a-1, 2221b-1, 2221a-2, 2221b-2 are the same as the micro lenses 2221a-1, 2221b-1, 2221a-2, 2221b-2. Projected onto the exit pupil 350 that is separated from the lenses 2221 a-1, 2221 b-1, 2221 a-2, and 2221 b-2 by a distance measurement distance D, and the projection shape forms distance measurement pupils 351 and 352.

すなわち、測距距離Dにある射出瞳350上で、各焦点検出画素の光電変換部の投影形状(測距瞳351,352)が一致するように、各焦点検出画素におけるマイクロレンズと光電変換部の相対的位置関係が定められ、それにより各焦点検出画素における光電変換部の投影方向が決定されている。   That is, the microlens and the photoelectric conversion unit in each focus detection pixel so that the projection shapes (distance measurement pupils 351 and 352) of the focus detection pixels coincide on the exit pupil 350 at the distance D. Is determined, and the projection direction of the photoelectric conversion unit in each focus detection pixel is thereby determined.

図10に示すように、焦点検出画素222a−1の光電変換部2222a−1は、測距瞳351を通過し、マイクロレンズ2221a−1に向う光束AB1−1によりマイクロレンズ2221a−1上に形成される像の強度に対応した信号を出力する。同様に、焦点検出画素222a−2の光電変換部2222a−2は測距瞳351を通過し、マイクロレンズ2221a−2に向う光束AB1−2によりマイクロレンズ2221a−2上に形成される像の強度に対応した信号を出力する。   As shown in FIG. 10, the photoelectric conversion unit 2222a-1 of the focus detection pixel 222a-1 is formed on the microlens 2221a-1 by a light beam AB1-1 that passes through the distance measuring pupil 351 and goes to the microlens 2221a-1. A signal corresponding to the intensity of the image to be output is output. Similarly, the photoelectric conversion unit 2222a-2 of the focus detection pixel 222a-2 passes through the distance measuring pupil 351, and the intensity of the image formed on the microlens 2221a-2 by the light beam AB1-2 toward the microlens 2221a-2. The signal corresponding to is output.

また、焦点検出画素222b−1の光電変換部2222b−1は測距瞳352を通過し、マイクロレンズ2221b−1に向う光束AB2−1によりマイクロレンズ2221b−1上に形成される像の強度に対応した信号を出力する。同様に、焦点検出画素222b−2の光電変換部2222b−2は測距瞳352を通過し、マイクロレンズ2221b−2に向う光束AB2−2によりマイクロレンズ2221b−2上に形成される像の強度に対応した信号を出力する。   Further, the photoelectric conversion unit 2222b-1 of the focus detection pixel 222b-1 passes through the distance measuring pupil 352, and the intensity of the image formed on the microlens 2221b-1 by the light beam AB2-1 directed to the microlens 2221b-1. Output the corresponding signal. Similarly, the photoelectric conversion unit 2222b-2 of the focus detection pixel 222b-2 passes through the distance measuring pupil 352, and the intensity of the image formed on the microlens 2221b-2 by the light beam AB2-2 toward the microlens 2221b-2. The signal corresponding to is output.

そして、上述した2種類の焦点検出画素222a,222bを、図3に示すように直線状に複数配置し、各焦点検出画素222a,222bの光電変換部2222a,2222bの出力を、測距瞳351と測距瞳352とのそれぞれに対応した出力グループにまとめることにより、測距瞳351と測距瞳352とのそれぞれを通過する焦点検出光束が焦点検出画素列上に形成する一対の像の強度分布に関するデータが得られる。次いで、この一対の像の強度分布データに対し、検波周波数帯域の異なる複数の検波フィルタを用いて、フィルタ処理を行ない、検波フィルタごとに、フィルタ処理後データを算出する。   Then, a plurality of the above-described two types of focus detection pixels 222a and 222b are arranged in a straight line as shown in FIG. 3, and the outputs of the photoelectric conversion units 2222a and 2222b of the focus detection pixels 222a and 222b are used as the distance measurement pupil 351. Of the pair of images formed on the focus detection pixel array by the focus detection light fluxes passing through each of the distance measurement pupil 351 and the distance measurement pupil 352. Data on the distribution is obtained. Next, filter processing is performed on the intensity distribution data of the pair of images using a plurality of detection filters having different detection frequency bands, and post-filter processing data is calculated for each detection filter.

ここで、本実施形態においては、一対の像の強度分布データに対応する被写体の空間周波数に対応するように、検波周波数帯域(すなわち、検出可能な周波数帯域)の異なる複数の検波フィルタをカメラ制御部21に記憶している。すなわち、カメラ制御部21は、低周波被写体から高周波被写体まで、あらゆる被写体の空間周波数に対応できるように、検波周波数帯域の異なる複数の検波フィルタを記憶している。   Here, in the present embodiment, a plurality of detection filters having different detection frequency bands (that is, detectable frequency bands) are controlled by the camera so as to correspond to the spatial frequency of the subject corresponding to the intensity distribution data of the pair of images. Stored in the unit 21. That is, the camera control unit 21 stores a plurality of detection filters having different detection frequency bands so as to be compatible with the spatial frequency of any subject from a low frequency subject to a high frequency subject.

そして、本実施形態では、上記にて得られた一対の像の強度分布データに対し、検波周波数帯域の異なる複数の検波フィルタを用いて、フィルタ処理を行ない、検波フィルタごとに、フィルタ処理後データを算出する。すなわち、カメラ制御部21に記憶されている検波フィルタが10個である場合には、10個のフィルタ処理後データを算出する。そして、得られた検波フィルタごとのフィルタ処理後データ(たとえば、10個のフィルタ処理後データ)に対して、像ズレ検出演算処理(相関演算処理)を施すことにより、いわゆる位相差検出方式によるデフォーカス量を、フィルタ処理後データごとに複数算出する。   In this embodiment, the intensity distribution data of the pair of images obtained as described above is subjected to filter processing using a plurality of detection filters having different detection frequency bands, and data after filter processing is performed for each detection filter. Is calculated. That is, when the number of detection filters stored in the camera control unit 21 is 10, 10 pieces of filtered data are calculated. Then, an image shift detection calculation process (correlation calculation process) is performed on the obtained post-filter data (for example, ten post-filter data) for each detection filter, so that a so-called phase difference detection method is used. A plurality of focus amounts are calculated for each data after filtering.

具体的には、カメラ制御部21は、各焦点検出画素222aから読み出され、次いで、フィルタ処理することにより得られたフィルタ処理後第1像データ列a,a,...,aと、各焦点検出画素222bから読み出され、次いで、フィルタ処理することにより得られたフィルタ処理後第2像データ列b,b,...bとを、一次元状に相対的にシフトさせながら、下記式(1)に示す相関演算を行う。
C(k)=Σ|a(n+k)−b(n)| …(1)
なお、上記式(1)において、Σ演算はnについての累積演算(相和演算)を示し、像ずらし量kに応じてa(n+k)、b(n)のデータが存在する範囲に限定される。また、像ずらし量kは整数であり、各焦点検出画素222a,222bの画素間隔を単位としたシフト量である。なお、上記式(1)の演算結果においては、一対の像データの相関が高いシフト量において、相関量C(k)は極小(小さいほど相関度が高い)になる。
Specifically, the camera control unit 21 reads the first image data strings a 1 , a 2 ,... After filtering, which are read out from each focus detection pixel 222a and then obtained by filtering. . . , An, and the filtered second image data sequence b 1 , b 2 ,. . . and b n, while relatively shifting one-dimensionally, performs correlation calculation of the following formula (1).
C (k) = Σ | a (n + k) −b (n) | (1)
In the above equation (1), the Σ operation indicates a cumulative operation (phase sum operation) for n, and is limited to a range in which data of a (n + k) and b (n) exist according to the image shift amount k. The The image shift amount k is an integer, and is a shift amount in units of pixel intervals between the focus detection pixels 222a and 222b. In the calculation result of the above formula (1), the correlation amount C (k) is minimal (the correlation degree is higher as it is smaller) in the shift amount where the correlation between the pair of image data is high.

次いで、カメラ制御部21は、算出した相関量C(k)に基づいて、相関量の極小値を算出する。本実施形態では、たとえば、以下の下記式(2)〜(5)に示す3点内挿の手法を用いて、連続的な相関量に対する極小値C(x)と、極小値C(x)を与えるシフト量xを算出し、これを像ズレ量とする。なお、下記式に示すC(kj)は、上記式(1)で得られた相関量C(k)のうち、C(k−1)≧C(k)およびC(k+1)>C(k)の条件を満たす値である。
D={C(kj−1)−C(kj+1)}/2 …(2)
C(x)= C(kj)−|D| …(3)
x=kj+D/SLOP …(4)
SLOP=MAX{C(kj+1)−C(kj),C(kj−1)−C(kj)} …(5)
Next, the camera control unit 21 calculates a minimum value of the correlation amount based on the calculated correlation amount C (k). In the present embodiment, for example, the minimum value C (x) and the minimum value C (x) with respect to the continuous correlation amount are obtained by using the three-point interpolation method shown in the following formulas (2) to (5). The shift amount x that gives is calculated as an image shift amount. Note that C (kj) shown in the following equation is C (k−1) ≧ C (k) and C (k + 1)> C (k) among the correlation amounts C (k) obtained in the above equation (1). ) Satisfying the condition of
D = {C (kj−1) −C (kj + 1)} / 2 (2)
C (x) = C (kj) − | D | (3)
x = kj + D / SLOP (4)
SLOP = MAX {C (kj + 1) -C (kj), C (kj-1) -C (kj)} (5)

そして、カメラ制御部21は、相関量の極小値C(x)が得られるシフト量xに基づいて、下記式(6)に従い、デフォーカス量dfを算出する。なお、上記式(6)において、kは、相関量の極小値C(x)が得られるシフト量xをデフォーカス量に変換するための変換係数(kファクター)である。また、本実施形態では、このような相関演算処理を、複数のフィルタ処理後データの全てに対して行なう。
df=x・k …(6)
Then, the camera control unit 21 calculates the defocus amount df according to the following equation (6) based on the shift amount x from which the minimum value C (x) of the correlation amount is obtained. In the above equation (6), k is a conversion coefficient (k factor) for converting the shift amount x from which the minimum value C (x) of the correlation amount is obtained into the defocus amount. In the present embodiment, such correlation calculation processing is performed on all of the plurality of post-filter data.
df = x · k (6)

そして、カメラ制御部21は、相関演算処理における演算結果等から、複数の検波フィルタから、対応する被写体に適した検波周波数帯域を有する検波フィルタを選択し、選択された検波フィルタを用いて得られたデフォーカス量を、最終的なデフォーカス量として決定する。すなわち、対応する被写体に適した検波周波数帯域を有する検波フィルタを選択することで、上記のようにして算出された複数のデフォーカス量から、最終的なデフォーカス量を決定する。   Then, the camera control unit 21 selects a detection filter having a detection frequency band suitable for the corresponding subject from the plurality of detection filters based on the calculation result in the correlation calculation process, and the camera control unit 21 is obtained using the selected detection filter. The determined defocus amount is determined as the final defocus amount. That is, by selecting a detection filter having a detection frequency band suitable for the corresponding subject, the final defocus amount is determined from the plurality of defocus amounts calculated as described above.

ここで、複数の検波フィルタから、対応する被写体に適した検波周波数帯域を有する検波フィルタを選択する方法としては、たとえば、相関演算処理において算出された相関量の極小値C(x)として、最も小さい値が得られたものを、対応する被写体に適した検波周波数帯域を有する検波フィルタを用いて得られたものであると判断し、該判断に基づいて、検波フィルタを選択する方法などが挙げられる。なお、本実施形態においては、対応する被写体に適した検波周波数帯域は、通常、該被写体の空間周波数を含む検波周波数帯域となり、そのため、対応する被写体の空間周波数が低いほど、該被写体に適した検波周波数帯域を有する検波フィルタの検波周波数帯域は低いものとなり、一方、対応する被写体の空間周波数が高いほど、該被写体に適した検波周波数帯域を有する検波フィルタの検波周波数帯域は高いものとなる。   Here, as a method of selecting a detection filter having a detection frequency band suitable for the corresponding subject from a plurality of detection filters, for example, as the minimum value C (x) of the correlation amount calculated in the correlation calculation processing, It is determined that a small value is obtained using a detection filter having a detection frequency band suitable for the corresponding subject, and a detection filter is selected based on the determination. It is done. In the present embodiment, the detection frequency band suitable for the corresponding subject is normally a detection frequency band including the spatial frequency of the subject. Therefore, the lower the spatial frequency of the corresponding subject, the more suitable for the subject. The detection frequency band of the detection filter having the detection frequency band is lower, while the detection frequency band of the detection filter having the detection frequency band suitable for the subject is higher as the spatial frequency of the corresponding subject is higher.

なお、これら位相差検出方式による像ズレ量の演算と、これに基づくデフォーカス量の演算は、カメラ制御部21により実行される。   The calculation of the image shift amount by the phase difference detection method and the calculation of the defocus amount based thereon are executed by the camera control unit 21.

また、カメラ制御部21は、撮像素子22の撮像画素221の出力を読み出し、読み出した画素出力に基づき、焦点評価値の演算を行う。この焦点評価値は、たとえば撮像素子22の撮像画素221からの画像出力の高周波成分を、高周波透過フィルタを用いて抽出し、これを積算することで求めることができる。また、遮断周波数が異なる2つの高周波透過フィルタを用いて高周波成分を抽出し、それぞれを積算することでも求めることができる。   Further, the camera control unit 21 reads the output of the imaging pixel 221 of the imaging element 22 and calculates a focus evaluation value based on the read pixel output. This focus evaluation value can be obtained by, for example, extracting a high frequency component of an image output from the imaging pixel 221 of the imaging element 22 using a high frequency transmission filter and integrating the extracted high frequency component. It can also be obtained by extracting high-frequency components using two high-frequency transmission filters having different cutoff frequencies and integrating them.

そして、カメラ制御部21は、レンズ制御部37に制御信号を送出してフォーカスレンズ32を所定のサンプリング間隔(距離)で駆動させ、それぞれの位置における焦点評価値を求め、該焦点評価値が最大となるフォーカスレンズ32の位置を合焦位置として求める、コントラスト検出方式による焦点検出を実行する。なお、この合焦位置は、たとえば、フォーカスレンズ32を駆動させながら焦点評価値を算出した場合に、焦点評価値が、2回上昇した後、さらに、2回下降して推移した場合に、これらの焦点評価値を用いて、内挿法などの演算を行うことで求めることができる。   Then, the camera control unit 21 sends a control signal to the lens control unit 37 to drive the focus lens 32 at a predetermined sampling interval (distance) to obtain a focus evaluation value at each position, and the focus evaluation value is maximum. The focus detection by the contrast detection method is performed in which the position of the focus lens 32 is determined as the in-focus position. Note that this in-focus position is obtained when, for example, when the focus evaluation value is calculated while driving the focus lens 32, the focus evaluation value rises twice and then moves down twice. Can be obtained by performing an operation such as interpolation using the focus evaluation value.

次いで、本実施形態におけるカメラ1の動作例を、図11に示すフローチャートに沿って説明する。以下においては、たとえば、操作部28を介して、人物の顔を撮影するための人物撮影モードが選択されている場合における動作例を説明する。なお、以下における動作は、カメラ1の電源がオンされることにより開始される。   Next, an example of the operation of the camera 1 in the present embodiment will be described along the flowchart shown in FIG. In the following, for example, an operation example in the case where a person photographing mode for photographing a person's face is selected via the operation unit 28 will be described. The following operation is started when the camera 1 is turned on.

まず、ステップS1では、カメラ制御部21によるスルー画像の生成、および観察光学系の電子ビューファインダ26による、スルー画像の表示が開始される。具体的には、撮像素子22により露光動作が行なわれ、カメラ制御部21により、撮像画素221の画素データの読み出しが行なわれる。そして、カメラ制御部21は、読み出したデータに基づきスルー画像を生成し、生成されたスルー画像は液晶駆動回路25に送出され、観察光学系の電子ビューファインダ26に表示される。そして、これにより、接眼レンズ27を介して、ユーザは被写体の動画を視認することが可能となる。なお、スルー画像の生成、およびスルー画像の表示は、所定の間隔で繰り返し実行される。   First, in step S1, generation of a through image by the camera control unit 21 and display of a through image by the electronic viewfinder 26 of the observation optical system are started. Specifically, an exposure operation is performed by the imaging element 22, and pixel data of the imaging pixel 221 is read by the camera control unit 21. Then, the camera control unit 21 generates a through image based on the read data, and the generated through image is sent to the liquid crystal drive circuit 25 and displayed on the electronic viewfinder 26 of the observation optical system. As a result, the user can view the moving image of the subject through the eyepiece lens 27. Note that the generation of the through image and the display of the through image are repeatedly executed at predetermined intervals.

次いで、ステップS2では、カメラ制御部21により、人物の顔の位置を特定するための顔位置特定処理が開始される。本実施形態では、まず、使用者の手動操作により、あるいは、カメラ制御部21による顔認識処理により指定された人物の顔に対応するテンプレート画像の生成が行なわれる。そして、生成されたテンプレート画像との一致度が所定以上であるエリアの探索を行い、一致度が所定以上であるエリアを逐次抽出し、抽出したエリアを、人物の顔の位置として設定することにより行われる。なお、顔位置特定処理は、所定の間隔で繰り返し実行される。   Next, in step S2, the camera control unit 21 starts a face position specifying process for specifying the position of the person's face. In the present embodiment, first, a template image corresponding to a person's face designated by a user's manual operation or by face recognition processing by the camera control unit 21 is generated. Then, by searching for an area where the degree of coincidence with the generated template image is greater than or equal to a predetermined value, sequentially extracting areas where the degree of coincidence is greater than or equal to a predetermined value, and setting the extracted area as the position of a human face Done. The face position specifying process is repeatedly executed at predetermined intervals.

ステップS3では、カメラ制御部21により、位相差検出方式によるデフォーカス量の検出処理が開始される。本実施形態では、位相差検出方式によるデフォーカス量の検出処理は、次のように行なわれる。すなわち、まず、カメラ制御部21により、撮像素子22の5つの焦点検出画素列22a〜22dを構成する各焦点検出画素222a,222bから一対の像に対応した一対の像データの読み出しが行なわれる。この場合、上述したステップS2において人物の顔の位置が特定されている場合には、特定された人物の顔の位置に対応する焦点検出画素からのデータのみを読み出すような構成とすることができる。   In step S3, the camera control unit 21 starts defocus amount detection processing by the phase difference detection method. In the present embodiment, the defocus amount detection processing by the phase difference detection method is performed as follows. That is, first, the camera control unit 21 reads a pair of image data corresponding to a pair of images from the focus detection pixels 222a and 222b constituting the five focus detection pixel rows 22a to 22d of the image sensor 22. In this case, when the position of the person's face is specified in the above-described step S2, only the data from the focus detection pixels corresponding to the specified position of the person's face can be read. .

そして、カメラ制御部21は、読み出された一対の像データについて、検波周波数帯域の異なる複数の検波フィルタを用いて、フィルタ処理を行ない、検波フィルタごとに、フィルタ処理後データを複数算出し、算出した複数のフィルタ処理後データに基づいて像ズレ検出演算処理(相関演算処理)を実行する。具体的には、カメラ制御部21は、複数のフィルタ処理後データに基づいて、複数の像ズレ量を演算し、さらに像ズレ量をデフォーカス量に変換することで、異なる検波フィルタを用いて得られた複数のデフォーカス量を得る。そして、カメラ制御部21は、相関演算処理における演算結果から、複数の検波フィルタから、対応する被写体に適した検波周波数帯域を有する検波フィルタを選択し、複数のデフォーカス量のうち、選択された検波フィルタを用いて得られたデフォーカス量を、最終的なデフォーカス量として決定する。すなわち、対応する被写体に適した検波周波数帯域を有する検波フィルタを選択することで、上記のようにして算出された複数のデフォーカス量から、最終的なデフォーカス量を決定する。   Then, the camera control unit 21 performs a filter process on the read pair of image data using a plurality of detection filters having different detection frequency bands, and calculates a plurality of post-filter data for each detection filter, An image shift detection calculation process (correlation calculation process) is executed based on the calculated plurality of post-filter data. Specifically, the camera control unit 21 calculates a plurality of image shift amounts based on a plurality of post-filter data, and further converts the image shift amounts into defocus amounts, thereby using different detection filters. A plurality of obtained defocus amounts are obtained. Then, the camera control unit 21 selects a detection filter having a detection frequency band suitable for the corresponding subject from the plurality of detection filters based on the calculation result in the correlation calculation process, and the selected one of the plurality of defocus amounts is selected. The defocus amount obtained using the detection filter is determined as the final defocus amount. That is, by selecting a detection filter having a detection frequency band suitable for the corresponding subject, the final defocus amount is determined from the plurality of defocus amounts calculated as described above.

あるいは、本実施形態において、最終的なデフォーカス量を決定するに際し、まず、読み出された一対の像データに基づいて、一対の像データに適した波周波数帯域を有する検波フィルタを予め選択し、選択された検波フィルタのみを用いて、フィルタ処理を行ない、フィルタ処理後データを算出し、選択された検波フィルタを用いて得られたフィルタ処理後データから算出される像ズレ量から、最終的なデフォーカス量を決定するような構成としてもよい。   Alternatively, in the present embodiment, when determining the final defocus amount, first, a detection filter having a wave frequency band suitable for the pair of image data is selected in advance based on the read pair of image data. The filter processing is performed using only the selected detection filter, the filtered data is calculated, and the final amount is calculated from the image shift amount calculated from the filtered data obtained using the selected detection filter. It is also possible to adopt a configuration for determining a proper defocus amount.

そして、このような位相差検出方式によるデフォーカス量の検出処理は、所定の間隔で繰り返し実行される。   The defocus amount detection process using such a phase difference detection method is repeatedly executed at predetermined intervals.

ステップS4では、カメラ制御部21により、焦点評価値の算出処理が開始される。本実施形態では、焦点評価値の算出処理は、撮像素子22の撮像画素221の画素出力を読み出し、読み出した画素出力の高周波成分を、高周波透過フィルタを用いて抽出し、これを積算することにより行われる。この場合、上述したステップS2において人物の顔の位置が特定されている場合には、特定された人物の顔の位置に対応する撮像画素221の画素出力の画素出力のみを読み出すような構成としてもよい。なお、焦点評価値の算出処理は、所定の間隔で繰り返し実行される。   In step S <b> 4, the camera control unit 21 starts a focus evaluation value calculation process. In the present embodiment, the focus evaluation value calculation process is performed by reading out the pixel output of the imaging pixel 221 of the imaging element 22, extracting a high-frequency component of the read-out pixel output using a high-frequency transmission filter, and accumulating these. Done. In this case, when the position of the person's face is specified in the above-described step S2, only the pixel output of the pixel output of the imaging pixel 221 corresponding to the specified position of the person's face may be read. Good. The focus evaluation value calculation process is repeatedly executed at predetermined intervals.

ステップS5では、カメラ制御部21により、操作部28に備えられたシャッターレリーズボタンの半押し(第1スイッチSW1のオン)がされたかどうかの判断が行なわれる。第1スイッチSW1がオンした場合はステップS6に進む。一方、第1スイッチSW1がオンしていない場合は、第1スイッチSW1がオンされるまで、ステップS5を繰り返す。すなわち、第1スイッチSW1がオンされるまで、スルー画像の生成・表示、顔位置特定処理、位相差検出方式によるデフォーカス量の検出処理、および焦点評価値の算出処理が繰り返し実行される。   In step S5, the camera control unit 21 determines whether the shutter release button provided in the operation unit 28 is half-pressed (the first switch SW1 is turned on). If the first switch SW1 is turned on, the process proceeds to step S6. On the other hand, if the first switch SW1 is not turned on, step S5 is repeated until the first switch SW1 is turned on. That is, until the first switch SW1 is turned on, through-image generation / display, face position specifying processing, defocus amount detection processing using a phase difference detection method, and focus evaluation value calculation processing are repeatedly executed.

ステップS6では、光学系の焦点状態の検出を行うための焦点検出エリアAFPを決定するための処理が行なわれる。具体的には、上述したステップS2で説明した顔位置特定処理により、人物の顔の位置が特定されている場合には、特定された人物の顔の位置が焦点検出エリアAFPに設定される。あるいは、人物の顔の位置が特定されていない場合には、所定の焦点検出位置(たとえば、最至近被写体に対応する焦点検出位置や、撮影画面の中央領域に位置する焦点検出位置)が、光学系の焦点状態の検出を行うための焦点検出エリアAFPに設定される。   In step S6, a process for determining a focus detection area AFP for detecting the focus state of the optical system is performed. Specifically, when the position of the person's face is specified by the face position specifying process described in step S2, the position of the specified person's face is set in the focus detection area AFP. Alternatively, when the position of the person's face is not specified, a predetermined focus detection position (for example, the focus detection position corresponding to the closest subject or the focus detection position located in the center area of the shooting screen) is optically detected. It is set in the focus detection area AFP for detecting the focus state of the system.

ステップS7では、上述したステップS6で決定された光学系の焦点状態の検出を行うための焦点検出エリアAFPにおいて、位相差検出方式により検出されたデフォーカス量について、デフォーカス量を算出する際に用いられた検波フィルタの検出可能な周波数帯域が、予め定められた所定値f1以上であるか否かの判定が行なわれる。デフォーカス量を算出する際に用いられた検波フィルタの検出可能な周波数帯域が、所定値f1以上である場合には、ステップS14に進む。一方、デフォーカス量を検出する際に用いられた検波フィルタの検出可能な周波数帯域が、所定値f1未満である場合には、ステップS8に進む。   In step S7, when calculating the defocus amount for the defocus amount detected by the phase difference detection method in the focus detection area AFP for detecting the focus state of the optical system determined in step S6 described above. It is determined whether the detectable frequency band of the used detection filter is equal to or greater than a predetermined value f1. When the detectable frequency band of the detection filter used when calculating the defocus amount is equal to or greater than the predetermined value f1, the process proceeds to step S14. On the other hand, if the detectable frequency band of the detection filter used for detecting the defocus amount is less than the predetermined value f1, the process proceeds to step S8.

なお、人物の顔を撮影するための人物撮影モードにおいて、デフォーカス量を算出する際に用いる検波フィルタとして検出可能な周波数帯域の低いフィルタが用いられ、そのため、対応する被写体の空間周波数が低いと判断できるような場合には、人物の顔の中でも、肌などの低周波成分が検出されている場合が多い。そして、焦点検出エリアAFPに対応する位置に存在する焦点検出画素222a,222bで捕捉している領域が、人物の顔のうち肌の部分である場合には、肌にピントが合ってしまい、本来ピントを合わせたい目にピントが合わず、そのため、ピント精度が十分に得られない場合が多いという問題や、低周波成分に基づいて、焦点検出を行うものであるため、そもそも焦点検出精度が低いものとなるという問題などが生じてしまう場合がある。   It should be noted that, in a human photographing mode for photographing a human face, a filter with a low frequency band that can be detected is used as a detection filter used when calculating the defocus amount. Therefore, if the spatial frequency of the corresponding subject is low When it can be determined, low frequency components such as skin are often detected in the face of a person. If the area captured by the focus detection pixels 222a and 222b existing at the position corresponding to the focus detection area AFP is a skin portion of a person's face, the skin is focused, Focus is not focused on the subject you want to focus on, so there are many cases where the focus accuracy cannot be obtained sufficiently, and focus detection is based on low frequency components, so focus detection accuracy is low in the first place The problem of becoming a thing may arise.

これに対して、本実施形態では、デフォーカス量を算出する際に用いられた検波フィルタの検出可能な周波数帯域が、所定値f1以上であり、人物の顔を撮影するための人物撮影モードにおいて、焦点検出エリアAFPに対応する位置に存在する焦点検出画素222a,222bで捕捉している被写体(人物の顔)の空間周波数が十分に高いものであると判断できる場合には、ステップS14に進み、後述するように、検出されたデフォーカス量に基づいて、位相差検出方式による合焦動作を実行する。一方で、デフォーカス量を算出する際に用いられた検波フィルタの検出可能な周波数帯域が、所定値f1未満であり、人物の顔を撮影するための人物撮影モードにおいて、焦点検出エリアAFPに対応する位置に存在する焦点検出画素222a,222bで捕捉している被写体(人物の顔)の空間周波数が低いと判断される場合には、ステップS8に進み、後述するスキャン動作を実行する。   On the other hand, in the present embodiment, the frequency band that can be detected by the detection filter used when calculating the defocus amount is equal to or greater than the predetermined value f1, and in the person photographing mode for photographing a person's face. If it can be determined that the spatial frequency of the subject (human face) captured by the focus detection pixels 222a and 222b existing at the position corresponding to the focus detection area AFP is sufficiently high, the process proceeds to step S14. As will be described later, a focusing operation by a phase difference detection method is executed based on the detected defocus amount. On the other hand, the frequency band that can be detected by the detection filter used when calculating the defocus amount is less than the predetermined value f1, and corresponds to the focus detection area AFP in the person photographing mode for photographing a human face. If it is determined that the spatial frequency of the subject (human face) captured by the focus detection pixels 222a and 222b existing at the position is low, the process proceeds to step S8, and a scanning operation described later is executed.

ここで、所定値f1としては、人物の顔を撮影するための人物撮影モードにおいて、被写体(人物)の空間周波数が十分に高いものと判断できるような値に設定すればよく、特に限定されないが、たとえば、カメラ制御部21に記憶されている検波周波数帯域の異なる複数の検波フィルタの数が10個である場合には、検波周波数帯域が低い方から順に3個目までの検波フィルタを用いてデフォーカス量が検出された場合には、被写体(人物の顔)の空間周波数が低く、後述するスキャン動作に移行するような構成とすることができる。言い換えれば、検波周波数帯域が高い方から順に7個目までの検波フィルタを用いてデフォーカス量が検出された場合には、被写体(人物の顔)の空間周波数が十分に高く、検出されたデフォーカス量に基づいて、位相差検出方式による合焦動作を実行するような構成とすることができる。   Here, the predetermined value f1 may be set to a value that can be determined that the spatial frequency of the subject (person) is sufficiently high in the person photographing mode for photographing a person's face, and is not particularly limited. For example, when the number of the plurality of detection filters having different detection frequency bands stored in the camera control unit 21 is 10, using the detection filters up to the third in order from the lowest detection frequency band. When the defocus amount is detected, the spatial frequency of the subject (person's face) is low, so that the configuration can be shifted to a scanning operation described later. In other words, when the defocus amount is detected using the seventh detection filter in order from the highest detection frequency band, the spatial frequency of the subject (person's face) is sufficiently high, A focusing operation based on the phase difference detection method can be performed based on the focus amount.

そして、ステップS7において、デフォーカス量を算出する際に用いられた検波フィルタの検出可能な周波数帯域が、所定値f1以上であると判断された場合には、ステップS14に進み、位相差検出方式により検出されたデフォーカス量に基づく、合焦動作が行なわれる。すなわち、ステップS14では、位相差検出方式により検出されたデフォーカス量に基づいて、フォーカスレンズ32を、合焦位置まで駆動させる処理が行なわれる。具体的には、カメラ制御部21により、位相差検出方式により検出されたデフォーカス量から、フォーカスレンズ32を合焦位置まで駆動させるのに必要となるレンズ駆動量の算出が行なわれ、算出されたレンズ駆動量が、レンズ制御部37を介して、レンズ駆動モータ36に送出される。そして、レンズ駆動モータ36は、カメラ制御部21により算出されたレンズ駆動量に基づいて、フォーカスレンズ32を合焦位置まで駆動させる。   In step S7, if it is determined that the detectable frequency band of the detection filter used when calculating the defocus amount is equal to or greater than the predetermined value f1, the process proceeds to step S14, and the phase difference detection method is performed. A focusing operation is performed based on the defocus amount detected by. That is, in step S14, processing for driving the focus lens 32 to the in-focus position is performed based on the defocus amount detected by the phase difference detection method. Specifically, the camera control unit 21 calculates the lens driving amount necessary to drive the focus lens 32 to the in-focus position from the defocus amount detected by the phase difference detection method. The lens driving amount is sent to the lens driving motor 36 via the lens control unit 37. Then, the lens driving motor 36 drives the focus lens 32 to the in-focus position based on the lens driving amount calculated by the camera control unit 21.

なお、本実施形態においては、レンズ駆動モータ36を駆動させ、フォーカスレンズ32を合焦位置まで駆動させている間においても、カメラ制御部21は、位相差検出方式によるデフォーカス量の検出を繰り返し行い、その結果、新たなデフォーカス量が検出された場合には、カメラ制御部21は、新たなデフォーカス量に基づいて、フォーカスレンズ32を駆動させる。   In the present embodiment, the camera control unit 21 repeatedly detects the defocus amount by the phase difference detection method even while the lens driving motor 36 is driven and the focus lens 32 is driven to the in-focus position. If, as a result, a new defocus amount is detected, the camera control unit 21 drives the focus lens 32 based on the new defocus amount.

また、ステップS13においては、フォーカスレンズ32を、合焦位置まで駆動させる処理とともに、カメラ制御部21により、スキャン動作禁止処理が行なわれる。具体的には、カメラ制御部21により、スキャン動作禁止指令が、レンズ制御部37に送出され、スキャン動作が禁止状態とされる。なお、スキャン動作については、後述する。   In step S13, the camera control unit 21 performs a scanning operation prohibition process as well as a process of driving the focus lens 32 to the in-focus position. Specifically, the camera control unit 21 sends a scan operation prohibition command to the lens control unit 37, and the scan operation is prohibited. The scan operation will be described later.

そして、フォーカスレンズ32の合焦位置への駆動が完了すると、ステップS16に進み、合焦ロック(フォーカスレンズ32の駆動を禁止する処理)が行なわれる。なお、この際においては、電子ビューファインダ26により、合焦表示を行なうような構成としてもよい。   When the drive of the focus lens 32 to the in-focus position is completed, the process proceeds to step S16, and focus lock (processing for prohibiting the drive of the focus lens 32) is performed. In this case, the electronic viewfinder 26 may be configured to perform in-focus display.

一方、ステップS7において、デフォーカス量を算出する際に用いられた検波フィルタの検出可能な周波数帯域が、所定値f1未満であると判断された場合には、ステップS8に進み、ステップS8では、カメラ制御部21により、スキャン動作の開始処理が行なわれる。本実施形態のスキャン動作は、フォーカスレンズ駆動モータ36により、フォーカスレンズ32を、所定の駆動速度でスキャン駆動させながら、カメラ制御部21により、位相差検出方式によるデフォーカス量の検出、および焦点評価値の算出を、所定の間隔で同時に行い、これにより、位相差検出方式による合焦位置の検出と、コントラスト検出方式による合焦位置の検出とを、所定の間隔で、同時に実行する動作である。   On the other hand, if it is determined in step S7 that the detectable frequency band of the detection filter used in calculating the defocus amount is less than the predetermined value f1, the process proceeds to step S8, and in step S8, The camera control unit 21 performs a scan operation start process. In the scanning operation of the present embodiment, the focus lens drive motor 36 scans the focus lens 32 at a predetermined driving speed, and the camera control unit 21 detects the defocus amount by the phase difference detection method and performs focus evaluation. The calculation of the value is performed simultaneously at a predetermined interval, whereby the detection of the in-focus position by the phase difference detection method and the detection of the in-focus position by the contrast detection method are performed simultaneously at the predetermined interval. .

具体的には、カメラ制御部21は、レンズ制御部37にスキャン駆動開始指令を送出し、レンズ制御部37は、カメラ制御部21からの指令に基づき、フォーカスレンズ駆動モータ36を駆動させ、フォーカスレンズ32を光軸L1に沿って、所定の駆動速度でスキャン駆動させる。なお、スキャン動作を行なう際における、フォーカスレンズ32の駆動速度としては、特に限定されないが、たとえば、位相差検出方式によるデフォーカス量の検出に適した速度、具体的には、位相差検出方式によるデフォーカス量の検出が可能な速度のうち最大の速度、あるいは、位相差検出方式によるデフォーカス量の検出が可能な速度のうち最大の速度よりも所定速度遅い速度(たとえば、速度誤差や検出誤差等を考慮した速度のうち、最大の速度)とすることができる。また、フォーカスレンズ32のスキャン駆動は、無限遠端位置から至近端位置に向かって、あるいは、至近端位置から無限遠端位置に向かって行なう。なお、この場合における、無限遠端位置は、レンズ鏡筒3の構造によって決められる機械的なリミット位置よりも、至近側となる所定の位置(無限遠側ソフトリミット位置)に設定される。また、同様に、至近端位置も、レンズ鏡筒3の構造によって決められる機械的なリミット位置よりも、無限遠側となる所定の位置(至近側ソフトリミット位置)に設定される。   Specifically, the camera control unit 21 sends a scan drive start command to the lens control unit 37, and the lens control unit 37 drives the focus lens drive motor 36 based on the command from the camera control unit 21 to focus. The lens 32 is scan-driven along the optical axis L1 at a predetermined driving speed. The driving speed of the focus lens 32 when performing the scanning operation is not particularly limited. For example, the driving speed is suitable for detecting the defocus amount by the phase difference detection method, specifically, the phase difference detection method. The maximum speed that can detect the defocus amount, or a speed that is slower than the maximum speed among the speeds that can detect the defocus amount by the phase difference detection method (for example, speed error or detection error). The maximum speed among the speeds in consideration of the above and the like. Further, the scan driving of the focus lens 32 is performed from the infinity end position toward the close end position, or from the close end position toward the infinity end position. In this case, the infinity end position is set to a predetermined position (infinity-side soft limit position) that is closer to the mechanical limit position determined by the structure of the lens barrel 3. Similarly, the closest end position is also set to a predetermined position (closest side soft limit position) on the infinity side of the mechanical limit position determined by the structure of the lens barrel 3.

そして、カメラ制御部21は、フォーカスレンズ32を所定の駆動速度で駆動させながら、所定間隔で、撮像素子22の焦点検出画素222a,222bから一対の像に対応した一対の像データの読み出しを行い、これに基づき、位相差検出方式により、デフォーカス量の検出を行うとともに、フォーカスレンズ32を所定の駆動速度で駆動させながら、所定間隔で、撮像素子22の撮像画素221から画素出力の読み出しを行い、これに基づき、焦点評価値を算出し、これにより、異なるフォーカスレンズ位置における焦点評価値を取得することで、コントラスト検出方式により合焦位置の検出を行う。   The camera control unit 21 reads a pair of image data corresponding to the pair of images from the focus detection pixels 222a and 222b of the image sensor 22 at a predetermined interval while driving the focus lens 32 at a predetermined driving speed. Based on this, the defocus amount is detected by the phase difference detection method, and the pixel output is read from the imaging pixel 221 of the imaging element 22 at a predetermined interval while the focus lens 32 is driven at a predetermined driving speed. Based on this, the focus evaluation value is calculated, and the focus evaluation value at different focus lens positions is thereby acquired, so that the focus position is detected by the contrast detection method.

ステップS9では、カメラ制御部21により、スキャン動作を行なった結果、上述したステップS6で決定した光学系の焦点状態の検出を行うための焦点検出エリアAFPにおいて、位相差検出方式により検出されたデフォーカス量について、デフォーカス量を算出する際に用いられた検波フィルタの検出可能な周波数帯域が、上述した所定値f1以上であるか否かの判定が行なわれる。デフォーカス量を算出する際に用いられた検波フィルタの検出可能な周波数帯域が、所定値f1以上である場合には、ステップS14に進み、一方、デフォーカス量を算出する際に用いられた検波フィルタの検出可能な周波数帯域が、所定値f1未満である場合には、ステップS10に進む。   In step S9, as a result of the scanning operation performed by the camera control unit 21, in the focus detection area AFP for detecting the focus state of the optical system determined in step S6 described above, the data detected by the phase difference detection method is detected. With regard to the focus amount, it is determined whether or not the frequency band that can be detected by the detection filter used when calculating the defocus amount is equal to or greater than the predetermined value f1 described above. If the detectable frequency band of the detection filter used when calculating the defocus amount is equal to or greater than the predetermined value f1, the process proceeds to step S14, while the detection used when calculating the defocus amount. When the frequency band that can be detected by the filter is less than the predetermined value f1, the process proceeds to step S10.

ステップS10では、カメラ制御部21により、スキャン動作を行なった結果、コントラスト検出方式により、合焦位置の検出ができたか否かの判定が行なわれる。コントラスト検出方式により、合焦位置の検出ができた場合には、ステップS15に進み、一方、合焦位置の検出ができなかった場合には、ステップS11に進む。   In step S10, it is determined whether or not the in-focus position has been detected by the contrast detection method as a result of the scanning operation performed by the camera control unit 21. If the in-focus position can be detected by the contrast detection method, the process proceeds to step S15. If the in-focus position cannot be detected, the process proceeds to step S11.

ステップS11では、カメラ制御部21により、スキャン動作を、フォーカスレンズ32の駆動可能範囲の全域、すなわち、無限遠端位置から至近端位置の間の全域について行なったか否かの判定が行なわれる。フォーカスレンズ32の駆動可能範囲の全域について、スキャン動作を行なっていない場合には、ステップS9に戻り、ステップS9〜S11を繰り返すことにより、スキャン動作、すなわち、フォーカスレンズ32を、所定の駆動速度で駆動させながら、位相差検出方式によるデフォーカス量の検出、およびコントラスト検出方式による合焦位置の検出を、所定の間隔で同時に実行する動作を継続して行なう。一方、フォーカスレンズ32の駆動可能範囲の全域について、スキャン動作の実行を完了している場合には、ステップS12に進む。   In step S <b> 11, the camera control unit 21 determines whether or not the scan operation has been performed for the entire driveable range of the focus lens 32, that is, for the entire region between the infinity end position and the closest end position. When the scan operation is not performed for the entire driveable range of the focus lens 32, the process returns to step S9, and steps S9 to S11 are repeated, so that the scan lens, that is, the focus lens 32 is moved at a predetermined drive speed. While driving, the operation of simultaneously executing the detection of the defocus amount by the phase difference detection method and the detection of the in-focus position by the contrast detection method at a predetermined interval is continuously performed. On the other hand, when the execution of the scan operation is completed for the entire driveable range of the focus lens 32, the process proceeds to step S12.

そして、スキャン動作を実行した結果、ステップS9において、検出可能な周波数帯域が所定値f1以上である検波フィルタを用いたデフォーカス量が検出された場合(すなわち、焦点検出エリアAFPに対応する位置に存在する焦点検出画素222a,222bで捕捉している被写体(人物の顔)の空間周波数が十分に高いものと判断できる場合)には、ステップS14に進み、上記と同様にして、位相差検出方式により検出されたデフォーカス量に基づく、合焦動作が行なわれる。そして、フォーカスレンズ32の合焦位置への駆動が完了すると、ステップS16に進み、合焦ロックが行なわれる。   As a result of executing the scanning operation, when a defocus amount using a detection filter whose detectable frequency band is equal to or greater than the predetermined value f1 is detected in step S9 (that is, at a position corresponding to the focus detection area AFP). If it is determined that the spatial frequency of the subject (human face) captured by the existing focus detection pixels 222a and 222b is sufficiently high), the process proceeds to step S14, and the phase difference detection method is performed in the same manner as described above. A focusing operation is performed based on the defocus amount detected by. When the driving of the focus lens 32 to the in-focus position is completed, the process proceeds to step S16, and the focus lock is performed.

また、スキャン動作を実行した結果、ステップS10において、コントラスト検出方式により、合焦位置が検出できたと判定された場合には、スキャン動作を停止し、ステップS15に進み、コントラスト検出方式により検出された合焦位置に基づく、合焦動作が行なわれる。すなわち、ステップS15では、コントラスト検出方式により検出された合焦位置に基づいて、フォーカスレンズ32を、合焦位置まで駆動させる合焦駆動処理が行なわれる。ここで、図12に、スキャン動作の結果、コントラスト検出方式により合焦位置が検出された場合における、フォーカスレンズ位置と焦点評価値との関係、およびフォーカスレンズ位置と時間との関係を表す図を示す。図12に示すように、スキャン動作開始時には、フォーカスレンズ32は、図12に示すP0に位置しており、P0から、無限遠側から至近側に向けてフォーカスレンズ32を所定の駆動速度で駆動させながら、焦点評価値の取得を行う。そして、フォーカスレンズ32を、図12に示すP1の位置に移動させた時点において、焦点評価値のピーク位置(合焦位置)が検出されると(ステップS10=Yes)、スキャン動作を停止し、フォーカスレンズ32を合焦位置(図12中、P2の位置)まで駆動するための合焦駆動(ステップS15)が行なわれる。また、合焦駆動を行う際には、カメラ制御部21により、スキャン動作を停止するとともに、スキャン動作禁止処理が行なわれる。   As a result of executing the scanning operation, if it is determined in step S10 that the in-focus position has been detected by the contrast detection method, the scanning operation is stopped, and the process proceeds to step S15 where the detection is performed by the contrast detection method. A focusing operation based on the focusing position is performed. That is, in step S15, a focus drive process for driving the focus lens 32 to the focus position is performed based on the focus position detected by the contrast detection method. Here, FIG. 12 is a diagram showing the relationship between the focus lens position and the focus evaluation value and the relationship between the focus lens position and time when the in-focus position is detected by the contrast detection method as a result of the scanning operation. Show. As shown in FIG. 12, at the start of the scanning operation, the focus lens 32 is positioned at P0 shown in FIG. 12, and the focus lens 32 is driven at a predetermined drive speed from P0 toward the near side from P0. The focus evaluation value is acquired. When the focus lens 32 is moved to the position P1 shown in FIG. 12 and the peak position (focus position) of the focus evaluation value is detected (step S10 = Yes), the scanning operation is stopped, Focus drive (step S15) for driving the focus lens 32 to the focus position (position P2 in FIG. 12) is performed. Further, when performing in-focus driving, the camera control unit 21 stops the scanning operation and performs a scanning operation prohibiting process.

なお、本実施形態においては、ステップS10において、コントラスト検出方式により、合焦位置が検出できたと判定され、コントラスト検出方式による検出結果に基づいて、フォーカスレンズ32を合焦位置への駆動を行なう際には、フォーカスレンズ32の合焦位置への駆動が完了するまでは、位相差検出方式による焦点検出結果に基づく、フォーカスレンズ32の駆動を禁止する。すなわち、コントラスト検出方式により、合焦位置が検出できたと判定された後においては、位相差検出方式によりデフォーカス量が検出できた場合でも、位相差検出方式の結果に基づいたフォーカスレンズ32の駆動を禁止する。これにより、フォーカスレンズ32のハンチング現象を抑制することができる。   In the present embodiment, when it is determined in step S10 that the in-focus position has been detected by the contrast detection method, the focus lens 32 is driven to the in-focus position based on the detection result by the contrast detection method. In other words, until the drive of the focus lens 32 to the in-focus position is completed, the drive of the focus lens 32 based on the focus detection result by the phase difference detection method is prohibited. That is, after it is determined that the in-focus position can be detected by the contrast detection method, even when the defocus amount can be detected by the phase difference detection method, the focus lens 32 is driven based on the result of the phase difference detection method. Is prohibited. Thereby, the hunting phenomenon of the focus lens 32 can be suppressed.

そして、フォーカスレンズ32の合焦位置への駆動が完了すると、ステップS16に進み、合焦ロックが行なわれる。   When the driving of the focus lens 32 to the in-focus position is completed, the process proceeds to step S16, and the focus lock is performed.

なお、本実施形態のスキャン動作においては、上述したステップS9〜S11を繰り返し実行することで、フォーカスレンズ32を、所定の駆動速度でスキャン駆動させながら、位相差検出方式によるデフォーカス量の検出、およびコントラスト検出方式による合焦位置の検出を所定の間隔で同時に実行する。そして、上述したステップS9〜S11を繰り返し実行した結果、位相差検出方式およびコントラスト検出方式のうち、先に、検出可能な周波数帯域が所定値f1以上である検波フィルタを用いたデフォーカス量の検出、または合焦位置の検出ができた検出方式による、焦点検出結果を用いて、フォーカスレンズ32を、合焦位置まで駆動させる処理を行なう。また、上述したように、本実施形態のスキャン動作においては、位相差検出方式により、検出可能な周波数帯域が所定値f1以上である検波フィルタを用いたデフォーカス量の検出ができたか否かを判断した(ステップS9)後に、コントラスト検出方式により合焦位置の検出ができたか否かの判断を行う(ステップS10)ことで、位相差検出方式とコントラスト検出方式とで同時期に、位相差検出方式による、検出可能な周波数帯域が所定値f1以上である検波フィルタを用いたデフォーカス量の検出、およびコントラスト検出方式による合焦位置の検出ができた場合に、位相差検出方式による焦点検出結果を、コントラスト検出方式による焦点検出結果よりも優先して、採用するものである。   In the scanning operation of the present embodiment, the above-described steps S9 to S11 are repeatedly executed to detect the defocus amount by the phase difference detection method while the focus lens 32 is scan-driven at a predetermined driving speed. And the detection of the in-focus position by the contrast detection method is simultaneously executed at predetermined intervals. Then, as a result of repeatedly executing steps S9 to S11 described above, the defocus amount detection using the detection filter whose detectable frequency band is equal to or greater than the predetermined value f1 among the phase difference detection method and the contrast detection method. Alternatively, the focus lens 32 is driven to the in-focus position using the focus detection result based on the detection method in which the in-focus position can be detected. Further, as described above, in the scanning operation of the present embodiment, whether or not the defocus amount is detected using the detection filter whose detectable frequency band is equal to or greater than the predetermined value f1 by the phase difference detection method. After the determination (step S9), it is determined whether or not the in-focus position has been detected by the contrast detection method (step S10), thereby detecting the phase difference at the same time in the phase difference detection method and the contrast detection method. Focus detection result by phase difference detection method when detection of defocus amount using detection filter having detectable frequency band equal to or greater than predetermined value f1 by method and detection of focus position by contrast detection method Is adopted in preference to the focus detection result by the contrast detection method.

そのため、本実施形態によれば、位相差検出方式により撮影光学系の焦点状態の検出がし難い場合(たとえば、反射率が同じで、異なる色の被写体を撮影する場合や、低輝度被写体を撮影する場合)や、コントラスト検出方式により撮影光学系の焦点状態の検出がし難い場合(たとえば、輝度が低い被写体を撮影する場合)のいずれの場合でも、撮影光学系の焦点検出を適切に行なうことができる。また、本実施形態によれば、位相差検出方式によるデフォーカス量の検出、およびコントラスト検出方式による合焦位置の検出を同時に実行し、先に焦点検出ができた方式により、撮影光学系の焦点調節を行なうため、従来技術(すなわち、位相差検出方式により合焦位置近傍までフォーカスレンズ32を駆動し、次いで、合焦位置近でコントラスト検出方式による合焦位置の検出を行う技術)と比較して、撮影光学系の焦点調節を短い時間で行なうことができる。   Therefore, according to the present embodiment, when it is difficult to detect the focus state of the photographing optical system by the phase difference detection method (for example, when photographing a subject having a different reflectance and a different color, or photographing a low-luminance subject) The focus detection of the photographic optical system is appropriately performed in both cases where it is difficult to detect the focus state of the photographic optical system using a contrast detection method (for example, when shooting a subject with low brightness). Can do. In addition, according to the present embodiment, the defocus amount detection by the phase difference detection method and the in-focus position detection by the contrast detection method are simultaneously performed, and the focus of the photographing optical system is detected by the method in which the focus detection can be performed first. Compared with the conventional technique (that is, a technique in which the focus lens 32 is driven to the vicinity of the in-focus position by the phase difference detection method and then the in-focus position is detected in the vicinity of the in-focus position by the contrast detection method). Thus, the focus adjustment of the photographing optical system can be performed in a short time.

一方、ステップS11において、所定の駆動範囲について、スキャン動作の実行が完了していると判定された場合には、ステップS12に進む。ステップS12では、スキャン動作を行なった結果、位相差検出方式およびコントラスト検出方式のいずれの方式によっても、焦点検出を行うことができなかったため、スキャン動作の終了処理が行なわれ、次いで、ステップS13に進み、非合焦処理が行なわれる。非合焦処理としては、たとえば、非合焦を示す表示を、電子ビューファインダ26に表示するとともに、フォーカスレンズ32を予め定められた所定の位置に駆動させることにより実行される。   On the other hand, if it is determined in step S11 that the scan operation has been completed for the predetermined drive range, the process proceeds to step S12. In step S12, as a result of performing the scanning operation, focus detection could not be performed by any of the phase difference detection method and the contrast detection method, so that the scanning operation end processing is performed, and then in step S13 Advancing and out-of-focus processing is performed. As the out-of-focus process, for example, a display indicating out-of-focus is displayed on the electronic viewfinder 26 and the focus lens 32 is driven to a predetermined position.

以上のように、本実施形態に係るカメラ1は動作する。   As described above, the camera 1 according to this embodiment operates.

なお、上述した動作例では、人物の顔を撮影するための人物撮影モードが選択されている場合を例示して説明したが、人物撮影モード以外にも、たとえば、マクロ撮影するためのマクロ撮影モード、または風景を撮影するための風景撮影モードが選択されている場合にも、同様に、デフォーカス量を算出する際に用いられた検波フィルタの検出可能な周波数帯域が、予め定められた所定値f2(ただし、f2>f1)以上ある場合のみ、検出されたデフォーカス量に基づいて、位相差検出方式により合焦駆動をさせ、デフォーカス量を算出する際に用いられた検波フィルタの検出可能な周波数帯域が、予め定められた所定値f2未満である場合には、スキャン動作に移行するような構成とすることができる。この場合においては、所定値f2としては、マクロ撮影モードまたは風景撮影モードにおいて、被写体の空間周波数が十分に高いものと判断できるような値に設定すればよく、特に限定されいなが、たとえば、カメラ制御部21に記憶されている検波周波数帯域の異なる複数の検波フィルタの数が10個である場合には、検波周波数帯域が低い方から順に10個目までの検波フィルタを用いてデフォーカス量が検出された場合には、被写体の空間周波数が低く、スキャン動作に移行するような構成とすることができる。言い換えれば、検波周波数帯域が高い方から順に5個目までの検波フィルタを用いてデフォーカス量が検出された場合には、被写体の空間周波数が十分に高く、検出されたデフォーカス量に基づいて、位相差検出方式による合焦動作を実行するような構成とすることができる。また、マクロ撮影モードおよび風景撮影モードのいずれにおいも、所定値f2として同じ値を用いてもよいし、あるいは、異なる値を用いてもよい。   In the above-described operation example, the case where the person shooting mode for shooting a person's face has been selected has been described as an example. However, in addition to the person shooting mode, for example, a macro shooting mode for macro shooting is used. Similarly, when a landscape shooting mode for shooting a landscape is selected, the frequency band that can be detected by the detection filter used when calculating the defocus amount is similarly set to a predetermined value. Only when there is f2 (where f2> f1) or more, based on the detected defocus amount, focusing detection is performed by the phase difference detection method, and the detection filter used when calculating the defocus amount can be detected. If the frequency band is less than a predetermined value f2, it can be configured to shift to a scanning operation. In this case, the predetermined value f2 may be set to a value that can determine that the spatial frequency of the subject is sufficiently high in the macro shooting mode or the landscape shooting mode, and is not particularly limited. When the number of the plurality of detection filters having different detection frequency bands stored in the control unit 21 is 10, the defocus amount is determined using the tenth detection filters in order from the lowest detection frequency band. When it is detected, the spatial frequency of the subject is low, and it can be configured to shift to a scanning operation. In other words, when the defocus amount is detected using the fifth detection filter in order from the highest detection frequency band, the spatial frequency of the subject is sufficiently high, and based on the detected defocus amount. The focusing operation by the phase difference detection method can be executed. In either the macro shooting mode or the landscape shooting mode, the same value may be used as the predetermined value f2, or different values may be used.

また、上述した動作例では、予め、操作部28を介して、人物撮影モードが選択されている場合を例示して説明したが、制御部21により、撮像素子22により取得した撮影画像に基づいて、人物撮影モードやその他の撮影モード(たとえば、マクロ撮影モードや、風景撮影モード)に自動的に設定されるような構成とすることももちろん可能である。   Further, in the above-described operation example, the case where the person photographing mode is selected in advance via the operation unit 28 has been described as an example. However, based on the photographed image acquired by the imaging element 22 by the control unit 21. Of course, it is possible to adopt a configuration in which a person photographing mode and other photographing modes (for example, a macro photographing mode and a landscape photographing mode) are automatically set.

本実施形態においては、位相差検出方式により検出されたデフォーカス量について、デフォーカス量を算出する際に用いられた検波フィルタの検出可能な周波数帯域が、予め定められた所定値以上であるか否かを判定し、所定値以上である場合には、検出されたデフォーカス量に基づいて、位相差検出方式により合焦駆動を行い、一方、所定値未満である場合には、フォーカスレンズ32を所定の駆動速度でスキャン駆動させながら、位相差検出方式による合焦位置の検出と、コントラスト検出方式による合焦位置の検出とを、所定の間隔で、同時に実行するスキャン動作を実行する。そのため、本実施形態によれば、デフォーカス量が、人物の顔のうち肌の部分などの空間周波数が低い低周波成分に基づくものである場合に、このような低周波成分に基づくデフォーカス量により合焦動作を行なった場合における不具合、たとえば、本来ピントを合わせたい目にピントが合わず、そのため、ピント精度が十分に得られない場合が多いという問題や、低周波成分に基づいて、焦点検出を行うものであるため、そもそも焦点検出精度が低いものとなってしまうという問題の発生を有効に防止することができる。   In this embodiment, for the defocus amount detected by the phase difference detection method, is the frequency band detectable by the detection filter used when calculating the defocus amount equal to or greater than a predetermined value? If it is greater than or equal to a predetermined value, focus driving is performed by the phase difference detection method based on the detected defocus amount. On the other hand, if it is less than the predetermined value, the focus lens 32 Are scanned at a predetermined driving speed, and a scanning operation is performed in which the detection of the in-focus position by the phase difference detection method and the in-focus position detection by the contrast detection method are simultaneously performed at predetermined intervals. Therefore, according to the present embodiment, when the defocus amount is based on a low frequency component having a low spatial frequency such as a skin portion of a human face, the defocus amount based on such a low frequency component is used. If the focus operation is not performed properly, for example, the focus is not focused on the target focus, and the focus may not be sufficient. Since the detection is performed, it is possible to effectively prevent the problem that the focus detection accuracy is low in the first place.

特に、本実施形態によれば、デフォーカス量を算出する際に用いられた検波フィルタの検出可能な周波数帯域が、予め定められた所定値未満である場合に、上述したスキャン動作を実行するため、このような場合でも、ピント精度を十分に高いものとすることができる。加えて、本実施形態によれば、デフォーカス量を算出する際に用いられた検波フィルタの検出可能な周波数帯域が、予め定められた所定値以上である場合のみ、すなわち、空間周波数が高い高周波成分(たとえば、人物の顔の目の部分等)に基づくデフォーカス量である場合のみ、デフォーカス量に基づいて、位相差検出方式による合焦駆動を実行するため、位相差検出方式により合焦動作を実行した際における、ピント精度を十分なものとすることができる。   In particular, according to this embodiment, when the frequency band that can be detected by the detection filter used when calculating the defocus amount is less than a predetermined value, the above-described scanning operation is performed. Even in such a case, the focus accuracy can be made sufficiently high. In addition, according to the present embodiment, only when the frequency band that can be detected by the detection filter used when calculating the defocus amount is equal to or greater than a predetermined value, that is, a high frequency with a high spatial frequency. Only when the defocus amount is based on a component (for example, an eye part of a person's face), focusing by the phase difference detection method is executed based on the defocus amount, and thus the focus is achieved by the phase difference detection method. When the operation is executed, the focus accuracy can be sufficient.

なお、以上説明した実施形態は、本発明の理解を容易にするために記載されたものであって、本発明を限定するために記載されたものではない。したがって、上記の実施形態に開示された各要素は、本発明の技術的範囲に属する全ての設計変更や均等物をも含む趣旨である。   The embodiment described above is described for facilitating the understanding of the present invention, and is not described for limiting the present invention. Therefore, each element disclosed in the above embodiment is intended to include all design changes and equivalents belonging to the technical scope of the present invention.

たとえば、上述した本実施形態においては、位相差検出方式により検出されたデフォーカス量について、デフォーカス量を算出する際に用いられた検波フィルタの検出可能な周波数帯域が、予め定められた所定値未満である場合には、スキャン動作を実行する構成を例示したが、スキャン動作を実行せずに、位相差検出方式により検出されたデフォーカス量に基づく、フォーカスレンズ32の駆動を禁止する処理を行なうような構成としてもよい。そして、このように、フォーカスレンズ32の駆動を禁止する処理を行なった場合には、位相差検出方式によるデフォーカス量の検出を再度行い、デフォーカス量を算出する際に用いられた検波フィルタの検出可能な周波数帯域が、予め定められた所定値以上となった場合に、位相差検出方式により検出されたデフォーカス量に基づく、フォーカスレンズ32の駆動を許可し、これにより、位相差検出方式による合焦駆動を実行するような構成とすればよい。   For example, in the above-described embodiment, for the defocus amount detected by the phase difference detection method, the frequency band that can be detected by the detection filter used when calculating the defocus amount is a predetermined value. In the case where it is less, the configuration in which the scan operation is executed is exemplified, but the process of prohibiting the driving of the focus lens 32 based on the defocus amount detected by the phase difference detection method without executing the scan operation is performed. It is good also as a structure which performs. When the process of prohibiting the driving of the focus lens 32 is performed as described above, the detection of the defocus amount used when calculating the defocus amount is performed again by detecting the defocus amount by the phase difference detection method. When the detectable frequency band is equal to or greater than a predetermined value, the driving of the focus lens 32 based on the defocus amount detected by the phase difference detection method is permitted, thereby the phase difference detection method. It is sufficient to adopt a configuration in which focusing drive by is executed.

また、上述した実施形態においては、デフォーカス量を算出する際に用いられた検波フィルタの検出可能な周波数帯域が、予め定められた所定値未満である場合に、スキャン動作を実行するような構成を例示したが、たとえば、検出されたデフォーカス量の信頼性が所定値未満である場合には、デフォーカス量を算出する際に用いられた検波フィルタの検出可能な周波数帯域が、予め定められた所定値以上であっても、スキャン動作を実行するような構成としてもよい。あるいは、このような場合に、スキャン動作を実行する代わりに、位相差検出方式により検出されたデフォーカス量に基づく、フォーカスレンズ32の駆動を禁止する処理を行なうような構成としてもよい。なお、デフォーカス量の信頼性が所定値未満である場合としては、たとえば、検出されたデフォーカス量に基づいて、合焦位置が、光軸方向のうち無限遠側に存在するか至近側に存在するかを判断できるに留まるような値に設定することができる。   In the above-described embodiment, the scan operation is performed when the detectable frequency band of the detection filter used when calculating the defocus amount is less than a predetermined value. However, for example, when the reliability of the detected defocus amount is less than a predetermined value, the detectable frequency band of the detection filter used when calculating the defocus amount is determined in advance. Even if the value is equal to or greater than the predetermined value, the scanning operation may be executed. Alternatively, in such a case, instead of executing the scan operation, a process for prohibiting the driving of the focus lens 32 based on the defocus amount detected by the phase difference detection method may be performed. In addition, as a case where the reliability of the defocus amount is less than a predetermined value, for example, based on the detected defocus amount, the in-focus position exists on the infinity side in the optical axis direction or on the close side. The value can be set so that it can be determined whether or not it exists.

また、上述した実施形態において、光学系の焦点状態の検出を行うための焦点検出エリアAFPを決定する際において、人物の顔の位置に対応する焦点検出位置が複数検出された場合に、複数の焦点検出位置から、光学系の焦点状態の検出を行うための焦点検出エリアAFPを選択する際に、デフォーカス量を算出する際に用いられた検波フィルタの検出可能な周波数帯域が、予め定められた所定値未満であるような焦点検出位置を除いて、焦点検出エリアAFPを選択するような構成としてもよい。このような構成を採用することにより、人物の顔のうち肌の部分などの空間周波数が低い低周波成分を捕捉している焦点検出位置を予め除外することができ、これにより焦点検出に要する時間の短縮を図ることが可能となる。   In the above-described embodiment, when a plurality of focus detection positions corresponding to the position of the person's face are detected when determining the focus detection area AFP for detecting the focus state of the optical system, a plurality of focus detection positions are detected. When the focus detection area AFP for detecting the focus state of the optical system is selected from the focus detection position, a frequency band that can be detected by the detection filter used for calculating the defocus amount is determined in advance. Alternatively, the focus detection area AFP may be selected except for the focus detection position that is less than the predetermined value. By adopting such a configuration, it is possible to exclude in advance a focus detection position that captures a low-frequency component having a low spatial frequency, such as a skin portion, of a human face, and thereby the time required for focus detection Can be shortened.

さらに、上述した実施形態では、デフォーカス量を算出する際に用いられた検波フィルタの検出可能な周波数帯域が、予め定められた所定値以上である場合に、検出されたデフォーカス量に基づいて、位相差検出方式により合焦駆動を行い、所定値未満である場合に、スキャン動作を実行するような構成を例示したが、このような構成に代えて、あるいは、このような構成とともに、デフォーカス量の値が予め定められた所定値df1以上であり、かつ、該デフォーカス量を算出する際に用いられた検波フィルタの検出可能な周波数帯域が、予め定められた所定値f3(f3>f2>f1)以上である場合に、スキャン動作を実行するような構成としてもよい。すなわち、デフォーカス量の値が予め定められた所定値df1以上と比較的大きく、そのため、ボケ量が大きいため、該デフォーカス量を算出する際に用いる検波フィルタとしては、比較的低い周波数帯域を検出可能なフィルタが用いられると考えられる一方で、高周波成分を検出可能な高い周波数帯域を検出可能な検波フィルタが用いられた場合には、得られたデフォーカス量は極めて信頼性が低いものと判断することができる。よって、このような場合には、検出されたデフォーカス量に基づく合焦駆動を実行せず、代わりにスキャン駆動を実行することで、儀合焦状態となってしまうことを有効に防止しながら、高いピント精度を得ることができる。なお、所定値df1としては、特に限定されず、ボケ量が十分に大きいと判断できるような値に設定することができ、絞り34の絞り値に応じて、変更可能とすることができる。また、所定値f3としては、特に限定されないが、所定値f3以上の周波数帯域を検出可能な検波フィルタを用いることにより、十分に周波数が高い高周波成分を検出できるような値に設定すればよい。   Furthermore, in the above-described embodiment, when the frequency band that can be detected by the detection filter used when calculating the defocus amount is equal to or larger than a predetermined value, the detected defocus amount is based on the detected defocus amount. In this example, the focus driving is performed by the phase difference detection method, and the scan operation is executed when it is less than the predetermined value. The value of the focus amount is greater than or equal to a predetermined value df1, and the detectable frequency band of the detection filter used when calculating the defocus amount is a predetermined value f3 (f3>). When f2> f1) or more, the configuration may be such that the scan operation is executed. That is, the value of the defocus amount is relatively large as a predetermined value df1 or more, and therefore the amount of blur is large. Therefore, a detection filter used for calculating the defocus amount has a relatively low frequency band. While a detectable filter is considered to be used, when a detection filter capable of detecting a high frequency band capable of detecting high frequency components is used, the obtained defocus amount is considered to be extremely unreliable. Judgment can be made. Therefore, in such a case, the focus drive based on the detected defocus amount is not executed, but the scan drive is executed instead, while effectively preventing the in-focus state. High focus accuracy can be obtained. Note that the predetermined value df1 is not particularly limited, and can be set to a value at which the amount of blur can be determined to be sufficiently large, and can be changed according to the aperture value of the aperture 34. The predetermined value f3 is not particularly limited, but may be set to a value that can detect a high-frequency component having a sufficiently high frequency by using a detection filter capable of detecting a frequency band equal to or higher than the predetermined value f3.

1…デジタルカメラ
2…カメラ本体
21…カメラ制御部
22…撮像素子
221…撮像画素
222a,222b…焦点検出画素
3…レンズ鏡筒
32…フォーカスレンズ
36…フォーカスレンズ駆動モータ
37…レンズ制御部
DESCRIPTION OF SYMBOLS 1 ... Digital camera 2 ... Camera body 21 ... Camera control part 22 ... Imaging device 221 ... Imaging pixel 222a, 222b ... Focus detection pixel 3 ... Lens barrel 32 ... Focus lens 36 ... Focus lens drive motor 37 ... Lens control part

Claims (14)

焦点調節光学系を有する光学系による像を撮像し、撮像した像に対応する画像信号を出力する撮像部と、
位相差を用いて、前記光学系による像面のずれ量を検出することで、前記光学系の焦点状態を検出する位相差検出部と、
前記撮像部により出力された前記画像信号に基づいて、前記光学系による像のコントラストに関する評価値を算出することで、前記光学系の焦点状態を検出するコントラスト検出部と、
前記位相差検出部による焦点状態の検出に用いられ、検出可能な周波数帯域の異なる複数のフィルタを記憶する記憶部と、
撮影シーンを判定するシーン判定部と、
前記光学系の光軸方向に、前記焦点調節光学系を駆動させる駆動部と、
前記駆動部を制御することで、前記焦点調節光学系の駆動を制御する制御部と、を備え、
前記位相差検出部は、位相差を用いて、前記光学系による像面のずれ量に対応する像ずれ信号を取得し、前記記憶部に記憶された前記複数のフィルタを用いて、前記取得した像ずれ信号をフィルタ処理し、前記複数のフィルタで処理された複数のフィルタ処理信号を算出した後、前記複数のフィルタ処理信号の算出に用いた複数のフィルタのうち、前記取得した像ずれ信号に適した周波数帯域を検出可能なフィルタを選択し、前記複数のフィルタ処理信号のうち、前記選択されたフィルタを用いて得られたフィルタ処理信号に基づいて、前記ずれ量を検出し、
前記制御部は、前記位相差検出部に前記光学系の焦点状態の検出を行わせた結果、前記位相差検出部により選択されたフィルタの検出可能な周波数帯域が、前記シーン判定部により判定された撮影シーンに対応する特定周波数帯域と異なる周波数帯域であるか否かの判定を行ない、前記選択されたフィルタの周波数帯域が、前記特定周波数帯域と異なる周波数帯域である場合には、前記駆動部に、前記焦点調節光学系を所定の方向に駆動させながら、前記位相差検出部および前記コントラスト検出部に前記光学系の焦点状態の検出を行わせるスキャン駆動を実行することを特徴とする焦点検出装置。
An imaging unit that captures an image by an optical system having a focus adjustment optical system and outputs an image signal corresponding to the captured image;
A phase difference detection unit that detects a focal state of the optical system by detecting a shift amount of an image plane by the optical system using a phase difference; and
A contrast detection unit that detects a focus state of the optical system by calculating an evaluation value related to the contrast of the image by the optical system based on the image signal output by the imaging unit;
A storage unit that stores a plurality of filters having different frequency bands that can be detected and used for detection of a focus state by the phase difference detection unit;
A scene determination unit for determining a shooting scene;
A drive unit that drives the focus adjustment optical system in the optical axis direction of the optical system;
A controller that controls the drive of the focus adjustment optical system by controlling the drive unit, and
The phase difference detection unit acquires an image shift signal corresponding to an image plane shift amount by the optical system using a phase difference, and acquires the image shift signal using the plurality of filters stored in the storage unit. After filtering the image shift signal and calculating a plurality of filter processing signals processed by the plurality of filters, among the plurality of filters used for calculating the plurality of filter processing signals, the acquired image shift signal A filter capable of detecting a suitable frequency band is selected, and the deviation amount is detected based on a filter processing signal obtained using the selected filter among the plurality of filter processing signals,
As a result of causing the phase difference detection unit to detect the focus state of the optical system, the control unit determines, by the scene determination unit, a frequency band that can be detected by the filter selected by the phase difference detection unit. Whether the frequency band of the selected filter is a frequency band different from the specific frequency band is determined. In addition, the focus detection is performed by causing the phase difference detection unit and the contrast detection unit to detect the focus state of the optical system while driving the focus adjustment optical system in a predetermined direction. apparatus.
焦点調節光学系を有する光学系による像を撮像し、撮像した像に対応する画像信号を出力する撮像部と、
位相差を用いて、前記光学系による像面のずれ量を検出することで、前記光学系の焦点状態を検出する位相差検出部と、
前記撮像部により出力された前記画像信号に基づいて、前記光学系による像のコントラストに関する評価値を算出することで、前記光学系の焦点状態を検出するコントラスト検出部と、
前記位相差検出部による焦点状態の検出に用いられ、検出可能な周波数帯域の異なる複数のフィルタを記憶する記憶部と、
撮影シーンを判定するシーン判定部と、
前記光学系の光軸方向に、前記焦点調節光学系を駆動させる駆動部と、
前記駆動部を制御することで、前記焦点調節光学系の駆動を制御する制御部と、を備え、
前記位相差検出部は、位相差を用いて、前記光学系による像面のずれ量に対応する像ずれ信号を取得し、前記複数のフィルタのうち、前記像ずれ信号に適した周波数帯域を検出可能なフィルタを選択し、前記選択されたフィルタにより前記取得した像ずれ信号をフィルタ処理することにより得られたフィルタ処理信号に基づいて、前記ずれ量を検出し、
前記制御部は、前記位相差検出部に前記光学系の焦点状態の検出を行わせた結果、前記位相差検出部により選択されたフィルタの検出可能な周波数帯域が、前記シーン判定部により判定された撮影シーンに対応する特定周波数帯域と異なる周波数帯域であるか否かの判定を行ない、前記選択されたフィルタの周波数帯域が、前記特定周波数帯域と異なる周波数帯域である場合には、前記駆動部に、前記焦点調節光学系を所定の方向に駆動させながら、前記位相差検出部および前記コントラスト検出部に前記光学系の焦点状態の検出を行わせるスキャン駆動を実行することを特徴とする焦点検出装置。
An imaging unit that captures an image by an optical system having a focus adjustment optical system and outputs an image signal corresponding to the captured image;
A phase difference detection unit that detects a focal state of the optical system by detecting a shift amount of an image plane by the optical system using a phase difference; and
A contrast detection unit that detects a focus state of the optical system by calculating an evaluation value related to the contrast of the image by the optical system based on the image signal output by the imaging unit;
A storage unit that stores a plurality of filters having different frequency bands that can be detected and used for detection of a focus state by the phase difference detection unit;
A scene determination unit for determining a shooting scene;
A drive unit that drives the focus adjustment optical system in the optical axis direction of the optical system;
A controller that controls the drive of the focus adjustment optical system by controlling the drive unit, and
The phase difference detection unit acquires an image shift signal corresponding to an image plane shift amount by the optical system using the phase difference, and detects a frequency band suitable for the image shift signal from the plurality of filters. Select a possible filter, detect the shift amount based on a filter processing signal obtained by filtering the acquired image shift signal by the selected filter,
As a result of causing the phase difference detection unit to detect the focus state of the optical system, the control unit determines, by the scene determination unit, a frequency band that can be detected by the filter selected by the phase difference detection unit. Whether the frequency band of the selected filter is a frequency band different from the specific frequency band is determined. In addition, the focus detection is performed by causing the phase difference detection unit and the contrast detection unit to detect the focus state of the optical system while driving the focus adjustment optical system in a predetermined direction. apparatus.
焦点調節光学系を有する光学系による像を撮像し、撮像した像に対応する画像信号を出力する撮像部と、
位相差を用いて、前記光学系による像面のずれ量を検出することで、前記光学系の焦点状態を検出する位相差検出部と、
前記位相差検出部による焦点状態の検出に用いられ、検出可能な周波数帯域の異なる複数のフィルタを記憶する記憶部と、
撮影シーンを判定するシーン判定部と、
前記光学系の光軸方向に、前記焦点調節光学系を駆動させる駆動部と、
前記駆動部を制御することで、前記焦点調節光学系の駆動を制御する制御部と、を備え、
前記位相差検出部は、位相差を用いて、前記光学系による像面のずれ量に対応する像ずれ信号を取得し、前記記憶部に記憶された前記複数のフィルタを用いて、前記取得した像ずれ信号をフィルタ処理し、前記複数のフィルタで処理された複数のフィルタ処理信号を算出した後、前記複数のフィルタ処理信号の算出に用いた複数のフィルタのうち、前記取得した像ずれ信号に適した周波数帯域を検出可能なフィルタを選択し、前記複数のフィルタ処理信号のうち、前記選択されたフィルタを用いて得られたフィルタ処理信号に基づいて、前記ずれ量を検出し、
前記制御部は、前記位相差検出部に前記光学系の焦点状態の検出を行わせた結果、前記位相差検出部により選択されたフィルタの検出可能な周波数帯域が、前記シーン判定部により判定された撮影シーンに対応する特定周波数帯域と異なる周波数帯域であるか否かの判定を行ない、前記選択されたフィルタの周波数帯域が、前記特定周波数帯域と異なる周波数帯域である場合には、前記位相差検出部により検出された前記ずれ量に基づく制御を禁止することを特徴とする焦点検出装置。
An imaging unit that captures an image by an optical system having a focus adjustment optical system and outputs an image signal corresponding to the captured image;
A phase difference detection unit that detects a focal state of the optical system by detecting a shift amount of an image plane by the optical system using a phase difference; and
A storage unit that stores a plurality of filters having different frequency bands that can be detected and used for detection of a focus state by the phase difference detection unit;
A scene determination unit for determining a shooting scene;
A drive unit that drives the focus adjustment optical system in the optical axis direction of the optical system;
A controller that controls the drive of the focus adjustment optical system by controlling the drive unit, and
The phase difference detection unit acquires an image shift signal corresponding to an image plane shift amount by the optical system using a phase difference, and acquires the image shift signal using the plurality of filters stored in the storage unit. After filtering the image shift signal and calculating a plurality of filter processing signals processed by the plurality of filters, among the plurality of filters used for calculating the plurality of filter processing signals, the acquired image shift signal A filter capable of detecting a suitable frequency band is selected, and the deviation amount is detected based on a filter processing signal obtained using the selected filter among the plurality of filter processing signals,
As a result of causing the phase difference detection unit to detect the focus state of the optical system, the control unit determines, by the scene determination unit, a frequency band that can be detected by the filter selected by the phase difference detection unit. Whether the frequency band of the selected filter is a frequency band different from the specific frequency band, and whether the frequency band of the selected filter is different from the specific frequency band. A focus detection apparatus that prohibits control based on the amount of deviation detected by a detection unit.
焦点調節光学系を有する光学系による像を撮像し、撮像した像に対応する画像信号を出力する撮像部と、
位相差を用いて、前記光学系による像面のずれ量を検出することで、前記光学系の焦点状態を検出する位相差検出部と、
前記位相差検出部による焦点状態の検出に用いられ、検出可能な周波数帯域の異なる複数のフィルタを記憶する記憶部と、
撮影シーンを判定するシーン判定部と、
前記光学系の光軸方向に、前記焦点調節光学系を駆動させる駆動部と、
前記駆動部を制御することで、前記焦点調節光学系の駆動を制御する制御部と、を備え、
前記位相差検出部は、位相差を用いて、前記光学系による像面のずれ量に対応する像ずれ信号を取得し、前記複数のフィルタのうち、前記像ずれ信号に適した周波数帯域を検出可能なフィルタを選択し、前記選択されたフィルタにより前記取得した像ずれ信号をフィルタ処理することにより得られたフィルタ処理信号に基づいて、前記ずれ量を検出し、
前記制御部は、前記位相差検出部に前記光学系の焦点状態の検出を行わせた結果、前記位相差検出部により選択されたフィルタの検出可能な周波数帯域が、前記シーン判定部により判定された撮影シーンに対応する特定周波数帯域と異なる周波数帯域であるか否かの判定を行ない、前記選択されたフィルタの周波数帯域が、前記特定周波数帯域と異なる周波数帯域である場合には、前記位相差検出部により検出された前記ずれ量に基づく制御を禁止することを特徴とする焦点検出装置。
An imaging unit that captures an image by an optical system having a focus adjustment optical system and outputs an image signal corresponding to the captured image;
A phase difference detection unit that detects a focal state of the optical system by detecting a shift amount of an image plane by the optical system using a phase difference; and
A storage unit that stores a plurality of filters having different frequency bands that can be detected and used for detection of a focus state by the phase difference detection unit;
A scene determination unit for determining a shooting scene;
A drive unit that drives the focus adjustment optical system in the optical axis direction of the optical system;
A controller that controls the drive of the focus adjustment optical system by controlling the drive unit, and
The phase difference detection unit acquires an image shift signal corresponding to an image plane shift amount by the optical system using the phase difference, and detects a frequency band suitable for the image shift signal from the plurality of filters. Select a possible filter, detect the shift amount based on a filter processing signal obtained by filtering the acquired image shift signal by the selected filter,
As a result of causing the phase difference detection unit to detect the focus state of the optical system, the control unit determines, by the scene determination unit, a frequency band that can be detected by the filter selected by the phase difference detection unit. Whether the frequency band of the selected filter is a frequency band different from the specific frequency band, and whether the frequency band of the selected filter is different from the specific frequency band. A focus detection apparatus that prohibits control based on the amount of deviation detected by a detection unit.
請求項1〜4のいずれかに記載の焦点検出装置において、
前記制御部は、前記位相差検出部により選択されたフィルタの周波数帯域が、前記特定周波数帯域内にある場合には、前記駆動部に、前記位相差検出部により検出されたずれ量に基づいて、前記焦点調節光学系の駆動を行なわせることを特徴とする焦点検出装置。
In the focus detection apparatus in any one of Claims 1-4,
When the frequency band of the filter selected by the phase difference detection unit is within the specific frequency band, the control unit causes the drive unit to determine whether the frequency difference is detected by the phase difference detection unit. A focus detection apparatus for driving the focus adjustment optical system.
請求項1〜5のいずれかに記載の焦点検出装置において、
前記シーン判定部は、操作部材を介してユーザにより設定されたシーン、または、前記撮像部により撮像された撮像画像に基づいて、撮影シーンの判定を行なうことを特徴とする焦点検出装置。
In the focus detection apparatus in any one of Claims 1-5,
The focus detection apparatus, wherein the scene determination unit determines a shooting scene based on a scene set by a user via an operation member or a captured image captured by the imaging unit.
請求項1〜6のいずれかに記載の焦点検出装置において、
前記制御部は、前記シーン判定部により撮影シーンが人物の顔を撮影するシーンであると判定された場合には、前記特定周波数帯域を、所定の第1閾値以上の周波数帯域に設定することを特徴とする焦点検出装置。
In the focus detection apparatus in any one of Claims 1-6,
The control unit sets the specific frequency band to a frequency band equal to or higher than a predetermined first threshold when the scene determination unit determines that the shooting scene is a scene for shooting a human face. Feature focus detection device.
請求項1〜6のいずれかに記載の焦点検出装置において、
前記制御部は、前記シーン判定部により撮影シーンが、人物の顔を撮影するシーンであると判定された場合には、前記特定周波数帯域を、所定の第1閾値以上の周波数帯域に設定し、前記シーン判定部により撮影シーンが、マクロ撮影するシーンまたは風景を撮影するシーンであると判定された場合には、前記特定周波数帯域を、前記第1閾値よりも高い所定の第2閾値以上の周波数帯域に設定することを特徴とする焦点検出装置。
In the focus detection apparatus in any one of Claims 1-6,
The control unit sets the specific frequency band to a frequency band equal to or higher than a predetermined first threshold when the scene determination unit determines that the shooting scene is a scene for shooting a human face, When the scene determination unit determines that the shooting scene is a macro shooting scene or a scene shooting scene, the specific frequency band is set to a frequency equal to or higher than a predetermined second threshold higher than the first threshold. A focus detection apparatus characterized in that a band is set.
請求項1〜8のいずれかに記載の焦点検出装置において、
前記位相差検出部は、撮影画面内に設定された複数の焦点検出位置のそれぞれについて、前記ずれ量の検出を行い、
前記制御部は、前記複数の検出位置のそれぞれについて検出された複数の前記ずれ量のうち、前記特定周波数帯域と異なる周波数帯域を検出可能なフィルタを用いて検出されたずれ量を除外して、前記位相差検出部に前記光学系の焦点状態の検出を行わせることを特徴とする焦点検出装置。
In the focus detection apparatus according to any one of claims 1 to 8,
The phase difference detection unit detects the shift amount for each of a plurality of focus detection positions set in the shooting screen,
The control unit excludes a deviation amount detected using a filter capable of detecting a frequency band different from the specific frequency band among the plurality of deviation amounts detected for each of the plurality of detection positions, A focus detection apparatus that causes the phase difference detection unit to detect a focus state of the optical system.
焦点調節光学系を有する光学系による像を撮像し、撮像した像に対応する画像信号を出力する撮像部と、
位相差を用いて、前記光学系による像面のずれ量を検出することで、前記光学系の焦点状態を検出する位相差検出部と、
前記撮像部により出力された前記画像信号に基づいて、前記光学系による像のコントラストに関する評価値を算出することで、前記光学系の焦点状態を検出するコントラスト検出部と、
前記位相差検出部による焦点状態の検出に用いられ、検出可能な周波数帯域の異なる複数のフィルタを記憶する記憶部と、
撮影シーンを判定するシーン判定部と、
前記光学系の光軸方向に、前記焦点調節光学系を駆動させる駆動部と、
前記駆動部を制御することで、前記焦点調節光学系の駆動を制御する制御部と、を備え、
前記位相差検出部は、位相差を用いて、前記光学系による像面のずれ量に対応する像ずれ信号を取得し、前記記憶部に記憶された前記複数のフィルタを用いて、前記取得した像ずれ信号をフィルタ処理し、前記複数のフィルタで処理された複数のフィルタ処理信号を算出した後、前記複数のフィルタ処理信号の算出に用いた複数のフィルタのうち、前記取得した像ずれ信号に適した周波数帯域を検出可能なフィルタを選択し、前記複数のフィルタ処理信号のうち、前記選択されたフィルタを用いて得られたフィルタ処理信号に基づいて、前記ずれ量を検出し、
前記制御部は、前記位相差検出部に前記光学系の焦点状態の検出を行わせた結果、前記位相差検出部により検出されたずれ量が、所定値以上であり、かつ、前記位相差検出部により選択されたフィルタの検出可能な周波数帯域が、所定の特定周波数帯域よりも高い周波数帯域であるか否かの判定を行ない、前記ずれ量が前記所定値以上であり、かつ、前記選択されたフィルタの検出可能な周波数帯域が、前記特定周波数帯域よりも高い周波数帯域である場合には、前記駆動部に、前記焦点調節光学系を所定の方向に駆動させながら、前記位相差検出部および前記コントラスト検出部に前記光学系の焦点状態の検出を行わせるスキャン駆動を実行することを特徴とする焦点検出装置。
An imaging unit that captures an image by an optical system having a focus adjustment optical system and outputs an image signal corresponding to the captured image;
A phase difference detection unit that detects a focal state of the optical system by detecting a shift amount of an image plane by the optical system using a phase difference; and
A contrast detection unit that detects a focus state of the optical system by calculating an evaluation value related to the contrast of the image by the optical system based on the image signal output by the imaging unit;
A storage unit that stores a plurality of filters having different frequency bands that can be detected and used for detection of a focus state by the phase difference detection unit;
A scene determination unit for determining a shooting scene;
A drive unit that drives the focus adjustment optical system in the optical axis direction of the optical system;
A controller that controls the drive of the focus adjustment optical system by controlling the drive unit, and
The phase difference detection unit acquires an image shift signal corresponding to an image plane shift amount by the optical system using a phase difference, and acquires the image shift signal using the plurality of filters stored in the storage unit. After filtering the image shift signal and calculating a plurality of filter processing signals processed by the plurality of filters, among the plurality of filters used for calculating the plurality of filter processing signals, the acquired image shift signal A filter capable of detecting a suitable frequency band is selected, and the deviation amount is detected based on a filter processing signal obtained using the selected filter among the plurality of filter processing signals,
The control unit causes the phase difference detection unit to detect the focus state of the optical system. As a result, the amount of deviation detected by the phase difference detection unit is equal to or greater than a predetermined value, and the phase difference detection It is determined whether the frequency band that can be detected by the filter selected by the unit is a frequency band higher than a predetermined specific frequency band, and the deviation amount is equal to or greater than the predetermined value, and the selected frequency band is selected. When the frequency band that can be detected by the filter is a frequency band higher than the specific frequency band, the driving unit drives the focus adjustment optical system in a predetermined direction, and the phase difference detection unit and A focus detection apparatus that performs scan driving for causing the contrast detection unit to detect a focus state of the optical system.
焦点調節光学系を有する光学系による像を撮像し、撮像した像に対応する画像信号を出力する撮像部と、
位相差を用いて、前記光学系による像面のずれ量を検出することで、前記光学系の焦点状態を検出する位相差検出部と、
前記撮像部により出力された前記画像信号に基づいて、前記光学系による像のコントラストに関する評価値を算出することで、前記光学系の焦点状態を検出するコントラスト検出部と、
前記位相差検出部による焦点状態の検出に用いられ、検出可能な周波数帯域の異なる複数のフィルタを記憶する記憶部と、
前記光学系の光軸方向に、前記焦点調節光学系を駆動させる駆動部と、
前記駆動部を制御することで、前記焦点調節光学系の駆動を制御する制御部と、を備え、
前記位相差検出部は、位相差を用いて、前記光学系による像面のずれ量に対応する像ずれ信号を取得し、検出可能な周波数帯域の異なる複数のフィルタのうち、前記像ずれ信号に適した周波数帯域を検出可能なフィルタを選択し、前記選択されたフィルタにより前記取得した像ずれ信号をフィルタ処理することにより得られたフィルタ処理信号に基づいて、前記ずれ量を検出し、
前記制御部は、前記位相差検出部に前記光学系の焦点状態の検出を行わせた結果、前記位相差検出部により検出されたずれ量が、所定値以上であり、かつ、前記位相差検出部により選択されたフィルタの検出可能な周波数帯域が、所定の特定周波数帯域よりも高い周波数帯域であるか否かの判定を行ない、前記ずれ量が前記所定値以上であり、かつ、前記選択されたフィルタの検出可能な周波数帯域が、前記特定周波数帯域よりも高い周波数帯域である場合には、前記駆動部に、前記焦点調節光学系を所定の方向に駆動させながら、前記位相差検出部および前記コントラスト検出部に前記光学系の焦点状態の検出を行わせるスキャン駆動を実行することを特徴とする焦点検出装置。
An imaging unit that captures an image by an optical system having a focus adjustment optical system and outputs an image signal corresponding to the captured image;
A phase difference detection unit that detects a focal state of the optical system by detecting a shift amount of an image plane by the optical system using a phase difference; and
A contrast detection unit that detects a focus state of the optical system by calculating an evaluation value related to the contrast of the image by the optical system based on the image signal output by the imaging unit;
A storage unit that stores a plurality of filters having different frequency bands that can be detected and used for detection of a focus state by the phase difference detection unit;
A drive unit that drives the focus adjustment optical system in the optical axis direction of the optical system;
A controller that controls the drive of the focus adjustment optical system by controlling the drive unit, and
The phase difference detection unit acquires an image shift signal corresponding to an image plane shift amount by the optical system using the phase difference, and outputs the image shift signal from a plurality of filters having different detectable frequency bands. Select a filter capable of detecting a suitable frequency band, and detect the shift amount based on a filter processing signal obtained by filtering the acquired image shift signal with the selected filter,
The control unit causes the phase difference detection unit to detect the focus state of the optical system. As a result, the amount of deviation detected by the phase difference detection unit is equal to or greater than a predetermined value, and the phase difference detection It is determined whether the frequency band that can be detected by the filter selected by the unit is a frequency band higher than a predetermined specific frequency band, and the deviation amount is equal to or greater than the predetermined value, and the selected frequency band is selected. When the frequency band that can be detected by the filter is a frequency band higher than the specific frequency band, the driving unit drives the focus adjustment optical system in a predetermined direction, and the phase difference detection unit and A focus detection apparatus that performs scan driving for causing the contrast detection unit to detect a focus state of the optical system.
請求項10または11に記載の焦点検出装置において、
前記制御部は、前記所定値を、前記光学系の絞り値に応じて設定することを特徴とする焦点検出装置。
The focus detection apparatus according to claim 10 or 11,
The focus detection apparatus, wherein the control unit sets the predetermined value according to an aperture value of the optical system.
請求項1〜12のいずれかに記載の焦点検出装置において、
前記位相差検出部が、前記撮像部の受光面に備えられていることを特徴とする焦点検出装置。
In the focus detection apparatus according to any one of claims 1 to 12,
The focus detection device, wherein the phase difference detection unit is provided on a light receiving surface of the imaging unit.
請求項1〜13のいずれかに記載の焦点検出装置を備えた撮像装置。   The imaging device provided with the focus detection apparatus in any one of Claims 1-13.
JP2011200194A 2011-08-05 2011-09-14 Focus detector and imaging apparatus Withdrawn JP2013054326A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011200194A JP2013054326A (en) 2011-08-05 2011-09-14 Focus detector and imaging apparatus

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP2011171661 2011-08-05
JP2011171661 2011-08-05
JP2011200194A JP2013054326A (en) 2011-08-05 2011-09-14 Focus detector and imaging apparatus

Publications (1)

Publication Number Publication Date
JP2013054326A true JP2013054326A (en) 2013-03-21

Family

ID=48131333

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011200194A Withdrawn JP2013054326A (en) 2011-08-05 2011-09-14 Focus detector and imaging apparatus

Country Status (1)

Country Link
JP (1) JP2013054326A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2019091090A (en) * 2013-05-31 2019-06-13 株式会社ニコン Detector, imaging element, and imaging device
JP2022121474A (en) * 2020-06-29 2022-08-19 株式会社ニコン Focus detector, camera, and electronic apparatus

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2019091090A (en) * 2013-05-31 2019-06-13 株式会社ニコン Detector, imaging element, and imaging device
JP2022121474A (en) * 2020-06-29 2022-08-19 株式会社ニコン Focus detector, camera, and electronic apparatus

Similar Documents

Publication Publication Date Title
JP2013025144A (en) Focus adjustment device and imaging apparatus
JP2012255910A (en) Imaging apparatus
JP2013015559A (en) Focus detector and imaging apparatus
JP5831070B2 (en) Imaging device
JP2013037101A (en) Focus detector and imaging apparatus
JP2013050690A (en) Focus adjusting device and imaging apparatus
JP5966267B2 (en) Focus adjustment device and imaging device
JP6399140B2 (en) Imaging device
JP2013003486A (en) Focus detector and imaging apparatus
JP5477344B2 (en) Focus adjustment device and imaging device provided with the same
JP5891667B2 (en) Focus adjustment device and imaging device provided with the same
JP6047861B2 (en) Focus adjustment device and camera body
JP5796388B2 (en) Focus detection apparatus and imaging apparatus
JP6127730B2 (en) Imaging device
JP6098097B2 (en) Focus adjustment device, focus detection device, and imaging device
JP2013054326A (en) Focus detector and imaging apparatus
JP2013061579A (en) Focusing device and imaging apparatus
JP6069817B2 (en) Focus adjustment device and imaging device provided with the same
JP6183482B2 (en) Focus detection apparatus and imaging apparatus
JP6035728B2 (en) Focus adjustment device and imaging device
JP5561246B2 (en) Focus adjustment device and imaging device provided with the same
JP2012181448A (en) Focusing device and imaging apparatus
JP6014977B2 (en) Focus detector, camera body, and camera
JP5402997B2 (en) Focus adjustment device and imaging device provided with the same
JP5899735B2 (en) interchangeable lens

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20141202