JP6312524B2 - Imaging apparatus, control method, program, and storage medium - Google Patents

Imaging apparatus, control method, program, and storage medium Download PDF

Info

Publication number
JP6312524B2
JP6312524B2 JP2014104495A JP2014104495A JP6312524B2 JP 6312524 B2 JP6312524 B2 JP 6312524B2 JP 2014104495 A JP2014104495 A JP 2014104495A JP 2014104495 A JP2014104495 A JP 2014104495A JP 6312524 B2 JP6312524 B2 JP 6312524B2
Authority
JP
Japan
Prior art keywords
photometric
flicker
exposure
photometric value
value
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
JP2014104495A
Other languages
Japanese (ja)
Other versions
JP2015220673A (en
JP2015220673A5 (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 JP2014104495A priority Critical patent/JP6312524B2/en
Priority to US14/540,821 priority patent/US9648249B2/en
Priority to KR1020140162265A priority patent/KR101757654B1/en
Priority to CN201410670626.3A priority patent/CN104660893B/en
Publication of JP2015220673A publication Critical patent/JP2015220673A/en
Publication of JP2015220673A5 publication Critical patent/JP2015220673A5/ja
Application granted granted Critical
Publication of JP6312524B2 publication Critical patent/JP6312524B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Transforming Light Signals Into Electric Signals (AREA)
  • Studio Devices (AREA)

Description

本発明は、撮像装置に関し、特にフリッカーが生じる光源下で露光をする際の制御方法に関するものである。   The present invention relates to an imaging apparatus, and more particularly to a control method for performing exposure under a light source in which flicker occurs.

近年、デジタルカメラや携帯電話、タブレット端末などの撮像装置の高感度化が進んでいる。そのため、室内のような比較的暗い環境下においても、シャッタースピードを高速にした(露光時間を短くした)撮影により、ブレを抑えた明るい画像を取得することが可能になってきている。   In recent years, the sensitivity of imaging devices such as digital cameras, mobile phones, and tablet terminals has been increasing. For this reason, even in a relatively dark environment such as a room, it has become possible to acquire a bright image with reduced blur by shooting with a high shutter speed (short exposure time).

また、室内光源として普及している蛍光灯やLEDは商用電源周波数の影響により、周期的に照明光がゆらぐ現象であるフリッカーが生じる。このようなフリッカーが生じる光源(以下、フリッカー光源とする)下でシャッタースピードを高速にした撮影を行うと、1つの画像内で露出ムラや色ムラが発生したり、連続して撮影した複数の画像間で露出や色温度のばらつきが発生したりする場合がある。   In addition, fluorescent lamps and LEDs that are widely used as indoor light sources cause flicker, which is a phenomenon in which illumination light periodically fluctuates due to the influence of commercial power supply frequency. When shooting with such a flickering light source (hereinafter referred to as a flicker light source) at a high shutter speed, exposure unevenness or color unevenness occurs in one image, or a plurality of images shot continuously. Variations in exposure and color temperature may occur between images.

このような問題に対して、特許文献1では、照明光のフリッカーの状態を検出し、露光時間の中心が照明光の光量が極大値を示すタイミングと略一致するように撮像タイミングを調節する技術が提案されている。   In order to solve such a problem, Patent Document 1 detects a flicker state of illumination light, and adjusts the imaging timing so that the center of the exposure time substantially coincides with the timing at which the amount of illumination light exhibits a maximum value. Has been proposed.

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

しかしながら、特許文献1では、照明光の照度の平均値に基づいて露出制御を行っており、撮像タイミングに応じた露出制御ができない。例えば、露光期間の中心がフリッカー光源の光量変化の極大値を示すタイミングと略一致するように撮像タイミングを調節する場合、図13に示すように、当該露光期間における光量の平均値はフリッカー光源の光量変化の1周期の平均値(全体平均値)と異なる。このため、露光期間の中心がフリッカー光源の光量変化の極大値を示すタイミングと略一致するように撮像タイミングを調節して撮影する場合、照明光の全体平均値に基づいて露出制御を行うと、露出がオーバー気味になってしまう。また、露光期間の中心がフリッカー光源の光量変化の極小値を示すタイミングと略一致するように撮像タイミングを調節して撮影する場合、照明光の全体平均値に基づいて露出制御を行うと、露出がアンダー気味になってしまう。   However, in Patent Document 1, exposure control is performed based on the average value of the illuminance of illumination light, and exposure control according to the imaging timing cannot be performed. For example, when the imaging timing is adjusted so that the center of the exposure period substantially coincides with the timing indicating the maximum value of the change in the amount of light of the flicker light source, as shown in FIG. This is different from the average value (overall average value) of one cycle of the light amount change. For this reason, when adjusting the imaging timing so that the center of the exposure period substantially coincides with the timing indicating the maximum value of the light amount change of the flicker light source, when performing exposure control based on the overall average value of illumination light, Overexposure is overexposed. In addition, when shooting is performed by adjusting the imaging timing so that the center of the exposure period substantially coincides with the timing indicating the minimum value of the light amount change of the flicker light source, exposure is controlled by performing exposure control based on the overall average value of illumination light. Will be under.

そこで、本発明は、フリッカーが生じる光源下で撮影しても良好な画像を取得することができるようにすることを目的とする。   Therefore, an object of the present invention is to make it possible to obtain a good image even when shooting under a light source in which flicker occurs.

上記目的を達成するために、本発明に係る撮像装置は、撮像手段と、第1の測光値を取得する測光手段と、前記測光手段により取得された前記第1の測光値に基づいて、前記撮像手段の第1の露光時間を設定する設定手段と、被写体からの光の光量変化特性を検出する検出手段と、前記検出手段により検出された前記光量変化特性と前記設定手段により設定された前記第1の露光時間との関係に基づいて、露出条件の決定に用いる第2の測光値を設定するために、前記第1の測光値を補正する補正手段と、前記補正手段により設定された前記第2の測光値に基づいて、前記検出手段により検出された前記光量変化特性に基づいて設定された所定のタイミングで前記撮像手段が露光を行う際の露出条件を決定する決定手段と、を有することを特徴とする。 In order to achieve the above object, an imaging apparatus according to the present invention includes an imaging unit , a photometric unit that acquires a first photometric value, and the first photometric value acquired by the photometric unit based on the first photometric value. and setting means for setting a first exposure time of the image pickup means, which is set by the detection means and, with the light amount change characteristic detected by said detecting means and the setting means for detecting a light amount change characteristic of the light from the subject the based on the relationship between the first exposure time, in order to set the second photometric value used for determining the exposure conditions, and correcting means for correcting the first photometric value, set by the correction means and the based on the second photometric values, having, a determination unit configured the imaging means at a predetermined timing set based on the detected light intensity change characteristic determines the exposure conditions at the time of performing the exposure by the detection means Specially To.

本発明によれば、フリッカーが生じる光源下で撮影しても良好な画像を取得することができるようにすることができる。   According to the present invention, it is possible to obtain a good image even when shooting under a light source in which flicker occurs.

本発明の実施形態に係る撮像装置の概略構成図である。1 is a schematic configuration diagram of an imaging apparatus according to an embodiment of the present invention. 第1の実施形態に係る撮像装置のフリッカーの影響を低減させた撮影を行う際の測光値決定処理を示すフローチャート図である。It is a flowchart figure which shows the photometric value determination process at the time of imaging | photography which reduced the influence of the flicker of the imaging device which concerns on 1st Embodiment. フリッカー検出用の電荷の蓄積タイミング及び画像信号の読み出しタイミングを示す図である。It is a figure which shows the accumulation | storage timing of the electric charge for flicker detection, and the reading timing of an image signal. 垂直画素加算数と読み出し時間の関係を示す図である。It is a figure which shows the relationship between the number of vertical pixel additions, and reading time. フリッカー光源の光量のピークのタイミングを算出する方法の一例を示す模式図である。It is a schematic diagram which shows an example of the method of calculating the timing of the peak of the light quantity of a flicker light source. 第1の実施形態におけるシャッタースピードと測光補正値により補正された測光値の関係を示す図である。It is a figure which shows the relationship between the shutter speed and photometric value corrected by the photometric correction value in 1st Embodiment. 第2の実施形態の測光補正値の算出方法のフローチャートを示す図である。It is a figure which shows the flowchart of the calculation method of the photometry correction value of 2nd Embodiment. 第2の実施形態における近似によるフリッカー光源の波形予測を用いた測光補正値の算出方法の一例を示す模式図である。It is a schematic diagram which shows an example of the calculation method of the photometry correction value using the waveform prediction of the flicker light source by approximation in 2nd Embodiment. 第2の実施形態におけるシャッタースピードと測光補正値により補正された測光値の関係を示す図である。It is a figure which shows the relationship between the shutter speed and photometric value corrected by the photometric correction value in 2nd Embodiment. 第3の実施形態の測光補正値の算出方法のフローチャートを示す図である。It is a figure which shows the flowchart of the calculation method of the photometry correction value of 3rd Embodiment. 第3の実施形態における近似によるフリッカー光源の波形予測を用いた測光補正値の算出方法の一例を示す模式図である。It is a schematic diagram which shows an example of the calculation method of the photometry correction value using the waveform prediction of the flicker light source by approximation in 3rd Embodiment. 蛍光灯と一部のLEDの光量の波形を説明する図である。It is a figure explaining the waveform of the light quantity of a fluorescent lamp and some LED. フリッカー光源の光量変化の1周期における平均測光値と露光期間における平均測光値との差を示す図である。It is a figure which shows the difference of the average photometric value in 1 period of the light quantity change of a flicker light source, and the average photometric value in an exposure period.

以下に、本発明の好ましい実施の形態を、添付の図面に基づいて詳細に説明する。   Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings.

(第1の実施形態)
以下、本発明の第1の実施形態について説明する。
(First embodiment)
Hereinafter, a first embodiment of the present invention will be described.

図1は、本実施形態に係る撮像装置の概略構成図である。本実施形態に係る撮像装置は、カメラ本体100と、カメラ本体100に着脱可能なレンズユニット200を含む。   FIG. 1 is a schematic configuration diagram of an imaging apparatus according to the present embodiment. The imaging apparatus according to the present embodiment includes a camera body 100 and a lens unit 200 that can be attached to and detached from the camera body 100.

まず、カメラ本体100の構成について説明する。マイクロコンピュータCPU(以下、カメラマイコン)101は、カメラ本体100の各部を制御する。メモリ102は、カメラマイコン101に接続されているRAMやROM等のメモリである。   First, the configuration of the camera body 100 will be described. A microcomputer CPU (hereinafter, camera microcomputer) 101 controls each part of the camera body 100. The memory 102 is a memory such as a RAM or a ROM connected to the camera microcomputer 101.

撮像素子103は、赤外カットフィルタやローパスフィルタ等を含むCCD、CMOS等の撮像素子であり、レンズユニット200を介して入射した光束を光電変換して画像信号を出力する。   The image sensor 103 is an image sensor such as a CCD or CMOS including an infrared cut filter, a low-pass filter, and the like, and photoelectrically converts a light beam incident through the lens unit 200 and outputs an image signal.

シャッター104は、レンズユニット200を介して入射した光束から撮像素子103を遮光する遮光状態、及び、レンズユニット200を介して入射した光束を撮像素子103に導く退避状態となるように走行する。すなわち、シャッター104は、撮像素子103を遮光する第1の状態と撮像素子103を遮光しない第2の状態とに変更可能であって、撮像素子103の露光時間を調節する機能を果たす。なお、撮像素子103の露光時間は、カメラマイコン101によって撮像素子103の電荷蓄積期間を制御する、いわゆる電子シャッター機能によって調節する構成でもよい。   The shutter 104 travels in a light shielding state in which the image sensor 103 is shielded from a light beam incident through the lens unit 200 and a retracted state in which the light beam incident through the lens unit 200 is guided to the image sensor 103. That is, the shutter 104 can be changed between a first state in which the image sensor 103 is shielded from light and a second state in which the image sensor 103 is not shielded, and functions to adjust the exposure time of the image sensor 103. The exposure time of the image sensor 103 may be adjusted by a so-called electronic shutter function in which the camera microcomputer 101 controls the charge accumulation period of the image sensor 103.

ハーフミラー105は、レンズユニット200を介して入射した光束を撮像素子103へ導く位置(ミラーアップ状態)と測光センサ108へ導く位置(ミラーダウン状態)とに移動可能である。すなわち、ハーフミラー105は、撮像素子103へ導く状態と測光センサ108へ導く状態とに、レンズユニット200を介して入射した光束の光路変更を行う。また、測光センサ108へ導く位置にある場合には、レンズユニット200を介して入射した光束をピント板106に結像させる。   The half mirror 105 is movable between a position for guiding the light beam incident through the lens unit 200 to the image sensor 103 (mirror up state) and a position for guiding it to the photometric sensor 108 (mirror down state). In other words, the half mirror 105 changes the optical path of the light beam that has entered through the lens unit 200 between the state leading to the image sensor 103 and the state leading to the photometric sensor 108. Further, when it is at a position to be guided to the photometric sensor 108, the light beam incident through the lens unit 200 is imaged on the focus plate 106.

表示素子107は、PN液晶等を用いた表示素子であり、自動焦点調節制御(AF制御)に用いられる焦点検出領域を示す枠(AF枠)などを表示する。測光センサ108は、CCD、CMOS等の入射光量に応じた電荷を蓄積する電荷蓄積型撮像素子を使用することにより、出力される画像信号に基づいて測光だけでなく被写体の顔検出や被写体追尾、フリッカーの検出などを行うことができる。なお、測光センサ108から出力される画像信号ではなく、撮像素子103から出力される画像信号に基づいてフリッカーの検出を行ってもよい。   The display element 107 is a display element using PN liquid crystal or the like, and displays a frame (AF frame) indicating a focus detection area used for automatic focus adjustment control (AF control). The photometric sensor 108 uses not only photometry but also subject face detection and subject tracking based on the output image signal by using a charge storage type imaging device that accumulates charges according to the amount of incident light such as a CCD or CMOS. Flicker detection can be performed. Note that flicker may be detected based on the image signal output from the image sensor 103 instead of the image signal output from the photometric sensor 108.

ペンタプリズム109は、ハーフミラー105で反射されたレンズユニット200を介して入射した光束を測光センサ108及び不図示の光学ファインダに導く。焦点検出回路110は、AF制御のために焦点検出を行うものであって、AFミラー111により、レンズユニット200を介して入射しハーフミラー105を通過した光束の一部が導かれる。   The pentaprism 109 guides the light beam incident through the lens unit 200 reflected by the half mirror 105 to the photometric sensor 108 and an optical finder (not shown). The focus detection circuit 110 performs focus detection for AF control, and a part of the light beam incident through the lens unit 200 and passing through the half mirror 105 is guided by the AF mirror 111.

CPU112は、測光センサ108の駆動制御や画像処理・演算用のCPU(以下ICPUとする)であって、測光センサ108からの出力信号(画像信号)に基づいて測光、被写体の顔検出、被写体追尾などに関わる各種演算を行う。また、ICPU112は、測光センサ108からの出力信号(画像信号)に基づいて、被写体からの光の光量変化周期や光量が所定の条件を満たすタイミング(例えば、光量が最大となるタイミングや光量が最少となるタイミング)などの光量変化特性を算出する。メモリ113は、ICPU112に接続されているRAMやROM等のメモリである。なお、本実施形態では、カメラマイコン101とは別にICPU112を有する構成を説明するが、ICPU112で実行する処理をカメラマイコン101で実行する構成でも構わない。   The CPU 112 is a CPU for driving control of the photometric sensor 108 and image processing / calculation (hereinafter referred to as ICPU). Based on an output signal (image signal) from the photometric sensor 108, photometry, subject face detection, and subject tracking are performed. Performs various calculations related to The ICPU 112 also determines the timing at which the light amount change period and the amount of light from the subject satisfy a predetermined condition based on the output signal (image signal) from the photometric sensor 108 (for example, the timing at which the amount of light becomes maximum and the amount of light is minimized). The light quantity change characteristic such as (timing) is calculated. The memory 113 is a memory such as a RAM or a ROM connected to the ICPU 112. In the present embodiment, a configuration in which the ICPU 112 is provided separately from the camera microcomputer 101 will be described. However, a configuration in which processing executed by the ICPU 112 is executed by the camera microcomputer 101 may be used.

操作部114は、ユーザがカメラ本体100に撮影準備動作の開始指示や撮影動作の開始指示を行うためのレリーズボタンや、ユーザがカメラ本体100の各種設定を行うための設定ボタンなどを含む。また、操作部114は、ユーザがカメラ本体100の電源のオンオフを切り替えるための電源スイッチや、ユーザがカメラ本体100の撮影モードを複数のモードの中から選択するためのモードダイヤル、タッチパネルなどを含む。   The operation unit 114 includes a release button for the user to instruct the camera body 100 to start a shooting preparation operation or a shooting operation, and a setting button for the user to make various settings for the camera body 100. The operation unit 114 includes a power switch for the user to turn on / off the power of the camera body 100, a mode dial for the user to select a shooting mode of the camera body 100 from a plurality of modes, a touch panel, and the like. .

次に、レンズユニット200の構成について説明する。レンズCPU201(以下、LPUとする)は、レンズユニット200の各部、例えば、フォーカスレンズ、ズームレンズ、絞りの駆動部などを制御するものであって、レンズに関する情報をカメラマイコン101に送信する。   Next, the configuration of the lens unit 200 will be described. The lens CPU 201 (hereinafter referred to as LPU) controls each part of the lens unit 200, for example, a focus lens, a zoom lens, a diaphragm driving unit, and the like, and transmits information about the lens to the camera microcomputer 101.

次に、図2を用いてフリッカーの影響を低減させた撮影を行う際の測光値決定処理について説明する。図2は、本実施形態に係る撮像装置のフリッカーの影響を低減させた撮影を行う際の測光値決定処理を示すフローチャート図である。   Next, with reference to FIG. 2, a photometric value determination process at the time of shooting with reduced flicker effects will be described. FIG. 2 is a flowchart showing photometric value determination processing when shooting is performed with reduced influence of flicker of the imaging apparatus according to the present embodiment.

まず、ユーザの電源スイッチへの操作によりカメラ本体100の電源がオン状態になると、ステップS101でICPU112は、測光許可状態であるか否かを判別し、測光許可状態ではないときはステップS101を繰り返す。なお、カメラ本体100の電源をONした時やレリーズボタンの半押し状態であるSW1がONされることで測光許可状態になり、測光許可状態で所定時間カメラ本体100が操作されないと測光許可状態ではなくなる。   First, when the power of the camera body 100 is turned on by the user's operation on the power switch, in step S101, the ICPU 112 determines whether or not the metering is permitted. If not, the step S101 is repeated. . It should be noted that when the camera body 100 is turned on or when SW1 that is a half-pressed state of the release button is turned on, the metering is permitted. When the camera body 100 is not operated for a predetermined time in the metering permission state, the metering permission state is established. Disappear.

測光許可状態であればステップS102に進み、通常測光用の蓄積&読み出し動作を行う。この測光は、フリッカー光源下においても、フリッカー光源の光量変化に影響して測光値がばらつかないように、測光センサ108の蓄積時間をフリッカーの周期のほぼ整数倍に設定するとよい。ここで、フリッカー光源の光量が変化する周波数(以下、フリッカー周波数とする)は、商用電源周波数の2倍になることから、商用電源周波数が50Hzの地域ではフリッカー周波数は100Hzとなる。そして、その光量変化周期はフリッカー周波数の逆数で10msとなる。同様に商用電源周波数が60Hzの地域ではフリッカー周波数は120Hz、光量変化周期はフリッカー周波数の逆数で8,33msとなる。この2種類のフリッカー周波数に対応するために、測光センサ108の蓄積時間を、10msと8,33msの平均値と略等しい時間、例えば9msに設定する。そうすると、商用電源周波数が50Hz、60Hzのどちらであっても測光センサ108の蓄積時間はフリッカー光源の光量変化の1周期と略等しくなり、フリッカー光源下でも安定した測光値を得ることができる。なお、フリッカー光源下でも安定した測光値を得るためには、フリッカー光源の光量変化の1周期の整数倍(商用電源周波数の2倍の逆数の整数倍)と略等しい蓄積時間(所定の測光期間)で測光を行えばよい。   If the metering is permitted, the process proceeds to step S102, and the normal metering accumulation and reading operation is performed. In this photometry, the accumulation time of the photometric sensor 108 is preferably set to be approximately an integral multiple of the flicker cycle so that the photometric value does not vary due to the change in the light amount of the flicker light source even under the flicker light source. Here, the frequency at which the light amount of the flicker light source changes (hereinafter referred to as the flicker frequency) is twice the commercial power frequency, and therefore the flicker frequency is 100 Hz in an area where the commercial power frequency is 50 Hz. The light quantity change period is 10 ms which is the reciprocal of the flicker frequency. Similarly, in an area where the commercial power supply frequency is 60 Hz, the flicker frequency is 120 Hz, and the light quantity change cycle is 8,33 ms which is the reciprocal of the flicker frequency. In order to deal with these two types of flicker frequencies, the accumulation time of the photometric sensor 108 is set to a time substantially equal to the average value of 10 ms and 8,33 ms, for example, 9 ms. Then, regardless of whether the commercial power supply frequency is 50 Hz or 60 Hz, the accumulation time of the photometric sensor 108 is substantially equal to one cycle of the light amount change of the flicker light source, and a stable photometric value can be obtained even under the flicker light source. In order to obtain a stable photometric value even under a flicker light source, an accumulation time (predetermined photometric period) approximately equal to an integral multiple of one cycle of the light amount change of the flicker light source (an integral multiple of the reciprocal of twice the commercial power supply frequency). ) To perform photometry.

ステップS102で測光センサ108による電荷の蓄積及び画像信号の読み出しを行い得られた画像信号に基づいて、ステップS103でICPU112は測光に関わる演算(以下、測光演算とする)を行い通常測光値BVを取得する。通常測光値BVは、公知の演算方法を行い取得すればよい。例えば、ステップS102で得られた画像信号の輝度成分を蓄積時間で割って取得すればよい。このとき、画像信号を複数の測光領域に分割して各測光領域の輝度成分を加重平均して通常測光値BVを取得してもよい。   In step S103, based on the image signal obtained by accumulating charges and reading out the image signal by the photometric sensor 108 in step S102, the ICPU 112 performs an operation related to photometry (hereinafter referred to as photometric calculation) to obtain the normal photometric value BV. get. The normal photometric value BV may be obtained by a known calculation method. For example, the luminance component of the image signal obtained in step S102 may be obtained by dividing by the accumulation time. At this time, the normal photometric value BV may be obtained by dividing the image signal into a plurality of photometric areas and performing weighted averaging of the luminance components of the photometric areas.

次に、ステップS104で図3に示すようにして測光センサ108によるフリッカー検出用の複数回の電荷の蓄積及び画像信号の読み出しを行う。図3は、フリッカー検出用の電荷の蓄積タイミング及び画像信号の読み出しタイミングを示す図であり、600fps、約1,667ms周期で蓄積・読み出しを連続して12回行う。この600fpsは、予め想定されるフリッカー周波数(100Hzと120Hz)の最小公倍数と等しい値となっている。また、600fpsで12回蓄積を行うことで、全体として20msの期間で蓄積を行うことになり、商用電源周波数が50Hz、60Hzのどちらであっても、フリッカー光源の光量変化が2周期含まれることになる。   Next, in step S104, as shown in FIG. 3, the photometric sensor 108 accumulates a plurality of charges for flicker detection and reads out an image signal. FIG. 3 is a diagram showing the charge accumulation timing for flicker detection and the image signal readout timing. Accumulation / readout is continuously performed 12 times at a cycle of 600 fps and about 1,667 ms. This 600 fps is a value equal to the least common multiple of the flicker frequencies (100 Hz and 120 Hz) assumed in advance. In addition, by accumulating 12 times at 600 fps, the accumulation is performed in a period of 20 ms as a whole, and the light quantity change of the flicker light source is included in two cycles regardless of whether the commercial power supply frequency is 50 Hz or 60 Hz. become.

ここで、測光センサ108を600fps(1,667ms周期)で駆動させる方法について説明する。   Here, a method for driving the photometric sensor 108 at 600 fps (cycle of 1,667 ms) will be described.

本実施形態では、測光センサ108から出力される画像信号に基づいて、測光だけでなく被写体の顔検出や被写体追尾、フリッカーの検出などを行う。被写体の顔検出を精度よく行うためには、測光センサ108の画素数はある程度、例えばQVGA相当の画素数必要である。このような被写体の顔検出を精度よく行うことが可能な画素数を有する撮像素子の全画素信号を600fps以上のフレームレートで読み出すためには、回路構成が複雑となりコストも増大する。   In this embodiment, based on the image signal output from the photometry sensor 108, not only photometry but also subject face detection, subject tracking, flicker detection, and the like are performed. In order to accurately detect the face of the subject, the number of pixels of the photometric sensor 108 needs to be a certain number, for example, the number of pixels equivalent to QVGA. In order to read out all pixel signals of an image sensor having a number of pixels that can accurately detect the face of the subject at a frame rate of 600 fps or more, the circuit configuration becomes complicated and the cost increases.

そこで、被写体の顔検出を行うための画像信号については全画素信号を読み出し、フリッカー検出を行うための画像信号については画素加算読み出しや間引き読み出しをすることによってフレームレートを600fps(1,667ms周期)に調整する。   Therefore, the frame rate is set to 600 fps (cycle of 1,667 ms) by reading out all pixel signals for the image signal for detecting the face of the subject and performing pixel addition reading and thinning-out reading for the image signal for detecting flicker. Adjust to.

測光センサ108にCCDを用いる場合、画素信号を加算して読み出す画素加算読み出しにより、読み出しライン数を擬似的に減少させて読み出し時間を短縮させるとよい。例えば、画素配列がストライプ状のCCDで垂直画素加算を行うことで、図4に示すような読み出し時間の短縮効果がある。図4は、垂直画素加算数と読み出し時間の関係を示す図であり、画素信号を加算することなく全画素信号を読み出す(垂直画素加算数が1)場合の読み出し時間が6,25msとなるCCDを例にして説明する。図4に示す特徴を有するCCDの場合、9画素加算を行うことにより読み出し時間は1,66msとなり、フレームレートを約600fpsにすることができる。このとき読み出される画像信号は、画素信号を加算することなく読み出された画像信号と比べて垂直方向の画素数が1/9になるが、フリッカー検出においては画像信号間の測光値を比較するだけなので、垂直方向の画素数が減少した画像信号でも問題ない。   In the case of using a CCD for the photometric sensor 108, it is preferable to shorten the readout time by artificially reducing the number of readout lines by pixel addition readout by adding and reading out pixel signals. For example, by performing vertical pixel addition with a CCD having a stripe arrangement, there is an effect of shortening the readout time as shown in FIG. FIG. 4 is a diagram showing the relationship between the number of vertical pixel additions and the readout time. A CCD in which the readout time is 6,25 ms when all pixel signals are read out without adding pixel signals (the number of vertical pixel additions is 1). Will be described as an example. In the case of a CCD having the characteristics shown in FIG. 4, by adding nine pixels, the readout time is 1,66 ms, and the frame rate can be about 600 fps. The image signal read out at this time has 1/9 the number of pixels in the vertical direction as compared with the image signal read out without adding the pixel signals. However, in flicker detection, the photometric values between the image signals are compared. Therefore, there is no problem even if the image signal has a reduced number of pixels in the vertical direction.

また、測光センサ108にCMOSを用いる場合、画素信号の読み出しを行う水平ラインを限定したいわゆる間引き読み出しによって、蓄積と読み出しの合計時間が約1,667ms周期となるように調整するとよい。   In the case where a CMOS is used for the photometric sensor 108, it is preferable to adjust so that the total time of accumulation and readout becomes a period of about 1,667 ms by so-called thinning readout in which horizontal lines for reading out pixel signals are limited.

以上で、測光センサを約600fps(約1,667ms周期)程度で駆動させる方法についての説明を終える。なお、上記の測光センサの蓄積・読み出し周期はあくまで一例であって、フレームレートは約600fps(約1,667ms周期)でなくても構わない。例えば、蓄積時間が長いほど低照度の環境に有効なため、1回の蓄積時間を約1,667msよりも長くし、フレームレートを600fpsよりも小さくしても構わない。あるいは、蓄積・読み出し周期が短いほどフリッカー検出に要する時間が短くなるため、1回の蓄積時間を約1,667msよりも短くしても構わない。このとき、垂直画素加算数を読み出し時間が1,66msよりも短くなる画素加算数にして、フレームレートを600fpsよりも大きくしても構わない。また、図4に示した垂直画素加算数と読み出し時間の関係もあくまで一例である。ただし、フレームレートが600fpsから離れるほど測光センサの蓄積・読み出し周期とフリッカー光源の光量変化の周期とのずれが大きくなるため、600fps±1〜2%以内のフレームレートが好ましい。すなわち、測光センサの測光周期は、第1の商用電源周波数の2倍の周波数と第2の商用電源周波数の2倍の周波数との最少公倍数の逆数に略等しい周期が好ましい。   This completes the description of the method for driving the photometric sensor at about 600 fps (about 1,667 ms cycle). The accumulation / reading cycle of the photometric sensor described above is merely an example, and the frame rate may not be about 600 fps (about 1,667 ms cycle). For example, since the longer the accumulation time is, the more effective the environment is for low illuminance, the one accumulation time may be longer than about 1,667 ms and the frame rate may be smaller than 600 fps. Alternatively, since the time required for flicker detection is shortened as the accumulation / reading cycle is shorter, one accumulation time may be shorter than about 1,667 ms. At this time, the vertical pixel addition number may be a pixel addition number that makes the readout time shorter than 1,66 ms, and the frame rate may be larger than 600 fps. Further, the relationship between the vertical pixel addition number and the readout time shown in FIG. 4 is merely an example. However, since the difference between the accumulation / reading cycle of the photometric sensor and the cycle of the change in the amount of light of the flicker light source increases as the frame rate increases from 600 fps, a frame rate within 600 fps ± 1 to 2% is preferable. That is, the photometric period of the photometric sensor is preferably a period substantially equal to the reciprocal of the least common multiple of the frequency twice the first commercial power supply frequency and the frequency twice the second commercial power supply frequency.

ステップS104でフリッカー検出用の電荷の蓄積及び画像信号の読み出しを終えたら、ステップS105でICPU112は、読み出した画像信号に基づいてフリッカー検出演算を行う。   When the accumulation of the charge for flicker detection and the reading of the image signal are finished in step S104, the ICPU 112 performs a flicker detection calculation based on the read image signal in step S105.

図3(a)は、商用電源周波数が50Hzであるときの電荷の蓄積タイミング、画像信号の読み出しタイミング及び測光値の推移を示している。そして、n回目の蓄積を「蓄積n」、蓄積nの読み出しを「読み出しn」、読み出しnの結果から得られる測光値を「AE(n)」としている。なお、各蓄積により得られる測光値は1つであるが、フリッカー光源の光量は蓄積期間中も一定ではない。そこで、各蓄積により得られる測光値を、各蓄積期間中の中心時点におけるフリッカー光源の光量に対応した値とみなす。   FIG. 3A shows changes in charge accumulation timing, image signal readout timing, and photometric value when the commercial power supply frequency is 50 Hz. The n-th accumulation is “accumulation n”, the readout of the accumulation n is “read n”, and the photometric value obtained from the result of the readout n is “AE (n)”. Note that although one photometric value is obtained by each accumulation, the light quantity of the flicker light source is not constant during the accumulation period. Therefore, the photometric value obtained by each accumulation is regarded as a value corresponding to the light amount of the flicker light source at the central point in each accumulation period.

商用電源周波数が50Hzの時のフリッカー光源の光量変化周期は約10msであり、10÷1,667≒6であるから、図3(a)に示すように、6回周期でフリッカー光源の光量が略等しいタイミングで蓄積が行われる。すなわち、AE(n)≒AE(n+6)の関係となる。   When the commercial power supply frequency is 50 Hz, the light amount change period of the flicker light source is about 10 ms and 10 ÷ 1,667≈6. Therefore, as shown in FIG. Accumulation is performed at substantially the same timing. That is, the relationship of AE (n) ≈AE (n + 6) is established.

同様に、商用電源周波数が60Hzの時のフリッカー光源の光量変化周期は約8,33msであり、8,33÷1,667≒5であるから、図3(b)に示すように、5回周期でフリッカー光源の光量が略等しいタイミングで蓄積が行われる。すなわち、AE(n)≒AE(n+5)の関係となる。   Similarly, when the commercial power supply frequency is 60 Hz, the light amount change period of the flicker light source is about 8,33 ms and is 8,33 ÷ 1,667≈5. Therefore, as shown in FIG. Accumulation is performed at a timing when the amount of light of the flicker light source is approximately equal in period. That is, AE (n) ≈AE (n + 5).

一方、光量変化がない光源下であれば、nによらずAE(n)は略一定である。そこで、フリッカー検出用の蓄積を行い得られた複数の測光値に基づいて、下の式(1)、(2)を用いて評価値を算出する。   On the other hand, AE (n) is substantially constant regardless of n if the light source has no change in light quantity. Therefore, an evaluation value is calculated using the following equations (1) and (2) based on a plurality of photometric values obtained by accumulation for flicker detection.

Figure 0006312524
Figure 0006312524

Figure 0006312524
Figure 0006312524

式(1)を用いて算出される評価値をF50、式(2)を用いて算出される評価値をF60として、評価値F50及び評価値F60を所定の閾値F_thと比較することで、フリッカー検出を行う。   Flicker is obtained by comparing the evaluation value F50 and the evaluation value F60 with a predetermined threshold value F_th, with the evaluation value calculated using the equation (1) as F50 and the evaluation value calculated using the equation (2) as F60. Perform detection.

具体的には、F50<F_thかつ、F60<F_thの場合、フリッカー検出用の蓄積を行い得られた複数の測光値のすべてが略等しいといえるため、フリッカーが生じていないと判断する。F50<F_thかつ、F60≧F_thの場合、フリッカー検出用の蓄積を行い得られた複数の測光値が、6回周期で略等しい値となっていて、5回周期では略等しい値となっていないといえる。そのため、光量変化周期が10msのフリッカーが生じている(商用電源周波数が50Hzのフリッカー光源下)と判断する。F50≧F_thかつ、F60<F_thの場合、フリッカー検出用の蓄積を行い得られた複数の測光値が、5回周期で略等しい値となっていて、6回周期では略等しい値となっていないといえる。そのため、光量変化周期が8,33msのフリッカーが生じている(商用電源周波数が60Hzのフリッカー光源下)と判断する。   Specifically, in the case of F50 <F_th and F60 <F_th, it can be said that all of a plurality of photometric values obtained by accumulating for flicker detection are substantially equal, and therefore it is determined that no flicker occurs. In the case of F50 <F_th and F60 ≧ F_th, a plurality of photometric values obtained by accumulating for flicker detection are substantially equal in six cycles and not substantially equal in five cycles. It can be said. Therefore, it is determined that a flicker with a light quantity change period of 10 ms is generated (under a flicker light source with a commercial power supply frequency of 50 Hz). In the case of F50 ≧ F_th and F60 <F_th, a plurality of photometric values obtained by accumulating for flicker detection are substantially equal in five cycles and are not substantially equal in six cycles. It can be said. Therefore, it is determined that a flicker with a light amount change period of 8,33 ms is generated (under a flicker light source with a commercial power supply frequency of 60 Hz).

なお、フリッカー検出用の蓄積を行っている間にパンニングなどの撮像装置の移動や被写体の移動が生じた場合などに、測光値が大きく変化してF50≧F_thかつ、F60≧F_thとなる場合も考えられる。その場合はF50とF60とを比較してフリッカー検出を行う。具体的には、F50≧F_thかつ、F60≧F_thかつ、F50≦F60の場合、光量変化周期が10msのフリッカーが生じている(商用電源周波数が50Hzのフリッカー光源下)と判断する。反対に、F50≧F_thかつ、F60≧F_thかつ、F50>F60の場合、光量変化周期が8,33msのフリッカーが生じている(商用電源周波数が60Hzのフリッカー光源下)と判断する。なお、F50≧F_thかつ、F60≧F_thかつ、F50=F60の場合は、フリッカー光源の光量変化周期を判断できないため、フリッカーが生じていないあるいはフリッカーの検出不可と判断してもよい。   It should be noted that the photometric value may change greatly to satisfy F50 ≧ F_th and F60 ≧ F_th when panning or other imaging device movement or subject movement occurs during flicker detection accumulation. Conceivable. In that case, flicker detection is performed by comparing F50 and F60. Specifically, when F50 ≧ F_th, F60 ≧ F_th, and F50 ≦ F60, it is determined that a flicker with a light quantity change period of 10 ms occurs (under a flicker light source with a commercial power supply frequency of 50 Hz). On the other hand, when F50 ≧ F_th, F60 ≧ F_th, and F50> F60, it is determined that a flicker with a light quantity change period of 8,33 ms is generated (under a flicker light source with a commercial power supply frequency of 60 Hz). Note that when F50 ≧ F_th, F60 ≧ F_th, and F50 = F60, the light amount change period of the flicker light source cannot be determined, and therefore it may be determined that no flicker occurs or flicker cannot be detected.

その他、F50≧F_thかつ、F60≧F_thの場合にフリッカー光源の光量変化周期を判断したが、F50≧F_thかつ、F60≧F_thの場合はフリッカー検出の精度が低いため、フリッカー検出用の蓄積をやり直してもよい。   In addition, when F50 ≧ F_th and F60 ≧ F_th, the light amount change period of the flicker light source is determined. However, when F50 ≧ F_th and F60 ≧ F_th, the flicker detection accuracy is low, so the flicker detection accumulation is performed again. May be.

フリッカー光源下ではない場合、ステップS102で取得した測光値BVを補正する必要はないため以降の処理は行わない。また、フリッカー光源下ではない場合、フリッカーの影響を低減させた撮影を行うために露光タイミングを調節する必要もなく、通常の撮影を行えばよいので詳細な説明は省略する。   If the light source is not under a flicker light source, it is not necessary to correct the photometric value BV acquired in step S102, and the subsequent processing is not performed. Further, when the light source is not under a flicker light source, it is not necessary to adjust the exposure timing in order to perform photographing with reduced influence of flicker, and normal photographing may be performed, and thus detailed description is omitted.

さらに、ステップS105でICPU112は、フリッカー光源下である場合は、フリッカーの特徴点のタイミングを求める。図5はフリッカーの特徴点のタイミングの一例であるフリッカー光源の光量のピークのタイミングを算出する方法の一例を説明する図である。   Further, in step S105, the ICPU 112 obtains the timing of the flicker feature point when the light source is under the flicker light source. FIG. 5 is a diagram for explaining an example of a method for calculating the peak timing of the light quantity of the flicker light source, which is an example of the timing of the flicker feature point.

AE(2)〜AE(11)の中で最大値を得た点をP2(t(m),AE(m))とし、その1つ前の測光結果の点をP1(t(m−1),AE(m−1))、1つ後の測光結果の点をP3(t(m+1),AE(m+1))とする。そして、AE(m−1)とAE(m+1)の小さい方を取る点(図5の例ではP1)と点P2の2点を通る直線をL1=at+bとして求め、AE(m−1)とAE(m+1)の大きい方を取る点(図5の例ではP3)を通り、傾き−aの直線をL2とする。L1とL2の交点を求めると、AE(1)の取得タイミングをt=1,667msとしたときのピークタイミングt_peakと、ピーク時の光量に対応するピーク測光値AE_peakを算出することができる。   The point where the maximum value is obtained among AE (2) to AE (11) is P2 (t (m), AE (m)), and the point of the previous photometric result is P1 (t (m-1). ), AE (m−1)), and the point of the next photometric result is P3 (t (m + 1), AE (m + 1)). Then, a straight line passing through two points of AE (m−1) and AE (m + 1) (P1 in the example of FIG. 5) and P2 is obtained as L1 = at + b, and AE (m−1) and A point having a larger AE (m + 1) (P3 in the example of FIG. 5) is passed through, and a straight line having the inclination −a is set to L2. When the intersection of L1 and L2 is obtained, the peak timing t_peak when the acquisition timing of AE (1) is t = 1,667 ms and the peak photometric value AE_peak corresponding to the light quantity at the peak can be calculated.

