JP5760792B2 - Focus adjustment device and imaging device - Google Patents

Focus adjustment device and imaging device Download PDF

Info

Publication number
JP5760792B2
JP5760792B2 JP2011160701A JP2011160701A JP5760792B2 JP 5760792 B2 JP5760792 B2 JP 5760792B2 JP 2011160701 A JP2011160701 A JP 2011160701A JP 2011160701 A JP2011160701 A JP 2011160701A JP 5760792 B2 JP5760792 B2 JP 5760792B2
Authority
JP
Japan
Prior art keywords
focus
exposure
focus adjustment
optical system
control unit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2011160701A
Other languages
Japanese (ja)
Other versions
JP2013025132A (en
Inventor
宏明 高原
宏明 高原
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 JP2011160701A priority Critical patent/JP5760792B2/en
Publication of JP2013025132A publication Critical patent/JP2013025132A/en
Application granted granted Critical
Publication of JP5760792B2 publication Critical patent/JP5760792B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

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

Description

本発明は、焦点調節装置および撮像装置に関する。   The present invention relates to a focus adjustment device and an imaging device.

従来より、レリーズボタンが半押しされた後に、光学系の焦点状態の検出を行う焦点調節装置が知られている。このような焦点調節装置において、光学系の焦点状態の検出を行う際に、焦点検出に適した露出でない場合には、焦点検出に適した露出となるように露出制御を行い、焦点検出に適した露出とした後に、光学系の焦点状態の検出を行う技術が知られている(たとえば、特許文献1)。   2. Description of the Related Art Conventionally, a focus adjustment device that detects a focus state of an optical system after a release button is half-pressed is known. In such a focus adjustment device, when detecting the focus state of the optical system, if the exposure is not suitable for focus detection, exposure control is performed so that the exposure is suitable for focus detection, and it is suitable for focus detection. A technique for detecting a focus state of an optical system after exposure to light is known (for example, Patent Document 1).

特開2005−316271号公報JP 2005-316271 A

しかしながら、従来技術では、レリーズボタンが半押しされた後に、焦点検出に適した露出でない場合に、焦点検出に適した露出となるように露出制御が行われるため、レリーズボタンが半押しされてから、フォーカスレンズが駆動されるまでに、時間を要してしまう場合があった。   However, in the conventional technology, after the release button is pressed halfway, when the exposure is not suitable for focus detection, exposure control is performed so that the exposure is suitable for focus detection. In some cases, it takes time to drive the focus lens.

本発明が解決しようとする課題は、好適な焦点調節が可能な焦点調節装置を提供することである。   The problem to be solved by the present invention is to provide a focus adjustment device capable of suitable focus adjustment.

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

[1]本発明に係る焦点調節装置は、焦点調節光学系(32)を有する光学系を介した一対の光束を受光する一対の受光センサ(222a,222b)と、前記一対の受光センサの出力に基づいて、前記光学系による像面のずれ量を検出する位相差検出部(21)と、前記焦点調節光学系を光軸方向に駆動させることで、前記光学系の焦点調節を行う焦点調節部(36)と、前記焦点調節部による焦点調節を起動する起動部(28)と、前記位相差検出部により検出されたずれ量を記憶する記憶部(24)と、露光時間、撮像感度、および絞り値を含む露出制御値に基づいて、前記一対の受光センサの露出制御を行う露出制御部(21)と、前記ずれ量の信頼性の閾値である第1閾値を、前記ずれ量の信頼性が前記第1閾値以上である場合に、該ずれ量に基づいて焦点調節を行うことで焦点調節後におけるずれ量が、被写体の被写界深度の範囲内となると判断できるような閾値に設定する第1閾値設定部(21)と、前記ずれ量の信頼性の閾値である第2閾値を、前記ずれ量の信頼性が前記第2閾値未満である場合に、該ずれ量に基づいて光軸方向のうち合焦位置が存在する方向を判断できるに留まるような閾値に設定する第2閾値設定部(21)と、前記起動部により、前記焦点調節の起動が行われた場合に、前記焦点調節を起動する前に検出された前記ずれ量の信頼性が、前記第1閾値以上であるか否か、および、前記第2閾値未満であるか否かを判定する判定手段(21)と、前記焦点調節を起動する前に検出された前記ずれ量の信頼性が、前記第1閾値以上であると判定された場合に、前記露出制御部に露出制御値を変更させずに、前記焦点調節を起動する前に検出された前記ずれ量に基づいて、前記焦点調節部に前記焦点調節光学系を駆動させる第1制御部(21)と、前記焦点調節を起動する前に検出された前記ずれ量の信頼性が、前記第1閾値未満であり、かつ、前記第2閾値以上である場合には、前記光学系の絞り値を固定したまま、前記露光時間および前記撮像感度のうち少なくとも1つを変更させることで、焦点検出に適した露出となるか否かを判断し、焦点検出に適した露出となる場合には、前記露出制御部に、前記光学系の絞り値を固定したまま、前記露光時間および前記撮像感度のうち少なくとも1つを変更させて露出制御を行わせ、焦点検出に適した露出とならない場合には、前記露出制御部に、前記光学系の絞り値に加えて、前記露光時間および前記撮像感度のうち少なくとも1つを変更させて露出制御を行わせる第2制御部(21)と、前記焦点調節を起動する前に検出された前記ずれ量の信頼性が、前記第2閾値未満である場合には、前記露出制御部に、前記光学系の絞り値を固定させずに、前記絞り値、前記露光時間、および前記撮像感度のうち少なくとも1つを変更させて露出制御を行わせる第3制御部(21)と、を備えることを特徴とする。   [1] A focus adjusting apparatus according to the present invention includes a pair of light receiving sensors (222a, 222b) that receive a pair of light beams via an optical system having a focus adjusting optical system (32), and outputs of the pair of light receiving sensors. And a phase difference detector (21) for detecting the amount of deviation of the image plane by the optical system, and focus adjustment for adjusting the focus of the optical system by driving the focus adjustment optical system in the optical axis direction. Unit (36), an activation unit (28) that activates focus adjustment by the focus adjustment unit, a storage unit (24) that stores the amount of deviation detected by the phase difference detection unit, exposure time, imaging sensitivity, And an exposure control unit (21) that performs exposure control of the pair of light receiving sensors based on an exposure control value including an aperture value, and a first threshold value that is a reliability threshold value of the deviation amount, and the reliability of the deviation amount. When the sex is greater than or equal to the first threshold A first threshold value setting unit (21) that sets a threshold value so that it can be determined that the shift amount after focus adjustment is within the range of the depth of field of the subject by performing focus adjustment based on the shift amount; When the reliability of the deviation amount is less than the second threshold value, the second threshold value, which is the reliability threshold value of the deviation amount, indicates the direction in which the in-focus position exists in the optical axis direction based on the deviation amount. When the focus adjustment is activated by the second threshold value setting unit (21) that sets a threshold that can be determined and the activation unit, the shift detected before the focus adjustment is activated. Determining means (21) for determining whether or not the reliability of the quantity is equal to or greater than the first threshold and less than the second threshold, and is detected before starting the focus adjustment It is determined that the reliability of the deviation amount is not less than the first threshold value. In this case, the focus adjustment unit drives the focus adjustment optical system based on the shift amount detected before starting the focus adjustment without causing the exposure control unit to change the exposure control value. 1 control unit (21) and the reliability of the deviation detected before starting the focus adjustment is less than the first threshold and greater than or equal to the second threshold, the optical By changing at least one of the exposure time and the imaging sensitivity while fixing the aperture value of the system, it is determined whether or not the exposure is suitable for focus detection, and the exposure is suitable for focus detection. In this case, the exposure control unit performs exposure control by changing at least one of the exposure time and the imaging sensitivity while keeping the aperture value of the optical system fixed, and exposure suitable for focus detection If not, the exposure control unit In addition to the aperture value of the optical system, at least one of the exposure time and the imaging sensitivity is changed to perform exposure control, and before starting the focus adjustment. When the reliability of the detected deviation amount is less than the second threshold value, the exposure control unit does not fix the aperture value of the optical system without fixing the aperture value, the exposure time, and the A third control unit (21) for performing exposure control by changing at least one of the imaging sensitivities.

[2]上記焦点調節装置に係る発明において、前記第2制御部(21)は、前記光学系の絞り値を固定したまま、前記露光時間および前記撮像感度のうち少なくとも1つを変更させた場合に、焦点検出に最適な露出よりも所定の段数だけ明るい露出または所定の段数だけ暗い露出となる場合でも、焦点検出に適した露出となると判断し、前記露出制御部(21)に、前記光学系の絞り値を固定したまま、前記露光時間および前記撮像感度のうち少なくとも1つを変更させて露出制御を行わせるように構成することができる。   [2] In the invention according to the focus adjustment device, the second control unit (21) changes at least one of the exposure time and the imaging sensitivity while fixing the aperture value of the optical system. In addition, even when the exposure is a predetermined number of steps brighter than the exposure optimal for focus detection or the exposure is dark by a predetermined number of steps, it is determined that the exposure is suitable for focus detection, and the exposure control unit (21) transmits the optical The exposure control can be performed by changing at least one of the exposure time and the imaging sensitivity while the aperture value of the system is fixed.

[3]上記焦点調節装置に係る発明において、前記光学系による像を撮像し、撮像した像に対応する画像信号を出力する撮像部(22)と、前記撮像部により出力された前記画像信号に基づいて、前記光学系による像のコントラストに関する評価値を算出することで、前記光学系の焦点状態を検出するコントラスト検出部(21)と、をさらに備え、前記一対の受光センサ(222a,222b)は、前記撮像部の受光面に備えられるように構成することができる。   [3] In the invention relating to the focus adjustment device, an image pickup unit (22) that picks up an image by the optical system and outputs an image signal corresponding to the picked-up image, and the image signal output by the image pickup unit And a contrast detection unit (21) for detecting a focus state of the optical system by calculating an evaluation value related to the contrast of the image by the optical system, and the pair of light receiving sensors (222a, 222b). Can be configured to be provided on the light receiving surface of the imaging unit.

[4]上記焦点調節装置に係る発明において、前記位相差検出部(21)は、前記焦点調節が起動しているか否かに拘わらず、前記ずれ量の検出を行うように構成することができる。   [4] In the invention related to the focus adjustment device, the phase difference detection unit (21) can be configured to detect the shift amount regardless of whether or not the focus adjustment is activated. .

[5]本発明に係る撮像装置は、上記焦点調節装置を備えることを特徴とする。   [5] An imaging apparatus according to the present invention includes the above-described focus adjustment apparatus.

本発明によれば、好適な焦点調節が実現できる。   According to the present invention, suitable focus adjustment can be realized.

図1は、本実施形態に係るカメラを示すブロック図である。FIG. 1 is a block diagram showing a camera according to the present embodiment. 図2は、図1に示す撮像素子の撮像面における焦点検出位置を示す正面図である。FIG. 2 is a front view showing a focus detection position on the imaging surface of the imaging device shown in FIG. 図3は、図2のIII部を拡大して焦点検出画素222a,222bの配列を模式的に示す正面図である。FIG. 3 is a front view schematically showing the arrangement of the focus detection pixels 222a and 222b by enlarging the III part 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は、図3のVIII-VIII線に沿う断面図である。8 is a cross-sectional view taken along line VIII-VIII in FIG. 図9は、本実施形態に係るカメラの動作例を示すフローチャートである。FIG. 9 is a flowchart illustrating an operation example of the camera according to the present embodiment. 図10は、ステップS119のスキャン動作実行処理を示すフローチャートである。FIG. 10 is a flowchart showing the scan operation execution process in step S119.

以下、本発明の実施形態を図面に基づいて説明する。   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 rotary 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.

一方、カメラ本体2には、上記撮影光学系からの光束L1を受光する撮像素子22が、撮影光学系の予定焦点面に設けられ、その前面にシャッター23が設けられている。撮像素子22はCCDやCMOSなどのデバイスから構成され、受光した光信号を電気信号に変換してカメラ制御部21に送出する。カメラ制御部21に送出された撮影画像情報は、逐次、液晶駆動回路25に送出されて観察光学系の電子ビューファインダ(EVF)26に表示されるとともに、操作部28に備えられたレリーズボタン(不図示)が全押しされた場合には、その撮影画像情報が、記録媒体であるメモリ24に記録される。メモリ24は着脱可能なカード型メモリや内蔵型メモリの何れをも用いることができる。なお、撮像素子22の撮像面の前方には、赤外光をカットするための赤外線カットフィルタ、および画像の折り返しノイズを防止するための光学的ローパスフィルタが配置されている。撮像素子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 memory 24 that is a recording medium. As the memory 24, any of a removable card type memory and a built-in type memory can be used. An infrared cut filter for cutting infrared light and an optical low-pass filter for preventing image aliasing noise are disposed in front of the imaging surface of the image sensor 22. 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. Is output to the liquid crystal driving circuit 25 and the 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の各種動作モードを設定するための入力スイッチであり、オートフォーカスモード/マニュアルフォーカスモードの切換や、オートフォーカスモードの中でも、ワンショットモード/コンティニュアスモードの切換が行えるようになっている。ここで、ワンショットモードとは、一度調節したフォーカスレンズ32の位置を固定し、そのフォーカスレンズ位置で撮影するモードであるのに対し、コンティニュアスモードとは、フォーカスレンズ32の位置を固定することなく被写体に応じてフォーカスレンズ位置を調節するモードである。この操作部28により設定された各種モードはカメラ制御部21へ送出され、当該カメラ制御部21によりカメラ1全体の動作が制御される。また、シャッターレリーズボタンは、ボタンの半押しでONとなる第1スイッチSW1と、ボタンの全押しでONとなる第2スイッチSW2とを含む。   The operation unit 28 is a shutter release button or an input switch for the photographer to set various operation modes of the camera 1, and switches between the auto focus mode / manual focus mode and the one shot mode / continuity even in the auto focus mode. It is possible to switch between the numeric modes. Here, the one-shot mode is a mode in which the position of the focus lens 32 once adjusted is fixed and photographing is performed at the focus lens position, whereas the continuous mode is a mode in which the position of the focus lens 32 is fixed. In this mode, the focus lens position is adjusted according to the subject. 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のIII部を拡大して焦点検出画素222a,222bの配列を模式的に示す正面図である。   FIG. 2 is a front view showing the imaging surface of the image sensor 22, and FIG. 3 is a front view schematically showing the arrangement of the focus detection pixels 222a and 222b by enlarging the III part of 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の撮像面の中心、ならびに中心から左右対称位置の3箇所には、上述した撮像画素221に代えて焦点検出画素222a,222bが配列された焦点検出画素列22a,22b,22cが設けられている。そして、図3に示すように、一つの焦点検出画素列は、複数の焦点検出画素222aおよび222bが、互いに隣接して交互に、横一列(22a,22c,22c)に配列されて構成されている。本実施形態においては、焦点検出画素222aおよび222bは、ベイヤー配列された撮像画素221の緑画素Gと青画素Bとの位置にギャップを設けることなく密に配列されている。   In addition, focus detection pixel rows 22a, 22b, and 22c in which focus detection pixels 222a and 222b are arranged in place of the above-described imaging pixels 221 at the center of the image pickup surface of the image pickup element 22 and three positions that are symmetrical from the center. Is provided. As shown in FIG. 3, one focus detection pixel column includes a plurality of focus detection pixels 222 a and 222 b that are alternately arranged adjacent to each other in a horizontal row (22 a, 22 c, 22 c). Yes. 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〜22cの位置は図示する位置にのみ限定されず、何れか一箇所、二箇所にすることもでき、また、四箇所以上の位置に配置することもできる。また、実際の焦点検出に際しては、複数配置された焦点検出画素列22a〜22cの中から、撮影者が操作部28を手動操作することにより所望の焦点検出画素列を、焦点検出位置として選択することもできる。   Note that the positions of the focus detection pixel rows 22a to 22c shown in FIG. 2 are not limited to the illustrated positions, and may be any one or two, or may be arranged at four or more positions. it can. In actual focus detection, the photographer manually operates the operation unit 28 from among a plurality of focus detection pixel rows 22a to 22c, and selects a desired focus detection pixel row as a focus detection position. You can also.

図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の光電変換部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.

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

ここで、射出瞳34とは、撮影光学系の予定焦点面に配置された焦点検出画素222a,222bのマイクロレンズ2221a,2221bの前方の距離Dの位置に設定された像である。距離Dは、マイクロレンズの曲率、屈折率、マイクロレンズと光電変換部との距離などに応じて一義的に決まる値であって、この距離Dを測距瞳距離と称する。また、測距瞳341,342とは、焦点検出画素222a,222bのマイクロレンズ2221a,2221bにより、それぞれ投影された光電変換部2222a,2222bの像をいう。   Here, the exit pupil 34 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 341 and 342 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.

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

また、図8に示すように、焦点検出画素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だけ離れた射出瞳34上に投影され、その投影形状は測距瞳341,342を形成する。   As shown in FIG. 8, 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 34 separated from the lenses 2221a-1, 2221b-1, 2221a-2, 2221b-2 by the distance measurement distance D, and the projection shape forms the distance measurement pupils 341, 342.

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

図8に示すように、焦点検出画素222a−1の光電変換部2222a−1は、測距瞳341を通過し、マイクロレンズ2221a−1に向う光束AB1−1によりマイクロレンズ2221a−1上に形成される像の強度に対応した信号を出力する。同様に、焦点検出画素222a−2の光電変換部2222a−2は測距瞳341を通過し、マイクロレンズ2221a−2に向う光束AB1−2によりマイクロレンズ2221a−2上に形成される像の強度に対応した信号を出力する。   As shown in FIG. 8, the photoelectric conversion unit 2222a-1 of the focus detection pixel 222a-1 is formed on the microlens 2221a-1 by the light beam AB1-1 that passes through the distance measuring pupil 341 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 341, 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は測距瞳342を通過し、マイクロレンズ2221b−1に向う光束AB2−1によりマイクロレンズ2221b−1上に形成される像の強度に対応した信号を出力する。同様に、焦点検出画素222b−2の光電変換部2222b−2は測距瞳342を通過し、マイクロレンズ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 342, 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 342, 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の出力を、測距瞳341と測距瞳342とのそれぞれに対応した出力グループにまとめることにより、測距瞳341と測距瞳342とのそれぞれを通過する焦点検出光束が焦点検出画素列上に形成する一対の像の強度分布に関するデータが得られる。そして、この強度分布データに対し、相関演算処理または位相差検出処理などの像ズレ検出演算処理を施すことにより、いわゆる位相差検出方式による像ズレ量を検出することができる。   Then, a plurality of the above-described two kinds of focus detection pixels 222a and 222b are arranged in a straight line as shown in FIG. Of the pair of images formed on the focus detection pixel row by the focus detection light fluxes that pass through each of the distance measurement pupil 341 and the distance measurement pupil 342. Data on the distribution is obtained. Then, by applying an image shift detection calculation process such as a correlation calculation process or a phase difference detection process to the intensity distribution data, an image shift amount by a so-called phase difference detection method can be detected.

そして、得られた像ズレ量に一対の測距瞳の重心間隔に応じた変換演算を施すことにより、予定焦点面に対する現在の焦点面(予定焦点面上のマイクロレンズアレイの位置に対応した焦点検出位置における焦点面をいう。)の偏差、すなわちデフォーカス量を求めることができる。   Then, a conversion calculation is performed on the obtained image shift amount according to the center-of-gravity interval of the pair of distance measuring pupils, thereby obtaining a current focal plane with respect to the planned focal plane (the focal point corresponding to the position of the microlens array on the planned focal plane). The deviation of the focal plane at the detection position, that is, the defocus amount can be obtained.

なお、これら位相差検出方式による像ズレ量の演算と、これに基づくデフォーカス量の演算は、カメラ制御部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の動作例を説明する。図9は、本実施形態に係るカメラ1の動作例を示すフローチャートである。なお、以下の動作は、カメラ1の電源がオンされることにより開始される。また、以下においては、ワンショットモード、すなわち、一度調節したフォーカスレンズ32の位置を固定し、そのフォーカスレンズ位置で撮影するモードが選択されている場面を例示して説明を行なう。   Next, an operation example of the camera 1 according to the present embodiment will be described. FIG. 9 is a flowchart showing an operation example of the camera 1 according to the present embodiment. The following operation is started when the camera 1 is turned on. In the following, a description will be given by taking as an example a case where the one-shot mode, that is, the mode in which the focus lens 32 that has been adjusted once is fixed and the mode for photographing at the focus lens position is selected.

まず、ステップS101では、カメラ制御部21による、スルー画像の生成、および観察光学系の電子ビューファインダ26による、スルー画像の表示が開始される。具体的には、撮像素子22により露光動作が行なわれ、カメラ制御部21により、撮像画素221の画素データの読み出しが行なわれる。そして、カメラ制御部21は、読み出したデータに基づきスルー画像を生成し、生成されたスルー画像は液晶駆動回路25に送出され、観察光学系の電子ビューファインダ26に表示される。そして、これにより、接眼レンズ27を介して、ユーザは被写体の画像を視認することが可能となる。なお、スルー画像の生成、およびスルー画像の表示は、所定の間隔で繰り返し実行される。   First, in step S101, 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 visually recognize the 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.

ステップS102では、カメラ制御部21により、スルー画像生成用の露出制御が開始される。具体的には、カメラ制御部21は、撮影画面を複数の領域に分割し、分割した各領域ごとに測光を行う多分割測光(マルチパターン測光)を行うことで、撮影画面全体の輝度値Bvを算出する。そして、カメラ制御部21は、算出した撮影画面全体の輝度値Bvに基づいて、撮影画面全体で適正露出が得られるように、撮像感度Sv、露光時間Tv、および絞りAvを変更して露出制御を行う。なお、スルー画像生成時の露出制御は、所定の間隔で繰り返し実行されるが、スルー画像生成用の露出制御を行う間隔は、スルー画像の生成およびスルー画像の表示を繰り返す間隔よりも長い間隔とすることができる。例えば、スルー画像の生成およびスルー画像の表示が3回繰り返される間に、スルー画像生成用の露出制御を1回行うようにすることができる。   In step S102, the camera control unit 21 starts exposure control for generating a through image. Specifically, the camera control unit 21 divides the shooting screen into a plurality of areas, and performs multi-division metering (multi-pattern metering) in which photometry is performed for each of the divided areas, whereby the luminance value Bv of the entire shooting screen. Is calculated. Then, the camera control unit 21 changes the imaging sensitivity Sv, the exposure time Tv, and the aperture Av so as to obtain an appropriate exposure on the entire shooting screen based on the calculated luminance value Bv of the entire shooting screen. I do. Note that the exposure control at the time of generating the through image is repeatedly executed at a predetermined interval. However, the interval at which the exposure control for generating the through image is performed is longer than the interval at which the generation of the through image and the display of the through image are repeated. can do. For example, the exposure control for generating the through image can be performed once while the generation of the through image and the display of the through image are repeated three times.

ステップS103では、カメラ制御部21により、位相差検出方式によるデフォーカス量の算出処理が開始される。本実施形態では、位相差検出方式によるデフォーカス量の算出処理は、次のように行われる。すなわち、まず、撮像素子22により、撮影光学系からの光束の受光が行われ、カメラ制御部21により、撮像素子22の3つの焦点検出画素列22a〜22cを構成する各焦点検出画素222a,222bから一対の像に対応した一対の像データの読み出しが行われる。この場合、撮影者の手動操作により、特定の焦点検出位置が選択されているときは、その焦点検出位置に対応する焦点検出画素からのデータのみを読み出すような構成としてもよい。そして、カメラ制御部21は、読み出された一対の像データに基づいて像ズレ検出演算処理(相関演算処理)を実行し、3つの焦点検出画素列22a〜22cに対応する焦点検出位置における像ズレ量を演算し、さらに像ズレ量をデフォーカス量に変換する。   In step S103, the camera control unit 21 starts defocus amount calculation processing by the phase difference detection method. In the present embodiment, the defocus amount calculation process by the phase difference detection method is performed as follows. That is, first, the image sensor 22 receives a light beam from the photographing optical system, and the camera control unit 21 performs focus detection pixels 222a and 222b constituting the three focus detection pixel rows 22a to 22c of the image sensor 22. A pair of image data corresponding to the pair of images is read out. In this case, when a specific focus detection position is selected by a manual operation of the photographer, only data from focus detection pixels corresponding to the focus detection position may be read. Then, the camera control unit 21 performs image shift detection calculation processing (correlation calculation processing) based on the read pair of image data, and images at the focus detection positions corresponding to the three focus detection pixel rows 22a to 22c. The shift amount is calculated, and the image shift amount is converted into a defocus amount.

また、ステップS103において、カメラ制御部21は、算出したデフォーカス量について、デフォーカス量の信頼性の評価を行う。本実施形態において、カメラ制御部21は、たとえば、一対の像データの一致度やコントラストなどに基づいて、デフォーカス量の信頼性を、「高」、「中」、「低」、および「測距不能」の4段階で評価する。   In step S103, the camera control unit 21 evaluates the reliability of the defocus amount for the calculated defocus amount. In the present embodiment, the camera control unit 21 sets the reliability of the defocus amount to “high”, “medium”, “low”, and “measurement” based on, for example, the matching degree and contrast of a pair of image data. Evaluation is based on four levels, “distance impossible”.

具体的には、カメラ制御部21は、デフォーカス量の信頼性を評価するために、第1判定値、第2判定値、および第3判定値の3つの判定値を、カメラ制御部21のメモリに予め記憶しており、この3つの判定値を用いて、デフォーカス量の信頼性を評価する。   Specifically, the camera control unit 21 uses the three determination values of the first determination value, the second determination value, and the third determination value to evaluate the reliability of the defocus amount. The reliability of the defocus amount is evaluated using these three determination values stored in advance in the memory.

第1判定値は、デフォーカス量の信頼性が第1判定値以上であれば、このデフォーカス量に基づいて焦点調節を行うことで、焦点調節後におけるデフォーカス量が、被写体の被写界深度の範囲内となると判断できるような値に設定されている。そのため、カメラ制御部21は、たとえば、特定の被写体について得られたデフォーカス量の信頼性が、第1判定値以上である場合には、このデフォーカス量に基づいてフォーカスレンズ32を駆動することで、特定の被写体にピントを合わせることができるものと判断し、このようなデフォーカス量の信頼性を「高」と評価する。また、特定の被写体について得られたデフォーカス量の信頼性が、第1判定値未満であり、かつ、後述する第2判定値以上である場合には、カメラ制御部21は、たとえば、このデフォーカス量に基づいてフォーカスレンズ32を駆動することで、特定の被写体に比較的高い確率でピントを合わせることができ、たとえ、特定の被写体にピントを合わせることができない場合でも、焦点調節後のデフォーカス量は、特定の被写体の被写界深度に近くなるものと判断し、このようなデフォーカス量の信頼性を「中」と評価する。   If the reliability of the defocus amount is equal to or higher than the first determination value, the first determination value is adjusted based on the defocus amount so that the defocus amount after the focus adjustment is It is set to a value that can be determined to be within the depth range. Therefore, for example, when the reliability of the defocus amount obtained for a specific subject is equal to or higher than the first determination value, the camera control unit 21 drives the focus lens 32 based on the defocus amount. Therefore, it is determined that the camera can focus on a specific subject, and the reliability of such a defocus amount is evaluated as “high”. In addition, when the reliability of the defocus amount obtained for a specific subject is less than the first determination value and is equal to or higher than a second determination value described later, the camera control unit 21 performs, for example, the defocus amount. By driving the focus lens 32 on the basis of the focus amount, it is possible to focus on a specific subject with a relatively high probability. The focus amount is determined to be close to the depth of field of a specific subject, and the reliability of such a defocus amount is evaluated as “medium”.

また、第2判定値は、第1判定値よりも低い値であり、デフォーカス量の信頼性が第2判定値未満である場合には、このデフォーカス量に基づいて、合焦位置が、光軸方向のうち無限遠側に存在するか至近側に存在するかを判断できるに留まるような値に設定されている。さらに、第3判定値は、第1判定値および第2判定値よりもさらに低い値であり、デフォーカス量の信頼性が第3判定値未満である場合には、合焦位置が存在する方向も判断することができないような値に設定されている。そのため、カメラ制御部21は、デフォーカス量の信頼性が、第2判定値未満であり、かつ、第3判定値以上である場合には、このデフォーカス量に基づいて、合焦位置が、光軸方向のうち無限遠側に存在するのか、至近側に存在するのかを判断することができるものと判断し、このようなデフォーカス量の信頼性を「低」と評価する。また、カメラ制御部21は、デフォーカス量の信頼性が、第3判定値未満である場合には、デフォーカス量の信頼性を「測距不能」と評価する。   Further, the second determination value is a value lower than the first determination value, and when the reliability of the defocus amount is less than the second determination value, the in-focus position is based on the defocus amount, The value is set so that it can be determined whether the optical axis direction is on the infinity side or the close side. Further, the third determination value is a value lower than the first determination value and the second determination value, and when the reliability of the defocus amount is less than the third determination value, the direction in which the in-focus position exists. Is set to a value that cannot be determined. Therefore, when the reliability of the defocus amount is less than the second determination value and greater than or equal to the third determination value, the camera control unit 21 determines that the in-focus position is based on this defocus amount. It is determined that it is possible to determine whether it exists on the infinity side or the close side in the optical axis direction, and the reliability of such a defocus amount is evaluated as “low”. Further, when the reliability of the defocus amount is less than the third determination value, the camera control unit 21 evaluates the reliability of the defocus amount as “distance cannot be measured”.

なお、このようなデフォーカス量の算出と、デフォーカス量の信頼性の評価は、このカメラ1の動作が行われている間、所定の間隔で繰り返し実行される。また、このように得られたデフォーカス量およびデフォーカス量の信頼性は、デフォーカス量の履歴データとして、メモリ24に記憶される。   Note that the calculation of the defocus amount and the evaluation of the reliability of the defocus amount are repeatedly performed at predetermined intervals while the operation of the camera 1 is being performed. Further, the defocus amount and the reliability of the defocus amount obtained in this way are stored in the memory 24 as defocus amount history data.

ステップS104では、カメラ制御部21により、操作部28に備えられたシャッターレリーズボタンの半押し(第1スイッチSW1のオン)がされたかどうかの判断が行なわれる。シャッターレリーズボタンが半押しされた場合は、ステップS105に進む。一方、シャッターレリーズボタンが半押しされていない場合は、シャッターレリーズボタンの半押しされるまで、ステップS104を繰り返す。すなわち、シャッターレリーズボタンが半押しされるまで、スルー画像の生成・表示、スルー画像生成用の露出制御、デフォーカス量の算出、およびデフォーカス量の信頼性の評価が繰り返し実行される。   In step S104, 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 shutter release button is pressed halfway, the process proceeds to step S105. On the other hand, if the shutter release button is not half-pressed, step S104 is repeated until the shutter release button is half-pressed. That is, until the shutter release button is pressed halfway, through image generation / display, through image generation exposure control, defocus amount calculation, and defocus amount reliability evaluation are repeatedly performed.

そして、ステップS105では、カメラ制御部21により、所定のパラメータであるnが0に設定される。続くステップS106では、ステップS103で記憶したデフォーカス量の履歴データが参照され、シャッターレリーズボタンの半押し前に算出されたデフォーカス量およびデフォーカス量の信頼性のうち、パラメータnに応じたデフォーカス量および該デフォーカス量の信頼性が読み出され、読み出されたデフォーカス量の信頼性が「高」であるか否かの判断が行われる。例えば、カメラ制御部21は、パラメータnがゼロに設定されている場合には、シャッターレリーズボタンが半押しされる直前に算出されたデフォーカス量および該デフォーカス量の信頼性を読み出し、シャッターレリーズボタンが半押しされる直前に算出されたデフォーカス量の信頼性が「高」であるか否かの判断を行う。また、カメラ制御部21は、パラメータnが1に設定されている場合には、シャッターレリーズボタンの半押し直前に算出されたデフォーカス量よりも1つ前に算出されたデフォーカス量および該デフォーカス量の信頼性を読み出し、読み出されたデフォーカス量の信頼性が「高」であるか否かの判断を行う。同様に、カメラ制御部21は、nの値が大きくなるほど、過去に遡って、シャッターレリーズボタンが半押しされる直前に算出されたデフォーカス量よりもn個前に算出されたデフォーカス量の信頼性が「高」であるか否かの判断を行う。   In step S105, the camera control unit 21 sets n, which is a predetermined parameter, to 0. In subsequent step S106, the defocus amount history data stored in step S103 is referred to, and the defocus amount calculated before the shutter release button is half-pressed and the reliability of the defocus amount according to the parameter n is selected. The focus amount and the reliability of the defocus amount are read out, and it is determined whether or not the reliability of the read defocus amount is “high”. For example, when the parameter n is set to zero, the camera control unit 21 reads the defocus amount calculated immediately before the shutter release button is half-pressed and the reliability of the defocus amount, and the shutter release. It is determined whether or not the reliability of the defocus amount calculated immediately before the button is half-pressed is “high”. Further, when the parameter n is set to 1, the camera control unit 21 determines the defocus amount calculated immediately before the defocus amount calculated immediately before the shutter release button is half-pressed and the defocus amount. The reliability of the focus amount is read, and it is determined whether or not the reliability of the read defocus amount is “high”. Similarly, as the value of n increases, the camera control unit 21 goes back to the past and determines the defocus amount calculated n times before the defocus amount calculated immediately before the shutter release button is pressed halfway. It is determined whether or not the reliability is “high”.

そして、ステップS106において、シャッターレリーズボタンの半押し直前のデフォーカス量よりもn個前に算出されたデフォーカス量の信頼性が「高」であると判断された場合は、ステップS107に進み、一方、シャッターレリーズボタンの半押し直前のデフォーカス量よりもn個前に算出されたデフォーカス量の信頼性が「高」ではないと判断された場合は、ステップS112に進む。   If it is determined in step S106 that the reliability of the defocus amount calculated n times before the defocus amount immediately before the shutter release button is half-pressed is “high”, the process proceeds to step S107. On the other hand, if it is determined that the reliability of the defocus amount calculated n times before the defocus amount immediately before the shutter release button is half-pressed is not “high”, the process proceeds to step S112.

ステップS107では、シャッターレリーズボタンの半押し前に算出されたデフォーカス量の信頼性が「高」であると判断されているため、カメラ制御部21により、AEロック(露出条件の変更を禁止する処理)が行われる。そして、ステップS108では、信頼性が「高」であると判断された、シャッターレリーズボタンが半押しされる前のデフォーカス量に基づいて、フォーカスレンズ32を合焦位置まで駆動させるのに必要となるレンズ駆動量の算出が行われ、算出されたレンズ駆動量が、レンズ制御部37を介して、フォーカスレンズ駆動モータ36に送出される。次いで、ステップS109において、フォーカスレンズ駆動モータ36により、ステップS108で算出されたレンズ駆動量に基づいて、フォーカスレンズ32の駆動が行われる。   In step S107, since it is determined that the reliability of the defocus amount calculated before the shutter release button is half-pressed is “high”, the camera control unit 21 prohibits the AE lock (change of the exposure condition). Process). In step S108, it is necessary to drive the focus lens 32 to the in-focus position based on the defocus amount before the shutter release button is half-depressed, which is determined to have high reliability. The calculated lens drive amount is calculated, and the calculated lens drive amount is sent to the focus lens drive motor 36 via the lens control unit 37. Next, in step S109, the focus lens drive motor 36 drives the focus lens 32 based on the lens drive amount calculated in step S108.

