JP5482447B2 - Ranging point determination system, autofocus system, and camera - Google Patents

Ranging point determination system, autofocus system, and camera Download PDF

Info

Publication number
JP5482447B2
JP5482447B2 JP2010119753A JP2010119753A JP5482447B2 JP 5482447 B2 JP5482447 B2 JP 5482447B2 JP 2010119753 A JP2010119753 A JP 2010119753A JP 2010119753 A JP2010119753 A JP 2010119753A JP 5482447 B2 JP5482447 B2 JP 5482447B2
Authority
JP
Japan
Prior art keywords
ranging
point
points
primary
subject
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2010119753A
Other languages
Japanese (ja)
Other versions
JP2011248018A (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.)
Ricoh Imaging Co Ltd
Original Assignee
Ricoh Imaging Co Ltd
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 Ricoh Imaging Co Ltd filed Critical Ricoh Imaging Co Ltd
Priority to JP2010119753A priority Critical patent/JP5482447B2/en
Publication of JP2011248018A publication Critical patent/JP2011248018A/en
Application granted granted Critical
Publication of JP5482447B2 publication Critical patent/JP5482447B2/en
Expired - Fee Related 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 distance measuring point determination system that determines a used distance measuring point used for focusing from among a plurality of fixed distance measuring points in order to quickly focus on a subject.

被写体を撮像面において自動的に合焦させるオートフォーカス(AF)機能として、位相差AF機能およびコントラストAF機能が知られている。   A phase difference AF function and a contrast AF function are known as autofocus (AF) functions for automatically focusing a subject on an imaging surface.

従来のデジタル一眼レフカメラでは、合焦動作が短時間で完了する位相差AF機能が実行されることが一般的であった。位相差AF機能の実行においては、撮影範囲内の定められた測距点に位置する光学像を撮像面に合焦させるように、フォーカスレンズが変位させられる(特許文献1参照)。   In a conventional digital single-lens reflex camera, a phase difference AF function that completes the focusing operation in a short time is generally executed. In the execution of the phase difference AF function, the focus lens is displaced so that an optical image located at a predetermined distance measuring point within the imaging range is focused on the imaging surface (see Patent Document 1).

最近のデジタル一眼レフカメラでは、撮影待機状態において被写体の光学像をモニタに表示させるライブビュー機能が設けられている。ライブビュー機能を実行するために被写体の光学像は撮像素子に受光される。   Recent digital single-lens reflex cameras have a live view function for displaying an optical image of a subject on a monitor in a shooting standby state. In order to execute the live view function, the optical image of the subject is received by the image sensor.

撮像素子により生成される画像信号はモニタの表示だけでなく、画像の解析に用いることも可能である。例えば、受光した画像を解析することにより、人物の顔等の特定の種類の撮影対象を自動的に検出可能である。検出された撮影対象に対して露出調整や合焦調整を行うことも提案されている。   The image signal generated by the image sensor can be used not only for display on the monitor but also for image analysis. For example, by analyzing a received image, it is possible to automatically detect a specific type of photographing target such as a human face. It has also been proposed to perform exposure adjustment and focus adjustment on the detected subject.

検出された撮影対象の位置は前述のような所定の位置の測距点と一致するわけでないことが一般的である。それゆえ、撮影対象を自動検出する場合には、位相差AF機能でなく、撮影範囲内におけるいずれの位置の被写体に対しても合焦させることが可能なコントラストAF機能が実行されていた。   In general, the detected position of the object to be photographed does not coincide with the distance measuring point at the predetermined position as described above. Therefore, in the case of automatically detecting an imaging target, a contrast AF function capable of focusing on a subject at any position in the imaging range is executed instead of the phase difference AF function.

しかし、コントラストAF機能の実行時には、フォーカスレンズを動かしながら合焦しているか否かを判別するため、合焦動作を完了させるまでに時間がかかることが問題であった。   However, when the contrast AF function is executed, it takes a long time to complete the focusing operation in order to determine whether or not the focusing lens is in focus.

それゆえ、撮影対象を自動検出する場合であっても、位相差AF機能を実行することが望まれていたが、いずれの測距点を用いることが最適であるかは不明であった。   Therefore, although it is desired to execute the phase difference AF function even in the case of automatically detecting an imaging target, it is unclear which distance measurement point is optimal.

特開2001−281530号公報JP 2001-281530 A

したがって、本発明では、撮影対象を自動で検出可能なカメラに位相差AF機能を実行させるために最適な測距点を確定する測距点確定システムの提供を目的とする。   Therefore, an object of the present invention is to provide a distance measuring point determination system that determines an optimum distance measuring point in order to cause a camera that can automatically detect an imaging target to execute a phase difference AF function.

本発明の測距点確定システムは、撮影範囲内における位置が予め定められた複数の固定測距点に基づいて位相差AFにより合焦させる被写体である主要被写体を合焦させるために用いる使用測距点を確定する測距点確定システムであって、撮影範囲内の被写体像の一部を位相差検出のために受光し長手方向における特定の位置が固定測距点として定められた複数のラインセンサと、撮影範囲の光学像を受光し受光した光学像に相当する画像信号を生成する撮像素子と、画像信号に基づいて主要被写体を検出する画像検出部と、画像検出部により検出された主要被写体の撮影範囲内における位置である被写体位置を検出する位置検出部と、被写体位置と固定測距点との距離である第1の距離を複数の固定測距点それぞれに対して算出する距離算出部と、複数の固定測距点それぞれに対して算出された複数の第1の距離の中で実質的に互いに等しく最小となる第1の距離が複数あるか否かを判別する判別部と、判別部が複数の第1の距離の中で実質的に互いに等しく最小となる第1の距離が複数あると判別した場合に最小となる複数の第1の距離に対応する複数の固定測距点を一次測距点として選択する第1の選択部と、第1の選択部に選択された複数の一次測距点の中で同一のラインセンサに定められた一次測距点が2つある場合には同一のラインセンサ上の2つの一次測距点の間の点を二次測距点に設定し第1の選択部に選択された複数の一次測距点の中で同一のラインセンサに定められた一次測距点が1つである場合には同一のラインセンサ上の1つの一次測距点を二次測距点に設定する設定部と、設定部により複数の二次測距点が設定された場合には画像信号に基づいて被写体位置および複数の二次測距点におけるコントラスト値を算出するコントラスト算出部と、被写体位置におけるコントラスト値に最も近いコントラスト値である二次測距点を選択し使用測距点として確定する第2の選択部とを備えることを特徴としている。   The distance measuring point determination system according to the present invention is a measurement method used for focusing a main subject, which is a subject to be focused by phase difference AF, based on a plurality of fixed distance measuring points whose positions in a photographing range are predetermined. A distance measuring point determination system for determining a distance point, wherein a plurality of lines in which a part of a subject image within a photographing range is received for phase difference detection and a specific position in a longitudinal direction is determined as a fixed distance measuring point A sensor, an image sensor that receives an optical image of the shooting range and generates an image signal corresponding to the received optical image, an image detection unit that detects a main subject based on the image signal, and a main detected by the image detection unit A position detection unit that detects a subject position that is a position within the photographing range of the subject, and a distance calculation that calculates a first distance that is a distance between the subject position and the fixed distance measuring point for each of the plurality of fixed distance measuring points. And a determination unit for determining whether or not there are a plurality of first distances that are substantially equal and minimum among a plurality of first distances calculated for each of the plurality of fixed ranging points; A plurality of fixed distance measuring points corresponding to a plurality of first distances that are minimum when the determination unit determines that there are a plurality of first distances that are substantially equal and minimum among the plurality of first distances. When there are two primary ranging points determined by the same line sensor among a plurality of primary ranging points selected by the first selection unit and a first selection unit that selects the first ranging point In this case, a point between two primary ranging points on the same line sensor is set as a secondary ranging point, and the same line sensor is selected among the plurality of primary ranging points selected by the first selection unit. If there is only one primary ranging point, one primary ranging point on the same line sensor is used as the secondary ranging point. A setting unit for setting, a contrast calculating unit for calculating a subject position and a contrast value at the plurality of secondary ranging points based on an image signal when a plurality of secondary ranging points are set by the setting unit, and a subject And a second selection unit that selects a secondary distance measuring point having a contrast value closest to the contrast value at the position and determines it as a used distance measuring point.

さらに、設定部は第1の選択部に選択された複数の一次測距点すべてが同一のラインセンサ上に定められている場合にはすべての一次測距点の間の点を二次測距点に設定し、第2の選択部は設定部により単一の二次測距点が設定された場合には二次測距点を使用測距点として確定することが好ましい。   Further, the setting unit performs secondary ranging for the points between all primary ranging points when all of the plurality of primary ranging points selected by the first selection unit are set on the same line sensor. Preferably, the second selection unit determines the secondary ranging point as the use ranging point when a single secondary ranging point is set by the setting unit.

さらに、設定部は第1の選択部により選択された複数の一次測距点を複数の二次測距点に設定することが好ましい。   Furthermore, it is preferable that the setting unit sets a plurality of primary ranging points selected by the first selection unit as a plurality of secondary ranging points.

さらに、第2の選択部は、判別部が複数の第1の距離の中で実質的に互いに等しく最小となる第1の距離が単一であると判別した場合に、最小となる単一の第1の距離に対応する固定測距点を使用測距点として確定することが好ましい。   Further, the second selection unit is configured such that when the determination unit determines that there is a single first distance that is substantially equal and minimum among the plurality of first distances, It is preferable to fix the fixed distance measuring point corresponding to the first distance as the use distance measuring point.

さらに、判別部は、2つの固定測距点に対して算出された2つの第1の距離の差が2つの第1の距離の中でより短い第1の距離と第1の係数との積未満である場合に2つの第1の距離が実質的に互いに等しいと判別することが好ましい。   Further, the discriminating unit is a product of the first distance and the first coefficient in which the difference between the two first distances calculated for the two fixed distance measuring points is shorter than the two first distances. Preferably, it is determined that the two first distances are substantially equal to each other if the distance is less than

さらに、判別部は、2つの前記固定測距点に対して算出された2つの前記第1の距離の差が閾値未満である場合に前記2つの第1の距離が実質的に互いに等しいと判別することが好ましい。   Further, the determining unit determines that the two first distances are substantially equal to each other when a difference between the two first distances calculated for the two fixed distance measuring points is less than a threshold value. It is preferable to do.

本発明のオートフォーカスシステムは、撮影範囲内の被写体像の一部を位相差検出のために受光し長手方向における特定の位置が固定測距点として定められた複数のラインセンサと、撮影範囲の光学像を受光し受光した光学像に相当する画像信号を生成する撮像素子と、画像信号に基づいて合焦させる被写体である主要被写体を検出する画像検出部と、画像検出部により検出された主要被写体の撮影範囲内における位置である被写体位置を検出する第1の位置検出部と、被写体位置と固定測距点との距離である第1の距離を複数の固定測距点それぞれに対して算出する距離算出部と、複数の固定測距点それぞれに対して算出された複数の第1の距離の中で実質的に互いに等しく最小となる第1の距離が複数あるか否かを判別する判別部と、判別部が複数の第1の距離の中で実質的に互いに等しく最小となる第1の距離が複数あると判別した場合に最小となる複数の第1の距離に対応する複数の固定測距点を一次測距点として選択する第1の選択部と、第1の選択部に選択された複数の一次測距点の中で同一のラインセンサに定められた一次測距点が2つある場合には同一のラインセンサ上の2つの一次測距点の間の点を二次測距点に設定し第1の選択部に選択された複数の一次測距点の中で同一のラインセンサに定められた一次測距点が1つである場合には同一のラインセンサ上の1つの一次測距点を二次測距点に設定する設定部と、設定部により複数の二次測距点が設定された場合には画像信号に基づいて被写体位置および複数の二次測距点におけるコントラスト値を算出するコントラスト算出部と、被写体位置におけるコントラスト値に最も近いコントラスト値である二次測距点を選択し使用測距点として確定する第2の選択部と、第2の選択部により確定された使用測距点に位置する被写体をラインセンサに受光させることにより被写体を合焦状態にするフォーカスレンズの位置を位相差方式で検出する第2の位置検出部と、第2の位置検出部に検出された位置にフォーカスレンズを変位させる駆動部とを備えることを特徴としている。   The autofocus system of the present invention receives a part of a subject image within a shooting range for phase difference detection, and includes a plurality of line sensors in which a specific position in the longitudinal direction is defined as a fixed distance measuring point, An image sensor that receives an optical image and generates an image signal corresponding to the received optical image, an image detector that detects a main subject that is a subject to be focused based on the image signal, and a main detected by the image detector A first position detection unit that detects a subject position that is a position within the photographing range of the subject, and a first distance that is a distance between the subject position and the fixed distance measuring point is calculated for each of the plurality of fixed distance measuring points. And determining whether there are a plurality of first distances that are substantially equal and minimum among the plurality of first distances calculated for each of the plurality of fixed distance measuring points. Department and size A plurality of fixed distance measuring points corresponding to a plurality of first distances that are minimum when the unit determines that there are a plurality of first distances that are substantially equal and minimum among the plurality of first distances; When there are two primary ranging points determined by the same line sensor among a first selection unit selected as a primary ranging point and a plurality of primary ranging points selected by the first selection unit Sets a point between two primary ranging points on the same line sensor as a secondary ranging point, and determines the same line sensor among a plurality of primary ranging points selected by the first selection unit. If there is one primary ranging point, a setting unit that sets one primary ranging point on the same line sensor as a secondary ranging point, and a plurality of secondary ranging points are set by the setting unit. When set, a contrast value is calculated for calculating the contrast value at the subject position and multiple secondary ranging points based on the image signal. A trust calculation unit; a second selection unit that selects a secondary ranging point that has a contrast value closest to the contrast value at the subject position, and determines the used ranging point; and a used measurement unit determined by the second selection unit. A second position detection unit that detects the position of the focus lens that makes the subject in focus by causing the line sensor to receive the subject located at the distance point, and the second position detection unit. And a drive unit that displaces the focus lens at a position.