なお、図5では、フリッカーの特徴点のタイミングを算出する方法の一例としてフリッカーの光量変化の中で光量が最大(ピーク)となるタイミングを算出する方法を説明したが、光量が最小(ボトム)となるタイミングを算出しても構わない。   In FIG. 5, as an example of a method for calculating the timing of the flicker feature point, the method for calculating the timing at which the light amount becomes the maximum (peak) in the change in the amount of flicker light is described, but the light amount is the minimum (bottom). You may calculate the timing which becomes.

さらにステップS105でICPU112は、フリッカーの光量のピークのタイミングに合わせて露光を行う場合の測光補正値を算出する。この測光補正値はシャッタースピードに応じて算出される。以下では、測光補正値の算出方法を説明する。   Further, in step S105, the ICPU 112 calculates a photometric correction value when performing exposure in accordance with the peak timing of the flicker light amount. This photometric correction value is calculated according to the shutter speed. Hereinafter, a method for calculating the photometric correction value will be described.

まず、シャッタースピードに応じた測光補正値を算出するために、本実施形態では、フリッカーの影響を低減させた撮影を行う際に設定されるシャッタースピード(TV)の範囲を、例えば5つの区間に分割する。それぞれの区間は、1/8000≦TV≦1/500、1/500<TV≦1/250、1/250<TV≦1/200、1/200<TV≦1/160、1/160<TV≦1/125である。   First, in order to calculate a photometric correction value according to the shutter speed, in this embodiment, the range of the shutter speed (TV) set when shooting with reduced flicker is set to, for example, five sections. To divide. Each section is 1/8000 ≦ TV ≦ 1/500, 1/500 <TV ≦ 1/250, 1/250 <TV ≦ 1/200, 1/200 <TV ≦ 1/160, 1/160 <TV. <1/125.

