[go: up one dir, main page]

JP6388391B2 - Backlight discrimination device, control method thereof, control program, and imaging device - Google Patents

Backlight discrimination device, control method thereof, control program, and imaging device Download PDF

Info

Publication number
JP6388391B2
JP6388391B2 JP2014181307A JP2014181307A JP6388391B2 JP 6388391 B2 JP6388391 B2 JP 6388391B2 JP 2014181307 A JP2014181307 A JP 2014181307A JP 2014181307 A JP2014181307 A JP 2014181307A JP 6388391 B2 JP6388391 B2 JP 6388391B2
Authority
JP
Japan
Prior art keywords
backlight
luminance
specific color
photometric
scene
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2014181307A
Other languages
Japanese (ja)
Other versions
JP2016058781A (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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP2014181307A priority Critical patent/JP6388391B2/en
Publication of JP2016058781A publication Critical patent/JP2016058781A/en
Application granted granted Critical
Publication of JP6388391B2 publication Critical patent/JP6388391B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Exposure Control For Cameras (AREA)
  • Stroboscope Apparatuses (AREA)
  • Studio Devices (AREA)

Description

本発明は、逆光判別装置、その制御方法、および制御プログラム、並びに撮像装置に関し、特に、逆光シーンの判別およびフラッシュの発光制御に関する。   The present invention relates to a backlight discrimination device, a control method therefor, a control program, and an imaging device, and more particularly to backlight scene discrimination and flash light emission control.

一般に、デジタルカメラなどの撮像装置においては、撮影シーンが逆光シーンであるか否かを判別して、逆光シーンであると自然光撮影からフラッシュ撮影に切替えることが行われている。逆光シーンであるか否かを判定する際には、測光領域が分割された測光センサーの出力である領域毎の被写体輝度を所定のアルゴリズムに基づいて解析する。そして、その解析結果が所定の閾値条件を満たすか否かによって撮影シーンが逆光シーンであるか否かを判定している。   In general, in an imaging apparatus such as a digital camera, it is determined whether or not a shooting scene is a backlight scene, and if it is a backlight scene, switching from natural light shooting to flash shooting is performed. When determining whether or not the scene is a backlight scene, the subject luminance for each area, which is the output of the photometric sensor obtained by dividing the photometric area, is analyzed based on a predetermined algorithm. Then, it is determined whether or not the photographic scene is a backlight scene depending on whether or not the analysis result satisfies a predetermined threshold condition.

例えば、測光領域が分割された測光センサーの出力に応じてその平均輝度値を求めるとともに、焦点検出領域における輝度値(以下焦点輝度値と呼ぶ)を求めるようにしたものがある。ここでは、平均輝度値と焦点輝度値との差分および画面の天側と地面側との輝度の傾きに応じて逆光シーンであるか否かを判定するようにしている(特許文献1参照)。   For example, an average luminance value is obtained according to the output of a photometric sensor in which the photometric area is divided, and a luminance value in a focus detection area (hereinafter referred to as a focal luminance value) is obtained. Here, it is determined whether or not the scene is a backlight scene according to the difference between the average brightness value and the focus brightness value and the slope of brightness between the top side and the ground side of the screen (see Patent Document 1).

さらに、バッファメモリに分光フィルタを透過した波長帯域毎の分光画像およびこれら各分光画像の特性を示す分光特性データを記憶して、分光特性データに応じてシーンを判別するようにしたものがある(特許文献2参照)。   Furthermore, there is a type in which a spectral image for each wavelength band that has passed through a spectral filter and spectral characteristic data indicating the characteristics of each spectral image are stored in a buffer memory, and a scene is determined according to the spectral characteristic data ( Patent Document 2).

特開2004−109605号公報JP 2004-109605 A 特開2009−71676号公報JP 2009-71676 A

ところで、特許文献1に記載のように、測光領域が分割された測光センサーの出力である測光値(例えば、輝度値)に応じて逆光シーンの判定を行うと、被写体の反射率の相違によって逆光シーン判定の精度が低下することがある。   By the way, as described in Patent Document 1, when a backlight scene is determined according to a photometric value (for example, a luminance value) that is an output of a photometric sensor in which a photometric area is divided, backlighting is caused by a difference in reflectance of a subject. The accuracy of scene determination may be reduced.

一般に、被写体からの反射光を測光する測光センサーにおいて被写体の反射率が約18%の場合に最適な測光出力が行われるように調整されている。そして、人物の肌は人種および個人差もあるが、概して反射率が18%に近いことが多い。このため、人物を撮影する際には、逆光シーン判定の精度は保たれることが多い。   In general, a photometric sensor that measures reflected light from a subject is adjusted so that an optimum photometric output is obtained when the reflectance of the subject is about 18%. The skin of a person varies depending on race and individual, but the reflectance is generally close to 18% in many cases. For this reason, when photographing a person, the accuracy of backlight scene determination is often maintained.

一方、屋外において撮影を行う際に被写体となる可能性が高い木および植物の葉などの緑を測光すると、反射率18%の被写体に対して1段〜2段程、測光値が低くなることが多い。例えば、これらの被写体は反射率が約10%〜5%である。   On the other hand, when measuring green such as leaves of trees and plants that are highly likely to be subjects when taking pictures outdoors, the photometric value is lowered by one or two steps for a subject with a reflectance of 18%. There are many. For example, these subjects have a reflectance of about 10% to 5%.

このような木および植物の葉などが被写体であるにも拘わらず、反射率18%の被写体と同様にして逆光シーン判定を行うと、精度よく逆光シーン判定を行うことができない。この結果、フラッシュ発光すべきではない撮影シーンにおいてフラッシュ発光が行われて、エネルギーの無駄使いになるばかりでなく、好ましい画像が得られないことがある。   Even if such a tree or a leaf of a plant is a subject, if a backlight scene determination is performed in the same manner as a subject with a reflectance of 18%, the backlight scene determination cannot be performed with high accuracy. As a result, flash light emission is performed in a shooting scene where the flash light should not be emitted, which not only wastes energy but also may not provide a preferable image.

特許文献2においては、被写体に関する輝度情報のみでなく、被写体の色情報などを得て、これらの情報に応じて被写体の種類および材質を判別し、その判別結果に応じて発行条件を変更してフラッシュ発光を行うことが記載されている。   In Patent Document 2, not only luminance information related to a subject but also color information of the subject is obtained, and the type and material of the subject are discriminated according to the information, and the issuance conditions are changed according to the discrimination result. It describes that flash emission is performed.

ところが、特許文献2においては、被写体の種類に応じてどのように発光条件を変更するかについては記載されておらず、特許文献2においても逆光シーンを精度よく判定してフラッシュ発光を行うことは困難である。   However, Patent Document 2 does not describe how to change the light emission condition according to the type of the subject, and Patent Document 2 does not perform flash light emission by accurately determining a backlight scene. Have difficulty.

従って、本発明の目的は、精度よく逆光シーンを判定してフラッシュ発光を行うことのできる逆光判別装置、その制御方法、および制御プログラム、並びに撮像装置を提供することにある。   Accordingly, an object of the present invention is to provide a backlight discrimination device capable of accurately determining a backlight scene and performing flash emission, a control method thereof, a control program, and an imaging device.

上記の目的を達成するため、本発明による逆光判別装置は、撮影シーンが逆光シーンであるか否かを判別する逆光判別装置であって、前記撮影シーンで得られた画像を受けて、前記画像を複数の測光領域に分割して、前記測光領域の各々においてその輝度および色を測光して輝度情報および色情報を得る測光手段と、前記輝度情報に応じて前記画像における輝度の差を示す輝度差分を求める輝度差算出手段と、前記色情報に応じて前記測光領域において予め定められた第1の特定色および前記第1の特定色とは異なる第2の特定色が検出されたか否かを判定する特定色判定手段と、前記輝度差分と逆光判定閾値とに応じて前記撮影シーンが逆光シーンであるか否かを判定する逆光シーン判定処理を行う際、前記第2の特定色である領域が検出されていない場合に、前記第1の特定色である測光領域の数に応じて前記逆光判定閾値を変更して前記逆光シーン判定処理を行う逆光判定手段と、を有することを特徴とする。 In order to achieve the above object, a backlight discrimination device according to the present invention is a backlight discrimination device for discriminating whether or not a shooting scene is a backlight scene, receives an image obtained in the shooting scene, and receives the image. Is divided into a plurality of photometric areas, and photometric means for obtaining luminance information and color information by measuring the luminance and color in each of the photometric areas, and a luminance indicating a difference in luminance in the image according to the luminance information and luminance difference calculation means for calculating a difference, said whether the detected second specific color different from the first specific color you and the first specific color predetermined in the metering area in accordance with the color information The second specific color when performing a backlight scene determination process for determining whether or not the shooting scene is a backlight scene according to the specific color determining means for determining whether or not the photographing scene is a backlight scene according to the luminance difference and the backlight determination threshold Region detected It is when we do not have, and having a a backlight determining means for performing the backlit scene determining process by changing the backlight determination threshold according to the number of the first metering area is a specific color.

本発明による撮像装置は、上記の逆光判別装置と、被写体を撮像して画像を得る撮像手段と、前記逆光判定手段によって逆光シーンであると判定されると、フラッシュを発光制御する発光制御手段と、を有することを特徴とする。   An imaging apparatus according to the present invention includes the backlight discrimination device described above, an imaging unit that captures an image of a subject and obtains an image, and a light emission control unit that controls the flash when the backlight determination unit determines that the scene is a backlight scene. It is characterized by having.

本発明による制御方法は、撮影シーンが逆光シーンであるか否かを判別する逆光判別装置の制御方法であって、前記撮影シーンで得られた画像を受けて、前記画像を複数の測光領域に分割して、前記測光領域の各々においてその輝度および色を測光して輝度情報および色情報を得る測光ステップと、前記輝度情報に応じて前記画像における輝度の差を示す輝度差分を求める輝度差算出ステップと、前記色情報に応じて前記測光領域において予め定められた第1の特定色および前記第1の特定色とは異なる第2の特定色が検出されたか否かを判定する特定色判定ステップと、前記輝度差分と逆光判定閾値とに応じて前記撮影シーンが逆光シーンであるか否かを判定する逆光シーン判定処理を行う際、前記第2の特定色である領域が検出されていない場合に、前記第1の特定色である測光領域の数に応じて前記逆光判定閾値を変更して前記逆光シーン判定処理を行う逆光判定ステップと、を有することを特徴とする。 A control method according to the present invention is a control method for a backlight discrimination device that discriminates whether or not a photographic scene is a backlight scene. A photometric step of dividing and measuring the luminance and color in each of the photometric areas to obtain luminance information and color information, and a luminance difference calculation for obtaining a luminance difference indicating a luminance difference in the image according to the luminance information steps and the specific color determination determines whether the detected second specific color different from the first specific color you and the first specific color predetermined in the photometric area in accordance with the color information a step, wherein when said photographing scene in response to the brightness difference and the backlight determination threshold performs determining a backlit scene determination processing whether a backlit scene, the second region is a particular color is detected If have, and having a a backlight determination step of performing the backlit scene determining process by changing the backlight determination threshold according to the number of the first metering area is a specific color.

本発明による制御プログラムは、撮影シーンが逆光シーンであるか否かを判別する逆光判別装置で用いられる制御プログラムであって、前記逆光判別装置が備えるコンピュータに、前記撮影シーンで得られた画像を受けて、前記画像を複数の測光領域に分割して、前記測光領域の各々においてその輝度および色を測光して輝度情報および色情報を得る測光ステップと、前記輝度情報に応じて前記画像における輝度の差を示す輝度差分を求める輝度差算出ステップと、前記色情報に応じて前記測光領域において予め定められた第1の特定色および前記第1の特定色とは異なる第2の特定色が検出されたか否かを判定する特定色判定ステップと、前記輝度差分と逆光判定閾値とに応じて前記撮影シーンが逆光シーンであるか否かを判定する逆光シーン判定処理を行う際、前記第2の特定色である領域が検出されていない場合に、前記第1の特定色である測光領域の数に応じて前記逆光判定閾値を変更して前記逆光シーン判定処理を行う逆光判定ステップと、を実行させることを特徴とする。 A control program according to the present invention is a control program used in a backlight discrimination device that determines whether or not a shooting scene is a backlight scene, and an image obtained in the shooting scene is stored in a computer included in the backlight discrimination device. Receiving the image, dividing the image into a plurality of photometric areas, and measuring the luminance and color in each of the photometric areas to obtain luminance information and color information; and luminance in the image according to the luminance information a luminance difference calculation step of calculating a luminance difference indicating a difference between the second specific color different from the first specific color you and the first specific color predetermined in the metering area in accordance with the color information A specific color determination step for determining whether or not the backlight is detected; and a backlight scene for determining whether or not the shooting scene is a backlight scene according to the luminance difference and the backlight determination threshold value. When performing the down determination process, when said second region is a specific color is not detected, the backlit scene by changing the backlight determination threshold according to the number of the first metering area is a specific color And a backlight determination step for performing a determination process.

本発明によれば、輝度差分と逆光判定閾値とに応じて撮影シーンが逆光シーンであるか否かを判定する逆光シーン判定処理を行う際、緑色などの第1の特定色である測光領域の数に応じて逆光判定閾値を変更して逆光シーン判定処理を行う。これによって、精度よく逆光シーンを判定してフラッシュ発光を行うことができる。   According to the present invention, when performing the backlight scene determination process for determining whether or not the shooting scene is a backlight scene according to the luminance difference and the backlight determination threshold, the photometry area that is the first specific color such as green is selected. The backlight scene determination process is performed by changing the backlight determination threshold according to the number. Accordingly, it is possible to accurately determine the backlight scene and perform flash emission.

本発明の第1の実施形態による逆光判別装置を備える撮像装置の一例についてその構成を示す断面図である。It is sectional drawing which shows the structure about an example of an imaging device provided with the backlight discrimination device by the 1st Embodiment of this invention. 図1に示す焦点検出用センサーの一例についてその構成を示す図である。It is a figure which shows the structure about an example of the sensor for focus detection shown in FIG. 図1に示す測光用センサーの一例についてその構成を説明するための図であり、(a)は測光用センサーの受光面を複数の領域に分割した測光領域を示す図、(b)は測光領域の各々に配置されたカラーフィルタの一例を示す図である。FIGS. 2A and 2B are diagrams for explaining the configuration of an example of the photometric sensor shown in FIG. 1, in which FIG. 1A shows a photometric area obtained by dividing the light receiving surface of the photometric sensor into a plurality of areas, and FIG. It is a figure which shows an example of the color filter arrange | positioned at each of these. 図1に示すファインダー光学系のファインダー視野において測光用センサーの視野と焦点検出用センサーの焦点検出領域との対応の一例を示す図である。It is a figure which shows an example of a response | compatibility with the visual field of a sensor for photometry, and the focus detection area | region of a sensor for focus detection in the finder visual field of the finder optical system shown in FIG. 図1に示すカメラにおける制御系統の一例を説明するためのブロック図である。It is a block diagram for demonstrating an example of the control system in the camera shown in FIG. 図5に示すカメラにおける撮影処理の一例を説明するためのフローチャートである。6 is a flowchart for explaining an example of photographing processing in the camera shown in FIG. 5. 図6に示す露出演算処理およびフラッシュ使用判定処理を説明するためフローチャートである(その1)。7 is a flowchart for explaining the exposure calculation process and the flash use determination process shown in FIG. 6 (part 1). 図6に示す露出演算処理およびフラッシュ使用判定処理を説明するためフローチャートである(その2)。7 is a flowchart for explaining the exposure calculation process and the flash use determination process shown in FIG. 6 (part 2). 図5に示すカメラ制御部で設定される逆光判定閾値条件の一例を示す図である。It is a figure which shows an example of the backlight determination threshold value conditions set by the camera control part shown in FIG. 本発明の第2の実施形態による逆光判別装置を備えるカメラで行われる露出演算およびフラッシュ使用判定処理の一例を説明するためのフローチャートである。It is a flowchart for demonstrating an example of the exposure calculation performed by the camera provided with the backlight discrimination device by the 2nd Embodiment of this invention, and flash use determination processing. 本発明の第2の実施形態に係るカメラで設定される逆光判定閾値条件の一例を示す図である。It is a figure which shows an example of the backlight determination threshold value conditions set with the camera which concerns on the 2nd Embodiment of this invention.

以下に、本発明の実施の形態による逆光判別装置の一例について、図面を参照して説明する。   Hereinafter, an example of a backlight discrimination device according to an embodiment of the present invention will be described with reference to the drawings.

[第1の実施形態]
図1は、本発明の第1の実施形態による逆光判別装置を備える撮像装置の一例についてその構成を示す断面図である。
[First Embodiment]
FIG. 1 is a cross-sectional view illustrating the configuration of an example of an imaging apparatus including a backlight discrimination device according to the first embodiment of the present invention.

図示の撮像装置は、例えば、レンズ交換可能な一眼レフカメラ(以下単にカメラと呼ぶ)であり、カメラ本体1、交換レンズユニット(以下単に交換レンズと呼ぶ)2、および発光装置(以下フラッシュ装置と呼ぶ)3を有している。   The illustrated imaging device is, for example, a single-lens reflex camera (hereinafter simply referred to as a camera) with interchangeable lenses, a camera body 1, an interchangeable lens unit (hereinafter simply referred to as an interchangeable lens) 2, and a light emitting device (hereinafter referred to as a flash device). 3).