本発明のカメラは、撮影範囲内の被写体像の一部を位相差検出のために受光し長手方向における特定の位置が固定測距点として定められた複数のラインセンサと、撮影範囲の光学像を受光し受光した光学像に相当する画像信号を生成する撮像素子と、画像信号に基づいて合焦させる被写体である主要被写体を検出する画像検出部と、画像検出部により検出された主要被写体の撮影範囲内における位置である被写体位置を検出する第1の位置検出部と、被写体位置と固定測距点との距離である第1の距離を複数の固定測距点それぞれに対して算出する距離算出部と、複数の固定測距点それぞれに対して算出された複数の第1の距離の中で実質的に互いに等しく最小となる第1の距離が複数あるか否かを判別する判別部と、判別部が複数の第1の距離の中で実質的に互いに等しく最小となる第1の距離が複数あると判別した場合に最小となる複数の第1の距離に対応する複数の固定測距点を一次測距点として選択する第1の選択部と、第1の選択部に選択された複数の一次測距点の中で同一のラインセンサに定められた一次測距点が2つある場合には同一のラインセンサ上の2つの一次測距点の間の点を二次測距点に設定し第1の選択部に選択された複数の一次測距点の中で同一のラインセンサに定められた一次測距点が1つである場合には同一のラインセンサ上の1つの一次測距点を二次測距点に設定する設定部と、決定部により複数の二次測距点が決定された場合には画像信号に基づいて被写体位置および複数の二次測距点におけるコントラスト値を算出するコントラスト算出部と、被写体位置におけるコントラスト値に最も近いコントラスト値である二次測距点を選択し使用測距点として確定する第2の選択部と、第2の選択部により確定された使用測距点に位置する被写体をラインセンサに受光させることにより被写体を合焦状態にするフォーカスレンズの位置を位相差方式で検出する第2の位置検出部と、第2の位置検出部に検出された位置に前記フォーカスレンズを変位させる駆動部とを備えることを特徴としている。   The camera of the present invention receives a part of a subject image within a photographing range for phase difference detection, and includes a plurality of line sensors in which a specific position in the longitudinal direction is defined as a fixed distance measuring point, and an optical image of the photographing range. An image sensor that generates an image signal corresponding to the received optical image, an image detection unit that detects a main subject that is a subject to be focused based on the image signal, and a main subject detected by the image detection unit A first position detection unit that detects a subject position that is a position within the shooting range, and a distance that calculates a first distance that is a distance between the subject position and the fixed distance measuring point for each of the plurality of fixed distance measuring points. A calculating unit and a determining unit for determining whether or not there are a plurality of first distances that are substantially equal and minimum among the plurality of first distances calculated for each of the plurality of fixed ranging points; The discriminator has a plurality of first When it is determined that there are a plurality of first distances that are substantially equal and minimum among the distances, a plurality of fixed distance measuring points corresponding to the plurality of first distances that are the smallest are selected as primary distance measuring points. When there are two primary ranging points determined by the same line sensor among a plurality of primary ranging points selected by the first selection unit and the first selection unit, the same selection is made on the same line sensor. A point between two primary ranging points is set as a secondary ranging point, and a primary ranging point determined by the same line sensor among a plurality of primary ranging points selected by the first selection unit is When there is one, a setting unit that sets one primary ranging point on the same line sensor as a secondary ranging point, and an image when a plurality of secondary ranging points are determined by the determining unit A contrast calculation unit for calculating a contrast value at a subject position and a plurality of secondary ranging points based on the signal; A second selection unit that selects a secondary ranging point that has a contrast value closest to the contrast value at the subject position and determines it as a used ranging point, and a used ranging point that is confirmed by the second selection unit. The focus lens is positioned at a position detected by the second position detector, a second position detector that detects the position of the focus lens that makes the subject in focus by causing the line sensor to receive the subject, and a phase difference method. And a drive unit for displacing the head.

本発明によれば、自動的に検出した主要な被写体に対して位相差AF機能を実行するのに最適な測距点を確定することが可能である。   According to the present invention, it is possible to determine the optimum distance measuring point for executing the phase difference AF function for the main subject that is automatically detected.

本発明の第1の実施形態を適用した測距点選択システムを有するデジタル一眼レフカメラの内部構成を概略的に示すブロック図である。1 is a block diagram schematically showing an internal configuration of a digital single-lens reflex camera having a distance measuring point selection system to which a first embodiment of the present invention is applied. FIG. 撮影範囲内に定められた第1〜第9の固定測距点を示す配置図である。FIG. 10 is a layout diagram showing first to ninth fixed distance measuring points defined within an imaging range. AFセンサモジュールの概念的な構成図である。It is a notional block diagram of an AF sensor module. ラインセンサユニットの正面図である。It is a front view of a line sensor unit. 顔が検出されたときにLCDに表示される画像である。It is an image displayed on the LCD when a face is detected. 対応する固定対応点が同じラインセンサ上にある一次測距点が複数ある場合に設定される二次測距点の第1〜第9の固定測距点の中における配置図である。FIG. 10 is an arrangement diagram of secondary ranging points set in the first to ninth fixed ranging points set when there are a plurality of primary ranging points having corresponding fixed corresponding points on the same line sensor. 検出された顔の位置が単一の固定測距点に近い状態を示す図である。It is a figure which shows the state where the position of the detected face is close to a single fixed distance measuring point. 検出された顔の位置に近い固定測距点が、同じ行の2点のみである状態を示す図である。It is a figure which shows the state where the fixed distance measuring point near the position of the detected face is only two points of the same line. 検出された顔の位置に近い固定測距点が、異なる行の2点のみである状態を示す図である。It is a figure which shows the state where the fixed distance measuring points near the position of the detected face are only two points of a different line. 検出された顔の位置に近い固定測距点が、同じ行の2点と別の行の1点のみである状態を示す図である。It is a figure which shows the state in which the fixed ranging point near the position of the detected face is only two points of the same line, and one point of another line. 検出された顔の位置に近い固定測距点が、同じ行の2点と別の行の2点のみである状態を示す図である。It is a figure which shows the state in which the fixed distance measuring points near the position of the detected face are only two points of the same line, and two points of another line. 撮影モードにおいてCPUにより実行される各部位の動作の制御を説明するための第1のフローチャートである。It is a 1st flowchart for demonstrating control of the operation | movement of each site | part performed by CPU in imaging | photography mode. 撮影モードにおいてCPUにより実行される各部位の動作の制御を説明するための第2のフローチャートである。It is a 2nd flowchart for demonstrating control of the operation | movement of each site | part performed by CPU in imaging | photography mode. CPUにより実行される測距点確定処理のサブルーチンを示すフローチャートである。It is a flowchart which shows the subroutine of the ranging point determination process performed by CPU. CPUにより実行される撮像処理のフローチャートである。It is a flowchart of the imaging process performed by CPU.

以下、本発明の実施形態について図面を参照して説明する。
図1は、本発明の第1の実施形態を適用した測距点確定システムを有するデジタル一眼レフカメラの内部構成を概略的に示すブロック図である。
Embodiments of the present invention will be described below with reference to the drawings.
FIG. 1 is a block diagram schematically showing an internal configuration of a digital single-lens reflex camera having a distance measuring point determination system to which the first embodiment of the present invention is applied.

デジタル一眼レフカメラ10は、撮影光学系11、メインミラー12、シャッタ13、撮像素子14、AFE15、デジタルシグナルプロセッサ(DSP)16(画像検出部、位置検出部、コントラスト算出部)、CPU17(距離算出部、判別部、第1の選択部、設定部、第2の選択部)、およびレンズ駆動機構18などによって構成される。   The digital single-lens reflex camera 10 includes a photographing optical system 11, a main mirror 12, a shutter 13, an image sensor 14, an AFE 15, a digital signal processor (DSP) 16 (an image detection unit, a position detection unit, a contrast calculation unit), and a CPU 17 (a distance calculation). Unit, a determination unit, a first selection unit, a setting unit, a second selection unit), a lens driving mechanism 18, and the like.

撮影光学系11はフォーカスレンズ11fや変倍レンズ(図示せず)を含む複数のレンズによって形成される。フォーカスレンズ11fおよび変倍レンズはレンズ駆動機構18に駆動されることによって、撮影光学系11の光軸に沿って変位する。   The photographing optical system 11 is formed by a plurality of lenses including a focus lens 11f and a variable power lens (not shown). The focus lens 11 f and the variable power lens are displaced along the optical axis of the photographing optical system 11 by being driven by the lens driving mechanism 18.

撮影光学系11の光軸に垂直となるように、かつ光軸上に撮像素子14が配置される。撮影光学系11により、被写体の光学像が撮像素子14の受光面に結像する。撮影光学系11と撮像素子14との間に、メインミラー12およびシャッタ13が配置される。   An image sensor 14 is disposed on the optical axis so as to be perpendicular to the optical axis of the photographing optical system 11. An optical image of the subject is formed on the light receiving surface of the image sensor 14 by the photographing optical system 11. A main mirror 12 and a shutter 13 are disposed between the photographing optical system 11 and the image sensor 14.

メインミラー12により撮影光学系11を透過した光学像の伝達先が切替えられる。メインミラー12を閉じた状態では、光学像はペンタプリズム19に向けて反射され、ビューファインダ(図示せず)に伝達される。メインミラー12を上方に開いた状態では、光学像がシャッタ13に到達する。メインミラー12の開閉はミラー駆動機構(図示せず)により実行される。   The transmission destination of the optical image transmitted through the photographing optical system 11 is switched by the main mirror 12. When the main mirror 12 is closed, the optical image is reflected toward the pentaprism 19 and transmitted to a viewfinder (not shown). When the main mirror 12 is opened upward, the optical image reaches the shutter 13. The main mirror 12 is opened and closed by a mirror drive mechanism (not shown).

シャッタ13により、光学像の撮像素子14への遮光と到達とが切替えられる。シャッタ13が閉じられるときには、光学像は撮像素子14に到達しない。一方、シャッタ13が開かれるときには、光学像が撮像素子14に到達する。   The shutter 13 switches between shielding and reaching the optical image sensor 14. When the shutter 13 is closed, the optical image does not reach the image sensor 14. On the other hand, when the shutter 13 is opened, the optical image reaches the image sensor 14.

シャッタ13が開かれ、撮像素子14に光学像が到達するときに、光学像に応じた画像信号が生成される。生成された画像信号はAFE15においてCDS処理およびAGC処理が施される。また、A/D変換処理が施され、画像データに変換される。画像データはDSP16に送信される。   When the shutter 13 is opened and the optical image reaches the image sensor 14, an image signal corresponding to the optical image is generated. The generated image signal is subjected to CDS processing and AGC processing in the AFE 15. In addition, A / D conversion processing is performed and converted into image data. The image data is transmitted to the DSP 16.

DSP16において、画像データに所定のデータ処理が施される。所定のデータ処理が施された画像データは画像メモリ20に格納される。または、画像データはLCD21に送信され、画像データに相当する画像がLCD21に表示される。   In the DSP 16, predetermined data processing is performed on the image data. Image data that has undergone predetermined data processing is stored in the image memory 20. Alternatively, the image data is transmitted to the LCD 21 and an image corresponding to the image data is displayed on the LCD 21.

DSP16は、CPU17に接続される。DSP16はCPU17から受信するデータに基づいて、画像データに対するデータ処理、画像データの格納、画像データに対応する画像の表示などの処理を制御する。   The DSP 16 is connected to the CPU 17. Based on the data received from the CPU 17, the DSP 16 controls processing such as data processing for image data, storage of image data, and display of an image corresponding to the image data.

なお、CPU17はレンズ駆動機構18やAFセンサモジュール22のように、デジタル一眼レフカメラ10の各部位の動作の制御をおこなう。CPU17はROM23に接続される。ROM23には、CPU17による各部位の制御のために必要なデータが格納される。   The CPU 17 controls the operation of each part of the digital single lens reflex camera 10 like the lens driving mechanism 18 and the AF sensor module 22. The CPU 17 is connected to the ROM 23. The ROM 23 stores data necessary for the control of each part by the CPU 17.

デジタル一眼レフカメラ10は、位相差AF機能またはコントラストAF機能を実行可能である。以下に説明するように、位相差AF機能はメインミラー12を閉じた状態で実行される。また、コントラストAF機能はメインミラー12およびシャッタ13を開いた状態で実行される。   The digital single lens reflex camera 10 can execute a phase difference AF function or a contrast AF function. As will be described below, the phase difference AF function is executed with the main mirror 12 closed. The contrast AF function is executed with the main mirror 12 and the shutter 13 open.

メインミラー12とシャッタ13との間に、サブミラー24が設けられる。メインミラー12はハーフミラーであり、撮影光学系11を透過した光学像の一部はメインミラー12により反射され、上述のようにペンタプリズム19に到達する。また、撮影光学系11を透過した光学像の一部はメインミラー12を透過して、サブミラー24によりAFセンサモジュール22に向かって反射される。   A sub mirror 24 is provided between the main mirror 12 and the shutter 13. The main mirror 12 is a half mirror, and a part of the optical image transmitted through the photographing optical system 11 is reflected by the main mirror 12 and reaches the pentaprism 19 as described above. A part of the optical image transmitted through the photographing optical system 11 passes through the main mirror 12 and is reflected toward the AF sensor module 22 by the sub mirror 24.

AFセンサモジュール22によりデフォーカス量、すなわちフォーカスレンズ11fの現在位置と被写体を合焦させる合焦位置とのズレが検出される。なお、撮影範囲内における測距点における被写体のデフォーカス量が、検出可能である。   The AF sensor module 22 detects a defocus amount, that is, a shift between the current position of the focus lens 11f and the in-focus position for focusing the subject. Note that the defocus amount of the subject at the distance measuring point within the photographing range can be detected.

図2に示すように、撮影範囲CA内における定められた位置に対応する第1〜第9の固定測距点FP1〜FP9が定められる。なお、固定測距点の位置はデータとしてROM23に格納される。第1〜第9の固定測距点FP1〜FP9は3×3の行列となるように位置が定められる。   As shown in FIG. 2, first to ninth fixed distance measuring points FP1 to FP9 corresponding to predetermined positions in the photographing range CA are determined. The position of the fixed distance measuring point is stored in the ROM 23 as data. The positions of the first to ninth fixed distance measuring points FP1 to FP9 are determined so as to form a 3 × 3 matrix.