シャッタースピードが1/100秒より遅い場合は、フリッカー光源の光量変化周期の1周期分以上の期間で露光を行うため、フリッカーの影響が少なくなる。また、露光を行う期間がフリッカー光源の光量変化周期の1周期分に満たないシャッタースピードであっても、露光を行う期間がフリッカー光源の光量変化周期の1周期分に近ければ比較的フリッカーの影響が少ないと考えられる。そこで、シャッタースピードが8ms(1/125s)以下の場合にフリッカーの影響を低減させるシャッター制御を行うものとし、シャッタースピードが8msより長い場合はフリッカーの影響を低減させた撮影を行わないので、測光補正値を算出しない。   When the shutter speed is slower than 1/100 second, exposure is performed in a period of one cycle or more of the light amount change period of the flicker light source, so that the influence of flicker is reduced. Even if the exposure period is less than one period of the light quantity change period of the flicker light source, if the exposure period is close to one period of the light quantity change period of the flicker light source, the effect of flicker is relatively high. It is thought that there are few. Therefore, shutter control is performed to reduce the effect of flicker when the shutter speed is 8 ms (1/125 s) or less, and when the shutter speed is longer than 8 ms, shooting with reduced effect of flicker is not performed. The correction value is not calculated.

次に、図6に示すように、フリッカー光源の光量変化周期の1周期以上の期間で得られた複数の測光値を大きい順にAE(max1)、AE(max2)、AE(max3)、AE(max4)、AE(max5)、AE(max6)とする。図6は、シャッタースピードと測光補正値の関係を示す図である。そして、フリッカー光源の光量変化周期の1周期の平均測光値FLK_AE_averageを以下の式(3)または式(4)を用いて算出する。   Next, as shown in FIG. 6, a plurality of photometric values obtained in a period of one period or more of the light amount change period of the flicker light source are AE (max1), AE (max2), AE (max3), AE ( max4), AE (max5), and AE (max6). FIG. 6 is a diagram showing the relationship between the shutter speed and the photometric correction value. Then, an average photometric value FLK_AE_average of one period of the light amount change period of the flicker light source is calculated using the following formula (3) or formula (4).