そして、フォーカスレンズ32の合焦位置への駆動が完了すると、ステップS110に進み、合焦表示が行なわれ、次いで、ステップS111に進み、合焦ロック(フォーカスレンズ32の駆動を禁止する処理)が行なわれる。なお、ステップS110における合焦表示は、たとえば、電子ビューファインダ26により行われる。   When the driving of the focus lens 32 to the in-focus position is completed, the process proceeds to step S110 where a focus display is performed, and then the process proceeds to step S111 where the focus lock (process for prohibiting the drive of the focus lens 32) is performed. Done. The focus display in step S110 is performed by the electronic viewfinder 26, for example.

このように、本実施形においては、シャッターレリーズボタンの半押し前に算出されたデフォーカス量の信頼性が「高」と判断された場合には、シャッターレリーズボタンの半押し後に、焦点検出用の露出制御が行われることなく、シャッターレリーズボタンの半押し前に算出されたデフォーカス量に基づいて、フォーカスレンズ32の合焦駆動が行われることとなる。   As described above, in this embodiment, when it is determined that the reliability of the defocus amount calculated before half-pressing the shutter release button is “high”, the focus detection is performed after half-pressing the shutter release button. The focus lens 32 is driven in focus based on the defocus amount calculated before the shutter release button is half-pressed without performing the exposure control.