上側から1行目の左側から右側に並ぶ固定測距点が、第1〜第3の固定測距点FP1〜FP3に定められる。2行目の左側から右側に並ぶ固定測距点が、第4〜第6の固定測距点FP4〜FP6に定められる。また、3行目の左側から右側に並ぶ固定測距点が、第7〜第9の固定測距点FP7〜FP9に定められる。   Fixed ranging points arranged from the left side to the right side in the first row from the upper side are defined as first to third fixed ranging points FP1 to FP3. Fixed ranging points arranged from the left side to the right side of the second row are determined as fourth to sixth fixed ranging points FP4 to FP6. In addition, fixed ranging points arranged from the left side to the right side in the third row are defined as seventh to ninth fixed ranging points FP7 to FP9.

位相差AF機能を実行するときには、第1〜第9の固定測距点FP1〜FP9のいずれか、または第1〜第9の固定測距点FP1〜FP9に基づいて設定される新たな測距点が
位相差AFを実行するための使用測距点として確定される。なお、第1〜第9の固定測距点FP1〜FP9のいずれかの選択および新たな測距点の設定に関しては、後に詳細に説明する。
When the phase difference AF function is executed, a new distance measurement set based on any of the first to ninth fixed distance measurement points FP1 to FP9 or the first to ninth fixed distance measurement points FP1 to FP9. The point is determined as a distance measuring point to be used for executing the phase difference AF. The selection of any one of the first to ninth fixed distance measuring points FP1 to FP9 and the setting of a new distance measuring point will be described later in detail.

AFセンサモジュール22の構成を詳細に説明する。図3に示すように、AFセンサモジュール22は、コンデンサレンズ22c、絞りマスク22m、セパレータレンズ22s、およびラインセンサユニット22uによって構成される。   The configuration of the AF sensor module 22 will be described in detail. As shown in FIG. 3, the AF sensor module 22 includes a condenser lens 22c, a diaphragm mask 22m, a separator lens 22s, and a line sensor unit 22u.

サブミラー24に反射された光学像はコンデンサレンズ22cにより集光され、絞りマスク22mに出射される。絞りマスク22mには2つの開口22oが形成される。撮影光学系11の射出瞳の左端と右端とを通った光学像がそれぞれの開口22oを通過して、別々のセパレータレンズ22sにより集光される。セパレータレンズ22sにより集光された光学像がラインセンサユニット22uに入射する。   The optical image reflected by the sub mirror 24 is condensed by the condenser lens 22c and emitted to the aperture mask 22m. Two apertures 22o are formed in the aperture mask 22m. Optical images that pass through the left end and the right end of the exit pupil of the photographing optical system 11 pass through the respective openings 22o and are collected by separate separator lenses 22s. The optical image condensed by the separator lens 22s enters the line sensor unit 22u.

図4に示すように、ラインセンサユニット22uには、互いに平行な第1〜第3のCCDラインセンサ22u1〜22u3が設けられる。第1〜第3のラインセンサ22u1〜22u3により、長手方向のそれぞれの位置における受光量を検出可能である。   As shown in FIG. 4, the line sensor unit 22u is provided with first to third CCD line sensors 22u1 to 22u3 which are parallel to each other. The first to third line sensors 22u1 to 22u3 can detect the amount of light received at each position in the longitudinal direction.

第1〜第3のラインセンサ22u1〜22u3には、基準領域saおよび参照領域raが定められる。基準領域saおよび参照領域raは、第1〜第3のラインセンサ22u1〜22u3の長手方向の中央を基準に左右対象となるように定められる。   A reference area sa and a reference area ra are defined for the first to third line sensors 22u1 to 22u3. The reference region sa and the reference region ra are determined so as to be the left and right objects with respect to the center in the longitudinal direction of the first to third line sensors 22u1 to 22u3.

右側のセパレータレンズ22sにより集光された光学像、すなわち射出瞳の左端を通った光学像が基準領域saに入射し、左側のセパレータレンズ22sにより集光された光学像、すなわち射出瞳の右端を通った光学像が参照領域raに入射する。   The optical image condensed by the right separator lens 22s, that is, the optical image passing through the left end of the exit pupil enters the reference area sa, and the optical image condensed by the left separator lens 22s, that is, the right end of the exit pupil The passed optical image enters the reference region ra.

第1のラインセンサ22u1は、撮影範囲CAにおける第1〜第3の固定測距点FP1〜FP3を通る直線の光学像が入射する位置に配置される。第2のラインセンサ22u2は撮影範囲CAにおける第4〜第6の固定測距点FP4〜FP6を通る直線の光学像が入射する位置に配置される。第3のラインセンサ22u3は撮影範囲CAにおける第7〜第9の固定測距点FP7〜FP9を通る直線の光学像が入射する位置に配置される。   The first line sensor 22u1 is disposed at a position where a linear optical image passing through the first to third fixed distance measuring points FP1 to FP3 in the photographing range CA is incident. The second line sensor 22u2 is disposed at a position where a linear optical image passing through the fourth to sixth fixed distance measuring points FP4 to FP6 in the photographing range CA is incident. The third line sensor 22u3 is disposed at a position where a linear optical image passing through the seventh to ninth fixed distance measuring points FP7 to FP9 is incident in the photographing range CA.

第1のラインセンサ22u1上の基準領域saおよび参照領域raそれぞれに、第1〜第3の固定対応点CP1〜CP3が定められる。なお、第1の固定対応点CP1は、第1の固定測距点FP1における被写体を撮像素子14に結像させるときに、第1の固定測距点FP1の光学像が到達する第1のラインセンサ22u1上の点に定められる。第2、第3の固定対応点CP2、CP3も同様に定められる。   First to third fixed corresponding points CP1 to CP3 are determined in the standard area sa and the reference area ra on the first line sensor 22u1. The first fixed corresponding point CP1 is a first line through which the optical image of the first fixed distance measuring point FP1 reaches when the subject at the first fixed distance measuring point FP1 is imaged on the image sensor 14. It is determined at a point on the sensor 22u1. The second and third fixed corresponding points CP2 and CP3 are similarly determined.

第2のラインセンサ22u2上の基準領域saおよび参照領域raそれぞれに、第4〜第6の固定対応点CP4〜CP6が定められる。なお、第1の固定対応点CP1と同様に第4〜第6の固定対応点CP4〜CP6が定められる。   Fourth to sixth fixed corresponding points CP4 to CP6 are defined in the standard area sa and the reference area ra on the second line sensor 22u2. The fourth to sixth fixed corresponding points CP4 to CP6 are determined in the same manner as the first fixed corresponding point CP1.

第3のラインセンサ22u3上の基準領域saおよび参照領域raそれぞれに、第7〜第9の固定対応点CP7〜CP9が定められる。なお、第1の固定対応点CP1と同様に第7〜第9の固定対応点CP7〜CP9が定められる。   Seventh to ninth fixed corresponding points CP7 to CP9 are defined in the standard area sa and the reference area ra on the third line sensor 22u3. The seventh to ninth fixed corresponding points CP7 to CP9 are determined in the same manner as the first fixed corresponding point CP1.

後述するように、第1〜第9の固定測距点FP1〜FP9のいずれかが使用測距点として確定されると、使用測距点と確定された固定対応点が基準領域saおよび参照領域raにおいて選択される。固定対応点が選択されると、選択された固定対応点近辺において基準領域saと参照領域raの両方において等しいとみなせる光量を受光する位置であって、固定対応点からの距離が反対方向に等しい位置が検出される。検出された距離に応じてデフォーカス量が検出される。   As will be described later, when any one of the first to ninth fixed distance measuring points FP1 to FP9 is determined as the used distance measuring point, the fixed corresponding point determined as the used distance measuring point is the reference area sa and the reference area. selected in ra. When a fixed corresponding point is selected, it is a position that receives a light amount that can be regarded as equal in both the reference area sa and the reference area ra in the vicinity of the selected fixed corresponding point, and the distance from the fixed corresponding point is equal in the opposite direction The position is detected. A defocus amount is detected according to the detected distance.

なお、第1〜第9の固定測距点FP1〜FP9が予め定められているが、第1〜第3のラインセンサ22u1〜22u3上の任意の点に対応する撮影範囲CA内の点を測距点として設定することが可能である。測距点を新たに設定した場合には、上述と同様にして設定された測距点を使用測距点として、使用測距点に位置する被写体のデフォーカス量が検出される。   Although the first to ninth fixed distance measuring points FP1 to FP9 are determined in advance, points within the photographing range CA corresponding to arbitrary points on the first to third line sensors 22u1 to 22u3 are measured. It can be set as a distance point. When a distance measuring point is newly set, the defocus amount of the subject located at the used distance measuring point is detected using the distance measuring point set in the same manner as described above as the used distance measuring point.

AFセンサセンサモジュール22はCPU17に接続される。AFセンサモジュール22はCPU17により制御され、使用測距点におけるデフォーカス量を検出する。なお、測距点は入力ボタン(図示せず)への使用者による入力により特定されてもよいし、後述するようにCPU17により自動的に決定されてもよい。   The AF sensor sensor module 22 is connected to the CPU 17. The AF sensor module 22 is controlled by the CPU 17 and detects the defocus amount at the used distance measuring point. The distance measuring point may be specified by a user input to an input button (not shown), or may be automatically determined by the CPU 17 as will be described later.

検出されたデフォーカス量はCPU17に伝達される。CPU17はデフォーカス量に基づいてレンズ駆動機構18を制御し、使用測距点における被写体を合焦させる位置にフォーカスレンズ11fを変位させる。このように、位相差AF機能は、検出したデフォーカス量に基づいてフォーカスレンズ11fを変位させることにより、合焦動作が実行される。   The detected defocus amount is transmitted to the CPU 17. The CPU 17 controls the lens driving mechanism 18 based on the defocus amount, and displaces the focus lens 11f to a position where the subject at the distance measuring point to be used is focused. In this way, the phase difference AF function performs the focusing operation by displacing the focus lens 11f based on the detected defocus amount.

一方、コントラストAF機能を実行する場合には、上述のようにメインミラー12およびシャッタ13を開き、被写体の光学像が撮像素子14に導光される。撮像素子14では、連続的に画像信号が生成される。   On the other hand, when executing the contrast AF function, the main mirror 12 and the shutter 13 are opened as described above, and the optical image of the subject is guided to the image sensor 14. The image sensor 14 continuously generates image signals.

上述のように、生成された画像信号がAFE15を介して、DSP16に伝達される。DSP16では、撮影範囲CAにおける特定の位置のコントラスト値が算出される。なお、特定の位置は、入力ボタンへの使用者による入力により特定されてもよいし、DSP16により自動的に特定されてもよい。   As described above, the generated image signal is transmitted to the DSP 16 via the AFE 15. The DSP 16 calculates a contrast value at a specific position in the shooting range CA. The specific position may be specified by a user input to the input button or may be automatically specified by the DSP 16.

1フレームの画像信号の生成を終えると、CPU17の制御に基づいてフォーカスレンズ11fが変位させられる。変位後に、再度1フレームの画像信号が生成される。フォーカスレンズ11fを徐々に変位させながら、それぞれの変位位置において生成される画像信号におけるコントラスト値が算出される。   When the generation of the image signal of one frame is finished, the focus lens 11f is displaced based on the control of the CPU 17. After the displacement, an image signal of one frame is generated again. While the focus lens 11f is gradually displaced, the contrast value in the image signal generated at each displacement position is calculated.

算出されたコントラスト値が最大になるときが、被写体の合焦状態と判別される。コントラスト値が最大となる位置にフォーカスレンズ11fを変位させることにより、コントラストAF機能が実行される。   When the calculated contrast value is maximum, it is determined that the subject is in focus. The contrast AF function is executed by displacing the focus lens 11f to a position where the contrast value is maximized.

なお、位相差AF機能およびコントラストAF機能ともに、デジタル一眼レフカメラ10の動作モードが撮影モードであるときに実行される。デジタル一眼レフカメラ10は、撮影待機状態において被写体の光学像をビューファインダにより観察可能な第1の撮影モードと撮影待機状態において被写体の光学像をLCD21により観察可能な第2の撮影モードとを有する。なお、第1、第2の撮影モードは入力ボタンへの使用者による入力によりいずれかのモードが選択される。   Note that both the phase difference AF function and the contrast AF function are executed when the operation mode of the digital single-lens reflex camera 10 is the photographing mode. The digital single-lens reflex camera 10 has a first shooting mode in which an optical image of a subject can be observed with a viewfinder in a shooting standby state, and a second shooting mode in which an optical image of the subject can be observed with an LCD 21 in a shooting standby state. . Note that the first and second shooting modes are selected by input by the user to the input button.

第1の撮影モードでは、撮影待機状態においてメインミラー12が閉じられる。前述のように、被写体の光学像はビューファインダに導光される。したがって、使用者はビューファインダにより被写体を観察可能である。   In the first shooting mode, the main mirror 12 is closed in the shooting standby state. As described above, the optical image of the subject is guided to the viewfinder. Therefore, the user can observe the subject using the viewfinder.

撮影待機状態おいてレリーズボタン(図示せず)の半押しにより測距スイッチ(図示せず)のON状態がCPU17により検出されると、前述の位相差AF機能が実行される。また、レリーズボタンの半押しにより測光スイッチ(図示せず)のON状態が検出されると被写体が測光され、絞り、シャッタースピード、および/または感度(ゲイン)などの露出条件が定められる。   When the CPU 17 detects the ON state of the distance measuring switch (not shown) by pressing the release button (not shown) halfway in the shooting standby state, the above-described phase difference AF function is executed. When the ON state of a photometry switch (not shown) is detected by half-pressing the release button, the subject is photometrically determined and exposure conditions such as aperture, shutter speed, and / or sensitivity (gain) are determined.

さらに、撮影待機状態においてレリーズボタンの全押しにより撮影スイッチ(図示せず)のON状態がCPU17により検出されると、撮像動作が実行される。撮像動作では、メインミラー12が上方に開かれ、シャッタ13が定められたシャッタースピードの間だけ開かれる。メインミラー12およびシャッタ13が開いている間に、撮像素子14により光学像が受光される。   Further, when the CPU 17 detects that the photographing switch (not shown) is turned on by fully pressing the release button in the photographing standby state, the photographing operation is executed. In the imaging operation, the main mirror 12 is opened upward, and the shutter 13 is opened only during a predetermined shutter speed. While the main mirror 12 and the shutter 13 are open, an optical image is received by the image sensor 14.