光源が100Hzの場合 When the light source is 100 Hz

Figure 0006312524
Figure 0006312524

光源が120Hzの場合 When the light source is 120 Hz

Figure 0006312524
Figure 0006312524

次に、シャッタースピードに応じた測光補正値を以下の式(5)〜式(9)を用いて算出する。   Next, a photometric correction value corresponding to the shutter speed is calculated using the following equations (5) to (9).

1/8000≦TV≦1/500の場合に用いる測光補正値(BV_FLK_com_500)は式(5)により求められる。   The photometric correction value (BV_FLK_com_500) used in the case of 1/8000 ≦ TV ≦ 1/500 is obtained by Expression (5).

Figure 0006312524
Figure 0006312524

1/500<TV≦1/250の場合に用いる測光補正値(BV_FLK_com_250)は式(6)により求められる。   The photometric correction value (BV_FLK_com_250) used when 1/500 <TV ≦ 1/250 is obtained by Expression (6).

Figure 0006312524
Figure 0006312524

1/250<TV≦1/200の場合に用いる測光補正値(BV_FLK_com_200)は式(7)により求められる。   The photometric correction value (BV_FLK_com_200) used in the case of 1/250 <TV ≦ 1/200 is obtained by Expression (7).

Figure 0006312524
Figure 0006312524