一方、ステップS106において、シャッターレリーズボタンの半押し直前のデフォーカス量よりもn個前に算出されたデフォーカス量の信頼性が「高」ではないと判断された場合には、ステップS112に進む。ステップS112では、カメラ制御部21により、シャッターレリーズボタンの半押し直前のデフォーカス量よりもn個前に算出されたデフォーカス量の信頼性が「中」であるか否かの判断が行われる。デフォーカス量の信頼性が「中」であると判断された場合は、ステップS113に進み、一方、デフォーカス量の信頼性が「中」ではないと判断された場合は、ステップS120に進む。   On the other hand, if it is determined in step S106 that the reliability of the defocus amount calculated n times before the defocus amount immediately before the shutter release button is half-pressed is not “high”, the process proceeds to step S112. . In step S112, the camera control unit 21 determines whether or not the reliability of the defocus amount calculated n times before the defocus amount immediately before the shutter release button is half-pressed is “medium”. . If it is determined that the reliability of the defocus amount is “medium”, the process proceeds to step S113, whereas if it is determined that the reliability of the defocus amount is not “medium”, the process proceeds to step S120.

ステップS113では、ステップS108と同様に、信頼性が「中」であると判断された、シャッターレリーズボタンが半押しされる前のデフォーカス量に基づいて、レンズ駆動量の算出が行われ、そして、ステップS114では、ステップS113で算出されたレンズ駆動量に基づいて、フォーカスレンズ32の駆動が開始される。   In step S113, as in step S108, the lens driving amount is calculated based on the defocus amount before the shutter release button is pressed halfway, for which the reliability is determined to be “medium”, and In step S114, driving of the focus lens 32 is started based on the lens driving amount calculated in step S113.