撮像素子14が受光した光学像に相当する画像信号が生成される。生成された画像信号は、前述のようにAFE15を介してDSP16に送信される。DSP16において静止画用の画像処理が施され、画像メモリ20に格納される。   An image signal corresponding to the optical image received by the image sensor 14 is generated. The generated image signal is transmitted to the DSP 16 via the AFE 15 as described above. The DSP 16 performs image processing for a still image and stores it in the image memory 20.

第2の撮影モードでは、撮影待機状態においてメインミラー12が上方に開かれる。また、シャッタ13も開かれ、被写体の光学像は撮像素子14に導光される。撮像素子14では、所定の時間間隔、例えば1/60秒毎に1フレームの画像信号が生成される。   In the second shooting mode, the main mirror 12 is opened upward in the shooting standby state. The shutter 13 is also opened, and the optical image of the subject is guided to the image sensor 14. In the image sensor 14, an image signal of one frame is generated at a predetermined time interval, for example, every 1/60 seconds.

生成された画像信号は、前述のようにAFE15を介してDSP16に送信される。DSP16において動画用の画像処理が施され、LCD21に送信される。LCD21には、受信した画像データに相当する画像が表示される。なお、LCD21に表示される画像は、画像信号の生成間隔と同じ間隔、すなわち1/60秒毎に切替えられる。表示画像を切替えることにより、LCD21にはリアルタイムの動画像が表示される。   The generated image signal is transmitted to the DSP 16 via the AFE 15 as described above. In the DSP 16, image processing for moving images is performed and transmitted to the LCD 21. An image corresponding to the received image data is displayed on the LCD 21. The image displayed on the LCD 21 is switched at the same interval as the image signal generation interval, that is, every 1/60 seconds. A real-time moving image is displayed on the LCD 21 by switching the display image.

撮影待機状態においてレリーズボタン(図示せず)の半押しにより測距スイッチ(図示せず)のON状態がCPU17により検出されると、コントラストAF機能および位相差AF機能のいずれか一方が実行される。なお、第2の撮影モードにおいて実行させるAF機能は、使用者による入力ボタンへの入力によりいずれかに定められる。   When the CPU 17 detects that the distance measuring switch (not shown) is turned on by half-pressing a release button (not shown) in the shooting standby state, either the contrast AF function or the phase difference AF function is executed. . Note that the AF function to be executed in the second shooting mode is set to any one by an input to the input button by the user.

コントラストAF機能が選択されている場合には、メインミラー12が開いたまま上述した動作が実行されることにより、コントラストAF機能が完了する。   When the contrast AF function is selected, the above-described operation is performed while the main mirror 12 is opened, thereby completing the contrast AF function.

一方、位相差AF機能が選択されている場合には、測距スイッチのON状態の検出後に一旦メインミラー12が閉じられ、被写体の光学像がAFセンサモジュール22に導光される。前述のように、AFセンサモジュール22によりデフォーカス量が検出され、検出されたデフォーカス量に基づいてフォーカスレンズ11fが変位させられる。デフォーカス量がAFセンサモジュール22により検出されると、再びメインミラー12が上方に開かれる。   On the other hand, when the phase difference AF function is selected, the main mirror 12 is temporarily closed after detecting the ON state of the distance measuring switch, and the optical image of the subject is guided to the AF sensor module 22. As described above, the AF sensor module 22 detects the defocus amount, and the focus lens 11f is displaced based on the detected defocus amount. When the defocus amount is detected by the AF sensor module 22, the main mirror 12 is again opened upward.

撮影待機状態においてレリーズボタンの半押しにより測光スイッチのON状態が検出されると、第1の撮影モードと同様に被写体が測光され、絞り、シャッタースピード、および/または感度などの露出条件が定められる。   When the ON state of the photometry switch is detected by pressing the release button halfway in the shooting standby state, the subject is metered in the same manner as in the first shooting mode, and exposure conditions such as aperture, shutter speed, and / or sensitivity are determined. .

撮影待機状態においてレリーズボタンの全押しにより撮像スイッチのON状態がCPU17により検出されると、撮像動作が実行される。第1の撮影モードと異なり、シャッタ13が撮影待機状態において開かれているので、一旦シャッタ13を閉じてから、定められたシャッタースピードの間だけ開かれ、シャッタ13が開いている間に、撮像素子14により光学像が受光される。   When the imaging switch is turned on by the CPU 17 when the release button is fully pressed in the shooting standby state, the imaging operation is executed. Unlike the first shooting mode, since the shutter 13 is opened in the shooting standby state, the shutter 13 is once closed and then opened only for a predetermined shutter speed, while the shutter 13 is opened. The optical image is received by the element 14.

受光した光学像に相当する画像信号が撮像素子14により生成される。第1の撮影モードと同様に、画像信号はDSP16において静止画用の画像処理が施された後に、画像メモリ20に格納される。   An image signal corresponding to the received optical image is generated by the image sensor 14. As in the first shooting mode, the image signal is subjected to still image processing in the DSP 16 and then stored in the image memory 20.

デジタル一眼レフカメラ10には、顔検出機能が設けられる。顔検出機能は、デジタル一眼レフカメラ10の動作モードが第2の撮影モードであるときに、実行可能である。顔検出機能実行のONまたはOFFは使用者による入力ボタンへの操作入力により切替えられる。   The digital single-lens reflex camera 10 is provided with a face detection function. The face detection function can be executed when the operation mode of the digital single-lens reflex camera 10 is the second shooting mode. ON / OFF of the face detection function execution is switched by an operation input to the input button by the user.

顔検出機能がONにすると、撮像した画像の中の顔を検出可能である。顔が検出されると、検出した顔に対して露出調整およびAFが実行される。顔検出機能がONになった状態で、測距スイッチおよび測光スイッチがONに切替えられると、顔の検出が開始される。   When the face detection function is turned on, a face in the captured image can be detected. When a face is detected, exposure adjustment and AF are performed on the detected face. If the distance measurement switch and the photometry switch are turned on with the face detection function turned on, face detection is started.

前述のように、第2の撮影モードにおいては、撮影待機中には画像信号が生成される。DSP16では、受信する画像データに対して特徴抽出や色判別などの画像解析が実行され、画像データに対応する画像の撮影範囲CA内の顔が検出される。   As described above, in the second shooting mode, an image signal is generated during shooting standby. In the DSP 16, image analysis such as feature extraction and color discrimination is performed on the received image data, and a face within the imaging range CA of the image corresponding to the image data is detected.

DSP16が顔を検出すると、検出した顔の周囲を囲う枠線を画像に重畳するように画像データに対してスーパーインポーズが施される。スーパーインポーズが施された画像データに基づいて、LCD21では、図5に示すように、検出されたすべての顔の周囲に枠線25が表示される。   When the DSP 16 detects a face, the image data is superimposed so that a frame surrounding the detected face is superimposed on the image. Based on the image data subjected to superimposition, the LCD 21 displays a frame line 25 around all detected faces as shown in FIG.

画像から顔が検出されると、検出された顔を主要な被写体として露出調整およびAFが実行される。なお、複数の顔が検出された場合には、所定の基準により単一の顔が露出調整やAFの対象となる主要な被写体に定められ、露出調整やAFが実行される。例えば、撮影範囲CAにおける位置や顔の大きさなどを基準にして定められる。   When a face is detected from the image, exposure adjustment and AF are executed with the detected face as the main subject. When a plurality of faces are detected, a single face is determined as a main subject to be subjected to exposure adjustment or AF based on a predetermined reference, and exposure adjustment or AF is executed. For example, it is determined based on the position in the photographing range CA, the size of the face, and the like.

また、登録された顔を基準にして単一の顔が主要な被写体に定められる。すなわち、検出された複数の顔の中において登録された顔が含まれる場合には、登録された顔と同じ顔が主要な被写体に定められる。   A single face is determined as the main subject based on the registered face. That is, when a registered face is included among the detected faces, the same face as the registered face is determined as the main subject.

なお、顔の登録は、画像メモリ20に格納された画像データまたはコネクタ(図示せず)を介して接続された外部のコンピュータなどから受信した画像データに相当する画像に含まれる顔の中から選択することにより実行される。   The face registration is selected from image data stored in the image memory 20 or a face included in an image corresponding to image data received from an external computer or the like connected via a connector (not shown). It is executed by doing.

単一の顔が主要な被写体に定められると、DSP16により主要な被写体と定めた顔の輝度が検出される。検出された輝度に基づいて、前述のように露出条件が定められる。   When a single face is determined as the main subject, the DSP 16 detects the brightness of the face determined as the main subject. Based on the detected luminance, the exposure condition is determined as described above.

また、単一の顔が主要な被写体に定められると、前述のようにコントラストAF機能または位相差AF機能のいずれかが実行される。   When a single face is defined as the main subject, either the contrast AF function or the phase difference AF function is executed as described above.

コントラストAF機能が選択されている場合には、主要な被写体と定めた顔の光学像を受光する位置におけるコントラスト値が算出される。前述のように、顔の光学像を受光する位置におけるコントラスト値が最大となるように、フォーカスレンズ11fが変位される。   When the contrast AF function is selected, the contrast value at the position where the optical image of the face determined as the main subject is received is calculated. As described above, the focus lens 11f is displaced so that the contrast value at the position where the optical image of the face is received is maximized.

位相差AF機能が選択されている場合には、主要な被写体と定めた顔の光学像を受光する位置がデータとしてCPU17に送信される。なお、枠線の中心や、両眼の間の位置が顔の光学像の受光位置に定められる。   When the phase difference AF function is selected, the position for receiving the optical image of the face determined as the main subject is transmitted to the CPU 17 as data. Note that the center of the frame line and the position between both eyes are determined as the light receiving position of the optical image of the face.

前述のように、位相差AF機能においては、撮影範囲CA内の単一の使用測距点に光学像が集光される被写体に対して合焦動作が実行される。使用測距点を確定するために、CPU17では、受信した受光位置と第1〜第9の固定測距点FP1〜FP9との距離(第1の距離)が算出される。   As described above, in the phase difference AF function, a focusing operation is performed on a subject on which an optical image is focused on a single used distance measuring point within the photographing range CA. In order to determine the used distance measuring points, the CPU 17 calculates distances (first distances) between the received light receiving positions and the first to ninth fixed distance measuring points FP1 to FP9.

算出された距離の中の最小値Lminが検出される。検出された最小値Lminに実質的に等しいとみなせる距離である固定測距点が他にあるか否かが判別される。   The minimum value Lmin in the calculated distance is detected. It is determined whether or not there is another fixed distance measuring point that is a distance that can be regarded as substantially equal to the detected minimum value Lmin.

なお、検出された最小値Lminに実質的に等しいとみなせる距離は、以下のように定められる距離である。まず、検出された最小値Lminに第1の係数a1が乗じられる。最小値Lminとの差が、第1の係数を乗じた最小値(a1×Lmin)未満となる距離が最小値Lminに実質的に等しいとみなせる距離に定められる。すなわち、以下の(1)式を満たす距離Lが、最小値Lminに実質的に等しいとみなされる。   The distance that can be regarded as substantially equal to the detected minimum value Lmin is a distance determined as follows. First, the detected minimum value Lmin is multiplied by the first coefficient a1. The distance from which the difference from the minimum value Lmin is less than the minimum value (a1 × Lmin) multiplied by the first coefficient is determined as a distance that can be regarded as substantially equal to the minimum value Lmin. That is, the distance L satisfying the following expression (1) is considered to be substantially equal to the minimum value Lmin.

(L−Lmin)<a1×Lmin (1)   (L−Lmin) <a1 × Lmin (1)

なお、第1の係数a1は、本実施形態では0.05に定められる。また、少なくとも0より大きな値であって、上述の目的を達成するため適当な値に定めてもよい。   Note that the first coefficient a1 is set to 0.05 in the present embodiment. Further, it is a value that is at least larger than 0, and may be set to an appropriate value in order to achieve the above-described object.

最小値Lminと実質的に等しいとみなせる距離である固定測距点が他にない場合には、受光位置からの距離が最小値Lminとなる固定測距点が選択される。単一の固定測距点が選択された場合には、選択された固定測距点が使用測距点として確定される。使用測距点が確定されると、上述のように、AFセンサモジュール22による使用測距点におけるデフォーカス量の検出、およびデフォーカス量に基づくフォーカスレンズ11fの変位が実行される。   When there is no other fixed distance measuring point that is a distance that can be regarded as substantially equal to the minimum value Lmin, the fixed distance measuring point whose distance from the light receiving position is the minimum value Lmin is selected. When a single fixed distance measuring point is selected, the selected fixed distance measuring point is determined as a used distance measuring point. When the used distance measuring point is determined, as described above, the AF sensor module 22 detects the defocus amount at the used distance measuring point and the displacement of the focus lens 11f based on the defocus amount.

一方、最小値Lminと実質的に等しいとみなせる距離である固定測距点が他にある場合には、受光位置からの距離が最小値Lminとなる固定測距点および受光位置からの距離が(1)式を満たす距離Lである固定測距点すべてが一次測距点として選択される。   On the other hand, when there is another fixed distance measuring point that is a distance that can be considered to be substantially equal to the minimum value Lmin, the distance from the light receiving position and the fixed distance measuring point at which the distance from the light receiving position is the minimum value Lmin is ( All the fixed distance measuring points having the distance L satisfying the expression 1) are selected as the primary distance measuring points.

複数の一次測距点が選択されると、一次測距点に基づき、第1の規則に応じた二次測距点が新たに設定される。第1の規則では、以下の2つの方法により二次測距点が設定される。   When a plurality of primary ranging points are selected, secondary ranging points according to the first rule are newly set based on the primary ranging points. In the first rule, the secondary ranging point is set by the following two methods.

対応する固定対応点が同じラインセンサ上にある一次測距点が複数ある場合には、複数の一次測距点の中心が二次測距点として新たに設定される。例えば、図6に示すように、第2のラインセンサ22u2に対応する固定測距点のなかで、第4、第5の固定測距点FP4、FP5が一次測距点に選択された場合には、第4、第5の固定測距点FP4、FP5の中点MPが二次測距点に定められる。   When there are a plurality of primary ranging points having corresponding fixed corresponding points on the same line sensor, the centers of the plurality of primary ranging points are newly set as secondary ranging points. For example, as shown in FIG. 6, when the fourth and fifth fixed ranging points FP4 and FP5 are selected as the primary ranging points among the fixed ranging points corresponding to the second line sensor 22u2. The midpoint MP of the fourth and fifth fixed ranging points FP4 and FP5 is determined as the secondary ranging point.