1/200≦TV≦1/160の場合に用いる測光補正値(BV_FLK_com_1600)は式(8)により求められる。   The photometric correction value (BV_FLK_com_1600) used in the case of 1/200 ≦ TV ≦ 1/160 is obtained by the equation (8).

Figure 0006312524
Figure 0006312524

1/160≦TV≦1/125の場合に用いる測光補正値(BV_FLK_com_125)は式(9)により求められる。   The photometric correction value (BV_FLK_com_125) used in the case of 1/160 ≦ TV ≦ 1/125 is obtained by Expression (9).

Figure 0006312524
Figure 0006312524

以上のように、フリッカーの光量のピークのタイミングに合わせて露光を行う場合、露光時間が短くなるほど(シャッタースピードが高速になるほど)光量変化の極大値に近い部分の平均値となるため、測光補正値を大きくする。なお、本実施形態では、フリッカーの影響を低減させた撮影を行う際に設定されるシャッタースピードの範囲を5つの区間に分割する例を説明したが、分割する区間は5つよりも多くても少なくてもよい。その場合、利用する測光値の数を変更するだけではなく、各測光値に対する重み付け係数を変えて各区間の測光補正値を算出するようにすればよい。   As described above, when exposure is performed according to the peak timing of flicker light intensity, the shorter the exposure time (the higher the shutter speed), the closer to the maximum value of the light intensity change, the photometric correction Increase the value. In this embodiment, the example in which the range of the shutter speed set when shooting with reduced flicker is divided into five sections has been described. However, the number of sections to be divided may be larger than five. It may be less. In that case, it is only necessary to change the weighting coefficient for each photometric value and calculate the photometric correction value for each section in addition to changing the number of photometric values to be used.

ステップS105でフリッカー検出演算及び測光補正値の算出処理を終えたら、S106でICPU112は、ユーザによって選択された撮影モードを確認する。本実施形態では、カメラマイコン101が、操作部114のモードダイヤルがユーザに操作されることに応じて、TV優先モード、AV優先モード、マニュアル露出モード、全自動露出モードのいずれかを設定する。TV優先モードは、ユーザによって選択されたシャッタースピードとICPU112から出力される測光値とに基づいて、カメラマイコン101が露出制御値である絞り値AV、ISO感度(撮影感度)SVの少なくとも一方を決定するモードである。AV優先モードは、ユーザによって選択された絞り値とICPU112から出力される測光値とに基づいて、カメラマイコン101がシャッタースピード、ISO感度の少なくとも一方を決定するモードである。マニュアル露出モードは、少なくともユーザによってシャッタースピードと絞り値が選択されるモードである。全自動露出モードは、ICPU112から出力される測光値に基づいて、カメラマイコン101が絞り値、シャッタースピード、ISO感度のすべてを決定するモードである。絞り値、シャッタースピード、ISO感度の決定に際しては、カメラマイコン101は、メモリ102に予め記憶されたプログラム線図を利用して決定する。   When the flicker detection calculation and the photometric correction value calculation process are finished in step S105, the ICPU 112 checks the shooting mode selected by the user in step S106. In the present embodiment, the camera microcomputer 101 sets one of the TV priority mode, the AV priority mode, the manual exposure mode, and the fully automatic exposure mode in response to the user operating the mode dial of the operation unit 114. In the TV priority mode, the camera microcomputer 101 determines at least one of the aperture value AV, which is an exposure control value, and ISO sensitivity (photographing sensitivity) SV, based on the shutter speed selected by the user and the photometric value output from the ICPU 112. It is a mode to do. The AV priority mode is a mode in which the camera microcomputer 101 determines at least one of shutter speed and ISO sensitivity based on the aperture value selected by the user and the photometric value output from the ICPU 112. The manual exposure mode is a mode in which at least the shutter speed and the aperture value are selected by the user. The fully automatic exposure mode is a mode in which the camera microcomputer 101 determines all of the aperture value, shutter speed, and ISO sensitivity based on the photometric value output from the ICPU 112. When determining the aperture value, shutter speed, and ISO sensitivity, the camera microcomputer 101 uses a program diagram stored in the memory 102 in advance.

TV優先モードかマニュアル露出モードが設定されていて、ユーザの選択によってシャッタースピードが予め決定している(ユーザの操作部114への操作に基づいてカメラマイコン101が露光時間を設定している)場合はステップS107へ進む。ステップS107でICPU112は、予め決定しているシャッタースピードに応じて使用する測光補正値を選択する。   When the TV priority mode or the manual exposure mode is set and the shutter speed is determined in advance by the user's selection (the camera microcomputer 101 sets the exposure time based on the user's operation on the operation unit 114) Advances to step S107. In step S107, the ICPU 112 selects a photometric correction value to be used in accordance with a predetermined shutter speed.

一方、AV優先モードか全自動露出モードが設定されていてシャッタースピードが予め決定していない場合はステップS108へ進む。ステップS108では、ステップS103で取得された通常測光値BVに基づいて、カメラマイコン101が絞り値、シャッタースピード、ISO感度を仮決定する。そして、ICPU112は、カメラマイコン101によって仮決定されたシャッタースピードに応じて(測光を行い得られた測光値に基づいてカメラマイコン101が設定した露光時間に基づいて)使用する測光補正値を選択する。   On the other hand, if the AV priority mode or the fully automatic exposure mode is set and the shutter speed is not determined in advance, the process proceeds to step S108. In step S108, the camera microcomputer 101 provisionally determines the aperture value, shutter speed, and ISO sensitivity based on the normal photometric value BV acquired in step S103. Then, the ICPU 112 selects a photometric correction value to be used according to the shutter speed provisionally determined by the camera microcomputer 101 (based on the exposure time set by the camera microcomputer 101 based on the photometric value obtained by performing photometry). .

そしてステップS109でICPU112は、ステップS103で取得された通常測光値BVを以下の式(10)を用いて補正する。補正後の測光値をBV_FLK、ステップS107またはS108で選択した測光補正値をBV_FLK_com_***とすると、   In step S109, the ICPU 112 corrects the normal photometric value BV acquired in step S103 using the following equation (10). If the corrected photometric value is BV_FLK and the photometric correction value selected in step S107 or S108 is BV_FLK_com _ ***,

Figure 0006312524
Figure 0006312524

以上でフリッカーの影響を低減させた撮影を行う際の測光値決定処理を終了する。   This completes the photometric value determination process when shooting with reduced flicker effects.

カメラマイコン101は、このようにして補正された測光値に基づいて撮影時に用いる露出制御値を決定する。   The camera microcomputer 101 determines an exposure control value used at the time of photographing based on the photometric value corrected in this way.

以上のように、シャッタースピードに応じて測光値を補正することで、フリッカーの影響による測光の誤差を軽減でき、フリッカーの影響を抑えた良好な画像を取得することができるようにすることができる。   As described above, by correcting the photometric value according to the shutter speed, it is possible to reduce the photometric error due to the effect of flicker, and to obtain a good image with the effect of flicker suppressed. .

なお、本実施形態では、ユーザによって選択される撮影モードの一部を例示して説明を行ったが、その他のモードであっても、ユーザの選択によってシャッタースピードが予め決定可能なモードか否かという条件によって場合分けすればよい。   In the present embodiment, a part of the shooting mode selected by the user has been described as an example, but it is determined whether the shutter speed can be determined in advance by the user's selection even in other modes. What is necessary is just to classify according to the condition.

(第2の実施形態)
次に、本発明の第2の実施形態について説明する。本実施形態は、フリッカー検出用の測光値に基づいて近似を行うことによりフリッカー光源の波形を予測して測光補正値を算出する点で、第1の実施形態と異なる。以下、本実施形態に係る撮像装置について、第1の実施形態と共通する点については詳細な説明を省略し、異なる点である測光補正値の算出方法について主に説明する。
(Second Embodiment)
Next, a second embodiment of the present invention will be described. This embodiment is different from the first embodiment in that a photometric correction value is calculated by predicting the waveform of a flicker light source by performing approximation based on a photometric value for flicker detection. Hereinafter, with respect to the imaging apparatus according to the present embodiment, detailed description of points that are common to the first embodiment will be omitted, and a method for calculating a photometric correction value that is a different point will be mainly described.

図7は、本実施形態の測光補正値の算出方法のフローチャートを示す図である。図8は近似によるフリッカー光源の波形予測を用いた測光補正値の算出方法の一例を示す模式図である。この2つの図を用いて本実施形態の測光補正値の算出方法を説明する。なお、図7に示したフローチャートは、図2のステップS105のフリッカー検出演算に続いて実行される。   FIG. 7 is a diagram illustrating a flowchart of a photometric correction value calculation method according to the present embodiment. FIG. 8 is a schematic diagram showing an example of a method for calculating a photometric correction value using approximate flicker light source waveform prediction. A method for calculating a photometric correction value according to this embodiment will be described with reference to these two drawings. The flowchart shown in FIG. 7 is executed following the flicker detection calculation in step S105 of FIG.

ステップS201でICPU112は、前述のステップS104、S105と同様の方法で得られた複数の測光値に基づいて、以下のようにフリッカー光源の波形の予測を行う。   In step S201, the ICPU 112 predicts the flicker light source waveform as follows based on a plurality of photometric values obtained by the same method as in steps S104 and S105 described above.

まず、図8(a)に示すようにフリッカー光源の光量変化周期の1周期以上の期間で得られた複数の測光値を大きい順にAE(max1)、AE(max2)、AE(max3)、AE(max4)、AE(max5)、AE(max6)とする。   First, as shown in FIG. 8A, AE (max 1), AE (max 2), AE (max 3), AE are calculated in descending order of a plurality of photometric values obtained in a period of one or more light quantity change periods of the flicker light source. (Max4), AE (max5), and AE (max6).

次に、図8(b)に示すようにAE(max6)´をt=0となるタイミングに補間し、AE(max6)´からAE(max6)で1周期となるようする。以上の7点を用いた近似によりフリッカー光源の波形予測を行う。   Next, as shown in FIG. 8B, AE (max6) ′ is interpolated at the timing when t = 0, and one cycle is made from AE (max6) ′ to AE (max6). The flicker light source waveform is predicted by approximation using the above seven points.

ここで、図12を用いて蛍光灯と一部のLEDの光量の波形を説明する。図12の横軸は時間、縦軸は発光強度である。図12に示すように、蛍光灯は光量変化の1周期において光量が0(最小)になる期間が瞬間的に存在するのみであるのに対し、LEDは光量が0(最小)になる期間が継続的に存在する。LEDの様な光量が一定となる期間がして存在するフリッカー光源に対して得られた複数の測光値に基づいてフリッカー検出用の近似関数を算出すると、実際のフリッカー光源の波形とは大きく違う波形になる可能性が高い。そこで本実施形態では、光量が一定となる期間が存在するフリッカー光源に対しても対応するために、光量変化の1周期を複数の区間に分割し、分割されたそれぞれの区間で近似することによりフリッカー光源の波形予測を行う。   Here, the light quantity waveforms of the fluorescent lamp and some LEDs will be described with reference to FIG. In FIG. 12, the horizontal axis represents time, and the vertical axis represents emission intensity. As shown in FIG. 12, in the fluorescent lamp, there is only a period in which the light amount is 0 (minimum) in one cycle of the light amount change, whereas in the LED, the period in which the light amount is 0 (minimum) is present. It exists continuously. If an approximate function for flicker detection is calculated based on a plurality of photometric values obtained for a flicker light source that exists for a certain period of time such as an LED, the waveform of the actual flicker light source is significantly different. There is a high possibility of becoming a waveform. Therefore, in the present embodiment, in order to cope with a flicker light source having a period in which the light amount is constant, one cycle of the light amount change is divided into a plurality of sections and approximated by each divided section. Predict the flicker light source waveform.

例えば、図8(c)に示すように、上位3点を用いて二次関数近似を行い、そのほかの範囲では隣り合う2点で一次近似を行うことによりフリッカー光源の波形の予測を行う。ここで、AE(max1)、AE(max2)、AE(max3)により求めた二次近似式をf1(t)、そのほかの一次近似式を上位の測光値を用いる順にf2(t)、f3(t)、f4(t)、f5(t)とする。それにより、フリッカー光源の波形は
0ms≦t<1,66msの区間は、f5(t)
1,66ms≦t<3,33msの区間は、f3(t)
3,33ms≦t<6,66msの区間は、f1(t)
6,66ms≦t<8,33msの区間は、f2(t)
8,33ms≦t≦10msの区間は、f4(t)
で近似される。
For example, as shown in FIG. 8C, quadratic function approximation is performed using the top three points, and in the other ranges, the linear approximation is performed at two adjacent points to predict the flicker light source waveform. Here, the second order approximate expression obtained by AE (max1), AE (max2), AE (max3) is f1 (t), and the other first order approximate expression is f2 (t), f3 ( t), f4 (t), and f5 (t). As a result, the flicker light source waveform is 0 ms ≦ t <1, 66 ms.
The interval of 1,66 ms ≦ t <3,33 ms is f3 (t)
The interval of 3,33 ms ≦ t <6,66 ms is f1 (t)
The interval of 6,66 ms ≦ t <8,33 ms is f2 (t)
The interval of 8,33 ms ≦ t ≦ 10 ms is f4 (t)
Is approximated by

次に、S202でICPU112は、測光補正値の算出に用いる測光値を求める。図8(d)に示すように前述の近似式に基づいて測光補正値の算出に用いる測光値を求める。近似式により求める算出用測光値を、AE(max1)_calc、AE(max2)_calc、AE(max3)_calc、AE(max4)_calc、AE(max5)_calc、AE(max6)_calcとする。これらの算出用測光値は、前述の近似式と、前述のステップS105と同様の方法で得られたt_peakを用いて以下の式(11)〜(21)で求められる。
t_peak≧5,0msの場合
AE(max1)_calc=f1(t_peak) ・・・(11)
AE(max2)_calc=f2(t_peak−1,66) ・・・(12)
AE(max3)_calc=f3(t_peak+1,66) ・・・(13)
AE(max4)_calc=f4(t_peak−3,33) ・・・(14)
AE(max5)_calc=f5(t_peak+3,33) ・・・(15)
AE(max6)_calc=f6(t_peak−5,00) ・・・(16)
t_peak<5,0msの場合
AE(max1)_calc=f1(t_peak) ・・・(11)
AE(max2)_calc=f2(t_peak+1,66) ・・・(17)
AE(max3)_calc=f3(t_peak−1,66) ・・・(18)
AE(max4)_calc=f4(t_peak+3,33) ・・・(19)
AE(max5)_calc=f5(t_peak−3,33) ・・・(20)
AE(max6)_calc=f6(t_peak+5,00) ・・・(21)
Next, in S202, the ICPU 112 obtains a photometric value used for calculating the photometric correction value. As shown in FIG. 8D, the photometric value used for calculating the photometric correction value is obtained based on the above approximate expression. The photometric values for calculation obtained by the approximate expression are AE (max1) _calc, AE (max2) _calc, AE (max3) _calc, AE (max4) _calc, AE (max5) _calc, and AE (max6) _calc. These photometric values for calculation are obtained by the following equations (11) to (21) using the above approximate equation and t_peak obtained by the same method as in step S105 described above.
When t_peak ≧ 5, 0 ms AE (max1) _calc = f1 (t_peak) (11)
AE (max2) _calc = f2 (t_peak-1,66) (12)
AE (max3) _calc = f3 (t_peak + 1, 66) (13)
AE (max4) _calc = f4 (t_peak-3, 33) (14)
AE (max5) _calc = f5 (t_peak + 3, 33) (15)
AE (max6) _calc = f6 (t_peak−5,000) (16)
When t_peak <5, 0 ms AE (max1) _calc = f1 (t_peak) (11)
AE (max2) _calc = f2 (t_peak + 1, 66) (17)
AE (max3) _calc = f3 (t_peak-1,66) (18)
AE (max4) _calc = f4 (t_peak + 3, 33) (19)
AE (max5) _calc = f5 (t_peak-3, 33) (20)
AE (max6) _calc = f6 (t_peak + 5,000) (21)

これにより、図8(e)に示すようにフリッカーの光量のピークのタイミングを基準として1,66ms間隔の測光値が求められる。このとき、算出用測光値を算出する間隔を1,66msよりも短くし、各区間の算出用測光値の数を増やしてもよい。   As a result, as shown in FIG. 8E, photometric values at intervals of 1,66 ms are obtained with reference to the peak timing of the flicker light amount. At this time, the interval for calculating the calculation photometric value may be shorter than 1,66 ms, and the number of calculation photometric values in each section may be increased.

その後、S203でICPU112は、測光補正値を算出する。まず、フリッカー光源の光量変化周期の1周期の平均測光値FLK_AE_averageを以下の式(22)または式(23)を用いて算出する。   Thereafter, in S203, the ICPU 112 calculates a photometric correction value. First, the average photometric value FLK_AE_average of one period of the light amount change period of the flicker light source is calculated using the following formula (22) or formula (23).

光源が100Hzの場合 When the light source is 100 Hz

Figure 0006312524
Figure 0006312524

光源が120Hzの場合 When the light source is 120 Hz

Figure 0006312524
Figure 0006312524

次に、シャッタースピードに応じた測光補正値を以下の式(24)〜式(28)を用いて算出する。   Next, a photometric correction value corresponding to the shutter speed is calculated using the following equations (24) to (28).

1/8000≦TV≦1/500の場合に用いる測光補正値(BV_FLK_com_500)は式(24)により求められる。   The photometric correction value (BV_FLK_com_500) used in the case of 1/8000 ≦ TV ≦ 1/500 is obtained by Expression (24).

Figure 0006312524
Figure 0006312524

1/500<TV≦1/250の場合に用いる測光補正値(BV_FLK_com_250)は式(25)により求められる。   The photometric correction value (BV_FLK_com_250) used when 1/500 <TV ≦ 1/250 is obtained by Expression (25).

Figure 0006312524
Figure 0006312524

1/250<TV≦1/200の場合に用いる測光補正値(BV_FLK_com_200)は式(26)により求められる。   The photometric correction value (BV_FLK_com_200) used when 1/250 <TV ≦ 1/200 is obtained by Expression (26).

Figure 0006312524
Figure 0006312524

1/200≦TV≦1/160の場合に用いる測光補正値(BV_FLK_com_1600)は式(27)により求められる。   The photometric correction value (BV_FLK_com_1600) used in the case of 1/200 ≦ TV ≦ 1/160 is obtained by the equation (27).

Figure 0006312524
Figure 0006312524

1/160≦TV≦1/125の場合に用いる測光補正値(BV_FLK_com_125)は式(28)により求められる。   The photometric correction value (BV_FLK_com_125) used in the case of 1/160 ≦ TV ≦ 1/125 is obtained by Expression (28).

Figure 0006312524
Figure 0006312524

以降の測光補正値の選択処理、測光値の補正処理、露出制御値の決定処理は第1の実施形態と同様であるため説明は省略する。   Subsequent photometric correction value selection processing, photometric value correction processing, and exposure control value determination processing are the same as those in the first embodiment, and a description thereof will be omitted.

図9は、各シャッタースピードと測光補正値により補正された測光値との関係を示す図である。本実施形態では、フリッカー光源の光量変化の1周期を複数の区間に分割して区間毎に近似式を算出し、フリッカー光源の波形を予測している。さらに、フリッカーの光量のピークのタイミングを基準として測光補正値を算出するための算出用測光値を予測した波形を用いて求めているので、図9に示すように、第1の実施形態よりも精度よくシャッタースピードに応じて測光値を補正することができる。   FIG. 9 is a diagram showing the relationship between each shutter speed and the photometric value corrected by the photometric correction value. In the present embodiment, one cycle of light quantity change of the flicker light source is divided into a plurality of sections, an approximate expression is calculated for each section, and the waveform of the flicker light source is predicted. Further, since the calculation photometric value for calculating the photometric correction value based on the timing of the flicker light intensity peak is obtained using a predicted waveform, as shown in FIG. 9, as compared with the first embodiment. The photometric value can be corrected accurately according to the shutter speed.

以上のように、本実施形態では、フリッカー光源の波形によらず、フリッカーの影響による測光の誤差を軽減でき、フリッカーの影響を抑えた良好な画像を取得することができるようにすることができる。   As described above, according to the present embodiment, it is possible to reduce a photometric error due to the effect of flicker regardless of the waveform of the flicker light source, and to obtain a good image with the effect of flicker suppressed. .

(第3の実施形態)
次に、本発明の第3の実施形態について説明する。本実施形態は、測光補正値算出の際に、フリッカー検出用の測光値に基づいて近似を行うことによりフリッカー光源の波形を予測し、その近似式をシャッタースピードに応じた時間で積分して測光補正値の演算を行う点で、第1、第2の実施形態と異なる。以下、本実施形態に係る撮像装置について、第1、第2の実施形態と共通する点については詳細な説明を省略し、異なる点である測光補正値の算出方法について主に説明する。
(Third embodiment)
Next, a third embodiment of the present invention will be described. This embodiment predicts the flicker light source waveform by approximating it based on the photometric value for flicker detection when calculating the photometric correction value, and integrates the approximate expression over time according to the shutter speed to perform photometry. It differs from the first and second embodiments in that a correction value is calculated. Hereinafter, with respect to the imaging apparatus according to the present embodiment, detailed description of points that are common to the first and second embodiments will be omitted, and a method of calculating a photometric correction value that is a different point will be mainly described.

図10は、本実施形態の測光補正値の算出方法のフローチャートを示す図である。図11は、近似によるフリッカー光源の波形予測を用いた測光補正値の算出方法の一例を示す模式図である。この2つの図を用いて本実施形態の測光補正値の算出方法を説明する。なお、図10に示したフローチャートは、図2のステップS105のフリッカー検出演算に続いて実行される。   FIG. 10 is a diagram illustrating a flowchart of a photometric correction value calculation method according to the present embodiment. FIG. 11 is a schematic diagram illustrating an example of a method of calculating a photometric correction value using approximate flicker light source waveform prediction. A method for calculating a photometric correction value according to this embodiment will be described with reference to these two drawings. The flowchart shown in FIG. 10 is executed following the flicker detection calculation in step S105 of FIG.

ステップS301でICPU112は、前述のステップS104、S105と同様の方法で得られた複数の測光値に基づいて、以下のようにフリッカー光源の波形の予測を行う。   In step S301, the ICPU 112 predicts the flicker light source waveform as follows based on a plurality of photometric values obtained by the same method as in steps S104 and S105 described above.

まず、図11(a)に示すようにフリッカー光源の光量変化周期の1周期以上の期間で得られた複数の測光値を大きい順にAE(max1)、AE(max2)、AE(max3)、AE(max4)、AE(max5)、AE(max6)とする。   First, as shown in FIG. 11 (a), a plurality of photometric values obtained in a period of one period or more of the light amount change period of the flicker light source are AE (max1), AE (max2), AE (max3), AE in descending order. (Max4), AE (max5), and AE (max6).

次に、図8(b)と同様の方法でAE(max6)´をt=0となるタイミングに補間し、AE(max6)´からAE(max6)で1周期となるようする。以上の7点を用いた近似によりフリッカー光源の波形予測を行う。   Next, AE (max6) ′ is interpolated at the timing when t = 0 by the same method as in FIG. 8B, so that one cycle is from AE (max6) ′ to AE (max6). The flicker light source waveform is predicted by approximation using the above seven points.

次に、第2の実施形態と同様に、上位3点を用いて二次関数近似を行い、そのほかの範囲では隣り合う2点で一次近似を行うことによりフリッカー光源の波形の予測を行う。ここで、AE(max1)、AE(max2)、AE(max3)により求めた二次近似式をf1(t)、そのほかの一次近似式を上位の測光値を用いる順にf2(t)、f3(t)、f4(t)、f5(t)とする。それにより、フリッカー光源の波形は、図11(c)に示すように、
0ms≦t<1,66msの区間は、f5(t)
1,66ms≦t<3,33msの区間は、f3(t)
3,33ms≦t<6,66msの区間は、f1(t)
6,66ms≦t<8,33msの区間は、f2(t)
8,33ms≦t≦10msの区間は、f4(t)
で近似される。
Next, as in the second embodiment, quadratic function approximation is performed using the top three points, and in the other ranges, the linear approximation is performed at two adjacent points to predict the flicker light source waveform. Here, the second order approximate expression obtained by AE (max1), AE (max2), AE (max3) is f1 (t), and the other first order approximate expression is f2 (t), f3 ( t), f4 (t), and f5 (t). Thereby, the waveform of the flicker light source is as shown in FIG.
The interval of 0 ms ≦ t <1, 66 ms is f5 (t)
The interval of 1,66 ms ≦ t <3,33 ms is f3 (t)
The interval of 3,33 ms ≦ t <6,66 ms is f1 (t)
The interval of 6,66 ms ≦ t <8,33 ms is f2 (t)
The interval of 8,33 ms ≦ t ≦ 10 ms is f4 (t)
Is approximated by

次に、ステップS302でICPU112は、フリッカー光源の光量変化周期の1周期の平均測光値FLK_AE_averageを以下の式(29)または式(30)を用いて算出する。   Next, in step S302, the ICPU 112 calculates an average photometric value FLK_AE_average of one period of the light amount change period of the flicker light source using the following formula (29) or formula (30).

光源が100Hzの場合 When the light source is 100 Hz

Figure 0006312524
Figure 0006312524

光源が120Hzの場合 When the light source is 120 Hz

Figure 0006312524
Figure 0006312524

次に、ステップS303でICPU112は、シャッタースピードに応じた露光期間の平均測光値を、近似式をシャッタースピードに応じた時間で積分することにより算出する。このとき、積分区間の中央を前述のステップS105と同様の方法で求めてt_peakとする。シャッタースピードに応じた平均測光値をFLK_AE_exとすると、以下の式(31)で求められる。   Next, in step S303, the ICPU 112 calculates the average photometric value of the exposure period corresponding to the shutter speed by integrating the approximate expression with the time corresponding to the shutter speed. At this time, the center of the integration interval is obtained by the same method as in step S105 described above and is set as t_peak. When the average photometric value corresponding to the shutter speed is FLK_AE_ex, the following formula (31) is obtained.

Figure 0006312524
Figure 0006312524

ここでf(t)はフリッカー光源の波形の近似式、t_exはシャッタースピードである。   Here, f (t) is an approximate expression of the flicker light source waveform, and t_ex is the shutter speed.

例としてシャッタースピードが1/200であるときの測光値の算出方法を説明する。図11(e)は、シャッタースピードが1/200のときの測光値を求める際の積分を示す図である。シャッタースピードが1/200のときの測光値をFLK_AE_200とすると、以下の式(32)で求められる。   As an example, a method for calculating a photometric value when the shutter speed is 1/200 will be described. FIG. 11 (e) is a diagram showing the integration when obtaining the photometric value when the shutter speed is 1/200. If the photometric value when the shutter speed is 1/200 is FLK_AE_200, it can be obtained by the following equation (32).

Figure 0006312524
Figure 0006312524

本実施形態では、フリッカー光源の波形を分割して近似しているため、積分も以下の式(33)のように分割して行う。   In the present embodiment, since the flicker light source waveform is divided and approximated, the integration is also divided as shown in the following equation (33).

Figure 0006312524
Figure 0006312524

このとき、各積分区間の積分値は、t_peakの値に応じて以下の式(34)〜(36)で求められる。   At this time, the integration value of each integration interval is obtained by the following equations (34) to (36) according to the value of t_peak.

Figure 0006312524
Figure 0006312524

Figure 0006312524
Figure 0006312524

Figure 0006312524
Figure 0006312524

次に、ステップS304でICPU112は、シャッタースピードに応じた測光補正値を以下の式(37)を用いて算出する。
BV_FLK_com_***=FLK_AE_ex−FLK_AE_average ・・・(37)
以降の測光補正値の選択処理、測光値の補正処理、露出制御値の決定処理は第1の実施形態と同様であるため説明は省略する。
Next, in step S304, the ICPU 112 calculates a photometric correction value corresponding to the shutter speed using the following equation (37).
BV_FLK_com _ *** = FLK_AE_ex−FLK_AE_average (37)
Subsequent photometric correction value selection processing, photometric value correction processing, and exposure control value determination processing are the same as those in the first embodiment, and a description thereof will be omitted.

以上のように、本実施形態では、フリッカー光源の光量変化の1周期を複数の区間に分割して区間毎に近似式を算出し、フリッカー光源の波形を予測している。さらに、その近似式をシャッタースピードに応じた時間で積分することにより測光補正値の演算を行っているため、第1、第2の実施形態よりも精度よくシャッタースピードに応じて測光値を補正することができる。   As described above, in this embodiment, one cycle of the light amount change of the flicker light source is divided into a plurality of sections, an approximate expression is calculated for each section, and the waveform of the flicker light source is predicted. Further, since the photometric correction value is calculated by integrating the approximate expression with the time corresponding to the shutter speed, the photometric value is corrected according to the shutter speed with higher accuracy than in the first and second embodiments. be able to.

なお、上記の実施形態では、フリッカー光源の光量変化の周波数が100Hzの場合を例に説明を行ったが、フリッカー光源の光量変化の周波数が120Hzの場合は、フリッカー検出用の測光値5点を用いて同様の演算を行えばよい。   In the above embodiment, the case where the frequency of light quantity change of the flicker light source is 100 Hz has been described as an example. However, when the frequency of light quantity change of the flicker light source is 120 Hz, five photometric values for flicker detection are obtained. And the same calculation may be performed.

また、上記の実施形態では、通常測光用の蓄積と読み出し動作の後にフリッカー検出用の蓄積と読み出し動作を行う例を説明したが、特に順序は限定されず、フリッカー検出用の蓄積と読み出し動作を先に行ってもよい。   In the above embodiment, the example in which the flicker detection accumulation and readout operations are performed after the normal photometry accumulation and readout operations has been described. However, the order is not particularly limited, and the flicker detection accumulation and readout operations are performed. You may go first.

また、上記の実施形態では、フリッカーの影響を低減させた撮影を行うために、被写体からの光の光量変化特性に基づいて設定されたタイミングで露光を行う例として、フリッカー光源の光量が最大となるタイミングに合わせて露光を行っている。しかしながら、フリッカーの影響を低減させた撮影を行うことができれば他のタイミングでもよい。例えば、図12に示すLEDのようにフリッカー光源の光量が最小となる期間が一定期間継続する光源の場合、フリッカー光源の光量が最小となるタイミングに合わせて露光を行ってもフリッカーの影響を低減させた撮影を行うことができる。あるいは、光量が一定となる期間がなくても、光量変化が減少から増加に緩やかに転じる光源の場合、光量が最大となるタイミングと同様に光量が最小となるタイミングとに合わせて露光を行ってもフリッカーの影響を低減させた撮影を行うことができる。   Further, in the above embodiment, as an example of performing exposure at a timing set based on the light amount change characteristic of light from the subject in order to perform shooting with reduced influence of flicker, the light amount of the flicker light source is the maximum. The exposure is performed in accordance with the timing. However, any other timing may be used as long as shooting with reduced flicker effects can be performed. For example, in the case of a light source such as an LED shown in FIG. 12 in which the period during which the light amount of the flicker light source is minimum continues for a certain period, the influence of flicker is reduced even if exposure is performed in accordance with the timing when the light amount of the flicker light source is minimum. Can be taken. Or, in the case of a light source where the change in the light quantity gradually changes from decrease to increase even if there is no period during which the light quantity is constant, exposure is performed in accordance with the timing at which the light quantity is minimized as well as the timing at which the light quantity is maximized. In addition, it is possible to perform shooting while reducing the influence of flicker.

また、上記の実施形態では、ICPU112が測光センサ108からの出力信号(画像信号)に基づいて測光や被写体からの光の光量変化特性算出を行っているが、測光用のセンサと光量変化特性算出用のセンサとを別々に備えていてもよい。   In the above embodiment, the ICPU 112 performs photometry and calculation of the light quantity change characteristic of light from the subject based on the output signal (image signal) from the photometry sensor 108, but the photometry sensor and the light quantity change characteristic calculation. May be provided separately.

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

以上、本発明の好ましい実施形態について説明したが、本発明はこれらの実施形態に限定されず、その要旨の範囲内で種々の変形及び変更が可能である。   As mentioned above, although preferable embodiment of this invention was described, this invention is not limited to these embodiment, A various deformation | transformation and change are possible within the range of the summary.

100 カメラ本体
101 カメラマイコン
103 撮像素子
104 シャッター
108 測光センサ
112 ICPU
DESCRIPTION OF SYMBOLS 100 Camera body 101 Camera microcomputer 103 Image pick-up element 104 Shutter 108 Photometric sensor 112 ICPU

Claims (11)

撮像手段と
第1の測光値を取得する測光手段と、
前記測光手段により取得された前記第1の測光値に基づいて、前記撮像手段の第1の露光時間を設定する設定手段と、
被写体からの光の光量変化特性を検出する検出手段と、
前記検出手段により検出された前記光量変化特性と前記設定手段により設定された前記第1の露光時間との関係に基づいて、露出条件の決定に用いる第2の測光値を設定するために、前記第1の測光値を補正する補正手段と、
前記補正手段により設定された前記第2の測光値に基づいて、前記検出手段により検出された前記光量変化特性に基づいて設定された所定のタイミングで前記撮像手段が露光を行う際の露出条件を決定する決定手段と、を有することを特徴とする撮像装置。
Imaging means ;
Photometric means for obtaining a first photometric value ;
Setting means for setting a first exposure time of the imaging means based on the first photometric value acquired by the photometry means;
Detecting means for detecting a light quantity change characteristic of light from the subject;
In order to set a second photometric value used for determining an exposure condition based on the relationship between the light quantity change characteristic detected by the detection unit and the first exposure time set by the setting unit , Correction means for correcting the first photometric value;
Wherein based on the second photometric value set by the correction means, the imaging means at a predetermined timing set based on the light amount change characteristic detected by said detecting means the exposure conditions for performing exposure An imaging device comprising: a determining unit that determines.
前記検出手段は、異なる2つのフリッカに関する光量変化特性を検出可能な露光時間および露光回数で複数回の露光の結果に基づいて前記光量変化特性を算出ることを特徴とする請求項1に記載の撮像装置。 The detecting device, according to claim 1, characterized that you calculate the light amount change characteristic on the basis of the results of a plurality of exposures in two different detectable exposure time and exposure times the quantity change characteristic concerning flicker Imaging device. 前記所定のタイミングは、前記補正手段により設定された前記第2の測光値に基づいて、前記検出手段により検出された前記光量変化特性が示すピークタイミングまたはボトムタイミングを含むタイミングであることを特徴とする請求項1ないし2のいずれか1項に記載の撮像装置。 The predetermined timing is a timing including a peak timing or a bottom timing indicated by the light quantity change characteristic detected by the detection means based on the second photometric value set by the correction means. The imaging device according to any one of claims 1 to 2. 前記検出手段は、商用の電源周波数の2倍の逆数の整数倍に略等しい期間で行う複数回の露光の結果に基づいて前記光量変化特性を検出することを特徴とする請求項に記載の撮像装置。 The detection means of claim 3, wherein the detecting a light amount change characteristic on the basis of a result of the multiple exposure performed in substantially the same period to an integer multiple of 2 times the reciprocal of the commercial power source frequency Imaging device. 前記補正手段は、前記設定手段により設定された前記第1の露光時間が短いほど前記第2の測光値が大きくなるように前記第1の測光値を補正することを特徴とする請求項1ないしのいずれか1項に記載の撮像装置。 The correction means corrects the first photometric value so that the second photometric value becomes larger as the first exposure time set by the setting means is shorter. 5. The imaging device according to any one of 4 . 前記撮像手段の露光時間を設定するための操作を受け付ける操作手段を更に有し、
前記設定手段は、前記操作手段への操作を受け付けた場合は、当該操作に基づいて前記第1の露光時間を設定することを特徴とする請求項1ないしのいずれか1項に記載の撮像装置。
An operation unit that receives an operation for setting an exposure time of the imaging unit;
The setting means, when receiving an operation to the operating means, the image pickup according to any one of claims 1 to 5, characterized in that setting the first exposure time based on the operation apparatus.
前記測光手段は、前記撮像手段を、被写体からの光の周期的な光量変化の略1周期に対応する蓄積時間で駆動した際に取得される信号に基づいて前記第1の測光値を取得することを特徴とする請求項1ないし6のいずれか1項に記載の撮像装置。The photometric means acquires the first photometric value based on a signal acquired when the imaging means is driven with an accumulation time corresponding to approximately one cycle of a periodic light quantity change of light from the subject. The image pickup apparatus according to claim 1, wherein the image pickup apparatus is an image pickup apparatus. 前記補正手段は、前記第1の露光時間が所定値以上の長さとなる場合に、前記第1の測光値を補正しないことを特徴とする請求項1ないし7のいずれか1項に記載の撮像装置。8. The imaging according to claim 1, wherein the correction unit does not correct the first photometric value when the first exposure time is longer than a predetermined value. 9. apparatus. 撮像手段を備えた撮像装置の制御方法であって、
第1の測光値を取得する測光ステップと、
前記測光ステップで取得された前記第1の測光値に基づいて、前記撮像手段の第1の露光時間を設定する設定ステップと、
被写体からの光の光量変化特性を検出する検出ステップと、
前記検出ステップで検出された前記光量変化特性と前記設定ステップで設定された前記第1の露光時間との関係に基づいて、露出条件の決定に用いる第2の測光値を設定するために、前記第1の測光値を補正する補正ステップと、
前記補正ステップで設定された前記第2の測光値に基づいて、前記検出ステップで検出された前記光量変化特性に基づいて設定された所定のタイミングで前記撮像手段が露光を行う際の露出条件を決定する決定ステップと、を有することを特徴とする撮像装置の制御方法。
A method for controlling an imaging apparatus including an imaging means,
A photometric step of obtaining a first photometric value;
A setting step for setting a first exposure time of the imaging means based on the first photometric value acquired in the photometric step;
A detection step for detecting a light quantity change characteristic of light from the subject;
In order to set a second photometric value used for determining an exposure condition based on the relationship between the light amount change characteristic detected in the detection step and the first exposure time set in the setting step, A correction step for correcting the first photometric value;
The correction based on the second photometric value set in step, said image pickup means at a predetermined timing set based on the light amount change characteristic detected by the detecting step the exposure conditions for performing exposure And a determination step for determining the image pickup apparatus.
請求項9に記載の制御方法をコンピュータに実行させるためのプログラム。   A program for causing a computer to execute the control method according to claim 9. コンピュータに、請求項9に記載された制御方法を実行させるためのプログラムを記憶したコンピュータにより読み取り可能な記憶媒体。   A computer-readable storage medium storing a program for causing a computer to execute the control method according to claim 9.
JP2014104495A 2013-11-20 2014-05-20 Imaging apparatus, control method, program, and storage medium Active JP6312524B2 (en)

Priority Applications (4)

Application Number Priority Date Filing Date Title
JP2014104495A JP6312524B2 (en) 2014-05-20 2014-05-20 Imaging apparatus, control method, program, and storage medium
US14/540,821 US9648249B2 (en) 2013-11-20 2014-11-13 Image capturing apparatus, method of controlling the same, and storage medium
KR1020140162265A KR101757654B1 (en) 2013-11-20 2014-11-20 Image capturing apparatus, method of controlling the same, and storage medium
CN201410670626.3A CN104660893B (en) 2013-11-20 2014-11-20 The method of picture pick-up device and control picture pick-up device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2014104495A JP6312524B2 (en) 2014-05-20 2014-05-20 Imaging apparatus, control method, program, and storage medium

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP2018053077A Division JP6494829B2 (en) 2018-03-20 2018-03-20 Imaging apparatus, control method, program, and storage medium

Publications (3)

Publication Number Publication Date
JP2015220673A JP2015220673A (en) 2015-12-07
JP2015220673A5 JP2015220673A5 (en) 2017-06-29
JP6312524B2 true JP6312524B2 (en) 2018-04-18

Family

ID=54779716

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2014104495A Active JP6312524B2 (en) 2013-11-20 2014-05-20 Imaging apparatus, control method, program, and storage medium

Country Status (1)

Country Link
JP (1) JP6312524B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6700763B2 (en) * 2015-12-11 2020-05-27 キヤノン株式会社 Imaging device, control method thereof, and control program
US10602051B2 (en) 2017-03-28 2020-03-24 Canon Kabushiki Kaisha Imaging apparatus, control method, and non-transitory storage medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006222935A (en) * 2005-01-13 2006-08-24 Canon Inc Electronic still camera, image capturing method, program and storage medium
JP4626434B2 (en) * 2005-07-27 2011-02-09 株式会社ニコン camera
JP2008058704A (en) * 2006-08-31 2008-03-13 Canon Inc Imaging apparatus and exposure control method
JP2009100275A (en) * 2007-10-17 2009-05-07 Olympus Corp Camera
JP2010103746A (en) * 2008-10-23 2010-05-06 Hoya Corp Imaging apparatus
US8390701B2 (en) * 2010-04-29 2013-03-05 Robert Bosch Gmbh Method for processing an image signal for double or multiple exposure cameras

Also Published As

Publication number Publication date
JP2015220673A (en) 2015-12-07

Similar Documents

Publication Publication Date Title
JP6108946B2 (en) Imaging apparatus, control method, program, and storage medium
KR101757654B1 (en) Image capturing apparatus, method of controlling the same, and storage medium
JP6296697B2 (en) Imaging apparatus, control method, program, and storage medium
CN110661947B (en) Image pickup apparatus, control method thereof, and storage medium
JP6391352B2 (en) Imaging apparatus, control method, program, and storage medium
US9871975B2 (en) Imaging apparatus and control method
CN105915807B (en) Method for calculating light quantity change characteristic and electronic device
JP6381380B2 (en) Imaging apparatus, control method and program thereof
JP6816210B2 (en) Imaging device and its control method, program
JP6312524B2 (en) Imaging apparatus, control method, program, and storage medium
JP6456038B2 (en) Electronic device, light amount change characteristic calculation method, program, and storage medium
JP6494829B2 (en) Imaging apparatus, control method, program, and storage medium
JP6704946B2 (en) Imaging device, control method, program, and storage medium
US9578254B2 (en) Image pickup apparatus capable of reducing effect of flicker, control method therefor, and storage medium storing control program therefor
JP2016014762A (en) Imaging device and control method of the same
JP6351778B2 (en) Imaging apparatus, control method, program, and storage medium
JP6598927B2 (en) Imaging apparatus, control method, program, and storage medium
US8630535B2 (en) Light emission control device and light emission control method
JP2016039579A (en) Imaging device, control method, program and storage medium
JP2017126918A (en) Imaging device, control method, program and storage medium
JP6478493B2 (en) Imaging apparatus, control method, program, and storage medium
JP2021087124A (en) Imaging apparatus, control method thereof, and program

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20170515

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20170515

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20180209

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20180320

R151 Written notification of patent or utility model registration

Ref document number: 6312524

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151