そして、ステップS115では、カメラ制御部21により、露出制御値のうち絞りAvは固定したまま、撮像感度Svおよび露光時間Tvのみを変更して、焦点検出に適した露出が得られるか否かの判断が行われる。   In step S115, the camera control unit 21 determines whether or not an exposure suitable for focus detection can be obtained by changing only the imaging sensitivity Sv and the exposure time Tv while the aperture Av of the exposure control value is fixed. Judgment is made.

具体的には、カメラ制御部21は、撮像素子22の出力に基づいて、焦点検出エリア(図2に示す焦点検出画素列22a,22b,22c)をそれぞれ含む所定領域内においてスポット測光を行い、焦点検出エリアを含む所定領域内の輝度値SpotBvを算出し、算出した輝度値SpotBvに基づいて、焦点検出エリアを含む所定領域内における露出が、焦点検出に適した露出となる撮像感度Svおよび露光時間Tvを求めることで、焦点検出に適した露出が得られるか否かの判断を行う。なお、本実施形態において、カメラ制御部21は、撮像感度Svおよび露光時間Tvのみを変更して、焦点検出エリアを含む所定領域内における露出が、たとえば、焦点検出エリアを含む所定領域内における露出が、焦点検出に最適な露出よりも1段階暗い露出から、焦点検出に最適な露出よりも1段階明るい露出までの範囲内の露出となる場合にも、焦点検出に適した露出が得られるものと判断する。   Specifically, the camera control unit 21 performs spot photometry in predetermined areas including the focus detection areas (focus detection pixel rows 22a, 22b, and 22c shown in FIG. 2) based on the output of the image sensor 22, Luminance value SpotBv in a predetermined area including the focus detection area is calculated, and based on the calculated luminance value SpotBv, the imaging sensitivity Sv and exposure at which the exposure in the predetermined area including the focus detection area becomes an exposure suitable for focus detection By determining the time Tv, it is determined whether exposure suitable for focus detection can be obtained. In the present embodiment, the camera control unit 21 changes only the imaging sensitivity Sv and the exposure time Tv, and the exposure in the predetermined area including the focus detection area is, for example, the exposure in the predetermined area including the focus detection area. However, exposure that is suitable for focus detection can be obtained even when the exposure is in the range from exposure that is one step darker than the optimal exposure for focus detection to one step brighter than the optimal exposure for focus detection. Judge.

ただし、撮像感度Svおよび露光時間Tvは、変更可能な範囲が予め決められており、撮像感度Svおよび露光時間Tvのみを変更しただけでは、焦点検出に適した露出が得られない場合がある。そこで、カメラ制御部21は、撮像感度Svおよび露光時間Tvのみを変更して、焦点検出に適した露出が得られるか否かを判断し、撮像感度Svおよび露光時間Tvのみを変更して、焦点検出に適した露出が得られると判断した場合には、ステップS116に進み、一方、撮像感度Svおよび露光時間Tvのみを変更して、焦点検出に適した露出が得られない場合には、ステップS122に進む。   However, the imaging sensitivity Sv and the exposure time Tv are predetermined in a range that can be changed, and there are cases where exposure suitable for focus detection cannot be obtained only by changing the imaging sensitivity Sv and the exposure time Tv. Therefore, the camera control unit 21 changes only the imaging sensitivity Sv and the exposure time Tv, determines whether exposure suitable for focus detection is obtained, changes only the imaging sensitivity Sv and the exposure time Tv, If it is determined that an exposure suitable for focus detection can be obtained, the process proceeds to step S116. On the other hand, if only the imaging sensitivity Sv and the exposure time Tv are changed and an exposure suitable for focus detection cannot be obtained, Proceed to step S122.