一方、対応する固定対応点が同じラインセンサ上にある一次測距点が単一である場合には、単一の一次測距点が二次測距点として設定される。例えば、第1のラインセンサ22u2に対応する固定測距点の中で、第2の固定測距点FP2が一次測距点に選択された場合には、第2の固定測距点FP2が二次測距点に定められる(図2参照)。   On the other hand, when there is a single primary ranging point with corresponding fixed corresponding points on the same line sensor, a single primary ranging point is set as the secondary ranging point. For example, when the second fixed ranging point FP2 is selected as the primary ranging point among the fixed ranging points corresponding to the first line sensor 22u2, the second fixed ranging point FP2 is two. The next distance measuring point is set (see FIG. 2).

新たに設定された二次測距点が複数である場合には、以下に説明するように、いずれかの二次測距点が選択され、使用測距点として確定される。複数の二次測距点が設定されると、CPU17はDSP16を制御して、二次測距点におけるコントラスト値と主要被写体の光学像の受光位置におけるコントラスト値が画像信号に基づいて算出される。コントラスト値の算出後、主要被写体の光学像における受光位置におけるコントラスト値に最も近いコントラスト値である単一の二次測距点が選択され、使用測距点として確定される。   When there are a plurality of newly set secondary ranging points, as will be described below, one of the secondary ranging points is selected and determined as a used ranging point. When a plurality of secondary ranging points are set, the CPU 17 controls the DSP 16 to calculate the contrast value at the secondary ranging point and the contrast value at the light receiving position of the optical image of the main subject based on the image signal. . After the contrast value is calculated, a single secondary distance measuring point having a contrast value closest to the contrast value at the light receiving position in the optical image of the main subject is selected and determined as the distance measuring point to be used.

一方、新たに設定された二次測距点が単一である場合には、単一の二次測距点が使用測距点として確定される。   On the other hand, when the newly set secondary ranging point is single, the single secondary ranging point is determined as the used ranging point.

二次測距点が使用測距点として確定されると、上述のように、AFセンサモジュール22による確定された二次測距点におけるデフォーカス量の検出、およびデフォーカス量に基づくフォーカスレンズ11fの変位が実行される。   When the secondary ranging point is determined as the used ranging point, as described above, the detection of the defocus amount at the determined secondary ranging point by the AF sensor module 22 and the focus lens 11f based on the defocus amount are performed. Displacement is performed.

第2の撮影モードにおいて顔検出機能および位相差AF機能をONにしている場合において、検出された顔を合焦させるために使用測距点として確定される測距点について図7〜図11を用いて説明する。   When the face detection function and the phase difference AF function are turned on in the second shooting mode, FIGS. 7 to 11 show the distance measuring points determined as the distance measuring points used for focusing the detected face. It explains using.

検出された顔の位置から極めて近い位置に固定測距点がある場合、単一の固定測距点が使用測距点として確定される。例えば、図7に示すように、検出された顔の位置DPから第5の固定測距点FP5が極めて近く且つその距離が顔の位置DPと他の固定測距点との距離と実質的に等しいと言えない場合、第5の固定測距点FP5が使用測距点として確定される。   When there is a fixed distance measuring point at a position very close to the detected face position, a single fixed distance measuring point is determined as the used distance measuring point. For example, as shown in FIG. 7, the fifth fixed distance measuring point FP5 is very close to the detected face position DP, and the distance is substantially equal to the distance between the face position DP and another fixed distance measuring point. If they are not equal, the fifth fixed distance measuring point FP5 is determined as the used distance measuring point.

検出された顔の位置から実質的に等距離である固定測距点が同じ行の2点のみである場合、2つの固定測距点が一次測距点として選択された後、2つの一次測距点の中点が二次測距点として設定される。設定された二次測距点が単一なので、単一の二次測距点が使用測距点として確定される。   When there are only two fixed ranging points that are substantially equidistant from the detected face position in the same row, two primary ranging points are selected after the two fixed ranging points are selected as the primary ranging points. The midpoint of the distance point is set as the secondary distance measuring point. Since the set secondary ranging point is single, the single secondary ranging point is determined as the used ranging point.

例えば、図8に示すように、検出された顔の位置DPに対して第5、第6の固定測距点FP5、FP6のみが一次測距点として選択された場合、第5、第6の固定測距点FP5、FP6の中点MPが二次測距点として設定される。設定された二次測距点は単一なので、中点MPが使用測距点として確定される。   For example, as shown in FIG. 8, when only the fifth and sixth fixed distance measuring points FP5 and FP6 are selected as the primary distance measuring points with respect to the detected face position DP, the fifth and sixth The midpoint MP of the fixed distance measuring points FP5 and FP6 is set as the secondary distance measuring point. Since the set secondary ranging point is single, the midpoint MP is determined as the used ranging point.

検出された顔の位置から実質的に等距離である固定測距点が異なる行の2点のみである場合、2つの固定測距点が一次測距点として選択された後、2つの一次測距点がそのまま二次測距点として設定される。設定された二次測距点が複数あるので、検出された顔の位置におけるコントラスト値と二次測距点におけるコントラスト値が算出される。顔の位置におけるコントラスト値により近いコントラスト値である二次測距点が使用測距点として確定される。   When there are only two fixed ranging points that are substantially equidistant from the detected face position in different rows, two primary ranging points are selected after the two fixed ranging points are selected as the primary ranging points. The distance point is set as the secondary distance measuring point as it is. Since there are a plurality of set secondary ranging points, the contrast value at the detected face position and the contrast value at the secondary ranging point are calculated. A secondary ranging point having a contrast value closer to the contrast value at the face position is determined as the used ranging point.

例えば、図9に示すように、検出された顔の位置DPに対して第2、第5の固定測距点FP2、FP5が一次測距点として選択された場合、第2、第5の固定測距点FP2、FP5が二次測距点として設定される。二次測距点に設定された第2、第5の固定測距点FP2、FP5におけるコントラスト値の内、顔の位置DPにおけるコントラスト値に近い二次測距点が使用測距点として確定される。   For example, as shown in FIG. 9, when the second and fifth fixed distance measuring points FP2 and FP5 are selected as the primary distance measuring points with respect to the detected face position DP, the second and fifth fixed distance measuring points are selected. Distance measuring points FP2 and FP5 are set as secondary distance measuring points. Of the contrast values at the second and fifth fixed distance measuring points FP2 and FP5 set as the secondary distance measuring points, the secondary distance measuring points close to the contrast value at the face position DP are determined as the used distance measuring points. The

検出された顔の位置から実質的に等距離である固定測距点がある行の2点と別の行の1点のみである場合、3点が一次測距点として選択された後、同じ行上の2つの一次測距点の中点が二次測距点として設定され、別の行の1つの一次測距点が二次測距点として設定される。設定された二次測距点が複数あるので、検出された顔の位置におけるコントラスト値と二次測距点におけるコントラスト値が算出される。顔の位置におけるコントラスト値により近いコントラスト値である二次測距点が使用測距点として確定される。   If there are only two points in one row with a fixed ranging point that is substantially equidistant from the detected face position and one point in another row, the same after three points are selected as primary ranging points The midpoint of two primary ranging points on a row is set as a secondary ranging point, and one primary ranging point on another row is set as a secondary ranging point. Since there are a plurality of set secondary ranging points, the contrast value at the detected face position and the contrast value at the secondary ranging point are calculated. A secondary ranging point having a contrast value closer to the contrast value at the face position is determined as the used ranging point.

例えば、図10に示すように、検出された顔の位置DPに対して第2、第5、第6の固定測距点FP2、FP5、FP6が一次測距点として選択された場合、第2の固定測距点FP2が二次測距点として設定される。また、第5、第6の固定測距点FP5、FP6の中点MPが二次測距点として設定される。二次測距点に設定された第2の固定測距点と中点MPにおけるコントラスト値の内、顔の位置DPにおけるコントラスト値に近い二次測距点が使用測距点として確定される。   For example, as shown in FIG. 10, when the second, fifth, and sixth fixed distance measuring points FP2, FP5, and FP6 are selected as the primary distance measuring points with respect to the detected face position DP, The fixed distance measuring point FP2 is set as the secondary distance measuring point. Further, the midpoint MP of the fifth and sixth fixed distance measuring points FP5 and FP6 is set as the secondary distance measuring point. Of the contrast values at the second fixed distance measurement point and the midpoint MP set as the secondary distance measurement point, the secondary distance measurement point close to the contrast value at the face position DP is determined as the use distance measurement point.

検出された顔の位置から実質的に等距離である固定測距点がある行の2点と別の行の2点である場合、4点が一次測距点として選択された後、一方の行上の2つの一次測距点の中点が二次測距点として設定され、別の行上の2つの一次測距点の中点が二次測距点として設定される。設定された二次測距点が複数あるので、検出された顔の位置におけるコントラスト値と二次測距点におけるコントラスト値が算出される。顔の位置におけるコントラスト値により近いコントラスト値である二次測距点が使用測距点として確定される。   If there are two points in a row with a fixed distance measuring point that is substantially equidistant from the detected face position and two points in another line, after four points are selected as primary distance measuring points, The midpoint of two primary ranging points on a row is set as a secondary ranging point, and the midpoint of two primary ranging points on another row is set as a secondary ranging point. Since there are a plurality of set secondary ranging points, the contrast value at the detected face position and the contrast value at the secondary ranging point are calculated. A secondary ranging point having a contrast value closer to the contrast value at the face position is determined as the used ranging point.

例えば、図11に示すように、検出された顔の位置DPに対して第2、第3、第5、第6の固定測距点FP2、FP3、FP5、FP6が一次測距点として選択された場合、第2、第3の固定測距点FP2、FP3の中点MP1が二次測距点として設定される。また、第5、第6の固定測距点FP5、FP6の中点MP2が二次測距点として設定される。二次測距点に設定された中点MP1、MP2におけるコントラスト値の内、顔の位置DPにおけるコントラスト値に近い二次測距点が使用測距点として確定される。   For example, as shown in FIG. 11, the second, third, fifth, and sixth fixed ranging points FP2, FP3, FP5, and FP6 are selected as the primary ranging points with respect to the detected face position DP. In this case, the midpoint MP1 of the second and third fixed distance measuring points FP2 and FP3 is set as the secondary distance measuring point. Further, the midpoint MP2 of the fifth and sixth fixed distance measuring points FP5 and FP6 is set as the secondary distance measuring point. Of the contrast values at the midpoints MP1 and MP2 set as the secondary ranging points, the secondary ranging points close to the contrast value at the face position DP are determined as the used ranging points.

次に、撮影モードにおいてCPU17により実行される各部位の動作の制御を図12および図13のフローチャートを用いて説明する。撮影モードにおける制御はデジタル一眼レフカメラ10の動作モードを撮影モードに切替えられたときに開始される。また、撮影モードにおける制御は、主電源がOFFになるかデジタル一眼レフカメラ10の動作モードが他の動作モードに切替えられるときに終了する。   Next, control of the operation of each part executed by the CPU 17 in the imaging mode will be described using the flowcharts of FIGS. Control in the shooting mode is started when the operation mode of the digital single-lens reflex camera 10 is switched to the shooting mode. The control in the shooting mode ends when the main power is turned off or the operation mode of the digital single lens reflex camera 10 is switched to another operation mode.

ステップS100において、第1、第2の撮影モードのいずれのモードが選択されているかを判別する。第1の撮影モードが選択されている場合には、ステップS101に進む。第2の撮影モードが選択されている場合には、ステップS105に進む。   In step S100, it is determined which of the first and second shooting modes is selected. If the first shooting mode is selected, the process proceeds to step S101. If the second shooting mode is selected, the process proceeds to step S105.

ステップS101では、メインミラー12およびシャッタ13を閉じるように制御する。メインミラー12およびシャッタ13を閉じた後に、ステップS102に進む。ステップS102では、測光スイッチおよび測距スイッチがON状態であるか否かを判別する。   In step S101, control is performed so that the main mirror 12 and the shutter 13 are closed. After the main mirror 12 and the shutter 13 are closed, the process proceeds to step S102. In step S102, it is determined whether or not the photometry switch and the distance measurement switch are in the ON state.

測光スイッチおよび測距スイッチがOFFである場合には、ONになるまでステップS101の処理を繰り返す。測光スイッチおよび測距スイッチがONである場合に、ステップS103に進む。   When the photometry switch and the distance measurement switch are OFF, the process of step S101 is repeated until the photometry switch and the distance measurement switch are turned ON. When the photometry switch and the distance measurement switch are ON, the process proceeds to step S103.

ステップS103では、被写体像を測光させる。測光値に基づいて、絞り、シャッタースピード、および/または感度の調整などの露出調整を行う。露出調整後、ステップS104に進む。   In step S103, the subject image is photometrically measured. Based on the photometric value, exposure adjustment such as adjustment of aperture, shutter speed, and / or sensitivity is performed. After exposure adjustment, the process proceeds to step S104.

ステップS104では、設定された測距点の被写体像に対するデフォーカス量を、AFセンサモジュール22に検出させる。検出させたデフォーカス量に基づいて、フォーカスレンズ11fを変位させるようにレンズ駆動機構18を制御する。このような位相差AF機能の実行後、ステップS300に進む。   In step S104, the AF sensor module 22 is caused to detect the defocus amount with respect to the subject image at the set distance measuring point. Based on the detected defocus amount, the lens driving mechanism 18 is controlled to displace the focus lens 11f. After execution of such a phase difference AF function, the process proceeds to step S300.

前述のように、ステップS100において第2の撮影モードが選択されている場合には、ステップS105に進む。ステップS105では、メインミラー12およびシャッタ13を開くように制御する。メインミラー12およびシャッタ13を開いた後に、ステップS106に進む。   As described above, when the second shooting mode is selected in step S100, the process proceeds to step S105. In step S105, control is performed so that the main mirror 12 and the shutter 13 are opened. After the main mirror 12 and the shutter 13 are opened, the process proceeds to step S106.