カメラ本体1には、撮像素子12が備えられており、この撮像素子12は、例えば、CMOS又はCCDなどのエリア蓄積型の撮像素子である。撮像素子12の前面側には光学ローパスフィルター11が配置され、光学ローパスフィルター11の前にはメカニカルシャッター10が配置されている。   The camera body 1 is provided with an image sensor 12. The image sensor 12 is an area storage type image sensor such as a CMOS or CCD. An optical low-pass filter 11 is disposed on the front side of the image sensor 12, and a mechanical shutter 10 is disposed in front of the optical low-pass filter 11.

メカニカルシャッター10の前段には半透過性の主ミラー13が配置されている。そして、メカニカルシャッター10と主ミラー13との間には第1の反射ミラー14が配置されている。これら主ミラーおよび第1の反射ミラー14は、撮影の際には、図中上方に跳ね上がる。つまり、主ミラーおよび第1の反射ミラー14は、撮影の際には、光軸から退避する。   A semi-transmissive main mirror 13 is disposed in front of the mechanical shutter 10. A first reflection mirror 14 is disposed between the mechanical shutter 10 and the main mirror 13. The main mirror and the first reflecting mirror 14 jump upward in the figure when photographing. In other words, the main mirror and the first reflection mirror 14 are retracted from the optical axis during shooting.

第1の反射ミラー14で反射した光の光軸上には、近軸的結像面15が規定され、この近軸的結像面15は第1の反射ミラー14に関して撮像素子12の結像面と共役な位置にある。   A paraxial imaging plane 15 is defined on the optical axis of the light reflected by the first reflection mirror 14, and this paraxial imaging plane 15 forms an image of the imaging device 12 with respect to the first reflection mirror 14. It is in a position conjugate with the surface.

第2の反射ミラー16は第1の反射ミラー14で反射した光を反射して、焦点検出用センサー(AFセンサー)20に導く。第2の反射ミラー16と焦点検出用センサー20との間には、赤外カットフィルター17、絞り18、および2次結像レンズ19が配置されている。   The second reflecting mirror 16 reflects the light reflected by the first reflecting mirror 14 and guides it to a focus detection sensor (AF sensor) 20. Between the second reflection mirror 16 and the focus detection sensor 20, an infrared cut filter 17, a diaphragm 18, and a secondary imaging lens 19 are arranged.

なお、絞り18には2つの開口部が形成されている。焦点検出用センサー20は、例えば、CMOS又はCCDなどのエリア蓄積型光電変換素子を備えている。   The aperture 18 is formed with two openings. The focus detection sensor 20 includes an area storage photoelectric conversion element such as a CMOS or a CCD.

図2は、図1に示す焦点検出用センサー20の一例についてその構成を示す図である。   FIG. 2 is a diagram showing the configuration of an example of the focus detection sensor 20 shown in FIG.

焦点検出用センサー20は、図1に示す絞り18の2つの開口部にそれぞれ対応する受光センサー部20Aおよび20Bを有している。そして、これら受光センサー部20Aおよび20Bはそれぞれ多数の画素に分割されている。   The focus detection sensor 20 has light receiving sensor portions 20A and 20B corresponding to the two openings of the diaphragm 18 shown in FIG. The light receiving sensor portions 20A and 20B are each divided into a large number of pixels.

さらに、図示はしないが、焦点検出用センサー20は信号蓄積および信号処理用の周辺回路などが備えられ、これら周辺回路は受光センサー部20Aおよび20Bとともに、同一チップ上に集積されている。   Further, although not shown, the focus detection sensor 20 includes peripheral circuits for signal accumulation and signal processing, and these peripheral circuits are integrated on the same chip together with the light receiving sensor portions 20A and 20B.

なお、第1の反射ミラー14、第2の反射ミラー16、赤外カットフィルター17、絞り18、2次結像レンズ19、および焦点検出用センサー20までの構成によって、特開平9−184965号公報に記載されているように、撮影画面における任意の位置で所謂像ずれ方式による焦点検出を行うことができる。   Note that the configuration of the first reflection mirror 14, the second reflection mirror 16, the infrared cut filter 17, the diaphragm 18, the secondary imaging lens 19, and the focus detection sensor 20 is disclosed in Japanese Patent Laid-Open No. 9-184965. As described in the above, focus detection by a so-called image shift method can be performed at an arbitrary position on the photographing screen.

主ミラー13の上方には、拡散性を有するピント板21が配置され、ピント板21の上側にはペンタプリズム22が配置されている。そして、プリズム22を通過した光は接眼レンズ23に入射する。   A diffusive focus plate 21 is disposed above the main mirror 13, and a pentaprism 22 is disposed above the focus plate 21. Then, the light that has passed through the prism 22 enters the eyepiece lens 23.

プリズム22の近傍には第3の反射ミラー24が配置され、第3の反射ミラー24で反射した光は集光レンズ25を介して測光用センサー26に導かれる。なお、測光用センサー26は被写体の輝度を示す輝度情報および色を示す色情報を得るためのものである。そして、測光用センサー26は、例えば、CMOS又はCCDなどのエリア蓄積型光電変換素子を有している。   A third reflecting mirror 24 is disposed in the vicinity of the prism 22, and the light reflected by the third reflecting mirror 24 is guided to a photometric sensor 26 through a condenser lens 25. The photometric sensor 26 is for obtaining luminance information indicating the luminance of the subject and color information indicating the color. The photometric sensor 26 includes an area storage type photoelectric conversion element such as a CMOS or a CCD.

図3は、図1に示す測光用センサー26の一例についてその構成を説明するための図である。そして、図3(a)は測光用センサー26の受光面を複数の領域に分割した測光領域を示す図であり、図3(b)は測光領域の各々に配置されたカラーフィルタの一例を示す図である。   FIG. 3 is a diagram for explaining the configuration of an example of the photometric sensor 26 shown in FIG. FIG. 3A is a diagram showing a photometry area obtained by dividing the light receiving surface of the photometry sensor 26 into a plurality of areas, and FIG. 3B shows an example of a color filter arranged in each of the photometry areas. FIG.

図3(a)において、測光用センサー20はその受光面が複数の領域に分割されて、複数の測光領域が規定されている。そして、測光用センサー20は、測光領域毎に被写体に関する輝度情報および色情報を出力する。図示の例では、受光面は5行×7列の35の領域に分割されており、測光領域PD1〜PD35が形成されている。   In FIG. 3A, the light-receiving surface of the photometric sensor 20 is divided into a plurality of areas to define a plurality of photometric areas. The photometric sensor 20 outputs luminance information and color information related to the subject for each photometric area. In the illustrated example, the light receiving surface is divided into 35 areas of 5 rows × 7 columns, and photometric areas PD1 to PD35 are formed.

測光領域PD1〜PD35の各々は、図3(b)に示すように、複数の受光部画素を有しており、測光領域PD1〜PD35の各々には、所定の配列を有するカラーフィルタが配置されている。   As shown in FIG. 3B, each of the photometric areas PD1 to PD35 has a plurality of light receiving unit pixels, and a color filter having a predetermined arrangement is arranged in each of the photometric areas PD1 to PD35. ing.

図示の例では、B(青)、G(緑)、およびR(赤)の3分光色がベイヤー配列された原色カラーフィルタ261が測光領域PD1〜PD35の各々に配置されている。   In the illustrated example, primary color filters 261 in which three spectral colors of B (blue), G (green), and R (red) are arranged in a Bayer array are arranged in each of the photometric regions PD1 to PD35.

なお、測光用センサー26は受光部画素の他に信号増幅および信号処理用の周辺回路などが同一チップ上に集積されている。   The photometric sensor 26 has signal amplification and signal processing peripheral circuits integrated on the same chip in addition to the light receiving unit pixels.

再び図1を参照して、ピント板21、ペンタプリズム22、および接眼レンズ23によってファインダー光学系が形成される。測光用センサー(AEセンサー)26には主ミラー13によって反射され、さららにピント板21によって拡散された光のうち光軸外の一部が入射する。   Referring again to FIG. 1, a finder optical system is formed by the focus plate 21, the pentaprism 22, and the eyepiece lens 23. A part of the light metering sensor (AE sensor) 26 that is reflected by the main mirror 13 and further diffused by the focus plate 21 is incident outside the optical axis.

図4は、図1に示すファインダー光学系のファインダー視野において測光用センサー26の視野と焦点検出用センサー20の焦点検出領域との対応の一例を示す図である。   FIG. 4 is a diagram illustrating an example of correspondence between the visual field of the photometric sensor 26 and the focus detection area of the focus detection sensor 20 in the finder visual field of the finder optical system illustrated in FIG.

いま、ファインダー視野を参照番号71で示し、測光用センサー26の視野を参照番号72で示す。なお、ここでは、焦点検出領域としてF10〜F12、F16〜F20、およびF24〜F26の合計11領域が示されている。   The field of view of the finder is indicated by reference numeral 71, and the field of view of the photometric sensor 26 is indicated by reference numeral 72. Here, a total of 11 regions of F10 to F12, F16 to F20, and F24 to F26 are shown as focus detection regions.

これら焦点検出領域焦点検出領域としてF10〜F12、F16〜F20、およびF24〜F26はそれぞれ測光領域PD10〜PD12、PD16〜PD20、およびPD24〜PD26に対応した位置に配置される。   These focus detection areas F10 to F12, F16 to F20, and F24 to F26 are arranged at positions corresponding to the photometry areas PD10 to PD12, PD16 to PD20, and PD24 to PD26, respectively.

カメラ本体1には交換レンズ(撮影レンズともいう)2を取り付けるためのマウント部27が設けられている。そして、このマウント部27には撮影レンズ2と通信を行うための接点部28が形成されている。さらに、カメラ本体1の上面にはフラッシュ装置3を取り付けるための接続部29が設けられている。   The camera body 1 is provided with a mount portion 27 for attaching an interchangeable lens (also referred to as a photographing lens) 2. The mount portion 27 is formed with a contact portion 28 for communicating with the photographic lens 2. Further, a connection portion 29 for attaching the flash device 3 is provided on the upper surface of the camera body 1.

交換レンズ2は光学レンズ30a〜30eを備えるとともに、絞り31を有している。さらに、交換レンズ2の後端面には、カメラ本体1と通信を行うための接点部32が設けられるとともに、交換レンズ2をカメラ本体1に取り付けるためのマウント部33が設けられている。   The interchangeable lens 2 includes optical lenses 30 a to 30 e and a diaphragm 31. Further, a contact portion 32 for communicating with the camera body 1 is provided on the rear end surface of the interchangeable lens 2, and a mount portion 33 for attaching the interchangeable lens 2 to the camera body 1 is provided.

フラッシュ装置3は、発光部であるキセノン管34を有しており、このキセノン管34は、例えば、反射笠35の焦点位置に配置される。キセノン管34の前側には集光用のフレネルレンズ36が配置されている。   The flash device 3 includes a xenon tube 34 that is a light emitting unit, and the xenon tube 34 is disposed, for example, at a focal position of a reflection shade 35. A condensing Fresnel lens 36 is disposed on the front side of the xenon tube 34.

フラッシュ装置3には、キセノン管34の発光量をモニターするためのモニターセンサー(発光モニター部ともいう)37が備えられている。そして、フラッシュ装置3には、フラッシュ装置3をカメラ本体1に取り付けるための取り付け部38が形成されている。なお、フラッシュ装置3の発光部はキセノン管ではなく、LEDなどでもよい。   The flash device 3 includes a monitor sensor (also referred to as a light emission monitor unit) 37 for monitoring the light emission amount of the xenon tube 34. The flash device 3 is formed with an attachment portion 38 for attaching the flash device 3 to the camera body 1. The light emitting unit of the flash device 3 may be an LED instead of a xenon tube.