ステップS115で、撮像感度Svおよび露光時間Tvのみを変更して、焦点検出に適した露出を得ることができると判断された場合には、ステップS116に進み、カメラ制御部21により、焦点検出用の露出制御が行われる。具体的には、カメラ制御部21は、露出制御値のうち絞りAvは固定したまま、焦点検出に用いる撮像感度Svおよび露光時間Tvを、ステップS115で算出された撮像感度Svおよび露光時間Tvに変更する。これにより、たとえば、ステップS115で算出された撮像感度Svに応じて、焦点検出画素222a,222bから出力された信号を増幅するアンプのゲインが変更され、あるいは、ステップS115で算出された露光時間Tvに応じて、撮像素子22の焦点検出画素222a,222bに対する露光時間が変更される。その結果、焦点検出エリア(図2に示す焦点検出画素列22a,22b,22c)を含む所定領域内において、焦点検出に適した露出(たとえば、適正露出よりも1段階暗い露出から、適正露出よりも1段階明るい露出までの範囲内の露出)を得ることができる。   If it is determined in step S115 that only the imaging sensitivity Sv and the exposure time Tv can be changed to obtain an exposure suitable for focus detection, the process proceeds to step S116, and the camera control unit 21 performs focus detection. Exposure control is performed. Specifically, the camera control unit 21 sets the imaging sensitivity Sv and the exposure time Tv used for focus detection to the imaging sensitivity Sv and the exposure time Tv calculated in step S115 while the aperture Av is fixed among the exposure control values. change. Thereby, for example, the gain of the amplifier that amplifies the signal output from the focus detection pixels 222a and 222b is changed according to the imaging sensitivity Sv calculated in step S115, or the exposure time Tv calculated in step S115. The exposure time for the focus detection pixels 222a and 222b of the image sensor 22 is changed accordingly. As a result, in a predetermined area including the focus detection area (focus detection pixel rows 22a, 22b, and 22c shown in FIG. 2), an exposure suitable for focus detection (for example, exposure that is one step darker than the appropriate exposure, from the appropriate exposure). Can be obtained within a range up to one step brighter exposure).

次いで、ステップS117では、カメラ制御部21により、焦点検出に適した露出で焦点検出が行われ、デフォーカス量が算出され、デフォーカス量の信頼性の評価が行われる。そして、ステップS118では、カメラ制御部21により、焦点検出に適した露出に変更した後に算出されたデフォーカス量の信頼性が「高」または「中」であるか否かの判断が行われる。焦点検出に適した露出に変更した後に算出されたデフォーカス量の信頼性が「高」または「中」であると判断された場合は、ステップS107に進み、ステップS107〜S111において、焦点検出に適した露出に変更した後に算出されたデフォーカス量に基づいて、合焦動作が行われる。一方、焦点検出に適した露出に変更した後に算出されたデフォーカス量の信頼性が「高」または「中」ではないと判断された場合は、ステップS119に進む。   Next, in step S117, the camera control unit 21 performs focus detection with an exposure suitable for focus detection, calculates a defocus amount, and evaluates the reliability of the defocus amount. In step S118, the camera control unit 21 determines whether or not the reliability of the defocus amount calculated after changing to an exposure suitable for focus detection is “high” or “medium”. If it is determined that the reliability of the defocus amount calculated after changing to an exposure suitable for focus detection is “high” or “medium”, the process proceeds to step S107, and focus detection is performed in steps S107 to S111. A focusing operation is performed based on the defocus amount calculated after changing to an appropriate exposure. On the other hand, if it is determined that the reliability of the defocus amount calculated after changing to an exposure suitable for focus detection is not “high” or “medium”, the process proceeds to step S119.

このように、本実施形態においては、シャッターレリーズボタンの半押し前に算出されたデフォーカス量の信頼性が「中」と判断された場合には、絞りAvを固定したまま、撮像感度Svおよび露光時間Tvのみを変更して、焦点検出用の露出制御を行うことで、焦点検出に適した露出とし、焦点検出に適した露出で算出されたデフォーカス量に基づいて、フォーカスレンズ32の合焦駆動が行われる。   As described above, in the present embodiment, when the reliability of the defocus amount calculated before the shutter release button is half-pressed is determined to be “medium”, the imaging sensitivity Sv and the aperture sensitivity Av are fixed. By changing only the exposure time Tv and performing exposure control for focus detection, the exposure is suitable for focus detection, and the focus lens 32 is adjusted based on the defocus amount calculated with the exposure suitable for focus detection. Focus driving is performed.

一方、ステップS112で、シャッターレリーズボタンの半押し直前のデフォーカス量よりもn個前に算出されたデフォーカス量の信頼性が「中」ではないと判断された場合は、ステップS120に進む。ステップS120では、カメラ制御部21により、パラメータnの値が所定数未満であるか否かの判断が行われる。nの値が所定数未満である場合は、ステップS121に進み、nの値に1が加えられた後、ステップS106に戻る。すなわち、nの値が所定数以上となるまで、シャッターレリーズボタンの半押し直前のデフォーカス量よりもn個前に算出されたデフォーカス量の信頼性が「高」または「中」であるか否かの判断が行われることとなる。そして、ステップS120において、nの値が所定数以上であると判断された場合は、デフォーカス量の信頼性は「低」または「測距不能」であると判断され、ステップS122に進むこととなる。   On the other hand, if it is determined in step S112 that the reliability of the defocus amount calculated n times before the defocus amount immediately before the shutter release button is half-pressed is not “medium”, the process proceeds to step S120. In step S120, the camera control unit 21 determines whether the value of the parameter n is less than a predetermined number. When the value of n is less than the predetermined number, the process proceeds to step S121, 1 is added to the value of n, and the process returns to step S106. That is, whether the reliability of the defocus amount calculated n times before the defocus amount immediately before half-pressing the shutter release button is “high” or “medium” until the value of n becomes a predetermined number or more. A determination of whether or not is made. If it is determined in step S120 that the value of n is greater than or equal to the predetermined number, the reliability of the defocus amount is determined to be “low” or “distance cannot be measured”, and the process proceeds to step S122. Become.

ステップS120において、デフォーカス量の信頼性が「低」または「測距不能」であると判断された場合、あるいは、ステップS115において、撮像感度Svおよび露光時間Tvのみを変更して、焦点検出に適した露出を得ることができないと判断された場合には、ステップS122に進む。ステップS122では、カメラ制御部21により、絞りAv、撮像感度Sv、および露光時間Tvを変更することにより、焦点検出用の露出制御が行われる。具体的には、カメラ制御部21は、焦点検出エリアを含む所定領域内の輝度値SpotBvを算出し、算出した輝度値SpotBvに基づいて、焦点検出に適した露出が得られる、受光感度Sv、露光時間Tv、および絞りAvを決定する。なお、ステップS122において、カメラ制御部21は、露出制御値のうち受光感度Svおよび露光時間Tvを優先的に変更し、受光感度Svおよび露光時間Tvの変更のみでは、焦点検出に適した露出を得ることができない場合に限り、絞りAvを変更する。そして、カメラ制御部21は、決定した受光感度Sv、露光時間Tv、および絞りAvに基づいて、撮像素子22に対する露出を制御する。そして、ステップS122で焦点検出用の露出制御が行われた後は、ステップS117に進み、焦点検出に適した露出に変更した後に算出されたデフォーカス量の信頼性が「高」または「中」であるか否かの判断が行われる。   When it is determined in step S120 that the reliability of the defocus amount is “low” or “distance cannot be measured”, or in step S115, only the imaging sensitivity Sv and the exposure time Tv are changed, and focus detection is performed. If it is determined that a suitable exposure cannot be obtained, the process proceeds to step S122. In step S122, the camera control unit 21 performs exposure control for focus detection by changing the aperture Av, the imaging sensitivity Sv, and the exposure time Tv. Specifically, the camera control unit 21 calculates a brightness value SpotBv within a predetermined area including the focus detection area, and based on the calculated brightness value SpotBv, an exposure suitable for focus detection is obtained. An exposure time Tv and an aperture Av are determined. In step S122, the camera control unit 21 preferentially changes the light receiving sensitivity Sv and the exposure time Tv among the exposure control values, and only by changing the light receiving sensitivity Sv and the exposure time Tv, an exposure suitable for focus detection is obtained. Only when it cannot be obtained, the aperture Av is changed. Then, the camera control unit 21 controls the exposure to the image sensor 22 based on the determined light receiving sensitivity Sv, exposure time Tv, and aperture stop Av. Then, after exposure control for focus detection is performed in step S122, the process proceeds to step S117, and the reliability of the defocus amount calculated after changing to an exposure suitable for focus detection is “high” or “medium”. A determination is made as to whether or not.

また、ステップS118において、焦点検出に適した露出とした場合でも、デフォーカス量の信頼性が「高」または「中」ではない場合には、ステップS119に進む。ステップS119では、カメラ制御部21により、スキャン動作を実行するためのスキャン動作実行処理が行なわれる。ここで、スキャン動作とは、フォーカスレンズ駆動モータ36により、フォーカスレンズ32をスキャン駆動させながら、カメラ制御部21により、位相差検出方式によるデフォーカス量の算出、および焦点評価値の算出を、所定の間隔で同時に行い、これにより、位相差検出方式による合焦位置の検出と、コントラスト検出方式による合焦位置の検出とを、所定の間隔で、同時に実行する動作である。以下においては、図10を参照して、本実施形態に係るスキャン動作実行処理を説明する。なお、図10は、本実施形態に係るスキャン動作実行処理を示すフローチャートである。   In step S118, even when the exposure is suitable for focus detection, if the reliability of the defocus amount is not “high” or “medium”, the process proceeds to step S119. In step S119, the camera control unit 21 performs a scan operation execution process for executing the scan operation. Here, the scan operation is a predetermined calculation of the defocus amount and the focus evaluation value by the phase difference detection method by the camera control unit 21 while the focus lens 32 is scan-driven by the focus lens drive motor 36. Thus, 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 simultaneously performed at predetermined intervals. In the following, the scan operation execution process according to the present embodiment will be described with reference to FIG. FIG. 10 is a flowchart showing the scan operation execution process according to the present embodiment.

まず、ステップS201では、カメラ制御部21により、スキャン動作の開始処理が行われる。具体的には、カメラ制御部21は、レンズ制御部37にスキャン駆動開始指令を送出し、レンズ制御部37は、カメラ制御部21からの指令に基づき、フォーカスレンズ駆動モータ36を駆動させ、フォーカスレンズ32を光軸L1に沿ってスキャン駆動させる。なお、スキャン駆動を行う方向は特に限定されず、フォーカスレンズ32のスキャン駆動を、無限端から至近端に向かって行なってもよいし、あるいは、至近端から無限端に向かって行なってもよい。   First, in step S201, the camera control unit 21 performs a scan operation start process. 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. The direction in which the scan drive is performed is not particularly limited, and the scan drive of the focus lens 32 may be performed from the infinite end to the close end, or may be performed from the close end to the infinite end. Good.