ステップS106では、撮像素子14に到達する被写体の光学像を受光させ1/60秒毎に1フレームの画像信号の生成を開始させる。また、画像信号の生成後、DSP16に動画用の画像処理を施させ、画像データをLCD21に送信させる。画像データに相当する画像のLCD21への表示を開始させる。1フレームの画像信号の生成およびLCD21への表示を開始すると、ステップS107に進む。   In step S106, the optical image of the subject reaching the image sensor 14 is received, and generation of an image signal of one frame is started every 1/60 seconds. In addition, after the image signal is generated, the DSP 16 performs image processing for moving images and transmits the image data to the LCD 21. Display of an image corresponding to the image data on the LCD 21 is started. When generation of an image signal of one frame and display on the LCD 21 are started, the process proceeds to step S107.

ステップS107では、測光スイッチおよび測距スイッチがON状態であるか否かを判別する。測光スイッチおよび測距スイッチがOFFである場合には、測光スイッチおよび測距スイッチがONになるまでステップS107の処理を繰り返す。測光スイッチおよび測距スイッチがONである場合に、ステップS108に進む。   In step S107, it is determined whether or not the photometry switch and the distance measurement switch are in the ON state. If the photometry switch and the distance measurement switch are OFF, the process of step S107 is repeated until the photometry switch and the distance measurement switch are turned ON. When the photometry switch and the distance measurement switch are ON, the process proceeds to step S108.

ステップS108では、ステップS103と同じ制御を実行する。すなわち、被写体像の測光、絞り、シャッタースピード、および/または感度の調整などの露出調整を行う。露出調整後、ステップS109に進む。   In step S108, the same control as in step S103 is executed. That is, exposure adjustment such as photometry of the subject image, aperture, shutter speed, and / or sensitivity adjustment is performed. After exposure adjustment, the process proceeds to step S109.

ステップS109では、顔検出機能がONになっているか否かを判別する。顔検出機能がONになっている場合には、ステップS110に進む。顔検出機能がOFFになっている場合には、ステップS110をスキップしてステップS111に進む。   In step S109, it is determined whether or not the face detection function is ON. If the face detection function is ON, the process proceeds to step S110. If the face detection function is OFF, step S110 is skipped and the process proceeds to step S111.

ステップS110では、画像データに基づいてDSP16に顔を検出させ、検出した顔に基づいて主要な被写体を決定させる。主要な被写体を決定させると、ステップS111に進む。   In step S110, the DSP 16 is caused to detect a face based on the image data, and a main subject is determined based on the detected face. When the main subject is determined, the process proceeds to step S111.

ステップS111では、実行させるAFとしてコントラストAF機能と位相差AF機能とのいずれが選択されているかを判別する。コントラストAF機能が選択されている場合には、ステップS112に進む。位相差AF機能が選択されている場合には、ステップS113に進む。   In step S111, it is determined which of the contrast AF function and the phase difference AF function is selected as the AF to be executed. If the contrast AF function is selected, the process proceeds to step S112. If the phase difference AF function is selected, the process proceeds to step S113.

ステップS112では、コントラストAF機能を実行させる。すなわち、前述のようにフォーカスレンズ11fを変位しながら各位置において生成した画像データに基づいてコントラスト値を算出させ、コントラクト値が最大となる位置にフォーカスレンズ11fを変位させる。コントラストAF機能の完了後にステップS300に進む。   In step S112, the contrast AF function is executed. That is, as described above, the contrast value is calculated based on the image data generated at each position while displacing the focus lens 11f, and the focus lens 11f is displaced to a position where the contract value is maximized. After completion of the contrast AF function, the process proceeds to step S300.

前述のように、ステップS111において位相差AF機能が選択されている場合にはステップS113に進む。ステップS113では、測距点が固定されていないか、すなわち測距点の自動選択機能がONであるか否かを判別する。   As described above, when the phase difference AF function is selected in step S111, the process proceeds to step S113. In step S113, it is determined whether or not the distance measuring point is fixed, that is, whether or not the distance measuring point automatic selection function is ON.

測距点の自動選択機能がONである場合にはステップS114に進む。測距点の自動選択機能がOFFである場合にはステップS114、S200をスキップして、ステップS115に進む。   If the distance measuring point automatic selection function is ON, the process proceeds to step S114. If the automatic ranging point selection function is OFF, steps S114 and S200 are skipped and the process proceeds to step S115.

ステップS114では、ステップS111において顔が検出されたか否かを判別する。顔が検出された場合には、ステップS200に進む。顔が検出されなかった場合には、ステップS115に進む。   In step S114, it is determined whether or not a face is detected in step S111. If a face is detected, the process proceeds to step S200. If no face is detected, the process proceeds to step S115.

ステップS200では、デフォーカス量を検出する使用測距点を確定する。使用測距点の確定後、ステップS115に進む。   In step S200, a used distance measuring point for detecting the defocus amount is determined. After the used distance measuring point is determined, the process proceeds to step S115.

ステップS115では、メインミラー12を閉じるように制御する。また、撮像素子14による画像信号の生成を一時的に停止させる。メインミラー12を閉じた後、ステップS116に進む。   In step S115, the main mirror 12 is controlled to close. Further, the generation of the image signal by the image sensor 14 is temporarily stopped. After the main mirror 12 is closed, the process proceeds to step S116.

ステップS116では、位相差AF機能を実行させる。すなわち、前述のように、ステップS200において確定させた使用測距点におけるデフォーカス量を検出し、デフォーカス量に基づいてフォーカスレンズ11fを変位させる。位相差AF機能の完了後にステップS117に進む。   In step S116, the phase difference AF function is executed. That is, as described above, the defocus amount at the used distance measuring point determined in step S200 is detected, and the focus lens 11f is displaced based on the defocus amount. After completion of the phase difference AF function, the process proceeds to step S117.

ステップS117では、メインミラー12を開くように制御する。また、撮像素子14による画像信号の生成を再開させる。メインミラー12を開いた後、ステップS300に進む。   In step S117, control is performed to open the main mirror 12. Further, the generation of the image signal by the image sensor 14 is resumed. After the main mirror 12 is opened, the process proceeds to step S300.

前述のように、ステップS104、ステップS112、またはステップS117の処理の終了後に、ステップS300に進む。ステップS300では、撮像処理を実行する。撮像のための処理の終了後、ステップS100に戻る。   As described above, after the process of step S104, step S112, or step S117 ends, the process proceeds to step S300. In step S300, an imaging process is executed. After the process for imaging is completed, the process returns to step S100.

次に、ステップS200において実行される測距点確定処理のサブルーチンを図14
のフローチャートを用いて説明する。
Next, FIG. 14 shows a subroutine for distance measuring point determination processing executed in step S200.
It demonstrates using the flowchart of these.

ステップS201では、ステップS110で主要な被写体として決定した顔の位置をデータとしてDSP16から受信する。位置データの受信後、ステップS202に進む。   In step S201, the face position determined as the main subject in step S110 is received from the DSP 16 as data. After receiving the position data, the process proceeds to step S202.

ステップS202では、顔の位置から第1〜第9の固定測距点FP1〜FP9までの距離を算出する。すべての固定測距点までの距離を算出すると、ステップS203に進む。   In step S202, distances from the face position to the first to ninth fixed distance measuring points FP1 to FP9 are calculated. When the distances to all the fixed distance measuring points are calculated, the process proceeds to step S203.

ステップS203では、ステップS202で算出した距離の中の最小値を検出する。完全に一致する最小値が複数ある場合は、いずれかの距離を単一の最小値として検出する。さらに、最小値に第1の係数を乗じることにより比較値を算出する。比較値を算出すると、ステップS204に進む。   In step S203, the minimum value in the distance calculated in step S202 is detected. When there are a plurality of minimum values that completely match, one of the distances is detected as a single minimum value. Further, the comparison value is calculated by multiplying the minimum value by the first coefficient. When the comparison value is calculated, the process proceeds to step S204.

ステップS204では、最小値として検出された距離以外のすべての距離と最小値との差を算出する。さらに、算出された差とステップS203で算出した比較値とを比較する。算出された差が比較値未満となる距離が無い場合には、ステップS205に進む。算出された差が比較値未満となる距離が一つでもある場合には、ステップS206に進む。   In step S204, the difference between all the distances other than the distance detected as the minimum value and the minimum value is calculated. Further, the calculated difference is compared with the comparison value calculated in step S203. If there is no distance at which the calculated difference is less than the comparison value, the process proceeds to step S205. If there is even one distance at which the calculated difference is less than the comparison value, the process proceeds to step S206.

ステップS205では、最小値として検出された距離が、顔の位置からの距離である固定測距点を選択する。固定測距点の選択後、ステップS212に進む。   In step S205, a fixed distance measuring point whose distance detected from the face position is the distance detected as the minimum value is selected. After selecting the fixed distance measuring point, the process proceeds to step S212.

ステップS206では、最小値として検出された距離が顔の位置からの距離である固定測距点、およびステップS204において算出された差が比較値未満である距離が顔の位置からの距離である固定測距点を一次測距点に選択する。一次測距点の選択後、ステップS207に進む。   In step S206, the fixed distance measuring point where the distance detected as the minimum value is the distance from the face position, and the distance where the difference calculated in step S204 is less than the comparison value is the distance from the face position. Select the AF point as the primary AF point. After selecting the primary ranging point, the process proceeds to step S207.

ステップS207では、ステップS206で選択された複数の一次測距点に基づいて二次測距点を設定する。二次測距点の設定後、ステップS208に進む。   In step S207, a secondary ranging point is set based on the plurality of primary ranging points selected in step S206. After setting the secondary ranging point, the process proceeds to step S208.

ステップS208では、ステップS207で設定された二次測距点が複数あるか否か判別する。設定された二次測距点が単一である場合には、ステップS209に進む。設定された二次測距点が複数である場合には、ステップS210に進む。   In step S208, it is determined whether or not there are a plurality of secondary ranging points set in step S207. If the set secondary ranging point is single, the process proceeds to step S209. If there are a plurality of set secondary ranging points, the process proceeds to step S210.

ステップS209では、単一の二次測距点を選択する。二次測距点の選択後、ステップS212に進む。   In step S209, a single secondary ranging point is selected. After the secondary ranging point is selected, the process proceeds to step S212.

ステップS210では、ステップS201で読込んだ顔の位置におけるコントラスト値と、ステップS207で設定されたすべての二次測距点におけるコントラスト値をDSP16に算出させ、データとして送信させる。コントラスト値の受信後、ステップS211に進む。   In step S210, the DSP 16 calculates the contrast value at the face position read in step S201 and the contrast values at all the secondary ranging points set in step S207, and transmits them as data. After receiving the contrast value, the process proceeds to step S211.

ステップS211では、顔の位置におけるコントラスト値により近いコントラスト値である二次測距点を選択する。二次測距点の選択後、ステップS212に進む。   In step S211, a secondary ranging point having a contrast value closer to the contrast value at the face position is selected. After the secondary ranging point is selected, the process proceeds to step S212.

ステップS212では、ステップS205で選択した固定測距点、ステップS209で選択した二次測距点、またはステップS211で選択した二次測距点を使用測距点として確定する。使用測距点の確定後、測距点確定処理のサブルーチンを終了し、ステップS115に進む。   In step S212, the fixed distance measurement point selected in step S205, the secondary distance measurement point selected in step S209, or the secondary distance measurement point selected in step S211 is determined as the use distance measurement point. After the used distance measuring points are determined, the subroutine for distance measuring point determination processing ends, and the process proceeds to step S115.

次に、ステップS300において実行される撮像処理のサブルーチンを図15のフローチャートを用いて説明する。   Next, the subroutine of the imaging process executed in step S300 will be described using the flowchart of FIG.

ステップS301では、撮影スイッチがON状態であるか否かを判別する。撮影スイッチがOFF状態である場合には、ステップS302に進む。撮影スイッチがON状態である場合には、ステップS304に進む。   In step S301, it is determined whether or not the photographing switch is in an ON state. If the shooting switch is OFF, the process proceeds to step S302. If the shooting switch is ON, the process proceeds to step S304.

ステップS302では、測光スイッチおよび測距スイッチがON状態であるか否かを判別する。測光スイッチおよび測距スイッチがOFF状態である場合にはステップS301に戻る。測光スイッチおよび測距スイッチがON状態である場合には、ステップS303に進む。   In step S302, it is determined whether or not the photometry switch and the distance measurement switch are in the ON state. If the photometry switch and the distance measurement switch are in the OFF state, the process returns to step S301. When the photometry switch and the distance measurement switch are in the ON state, the process proceeds to step S303.

ステップS303では、第1、第2の撮影モードのいずれのモードが選択されているかを判別する。第1の撮影モードが選択されている場合には、ステップS103に戻る。第2の撮影モードが選択されている場合には、ステップS105に進む。   In step S303, it is determined which of the first and second shooting modes is selected. If the first shooting mode is selected, the process returns to step S103. If the second shooting mode is selected, the process proceeds to step S105.

前述のように、ステップS301で撮影スイッチがON状態である場合には、ステップS304に進む。ステップS304では、第1、第2の撮影モードのいずれのモードが選択されているかを判別する。   As described above, if the photographing switch is in the ON state in step S301, the process proceeds to step S304. In step S304, it is determined which of the first and second shooting modes is selected.

第2の撮影モードが選択されている場合には、ステップS305に進み、メインミラー12およびシャッタ13を閉じるように制御する。メインミラー12とシャッタ13とを閉じた後にステップS306に進む。第1の撮影モードが選択されている場合には、ステップS305をスキップして、ステップS306に進む。   When the second shooting mode is selected, the process proceeds to step S305, and the main mirror 12 and the shutter 13 are controlled to be closed. After the main mirror 12 and the shutter 13 are closed, the process proceeds to step S306. If the first shooting mode is selected, step S305 is skipped and the process proceeds to step S306.

ステップS306では、メインミラー12を開けるように制御する。また、露出制御において調整されたシャッタースピードでシャッタ13を開閉するように制御する。シャッタ13の開閉制御を終えると、ステップS307に進む。   In step S306, control is performed to open the main mirror 12. Further, the shutter 13 is controlled to open and close at the shutter speed adjusted in the exposure control. When the opening / closing control of the shutter 13 is finished, the process proceeds to step S307.

ステップS307では、ステップS306においてシャッタ13を開いている間に受光した被写体の光学像に相当する画像信号を撮像素子14に生成させる。画像信号を生成すると、ステップS308に進む。   In step S307, the image sensor 14 is caused to generate an image signal corresponding to the optical image of the subject received while the shutter 13 is opened in step S306. When the image signal is generated, the process proceeds to step S308.