図5は、図1に示すカメラにおける制御系統の一例を説明するためのブロック図である。なお、図5において、図1に示す構成要素と同一の構成要素については同一の参照番号を付す。   FIG. 5 is a block diagram for explaining an example of a control system in the camera shown in FIG. In FIG. 5, the same components as those shown in FIG. 1 are denoted by the same reference numerals.

カメラ本体1には、カメラ制御部41が備えられている。カメラ制御部41は、例えば、演算装置(ALU)、ROM、RAM、A/Dコンバータ、タイマー(Timer)、およびシリアル通信ポート(SPI)を内蔵するワンチップマイクロコンピュータである。そして、カメラ制御部41はカメラ全体の制御を行う。   The camera body 1 is provided with a camera control unit 41. The camera control unit 41 is, for example, a one-chip microcomputer that includes an arithmetic unit (ALU), ROM, RAM, A / D converter, timer (Timer), and serial communication port (SPI). The camera control unit 41 controls the entire camera.

タイミングジェネレータ(TG)42は、カメラ制御部41の制御下で測光用センサー(AEセンサー)26における電荷蓄積および電荷読み出しを制御するためのタイミング信号を生成する。焦点検出用センサー(AFセンサー)20および測光用センサー(AEセンサー)26の出力信号は、カメラ制御部41に備えられたA/Dコンバータの入力端子に入力される。   The timing generator (TG) 42 generates a timing signal for controlling charge accumulation and charge reading in the photometric sensor (AE sensor) 26 under the control of the camera control unit 41. Output signals from the focus detection sensor (AF sensor) 20 and the photometry sensor (AE sensor) 26 are input to an input terminal of an A / D converter provided in the camera control unit 41.

信号処理回路43は、カメラ制御部41の制御下で撮像素子12を駆動制御して撮像素子12の出力である画像信号(撮像信号)をA/D変換した後、所定の信号処理を行って画像データとする。さらに、信号処理回路43は、画像データを記録する際には、圧縮処理などの所定の画像処理を行う。   The signal processing circuit 43 drives and controls the image sensor 12 under the control of the camera control unit 41 to A / D convert an image signal (imaging signal) that is an output of the image sensor 12, and then performs predetermined signal processing. Let it be image data. Furthermore, the signal processing circuit 43 performs predetermined image processing such as compression processing when recording image data.

メモリ44は、例えば、DRAMであり、信号処理回路43による信号処理の際のワーク用メモリとして用いられる。さらに、メモリ44は、表示器45に画像を表示する際のVRAMとして用いられる。   The memory 44 is, for example, a DRAM and is used as a work memory at the time of signal processing by the signal processing circuit 43. Further, the memory 44 is used as a VRAM for displaying an image on the display unit 45.

表示器45は、例えば、液晶パネルで構成されており、表示器45には各種の撮影情報および撮像の結果得られた画像が表示される。そして、カメラ制御41は表示器45を点灯制御する。記憶部46は、例えば、フラッシュメモリ又は光ディスク等を備えており、信号処理回路43は画像データを記憶部46に記憶する。   The display unit 45 is constituted by, for example, a liquid crystal panel, and various types of shooting information and images obtained as a result of imaging are displayed on the display unit 45. The camera control 41 controls the lighting of the display unit 45. The storage unit 46 includes, for example, a flash memory or an optical disk, and the signal processing circuit 43 stores image data in the storage unit 46.

図示のように、カメラ制御部41には第1のモータードライバー47、レリーズスイッチ(SW)49、およびシャッター駆動部50が接続されている。第1のモータードライバー47は、カメラ制御部41の制御下で、主ミラー13および第1の反射ミラー14のアップ・ダウン、そして、メカニカルシャッター10のチャージを行うための第1のモーター48を駆動する。   As shown in the figure, a first motor driver 47, a release switch (SW) 49, and a shutter drive unit 50 are connected to the camera control unit 41. The first motor driver 47 drives the first motor 48 for up / down the main mirror 13 and the first reflecting mirror 14 and charging the mechanical shutter 10 under the control of the camera control unit 41. To do.

レリーズSW49はカメラ制御部41に対して撮影開始を指示するためのスイッチである。シャッター駆動部50は、カメラ制御部41の制御下でメカニカルシャッター10を駆動する。   The release SW 49 is a switch for instructing the camera control unit 41 to start photographing. The shutter drive unit 50 drives the mechanical shutter 10 under the control of the camera control unit 41.

カメラ本体1に備えられた接点部28は、カメラ制御部41に備えられたSPIに接続される。さらに、カメラ本体1に備えられた接続部29は、カメラ制御部41に備えられたSPIに接続される。   The contact portion 28 provided in the camera body 1 is connected to the SPI provided in the camera control unit 41. Further, the connection unit 29 provided in the camera body 1 is connected to an SPI provided in the camera control unit 41.

交換レンズ2には、レンズ制御部51が備えられている。レンズ制御部51は、例えば、ALU、ROM、RAM、タイマー、およびSPIを内蔵するワンチップマイクロコンピュータである。第2のモータードライバー52は、レンズ制御部51の制御下で、焦点調節を行うための第2のモーター53を駆動する。第3のモータードライバー54は、レンズ制御部51の制御下で絞り31の駆動するための第3のモーター55を駆動する。   The interchangeable lens 2 is provided with a lens control unit 51. The lens control unit 51 is, for example, a one-chip microcomputer incorporating an ALU, ROM, RAM, timer, and SPI. The second motor driver 52 drives a second motor 53 for performing focus adjustment under the control of the lens control unit 51. The third motor driver 54 drives a third motor 55 for driving the diaphragm 31 under the control of the lens control unit 51.

レンズ制御部51には、距離エンコーダー56およびズームエンコーダー57が接続されている。距離エンコーダー56は焦点調節レンズ(つまり、フォーカスレンズ)の繰り出し量、つまり、被写体距離を示す被写体距離情報を得る。ズームエンコーダー57は交換レンズ2に備えられたズームレンズの移動に応じて撮影の際に焦点距離を示す焦点距離情報を得る。接点部32はレンズ制部51に備えられたSPIに接続される。   A distance encoder 56 and a zoom encoder 57 are connected to the lens control unit 51. The distance encoder 56 obtains subject distance information indicating the extension amount of the focus adjustment lens (that is, the focus lens), that is, the subject distance. The zoom encoder 57 obtains focal length information indicating the focal length at the time of shooting according to the movement of the zoom lens provided in the interchangeable lens 2. The contact part 32 is connected to an SPI provided in the lens control part 51.

交換レンズ2がカメラ本体1に装着されると、接点部28および32が接続される。これによって、レンズ制御部51はカメラ制御部41とデータ通信が可能となる。そして、レンズ制御部51は、焦点検出(つまり、測距)および露出演算(つまり、測光)を行うために必要なレンズ固有の光学報、被写体距離情報、および焦点距離情報をカメラ制御部41に送る。   When the interchangeable lens 2 is attached to the camera body 1, the contact portions 28 and 32 are connected. Thereby, the lens control unit 51 can perform data communication with the camera control unit 41. Then, the lens control unit 51 sends the lens-specific optical information, subject distance information, and focal length information necessary for performing focus detection (that is, distance measurement) and exposure calculation (that is, photometry) to the camera control unit 41. send.

カメラ制御41は焦点検出および露出演算によって得られた焦点調節情報および絞り情報をレンズ制御部51に送る。レンズ制御部51は焦点調節情報に応じて第2のモータードライバー52を制御するとともに、絞り情報に応じて第3のモータードライバー54を制御する。   The camera control 41 sends focus adjustment information and aperture information obtained by focus detection and exposure calculation to the lens control unit 51. The lens control unit 51 controls the second motor driver 52 according to the focus adjustment information and also controls the third motor driver 54 according to the aperture information.

フラッシュ装置3には、フラッシュ制御部61が備えられている。図示はしないが、フラッシュ制御部61は、例えば、ALU、ROM、RAM、A/Dコンバータ、タイマー、およびSPIを内蔵するワンチップマイクロコンピュータである。昇圧部62は、発光部34であるキセノン管の発光に必要な300V程度の高圧電圧を生成して、当該高圧電圧で充電を行う。   The flash device 3 includes a flash control unit 61. Although not shown, the flash control unit 61 is, for example, a one-chip microcomputer incorporating an ALU, ROM, RAM, A / D converter, timer, and SPI. The boosting unit 62 generates a high voltage of about 300 V necessary for light emission of the xenon tube that is the light emitting unit 34, and performs charging with the high voltage.

フラッシュ装置3がカメラ本体1に装着されると、接続部38および29が接続されて、フラッシュ制御部61はカメラ制御部41とデータ通信が可能となる。フラッシュ制御部61はカメラ制御部41の制御下で昇圧部62を制御して、キセノン管34の発光開始および発光停止を行う。さらに、フラッシュ制御部61は、モニターセンサー37による検出結果をカメラ制御41に送る。   When the flash device 3 is attached to the camera body 1, the connection units 38 and 29 are connected, and the flash control unit 61 can perform data communication with the camera control unit 41. The flash controller 61 controls the booster 62 under the control of the camera controller 41 to start and stop the emission of the xenon tube 34. Further, the flash control unit 61 sends the detection result by the monitor sensor 37 to the camera control 41.

図6は、図5に示すカメラにおける撮影処理の一例を説明するためのフローチャートである。なお、図示のフローチャートに係る処理は、カメラ制御部41の制御下で行われる。   FIG. 6 is a flowchart for explaining an example of photographing processing in the camera shown in FIG. Note that the processing according to the illustrated flowchart is performed under the control of the camera control unit 41.

いま、カメラに備えられた電源スイッチ(図示せず)がオンされると、カメラ制御部41が動作可能となる。そして、カメラ制御部41はレンズ制御部51から測距および測光に必要なレンズ情報を得る(ステップS101:レンズ通信)。   Now, when a power switch (not shown) provided in the camera is turned on, the camera control unit 41 becomes operable. Then, the camera control unit 41 obtains lens information necessary for distance measurement and photometry from the lens control unit 51 (step S101: lens communication).

続いて、カメラ制御部41はTG42によって焦点検出用センサー20を制御して電荷蓄積(信号蓄積)を行い、信号蓄積が終了すると焦点検出用センサー20に蓄積された信号(つまり、電荷)を読み出す(ステップS102)。そして、カメラ制御部41は信号電荷をA/D変換して焦点検出用データを得て、焦点検出用データに対してシェーディング補正などのデータ補正を行う。   Subsequently, the camera control unit 41 controls the focus detection sensor 20 by the TG 42 to perform charge accumulation (signal accumulation), and when the signal accumulation is completed, reads a signal (that is, charge) accumulated in the focus detection sensor 20. (Step S102). The camera control unit 41 performs A / D conversion on the signal charge to obtain focus detection data, and performs data correction such as shading correction on the focus detection data.

次に、カメラ制御部41はレンズ情報および焦点検出用データに応じて焦点検出領域毎に焦点検出を行って焦点検出結果を得る(ステップS103)。そして、カメラ制御部41は、図4に示す焦点検出領域F10〜F12、F16〜F20、およびF24〜F26のうち合焦させるべき焦点検出領域を決定する。   Next, the camera control unit 41 performs focus detection for each focus detection area in accordance with the lens information and focus detection data, and obtains a focus detection result (step S103). And the camera control part 41 determines the focus detection area which should be focused among focus detection areas F10-F12, F16-F20, and F24-F26 shown in FIG.

焦点検出領域の決定に当たっては、例えば、カメラ制御部41はユーザーに指定された焦点検出領域を合焦させるべき焦点検出領域として決定する。なお、カメラ制御部41は、主被写体領域を合焦させるべき焦点検出領域として決定するようにしてもよい。   In determining the focus detection area, for example, the camera control unit 41 determines the focus detection area designated by the user as the focus detection area to be focused. The camera control unit 41 may determine the main subject area as a focus detection area to be focused.

カメラ制御部41は合焦させるべき焦点検出領域における焦点検出結果に応じて合焦状態とするためのレンズ移動量を算出する。そして、カメラ制御部41は、当該レンズ駆動量をレンズ制御部51に送る。レンズ制御部51は、レンズ駆動量に基づいて第2のモータードライバー52を制御して第2のモーター53によって焦点調節用レンズを駆動する(ステップS103)。これによって、交換レンズ2は主被写体に対して合焦状態となる。   The camera control unit 41 calculates a lens movement amount for achieving a focus state according to a focus detection result in a focus detection region to be focused. Then, the camera control unit 41 sends the lens driving amount to the lens control unit 51. The lens control unit 51 controls the second motor driver 52 based on the lens driving amount and drives the focus adjustment lens by the second motor 53 (step S103). As a result, the interchangeable lens 2 is brought into focus with respect to the main subject.

この際、焦点調節用レンズの駆動によって被写体距離情報が変化するので、レンズ制御部51はレンズ情報を更新する。   At this time, since the subject distance information is changed by driving the focus adjustment lens, the lens control unit 51 updates the lens information.

続いて、カメラ制御部41はTG42を制御して測光用センサー26について蓄積制御及び信号読み出し制御を行う(ステップS104)。これによって、測光用センサー26は所定の時間の電荷蓄積を行って信号電荷を出力する。カメラ制御部41は当該信号電荷をA/D変換して測光用データとしてRAMに格納する。   Subsequently, the camera control unit 41 controls the TG 42 to perform accumulation control and signal readout control for the photometric sensor 26 (step S104). As a result, the photometric sensor 26 accumulates charges for a predetermined time and outputs signal charges. The camera control unit 41 A / D converts the signal charge and stores it in the RAM as photometric data.

次に、カメラ制御部41は、RAMに格納した測光用データに基づいて、後述するようにして、所定の露出演算処理を行うとともに、フラッシュ撮影を行うか否かの判定処理を行う(ステップS105)。   Next, the camera control unit 41 performs predetermined exposure calculation processing and determination processing for determining whether or not flash photography is performed based on the photometry data stored in the RAM as described later (step S105). ).

ステップS105の処理に応じて、カメラ制御部41はフラッシュ撮影を行うか否か、つまり、フラッシュを使用するか否かを判定する(ステップS106)。フラッシュを使用すると判定すると(ステップS106において、YES)、カメラ制御部41は、フラッシュ制御部61を制御して、昇圧部62を動作させてフラッシュ発光に十分な高圧電圧を充電する(ステップS107:フラッシュ充電)。   In accordance with the processing in step S105, the camera control unit 41 determines whether to perform flash photography, that is, whether to use the flash (step S106). If it is determined that the flash is to be used (YES in step S106), the camera control unit 41 controls the flash control unit 61 to operate the boosting unit 62 to charge a high voltage sufficient for flash emission (step S107: Flash charge).