そして、カメラ制御部21は、フォーカスレンズ32を駆動させながら、所定間隔で、撮像素子22の焦点検出画素222a,222bから一対の像に対応した一対の像データの読み出しを行い、これに基づき、位相差検出方式により、デフォーカス量の算出および算出されたデフォーカス量の信頼性の評価を行うとともに、フォーカスレンズ32を駆動させながら、所定間隔で、撮像素子22の撮像画素221から画素出力の読み出しを行い、これに基づき、焦点評価値を算出し、これにより、異なるフォーカスレンズ位置における焦点評価値を取得することで、コントラスト検出方式により合焦位置の検出を行う。   Then, while driving the focus lens 32, the camera control unit 21 reads out 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 predetermined intervals. The phase difference detection method calculates the defocus amount, evaluates the reliability of the calculated defocus amount, and drives the focus lens 32 to drive the pixel output from the imaging pixel 221 of the imaging element 22 at a predetermined interval. Reading is performed, and based on this, a focus evaluation value is calculated, thereby acquiring a focus evaluation value at a different focus lens position, thereby detecting a focus position by a contrast detection method.

ステップS202では、コントラスト検出方式による合焦位置の検出が行われている間に、露出が変更されるのを防止するため、AEロック(露出条件の変更を禁止する処理)が行われる。そして、ステップS203では、カメラ制御部21により、スキャン動作を行なった結果、位相差検出方式により、デフォーカス量が算出できたか否かの判定が行なわれる。デフォーカス量が算出できた場合には、測距可能と判断して、ステップS206に進み、一方、デフォーカス量が算出できなかった場合には、測距不能と判断して、ステップS204に進む。なお、ステップS203においては、デフォーカス量の算出ができた場合でも、算出されたデフォーカス量の信頼性が「低」または「測距不能」と評価された場合には、デフォーカス量の算出ができなかったものとして扱い、ステップS204に進むこととする。   In step S202, AE lock (processing for prohibiting change of exposure conditions) is performed to prevent the exposure from being changed while the focus position is detected by the contrast detection method. In step S203, the camera control unit 21 determines whether the defocus amount has been calculated by the phase difference detection method as a result of the scanning operation. If the defocus amount can be calculated, it is determined that distance measurement is possible and the process proceeds to step S206. On the other hand, if the defocus amount cannot be calculated, it is determined that distance measurement is not possible and the process proceeds to step S204. . In step S203, even when the defocus amount can be calculated, if the reliability of the calculated defocus amount is evaluated as “low” or “range measurement impossible”, the defocus amount is calculated. As a result, it proceeds to step S204.

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

ステップS205では、カメラ制御部21により、スキャン動作を、フォーカスレンズ32の駆動可能範囲の全域について行なったか否かの判定が行なわれる。フォーカスレンズ32の駆動可能範囲の全域について、スキャン動作を行なっていない場合には、ステップS203に戻り、ステップS203〜S205を繰り返すことにより、スキャン動作、すなわち、フォーカスレンズ32をスキャン駆動させながら、位相差検出方式によるデフォーカス量の算出、およびコントラスト検出方式による合焦位置の検出を、所定の間隔で同時に実行する動作を継続して行なう。一方、フォーカスレンズ32の駆動可能範囲の全域について、スキャン動作の実行を完了している場合には、ステップS215に進む。   In step S <b> 205, the camera control unit 21 determines whether the scan operation has been performed for the entire driveable range of the focus lens 32. If the scan operation is not performed for the entire driveable range of the focus lens 32, the process returns to step S203, and steps S203 to S205 are repeated to perform the scan operation, that is, while the focus lens 32 is driven to scan. The operation of simultaneously executing the calculation of the defocus amount by the phase difference detection method and the detection of the in-focus position by the contrast detection method at predetermined intervals is continuously performed. On the other hand, if the scan operation has been completed for the entire driveable range of the focus lens 32, the process proceeds to step S215.

そして、スキャン動作を実行した結果、ステップS203において、位相差検出方式により、デフォーカス量が算出できたと判定された場合には、ステップS206に進み、ステップS206〜S210において、位相差検出方式により算出されたデフォーカス量に基づく、合焦動作が行なわれる。   As a result of executing the scanning operation, if it is determined in step S203 that the defocus amount can be calculated by the phase difference detection method, the process proceeds to step S206, and in steps S206 to S210, the calculation is performed by the phase difference detection method. A focusing operation is performed based on the defocus amount.

すなわち、まず、ステップS206において、カメラ制御部21により、スキャン動作の停止処理が行なわれた後、ステップS207に進み、カメラ制御部21により、スキャン動作の禁止処理が行なわれる。   That is, first, in step S206, the camera control unit 21 performs a scan operation stop process, and then proceeds to step S207. The camera control unit 21 performs a scan operation prohibition process.

そして、ステップS208では、ステップS203において位相差検出方式により算出されたデフォーカス量から、フォーカスレンズ32を合焦位置まで駆動させるのに必要となるレンズ駆動量の算出が行なわれ、算出されたレンズ駆動量が、レンズ制御部37を介して、レンズ駆動モータ36に送出される。そして、レンズ駆動モータ36は、カメラ制御部21により算出されたレンズ駆動量に基づいて、フォーカスレンズ32を合焦位置まで駆動させる。   In step S208, the lens driving amount required to drive the focus lens 32 to the in-focus position is calculated from the defocus amount calculated by the phase difference detection method in step S203, and the calculated lens is calculated. The 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 calculates the defocus amount by the phase difference detection method while the lens driving motor 36 is driven and the focus lens 32 is driven to the in-focus position. As a result, when a new defocus amount is calculated, the camera control unit 21 drives the focus lens 32 based on the new defocus amount.

そして、フォーカスレンズ32の合焦位置への駆動が完了すると、ステップS209に進み、合焦表示が行なわれ、次いで、ステップS210に進み、合焦ロック(フォーカスレンズ32の駆動を禁止する処理)が行なわれる。なお、ステップS209における合焦表示は、たとえば、電子ビューファインダ26により行われる。また、合焦表示を行なう際には、位相差検出方式により合焦動作が行われた旨をユーザに報知するための表示を併せて行なってもよい。   When the driving of the focus lens 32 to the in-focus position is completed, the process proceeds to step S209, in-focus display is performed, and then the process proceeds to step S210, where focus lock (processing for prohibiting driving of the focus lens 32) is performed. Done. Note that the in-focus display in step S209 is performed by the electronic viewfinder 26, for example. Further, when performing the focus display, a display for notifying the user that the focus operation has been performed by the phase difference detection method may be performed together.

また、スキャン動作を実行した結果、ステップS204において、コントラスト検出方式により、合焦位置が検出できたと判定された場合には、ステップS211に進み、ステップS211〜S214において、コントラスト検出方式により検出された合焦位置に基づく、フォーカスレンズ32の駆動動作が行なわれる。   As a result of executing the scanning operation, if it is determined in step S204 that the in-focus position has been detected by the contrast detection method, the process proceeds to step S211 and detected in steps S211 to S214 by the contrast detection method. Based on the in-focus position, the focus lens 32 is driven.

すなわち、まず、ステップS211において、カメラ制御部21により、スキャン動作の停止処理が行なわれた後、ステップS212に進み、上述したステップS207と同様に、カメラ制御部21により、スキャン動作の禁止処理が行なわれる。   That is, first, in step S211, the camera control unit 21 performs a scan operation stop process, and then proceeds to step S212. As in step S207 described above, the camera control unit 21 performs a scan operation prohibition process. Done.

そして、ステップS213に進み、コントラスト検出方式により検出された合焦位置に基づいて、フォーカスレンズ32を、合焦位置まで駆動させるレンズ駆動処理が行なわれる。なお、コントラスト検出方式による検出結果に基づいて、フォーカスレンズ32を合焦位置への駆動を行なう際には、フォーカスレンズ32の合焦位置への駆動が完了するまでは、位相差検出方式による焦点検出結果に基づく、フォーカスレンズ32の駆動を禁止することが好適である。これにより、フォーカスレンズ32のハンチング現象を抑制することができる。   Then, the process proceeds to step S213, and a lens driving process for driving the focus lens 32 to the in-focus position is performed based on the in-focus position detected by the contrast detection method. When driving the focus lens 32 to the in-focus position based on the detection result by the contrast detection method, the focus by the phase difference detection method is completed until the drive of the focus lens 32 to the in-focus position is completed. It is preferable to prohibit the driving of the focus lens 32 based on the detection result. Thereby, the hunting phenomenon of the focus lens 32 can be suppressed.

そして、フォーカスレンズ32の合焦位置への駆動が完了すると、ステップS214に進み、合焦表示が行なわれ、次いで、ステップS210に進み、合焦ロック(フォーカスレンズ32の駆動を禁止する処理)が行なわれる。なお、ステップS214における合焦表示は、たとえば、電子ビューファインダ26により行われる。また、合焦表示を行なう際には、コントラスト検出方式により合焦動作が行われた旨をユーザに報知するための表示を併せて行なってもよい。   When the driving of the focus lens 32 to the in-focus position is completed, the process proceeds to step S214, in-focus display is performed, and then the process proceeds to step S210, where focus lock (processing for prohibiting driving of the focus lens 32) is performed. Done. Note that the in-focus display in step S214 is performed by the electronic viewfinder 26, for example. Further, when performing the in-focus display, a display for notifying the user that the in-focus operation has been performed by the contrast detection method may be performed together.

なお、本実施形態のスキャン動作においては、上述したステップS203〜S205を繰り返し実行することで、フォーカスレンズ32をスキャン駆動させながら、位相差検出方式によるデフォーカス量の算出、およびコントラスト検出方式による合焦位置の検出を所定の間隔で同時に実行する。そして、上述したステップS203〜S205を繰り返し実行した結果、位相差検出方式およびコントラスト検出方式のうち、先にデフォーカス量の算出、または合焦位置の検出ができた検出方式による、焦点検出結果を用いて、フォーカスレンズ32を、合焦位置まで駆動させる処理を行なう。また、上述したように、本実施形態のスキャン動作においては、位相差検出方式によりデフォーカス量が算出できたか否かを判断した(ステップS203)後に、コントラスト検出方式により合焦位置の検出ができたか否かの判断を行う(ステップS204)ことで、位相差検出方式とコントラスト検出方式とで同時期にデフォーカス量の算出および合焦位置の検出ができた場合に、位相差検出方式による焦点検出結果を、コントラスト検出方式による焦点検出結果よりも優先して、採用するものである。   In the scanning operation of the present embodiment, the above-described steps S203 to S205 are repeatedly executed, so that the focus lens 32 is driven to scan, the defocus amount is calculated by the phase difference detection method, and the contrast detection method is used. The detection of the focal position is simultaneously performed at a predetermined interval. Then, as a result of repeatedly executing steps S203 to S205 described above, the focus detection result by the detection method in which the defocus amount can be calculated or the in-focus position can be detected first among the phase difference detection method and the contrast detection method. The focus lens 32 is used to drive to the in-focus position. Further, as described above, in the scanning operation of the present embodiment, after determining whether or not the defocus amount can be calculated by the phase difference detection method (step S203), the in-focus position can be detected by the contrast detection method. If the phase difference detection method and the contrast detection method can calculate the defocus amount and detect the in-focus position at the same time by determining whether or not the focus position has been detected, the focus by the phase difference detection method is determined. The detection result is adopted in preference to the focus detection result by the contrast detection method.