ステップS308では、DSP16に静止画用の画像処理を施させて、画像データを画像メモリ20に格納させる。画像データを格納すると、撮像処理のサブルーチンを終了してステップS100に戻る。   In step S <b> 308, the DSP 16 performs image processing for a still image and stores the image data in the image memory 20. When the image data is stored, the imaging process subroutine is terminated and the process returns to step S100.

以上のような第1の実施形態を適用した測距点確定システムによれば、検出された主要な被写体を合焦させるのに適した固定測距点または二次測距点を使用測距点として確定することが可能である。したがって、主要な被写体を自動手検出する機能などを実行しながら位相差AFの合焦精度を向上させることが可能である。   According to the distance measuring point determination system to which the first embodiment as described above is applied, a distance measuring point that uses a fixed distance measuring point or a secondary distance measuring point suitable for focusing the detected main subject. Can be determined as Therefore, it is possible to improve the focusing accuracy of the phase difference AF while executing a function of automatically detecting main subjects.

特に、主要な被写体からの距離が最短である固定測距点が複数ある場合に、二次測距点が設定され、さらに二次測距点が複数である場合にコントラスト値に基づいていずれかの二次測距点が選択されるので、より適した使用測距点を確定することが可能である。   In particular, if there are multiple fixed ranging points with the shortest distance from the main subject, a secondary ranging point is set, and if there are multiple secondary ranging points, one of the two based on the contrast value. Therefore, it is possible to determine a more suitable range-finding point.

また、同じラインセンサに対応する対応固定点を有する複数の一次測距点の間の点が二次測距点として設定されるので、固定測距点より主要な被写体に近い点が使用測距点として確定される。したがって、位相差AFの合焦精度を更に向上させることが可能である。   In addition, since a point between a plurality of primary ranging points having corresponding fixed points corresponding to the same line sensor is set as a secondary ranging point, a point closer to the main subject than the fixed ranging point is used. Confirmed as a point. Therefore, it is possible to further improve the focusing accuracy of the phase difference AF.

次に、本発明の第2の実施形態を適用した測距点確定システムについて説明する。第2の実施形態の測距点確定システムは、二次測距点の設定方法が第1の実施形態と異なる。以下、第1の実施形態と異なる点を中心に説明する。なお、第1の実施形態と同じ機能を有する部位には、同じ符号を付す。   Next, a ranging point determination system to which the second embodiment of the present invention is applied will be described. The distance measuring point determination system of the second embodiment is different from the first embodiment in the method of setting a secondary distance measuring point. Hereinafter, a description will be given focusing on differences from the first embodiment. In addition, the same code | symbol is attached | subjected to the site | part which has the same function as 1st Embodiment.

第2の実施形態のデジタル一眼レフカメラ10における、CPU17以外の部位の構成および機能は第1の実施形態と同じである。   In the digital single-lens reflex camera 10 of the second embodiment, the configuration and functions of parts other than the CPU 17 are the same as those of the first embodiment.

第2の実施形態では、顔検出機能および位相差AF機能がONされている状態において、以下に説明するように、使用測距点が確定される。   In the second embodiment, in the state where the face detection function and the phase difference AF function are turned on, the use ranging point is determined as described below.

第1の実施形態と同様に、CPU17では、検出した顔の光学像の受光位置と第1〜第9の固定測距点FP1〜FP9との距離が算出される。また、第1の実施形態と同様に、算出された距離の中の最小値が検出される。また、検出された最小値に実質的に等しいとみなせる距離である固定測距点が他にあるか否かを判別する。   Similar to the first embodiment, the CPU 17 calculates the distance between the light receiving position of the detected optical image of the face and the first to ninth fixed distance measuring points FP1 to FP9. Further, as in the first embodiment, the minimum value in the calculated distance is detected. Further, it is determined whether or not there is another fixed distance measuring point that is a distance that can be regarded as substantially equal to the detected minimum value.

最小値と実質的に等しいとみなせる距離である固定測距点が他にない場合には、第1の実施形態と同じく、受光位置からの距離が最小値となる固定測距点が選択され、使用測距点として確定される。   When there is no other fixed distance measuring point that is a distance that can be regarded as substantially equal to the minimum value, the fixed distance measuring point whose distance from the light receiving position is the minimum value is selected as in the first embodiment, Determined as the focus point to be used.

最小値と実質的に等しいとみなせる距離である固定測距点が他にある場合には、第1の実施形態と同様に、一次測距点が選択される。複数の一次測距点が選択されると、第1の実施形態と異なり、選択されたすべての一次測距点がそのまま二次測距点として設定される。   When there is another fixed distance measuring point that is a distance that can be regarded as substantially equal to the minimum value, the primary distance measuring point is selected as in the first embodiment. When a plurality of primary ranging points are selected, unlike the first embodiment, all the selected primary ranging points are set as secondary ranging points as they are.

複数の二次測距点が設定されると、第1の実施形態と同じく、CPU17はDSP16を制御して、二次測距点におけるコントラスト値と主要被写体の光学像の受光位置におけるコントラスト値が画像信号に基づいて算出される。コントラスト値の算出後、主要被写体の光学像における受光位置におけるコントラスト値に最も近いコントラスト値である単一の二次測距点が選択され、使用測距点として確定される。   When a plurality of secondary ranging points are set, as in the first embodiment, the CPU 17 controls the DSP 16 so that the contrast value at the secondary ranging point and the contrast value at the light receiving position of the optical image of the main subject are determined. Calculated based on the image signal. After the contrast value is calculated, a single secondary distance measuring point having a contrast value closest to the contrast value at the light receiving position in the optical image of the main subject is selected and determined as the distance measuring point to be used.

以上のような第2の実施形態を適用した測距点確定システムによれば、検出された主要な被写体を合焦させるのに適した二次測距点を使用測距点として確定することが可能である。したがって、第1の実施形態と同様に主要な被写体を自動手検出する機能などを実行しながら位相差AFの合焦精度を向上させることが可能である。   According to the ranging point determination system to which the second embodiment as described above is applied, the secondary ranging point suitable for focusing the detected main subject can be determined as the used ranging point. Is possible. Therefore, it is possible to improve the focusing accuracy of the phase difference AF while executing the function of automatically detecting the main subject manually as in the first embodiment.

なお、第1、第2の実施形態において、顔の位置からの第1〜第9の固定測距点までの距離の中の最小値と他の距離とが実質的に等しいか否かは、(1)式に基づいて判別する構成であるが、他の方法に基づいて判別してもよい。例えば、最小値との差が閾値未満である距離を最小値と実質的に等しいとみなす構成であってもよい。   In the first and second embodiments, whether or not the minimum value of the distances from the face position to the first to ninth fixed distance measuring points is substantially equal to the other distances is determined. Although it is the structure discriminate | determined based on (1) Formula, you may discriminate | determine based on another method. For example, a configuration in which a distance having a difference from a minimum value that is less than a threshold value is considered to be substantially equal to the minimum value may be used.

また、第1、第2の実施形態では、第1の係数を0.05に定める構成であるが、0より大きなどのような値に定めてもよい。ただし、顔の位置から実質的に等距離と判別出来る固定測距点が同じ行に対して最大で2点、異なる行に対して最大で2点となるように第1の係数を定めることが好ましい。   In the first and second embodiments, the first coefficient is set to 0.05, but any value larger than 0 may be set. However, the first coefficient may be determined so that there are a maximum of two fixed distance measuring points that can be determined to be substantially equidistant from the face position, and a maximum of two points for different lines. preferable.

また、第1、第2の実施形態では、9つの固定測距点が予め定められる構成であるが、9つに限られない。予め複数の固定測距点が定められていれば、本願と同様の効果を得ることは可能である。   In the first and second embodiments, nine fixed ranging points are predetermined, but the number is not limited to nine. If a plurality of fixed distance measuring points are determined in advance, it is possible to obtain the same effect as in the present application.

また、第1、第2の実施形態では、9つの固定測距点は3行3列の行列状に配置される構成であるが、行列状に配置されなくてもよい。   In the first and second embodiments, the nine fixed distance measuring points are arranged in a matrix of 3 rows and 3 columns, but may not be arranged in a matrix.

また、第1、第2の実施形態では、射出瞳の左端を通った光学像と射出瞳の右端を通った光学像との位置の固定対応点からのズレに基づいてデフォーカス量を算出する構成であるが、射出瞳の左端および右端を通った光学像に限られない。例えば、射出瞳の上端を通った光学像と下端を通った光学像との位置の固定対応点からのズレに基づいてデフォーカス量を算出する構成であってもよい。更には、左端と右端とを通った光学像の固定対応点からのズレおよび上端と下端とを通った光学像の固定対応点からのズレに基づいてデフォーカス量を検出する、クロスセンサを用いてもよい。   In the first and second embodiments, the defocus amount is calculated on the basis of the deviation from the fixed corresponding point between the position of the optical image passing through the left end of the exit pupil and the optical image passing through the right end of the exit pupil. Although it is a structure, it is not restricted to the optical image which passed the left end and right end of the exit pupil. For example, the configuration may be such that the defocus amount is calculated based on the deviation from the fixed corresponding point of the position of the optical image passing through the upper end of the exit pupil and the optical image passing through the lower end. Furthermore, a cross sensor is used to detect the defocus amount based on the deviation from the fixed corresponding point of the optical image passing through the left end and the right end and the deviation from the fixed corresponding point of the optical image passing through the upper end and the lower end. May be.

また、本実施形態では、画像データに基づいて顔が検出される構成であるが、顔以外の種類に属する撮影対象が検出される構成であってもよい。例えば、猫や犬などのような動物や、花などの植物などの撮影対象が検出される構成であってもよい。   In the present embodiment, the face is detected based on the image data. However, a configuration in which a shooting target belonging to a type other than the face is detected may be used. For example, the configuration may be such that an imaging object such as an animal such as a cat or a dog or a plant such as a flower is detected.

また、本実施形態では、デジタル一眼レフカメラ10に適用しているが、画像データに基づいて主要な被写体を検出する機能、位相差AF機能を有するどのような種類のデジタルカメラにも適用可能である。   In this embodiment, the present invention is applied to the digital single-lens reflex camera 10, but can be applied to any kind of digital camera having a function of detecting a main subject based on image data and a phase difference AF function. is there.

10 デジタル一眼レフカメラ
11f フォーカスレンズ
12 メインミラー
14 撮像素子
16 デジタルシグナルプロセッサ(DSP)
17 CPU
18 レンズ駆動機構
21 LCD
22 AFセンサモジュール
22u ラインセンサユニット
22u1〜22u3 第1〜第3のCCDラインセンサ
25 枠線
CA 撮影範囲
DP 顔の位置
FP1〜FP9 第1〜第9の固定測距点
MP 中点
ra 参照領域
sa 基準領域
DESCRIPTION OF SYMBOLS 10 Digital single-lens reflex camera 11f Focus lens 12 Main mirror 14 Image pick-up element 16 Digital signal processor (DSP)
17 CPU
18 Lens drive mechanism 21 LCD
22 AF sensor module 22u Line sensor unit 22u1 to 22u3 1st to 3rd CCD line sensor 25 Frame line CA Shooting range DP Face position FP1 to FP9 1st to 9th fixed ranging point MP Midpoint ra Reference area sa Reference area

Claims (7)