次に、カメラ制御部41はレリーズSW49がオンとなったか否かを確認する(ステップS108)。レリーズSW49がオンとならないと(ステップS108において、NO)、カメラ制御部41はステップS101の処理に戻る。   Next, the camera control unit 41 confirms whether or not the release SW 49 has been turned on (step S108). If release SW 49 is not turned on (NO in step S108), camera control unit 41 returns to the process in step S101.

レリーズSW49がオンとなると(ステップS108において、YES)、カメラ制御部41は、前述のステップS105においてフラッシュ撮影を行うと判定したか否かをチェックする(ステップS109)。フラッシュ撮影を行うと判定されている場合には(ステップS109において、YES)、カメラ制御部41はフラッシュ制御部61に対してフラッシュ予備発光を指示する(ステップS110)。   When the release SW 49 is turned on (YES in step S108), the camera control unit 41 checks whether or not it is determined to perform flash photography in step S105 described above (step S109). If it is determined that flash photography is to be performed (YES in step S109), the camera control unit 41 instructs the flash control unit 61 to perform flash preliminary light emission (step S110).

これによって、フラッシュ制御部61はキセノン管34を発光させる(予備発光)。そして、フラッシュ制御部61はモニターセンサー37から出力信号を監視して、キセノン管34による発光量が予め設定された予備発光量となるようにキセノン管34の発光を制御する。   As a result, the flash controller 61 causes the xenon tube 34 to emit light (preliminary light emission). The flash control unit 61 monitors the output signal from the monitor sensor 37 and controls the light emission of the xenon tube 34 so that the light emission amount of the xenon tube 34 becomes a preset preliminary light emission amount.

予備発光が行われると、カメラ制御部41は、TG42を制御して測光用センサー26について所定の電荷蓄積制御および信号読み出し制御を行う。これによって、測光用センサー26は、所定の時間、電荷蓄積を行って信号電荷を出力する。そして、カメラ制御部41は、信号電荷をA/D変換して、発光測光用データに応じて、既知の手法によってフラッシュ本発光量を決定する本発光量演算を行う(ステップS110)。   When the preliminary light emission is performed, the camera control unit 41 controls the TG 42 to perform predetermined charge accumulation control and signal readout control for the photometric sensor 26. As a result, the photometric sensor 26 accumulates charges for a predetermined time and outputs a signal charge. Then, the camera control unit 41 performs A / D conversion on the signal charge, and performs a main light emission amount calculation for determining the flash main light emission amount by a known method in accordance with the light emission photometric data (step S110).

続いて、カメラ制御部41は第1のモータードライバー47によって第1のモーター48を駆動し主ミラー13および第1の反射ミラー14を跳ね上げる(光軸から退避させる)。そして、カメラ制御部41は前述の露出演算処理で得られた絞り31の開度を示す絞り制御情報をレンズ制御部51に送る。   Subsequently, the camera control unit 41 drives the first motor 48 by the first motor driver 47 to jump up (retract from the optical axis) the main mirror 13 and the first reflection mirror 14. Then, the camera control unit 41 sends to the lens control unit 51 aperture control information indicating the opening of the aperture 31 obtained by the exposure calculation process described above.

レンズ制御部51は絞り制御情報に基づいて第3のモータードライバー54によって第3のモーター55を駆動制御して絞り31を駆動する(ステップS111)。これによって、交換レンズ(撮影レンズ)2は絞り込み状態となる。   The lens control unit 51 drives and controls the third motor 55 by the third motor driver 54 based on the diaphragm control information to drive the diaphragm 31 (step S111). As a result, the interchangeable lens (photographing lens) 2 is in a narrowed state.

なお、フラッシュ撮影を行わないと判定されている場合には(ステップS109において、NO)、カメラ制御部41は、ステップS111の処理に進む。   If it is determined not to perform flash photography (NO in step S109), the camera control unit 41 proceeds to the process of step S111.

続いて、カメラ制御部41はシャッター駆動部50によってシャッター10を開放状態とする(ステップS112)。これによって、撮像素子12には撮影レンズ2から光線(光学像)が入射し撮像が行われる(ステップS112)。   Subsequently, the camera control unit 41 causes the shutter driving unit 50 to open the shutter 10 (step S112). As a result, a light beam (optical image) enters the imaging element 12 from the photographing lens 2 and imaging is performed (step S112).

ここでは、カメラ制御部41は、前述の露出演算処理で得られたシャッター制御時間および撮像感度に応じて電荷蓄積時間および読み出しゲインを設定して、信号処理回路43によって撮像素子12の電荷蓄積制御および信号読み出し制御を行う。   Here, the camera control unit 41 sets the charge accumulation time and the readout gain according to the shutter control time and the imaging sensitivity obtained by the exposure calculation process described above, and the signal processing circuit 43 controls the charge accumulation of the image sensor 12. And signal readout control is performed.

フラッシュ撮影を行う際には、撮像のタイミングに同期して、カメラ制御部41はフラッシュ制御部61にフラッシュ発光指示を送る。フラッシュ制御部61はフラッシュ発光指示に応じてキセノン管34を発光させて、モニターセンサー37の出力信号を監視しつつ、キセノン管34の発光量がステップS110で得られた本発光量となるようにキセノン管34の発光を制御する。これによって、フラッシュ発光による撮像が行われる。   When performing flash photography, the camera control unit 41 sends a flash emission instruction to the flash control unit 61 in synchronization with the imaging timing. The flash control unit 61 causes the xenon tube 34 to emit light according to the flash emission instruction and monitors the output signal of the monitor sensor 37 so that the light emission amount of the xenon tube 34 becomes the main light emission amount obtained in step S110. The light emission of the xenon tube 34 is controlled. Thereby, imaging by flash emission is performed.

撮像が終了すると、カメラ制御部41はシャッター駆動部50によってシャッター10を遮光状態とする(ステップS113)。これによって、撮像素子12に入射する光学像が遮断される。   When the imaging is completed, the camera control unit 41 causes the shutter driving unit 50 to put the shutter 10 in a light shielding state (step S113). Thereby, the optical image incident on the image sensor 12 is blocked.

さらに、カメラ制御部41はレンズ制御部51に絞り31を開放する指示を行う。これによって、レンズ制御部51は第3のモータードライバー54によって第3のモーター55を駆動制御して、絞り31を開放状態とする(ステップS113)。また、カメラ制御部41は第1のモータードライバー47によって第1のモーター48を駆動制御し、主ミラー13および第1の反射ミラー14をダウンさせる(ステップS113)。   Further, the camera control unit 41 instructs the lens control unit 51 to open the aperture 31. As a result, the lens control unit 51 drives and controls the third motor 55 by the third motor driver 54 to open the diaphragm 31 (step S113). Further, the camera control unit 41 drives and controls the first motor 48 by the first motor driver 47, and lowers the main mirror 13 and the first reflection mirror 14 (step S113).

続いて、カメラ制御部41は信号処理回路43によって撮像素子12の出力である画像信号をA/D変換した後、所定の補正処理および補間処理を行う(ステップS114)。さらに、カメラ制御部41は信号処理回路43によってホワイトバランス処理を行う(ステップS115)。   Subsequently, the camera control unit 41 performs A / D conversion on the image signal output from the image sensor 12 by the signal processing circuit 43, and then performs predetermined correction processing and interpolation processing (step S114). Further, the camera control unit 41 performs white balance processing by the signal processing circuit 43 (step S115).

例えば、信号処理回路43は画像を複数の領域に分割して、領域毎の色差信号に応じて被写体の白色領域を抽出する。そして、信号処理回路43は当該白色領域に基づいて画像全体における赤チャンネルおよび青チャンネルについてゲイン補正してホワイトバランス処理を行う。   For example, the signal processing circuit 43 divides the image into a plurality of areas, and extracts a white area of the subject according to the color difference signal for each area. Then, the signal processing circuit 43 performs white balance processing by performing gain correction on the red channel and the blue channel in the entire image based on the white region.

カメラ制御部41は信号処理回路43によってホワイトバランス処理後の画像データを記録ファイルフォーマットに圧縮変換した後、記憶部46に記憶する。そして、カメラ制御部41は撮影処理を終了する。   The camera control unit 41 compresses and converts the image data after the white balance processing into a recording file format by the signal processing circuit 43, and then stores it in the storage unit 46. Then, the camera control unit 41 ends the shooting process.

図7Aおよび図7Bは、図6に示す露出演算処理およびフラッシュ使用判定処理を説明するためフローチャートである。   7A and 7B are flowcharts for explaining the exposure calculation process and the flash use determination process shown in FIG.

図6で説明したようにして、RAMに測光用データが格納される。カメラ制御部41は、測光領域(ブロック)PD1〜PD35毎にB、G、およびR成分(分光成分)を加算処理して積分値B(i)、G(i)、およびR(i)を求める(ステップS151)。そして、カメラ制御部41は、所定の係数(M11〜M33)を用いて、次の式(1)によって積分値B(i)、G(i)、およびR(i)に対してマトリクス演算を行う。   As described with reference to FIG. 6, the photometric data is stored in the RAM. The camera control unit 41 adds the B, G, and R components (spectral components) for each of the photometric areas (blocks) PD1 to PD35 to obtain integrated values B (i), G (i), and R (i). Obtained (step S151). Then, the camera control unit 41 performs matrix calculation on the integral values B (i), G (i), and R (i) by the following equation (1) using predetermined coefficients (M11 to M33). Do.

これによって、カメラ制御部41は測光領域PD1〜PD35毎に被写体輝度情報Yr(i)と2軸の被写体色情報Cx(i)およびCy(i)を得る(ステップS151)。   Thus, the camera control unit 41 obtains subject luminance information Yr (i) and biaxial subject color information Cx (i) and Cy (i) for each of the photometric areas PD1 to PD35 (step S151).

但し、i=1〜35である。   However, i = 1 to 35.

なお、被写体輝度情報Yr(i)の算出に当たって、通常、M11を0.2程度、M12を0.5程度、M13を0.3程度として、視感度又は撮像素子12の分光感度に測光用センサー26の検出輝度の分光特性が近づくようにする。   In calculating the subject luminance information Yr (i), normally, M11 is about 0.2, M12 is about 0.5, and M13 is about 0.3. The spectral characteristics of the detected luminance 26 are made closer.

カメラ制御部41は、次の式(2)に示すように、測光領域PD1〜PD35毎の被写体輝度情報Yr(i)を、2を底とする対数圧縮系に変換関数処理を行う。さらに、カメラ制御部41はレンズ情報に応じた光学的特性に基づいて測光領域毎の輝度情報S(i)で補正する補正処理を行って、対数圧縮系における被写体輝度情報Y(i)を求める。   As shown in the following formula (2), the camera control unit 41 performs a conversion function process on the subject luminance information Yr (i) for each of the photometric areas PD1 to PD35 into a logarithmic compression system with 2 as a base. Further, the camera control unit 41 obtains subject luminance information Y (i) in the logarithmic compression system by performing correction processing for correcting the luminance information S (i) for each photometric area based on the optical characteristics corresponding to the lens information. .

Y(i)=log{Yr(i)}×S(i) (2)
なお、一般に、シャッター速度および絞り値は対数系列のステップで設定されるので、上述のように、カメラ制御部41は対数圧縮系における被写体輝度情報Y(i)を求める。また、被写体色情報Cx(i)およびCy(i)を算出する際に用いられる係数M21〜M33は輝度成分を除く色情報を2軸の空間で表すことができれば、特定の係数に限定されない。
Y (i) = log 2 {Yr (i)} × S (i) (2)
In general, since the shutter speed and the aperture value are set in logarithmic series of steps, the camera control unit 41 obtains subject luminance information Y (i) in the logarithmic compression system as described above. The coefficients M21 to M33 used when calculating the subject color information Cx (i) and Cy (i) are not limited to specific coefficients as long as the color information excluding the luminance component can be expressed in a biaxial space.

続いて、カメラ制御部41は、測光領域PD1〜PD35の各々について肌色領域とみなせる領域であるか又は緑色領域とみなせる領域であるかを判定する。ここでは、例えば、カメラ制御部41は、測光領域PD1〜PD35の各々について得られた被写体色情報Cx(i)およびCy(i)が次の式(3)を満たすと、当該測光領域を肌色領域として検出する(ステップS152)。   Subsequently, the camera control unit 41 determines whether each of the photometric areas PD1 to PD35 is an area that can be regarded as a skin color area or a green area. Here, for example, when the subject color information Cx (i) and Cy (i) obtained for each of the photometry areas PD1 to PD35 satisfy the following expression (3), the camera control unit 41 sets the photometry area to the skin color. The area is detected (step S152).

Cxsmin≦Cx(i)≦Cxsmax
Cysmin≦Cy(i)≦Cysmax (3)
なお、Cxsmin、Cxsmax、Cysmin、およびCysmaxはそれぞれ閾値であり、係数M21〜M33によって変換された色空間内において肌色と見なせる範囲を区切る値である。
Cxsmin ≦ Cx (i) ≦ Cxsmax
Cysmin ≦ Cy (i) ≦ Cysmax (3)
Cxsmin, Cxsmax, Cysmin, and Cysmax are threshold values, and are values that delimit a range that can be regarded as a skin color in the color space converted by the coefficients M21 to M33.

同様に、カメラ制御部41は、測光領域PD1〜PD35の各々について得られた被写体色情報Cx(i)およびCy(i)が次の式(4)を満たすと、当該測光領域を緑領域として検出する(ステップS152)。   Similarly, when the subject color information Cx (i) and Cy (i) obtained for each of the photometry areas PD1 to PD35 satisfy the following expression (4), the camera control unit 41 sets the photometry area as a green area. It detects (step S152).

Cxgmin≦Cx(i)≦Cxgmax
Cygmin≦Cy(i)≦Cygmax (4)
なお、Cxgmin、Cxgmax、Cygmin、およびCygmaxはそれぞれ閾値であり、係数M21〜M33によって変換された色空間内において緑色と見なせる範囲を区切る値である。通常、肌色範囲と緑色範囲とは色空間において分離しており、オーバーラップすることはない。
Cxgmin ≦ Cx (i) ≦ Cxgmax
Cygmin ≦ Cy (i) ≦ Cygmax (4)
Cxgmin, Cxgmax, Cygmin, and Cygmax are threshold values, and are values that delimit a range that can be regarded as green in the color space converted by the coefficients M21 to M33. Usually, the skin color range and the green range are separated in the color space and do not overlap.

続いて、カメラ制御部41は測光領域PD1〜PD35の各々について肌色領域検出に関する肌色信頼度Ssc(i)を算出する。まず、カメラ制御部41は測光領域PD1〜PD35のうち肌色領域とみなした領域についてfs(i)=1とし、それ以外の領域についてfs(i)=0とする。   Subsequently, the camera control unit 41 calculates the skin color reliability Ssc (i) related to the skin color area detection for each of the photometric areas PD1 to PD35. First, the camera control unit 41 sets fs (i) = 1 for a region regarded as a skin color region among the photometric regions PD1 to PD35, and sets fs (i) = 0 for other regions.

さらに、カメラ制御部41は、測光領域PD1〜PD35の各々について得られた被写体輝度情報Y(i)に基づいて設定する輝度係数kys(i)を求める。ここでは、カメラ制御部41は、測光領域における被写体輝度情報Y(i)が所定の範囲にある場合には、輝度係数kys(i)=1とする。そして、被写体輝度情報Y(i)が所定の範囲から外れるにつれて、カメラ制御部41は輝度係数kys(i)を1よりも小さくする。   Further, the camera control unit 41 obtains a luminance coefficient kys (i) to be set based on the subject luminance information Y (i) obtained for each of the photometric areas PD1 to PD35. Here, the camera control unit 41 sets the luminance coefficient kys (i) = 1 when the subject luminance information Y (i) in the photometric area is within a predetermined range. Then, as the subject luminance information Y (i) deviates from the predetermined range, the camera control unit 41 makes the luminance coefficient kys (i) smaller than 1.

ところで、測光用センサー26におけるセンサー面照度が低すぎるとS/Nが悪化して検出精度が悪くなり、センサー面照度が大き過ぎると飽和などの影響で検出精度が悪くなる。このため、上述のように、被写体輝度情報Y(i)に応じて輝度係数kys(i)を変更する。   By the way, if the sensor surface illuminance in the photometric sensor 26 is too low, the S / N deteriorates and the detection accuracy deteriorates. If the sensor surface illuminance is too large, the detection accuracy deteriorates due to the influence of saturation or the like. For this reason, as described above, the luminance coefficient kys (i) is changed according to the subject luminance information Y (i).

カメラ制御部41は測光領域の配置に応じて位置係数ks(i)を設定する。ここでは、カメラ制御部41は画像の中央部に近い測光領域については、位置係数ks(i)=1とし、測光領域が画像の周辺部に近い程、位置係数ks(i)を0に近づける。つまり、肌色領域は人物とみなして主被写体領域とするので、画像の中央部に近い測光領域について肌色信頼度を高くし、画像の周辺部に近い測光領域程、肌色信頼度を低くする。   The camera control unit 41 sets the position coefficient ks (i) according to the arrangement of the photometry area. Here, the camera control unit 41 sets the position coefficient ks (i) = 1 for the photometric area close to the center of the image, and approaches the position coefficient ks (i) to 0 as the photometric area is closer to the peripheral part of the image. . That is, since the skin color area is regarded as a main subject area as a person, the skin color reliability is increased in the photometry area near the center of the image, and the skin color reliability is decreased in the photometry area near the periphery of the image.

カメラ制御部41は、次の式(5)に応じて、測光領域PD1〜PD35の各々についてその肌色信頼度Ssc(i)を求める。   The camera control unit 41 obtains the skin color reliability Ssc (i) for each of the photometric areas PD1 to PD35 according to the following equation (5).

Ssc(i)=fs(i)×kys(i)×ks(i) (5)
次に、カメラ制御部41は測光領域PD1〜PD35の各々について緑色領域検出に関する緑色信頼度Sgc(i)を算出する。まず、カメラ制御部41は緑色領域とみなした測光領域についてfg(i)=1とし、それ以外の領域についてfg(i)=0とする。
Ssc (i) = fs (i) × kys (i) × ks (i) (5)
Next, the camera control unit 41 calculates the green reliability Sgc (i) related to the green area detection for each of the photometric areas PD1 to PD35. First, the camera control unit 41 sets fg (i) = 1 for a photometric area regarded as a green area, and sets fg (i) = 0 for other areas.

さらに、カメラ制御部41は、測光領域PD1〜PD35の各々について得られた被写体輝度情報Y(i)に基づいて設定する輝度係数kyg(i)を求める。ここでは、カメラ制御部41は、被写体輝度情報Y(i)が日中屋外において木々又は植物の葉などを測光したとして設定した輝度範囲にある場合には、輝度係数kyg(i)=1とする。そして、被写体輝度情報Y(i)が当該輝度範囲から外れるにつれて、カメラ制御部41は輝度係数kyg(i)を1よりも小さくする。   Further, the camera control unit 41 obtains a luminance coefficient kyg (i) to be set based on the subject luminance information Y (i) obtained for each of the photometric areas PD1 to PD35. Here, the camera control unit 41 sets the luminance coefficient kyg (i) = 1 when the subject luminance information Y (i) is in the luminance range set by measuring the leaves of trees or plants outdoors during the daytime. To do. Then, as the subject luminance information Y (i) is out of the luminance range, the camera control unit 41 makes the luminance coefficient kyg (i) smaller than 1.

カメラ制御部41は、次の式(6)に応じて、測光領域PD1〜PD35の各々についてその緑色信頼度Sgc(i)を求める。   The camera control unit 41 obtains the green reliability Sgc (i) for each of the photometric areas PD1 to PD35 according to the following equation (6).

Sgc(i)=fg(i)×kyg(i) (6)
続いて、カメラ制御部41は肌色信頼度Ssc(i)が所定の肌色閾値以上である測光領域における被写体輝度情報Y(i)の平均値を求めて、当該平均値を肌色部輝度値Yscとする(ステップS153)。
Sgc (i) = fg (i) × kyg (i) (6)
Subsequently, the camera control unit 41 obtains an average value of the subject luminance information Y (i) in the photometry area where the skin color reliability Ssc (i) is equal to or greater than a predetermined skin color threshold, and the average value is referred to as the skin color portion luminance value Ysc. (Step S153).

次に、カメラ制御部41は肌色信頼度Ssc(i)が肌色閾値以上である測光領域と合焦させた焦点検出領域との位置関係を確認する(ステップS154)。そして、カメラ制御部41は、当該確認結果に応じて、画像において合焦すべき焦点検出領域を変更すると判定した場合には、前述のようにし、再度焦点調節を行う。   Next, the camera control unit 41 confirms the positional relationship between the photometric area where the skin color reliability Ssc (i) is equal to or greater than the skin color threshold and the focused focus detection area (step S154). If the camera control unit 41 determines to change the focus detection area to be focused in the image according to the confirmation result, the camera control unit 41 performs focus adjustment again as described above.

続いて、カメラ制御部41は、焦点調節が完了した状態において、焦点検出領域F10〜F26の合計11の領域におけるデフォーカス量を得る。このデフォーカス量はピントずれ量を示すデータであり、焦点検出領域の各々について被写体に対して合焦状態であれば、デフォーカス量は0であり、ピントのずれが大きくなるにつれてデフォーカス量は大きくなる。   Subsequently, the camera control unit 41 obtains defocus amounts in a total of 11 regions of the focus detection regions F10 to F26 in a state where the focus adjustment is completed. This defocus amount is data indicating the amount of defocus. If the focus detection area is in focus with respect to the subject, the defocus amount is 0. As the defocus amount increases, the defocus amount is increased. growing.

カメラ制御部41は、デフォーカス量が所定の焦点閾値よりも小さい焦点検出領域に対応する測光領域の被写体輝度情報Y(i)の平均値を求めて、当該平均値を合焦部輝度値Yjpとする(ステップS156)。   The camera control unit 41 obtains an average value of the subject luminance information Y (i) in the photometry area corresponding to the focus detection area whose defocus amount is smaller than a predetermined focus threshold, and uses the average value as the in-focus unit luminance value Yjp. (Step S156).

次に、カメラ制御部41は画像の中央部又は合焦領域について重み付け係数を大きくして、当該重み付け係数を測光領域PD1〜PD35の被写体輝度情報値Y(i)に乗算した後、その平均値を求めて当該平均値を平均被写体輝度値Yaeとする(ステップS157)。   Next, the camera control unit 41 increases the weighting coefficient for the center portion or the focus area of the image, and multiplies the subject luminance information value Y (i) of the photometry areas PD1 to PD35 by the weighting coefficient, and then averages the average value. And the average value is set as the average subject luminance value Yae (step S157).

次に、カメラ制御部41は平均被写体輝度値Yaeと予め設定された設定輝度値とを比較して、フラッシュ撮影(低輝度自動発光)を行うか否かを判定する(ステップS158)。ここでは、カメラ制御部41は、平均被写体輝度値Yae<設定輝度値であると(設定輝度値未満であると)、フラッシュ撮影を行うと判定する。   Next, the camera control unit 41 compares the average subject brightness value Yae with a preset set brightness value, and determines whether or not flash photography (low brightness automatic light emission) is performed (step S158). Here, the camera control unit 41 determines that flash photography is performed when the average subject brightness value Yae <the set brightness value (less than the set brightness value).

フラッシュ撮影を行うと判定すると(ステップS158において、YES)、カメラ制御部41は平均被写体輝度値Yaeに基づいて、からフラッシュ撮影に適したシャッター速度、絞り値、および撮影感度を露出因子(フラッシュ撮影用制御値)として決定する(ステップS159)。そして、カメラ制御部41は、図6に示すステップS106の処理に進む。   If it is determined that flash photography is to be performed (YES in step S158), the camera control unit 41 determines the shutter speed, aperture value, and photography sensitivity suitable for flash photography based on the average subject luminance value Yae as an exposure factor (flash photography). Control value) (step S159). Then, the camera control unit 41 proceeds to the process of step S106 shown in FIG.

一方、フラッシュ撮影を行わないと判定すると(ステップS158において、NO)、カメラ制御部41は、測光領域毎の被写体輝度情報Y(i)に基づいて画像において天地方向の輝度傾き情報ΔYyを求める(ステップS160)。ここでは、図3(a)に示す測光領域PD1〜PD7の列が画像の天側を測光し、測光領域PD29〜PD35の列が画像の地側を測光するものとする。   On the other hand, when it is determined that flash photography is not performed (NO in step S158), the camera control unit 41 obtains luminance gradient information ΔYy in the vertical direction in the image based on the subject luminance information Y (i) for each photometric area ( Step S160). Here, it is assumed that the columns of the photometric areas PD1 to PD7 shown in FIG. 3A measure the top side of the image, and the columns of the photometric areas PD29 to PD35 measure the ground side of the image.

まず、カメラ制御部41は、式(7)に示すように、測光領域毎の被写体輝度情報Y(i)を列毎に平均化して列毎の輝度値Yy1〜Yy5を求める。   First, the camera control unit 41 obtains luminance values Yy1 to Yy5 for each column by averaging the subject luminance information Y (i) for each photometric area for each column as shown in Expression (7).

Yy1=ΣY(i)÷7 但しi=1〜7
Yy2=ΣY(i)÷7 但しi=8〜14
Yy3=ΣY(i)÷7 但しi=15〜21 (7)
Yy4=ΣY(i)÷7 但しi=22〜28
Yy5=ΣY(i)÷7 但しi=29〜35
画像における天地方向の輝度傾き情報ΔYyを求める際には、列毎の輝度値Yy1〜Yy5の近似直線の傾き係数を算出すればよい。簡易的には、次の式(8)で示すように、天地方向の輝度傾き情報ΔYyを求めてもよい。
Yy1 = ΣY (i) ÷ 7 where i = 1 to 7
Yy2 = ΣY (i) ÷ 7 where i = 8-14
Yy3 = ΣY (i) ÷ 7 where i = 15 to 21 (7)
Yy4 = ΣY (i) ÷ 7 where i = 22 to 28
Yy5 = ΣY (i) ÷ 7 where i = 29 to 35
When obtaining the luminance gradient information ΔYy in the vertical direction in the image, the gradient coefficient of the approximate straight line of the luminance values Yy1 to Yy5 for each column may be calculated. For simplicity, the luminance gradient information ΔYy in the vertical direction may be obtained as shown by the following equation (8).

ΔYy=((Yy1+ Yy2)÷2−(Yy4+ Yy5)÷2)÷3 (8)
上述のようにして求めた輝度傾き情報ΔYyは、測光領域毎の被写体輝度情報Y(i)のうち天側の輝度値が高く地側の輝度値が低い程、大きな値となって、逆光度合いを示す一つのパラメータとなる。
ΔYy = ((Yy1 + Yy2) ÷ 2- (Yy4 + Yy5) ÷ 2) ÷ 3 (8)
The luminance inclination information ΔYy obtained as described above becomes a larger value as the celestial luminance value is higher and the terrestrial luminance value is lower in the subject luminance information Y (i) for each photometric area, and the degree of backlighting It becomes one parameter which shows.

次に、カメラ制御部41は、肌色領域が検出されている否かをチェックする(ステップS161)。ここでは、カメラ制御部41は、ステップS152の処理においてfs(i)=1とした測光領域が存在するか否かをチェックする。   Next, the camera control unit 41 checks whether or not a skin color area is detected (step S161). Here, the camera control unit 41 checks whether or not a photometric area with fs (i) = 1 exists in the process of step S152.

肌色領域が検出されていると(ステップS161において、YES)、カメラ制御部41は測光領域毎の肌色信頼度Ssc(i)の総和ΣSsc(i)が所定の総和値以上であるか否かをチェックする(ステップS162)。   If the skin color area is detected (YES in step S161), the camera control unit 41 determines whether or not the sum ΣSsc (i) of the skin color reliability Ssc (i) for each photometry area is equal to or greater than a predetermined sum value. Check (step S162).

総和ΣSsc(i)が所定の総和値以上であると(ステップS162において、YES)、カメラ制御部41は主被写体が人物である可能性が高いとする。そして、カメラ制御部41は肌色部輝度値(特定色輝度値)Yscを主被写体部輝度値として、式(9)で示すように、肌色部輝度値Yscと平均被写体輝度値Yaeとの差分ΔYxを求める(ステップS163)。   If the total sum ΣSsc (i) is equal to or greater than a predetermined total value (YES in step S162), the camera control unit 41 is likely to have a main subject as a person. Then, the camera control unit 41 uses the skin color portion brightness value (specific color brightness value) Ysc as the main subject portion brightness value, and, as shown in Expression (9), the difference ΔYx between the skin color portion brightness value Ysc and the average subject brightness value Yae. Is obtained (step S163).

ΔYx=Yae−Ysc (9)
このようにして求められた差分ΔYxは平均被写体輝度値Yaeに対して肌色部輝度値Yscが低い程、大きな値となって、逆光度合いを示す一つのパラメータとなる。次に、カメラ制御部41は次のようにして、逆光シーン判定処理で用いる逆光判定閾値条件を設定する(ステップS164)。
ΔYx = Yae−Ysc (9)
The difference ΔYx thus determined becomes a larger value as the skin color portion luminance value Ysc is lower than the average subject luminance value Yae, and becomes one parameter indicating the degree of backlighting. Next, the camera control unit 41 sets a backlight determination threshold condition used in the backlight scene determination process as follows (step S164).

図8は、図5に示すカメラ制御部41で設定される逆光判定閾値条件の一例を示す図である。   FIG. 8 is a diagram illustrating an example of a backlight determination threshold condition set by the camera control unit 41 illustrated in FIG.

図8において、横軸は差分ΔYxを示し、縦軸は天地方向の輝度傾き情報ΔYyを示す。そして、逆光判定閾値条件はフラッシュ発光を行って撮影するか否かを判定するための閾値条件を示すものである。なお、ここでは、差分ΔYxおよび天地方向の輝度傾き情報ΔYyはそれぞれ段数(2の対数)で示されている。   In FIG. 8, the horizontal axis indicates the difference ΔYx, and the vertical axis indicates the luminance gradient information ΔYy in the vertical direction. The backlight determination threshold condition indicates a threshold condition for determining whether or not shooting is performed with flash emission. Here, the difference ΔYx and the luminance gradient information ΔYy in the vertical direction are each indicated by the number of steps (logarithm of 2).

ここでは、カメラ制御部41は逆光判定閾値条件において一点鎖線で示す閾値Th−Sを用いると決定する。カメラ制御部41はΔYx>1で、かつΔYy≧0の場合又はΔYy>1の条件を満たすと、フラッシュ発光を行うと判定する。それ以外の場合には、カメラ制御部41はフラッシュ発光を行わないと判定する。   Here, the camera control unit 41 determines to use the threshold Th-S indicated by the alternate long and short dash line in the backlight determination threshold condition. The camera control unit 41 determines that flash emission is performed when ΔYx> 1 and ΔYy ≧ 0 or when the condition of ΔYy> 1 is satisfied. In other cases, the camera control unit 41 determines not to perform flash emission.

なお、逆光判定閾値条件は、人物の顔など肌色が適正とみなされる撮影露出よりも1段暗く撮影されると暗過ぎて印象が悪くなることを考慮して決定される。   Note that the backlight determination threshold condition is determined in consideration of the fact that if a photograph is taken one step darker than the photographing exposure in which the skin color is considered to be appropriate, such as a person's face, the impression is too dark.

肌色領域が検出されていないと(ステップS161において、NO)、カメラ制御部41は所定の数以上の緑色領域が検出されたか否かを判定する(ステップS165)。ここでは、カメラ制御部41は、fg(i)=1である測光領域の数が所定の数以上あると、緑色領域が検出されたと判定する。   If the skin color area is not detected (NO in step S161), the camera control unit 41 determines whether or not a predetermined number or more of green areas are detected (step S165). Here, the camera control unit 41 determines that a green region has been detected when the number of photometric regions where fg (i) = 1 is equal to or greater than a predetermined number.

なお、測光領域の各々における緑色信頼度Sgc(i)の総和ΣSgc(i)が所定の値以上あると、カメラ制御部41は緑色領域が検出されたと判定するようにしてもよい。また、総和ΣSsc(i)が所定の総和値未満であると(ステップS162において、NO)、カメラ制御部41は、ステップS165の処理に進む。   Note that if the total sum ΣSgc (i) of the green reliability Sgc (i) in each photometric area is equal to or greater than a predetermined value, the camera control unit 41 may determine that a green area has been detected. If the total sum ΣSsc (i) is less than the predetermined total value (NO in step S162), the camera control unit 41 proceeds to the process in step S165.

所定の数以上の緑色領域が検出されていると(ステップS165において、YES)、カメラ制御部41は、木々の葉などが被写体である可能性が高いとする。そして、カメラ制御部41は、合焦部輝度値Yjpを主被写体部輝度値として、式(10)で示すように、合焦部輝度値Yjpと平均被写体輝度値(平均輝度値)Yaeとの差分(輝度差分)ΔYxを求める(ステップS166)。   When a predetermined number or more of green regions are detected (YES in step S165), the camera control unit 41 determines that there is a high possibility that the leaves of the trees are subjects. Then, the camera control unit 41 uses the in-focus portion luminance value Yjp as the main subject portion luminance value, and, as shown in Expression (10), the in-focus portion luminance value Yjp and the average subject luminance value (average luminance value) Yae A difference (luminance difference) ΔYx is obtained (step S166).

ΔYx=Yae−Yjp (10)
このようにして得られた差分ΔYxは平均被写体輝度値Yaeに対して合焦部輝度値Yjpが低い程、大きな値となり、逆光度合いを示す一つのパラメータとなる。
ΔYx = Yae−Yjp (10)
The difference ΔYx obtained in this way becomes a larger value as the in-focus portion luminance value Yjp is lower than the average subject luminance value Yae, and becomes one parameter indicating the degree of backlighting.

次に、カメラ制御部41は、図8に実線で示す逆光判定閾値Th−Gを用いると決定する(ステップS167)。カメラ制御部41は、ΔYx≦1の範囲においてはΔYy>1.25の場合又はΔYy>0で、かつ(ΔYx、ΔYy)=(1.0、1.25)と(ΔYx、ΔYy)=(1.5、0)とを結ぶ斜線の右上領域の条件を満たすと、フラッシュ発光を行うと判定する。それ以外の場合には、カメラ制御部41はフラッシュ発光を行わないと判定する。   Next, the camera control unit 41 determines to use the backlight determination threshold Th-G indicated by the solid line in FIG. 8 (step S167). In the range of ΔYx ≦ 1, the camera control unit 41 satisfies ΔYy> 1.25 or ΔYy> 0, and (ΔYx, ΔYy) = (1.0, 1.25) and (ΔYx, ΔYy) = ( 1.5, 0), it is determined that flash emission is performed when the condition in the upper right area of the oblique line connecting with the line is connected. In other cases, the camera control unit 41 determines not to perform flash emission.

木々の葉などの緑色は肌色などに比べて反射率が低く、同一の照明条件における被写体輝度値は1段以上低い値となることが多い。従って、肌色領域を検出した際の逆光判定閾値とは同一の逆光判定閾値を用いると、逆光ではない撮影シーンを逆光シーンであると誤って判定することが多くなる。よって、肌色領域を検出した際に用いる逆光判定閾値Th−Sよりも大きい逆光判定閾値Th−Gを用いて誤判定を少なくする。   Green color such as leaves of trees has a lower reflectance than skin color, and the subject luminance value under the same illumination condition is often lower by one or more steps. Therefore, if the same backlight determination threshold is used as the backlight determination threshold when the skin color area is detected, a shooting scene that is not backlight is often erroneously determined to be a backlight scene. Therefore, erroneous determination is reduced by using the backlight determination threshold Th-G that is larger than the backlight determination threshold Th-S used when the skin color area is detected.

所定の数以上の緑色領域が検出されていないと(ステップS165において、NO)、カメラ制御部41は、被写体が人物および木々の葉などでもなく特定できないとする。そして、カメラ制御部41は合焦部輝度値Yjpを主被写体部輝度として、合焦部輝度値Yjpと平均被写体輝度値Yaeとの差分ΔYxを算出する(ステップS168)。   If a predetermined number or more of the green regions are not detected (NO in step S165), the camera control unit 41 cannot identify the subject because it is not a person or a leaf of trees. Then, the camera control unit 41 calculates a difference ΔYx between the in-focus portion luminance value Yjp and the average subject luminance value Yae by using the in-focus portion luminance value Yjp as the main subject portion luminance (step S168).

このようにして得られたΔYxは平均被写体輝度値Yaeに対して合焦部輝度値Yjpが低い程、大きな値となり、逆光度合いを示す一つのパラメータとなる。   ΔYx obtained in this way becomes a larger value as the focused portion luminance value Yjp is lower than the average subject luminance value Yae, and becomes one parameter indicating the degree of backlighting.

次に、カメラ制御部41は、図8に破線で示す逆光判定閾値Th−Uを用いると決定する(ステップS169)。カメラ制御部41は、ΔYx≦0.75の範囲においてΔYy>0.75の場合又はΔYy>0で、かつ(ΔYx、ΔYy)=(0.75、0.75)と(ΔYx、ΔYy)=(1.25、0)とを結ぶ斜線の右上領域の条件を満たすと、フラッシュ発光を行うと判定する。それ以外の場合には、カメラ制御部41はフラッシュ発光を行わないと判定する。   Next, the camera control unit 41 determines to use the backlight determination threshold Th-U indicated by a broken line in FIG. 8 (step S169). In the range of ΔYx ≦ 0.75, the camera control unit 41 satisfies ΔYy> 0.75 or ΔYy> 0, and (ΔYx, ΔYy) = (0.75, 0.75) and (ΔYx, ΔYy) =. If the condition of the upper right area of the oblique line connecting (1.25, 0) is satisfied, it is determined that flash emission is performed. In other cases, the camera control unit 41 determines not to perform flash emission.

肌色領域が検知されず、しかも緑色領域が検知されずに被写体が特定できないシーンは種々存在する。このようなシーンにおいて人物が被写体であるものの小さいので肌色領域が検出できないことがある。このような場合に、フラッシュ発光を行わないことによる撮影の失敗を回避するため、ここでは逆光判定閾値を低く設定する。   There are various scenes in which the skin color area is not detected and the green area is not detected and the subject cannot be specified. In such a scene, although a person is a small subject, the skin color region may not be detected. In such a case, the backlight determination threshold is set low here in order to avoid failure of photographing due to not performing flash emission.

前述のステップS164、S167、又はS169の処理の後、カメラ制御部41は逆光判定閾値に応じてフラッシュ発光を行うか否かを判定する(ステップS170)。フラッシュ発光を行うと判定した場合(ステップS170において、YES)、カメラ制御部41は、平均被写体輝度値Yaeに応じてフラッシュ撮影に適するシャッター速度、絞り値、および撮影感度などの露出因子(フラッシュ撮影用制御値)を決定する(ステップS171)。そして、カメラ制御部41は、図6に示すステップS106の処理に進む。   After the process of step S164, S167, or S169 described above, the camera control unit 41 determines whether to perform flash emission according to the backlight determination threshold (step S170). If it is determined that flash emission is to be performed (YES in step S170), the camera control unit 41 determines an exposure factor (flash shooting suitable for flash shooting, shutter speed, aperture value, and shooting sensitivity suitable for the average subject luminance value Yae). Control value) is determined (step S171). Then, the camera control unit 41 proceeds to the process of step S106 shown in FIG.

一方、フラッシュ発光を行わないと判定した場合(ステップS170において、NO)、カメラ制御部41は、平均被写体輝度値Yaeに基づいてフラッシュ発光を行うことなく自然光撮影する際に適したシャッター速度、絞り値、撮影感度などを露出因子(自然光撮影用制御値)として決定する(ステップS172)。そして、カメラ制御部41は、図6に示すステップS106の処理に進む。   On the other hand, if it is determined not to perform flash emission (NO in step S170), the camera control unit 41 uses a shutter speed and aperture suitable for natural light photography without performing flash emission based on the average subject luminance value Yae. The value, shooting sensitivity, etc. are determined as exposure factors (natural light shooting control values) (step S172). Then, the camera control unit 41 proceeds to the process of step S106 shown in FIG.

このように、本発明の第1の実施形態では、肌色領域および緑色領域の検出結果に応じて、逆光判定に用いる逆光判定閾値を変更するようにしたので、精度よく逆光シーンを判定して、不要なフラッシュ発光を低減することができる。   As described above, in the first embodiment of the present invention, the backlight determination threshold used for backlight determination is changed according to the detection result of the skin color region and the green region. Therefore, the backlight scene is accurately determined, Unnecessary flash emission can be reduced.

[第2の実施形態]
続いて、本発明の第2の実施形態による逆光判別装置を備えるカメラの一例について説明する。
[Second Embodiment]
Next, an example of a camera provided with the backlight discrimination device according to the second embodiment of the present invention will be described.

なお、第2の実施形態に係るカメラの構成などは図1〜図5に示すカメラと同様である。また、第2の実施形態に係るカメラにおいても、図6で説明したようにして撮影処理が行われる。この際、第2の実施形態においては、露出演算およびフラッシュ使用判定処理が第1の実施形態とは異なる。   The configuration of the camera according to the second embodiment is the same as that of the camera shown in FIGS. In the camera according to the second embodiment, the photographing process is performed as described with reference to FIG. At this time, in the second embodiment, the exposure calculation and the flash use determination process are different from those in the first embodiment.

図9は、本発明の第2の実施形態による逆光判別装置を備えるカメラによって行われる露出演算およびフラッシュ使用判定処理の一例を説明するためのフローチャートである。   FIG. 9 is a flowchart for explaining an example of exposure calculation and flash use determination processing performed by a camera including a backlight discrimination device according to the second embodiment of the present invention.

露出演算およびフラッシュ使用判定処理を開始すると、図7Aで説明したステップS151〜S160の処理が行われる。そして、図7Bで説明したステップS161〜S167が行われる。   When the exposure calculation and the flash use determination process are started, the processes of steps S151 to S160 described with reference to FIG. 7A are performed. And step S161-S167 demonstrated in FIG. 7B is performed.

図7Bに示すステップS165の処理において、所定の数以上の緑色領域が検出されていないと(ステップS165において、NO)、カメラ制御部41は逆光判定閾値条件を予め設定されたデフォルト条件とする(ステップS261)。   In the process of step S165 shown in FIG. 7B, if a predetermined number or more of green regions are not detected (NO in step S165), the camera control unit 41 sets the backlight determination threshold condition as a default condition set in advance ( Step S261).

図10は、本発明の第2の実施形態によるカメラで設定される逆光判定閾値条件の一例を示す図である。   FIG. 10 is a diagram illustrating an example of a backlight determination threshold condition set by the camera according to the second embodiment of the present invention.

図10において、横軸は差分ΔYxを示し、縦軸は天地方向の輝度傾き情報ΔYyを示す。そして、図10に示す逆光判定閾値条件は、図8に示す逆光判定閾値条件と同様に、フラッシュ発光を行って撮影するか否かを判定するための閾値条件を示すものである。   In FIG. 10, the horizontal axis indicates the difference ΔYx, and the vertical axis indicates the luminance gradient information ΔYy in the vertical direction. The backlight determination threshold condition shown in FIG. 10 indicates the threshold condition for determining whether or not to perform shooting with flash emission, similarly to the backlight determination threshold condition shown in FIG.

ここでは、カメラ制御部41は逆光判定閾値条件としてデフォルト条件を設定する。図10に示す例において、カメラ制御部41はデフォルト条件として、破線で示す閾値(Th−Ux,Th−Uy)を用いると決定する。   Here, the camera control unit 41 sets a default condition as the backlight determination threshold condition. In the example shown in FIG. 10, the camera control unit 41 determines to use threshold values (Th-Ux, Th-Uy) indicated by broken lines as default conditions.

このデフォルト条件では、カメラ制御部41はΔYx>0.75で、かつΔYy≧0の場合又はΔYy>0.75の条件を満たすと、フラッシュ発光を行うと判定する。それ以外の場合には、カメラ制御部41はフラッシュ発光を行わないと判定する。   Under this default condition, the camera control unit 41 determines that flash emission is performed when ΔYx> 0.75 and ΔYy ≧ 0 or when ΔYy> 0.75 is satisfied. In other cases, the camera control unit 41 determines not to perform flash emission.

なお、デフォルト条件は、肌色領域が検出されず、しかも緑色領域の数が所定の数未満であって、被写体を特定できないシーンで用いられるので、逆光判定閾値は低く設定されている。   Since the default condition is used in a scene where the skin color area is not detected and the number of green areas is less than a predetermined number and the subject cannot be specified, the backlight determination threshold is set low.

さらに、ステップS261においては、カメラ制御部41は、合焦部輝度値Yjpを主被写体部輝度として、合焦部輝度値Yjpと平均被写体輝度値Yaeとの差分ΔYxを算出する。   Further, in step S261, the camera control unit 41 calculates a difference ΔYx between the in-focus portion luminance value Yjp and the average subject luminance value Yae with the in-focus portion luminance value Yjp as the main subject portion luminance.

続いて、カメラ制御部41は、ステップS165の処理と同様にして、再び所定の数以上の緑色領域が検出されたか否かを判定する(ステップS262)。所定の数以上の緑色領域が検出されると(ステップS262において、YES)、カメラ制御部41は、木々の葉などが被写体として含まれる可能性が高いとする。そして、カメラ制御部41は、逆光判定閾値条件を変更する(ステップS263)。ここでは、カメラ制御部41は、デフォルト条件のうち閾値Th−Uyを実線で示す閾値Th−Gyに変更して第1の変更デフォルト条件とする。   Subsequently, the camera control unit 41 determines whether or not a predetermined number or more of green regions are detected again in the same manner as in the process of step S165 (step S262). When a predetermined number or more of green regions are detected (YES in step S262), the camera control unit 41 assumes that there is a high possibility that leaves of trees and the like are included as subjects. Then, the camera control unit 41 changes the backlight determination threshold condition (step S263). Here, the camera control unit 41 changes the threshold value Th-Uy among the default conditions to the threshold value Th-Gy indicated by a solid line, and sets it as the first changed default condition.

第1の変更デフォルト条件においては、カメラ制御部41はΔYx>0.75で、かつΔYy≧0の場合又はΔYy>1.25の条件を満たすと、フラッシュ発光を行うと判定する。それ以外の場合には、カメラ制御部41はフラッシュ発光を行わないと判定する。   Under the first change default condition, the camera control unit 41 determines to perform flash emission when ΔYx> 0.75 and ΔYy ≧ 0 or when ΔYy> 1.25 is satisfied. In other cases, the camera control unit 41 determines not to perform flash emission.

このように、デフォルト条件を変更することによって、木々の葉などのように被写体の輝度値が低い場合には、天地方向の輝度傾き情報ΔYyに関する閾値が適正な閾値に変更されることになる。   In this way, by changing the default condition, when the luminance value of the subject is low, such as leaves of trees, the threshold value regarding the luminance gradient information ΔYy in the vertical direction is changed to an appropriate threshold value.

続いて、カメラ制御部41は、所定の数以上の肌色領域が検出されている否かを判定する(ステップS264)。ここでは、fs(i)=1とされた測光領域の数が所定数の以上あると、カメラ制御部41は肌色検出有りと判定する。なお、測光領域の各々における肌色信頼度Ssc(i)の総和ΣSsc(i)が所定の値以上であると、カメラ制御部41は肌色検出有りと判定するようにしてもよい。   Subsequently, the camera control unit 41 determines whether or not a predetermined number or more of skin color regions have been detected (step S264). Here, if the number of photometric areas in which fs (i) = 1 is equal to or greater than a predetermined number, the camera control unit 41 determines that skin color is detected. Note that if the sum ΣSsc (i) of the skin color reliability Ssc (i) in each photometric area is equal to or greater than a predetermined value, the camera control unit 41 may determine that there is skin color detection.

所定の数以上の肌色領域が検出されないと(ステップS264において、NO)、カメラ制御部41は、木々の葉などが被写体である可能性が高いとする。そして、カメラ制御部41は、逆光判定閾値条件を変更する(ステップS265)。ここでは、カメラ制御部41は、デフォルト条件のうち閾値Th−Uxを実線で示す閾値Th−Gxに変更して第2の変更デフォルト条件とする。そして、カメラ制御部41は、図7Bに示すステップS170の処理に進む。   If the predetermined number or more of the skin color regions are not detected (NO in step S264), the camera control unit 41 determines that there is a high possibility that the leaves of the trees are the subject. Then, the camera control unit 41 changes the backlight determination threshold condition (step S265). Here, the camera control unit 41 changes the threshold value Th-Ux among the default conditions to the threshold value Th-Gx indicated by a solid line, and sets the second changed default condition. Then, the camera control unit 41 proceeds to the process of step S170 illustrated in FIG. 7B.

第2の変更デフォルト条件においては、カメラ制御部41はΔYx>1.25で、かつΔYy≧0の場合又はΔYy>0.75の条件を満たすと、フラッシュ発光を行うと判定する。それ以外の場合には、カメラ制御部41はフラッシュ発光を行わないと判定する。   Under the second changed default condition, the camera control unit 41 determines that flash emission is performed when ΔYx> 1.25 and ΔYy ≧ 0 or when ΔYy> 0.75 is satisfied. In other cases, the camera control unit 41 determines not to perform flash emission.

このようにデフォルト条件を変更することによって、木々の葉などのように被写体の輝度値が低い場合の平均被写体輝度値Yaeと合焦部輝度値Yjpとの差分ΔYxに対する閾値が適正な閾値に変更される。   By changing the default condition in this way, the threshold for the difference ΔYx between the average subject luminance value Yae and the in-focus portion luminance value Yjp when the subject luminance value is low, such as leaves of trees, is changed to an appropriate threshold value. Is done.

所定の数以上の緑色領域が検出されないと(ステップS262において、NO)、カメラ制御部41は、ステップS264の処理と同様にして、所定の数以上の肌色領域が検出されたか否かを判定する(ステップS266)。   If the predetermined number or more of the green regions are not detected (NO in step S262), the camera control unit 41 determines whether or not the predetermined number or more of the skin color regions are detected in the same manner as the process of step S264. (Step S266).

所定の数以上の肌色領域が検出されると(ステップS266において、YES)、カメラ制御部41は人物が主被写体である可能性が高いとする。そして、カメラ制御部41は、逆光判定閾値条件を変更する(ステップS267)。ここでは、カメラ制御部41は、デフォルト条件のうち閾値Th−Uxを一点鎖線で示す閾値Th−Sxに変更して第3の変更デフォルト条件とする。   When a predetermined number or more of skin color regions are detected (YES in step S266), the camera control unit 41 determines that there is a high possibility that the person is the main subject. Then, the camera control unit 41 changes the backlight determination threshold condition (step S267). Here, the camera control unit 41 changes the threshold value Th-Ux among the default conditions to the threshold value Th-Sx indicated by the alternate long and short dash line, and sets the third changed default condition.

第3の変更デフォルト条件においては、カメラ制御部41はΔYx>1.0で、かつΔYy≧0の場合又はΔYy>0.75の条件を満たすと、フラッシュ発光を行うと判定する。それ以外の場合には、カメラ制御部41はフラッシュ発光を行わないと判定する。   Under the third change default condition, the camera control unit 41 determines that flash emission is performed when ΔYx> 1.0 and ΔYy ≧ 0 or when ΔYy> 0.75 is satisfied. In other cases, the camera control unit 41 determines not to perform flash emission.

このようにデフォルト条件を変更することによって、人物が主被写体となった場合において平均被写体輝度値Yaeと合焦部輝度値Yjpとの差分ΔYxに対する閾値が適正な閾値に変更されることになる。   By changing the default condition in this way, the threshold for the difference ΔYx between the average subject luminance value Yae and the in-focus portion luminance value Yjp is changed to an appropriate threshold when a person becomes the main subject.

その後、カメラ制御部41は、肌色部輝度値Yscを主被写体部輝度として、肌色部輝度値Yscと平均被写体輝度値Yaeとの差分ΔYxを算出する(ステップS268)。そして、カメラ制御部41は、図7Bに示すステップS170の処理に進む。   Thereafter, the camera control unit 41 calculates the difference ΔYx between the skin color portion brightness value Ysc and the average subject brightness value Yae using the skin color portion brightness value Ysc as the main subject portion brightness (step S268). Then, the camera control unit 41 proceeds to the process of step S170 illustrated in FIG. 7B.

なお、ステップS264において、所定の数以上の肌色領域が検出されると(ステップS264において、YES)、カメラ制御部41は、ステップS267の処理に進む。また、所定の数以上の肌色領域が検出されないと(ステップS266において、NO)、カメラ制御部41は、図7Bに示すステップS170の処理に進む。   Note that when a predetermined number or more of skin color regions are detected in step S264 (YES in step S264), the camera control unit 41 proceeds to the process of step S267. If the predetermined number or more of the skin color regions are not detected (NO in step S266), the camera control unit 41 proceeds to the process of step S170 shown in FIG. 7B.

このように、本発明の第2の実施形態では、緑色領域および肌色領域の検出結果に応じて、逆光判定閾値条件における閾値の範囲を変更するようにしたので、精度よく逆光シーンを判定して、不要なフラッシュ発光を低減することができる。   As described above, in the second embodiment of the present invention, the threshold range in the backlight determination threshold condition is changed according to the detection result of the green region and the skin color region. Therefore, the backlight scene is accurately determined. Unnecessary flash emission can be reduced.

なお、上述の実施の形態において、測光用センサーにおける測光領域の数および焦点検出用センサーにおける焦点検出領域の数は一例である。また、測光領域のブロック毎に色検出を行う実施形態について説明したが、ベイヤー毎などより細かい単位で色検出を行ってもよい。また、逆光判定閾値条件における閾値は一例である。そして、上記の実施の形態では、撮像素子とは別に測光用センサーを備えるようにしたが。撮像素子の出力に応じて測光を行うようにしてもよい。   In the embodiment described above, the number of photometry areas in the photometry sensor and the number of focus detection areas in the focus detection sensor are examples. Further, although the embodiment has been described in which color detection is performed for each block in the photometric area, color detection may be performed in finer units such as for each Bayer. Moreover, the threshold value in the backlight determination threshold condition is an example. In the above embodiment, the photometric sensor is provided separately from the image sensor. You may make it perform photometry according to the output of an image pick-up element.

上述の説明から明らかなように、図5に示す例では、測光用センサー(AEセンサー)26、TG42、およびカメラ制御部41が測光手段として機能し、カメラ制御部41が輝度差算出手段、特定色判定手段、および逆光判定手段として機能する。   As is clear from the above description, in the example shown in FIG. 5, the photometric sensor (AE sensor) 26, the TG 42, and the camera control unit 41 function as photometric means, and the camera control unit 41 is a luminance difference calculating means and specifying Functions as color determination means and backlight determination means.

さらに、焦点検出用センサー(AFセンサー)20およびカメラ制御部41が焦点検出手段として機能し、カメラ制御部41およびフラッシュ装置3が発光手段として機能する。   Further, the focus detection sensor (AF sensor) 20 and the camera control unit 41 function as focus detection means, and the camera control unit 41 and the flash device 3 function as light emission means.

また、カメラ制御部41は輝度傾き算出手段として機能し、交換レンズ2、撮像素子12、および信号処理回路43は撮像手段として機能する。そして、カメラ制御部41およびフラッシュ制御部61は発光制御手段と機能する。   The camera control unit 41 functions as a luminance inclination calculation unit, and the interchangeable lens 2, the image sensor 12, and the signal processing circuit 43 function as an imaging unit. The camera control unit 41 and the flash control unit 61 function as a light emission control unit.

なお、図示の例では、少なくとも測光用センサー(AEセンサー)26、TG42、カメラ制御部41、および焦点検出用センサー(AFセンサー)20が逆光判別装置を構成する。   In the illustrated example, at least the photometric sensor (AE sensor) 26, the TG 42, the camera control unit 41, and the focus detection sensor (AF sensor) 20 constitute a backlight discrimination device.

以上、本発明について実施の形態に基づいて説明したが、本発明は、これらの実施の形態に限定されるものではなく、この発明の要旨を逸脱しない範囲の様々な形態も本発明に含まれる。   As mentioned above, although this invention was demonstrated based on embodiment, this invention is not limited to these embodiment, Various forms of the range which does not deviate from the summary of this invention are also contained in this invention. .

例えば、上記の実施の形態の機能を制御方法として、この制御方法を逆光判別装置に実行させるようにすればよい。また、上述の実施の形態の機能を有するプログラムを制御プログラムとして、当該制御プログラムを逆光判別装置が備えるコンピュータに実行させるようにしてもよい。なお、制御プログラムは、例えば、コンピュータに読み取り可能な記録媒体に記録される。   For example, the function of the above embodiment may be used as a control method, and the control method may be executed by the backlight discrimination device. Further, a program having the functions of the above-described embodiments may be used as a control program, and the control program may be executed by a computer included in the backlight discrimination device. The control program is recorded on a computer-readable recording medium, for example.

また、本発明は、以下の処理を実行することによっても実現される。つまり、上述した実施形態の機能を実現するソフトウェア(プログラム)を、ネットワーク又は各種の記録媒体を介してシステム或いは装置に供給し、そのシステム或いは装置のコンピュータ(またはCPUやMPUなど)がプログラムを読み出して実行する処理である。   The present invention can also be realized by executing the following processing. That is, software (program) that realizes the functions of the above-described embodiments is supplied to a system or apparatus via a network or various recording media, and the computer (or CPU, MPU, etc.) of the system or apparatus reads the program. To be executed.

1 カメラ本体
2 交換レンズ
3 フラッシュ装置
12 撮像素子
20 焦点検出用センサー
26 測光用センサー
41 カメラ制御部
43 信号処理回路
51 レンズ制御部
61 フラッシュ制御部
DESCRIPTION OF SYMBOLS 1 Camera main body 2 Interchangeable lens 3 Flash apparatus 12 Image sensor 20 Focus detection sensor 26 Photometric sensor 41 Camera control part 43 Signal processing circuit 51 Lens control part 61 Flash control part

Claims (11)

撮影シーンが逆光シーンであるか否かを判別する逆光判別装置であって、
前記撮影シーンで得られた画像を受けて、前記画像を複数の測光領域に分割して、前記測光領域の各々においてその輝度および色を測光して輝度情報および色情報を得る測光手段と、
前記輝度情報に応じて前記画像における輝度の差を示す輝度差分を求める輝度差算出手段と、
前記色情報に応じて前記測光領域において予め定められた第1の特定色および前記第1の特定色とは異なる第2の特定色が検出されたか否かを判定する特定色判定手段と、
前記輝度差分と逆光判定閾値とに応じて前記撮影シーンが逆光シーンであるか否かを判定する逆光シーン判定処理を行う際、前記第2の特定色である領域が検出されていない場合に、前記第1の特定色である測光領域の数に応じて前記逆光判定閾値を変更して前記逆光シーン判定処理を行う逆光判定手段と、
を有することを特徴とする逆光判別装置。
A backlight discrimination device for discriminating whether or not a shooting scene is a backlight scene,
Photometric means for receiving an image obtained in the shooting scene, dividing the image into a plurality of photometric areas, and measuring luminance and color in each of the photometric areas to obtain luminance information and color information;
A luminance difference calculating means for obtaining a luminance difference indicating a luminance difference in the image according to the luminance information;
Specific color determination means for determining whether or not a first specific color predetermined in the photometric area and a second specific color different from the first specific color are detected according to the color information;
When performing a backlight scene determination process that determines whether or not the shooting scene is a backlight scene according to the luminance difference and a backlight determination threshold, when the region that is the second specific color is not detected, Backlight determination means for performing the backlight scene determination process by changing the backlight determination threshold according to the number of photometric areas that are the first specific color;
A backlight discrimination device characterized by comprising:
前記逆光判定手段は、前記第1の特定色である測光領域の数が所定の数以上であると、前記第1の特定色である測光領域の数が前記所定の数未満の場合よりも前記逆光判定閾値を大きくして前記逆光シーン判定処理を行うことを特徴とする請求項1に記載の逆光判別装置。   When the number of photometric areas that are the first specific color is equal to or greater than a predetermined number, the backlight determination unit is more than the case where the number of photometric areas that are the first specific color is less than the predetermined number. 2. The backlight discrimination apparatus according to claim 1, wherein the backlight scene determination process is performed by increasing a backlight judgment threshold. 前記測光領域に対応する焦点検出領域の各々について合焦状態にあるか否かを検出する焦点検出手段を備え、
前記輝度差算出手段は、前記合焦状態にある焦点検出領域に対応する測光領域における輝度の平均値を示す合焦部輝度値を求めて、前記測光領域における輝度の平均値である平均輝度値と前記合焦部輝度値とに応じて前記輝度差分を求めることを特徴とする請求項1又は2に記載の逆光判別装置。
A focus detection means for detecting whether or not each of the focus detection areas corresponding to the photometry area is in focus;
The brightness difference calculating means obtains an in-focus brightness value indicating an average brightness value in the photometry area corresponding to the focus detection area in the focused state, and an average brightness value that is an average brightness value in the photometry area 3. The backlight discrimination device according to claim 1, wherein the brightness difference is obtained in accordance with the focus portion brightness value.
前記測光領域における輝度の平均値である平均輝度値が予め設定された設定輝度値未満であると、フラッシュ発光を行う発光手段を有することを特徴とする請求項1に記載の逆光判別装置。   2. The backlight discrimination device according to claim 1, further comprising: a light emitting unit configured to perform flash light emission when an average luminance value, which is an average value of luminance in the photometric region, is less than a preset luminance value set in advance. 前記測光領域における輝度の平均値である平均輝度値が予め設定された設定輝度値以上であると、前記画像において天側および地側に位置する測光領域における輝度の傾きを示す輝度傾き情報を求める輝度傾き算出手段を備え、
前記逆光判定閾値は、前記平均輝度と前記輝度傾き情報とによって規定されることを特徴とする請求項1〜4のいずれか1項に記載の逆光判別装置。
If an average luminance value, which is an average value of luminance in the photometric area, is equal to or greater than a preset luminance value, luminance gradient information indicating the luminance gradient in the photometric area located on the top side and the ground side in the image is obtained. A brightness slope calculating means;
5. The backlight discrimination device according to claim 1, wherein the backlight judgment threshold is defined by the average brightness and the brightness slope information.
記逆光判定手段は、前記特定色判定手段によって前記第2の特定色が検出され、当該検出された前記第2の特定色である測光領域の信頼度が所定以上であると、前記逆光シーン判定処理で用いる逆光判定閾値を、前記第1の特定色である測光領域の数が所定の数以上である場合に用いる逆光判定閾値よりも小さくすることを特徴とする請求項1〜5のいずれか1項に記載の逆光判別装置。 Before SL backlight determining means, said second specific color by the specific color determination unit is detected and the reliability of the detected said second metering area is a particular color has been is not less than a predetermined value, the backlight The backlight determination threshold value used in the scene determination process is made smaller than the backlight determination threshold value used when the number of photometric areas that are the first specific color is equal to or greater than a predetermined number. The backlight discrimination device according to any one of the preceding claims. 前記輝度差算出手段は、前記特定色判定手段によって前記第2の特定色が検出されると、前記第2の特定色である測光領域における輝度の平均値を示す特定色輝度値を求めて、前記測光領域における輝度の平均値である平均輝度値と前記特定色輝度値とに応じて前記輝度差分を求めることを特徴とする請求項6に記載の逆光判別装置。   When the second specific color is detected by the specific color determination unit, the luminance difference calculating unit obtains a specific color luminance value indicating an average value of luminance in a photometric area that is the second specific color, 7. The backlight discrimination apparatus according to claim 6, wherein the luminance difference is obtained according to an average luminance value that is an average value of luminance in the photometric area and the specific color luminance value. 前記第1の特定色は緑色であり、前記第2の特定色は肌色であることを特徴とする請求項6又は7に記載の逆光判別装置。   8. The backlight discrimination device according to claim 6, wherein the first specific color is green and the second specific color is a skin color. 請求項1〜8のいずれか1項に記載の逆光判別装置と、
被写体を撮像して画像を得る撮像手段と、
前記逆光判定手段によって逆光シーンであると判定されると、フラッシュを発光制御する発光制御手段と、
を有することを特徴とする撮像装置。
The backlight discrimination device according to any one of claims 1 to 8,
Imaging means for capturing an image of a subject and obtaining an image;
When it is determined by the backlight determination means that the scene is a backlight scene, light emission control means for controlling the flash to emit light,
An imaging device comprising:
撮影シーンが逆光シーンであるか否かを判別する逆光判別装置の制御方法であって、
前記撮影シーンで得られた画像を受けて、前記画像を複数の測光領域に分割して、前記測光領域の各々においてその輝度および色を測光して輝度情報および色情報を得る測光ステップと、
前記輝度情報に応じて前記画像における輝度の差を示す輝度差分を求める輝度差算出ステップと、
前記色情報に応じて前記測光領域において予め定められた第1の特定色および前記第1の特定色とは異なる第2の特定色が検出されたか否かを判定する特定色判定ステップと、
前記輝度差分と逆光判定閾値とに応じて前記撮影シーンが逆光シーンであるか否かを判定する逆光シーン判定処理を行う際、前記第2の特定色である領域が検出されていない場合に、前記第1の特定色である測光領域の数に応じて前記逆光判定閾値を変更して前記逆光シーン判定処理を行う逆光判定ステップと、
を有することを特徴とする制御方法。
A method for controlling a backlight discrimination device for discriminating whether or not a shooting scene is a backlight scene,
A photometric step of receiving the image obtained in the shooting scene, dividing the image into a plurality of photometric areas, and measuring the luminance and color in each of the photometric areas to obtain luminance information and color information;
A luminance difference calculating step for obtaining a luminance difference indicating a luminance difference in the image according to the luminance information;
First and second different specific color determination step of determining whether the specific color is detected from the specific color you and the first specific color predetermined in the photometric area depending on the color information,
When performing a backlight scene determination process that determines whether or not the shooting scene is a backlight scene according to the luminance difference and a backlight determination threshold, when the region that is the second specific color is not detected, A backlight determination step of performing the backlight scene determination process by changing the backlight determination threshold according to the number of photometric areas that are the first specific color;
A control method characterized by comprising:
撮影シーンが逆光シーンであるか否かを判別する逆光判別装置で用いられる制御プログラムであって、
前記逆光判別装置が備えるコンピュータに、
前記撮影シーンで得られた画像を受けて、前記画像を複数の測光領域に分割して、前記測光領域の各々においてその輝度および色を測光して輝度情報および色情報を得る測光ステップと、
前記輝度情報に応じて前記画像における輝度の差を示す輝度差分を求める輝度差算出ステップと、
前記色情報に応じて前記測光領域において予め定められた第1の特定色および前記第1の特定色とは異なる第2の特定色が検出されたか否かを判定する特定色判定ステップと、
前記輝度差分と逆光判定閾値とに応じて前記撮影シーンが逆光シーンであるか否かを判定する逆光シーン判定処理を行う際、前記第2の特定色である領域が検出されていない場合に、前記第1の特定色である測光領域の数に応じて前記逆光判定閾値を変更して前記逆光シーン判定処理を行う逆光判定ステップと、
を実行させることを特徴とする制御プログラム。
A control program used in a backlight discrimination device that discriminates whether or not a shooting scene is a backlight scene,
In the computer provided in the backlight discrimination device,
A photometric step of receiving the image obtained in the shooting scene, dividing the image into a plurality of photometric areas, and measuring the luminance and color in each of the photometric areas to obtain luminance information and color information;
A luminance difference calculating step for obtaining a luminance difference indicating a luminance difference in the image according to the luminance information;
First and second different specific color determination step of determining whether the specific color is detected from the specific color you and the first specific color predetermined in the photometric area depending on the color information,
When performing a backlight scene determination process that determines whether or not the shooting scene is a backlight scene according to the luminance difference and a backlight determination threshold, when the region that is the second specific color is not detected, A backlight determination step of performing the backlight scene determination process by changing the backlight determination threshold according to the number of photometric areas that are the first specific color;
A control program characterized by causing
JP2014181307A 2014-09-05 2014-09-05 Backlight discrimination device, control method thereof, control program, and imaging device Active JP6388391B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2014181307A JP6388391B2 (en) 2014-09-05 2014-09-05 Backlight discrimination device, control method thereof, control program, and imaging device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2014181307A JP6388391B2 (en) 2014-09-05 2014-09-05 Backlight discrimination device, control method thereof, control program, and imaging device

Publications (2)

Publication Number Publication Date
JP2016058781A JP2016058781A (en) 2016-04-21
JP6388391B2 true JP6388391B2 (en) 2018-09-12

Family

ID=55758952

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2014181307A Active JP6388391B2 (en) 2014-09-05 2014-09-05 Backlight discrimination device, control method thereof, control program, and imaging device

Country Status (1)

Country Link
JP (1) JP6388391B2 (en)

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2559000B2 (en) * 1992-09-04 1996-11-27 松下電器産業株式会社 Backlight detection device and automatic level control device
JP3958164B2 (en) * 2002-09-19 2007-08-15 キヤノン株式会社 Camera photometric device
JP2009147520A (en) * 2007-12-12 2009-07-02 Sony Corp Scene estimation apparatus, scene estimation method, program, imaging apparatus, and imaging method

Also Published As

Publication number Publication date
JP2016058781A (en) 2016-04-21

Similar Documents

Publication Publication Date Title
US9503616B2 (en) Image capturing apparatus
JP5451316B2 (en) Imaging apparatus and light emission control method
JP6046905B2 (en) Imaging apparatus, exposure control method, and program
JP5597078B2 (en) Imaging apparatus and control method thereof
US10063795B2 (en) Image capturing apparatus, method for controlling the same, and storage medium
JP2012242676A (en) Imaging apparatus, and control method
US10999523B2 (en) Image pickup apparatus, method for controlling image pickup apparatus, and storage medium for controlling flash photography when a still image is imaged
JP5959871B2 (en) Imaging device, control method thereof, and control program
US9268196B2 (en) Image capture apparatus, light emitting device, and and light emission amount calculation method
JP6336337B2 (en) Imaging apparatus, control method therefor, program, and storage medium
US10212344B2 (en) Image capturing device and control method capable of adjusting exposure timing based on detected light quantity change characteristic
JP5473493B2 (en) Imaging apparatus and control method thereof
JP6388391B2 (en) Backlight discrimination device, control method thereof, control program, and imaging device
JP6742733B2 (en) Imaging device, control method thereof, and control program
JP2015087494A (en) Imaging device
US10911660B2 (en) Control apparatus, imaging apparatus, control method, and storage medium
CN109387992B (en) Image pickup apparatus capable of sufficiently ensuring light emission accuracy and control method thereof
JP4136961B2 (en) Focus detection device
JP2014137449A (en) Imaging device, control method and program
JP2014098768A (en) Imaging device and exposure control method
JP4995133B2 (en) Imaging apparatus and control method
JP2016118611A (en) Light metering device, control method and control program thereof, as well as imaging device
JP6660036B2 (en) Focus detection device and imaging device
JP2007171298A (en) Imaging apparatus, and its control method, program and storage medium therefor
JP2005333558A (en) Image pickup device and image pickup method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20170823

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20180423

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20180508

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20180704

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20180810

R151 Written notification of patent or utility model registration

Ref document number: 6388391

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151