一方、ステップS205において、フォーカスレンズ32の駆動可能範囲の全域について、スキャン動作の実行が完了していると判定された場合には、ステップS215に進む。ステップS215では、スキャン動作を行なった結果、位相差検出方式およびコントラスト検出方式のいずれの方式によっても、焦点検出を行うことができなかったため、スキャン動作の終了処理が行なわれ、次いで、ステップS216に進み、合焦不能表示が行なわれる。合焦不能表示は、たとえば、電子ビューファインダ26により行われる。   On the other hand, if it is determined in step S205 that the scan operation has been completed for the entire driveable range of the focus lens 32, the process proceeds to step S215. In step S215, 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 S216 Advancing and in-focus indication is performed. The in-focus indication is performed by the electronic viewfinder 26, for example.

このように、ステップS119のスキャン動作実行処理は行われる。そして、ステップS119のスキャン動作実行処理が終了した後は、このカメラ1の動作も終了する。   In this way, the scan operation execution process in step S119 is performed. Then, after the scan operation execution process in step S119 is completed, the operation of the camera 1 is also terminated.

以上のように、本実施形態では、シャッターレリーズボタンの半押し前に算出したデフォーカス量の信頼性が「高」であると評価された場合には、信頼性が「高」であるデフォーカス量に基づいてフォーカスレンズ32を駆動することで、被写体にピントを合わせることができるものと判断し、シャッターレリーズボタンの半押し後に焦点検出用の露出制御を行うことなく、シャッターレリーズボタンの半押し前に算出したデフォーカス量に基づいて、フォーカスレンズ32を駆動する。このように、本実施形態では、デフォーカス量の信頼性が「高」であると評価された場合には、シャッターレリーズボタンの半押し後の露出制御が行われないため、シャッターレリーズボタンが半押されてから、フォーカスレンズ32が駆動されるまでの時間を短縮することができる。   As described above, in this embodiment, when it is evaluated that the reliability of the defocus amount calculated before the shutter release button is half-pressed is “high”, the defocus whose reliability is “high”. By driving the focus lens 32 based on the amount, it is determined that the subject can be focused, and the shutter release button is half-pressed without performing exposure control for focus detection after the shutter release button is half-pressed. The focus lens 32 is driven based on the previously calculated defocus amount. As described above, in this embodiment, when the reliability of the defocus amount is evaluated as “high”, the exposure control after the shutter release button is half-pressed is not performed. The time from when it is pressed until the focus lens 32 is driven can be shortened.

また、本実施形態では、シャッターレリーズボタンの半押し前に算出したデフォーカス量の信頼性が「中」であると評価された場合には、シャッターレリーズボタンの半押し後に、絞りAvを固定したまま、撮像感度Svおよび露光時間Tvのみを変更して、焦点検出用の露出制御を行い、焦点検出に適した露出で得られたでフォーカス量に基づいて、フォーカスレンズ32の駆動を行う。このように、本実施形態では、シャッターレリーズボタンの半押し前に算出したデフォーカス量の信頼性が「中」であると評価された場合には、絞りAvを変更しないで露出制御を行うことで、絞りAvの変更に応じた絞り34の駆動など、露出制御において比較的時間を要する絞りAvの変更に応じた動作を防止することができるため、露出制御に要する時間を短縮することができ、シャッターレリーズボタンが半押されてから、フォーカスレンズ32が駆動されるまでの時間を短縮することができる。特に、本実施形態では、焦点検出エリアを含む所定領域内における露出が、焦点検出に最適な露出よりも1段階暗い露出から、焦点検出に最適な露出よりも1段階明るい露出までの範囲内の露出である場合にも、焦点検出に適した露出と判断して、焦点検出用の露出制御を行うため、撮像感度Svおよび露光時間Tvのみを変更して、焦点検出用の露出制御を実行することが容易となる。   In this embodiment, when the reliability of the defocus amount calculated before half-pressing the shutter release button is evaluated as “medium”, the aperture Av is fixed after half-pressing the shutter release button. The exposure control for focus detection is performed by changing only the imaging sensitivity Sv and the exposure time Tv, and the focus lens 32 is driven based on the focus amount obtained with the exposure suitable for focus detection. As described above, in this embodiment, when the reliability of the defocus amount calculated before the shutter release button is half-pressed is evaluated as “medium”, the exposure control is performed without changing the aperture Av. Therefore, since the operation according to the change of the aperture Av that requires a relatively long time in exposure control, such as driving of the aperture 34 according to the change of the aperture Av, can be prevented, the time required for the exposure control can be shortened. The time from when the shutter release button is half-pressed until the focus lens 32 is driven can be shortened. In particular, in the present embodiment, the exposure within a predetermined region including the focus detection area is in a range from an exposure that is one step darker than the optimum exposure for focus detection to an exposure that is one step brighter than the optimum exposure for focus detection. Even in the case of exposure, since it is determined that the exposure is suitable for focus detection and exposure control for focus detection is performed, exposure control for focus detection is executed by changing only the imaging sensitivity Sv and the exposure time Tv. It becomes easy.

なお、以上説明した実施形態は、本発明の理解を容易にするために記載されたものであって、本発明を限定するために記載されたものではない。したがって、上記の実施形態に開示された各要素は、本発明の技術的範囲に属する全ての設計変更や均等物をも含む趣旨である。   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.

たとえば、上述した実施形態では、シャッターレリーズボタンの半押し前に算出したデフォーカス量の信頼性が「中」であると評価された場合には、焦点検出エリアを含む所定領域内における露出が、焦点検出に最適な露出よりも1段階暗い露出から、焦点検出に最適な露出よりも1段階明るい露出までの範囲内の露出となる場合でも、焦点検出に適した露出と判断して焦点検出用の露出制御を行っているが、この構成に限定されず、たとえば、焦点検出に最適な露出よりも所定の段数だけ明るい露出または所定の段数だけ暗い露出となる場合でも、焦点検出に適した露出であると判断して、焦点検出用の露出制御を行う構成としてもよい。   For example, in the above-described embodiment, when it is evaluated that the reliability of the defocus amount calculated before the shutter release button is half-pressed is “medium”, the exposure in a predetermined region including the focus detection area is Even if the exposure is in the range from exposure that is one step darker than the optimal exposure for focus detection to one step brighter than the optimal exposure for focus detection, it is determined that the exposure is suitable for focus detection and is used for focus detection. However, the present invention is not limited to this configuration. For example, even if the exposure is brighter by a predetermined number of steps than the exposure optimal for focus detection or darker by the predetermined number of steps, the exposure is suitable for focus detection. Therefore, the exposure control for focus detection may be performed.

また、上述した実施形態では、シャッターレリーズボタンが半押しされた後に、フォーカスレンズ32のレンズ駆動量を算出しているが、レンズ駆動量を、シャッターレリーズボタンが半押しされる前に算出しておく構成としてもよい。これにより、シャッターレリーズボタンが半押しされた後に、フォーカスレンズ32のレンズ駆動量を算出する時間を省くことができるため、シャッターレリーズボタンが半押しされてから、フォーカスレンズ32が駆動されるまでの時間を、さらに短縮することができる。なお、シャッターレリーズボタンが半押しされる前に、フォーカスレンズ32の駆動量を算出する構成とした場合であっても、シャッターレリーズボタンが半押しされる前のフォーカスレンズ32の駆動は禁止される。   In the above-described embodiment, the lens driving amount of the focus lens 32 is calculated after the shutter release button is pressed halfway. However, the lens driving amount is calculated before the shutter release button is pressed halfway. It is good also as a structure to keep. Accordingly, it is possible to save time for calculating the lens driving amount of the focus lens 32 after the shutter release button is half-pressed. Therefore, the time from when the shutter release button is half-pressed until the focus lens 32 is driven. Time can be further reduced. Even when the driving amount of the focus lens 32 is calculated before the shutter release button is half-pressed, the drive of the focus lens 32 before the shutter release button is half-pressed is prohibited. .

さらに、上述した実施形態では、シャッターレリーズボタンが半押しされた場合に、シャッターレリーズボタンが半押しされる前に算出されたデフォーカス量の信頼性に基づいて、焦点検出用の露出制御を行うか否かを判断する構成を例示したが、例えば、シャッターレリーズボタンとは別に、光学系の焦点調節を起動するためのボタンが設けられている場合には、焦点調節を起動するためのボタンが押される前からデフォーカス量を算出しておき、焦点調節を起動するためのボタンが押された場合に、焦点調節を起動するためのボタンが押される前に算出したデフォーカス量の信頼性に基づいて、焦点検出用の露出制御を行うか否かを判断する構成としてもよい。   Further, in the above-described embodiment, when the shutter release button is half-pressed, exposure control for focus detection is performed based on the reliability of the defocus amount calculated before the shutter release button is half-pressed. For example, when a button for starting the focus adjustment of the optical system is provided separately from the shutter release button, a button for starting the focus adjustment is provided. The defocus amount is calculated before the button is pressed, and when the button for starting focus adjustment is pressed, the reliability of the defocus amount calculated before the button for starting focus adjustment is pressed. Based on this, it may be configured to determine whether or not to perform exposure control for focus detection.

加えて、上述した実施形態では、シャッターレリーズボタンの半押し直前のデフォーカス量よりも前に算出されたデフォーカス量の信頼性を、所定の数だけ、遡って判断しているが、この構成に限定されるものではなく、例えば、シャッターレリーズボタンの半押し直前のデフォーカス量よりも所定時間(例えば、0.1秒)前までに算出されたデフォーカス量の信頼性を遡って判断する構成としてもよい。   In addition, in the above-described embodiment, the reliability of the defocus amount calculated before the defocus amount immediately before the shutter release button is half-pressed is determined retroactively by a predetermined number. For example, the reliability of the defocus amount calculated up to a predetermined time (for example, 0.1 second) before the defocus amount immediately before the shutter release button is half-pressed is determined retrospectively. It is good also as a structure.

また、上述した実施形態では、撮像素子22の焦点検出画素222a,222bにおいて、位相差検出方式による焦点状態の検出を行う構成を例示したが、この構成に限定されるものではなく、位相差検出方式による焦点状態の検出を行う焦点検出モジュールを、撮像素子22とは独立して設ける構成としてもよい。   In the above-described embodiment, the focus detection pixels 222a and 222b of the image sensor 22 are exemplified by the configuration for detecting the focus state by the phase difference detection method. However, the configuration is not limited to this configuration, and the phase difference detection is performed. A focus detection module that detects the focus state by the method may be provided independently of the image sensor 22.

なお、上述した実施形態のカメラ1は特に限定されず、例えば、デジタルビデオカメラ、一眼レフデジタルカメラ、レンズ一体型のデジタルカメラ、携帯電話用のカメラなどのその他の光学機器に本発明を適用してもよい。   The camera 1 of the above-described embodiment is not particularly limited. For example, the present invention is applied to other optical devices such as a digital video camera, a single-lens reflex digital camera, a lens-integrated digital camera, and a camera for a mobile phone. May be.

1…デジタルカメラ
2…カメラ本体
21…カメラ制御部
22…撮像素子
221…撮像画素
222a,222b…焦点検出画素
24…メモリ
28…操作部
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 24 ... Memory 28 ... Operation part 3 ... Lens barrel 32 ... Focus lens 36 ... Focus lens drive motor 37 ... Lens control unit

Claims (5)

焦点調節光学系を有する光学系を介した一対の光束を受光する一対の受光センサと、
前記一対の受光センサの出力に基づいて、前記光学系による像面のずれ量を検出する位相差検出部と、
前記焦点調節光学系を光軸方向に駆動させることで、前記光学系の焦点調節を行う焦点調節部と、
前記焦点調節部による焦点調節を起動する起動部と、
前記位相差検出部により検出されたずれ量を記憶する記憶部と、
露光時間、撮像感度、および絞り値を含む露出制御値に基づいて、前記一対の受光センサの露出制御を行う露出制御部と、
前記ずれ量の信頼性の閾値である第1閾値を、前記ずれ量の信頼性が前記第1閾値以上である場合に、該ずれ量に基づいて焦点調節を行うことで焦点調節後におけるずれ量が、被写体の被写界深度の範囲内となると判断できるような閾値に設定する第1閾値設定部と、
前記ずれ量の信頼性の閾値である第2閾値を、前記ずれ量の信頼性が前記第2閾値未満である場合に、該ずれ量に基づいて光軸方向のうち合焦位置が存在する方向を判断できるに留まるような閾値に設定する第2閾値設定部と、
前記起動部により、前記焦点調節の起動が行われた場合に、前記焦点調節を起動する前に検出された前記ずれ量の信頼性が、前記第1閾値以上であるか否か、および、前記第2閾値未満であるか否かを判定する判定手段と、
前記焦点調節を起動する前に検出された前記ずれ量の信頼性が、前記第1閾値以上であると判定された場合に、前記露出制御部に露出制御値を変更させずに、前記焦点調節を起動する前に検出された前記ずれ量に基づいて、前記焦点調節部に前記焦点調節光学系を駆動させる第1制御部と、
前記焦点調節を起動する前に検出された前記ずれ量の信頼性が、前記第1閾値未満であり、かつ、前記第2閾値以上である場合には、前記光学系の絞り値を固定したまま、前記露光時間および前記撮像感度のうち少なくとも1つを変更させることで、焦点検出に適した露出となるか否かを判断し、焦点検出に適した露出となる場合には、前記露出制御部に、前記光学系の絞り値を固定したまま、前記露光時間および前記撮像感度のうち少なくとも1つを変更させて露出制御を行わせ、焦点検出に適した露出とならない場合には、前記露出制御部に、前記光学系の絞り値に加えて、前記露光時間および前記撮像感度のうち少なくとも1つを変更させて露出制御を行わせる第2制御部と、
前記焦点調節を起動する前に検出された前記ずれ量の信頼性が、前記第2閾値未満である場合には、前記露出制御部に、前記光学系の絞り値を固定させずに、前記絞り値、前記露光時間、および前記撮像感度のうち少なくとも1つを変更させて露出制御を行わせる第3制御部と、を備えることを特徴とする焦点調節装置。
A pair of light receiving sensors for receiving a pair of light beams via an optical system having a focus adjusting optical system;
A phase difference detection unit that detects an image plane shift amount by the optical system based on outputs of the pair of light receiving sensors;
A focus adjustment unit that adjusts the focus of the optical system by driving the focus adjustment optical system in the optical axis direction;
An activation unit that activates focus adjustment by the focus adjustment unit;
A storage unit for storing a deviation amount detected by the phase difference detection unit;
An exposure control unit that performs exposure control of the pair of light receiving sensors based on an exposure control value including an exposure time, an imaging sensitivity, and an aperture value;
The first threshold value, which is a threshold value for the reliability of the shift amount, is set to a shift amount after focus adjustment by performing focus adjustment based on the shift amount when the reliability of the shift amount is equal to or greater than the first threshold value. A first threshold value setting unit that sets a threshold value that can be determined to be within the range of the depth of field of the subject;
The second threshold value, which is a threshold value for the reliability of the deviation amount, is a direction in which an in-focus position exists in the optical axis direction based on the deviation amount when the reliability of the deviation amount is less than the second threshold value. A second threshold value setting unit that sets the threshold value so that it can be determined,
Whether the reliability of the shift amount detected before starting the focus adjustment is greater than or equal to the first threshold when the focus adjustment is started by the starter, and Determining means for determining whether or not it is less than a second threshold;
When it is determined that the reliability of the shift amount detected before starting the focus adjustment is equal to or greater than the first threshold, the focus adjustment is performed without causing the exposure control unit to change the exposure control value. A first control unit that causes the focus adjustment unit to drive the focus adjustment optical system based on the shift amount detected before starting
When the reliability of the shift amount detected before starting the focus adjustment is less than the first threshold and greater than or equal to the second threshold, the aperture value of the optical system remains fixed. The exposure controller determines whether or not the exposure is suitable for focus detection by changing at least one of the exposure time and the imaging sensitivity. If the exposure is suitable for focus detection, the exposure control unit When the exposure control is performed by changing at least one of the exposure time and the imaging sensitivity while the aperture value of the optical system is fixed, and the exposure is not suitable for focus detection, the exposure control is performed. A second controller that controls exposure by changing at least one of the exposure time and the imaging sensitivity in addition to the aperture value of the optical system;
When the reliability of the shift amount detected before starting the focus adjustment is less than the second threshold value, the exposure control unit does not fix the aperture value of the optical system without fixing the aperture value. And a third control unit that controls exposure by changing at least one of a value, the exposure time, and the imaging sensitivity.
請求項1に記載の焦点調節装置において、
前記第2制御部は、前記光学系の絞り値を固定したまま、前記露光時間および前記撮像感度のうち少なくとも1つを変更させた場合に、焦点検出に最適な露出よりも所定の段数だけ明るい露出または所定の段数だけ暗い露出となる場合でも、焦点検出に適した露出となると判断し、前記露出制御部に、前記光学系の絞り値を固定したまま、前記露光時間および前記撮像感度のうち少なくとも1つを変更させて露出制御を行わせることを特徴とする焦点調節装置。
The focus adjustment apparatus according to claim 1,
The second control unit is brighter by a predetermined number of steps than the optimum exposure for focus detection when at least one of the exposure time and the imaging sensitivity is changed while the aperture value of the optical system is fixed. Even if the exposure or exposure is dark by a predetermined number of steps, it is determined that the exposure is suitable for focus detection, and the exposure control unit keeps the aperture value of the optical system fixed in the exposure control unit. A focus adjustment device that controls exposure by changing at least one of them.
請求項1または2に記載の焦点調節装置において、
前記光学系による像を撮像し、撮像した像に対応する画像信号を出力する撮像部と、
前記撮像部により出力された前記画像信号に基づいて、前記光学系による像のコントラストに関する評価値を算出することで、前記光学系の焦点状態を検出するコントラスト検出部と、をさらに備え、
前記一対の受光センサは、前記撮像部の受光面に備えられることを特徴とする焦点調節装置。
The focusing apparatus according to claim 1 or 2,
An imaging unit that captures an image by the optical system and outputs an image signal corresponding to the captured image;
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;
The pair of light receiving sensors are provided on a light receiving surface of the image pickup unit.
請求項1〜3のいずれかに記載の焦点調節装置において、
前記位相差検出部は、前記焦点調節が起動しているか否かに拘わらず、前記ずれ量の検出を行うことを特徴とする焦点調節装置。
In the focus adjustment apparatus according to any one of claims 1 to 3,
The focus adjustment apparatus, wherein the phase difference detection unit detects the shift amount regardless of whether or not the focus adjustment is activated.
請求項1〜4のいずれかに記載の焦点調節装置を備えた撮像装置。   The imaging device provided with the focus adjustment apparatus in any one of Claims 1-4.
JP2011160701A 2011-07-22 2011-07-22 Focus adjustment device and imaging device Active JP5760792B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011160701A JP5760792B2 (en) 2011-07-22 2011-07-22 Focus adjustment device and imaging device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011160701A JP5760792B2 (en) 2011-07-22 2011-07-22 Focus adjustment device and imaging device

Publications (2)

Publication Number Publication Date
JP2013025132A JP2013025132A (en) 2013-02-04
JP5760792B2 true JP5760792B2 (en) 2015-08-12

Family

ID=47783525

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011160701A Active JP5760792B2 (en) 2011-07-22 2011-07-22 Focus adjustment device and imaging device

Country Status (1)

Country Link
JP (1) JP5760792B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6199065B2 (en) * 2013-04-22 2017-09-20 株式会社ザクティ Electronic camera
CN105227840B (en) * 2015-10-08 2019-04-19 Oppo广东移动通信有限公司 Focusing method and device
WO2022244311A1 (en) * 2021-05-20 2022-11-24 ソニーグループ株式会社 Imaging device, image processing method, and program

Also Published As

Publication number Publication date
JP2013025132A (en) 2013-02-04

Similar Documents

Publication Publication Date Title
WO2013015131A1 (en) Focus adjustment device and image capturing apparatus
JP6019556B2 (en) Focus detection device, imaging device, and camera.
JP5776210B2 (en) Focus adjustment device and imaging device
JP6477744B2 (en) interchangeable lens
JP5760792B2 (en) Focus adjustment device and imaging device
JP5891667B2 (en) Focus adjustment device and imaging device provided with the same
JP5454521B2 (en) Imaging device
JP2013061579A (en) Focusing device and imaging apparatus
JP6127730B2 (en) Imaging device
JP6098690B2 (en) Lens barrel and camera body
JP5821934B2 (en) Focus detection device, camera body, and camera
JP5423734B2 (en) Lens barrel and imaging device
JP5966283B2 (en) Camera body and camera
JP5370411B2 (en) Imaging device
JP5987285B2 (en) Focus adjustment device and imaging device
JP2012181448A (en) Focusing device and imaging apparatus
JP6477630B2 (en) Imaging device
JP6477576B2 (en) Imaging device
JP2016122210A (en) Focus detection device and imaging device
JP5764953B2 (en) Focus adjustment device and imaging device
JP5961979B2 (en) Focus adjustment device and imaging device
JP5545278B2 (en) Lens adapter and camera body
JP5494594B2 (en) Lens barrel and camera body
JP5434992B2 (en) Imaging device
JP5862087B2 (en) Focus adjustment device and imaging device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20140717

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20150415

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20150512

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20150525

R150 Certificate of patent or registration of utility model

Ref document number: 5760792

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250