撮影範囲内における位置が予め定められた複数の固定測距点に基づいて、位相差AFにより合焦させる被写体である主要被写体を合焦させるために用いる使用測距点を確定する測距点確定システムであって、
前記撮影範囲内の被写体像の一部を位相差検出のために受光し、長手方向における特定の位置が前記固定測距点として定められた複数のラインセンサと、
前記撮影範囲の光学像を受光し、受光した前記光学像に相当する画像信号を生成する撮像素子と、
前記画像信号に基づいて、前記主要被写体を検出する画像検出部と、
前記画像検出部により検出された前記主要被写体の前記撮影範囲内における位置である被写体位置を検出する位置検出部と、
前記被写体位置と前記固定測距点との距離である第1の距離を、前記複数の固定測距点それぞれに対して算出する距離算出部と、
前記複数の固定測距点それぞれに対して算出された複数の前記第1の距離の中で、実質的に互いに等しく最小となる前記第1の距離が複数あるか否かを判別する判別部と、
前記判別部が前記複数の第1の距離の中で実質的に互いに等しく最小となる前記第1の距離が複数あると判別した場合に、最小となる複数の前記第1の距離に対応する複数の前記固定測距点を一次測距点として選択する第1の選択部と、
前記第1の選択部に選択された前記複数の一次測距点の中で同一の前記ラインセンサに定められた前記一次測距点が2つある場合には同一のラインセンサ上の2つの前記一次測距点の間の点を二次測距点に設定し、前記第1の選択部に選択された前記複数の一次測距点の中で同一の前記ラインセンサに定められた前記一次測距点が1つである場合には同一のラインセンサ上の1つの前記一次測距点を前記二次測距点に設定する設定部と、
前記設定部により複数の前記二次測距点が設定された場合には、前記画像信号に基づいて被写体位置および複数の前記二次測距点におけるコントラスト値を算出するコントラスト算出部と、
前記被写体位置におけるコントラスト値に最も近いコントラスト値である前記二次測距点を選択し、前記使用測距点として確定する第2の選択部とを備える
ことを特徴とする測距点確定システム。
Based on a plurality of fixed ranging points whose positions in the shooting range are determined in advance, ranging points are determined to determine the used ranging points used to focus the main subject that is the subject to be focused by phase difference AF. A system,
A plurality of line sensors that receive a part of the subject image within the photographing range for phase difference detection, and a specific position in the longitudinal direction is defined as the fixed distance measuring point;
An image sensor that receives an optical image of the imaging range and generates an image signal corresponding to the received optical image;
An image detection unit for detecting the main subject based on the image signal;
A position detection unit that detects a subject position that is a position within the photographing range of the main subject detected by the image detection unit;
A distance calculating unit that calculates a first distance, which is a distance between the subject position and the fixed ranging point, for each of the plurality of fixed ranging points;
A discriminator for discriminating whether or not there are a plurality of first distances that are substantially equal and minimum among the plurality of first distances calculated for each of the plurality of fixed ranging points; ,
A plurality of the first distances corresponding to a plurality of the first distances that are minimum when the determination unit determines that there are a plurality of the first distances that are substantially equal and minimum among the plurality of first distances; A first selection unit that selects the fixed ranging point as a primary ranging point;
When there are two primary ranging points determined by the same line sensor among the plurality of primary ranging points selected by the first selection unit, two of the two primary ranging points on the same line sensor are used. A point between the primary ranging points is set as a secondary ranging point, and the primary measurement determined by the same line sensor among the plurality of primary ranging points selected by the first selection unit. A setting unit for setting one primary distance measurement point on the same line sensor as the second distance measurement point when there is one distance point;
When a plurality of secondary ranging points are set by the setting unit, a contrast calculating unit that calculates a contrast value at the subject position and the plurality of secondary ranging points based on the image signal;
A ranging point determination system, comprising: a second selection unit that selects the secondary ranging point that has a contrast value closest to the contrast value at the subject position and determines the second ranging point as the used ranging point.
前記設定部は、前記第1の選択部に選択された前記複数の一次測距点すべてが同一の前記ラインセンサ上に定められている場合には、すべての前記一次測距点の間の点を前記二次測距点に設定し、
前記第2の選択部は、前記設定部により単一の前記二次測距点が設定された場合には、前記二次測距点を前記使用測距点として確定する
ことを特徴とする請求項1に記載の測距点設定システム。
In the case where all of the plurality of primary ranging points selected by the first selection unit are determined on the same line sensor, the setting unit selects points between all the primary ranging points. Is set as the secondary ranging point,
The second selection unit determines the secondary ranging point as the used ranging point when a single secondary ranging point is set by the setting unit. The ranging point setting system according to Item 1.
前記設定部は、前記第1の選択部により選択された複数の前記一次測距点を複数の前記二次測距点に設定することを特徴とする請求項1に記載の測距点設定システム。   The ranging point setting system according to claim 1, wherein the setting unit sets the plurality of primary ranging points selected by the first selection unit to the plurality of secondary ranging points. . 前記第2の選択部は、前記判別部が前記複数の第1の距離の中で実質的に互いに等しく最小となる前記第1の距離が単一であると判別した場合に、最小となる単一の前記第1の距離に対応する前記固定測距点を前記使用測距点として確定する
ことを特徴とする請求項1〜請求項3のいずれか1項に記載の測距点設定システム。
The second selection unit is configured to determine a single unit that is minimum when the determination unit determines that the first distances that are substantially equal and minimum among the plurality of first distances are single. The ranging point setting system according to any one of claims 1 to 3, wherein the fixed ranging point corresponding to one first distance is determined as the used ranging point.
前記判別部は、2つの前記固定測距点に対して算出された2つの前記第1の距離の差が前記2つの第1の距離の中でより短い前記第1の距離と第1の係数との積未満である場合に前記2つの第1の距離が実質的に互いに等しいと判別することを特徴とする請求項1〜請求項4のいずれか1項に記載の測距点設定システム。   The discriminating unit is configured such that the difference between the two first distances calculated for the two fixed distance measuring points is shorter than the first distance and the first coefficient in the two first distances. 5. The distance measuring point setting system according to claim 1, wherein the two first distances are determined to be substantially equal to each other when the distance is less than the product of. 撮影範囲内の被写体像の一部を位相差検出のために受光し、長手方向における特定の位置が固定測距点として定められた複数のラインセンサと、
前記撮影範囲の光学像を受光し、受光した前記光学像に相当する画像信号を生成する撮像素子と、
前記画像信号に基づいて、合焦させる被写体である主要被写体を検出する画像検出部と、
前記画像検出部により検出された前記主要被写体の前記撮影範囲内における位置である被写体位置を検出する第1の位置検出部と、
前記被写体位置と前記固定測距点との距離である第1の距離を、前記複数の固定測距点それぞれに対して算出する距離算出部と、
前記複数の固定測距点それぞれに対して算出された複数の前記第1の距離の中で、実質的に互いに等しく最小となる前記第1の距離が複数あるか否かを判別する判別部と、
前記判別部が前記複数の第1の距離の中で実質的に互いに等しく最小となる前記第1の距離が複数あると判別した場合に、最小となる複数の前記第1の距離に対応する複数の前記固定測距点を一次測距点として選択する第1の選択部と、
前記第1の選択部に選択された前記複数の一次測距点の中で同一の前記ラインセンサに定められた前記一次測距点が2つある場合には同一のラインセンサ上の2つの前記一次測距点の間の点を二次測距点に設定し、前記第1の選択部に選択された前記複数の一次測距点の中で同一の前記ラインセンサに定められた前記一次測距点が1つである場合には同一のラインセンサ上の1つの前記一次測距点を前記二次測距点に設定する設定部と、
前記設定部により複数の前記二次測距点が設定された場合には、前記画像信号に基づいて被写体位置および複数の前記二次測距点におけるコントラスト値を算出するコントラスト算出部と、
前記被写体位置におけるコントラスト値に最も近いコントラスト値である前記二次測距点を選択し、使用測距点として確定する第2の選択部と、
前記第2の選択部により確定された前記使用測距点に位置する被写体を前記ラインセンサに受光させることにより、前記被写体を合焦状態にするフォーカスレンズの位置を位相差方式で検出する第2の位置検出部と、
前記第2の位置検出部に検出された位置に前記フォーカスレンズを変位させる駆動部とを備える
ことを特徴とするオートフォーカスシステム。
A plurality of line sensors that receive a part of the subject image within the shooting range for phase difference detection, and a specific position in the longitudinal direction is defined as a fixed distance measuring point;
An image sensor that receives an optical image of the imaging range and generates an image signal corresponding to the received optical image;
An image detection unit that detects a main subject that is a subject to be focused based on the image signal;
A first position detection unit that detects a subject position that is a position within the photographing range of the main subject detected by the image detection unit;
A distance calculating unit that calculates a first distance, which is a distance between the subject position and the fixed ranging point, for each of the plurality of fixed ranging points;
A discriminator for discriminating whether or not there are a plurality of first distances that are substantially equal and minimum among the plurality of first distances calculated for each of the plurality of fixed ranging points; ,
A plurality of the first distances corresponding to a plurality of the first distances that are minimum when the determination unit determines that there are a plurality of the first distances that are substantially equal and minimum among the plurality of first distances; A first selection unit that selects the fixed ranging point as a primary ranging point;
When there are two primary ranging points determined by the same line sensor among the plurality of primary ranging points selected by the first selection unit, two of the two primary ranging points on the same line sensor are used. A point between the primary ranging points is set as a secondary ranging point, and the primary measurement determined by the same line sensor among the plurality of primary ranging points selected by the first selection unit. A setting unit for setting one primary distance measurement point on the same line sensor as the second distance measurement point when there is one distance point;
When a plurality of secondary ranging points are set by the setting unit, a contrast calculating unit that calculates a contrast value at the subject position and the plurality of secondary ranging points based on the image signal;
A second selection unit that selects the secondary ranging point that is the contrast value closest to the contrast value at the subject position, and confirms it as a used ranging point;
A phase difference method is used to detect a position of a focus lens that brings the subject in focus by causing the line sensor to receive a subject located at the use ranging point determined by the second selection unit. A position detector of
An autofocus system comprising: a drive unit that displaces the focus lens at a position detected by the second position detection unit.
撮影範囲内の被写体像の一部を位相差検出のために受光し、長手方向における特定の位置が固定測距点として定められた複数のラインセンサと、
前記撮影範囲の光学像を受光し、受光した前記光学像に相当する画像信号を生成する撮像素子と、
前記画像信号に基づいて、合焦させる被写体である主要被写体を検出する画像検出部と、
前記画像検出部により検出された前記主要被写体の前記撮影範囲内における位置である被写体位置を検出する第1の位置検出部と、
前記被写体位置と前記固定測距点との距離である第1の距離を、前記複数の固定測距点それぞれに対して算出する距離算出部と、
前記複数の固定測距点それぞれに対して算出された複数の前記第1の距離の中で、実質的に互いに等しく最小となる前記第1の距離が複数あるか否かを判別する判別部と、
前記判別部が前記複数の第1の距離の中で実質的に互いに等しく最小となる前記第1の距離が複数あると判別した場合に、最小となる複数の前記第1の距離に対応する複数の前記固定測距点を一次測距点として選択する第1の選択部と、
前記第1の選択部に選択された前記複数の一次測距点の中で同一の前記ラインセンサに定められた前記一次測距点が2つある場合には同一のラインセンサ上の2つの前記一次測距点の間の点を二次測距点に設定し、前記第1の選択部に選択された前記複数の一次測距点の中で同一の前記ラインセンサに定められた前記一次測距点が1つである場合には同一のラインセンサ上の1つの前記一次測距点を前記二次測距点に設定する設定部と、
前記決定部により複数の前記二次測距点が決定された場合には、前記画像信号に基づいて被写体位置および複数の前記二次測距点におけるコントラスト値を算出するコントラスト算出部と、
前記被写体位置におけるコントラスト値に最も近いコントラスト値である前記二次測距点を選択し、前記使用測距点として確定する第2の選択部と、
前記第2の選択部により確定された前記使用測距点に位置する被写体を前記ラインセンサに受光させることにより、前記被写体を合焦状態にするフォーカスレンズの位置を位相差方式で検出する第2の位置検出部と、
前記第2の位置検出部に検出された位置に前記フォーカスレンズを変位させる駆動部とを備える
ことを特徴とするカメラ。
A plurality of line sensors that receive a part of the subject image within the shooting range for phase difference detection, and a specific position in the longitudinal direction is defined as a fixed distance measuring point;
An image sensor that receives an optical image of the imaging range and generates an image signal corresponding to the received optical image;
An image detection unit that detects a main subject that is a subject to be focused based on the image signal;
A first position detection unit that detects a subject position that is a position within the photographing range of the main subject detected by the image detection unit;
A distance calculating unit that calculates a first distance, which is a distance between the subject position and the fixed ranging point, for each of the plurality of fixed ranging points;
A discriminator for discriminating whether or not there are a plurality of first distances that are substantially equal and minimum among the plurality of first distances calculated for each of the plurality of fixed ranging points; ,
A plurality of the first distances corresponding to a plurality of the first distances that are minimum when the determination unit determines that there are a plurality of the first distances that are substantially equal and minimum among the plurality of first distances; A first selection unit that selects the fixed ranging point as a primary ranging point;
When there are two primary ranging points determined by the same line sensor among the plurality of primary ranging points selected by the first selection unit, two of the two primary ranging points on the same line sensor are used. A point between the primary ranging points is set as a secondary ranging point, and the primary measurement determined by the same line sensor among the plurality of primary ranging points selected by the first selection unit. A setting unit for setting one primary distance measurement point on the same line sensor as the second distance measurement point when there is one distance point;
When a plurality of secondary ranging points are determined by the determining unit, a contrast calculating unit that calculates a contrast value at the subject position and the plurality of secondary ranging points based on the image signal;
A second selection unit that selects the secondary ranging point that is the contrast value closest to the contrast value at the subject position, and determines the used ranging point;
A phase difference method is used to detect a position of a focus lens that brings the subject in focus by causing the line sensor to receive a subject located at the use ranging point determined by the second selection unit. A position detector of
A drive unit that displaces the focus lens at a position detected by the second position detection unit.
JP2010119753A 2010-05-25 2010-05-25 Ranging point determination system, autofocus system, and camera Expired - Fee Related JP5482447B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010119753A JP5482447B2 (en) 2010-05-25 2010-05-25 Ranging point determination system, autofocus system, and camera

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010119753A JP5482447B2 (en) 2010-05-25 2010-05-25 Ranging point determination system, autofocus system, and camera

Publications (2)

Publication Number Publication Date
JP2011248018A JP2011248018A (en) 2011-12-08
JP5482447B2 true JP5482447B2 (en) 2014-05-07

Family

ID=45413382

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010119753A Expired - Fee Related JP5482447B2 (en) 2010-05-25 2010-05-25 Ranging point determination system, autofocus system, and camera

Country Status (1)

Country Link
JP (1) JP5482447B2 (en)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003262903A (en) * 2002-03-12 2003-09-19 Olympus Optical Co Ltd Camera
JP2005012307A (en) * 2003-06-17 2005-01-13 Minolta Co Ltd Imaging apparatus
JP5045125B2 (en) * 2006-03-15 2012-10-10 株式会社ニコン Subject tracking device and optical device
JP5098259B2 (en) * 2006-09-04 2012-12-12 株式会社ニコン camera

Also Published As

Publication number Publication date
JP2011248018A (en) 2011-12-08

Similar Documents

Publication Publication Date Title
JP2011164543A (en) Ranging-point selecting system, auto-focus system, and camera
JP5167750B2 (en) TRACKING DEVICE, IMAGING DEVICE, AND TRACKING METHOD
US8106997B2 (en) Image pickup apparatus
US9380200B2 (en) Image pickup apparatus and control method in which object searching based on an image depends on pixel combining on the image
US20090102960A1 (en) Image pickup apparatus
JP2008199486A (en) Single lens reflex type electronic imaging device
JP5950664B2 (en) Imaging apparatus and control method thereof
JP2009109839A (en) Image tracking device and imaging device
JP5056168B2 (en) Focus adjustment device and imaging device
JP6825203B2 (en) Imaging controller and camera
JP5402298B2 (en) Focus detection device and camera
JP4687291B2 (en) Focus adjustment device and imaging device
JP5879736B2 (en) Image tracking device and imaging device
JP2009010672A (en) Focus detector and image pickup device
JP2021001950A (en) Imaging device and control method therefor, program, and storage medium
JP5359150B2 (en) Imaging device
JP5482447B2 (en) Ranging point determination system, autofocus system, and camera
JP2009063689A (en) Focus detecting device and imaging apparatus
JPH11337814A (en) Optical device
JP5541396B2 (en) Image tracking device
JP5233646B2 (en) Image tracking device, imaging device, and image tracking method
JP6699679B2 (en) Imaging device
JP2010113130A (en) Focus detecting device, imaging apparatus, focus detecting method
JP4445612B2 (en) camera
JP3180458B2 (en) Camera having line-of-sight detection means

Legal Events

Date Code Title Description
A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A712

Effective date: 20111222

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20130111

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20131227

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20140203

R150 Certificate of patent or registration of utility model

Ref document number: 5482447

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees