JP2012119885A - Light source determination device and light source determination method - Google Patents

Light source determination device and light source determination method Download PDF

Info

Publication number
JP2012119885A
JP2012119885A JP2010267052A JP2010267052A JP2012119885A JP 2012119885 A JP2012119885 A JP 2012119885A JP 2010267052 A JP2010267052 A JP 2010267052A JP 2010267052 A JP2010267052 A JP 2010267052A JP 2012119885 A JP2012119885 A JP 2012119885A
Authority
JP
Japan
Prior art keywords
light source
signal
unit
source determination
white led
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.)
Abandoned
Application number
JP2010267052A
Other languages
Japanese (ja)
Other versions
JP2012119885A5 (en
Inventor
Shinya Fujiwara
慎也 藤原
Tetsuo Ashida
哲郎 芦田
Kimihiro Irie
公祐 入江
Satoru Ohinata
悟 大日方
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.)
Fujifilm Corp
Original Assignee
Fujifilm Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujifilm Corp filed Critical Fujifilm Corp
Priority to JP2010267052A priority Critical patent/JP2012119885A/en
Publication of JP2012119885A publication Critical patent/JP2012119885A/en
Publication of JP2012119885A5 publication Critical patent/JP2012119885A5/ja
Abandoned legal-status Critical Current

Links

Images

Abstract

PROBLEM TO BE SOLVED: To simply and accurately determine an LED light source without using a stochastic method.SOLUTION: It is possible to simply and accurately determine whether a light source is a white LED, on the basis of a signal amount of the imaging signal corresponding to the light of a wave length near 80 nm and a signal amount of the imaging signal corresponding to the light of a wave length near 450 nm which are obtained from a solid state imaging device.

Description

本発明は撮像シーンの光源判定に関し、特に、白色LED光源の判定に関する。   The present invention relates to light source determination of an imaging scene, and more particularly to determination of a white LED light source.

特許文献1では、黒体軌跡と蛍光灯軌跡を用いてホワイトバランスゲインを算出する技術が開示されている。   Patent Document 1 discloses a technique for calculating a white balance gain using a black body locus and a fluorescent lamp locus.

特許文献2では、波長ごとの分光特性を測定し、分光エネルギー分布から色温度を算出し、色温度に応じてホワイトバランスゲインを算出する技術が開示されている。   Patent Document 2 discloses a technique for measuring spectral characteristics for each wavelength, calculating a color temperature from a spectral energy distribution, and calculating a white balance gain according to the color temperature.

特許文献3によると、評価空間内の写像された位置によって光源を推定する方式では、発光ダイオード(LED)のYAG(イットリウム・アルミニウム・ガーネット)タイプのものと昼光の観測値の多くが重複してしまい、これら2つの光源を判別することが非常に難しく、自然な色を再現することが困難であった。このため、特許文献3の発明では、光源推定回路は、RGBにエメラルドを追加した4種類のカラーフィルタを有する撮像素子によって撮像された入力画像をA/D変換回路を介してRGBE信号として出力し、RGBE信号を線形判別法の一次元の軸に射影することによってLEDを含む光源を推定する。   According to Patent Document 3, in the method of estimating the light source based on the mapped position in the evaluation space, many of daylight observation values overlap with those of the YAG (yttrium, aluminum, garnet) type of light emitting diode (LED). Therefore, it is very difficult to distinguish between these two light sources, and it is difficult to reproduce natural colors. For this reason, in the invention of Patent Document 3, the light source estimation circuit outputs an input image captured by an image sensor having four types of color filters in which emeralds are added to RGB as an RGBE signal via the A / D conversion circuit. The light source including the LED is estimated by projecting the RGBE signal onto the one-dimensional axis of the linear discrimination method.

特許文献4および5はメンバシップ関数の一例を示す。メンバシップ関数は、輝度レベルを変数として日陰やデーライトなど各種光源の確からしさを表す評価値を出力する関数である。   Patent Documents 4 and 5 show examples of membership functions. The membership function is a function that outputs an evaluation value representing the certainty of various light sources such as shade and daylight using the luminance level as a variable.

特許文献4では、日陰やデーライトに対して良好なホワイトバランスを行うためのホワイトバランスゲイン値Rg、Gg、Bgが予め準備されており、これらのゲイン値Rg、Gg、Bgがホワイトバランス調整回路に加えられることによって、評価値から判定された光源に適したホワイトバランス制御が行われる。   In Patent Document 4, white balance gain values Rg, Gg, and Bg for performing good white balance against shade and daylight are prepared in advance, and these gain values Rg, Gg, and Bg are prepared as a white balance adjustment circuit. Thus, white balance control suitable for the light source determined from the evaluation value is performed.

特許文献5では、各々の光源下での撮影においてホワイトバランスが適正となるよう、ホワイトバランス補正値Rg、Gg、Bgは、基準WBゲイン値から環境光源の色を所定色にするための制御値GR、GB、GGとの間の値で、かつ評価値Hmaxで特定された環境光源に適したホワイトバランス制御を行うことができる値となるため、各々の環境光源に対して適正にホワイトバランス制御することができ、カラーフェリアの発生を抑えることができる。   In Patent Document 5, the white balance correction values Rg, Gg, and Bg are control values for changing the color of the environmental light source to a predetermined color from the reference WB gain value so that the white balance is appropriate in shooting under each light source. A value between GR, GB, and GG and a value capable of performing white balance control suitable for the environmental light source specified by the evaluation value Hmax. Therefore, white balance control is appropriately performed for each environmental light source. And the occurrence of color feria can be suppressed.

特許文献6は蛍光灯軌跡より下側に分布する色情報の補正方法を例示する。   Patent Document 6 exemplifies a method for correcting color information distributed below the fluorescent lamp locus.

特許文献7は相関色温度の算出式の一例である。   Patent Document 7 is an example of a calculation formula for correlated color temperature.

特開2003-259196号公報JP 2003-259196 A 特開2006-54678号公報JP 2006-54678 A 特開2007-300253号公報JP 2007-300253 JP 特開2000-224608号公報JP 2000-224608 A 特開2004-186876号公報(特に段落0115)JP 2004-186876 A (particularly paragraph 0115) 特開2006-222672号公報(特に段落0061)JP 2006-222672 A (particularly paragraph 0061) 特開2010-258703(特に段落0032)JP 2010-258703 (particularly paragraph 0032)

図10は、電球、電球色蛍光灯、白色蛍光灯、昼白色蛍光灯、昼光色蛍光灯、ナトリウムランプ、水銀灯、白色LEDといった人工光源に対応する相関色温度・被写体輝度の分布範囲を示している。また、図10は、朝焼け/夕景、デーライト光源、曇天・日陰といった自然光源に対応する相関色温度・被写体輝度の分布範囲を示している。   FIG. 10 shows a distribution range of correlated color temperature and subject luminance corresponding to artificial light sources such as a light bulb, a light bulb color fluorescent lamp, a white fluorescent lamp, a daylight white fluorescent lamp, a daylight color fluorescent lamp, a sodium lamp, a mercury lamp, and a white LED. . FIG. 10 shows the distribution range of correlated color temperature and subject luminance corresponding to natural light sources such as sunrise / sunset, daylight light source, cloudy sky and shade.

シーンの色温度(相関色温度)と明るさ(被写体輝度)が、図10のような分布範囲のいずれに属するかに応じて、屋外光源/屋内光源(蛍光灯、電球)を判別する手法が一般的に知られている。白色LEDは、従来光源よりも明るいため、その分布範囲は屋外光源の分布範囲と重複する。よって、相関色温度・被写体輝度の分布範囲に基づいてLED光源と屋外光源を判別するのは困難である。   There is a technique for discriminating outdoor light sources / indoor light sources (fluorescent lamps, light bulbs) depending on whether the color temperature (correlated color temperature) and brightness (subject luminance) of the scene belong to the distribution range as shown in FIG. Generally known. Since white LEDs are brighter than conventional light sources, the distribution range overlaps with the distribution range of outdoor light sources. Therefore, it is difficult to distinguish between the LED light source and the outdoor light source based on the distribution range of the correlated color temperature and the subject luminance.

LED光源は従来の人工光源よりも非常に明るく、むしろ屋外光源の明るさに近いため、特に屋外光源との判別が難しい。特許文献3では、線形判別法により確率的にLED光源と太陽光を判別するため、判別の正確性がサンプルに依存する。また、特許文献3では、1次元空間に情報を射影して光源判別しているので、判別精度が高くない。   An LED light source is much brighter than a conventional artificial light source, and rather close to the brightness of an outdoor light source, so that it is particularly difficult to distinguish it from an outdoor light source. In Patent Document 3, since the LED light source and sunlight are probabilistically discriminated by the linear discriminant method, the accuracy of discrimination depends on the sample. Further, in Patent Document 3, since information is projected onto a one-dimensional space and the light source is discriminated, the discrimination accuracy is not high.

本発明は、確率的な手法を用いず簡便かつ正確にLED光源判別を行う。また本発明は、LED光源と判定された場合に、適切なオートホワイトバランス補正を施す。   The present invention performs LED light source discrimination simply and accurately without using a probabilistic method. Further, according to the present invention, when the LED light source is determined, appropriate auto white balance correction is performed.

本発明は、固体撮像素子から出力される撮像信号に基づき、480nm付近の波長の光に対応する撮像信号の信号量と450nm付近の波長の光に対応する撮像信号の信号量とを取得する信号量取得部と、信号量取得部の取得した480nm付近の波長の光に対応する撮像信号の信号量と450nm付近の波長の光に対応する撮像信号の信号量の比を算出する信号比算出部と、信号比算出部の算出した比と所定の閾値との大小関係に応じて、光源が白色LEDであるか否かを判断する白色LED光源判断部と、を備える光源判定装置を提供する。   The present invention is based on an imaging signal output from a solid-state imaging device, and acquires a signal amount of an imaging signal corresponding to light having a wavelength near 480 nm and a signal amount of an imaging signal corresponding to light having a wavelength near 450 nm. And a signal ratio calculation unit that calculates a ratio of a signal amount of an imaging signal corresponding to light having a wavelength of about 480 nm acquired by the signal amount acquisition unit and a signal amount of imaging signal corresponding to light having a wavelength of about 450 nm. And a white LED light source determination unit that determines whether or not the light source is a white LED according to the magnitude relationship between the ratio calculated by the signal ratio calculation unit and a predetermined threshold.

好ましくは、上記光源判定装置は、白色LED光源判断部が、光源が白色LEDであると判断した場合、白色LEDに適したホワイトバランス補正量を設定し、設定されたホワイトバランス補正量に従って撮像信号のホワイトバランスを補正するAWB補正部をさらに備える。   Preferably, when the white LED light source determination unit determines that the light source is a white LED, the light source determination device sets a white balance correction amount suitable for the white LED, and the imaging signal according to the set white balance correction amount. An AWB correction unit for correcting the white balance of

好ましくは、AWB補正部は、白色LED光源判断部が、光源が白色LEDであると判断した場合、撮像信号から推定した代表色の赤(R)、緑(G)、青(B)の各色信号レベルが等しくなるような通常のホワイトバランス補正量を設定する。   Preferably, the AWB correction unit, when the white LED light source determination unit determines that the light source is a white LED, each of the representative colors red (R), green (G), and blue (B) estimated from the imaging signal A normal white balance correction amount is set so that the signal levels are equal.

好ましくは、上記光源判定装置は、固体撮像素子から出力される撮像信号に基づき、被写体輝度を算出する被写体輝度算出部と、被写体輝度算出部の算出した被写体輝度を変数とするメンバシップ関数に基づいて光源の確からしさを示す評価値を算出する評価値算出部と、を備える。   Preferably, the light source determination device is based on a subject luminance calculation unit that calculates subject luminance based on an imaging signal output from the solid-state imaging device, and a membership function that uses the subject luminance calculated by the subject luminance calculation unit as a variable. And an evaluation value calculation unit for calculating an evaluation value indicating the certainty of the light source.

好ましくは、上記光源判定装置は、白色LED光源判断部が、光源が白色LEDでないと判断した場合、光源が白色LED以外の人工光源であるか否かを判断する従来人工光源判断部を備え、AWB補正部は、従来人工光源判断部が、光源が白色LED以外の人工光源であると判断した場合、評価値算出部の算出した評価値に従い、ホワイトバランス補正量を通常のホワイトバランス補正量よりも小さいかもしくはそれと同程度に設定する。   Preferably, the light source determination device includes a conventional artificial light source determination unit that determines whether the light source is an artificial light source other than the white LED when the white LED light source determination unit determines that the light source is not a white LED, When the conventional artificial light source determination unit determines that the light source is an artificial light source other than the white LED, the AWB correction unit determines the white balance correction amount from the normal white balance correction amount according to the evaluation value calculated by the evaluation value calculation unit. Is also set to be small or comparable.

好ましくは、上記光源判定装置は、白色LED光源判断部が、光源が白色LEDでないと判断した場合、光源が自然光源であるか否かを判断する自然光源判断部を備え、AWB補正部は、自然光源判断部が、光源が自然光源であると判断した場合、評価値算出部の算出した評価値に従い、ホワイトバランス補正量を通常のホワイトバランス補正量よりも小さく設定する。   Preferably, the light source determination device includes a natural light source determination unit that determines whether the light source is a natural light source when the white LED light source determination unit determines that the light source is not a white LED, and the AWB correction unit includes: When the natural light source determination unit determines that the light source is a natural light source, the white balance correction amount is set to be smaller than the normal white balance correction amount according to the evaluation value calculated by the evaluation value calculation unit.

好ましくは、上記光源判定装置は、所定の色空間における白色LED光源の色温度の分布を示した軌跡を記憶する軌跡記憶部と、撮像信号からなる画像を複数のエリアに分割する信号分割部と、信号分割部の分割した各々のエリアの色情報を取得する分割エリア色情報取得部と、分割エリア色情報取得部の取得した各々のエリアの色情報を、軌跡記憶部の記憶した軌跡に基づいて補正する色情報補正部と、を備え、AWB補正部は、白色LED光源判断部が、光源が白色LEDであると判断した場合、色情報補正部が色情報を補正した後の撮像信号に基づいて、白色LEDに適したホワイトバランスゲインを設定し、色情報補正部が色情報の補正した後の撮像信号のホワイトバランスを補正する。   Preferably, the light source determination device includes a trajectory storage unit that stores a trajectory indicating the distribution of the color temperature of the white LED light source in a predetermined color space, and a signal division unit that divides an image made up of imaging signals into a plurality of areas. Based on the trajectory stored in the trajectory storage unit, the divided area color information acquisition unit that acquires color information of each area divided by the signal division unit and the color information of each area acquired by the divided area color information acquisition unit A color information correction unit that corrects the color information, and when the white LED light source determination unit determines that the light source is a white LED, the AWB correction unit generates an image signal after the color information correction unit corrects the color information. Based on this, a white balance gain suitable for the white LED is set, and the color information correction unit corrects the white balance of the imaging signal after the color information is corrected.

好ましくは、色情報補正部は、各々のエリアの色情報を、軌跡記憶部の記憶した軌跡に近づけるよう補正する。   Preferably, the color information correction unit corrects the color information of each area so as to approach the locus stored in the locus storage unit.

信号量取得部は、所定の色フィルタに対応する固体撮像素子の画素群の内、シアン色フィルタに対応する特定の画素から得られた撮像信号から480nm付近の波長の光に対応する撮像信号の信号量を取得するとともに、青色フィルタに対応する特定の画素から得られた撮像信号から450nm付近の波長の光に対応する撮像信号の信号量を取得する。   The signal amount acquisition unit is configured to output an imaging signal corresponding to light having a wavelength near 480 nm from an imaging signal obtained from a specific pixel corresponding to a cyan filter in a pixel group of a solid-state imaging element corresponding to a predetermined color filter. In addition to acquiring the signal amount, the signal amount of the imaging signal corresponding to light having a wavelength near 450 nm is acquired from the imaging signal obtained from the specific pixel corresponding to the blue filter.

本発明は、光源判定装置が、固体撮像素子から出力される撮像信号に基づき、480nm付近の波長の光に対応する撮像信号の信号量と450nm付近の波長の光に対応する撮像信号の信号量とを取得するステップと、取得した480nm付近の波長の光に対応する撮像信号の信号量と450nm付近の波長の光に対応する撮像信号の信号量の比を算出するステップと、算出した比と所定の閾値との大小関係に応じて、光源が白色LEDであるか否かを判断するステップと、を実行する。   According to the present invention, the light source determination device is based on the imaging signal output from the solid-state imaging device, and the signal amount of the imaging signal corresponding to light having a wavelength near 480 nm and the signal amount of imaging signal corresponding to light having a wavelength near 450 nm. A step of calculating the ratio of the signal amount of the imaging signal corresponding to the acquired light having a wavelength near 480 nm and the signal amount of the imaging signal corresponding to the light having a wavelength near 450 nm; Determining whether or not the light source is a white LED according to a magnitude relationship with a predetermined threshold value.

本発明によると、固体撮像素子から得られた80nm付近の波長の光に対応する撮像信号の信号量と450nm付近の波長の光に対応する撮像信号の信号量とに基づき、簡便かつ正確に光源が白色LEDであるか否かを判断することができる。また本発明は、2次元の情報で光源判別するので、光源判別の情報量が従来技術よりも多く正確である。   According to the present invention, a light source can be simply and accurately based on a signal amount of an imaging signal corresponding to light having a wavelength near 80 nm obtained from a solid-state imaging device and a signal amount of imaging signal corresponding to light having a wavelength near 450 nm. It can be determined whether or not is a white LED. In addition, since the light source is discriminated from the two-dimensional information according to the present invention, the information amount of the light source discrimination is more accurate than the prior art.

第1実施形態の撮像装置のブロック図Block diagram of the imaging apparatus of the first embodiment C/B画素群Xの配列を例示した図The figure which illustrated the arrangement of C / B pixel group X 第1実施形態の光源判別・AWB補正処理のフローチャートFlowchart of light source discrimination / AWB correction processing of the first embodiment 白色LEDの分光特性を例示した図The figure which illustrated the spectral characteristic of white LED 第2実施形態の撮像装置のブロック図The block diagram of the imaging device of 2nd Embodiment 第2実施形態の光源判別・AWB補正処理のフローチャートFlowchart of light source discrimination / AWB correction processing of the second embodiment 第3実施形態の撮像装置のブロック図The block diagram of the imaging device of 3rd Embodiment 第3実施形態の光源判別・AWB補正処理のフローチャートFlowchart of light source discrimination / AWB correction processing of the third embodiment 軌跡L1〜L3を例示した図The figure which illustrated locus L1-L3 各種光源に対応する相関色温度・被写体輝度の分布範囲を例示した図Diagram illustrating the distribution range of correlated color temperature and subject brightness corresponding to various light sources 被写体輝度値を変数とするAWB補正量のメンバシップ関数を例示した図The figure which illustrated the membership function of the AWB correction amount which makes a subject luminance value a variable

<第1実施形態>
図1は、本発明の一実施形態に係る光源判定装置が適用された撮像装置100を示すブロック図である。同図に示す撮像装置100は、静止画や動画の記録及び再生機能を備えたデジタルカメラであり、撮像装置100全体の動作は中央処理装置(CPU)13によって統括制御される。CPU13は、所定のプログラムに従って本カメラシステムを制御する制御手段として機能するとともに、自動露出(AE)演算、自動焦点調節(AF)演算、ホワイトバランス(WB)調整演算など、各種演算を実施する演算手段として機能する。
<First Embodiment>
FIG. 1 is a block diagram illustrating an imaging apparatus 100 to which a light source determination device according to an embodiment of the present invention is applied. An image pickup apparatus 100 shown in the figure is a digital camera having a recording and playback function for still images and moving images, and the overall operation of the image pickup apparatus 100 is centrally controlled by a central processing unit (CPU) 13. The CPU 13 functions as control means for controlling the camera system according to a predetermined program, and performs various calculations such as automatic exposure (AE) calculation, automatic focus adjustment (AF) calculation, and white balance (WB) adjustment calculation. Functions as a means.

バス1を介してCPU13と接続されたROM18には、CPU13が実行するプログラム及び制御に必要な各種データ、CCD画素欠陥情報、カメラ動作に関する各種定数/情報等が格納されている。   A ROM 18 connected to the CPU 13 via the bus 1 stores programs executed by the CPU 13, various data necessary for control, CCD pixel defect information, various constants / information relating to camera operation, and the like.

また、RAM11は、プログラムの展開領域及びCPU13の演算作業用領域として利用されるとともに、画像データや音声データの一時記憶領域として利用される。   The RAM 11 is used as a program development area and a calculation work area for the CPU 13 and as a temporary storage area for image data and audio data.

撮像装置100には、モード選択スイッチ、撮影ボタン、メニュー/OKキー、十字キー、キャンセルキーなどを含む操作部19が設けられている。操作部19からの信号はCPU13に入力され、CPU13はこの入力信号に基づいて撮像装置100の各回路を制御し、例えば、レンズ駆動制御、撮影動作制御、画像処理制御、画像データの記録/再生制御、表示装置30の表示制御などを行う。   The imaging apparatus 100 is provided with an operation unit 19 including a mode selection switch, a shooting button, a menu / OK key, a cross key, a cancel key, and the like. A signal from the operation unit 19 is input to the CPU 13, and the CPU 13 controls each circuit of the imaging apparatus 100 based on the input signal. For example, lens drive control, shooting operation control, image processing control, and image data recording / reproduction are performed. Control and display control of the display device 30 are performed.

モード選択スイッチは、撮像装置100の動作モードを撮影モードまたは再生モードに切り換えるための操作手段である。   The mode selection switch is an operation means for switching the operation mode of the imaging apparatus 100 to the shooting mode or the playback mode.

撮影ボタンは、撮影開始の指示を入力する操作ボタンであり、半押し時にONするS1スイッチと、全押し時にONするS2スイッチとを有する二段ストローク式のスイッチで構成されている。   The shooting button is an operation button for inputting an instruction to start shooting, and includes a two-stroke switch having an S1 switch that is turned on when half-pressed and an S2 switch that is turned on when fully pressed.

メニュー/OKキーは、表示装置30の画面上にメニューを表示させる指令を行うためのメニューボタンとしての機能と、選択内容の確定及び実行などを指令するOKボタンとしての機能とを兼備した操作キーである。十字キーは、上下左右の4方向の指示を入力する操作部であり、メニュー画面から項目を選択したり、各メニューから各種設定項目の選択を指示したりするボタン(カーソル移動操作手段)として機能する。また、十字キーの上/下キーは撮影時のズームスイッチあるいは再生時の再生ズームスイッチとして機能し、左/右キーは再生モード時のコマ送り(順方向/逆方向送り)ボタンとして機能する。キャンセルキーは、選択項目など所望の対象の消去や指示内容の取消し、あるいは1つ前の操作状態に戻らせる時などに使用される。   The menu / OK key is an operation key having both a function as a menu button for instructing to display a menu on the screen of the display device 30 and a function as an OK button for instructing confirmation and execution of selection contents. It is. The cross key is an operation unit for inputting instructions in four directions, up, down, left, and right, and functions as a button (cursor moving operation means) for selecting an item from the menu screen or instructing selection of various setting items from each menu. To do. The up / down key of the cross key functions as a zoom switch at the time of shooting or a playback zoom switch at the time of playback, and the left / right key functions as a frame advance (forward / reverse feed) button in the playback mode. The cancel key is used when deleting a desired item such as a selection item, canceling an instruction content, or returning to the previous operation state.

表示装置30は、カラー表示可能な液晶ディスプレイで構成されている。表示装置30は、撮影時に画角確認用の電子ファインダとして使用できるとともに、記録済み画像を再生表示する手段として利用される。また、表示装置30は、ユーザインターフェース用表示画面としても利用され、必要に応じてメニュー情報や選択項目、設定内容などの情報が表示される。液晶ディスプレイに代えて、有機ELなど他の方式の表示装置(表示手段)を用いることも可能である。   The display device 30 is configured by a liquid crystal display capable of color display. The display device 30 can be used as an electronic viewfinder for checking the angle of view at the time of shooting, and is used as a means for reproducing and displaying a recorded image. The display device 30 is also used as a user interface display screen, and displays information such as menu information, selection items, and setting contents as necessary. Instead of the liquid crystal display, other types of display devices (display means) such as an organic EL can be used.

撮像装置100は、外部メモリI/F16を有し、外部メモリI/F16にはメモリカード17を装着することができる。外部メモリI/F16に装着される記録メディアの形態はメモリカード17に限定されず、xD-PictureCard(商標)、スマートメディア(商標)に代表される半導体メモリカード、可搬型小型ハードディスク、磁気ディスク、光ディスク、光磁気ディスクなど、種々の媒体を用いることができる。   The imaging apparatus 100 has an external memory I / F 16, and a memory card 17 can be attached to the external memory I / F 16. The form of the recording medium mounted on the external memory I / F 16 is not limited to the memory card 17, but a semiconductor memory card represented by xD-PictureCard (trademark) and smart media (trademark), a portable small hard disk, a magnetic disk, Various media such as an optical disk and a magneto-optical disk can be used.

圧縮伸張処理回路12は、外部メモリI/F16に装着されるメモリカード17に適した入出力信号の受渡しを行うために所要の信号変換を行う。   The compression / decompression processing circuit 12 performs necessary signal conversion in order to deliver an input / output signal suitable for the memory card 17 mounted in the external memory I / F 16.

次に、撮像装置100の撮影機能について説明する。モード選択スイッチによって撮像装置100の動作モードが撮影モードに設定されると、カラーCCD固体撮像素子(以下CCDと記載)21を含む撮像部2に電源が供給され、撮影可能な状態になる。   Next, the shooting function of the imaging apparatus 100 will be described. When the operation mode of the image pickup apparatus 100 is set to the shooting mode by the mode selection switch, power is supplied to the image pickup unit 2 including the color CCD solid-state image pickup element (hereinafter referred to as CCD) 21 and the camera is ready for shooting.

光学ユニット20は、フォーカスレンズを含む撮影レンズと絞り兼用メカシャッターとを含む。光学ユニット20は、CPU13によって制御されるモータ駆動部24によって電動駆動され、ズーム制御、フォーカス制御及びアイリス制御が行われる。   The optical unit 20 includes a photographing lens including a focus lens, and a mechanical shutter combined with an aperture. The optical unit 20 is electrically driven by a motor drive unit 24 controlled by the CPU 13 to perform zoom control, focus control, and iris control.

光学ユニット20を通過した光は、CCD21の受光面に結像される。CCD21の受光面には多数のフォトダイオード(受光素子)が二次元的に配置されており、各フォトダイオードに対応して赤(R)、緑(G)、青(B)の原色カラーフィルタが所定の配列構造(ベイヤー、Gストライプなど)で配置されている。これにより各色に対応する画素がCCD21の受光面に形成される。   The light that has passed through the optical unit 20 is imaged on the light receiving surface of the CCD 21. A large number of photodiodes (light receiving elements) are two-dimensionally arranged on the light receiving surface of the CCD 21, and red (R), green (G), and blue (B) primary color filters corresponding to the respective photodiodes. They are arranged in a predetermined arrangement structure (Bayer, G stripe, etc.). Thereby, pixels corresponding to the respective colors are formed on the light receiving surface of the CCD 21.

また、CCD21の受光面は、Bフィルタに対応する画素とシアン(C)の原色カラーフィルタに対応する画素とが所定サイズ(2画素以上)の近傍領域内で隣接した、C/B画素群を含んでいる。CCD21の受光面のどこにC/B画素群を設けるかは任意である。好ましくは、2次元画像の形成に使用されないか、2次元画像の形成に支障のない領域内にC/B画素群を配置する。C/B画素群の最小単位は1つのC画素と1つのB画素である。ただし、白色LED光源とは関係なく偶然にCの光とBの光が入射する場合もあるから、C/B画素群の単位は2画素を超え、広い範囲の画素群でC・B信号量を平均化することが好ましい。   The light-receiving surface of the CCD 21 is a C / B pixel group in which pixels corresponding to the B filter and pixels corresponding to the primary color filter of cyan (C) are adjacent within a predetermined size (two or more pixels) adjacent region. Contains. Where the C / B pixel group is provided on the light receiving surface of the CCD 21 is arbitrary. Preferably, the C / B pixel group is arranged in a region that is not used for forming a two-dimensional image or does not interfere with the formation of a two-dimensional image. The minimum unit of the C / B pixel group is one C pixel and one B pixel. However, since C light and B light may accidentally enter regardless of the white LED light source, the unit of the C / B pixel group exceeds 2 pixels, and the C / B signal amount in a wide range of pixel groups. Are preferably averaged.

例えば、図2(a)に示すように、RGBフィルタがベイヤ型に配列された受光面の有効画素領域の周縁部において、GBのラインのGフィルタの代わりに、Cを配置することで、C/B画素群Xを形成することができる。   For example, as shown in FIG. 2A, by arranging C instead of the G filter in the GB line at the periphery of the effective pixel region of the light receiving surface where the RGB filters are arranged in a Bayer shape, / B pixel group X can be formed.

あるいは、撮像装置100が位相差のある画像を取得可能な光学系を採用している場合は、受光面の有効画素領域のうち、位相差を取得する領域内(例えば位相差AF領域や視差画像取得領域)で、GとBの代わりに、CとBを交互に配置することで、C/B画素群を形成することができる。図2(b)では、位相差を取得する領域R内で、左の視点画像の画素群(主画素)と右の視点画像の画素群(副画素)のいずれか一方または双方のGBのラインのGフィルタの代わりにCを配置することで、C/B画素群Xを形成している。なお、図示は省略するが、領域Rの外側には、2次元画像を形成する画素群が配置されていてもよく、位相差を取得する領域内でのC画素の色情報は、周辺のG画素で補完することもできる。シアン(C)フィルタの代わりにエメラルド(E)フィルタを用いることもできる。CフィルタまたはEフィルタに対応する画素の画像信号は、画像の形成に使用されてもよいし、されなくてもよい。   Alternatively, when the imaging apparatus 100 employs an optical system that can acquire an image having a phase difference, within the effective pixel area of the light receiving surface, the area within which the phase difference is acquired (for example, a phase difference AF area or a parallax image). In the acquisition area), C / B pixel groups can be formed by alternately arranging C and B instead of G and B. In FIG. 2B, in the region R for acquiring the phase difference, the GB line of either or both of the pixel group (main pixel) of the left viewpoint image and the pixel group (subpixel) of the right viewpoint image. The C / B pixel group X is formed by arranging C instead of the G filter. Although illustration is omitted, a pixel group that forms a two-dimensional image may be arranged outside the region R, and the color information of the C pixel in the region where the phase difference is acquired is the surrounding G It can also be complemented with pixels. An emerald (E) filter may be used instead of the cyan (C) filter. The image signal of the pixel corresponding to the C filter or E filter may or may not be used for image formation.

また、CCD21は、各フォトダイオードの電荷蓄積時間(シャッタースピード)を制御する電子シャッター機能を有している。CPU13は、タイミングジェネレータ(TG)31を介してCCD21での電荷蓄積時間を制御する。尚、CCD21に代えてMOS型など他の方式の撮像素子を用いてもよい。   The CCD 21 has an electronic shutter function for controlling the charge accumulation time (shutter speed) of each photodiode. The CPU 13 controls the charge accumulation time in the CCD 21 via the timing generator (TG) 31. Instead of the CCD 21, another type of image sensor such as a MOS type may be used.

CCD21の受光面に結像された被写体像は、各フォトダイオードによって入射光量に応じた量の信号電荷に変換される。各フォトダイオードに蓄積された信号電荷は、CPU13の指令に従いTG31から与えられる駆動パルスに基づいて信号電荷に応じた電圧信号(画像信号)として順次読み出される。   The subject image formed on the light receiving surface of the CCD 21 is converted into a signal charge of an amount corresponding to the amount of incident light by each photodiode. The signal charge accumulated in each photodiode is sequentially read out as a voltage signal (image signal) corresponding to the signal charge based on a drive pulse given from the TG 31 according to a command from the CPU 13.

CCD21から出力された信号はアナログ信号処理部22に送られ、ここで画素ごとのR,G,B信号がサンプリングホールド(相関二重サンプリング処理)され、増幅された後、A/D変換器23に加えられる。A/D変換器23によってデジタル信号に変換された点順次のR,G,B,C信号は、メモリI/F10を介してRAM11に記憶される。   The signal output from the CCD 21 is sent to an analog signal processing unit 22 where the R, G, B signals for each pixel are sampled and held (correlated double sampling processing), amplified, and then A / D converter 23. Added to. The dot sequential R, G, B, and C signals converted into digital signals by the A / D converter 23 are stored in the RAM 11 via the memory I / F 10.

デジタル信号処理部3は、RAM11に記憶されたR,G,B信号をCPU13の指令に従って処理する。即ち、デジタル信号処理部3は、同時化回路(単板CCDのカラーフィルタ配列に伴う色信号の空間的なズレを補間して色信号を同時式に変換する処理回路)、ホワイトバランス補正回路、ガンマ補正回路、輪郭補正回路、輝度・色差信号生成回路等を含む画像処理手段として機能し、CPU13からのコマンドに従ってRAM11を活用しながら所定の信号処理を行う。   The digital signal processing unit 3 processes the R, G, and B signals stored in the RAM 11 according to instructions from the CPU 13. That is, the digital signal processing unit 3 includes a synchronization circuit (a processing circuit that interpolates a spatial shift of the color signal associated with the color filter array of the single CCD and converts the color signal into a simultaneous expression), a white balance correction circuit, It functions as image processing means including a gamma correction circuit, contour correction circuit, luminance / color difference signal generation circuit, etc., and performs predetermined signal processing using the RAM 11 in accordance with commands from the CPU 13.

デジタル信号処理部3は、入力されたRGBの画像データを、輝度信号(Y信号)及び色差信号(Cr,Cb信号)に変換するとともに、ガンマ補正等の所定の処理を施す。デジタル信号処理部3で処理された画像データはRAM11に格納される。   The digital signal processing unit 3 converts the input RGB image data into a luminance signal (Y signal) and a color difference signal (Cr, Cb signal) and performs predetermined processing such as gamma correction. The image data processed by the digital signal processing unit 3 is stored in the RAM 11.

撮影画像を表示装置30にモニタ出力する場合、RAM11から画像データが読み出され、バス1を介してビデオエンコーダ32に送られる。ビデオエンコーダ32は、入力された画像データを表示用の所定方式の信号(例えば、NTSC方式のカラー複合映像信号)に変換して表示装置30に出力する。   When the captured image is output to the display device 30 on the monitor, the image data is read from the RAM 11 and sent to the video encoder 32 via the bus 1. The video encoder 32 converts the input image data into a predetermined signal for display (for example, an NTSC color composite video signal) and outputs the converted signal to the display device 30.

CCD21から出力される画像信号によって、1コマ分の画像を表す画像データがRAM11のA領域とB領域とで交互に書き換えられる。RAM11のA領域及びB領域のうち、画像データが書き換えられている方の領域以外の領域から、書き込まれている画像データが読み出される。このようにしてRAM11内の画像データが定期的に書き換えられ、その画像データから生成される映像信号が表示装置30に供給されることにより、撮像中の映像がリアルタイムに表示装置30に表示される。撮影者は、表示装置30に表示される映像(スルームービー画)によって撮影画角を確認できる。   Image data representing an image for one frame is rewritten alternately in the A area and the B area of the RAM 11 by the image signal output from the CCD 21. The written image data is read from the area other than the area where the image data is rewritten, among the A area and B area of the RAM 11. In this way, the image data in the RAM 11 is periodically rewritten, and a video signal generated from the image data is supplied to the display device 30, whereby the image being captured is displayed on the display device 30 in real time. . The photographer can check the shooting angle of view from the video (through movie image) displayed on the display device 30.

撮影ボタンが半押し(S1=ON)されると、撮像装置100はAE及びAF処理を開始する。即ち、CCD21から出力された画像信号はA/D変換後に画像入力コントローラ56を介してAF検出回路5並びにAE/AWB検出回路4に入力される。   When the shooting button is pressed halfway (S1 = ON), the imaging apparatus 100 starts AE and AF processing. That is, the image signal output from the CCD 21 is input to the AF detection circuit 5 and the AE / AWB detection circuit 4 via the image input controller 56 after A / D conversion.

AE/AWB検出回路4は、1画面を複数のエリア(例えば、8×8乃至16×16)に分割し、分割エリアごとにRGB信号を積算する回路を含み、その積算値をCPU13に提供する。CPU13は、AE/AWB検出回路4から得た積算値に基づいて被写体の明るさ(被写体輝度)を検出し、撮影に適した露出値(撮影EV値)を算出する。求めた露出値と所定のプログラム線図に従い、絞り値とシャッタースピードが決定され、これに従いCPU13はCCD21の電子シャッター及びアイリスを制御して適正な露光量を得る。   The AE / AWB detection circuit 4 includes a circuit that divides one screen into a plurality of areas (for example, 8 × 8 to 16 × 16) and integrates RGB signals for each divided area, and provides the integrated value to the CPU 13. . The CPU 13 detects the brightness of the subject (subject brightness) based on the integrated value obtained from the AE / AWB detection circuit 4, and calculates an exposure value (shooting EV value) suitable for shooting. The aperture value and the shutter speed are determined according to the obtained exposure value and a predetermined program diagram, and the CPU 13 controls the electronic shutter and iris of the CCD 21 according to this to obtain an appropriate exposure amount.

また、AE/AWB検出回路4は、自動ホワイトバランス調整時には、分割エリアごとにRGB信号の色別の平均積算値を算出する。AE/AWB検出回路4は、Rの積算値、Bの積算値、Gの積算値を得て、分割エリアごとにR/G及びB/Gの比を求め、これらR/G、B/Gの値のR/G、B/G軸座標の色空間における分布等に基づいて光源種判別を行う。AE/AWB検出回路4は、判別された光源種に応じてR,G,B信号に対するAWB補正値(AWBゲイン値)を算出し、このAWB補正値で各色チャンネルの信号に補正をかけるようデジタル信号処理部3を制御する。尚、ホワイトバランス調整の詳細は後述する。   The AE / AWB detection circuit 4 calculates an average integrated value for each color of the RGB signals for each divided area during automatic white balance adjustment. The AE / AWB detection circuit 4 obtains an integrated value of R, an integrated value of B, and an integrated value of G, obtains a ratio of R / G and B / G for each divided area, and R / G, B / G The light source type is determined based on the distribution of the R / G and B / G axis coordinates in the color space. The AE / AWB detection circuit 4 calculates an AWB correction value (AWB gain value) for the R, G, and B signals according to the determined light source type, and digitally corrects the signal of each color channel with this AWB correction value. The signal processing unit 3 is controlled. Details of the white balance adjustment will be described later.

本撮像装置100におけるAF制御は、例えば映像信号のG信号の高周波成分が極大になるようにフォーカシングレンズ(撮影レンズ42を構成するレンズ光学系のうちフォーカス調整に寄与する移動レンズ)を移動させるコントラストAFが適用される。即ち、AF検出回路5は、G信号の高周波成分のみを通過させるハイパスフィルタ、絶対値化処理部、画面内(例えば、画面中央部)に予め設定されているAFエリア内の信号を切り出すAFエリア抽出部、及びAFエリア内の絶対値データを積算する積算部から構成される。   The AF control in the imaging apparatus 100 is, for example, a contrast that moves a focusing lens (a moving lens that contributes to focus adjustment among the lens optical systems constituting the photographing lens 42) so that the high-frequency component of the G signal of the video signal is maximized. AF is applied. That is, the AF detection circuit 5 is a high-pass filter that passes only a high-frequency component of the G signal, an absolute value processing unit, and an AF area that cuts out a signal in an AF area set in advance in the screen (for example, the center of the screen). An extraction unit and an integration unit that integrates absolute value data in the AF area are configured.

AF検出回路5で求めた積算値のデータはCPU13に通知される。CPU13は、モータ駆動部24を制御してフォーカシングレンズを移動させながら、複数のAF検出ポイントで焦点評価値(AF評価値)を演算し、評価値が極大となるレンズ位置を合焦位置として決定する。そして、求めた合焦位置にフォーカシングレンズを移動させるようにモータ駆動部24を制御する。尚、AF評価値の演算はG信号を利用する態様に限らず、輝度信号(Y信号)を利用してもよい。また、位相差AFその他のAF制御が行われてもよい。   The integrated value data obtained by the AF detection circuit 5 is notified to the CPU 13. The CPU 13 calculates a focus evaluation value (AF evaluation value) at a plurality of AF detection points while moving the focusing lens by controlling the motor driving unit 24, and determines a lens position where the evaluation value is a maximum as a focus position. To do. Then, the motor drive unit 24 is controlled so as to move the focusing lens to the obtained in-focus position. The calculation of the AF evaluation value is not limited to a mode using the G signal, and a luminance signal (Y signal) may be used. Further, phase difference AF or other AF control may be performed.

上記のように、撮影ボタンの半押し(S1=ON)によってAE/AF処理が行われると、撮影ボタンの全押し(S2=ON)によって記録用の撮影動作がスタートする。S2=ONに応動して取得された画像データはデジタル信号処理部3において輝度/色差信号(Y/C信号)に変換され、ガンマ補正等の所定の処理が施された後、RAM11に格納される。   As described above, when the AE / AF processing is performed by half-pressing the shooting button (S1 = ON), the shooting operation for recording is started by fully pressing the shooting button (S2 = ON). Image data acquired in response to S2 = ON is converted into a luminance / color difference signal (Y / C signal) in the digital signal processing unit 3, and subjected to predetermined processing such as gamma correction, and then stored in the RAM 11. The

RAM11に格納されたY/C信号は、圧縮伸張処理回路12によって所定のフォーマットに従って圧縮された後、外部メモリI/F16を介してメモリカード17に記録される。例えば、静止画についてはJPEG(Joint Photographic Experts Group)形式で記録される。   The Y / C signal stored in the RAM 11 is compressed according to a predetermined format by the compression / decompression processing circuit 12 and then recorded on the memory card 17 via the external memory I / F 16. For example, a still image is recorded in JPEG (Joint Photographic Experts Group) format.

モード選択スイッチにより再生モードが選択されると、メモリカード17に記録されている最終の画像ファイル(最後に記録されたファイル)の圧縮データが読み出される。最後に記録されたファイルが静止画ファイルの場合、この読み出された画像圧縮データは、圧縮伸張回路12を介して非圧縮のYC信号に伸張され、デジタル信号処理部3及びビデオエンコーダ32を介して表示用の信号に変換された後、表示装置30に出力される。これにより、当該ファイルの画像内容が表示装置30の画面上に表示される。   When the playback mode is selected by the mode selection switch, the compressed data of the last image file (last recorded file) recorded on the memory card 17 is read. When the last recorded file is a still image file, the read compressed image data is decompressed to an uncompressed YC signal via the compression / decompression circuit 12, and via the digital signal processing unit 3 and the video encoder 32. After being converted into a display signal, it is output to the display device 30. Thereby, the image content of the file is displayed on the screen of the display device 30.

静止画の一コマ再生中(動画の先頭フレーム再生中も含む)に、十字キーの右キー又は左キーを操作することによって、再生対象のファイルを切り換えること(順コマ送り/逆コマ送り)ができる。コマ送りされた位置の画像ファイルがメモリカード17から読み出され、上記と同様にして静止画像や動画が表示装置30に再生表示される。   During single-frame playback of still images (including playback of the first frame of a movie), the file to be played can be switched (forward / reverse frame advance) by operating the right or left key of the four-way controller. it can. The image file at the frame-advanced position is read from the memory card 17, and still images and moving images are reproduced and displayed on the display device 30 in the same manner as described above.

AE/AWB検出回路4は、信号比率算出部40、AWB補正ゲイン算出部41、LED光源判定部42、被写体輝度値算出部43、従来人工光源/屋外光源判定部44、相関色温度算出部45、従来光源判定閾値演算部46を含む。これらの機能は後述する。   The AE / AWB detection circuit 4 includes a signal ratio calculation unit 40, an AWB correction gain calculation unit 41, an LED light source determination unit 42, a subject luminance value calculation unit 43, a conventional artificial light source / outdoor light source determination unit 44, and a correlated color temperature calculation unit 45. The conventional light source determination threshold value calculation unit 46 is included. These functions will be described later.

図3は撮像装置100が実行する光源判別・AWB補正処理のフローチャートを示す。この処理はシャッターボタンの半押しに応じて開始する。   FIG. 3 is a flowchart of the light source determination / AWB correction process executed by the imaging apparatus 100. This process starts in response to a half-press of the shutter button.

S1では、相関色温度算出部45は、A/D変換器23から出力されたRGB信号に基づき、相関色温度K0を算出する。これは例えば特許文献7と同様にして行うことができる。   In S <b> 1, the correlated color temperature calculation unit 45 calculates the correlated color temperature K <b> 0 based on the RGB signal output from the A / D converter 23. This can be performed in the same manner as in Patent Document 7, for example.

S2では、LED光源判定部42は、A/D変換器23から出力された、C/B画素群に対応するC信号の信号電圧(画素信号)の積算値を取得する。   In S <b> 2, the LED light source determination unit 42 acquires the integrated value of the signal voltage (pixel signal) of the C signal output from the A / D converter 23 and corresponding to the C / B pixel group.

S3では、LED光源判定部42は、A/D変換器23から出力された、C/B画素群に対応するB信号の信号電圧(画素信号)の積算値を取得する。   In S <b> 3, the LED light source determination unit 42 acquires the integrated value of the signal voltage (pixel signal) of the B signal output from the A / D converter 23 and corresponding to the C / B pixel group.

S4では、信号比率算出部40は、C信号の積算値とB信号の積算値の比率rを算出する。すなわち、
r=C信号の積算値/B信号の積算値である。
In S4, the signal ratio calculation unit 40 calculates a ratio r between the integrated value of the C signal and the integrated value of the B signal. That is,
r = integrated value of C signal / integrated value of B signal.

なお、C信号・B信号の信号電圧の積算値の代わりに、C信号・B信号の信号電圧の平均値を算出し、C信号の信号電圧の平均値とB信号の信号電圧の平均値の比率rを算出してもよい。エメラルド(E)フィルタを用いる場合も同様に、積算値の比率、平均値の比率のいずれが算出されてもよい。   Instead of the integrated value of the signal voltage of the C signal / B signal, the average value of the signal voltage of the C signal / B signal is calculated, and the average value of the signal voltage of the C signal and the average value of the signal voltage of the B signal are calculated. The ratio r may be calculated. Similarly, when the emerald (E) filter is used, either the ratio of the integrated values or the ratio of the average values may be calculated.

S5では、LED光源判定部42は、比率r<所定の閾値Thresh_LEDであるか否かを判断する。Noの場合はS6、Yesの場合はS7に進む。Thresh_LEDはROM18に記憶されているものとする。   In S5, the LED light source determination unit 42 determines whether or not the ratio r <predetermined threshold value Thresh_LED. If No, the process proceeds to S6, and if Yes, the process proceeds to S7. It is assumed that Thresh_LED is stored in the ROM 18.

これは、図4のような白色LEDの分光特性に基づき、光源がLEDか否かを判断している。図4に例示するように、白色LEDの分光特性によると、C(480nm付近)が極端に低く、B(450nm付近)が極端に高い。よって、白色LED下のシーンでは、rが極端に低い値となり、ある閾値Thresh_LED未満となると考えられる。   This determines whether or not the light source is an LED based on the spectral characteristics of the white LED as shown in FIG. As illustrated in FIG. 4, according to the spectral characteristics of the white LED, C (near 480 nm) is extremely low and B (near 450 nm) is extremely high. Therefore, in a scene under a white LED, r is considered to be an extremely low value, which is less than a certain threshold value Thresh_LED.

S6では、LED光源判定部42は、光源が白色LEDでないと判定する。   In S6, the LED light source determination unit 42 determines that the light source is not a white LED.

S7では、LED光源判定部42は、光源が白色LEDであると判定する。   In S7, the LED light source determination unit 42 determines that the light source is a white LED.

S8では、AWB補正ゲイン算出部41は、光源が白色LEDであると判定された場合はS9〜S13の処理に分岐し、光源が白色LEDであると判定された場合はS14の処理に分岐する。   In S8, the AWB correction gain calculation unit 41 branches to the processing of S9 to S13 when it is determined that the light source is a white LED, and branches to the processing of S14 when it is determined that the light source is a white LED. .

S9では、従来光源判定閾値演算部46は、人工光源判定閾値Thresh_K0を算出する。具体的には、図10のような、電球や電球色蛍光灯といった白色LED以外の各人工光源に対応する分布範囲の被写体輝度の上限値がThresh_K0となる。   In S9, the conventional light source determination threshold value calculator 46 calculates the artificial light source determination threshold value Thresh_K0. Specifically, as shown in FIG. 10, the upper limit value of the subject luminance in the distribution range corresponding to each artificial light source other than the white LED such as a light bulb or a light bulb color fluorescent light is Thresh_K0.

S10では、被写体輝度値算出部43は、被写体輝度値Bv0を算出する。   In S10, the subject luminance value calculation unit 43 calculates the subject luminance value Bv0.

S11では、従来人工光源/屋外光源判定部44は、Bv0<Thresh_K0であるか否かを判断する。Noの場合はS12、Yesの場合はS13に進む。   In S11, the conventional artificial light source / outdoor light source determination unit 44 determines whether or not Bv0 <Thresh_K0. If No, the process proceeds to S12. If Yes, the process proceeds to S13.

S12では、AWB補正ゲイン算出部41は、屋外光源(太陽光)に最適なAWBゲインを算出する。   In S12, the AWB correction gain calculation unit 41 calculates an AWB gain optimum for the outdoor light source (sunlight).

S13では、AWB補正ゲイン算出部41は、人工光源に最適なAWBゲインを算出する。   In S13, the AWB correction gain calculation unit 41 calculates an AWB gain optimum for the artificial light source.

S14では、AWB補正ゲイン算出部41は、白色LEDに最適なAWBゲインを算出する。   In S14, the AWB correction gain calculation unit 41 calculates the optimum AWB gain for the white LED.

デジタル信号処理部3は、S12、S13またはS14で算出されたAWBゲインをRGB各色の信号に掛けることによって、画像のホワイトバランスを補正する。   The digital signal processing unit 3 corrects the white balance of the image by multiplying the RGB signals by the AWB gain calculated in S12, S13, or S14.

このように、480nm付近の波長の光に対応する撮像信号の信号量と450nm付近の波長の光に対応する撮像信号の信号量とに基づき、簡便かつ正確に光源が白色LEDであるか否かを判断することができる。   As described above, whether or not the light source is a white LED simply and accurately based on the signal amount of the imaging signal corresponding to light having a wavelength near 480 nm and the signal amount of the imaging signal corresponding to light having a wavelength near 450 nm. Can be judged.

<第2実施形態>
図5は第2実施形態に係る撮像装置200を示すブロック図である。図中第1実施形態と同じブロックには同じ符号を付している。撮像装置200は、AWB補正量算出部47をさらに備えている。
Second Embodiment
FIG. 5 is a block diagram illustrating an imaging apparatus 200 according to the second embodiment. In the figure, the same reference numerals are assigned to the same blocks as those in the first embodiment. The imaging apparatus 200 further includes an AWB correction amount calculation unit 47.

図6は撮像装置200が実行する光源判別・AWB補正処理のフローチャートを示す。   FIG. 6 shows a flowchart of the light source discrimination / AWB correction process executed by the imaging apparatus 200.

S1〜S11は第1実施形態と同様である。ただし、S11にてNoと判定された場合はS21に進み、Yesと判定された場合はS23に進む。   S1 to S11 are the same as in the first embodiment. However, when it determines with No in S11, it progresses to S21, and when it determines with Yes, it progresses to S23.

S21では、AWB補正量算出部47は、被写体輝度値Bv0を変数とするメンバシップ関数で得られた評価値に応じて、AWB補正量LW_AWBを、通常のAWB補正量よりも小さく設定する。通常のAWB補正量とは、入力された画像データの赤(R)、緑(G)、青(B)の各色信号レベルが等しくなる(R=G=B:グレイ)ようなAWB補正量をいう。   In S21, the AWB correction amount calculation unit 47 sets the AWB correction amount LW_AWB to be smaller than the normal AWB correction amount according to the evaluation value obtained by the membership function using the subject luminance value Bv0 as a variable. The normal AWB correction amount is an AWB correction amount in which the red (R), green (G), and blue (B) color signal levels of input image data are equal (R = G = B: gray). Say.

S22では、AWB補正ゲイン算出部41は、S21で設定されたAWB補正量LW_AWBに応じたAWBゲインを算出する。デジタル信号処理部3は、算出されたAWBゲインをRGB各色の信号に掛けることによって、画像のホワイトバランスを補正する。   In S22, the AWB correction gain calculation unit 41 calculates an AWB gain according to the AWB correction amount LW_AWB set in S21. The digital signal processing unit 3 corrects the white balance of the image by applying the calculated AWB gain to the RGB signals.

S23では、AWB補正量算出部47は、被写体輝度値Bv0を変数とするメンバシップ関数で得られた評価値に応じて、AWB補正量LW_AWBを、通常のAWB補正量よりも小さいか、あるいは通常のAWB補正量と同程度に設定する。   In S23, the AWB correction amount calculation unit 47 sets the AWB correction amount LW_AWB to be smaller than the normal AWB correction amount or the normal value according to the evaluation value obtained by the membership function using the subject luminance value Bv0 as a variable. Is set to the same level as the AWB correction amount.

S24では、AWB補正ゲイン算出部41は、S23で設定されたAWB補正量LW_AWBに応じて、AWBゲインを算出する。デジタル信号処理部3は、算出されたAWBゲインをRGB各色の信号に掛けることによって、画像のホワイトバランスを補正する。   In S24, the AWB correction gain calculation unit 41 calculates an AWB gain according to the AWB correction amount LW_AWB set in S23. The digital signal processing unit 3 corrects the white balance of the image by applying the calculated AWB gain to the RGB signals.

S25では、AWB補正量算出部47は、AWB補正量LW_AWBを通常のAWB補正量と同程度に設定する。例えば、画像データを所定の単位で分割したエリアごとに、R,G,B信号の平均値、Ri,Gi,Biを求め、分割エリアXiごとに、R/G−B/G平面の座標Ci=(Ri/Gi,Bi/Gi)を算出する。AWB補正量算出部47は、この各分割エリアのCiの分布から画像の代表色C(光源座標)を推定する。代表色はCiの分布の平均や重心などから推定される。そして、AWB補正量算出部47は、画像の代表色Cの赤(R)、緑(G)、青(B)の各色信号レベルが等しくなるようなAWB補正量(通常のAWB補正量)を画像のLW_AWBとする。   In S25, the AWB correction amount calculation unit 47 sets the AWB correction amount LW_AWB to the same level as the normal AWB correction amount. For example, the average value of R, G, B signals, Ri, Gi, Bi is obtained for each area obtained by dividing the image data by a predetermined unit, and the coordinates Ci of the R / GB-G plane are obtained for each divided area Xi. = (Ri / Gi, Bi / Gi) is calculated. The AWB correction amount calculation unit 47 estimates the representative color C (light source coordinates) of the image from the distribution of Ci in each divided area. The representative color is estimated from the average of the distribution of Ci and the center of gravity. Then, the AWB correction amount calculation unit 47 calculates an AWB correction amount (normal AWB correction amount) such that the color signal levels of red (R), green (G), and blue (B) of the representative color C of the image are equal. Let LW_AWB of the image.

S26では、AWB補正ゲイン算出部41は、S25で設定されたAWB補正量LW_AWBに応じて、AWBゲインを算出する。   In S26, the AWB correction gain calculation unit 41 calculates an AWB gain according to the AWB correction amount LW_AWB set in S25.

デジタル信号処理部3は、S22、S24またはS26で算出されたAWBゲインをRGB各色の信号に掛けることによって、画像のホワイトバランスを補正する。   The digital signal processing unit 3 corrects the white balance of the image by multiplying the RGB signal by the AWB gain calculated in S22, S24, or S26.

相関色温度−被写体輝度値空間(図10参照)において、従来人工光源あるいは屋外光源の分布範囲はで若干重複する部分がある。そのため、被写体輝度値を変数とするAWB補正量のメンバシップ関数(例えば図11参照)で得られた評価値に応じてAWB補正量を変動させる必要がある。それに対して白色LEDについては、相関色温度、被写体輝度値とは異なる観点から光源判別を行っているため、評価値に応じて補正量を変動させる必要はなく、常にAWB補正量(ゲイン)を通常の補正量にする。   In the correlated color temperature-subject luminance value space (see FIG. 10), the distribution range of the conventional artificial light source or outdoor light source has a slightly overlapping portion. Therefore, it is necessary to vary the AWB correction amount according to the evaluation value obtained by the membership function (for example, see FIG. 11) of the AWB correction amount using the subject luminance value as a variable. On the other hand, for the white LED, the light source is discriminated from a viewpoint different from the correlated color temperature and the subject luminance value, so there is no need to change the correction amount according to the evaluation value, and the AWB correction amount (gain) is always set. Set to the normal correction amount.

白色LEDは屋内光源であり、光源色残りが嫌われるが、上記の処理では、白色LEDと判別された場合のAWB補正量を通常の補正量に設定し、従来人工光源あるいは屋外光源よりもAWB補正を強くする。これにより、屋外光源シーンや従来人工光源シーンのAWB補正に弊害を生じることなく、白色LEDシーンの光源色残りを改善できる。   The white LED is an indoor light source, and the light source color residue is disliked. However, in the above processing, the AWB correction amount when it is determined as a white LED is set to a normal correction amount, and the AWB is higher than the conventional artificial light source or outdoor light source. Increase the correction. Thereby, the light source color residue of the white LED scene can be improved without causing any adverse effect on the AWB correction of the outdoor light source scene or the conventional artificial light source scene.

<第3実施形態>
図7は第3実施形態に係る撮像装置300を示すブロック図である。図中第1実施形態と同じブロックには同じ符号を付している。撮像装置300は、信号分割部50、色情報算出部51、色情報補正部52、軌跡保持部53をさらに備えている。
<Third Embodiment>
FIG. 7 is a block diagram showing an imaging apparatus 300 according to the third embodiment. In the figure, the same reference numerals are assigned to the same blocks as those in the first embodiment. The imaging apparatus 300 further includes a signal dividing unit 50, a color information calculating unit 51, a color information correcting unit 52, and a locus holding unit 53.

図8は撮像装置300が実行する光源判別・AWB補正処理のフローチャートを示す。   FIG. 8 shows a flowchart of the light source discrimination / AWB correction process executed by the imaging apparatus 300.

S1〜S11は第1実施形態と同様である。   S1 to S11 are the same as in the first embodiment.

S31では、信号分割部50は、RAM11に格納されている1画面分の画像データ(R/G/B信号)を複数のエリアに分割する。色情報算出部51は、エリアごとにR,G,B信号の平均値、Ri,Gi,Biを求める。そして色情報算出部51は、分割エリアXiごとに、R/G−B/G平面の座標Ci=(Ri/Gi,Bi/Gi)を算出する。   In S31, the signal dividing unit 50 divides image data (R / G / B signal) for one screen stored in the RAM 11 into a plurality of areas. The color information calculation unit 51 obtains an average value of R, G, B signals, Ri, Gi, Bi for each area. The color information calculation unit 51 calculates the coordinates Ci = (Ri / Gi, Bi / Gi) of the R / GB / G plane for each divided area Xi.

色情報補正部52は、軌跡保持部53に記憶されている、屋外光源に対応する軌跡(黒体軌跡)L1を読み出し、分割エリアXiごとに、座標Ciから黒体軌跡L1に伸びる法線と黒体軌跡L1との交点Piを算出する。色情報補正部52は、分割エリアXiごとに、座標CiをPiに近づける(一致させる)補正を行う。すなわち、屋外光源の光源色分布特性に基づいて、画像データから物体色を排除する。   The color information correction unit 52 reads a trajectory (black body trajectory) L1 corresponding to the outdoor light source stored in the trajectory holding unit 53, and a normal line extending from the coordinate Ci to the black body trajectory L1 for each divided area Xi. An intersection point Pi with the black body locus L1 is calculated. The color information correction unit 52 performs correction for bringing the coordinates Ci closer to (matching) Pi for each divided area Xi. That is, the object color is excluded from the image data based on the light source color distribution characteristic of the outdoor light source.

S32では、S32の補正後のR,G,B信号に対するAWB補正量LW_AWBを算出し、LW_AWBに基づいて、AWBゲインを算出する。これは特許文献6と同様である。   In S32, an AWB correction amount LW_AWB for the R, G, and B signals after the correction in S32 is calculated, and an AWB gain is calculated based on LW_AWB. This is the same as in Patent Document 6.

S33では、S31と同様、色情報算出部51は、分割エリアXiごとに、R/G−B/G平面の座標Ciを算出する。色情報補正部52は、軌跡保持部53に記憶されている、LED以外の人工光源としてありえる色範囲を包括した軌跡L2を読み出し、分割エリアXiごとに、座標Ciから軌跡L2に伸びる法線と軌跡L2との交点Qiを算出する。LED以外の人工光源としてありえる範囲は、軌跡L1と軌跡L2に挟まれた範囲である。色情報補正部52は、分割エリアXiごとに、座標CiをQiに近づける(一致させる)補正を行う。すなわち、LED以外の人工光源の光源色分布特性に基づいて、画像データから物体色を排除する。   In S33, as in S31, the color information calculation unit 51 calculates the coordinates Ci of the R / GB-G / G plane for each divided area Xi. The color information correction unit 52 reads a locus L2 that includes a color range that can be used as an artificial light source other than an LED and is stored in the locus holding unit 53, and a normal line extending from the coordinate Ci to the locus L2 for each divided area Xi. An intersection point Qi with the locus L2 is calculated. A possible range as an artificial light source other than the LED is a range sandwiched between the locus L1 and the locus L2. The color information correction unit 52 performs correction for bringing the coordinate Ci close to (matches) Qi for each divided area Xi. That is, the object color is excluded from the image data based on the light source color distribution characteristic of the artificial light source other than the LED.

S34では、S33の補正後のR,G,B信号に対するAWB補正量LW_AWBを算出し、AWB補正量LW_AWBに基づいて、AWBゲインを算出する。これは特許文献6と同様である。   In S34, an AWB correction amount LW_AWB for the R, G, B signals after the correction in S33 is calculated, and an AWB gain is calculated based on the AWB correction amount LW_AWB. This is the same as in Patent Document 6.

S35では、S31と同様、色情報算出部51は、分割エリアXiごとに、R/G−B/G平面の座標Ciを算出する。   In S35, as in S31, the color information calculation unit 51 calculates the coordinates Ci of the R / GB-G / G plane for each divided area Xi.

色情報補正部52は、軌跡保持部53に記憶されている、LED光源に対応する軌跡L3を読み出し、分割エリアXiごとに、座標Ciから軌跡L3に伸びる法線と軌跡L3との交点Riを算出する。交点の算出手法は特許文献5と同様に行われる。色情報補正部52は、分割エリアXiごとに、座標CiをRiに近づける(一致させる)補正を行う。すなわち、LED光源の光源色分布特性に基づいて、画像データから物体色を排除する。   The color information correction unit 52 reads the trajectory L3 corresponding to the LED light source stored in the trajectory holding unit 53, and determines the intersection Ri between the normal line extending from the coordinate Ci to the trajectory L3 and the trajectory L3 for each divided area Xi. calculate. The calculation method of the intersection is performed in the same manner as in Patent Document 5. The color information correction unit 52 performs correction for bringing the coordinates Ci closer to (matching) Ri for each divided area Xi. That is, the object color is excluded from the image data based on the light source color distribution characteristic of the LED light source.

S36では、S35の補正後のR,G,B信号に対するAWB補正量LW_AWBを算出し、AWB補正量LW_AWBに基づいて、AWBゲインを算出する。AWB補正量LW_AWBの算出方法は第2実施形態と同様である。例えば、軌跡L3に近づいた後の各座標Ciの代表値の、赤(R)、緑(G)、青(B)の各色信号レベルが等しくなるようなAWB補正量を、LW_AWBとする。   In S36, an AWB correction amount LW_AWB for the R, G, and B signals after the correction in S35 is calculated, and an AWB gain is calculated based on the AWB correction amount LW_AWB. The calculation method of the AWB correction amount LW_AWB is the same as in the second embodiment. For example, the AWB correction amount that makes the red (R), green (G), and blue (B) color signal levels of the representative values of the coordinates Ci after approaching the locus L3 equal is LW_AWB.

デジタル信号処理部3は、S32、S34またはS36で算出されたAWBゲインをRGB各色の信号に掛けることによって、画像のホワイトバランスを補正する。   The digital signal processing unit 3 corrects the white balance of the image by multiplying the RGB signal by the AWB gain calculated in S32, S34, or S36.

図9(a)は黒体軌跡L1、分割エリアの光源検出値Ci、Ciに対応する交点P’iの一例を示す。図9(b)は軌跡L2、分割エリアの光源検出値Ci、Ciに対応する交点Q’iの一例を示す。図9(c)は軌跡L3、分割エリアの光源検出値Ci、Ciに対応する交点R’iの一例を示す。   FIG. 9A shows an example of the intersection P'i corresponding to the black body locus L1 and the light source detection values Ci and Ci of the divided areas. FIG. 9B shows an example of the intersection point L ′ corresponding to the locus L2 and the light source detection values Ci and Ci of the divided areas. FIG. 9C shows an example of the intersection R′i corresponding to the locus L3 and the light source detection values Ci and Ci of the divided areas.

黒体軌跡L1は、太陽光源(高色温度〜低色温度)下でグレーを撮影したときの軌跡である。太陽光源下では黒体軌跡から外れている積算値は物体色の影響を受けている。図9(a)では、黒体軌跡L1よりも上に分布するC3と、下に分布するC2、C4が、それぞれ黒体軌跡L1に近づいた座標P’3、P’2、P’4に補正されている。   The black body locus L1 is a locus when gray is photographed under a solar light source (high color temperature to low color temperature). The integrated value deviating from the black body locus under the solar light source is affected by the object color. In FIG. 9A, C3 distributed above the blackbody locus L1 and C2 and C4 distributed below are respectively set to coordinates P′3, P′2, and P′4 that approach the blackbody locus L1. It has been corrected.

LED以外の人工光源軌跡L2は、LED以外の人工光源としてありえる色範囲を包括した軌跡である。黒体軌跡と人工光源軌跡L2に挟まれた部分が光源色としてありえる範囲である。R/G−B/G平面上で、人工光源軌跡L2よりも下に分布する積算値は物体色の影響を受けている。図9(b)では、軌跡L2よりも上に分布するC3と、下に分布するC4が、それぞれ軌跡L2に近づいた座標Q’3、Q’4に補正されている。   The artificial light source locus L2 other than the LED is a locus including a color range that can be an artificial light source other than the LED. A portion between the black body locus and the artificial light source locus L2 is a possible range of the light source color. On the R / GB / G plane, the integrated value distributed below the artificial light source locus L2 is affected by the object color. In FIG. 9B, C3 distributed above the locus L2 and C4 distributed below the locus L2 are corrected to coordinates Q′3 and Q′4 approaching the locus L2, respectively.

LED軌跡L3は、LED光源(調色できるので高色温度〜低色温度)下でグレーを撮影したときの軌跡である。図9(c)に示すとおり、黒体軌跡L1ともLED以外の人工光源軌跡L2とも異なる。LED光源下ではこの軌跡から外れている積算値は物体色の影響を受けている。図9(c)では、軌跡L3よりも上に分布するC1、C3と、下に分布するC4が、それぞれ軌跡L3に近づいた座標R’1、R’3、R’4に補正されている。なお、軌跡L1〜L3に近づけるための移動方向は法線方向に限られず、その他の方向でもよい。   The LED trajectory L3 is a trajectory when gray is photographed under an LED light source (color can be adjusted so that the color temperature is high to low). As shown in FIG. 9C, the black body locus L1 is different from the artificial light source locus L2 other than the LED. Under the LED light source, the integrated value deviating from this locus is influenced by the object color. In FIG. 9C, C1 and C3 distributed above the trajectory L3 and C4 distributed below the trajectory L3 are corrected to coordinates R′1, R′3 and R′4 approaching the trajectory L3, respectively. . In addition, the moving direction for approaching the locus | trajectories L1-L3 is not restricted to a normal line direction, Other directions may be sufficient.

シーンが白色LED光源下であることが分かれば、光源色は必ず白色LED軌跡上になる。光源色が白色LED軌跡上にならない場合は物体色の影響を受けているので、白色LED軌跡に近づける物体色補正を行う。これにより、屋外光源シーンや従来人工光源シーンのAWB補正に弊害を生じることなく、白色LEDシーンの光源色残りを改善できる。さらに、白色LED光源下のシーンでの物体色によるAWBカラーフェリアを抑えることができる。   If it is known that the scene is under the white LED light source, the light source color is always on the white LED locus. If the light source color is not on the white LED locus, it is affected by the object color, so that the object color is corrected so as to approach the white LED locus. Thereby, the light source color residue of the white LED scene can be improved without causing any adverse effect on the AWB correction of the outdoor light source scene or the conventional artificial light source scene. Furthermore, it is possible to suppress AWB color feria due to the object color in a scene under a white LED light source.

2:撮像部、3:デジタル信号処理部、4:AE/AWB補正部、13:CPU、40:信号比率算出部、41:AWB補正ゲイン算出部、42:LED判定部、43:被写体輝度値算出部、44:従来人工光源/屋外光源判定部、45:相関色温度算出部、46:従来光源判定閾値演算部、47:AWB補正量演算部、50:信号分割部、51:色情報算出部、52:色情報補正部、53:軌跡保持部 2: imaging unit, 3: digital signal processing unit, 4: AE / AWB correction unit, 13: CPU, 40: signal ratio calculation unit, 41: AWB correction gain calculation unit, 42: LED determination unit, 43: subject luminance value Calculation unit 44: Conventional artificial light source / outdoor light source determination unit 45: Correlated color temperature calculation unit 46: Conventional light source determination threshold calculation unit 47: AWB correction amount calculation unit 50: Signal division unit 51: Color information calculation , 52: Color information correction unit, 53: Trajectory holding unit

Claims (12)

固体撮像素子から出力される撮像信号に基づき、480nm付近の波長の光に対応する撮像信号の信号量と450nm付近の波長の光に対応する撮像信号の信号量とを取得する信号量取得部と、
前記信号量取得部の取得した480nm付近の波長の光に対応する撮像信号の信号量と450nm付近の波長の光に対応する撮像信号の信号量の比を算出する信号比算出部と、
前記信号比算出部の算出した比と所定の閾値との大小関係に応じて、光源が白色LEDであるか否かを判断する白色LED光源判断部と、
を備える光源判定装置。
A signal amount acquisition unit that acquires a signal amount of an imaging signal corresponding to light having a wavelength near 480 nm and a signal amount of an imaging signal corresponding to light having a wavelength near 450 nm, based on an imaging signal output from the solid-state imaging device; ,
A signal ratio calculation unit that calculates a ratio of a signal amount of an imaging signal corresponding to light having a wavelength near 480 nm acquired by the signal amount acquisition unit and a signal amount of imaging signal corresponding to light having a wavelength near 450 nm;
A white LED light source determination unit that determines whether the light source is a white LED according to a magnitude relationship between the ratio calculated by the signal ratio calculation unit and a predetermined threshold;
A light source determination device comprising:
前記白色LED光源判断部が、光源が白色LEDであると判断した場合、前記白色LEDに適したホワイトバランス補正量を設定し、前記設定されたホワイトバランス補正量に従って前記撮像信号のホワイトバランスを補正するAWB補正部をさらに備える請求項1に記載の光源判定装置。   When the white LED light source determination unit determines that the light source is a white LED, it sets a white balance correction amount suitable for the white LED, and corrects the white balance of the imaging signal according to the set white balance correction amount. The light source determination device according to claim 1, further comprising an AWB correction unit that performs the operation. 前記AWB補正部は、前記白色LED光源判断部が、光源が白色LEDであると判断した場合、前記撮像信号から推定した代表色の赤(R)、緑(G)、青(B)の各色信号レベルが等しくなるような通常のホワイトバランス補正量を設定する請求項2に記載の光源判定装置。   The AWB correction unit, when the white LED light source determination unit determines that the light source is a white LED, representative colors of red (R), green (G), and blue (B) estimated from the imaging signal The light source determination device according to claim 2, wherein a normal white balance correction amount is set such that the signal levels are equal. 前記固体撮像素子から出力される撮像信号に基づき、被写体輝度を算出する被写体輝度算出部と、
前記被写体輝度算出部の算出した被写体輝度を変数とするメンバシップ関数に基づいて光源の確からしさを示す評価値を算出する評価値算出部と、
を備える請求項2または3に記載の光源判定装置。
A subject luminance calculation unit for calculating subject luminance based on an imaging signal output from the solid-state imaging device;
An evaluation value calculation unit that calculates an evaluation value indicating the probability of the light source based on a membership function with the subject luminance calculated by the subject luminance calculation unit as a variable;
The light source determination device according to claim 2 or 3.
前記白色LED光源判断部が、光源が白色LEDでないと判断した場合、光源が白色LED以外の人工光源であるか否かを判断する従来人工光源判断部を備え、
前記AWB補正部は、前記従来人工光源判断部が、光源が白色LED以外の人工光源であると判断した場合、前記評価値算出部の算出した評価値に従い、ホワイトバランス補正量を前記通常のホワイトバランス補正量よりも小さいかもしくはそれと同程度に設定する請求項4に記載の光源判定装置。
When the white LED light source determination unit determines that the light source is not a white LED, a conventional artificial light source determination unit that determines whether the light source is an artificial light source other than a white LED,
When the conventional artificial light source determination unit determines that the light source is an artificial light source other than a white LED, the AWB correction unit determines a white balance correction amount according to the evaluation value calculated by the evaluation value calculation unit. The light source determination device according to claim 4, wherein the light source determination device is set to be smaller than or equal to the balance correction amount.
前記白色LED光源判断部が、光源が白色LEDでないと判断した場合、光源が自然光源であるか否かを判断する自然光源判断部を備え、
前記AWB補正部は、前記自然光源判断部が、光源が自然光源であると判断した場合、前記評価値算出部の算出した評価値に従い、ホワイトバランス補正量を前記通常のホワイトバランス補正量よりも小さく設定する請求項4または5に記載の光源判定装置。
When the white LED light source determination unit determines that the light source is not a white LED, the white LED light source determination unit includes a natural light source determination unit that determines whether the light source is a natural light source,
When the natural light source determination unit determines that the light source is a natural light source, the AWB correction unit sets the white balance correction amount to be greater than the normal white balance correction amount according to the evaluation value calculated by the evaluation value calculation unit. The light source determination device according to claim 4 or 5, wherein the light source determination device is set to be small.
所定の色空間における白色LED光源の色温度の分布を示した軌跡を記憶する軌跡記憶部と、
前記撮像信号からなる画像を複数のエリアに分割する信号分割部と、
前記信号分割部の分割した各々のエリアの色情報を取得する分割エリア色情報取得部と、
前記分割エリア色情報取得部の取得した各々のエリアの色情報を、前記軌跡記憶部の記憶した軌跡に基づいて補正する色情報補正部と、
を備え、
前記AWB補正部は、前記白色LED光源判断部が、光源が白色LEDであると判断した場合、前記色情報補正部が色情報を補正した後の撮像信号に基づいて、白色LEDに適したホワイトバランスゲインを設定し、前記色情報補正部が色情報の補正した後の撮像信号のホワイトバランスを補正する請求項2〜6のいずれか1項に記載の光源判定装置。
A trajectory storage unit that stores a trajectory indicating the distribution of the color temperature of the white LED light source in a predetermined color space;
A signal dividing unit that divides an image formed of the imaging signals into a plurality of areas;
A divided area color information acquisition unit that acquires color information of each area divided by the signal division unit;
A color information correction unit that corrects the color information of each area acquired by the divided area color information acquisition unit based on the trajectory stored in the trajectory storage unit;
With
When the white LED light source determination unit determines that the light source is a white LED, the AWB correction unit determines a white color suitable for the white LED based on the imaging signal after the color information correction unit corrects the color information. The light source determination device according to claim 2, wherein a balance gain is set, and the color information correction unit corrects a white balance of the imaging signal after the color information is corrected.
前記色情報補正部は、各々のエリアの色情報を、前記軌跡記憶部の記憶した軌跡に近づけるよう補正する請求項7に記載の光源判定装置。   The light source determination device according to claim 7, wherein the color information correction unit corrects the color information of each area so as to approach the locus stored in the locus storage unit. 前記信号量取得部は、所定の色フィルタに対応する前記固体撮像素子の画素群の内、シアン色フィルタに対応する特定の画素から得られた撮像信号から480nm付近の波長の光に対応する撮像信号の信号量を取得するとともに、青色フィルタに対応する特定の画素から得られた撮像信号から450nm付近の波長の光に対応する撮像信号の信号量を取得する請求項1〜8のいずれか1項に記載の光源判定装置。   The signal amount acquisition unit picks up an image corresponding to light having a wavelength near 480 nm from an image pickup signal obtained from a specific pixel corresponding to a cyan color filter in a pixel group of the solid-state image pickup element corresponding to a predetermined color filter. The signal amount of the signal is acquired, and the signal amount of the imaging signal corresponding to light having a wavelength near 450 nm is acquired from the imaging signal obtained from the specific pixel corresponding to the blue filter. The light source determination device according to item. 前記信号比算出部は、前記信号量取得部の取得した480nm付近の波長の光に対応する撮像信号の平均信号量と450nm付近の波長の光に対応する撮像信号の平均信号量の比を算出する請求項1〜9のいずれか1項に記載の光源判定装置。   The signal ratio calculation unit calculates a ratio between an average signal amount of an imaging signal corresponding to light having a wavelength near 480 nm acquired by the signal amount acquisition unit and an average signal amount of imaging signal corresponding to light having a wavelength near 450 nm. The light source determination apparatus according to any one of claims 1 to 9. 前記信号比算出部は、前記信号量取得部の取得した480nm付近の波長の光に対応する撮像信号の積算信号量と450nm付近の波長の光に対応する撮像信号の積算信号量の比を算出する請求項1〜9のいずれか1項に記載の光源判定装置。   The signal ratio calculation unit calculates a ratio between an integrated signal amount of an imaging signal corresponding to light having a wavelength near 480 nm acquired by the signal amount acquisition unit and an integrated signal amount of an imaging signal corresponding to light having a wavelength near 450 nm. The light source determination apparatus according to any one of claims 1 to 9. 光源判定装置が、
固体撮像素子から出力される撮像信号に基づき、480nm付近の波長の光に対応する撮像信号の信号量と450nm付近の波長の光に対応する撮像信号の信号量とを取得するステップと、
前記取得した480nm付近の波長の光に対応する撮像信号の信号量と450nm付近の波長の光に対応する撮像信号の信号量の比を算出するステップと、
前記算出した比と所定の閾値との大小関係に応じて、光源が白色LEDであるか否かを判断するステップと、
を実行する光源判定方法。
The light source determination device
Obtaining a signal amount of an imaging signal corresponding to light having a wavelength near 480 nm and a signal amount of an imaging signal corresponding to light having a wavelength near 450 nm based on an imaging signal output from the solid-state imaging device;
Calculating a ratio of a signal amount of an imaging signal corresponding to the acquired light having a wavelength near 480 nm and a signal amount of an imaging signal corresponding to the light having a wavelength near 450 nm;
Determining whether the light source is a white LED according to the magnitude relationship between the calculated ratio and a predetermined threshold;
A light source determination method for executing
JP2010267052A 2010-11-30 2010-11-30 Light source determination device and light source determination method Abandoned JP2012119885A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010267052A JP2012119885A (en) 2010-11-30 2010-11-30 Light source determination device and light source determination method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010267052A JP2012119885A (en) 2010-11-30 2010-11-30 Light source determination device and light source determination method

Publications (2)

Publication Number Publication Date
JP2012119885A true JP2012119885A (en) 2012-06-21
JP2012119885A5 JP2012119885A5 (en) 2013-11-07

Family

ID=46502254

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010267052A Abandoned JP2012119885A (en) 2010-11-30 2010-11-30 Light source determination device and light source determination method

Country Status (1)

Country Link
JP (1) JP2012119885A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015133685A (en) * 2013-12-13 2015-07-23 キヤノン株式会社 Imaging apparatus having light source identification and image quality-correcting functions and control method therefor

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003169341A (en) * 2001-09-19 2003-06-13 Fuji Film Microdevices Co Ltd Color image pickup unit
JP2007300253A (en) * 2006-04-03 2007-11-15 Sony Corp Imaging apparatus and its light source estimating apparatus
JP2010178182A (en) * 2009-01-30 2010-08-12 Canon Inc Document reading apparatus
JP2010256623A (en) * 2009-04-24 2010-11-11 Olympus Corp Microscope observation apparatus
JP2011223452A (en) * 2010-04-13 2011-11-04 Nippon Hoso Kyokai <Nhk> Color correction device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003169341A (en) * 2001-09-19 2003-06-13 Fuji Film Microdevices Co Ltd Color image pickup unit
JP2007300253A (en) * 2006-04-03 2007-11-15 Sony Corp Imaging apparatus and its light source estimating apparatus
JP2010178182A (en) * 2009-01-30 2010-08-12 Canon Inc Document reading apparatus
JP2010256623A (en) * 2009-04-24 2010-11-11 Olympus Corp Microscope observation apparatus
JP2011223452A (en) * 2010-04-13 2011-11-04 Nippon Hoso Kyokai <Nhk> Color correction device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015133685A (en) * 2013-12-13 2015-07-23 キヤノン株式会社 Imaging apparatus having light source identification and image quality-correcting functions and control method therefor

Similar Documents

Publication Publication Date Title
JP4329125B2 (en) White balance control method, white balance control device, and imaging device
JP4158592B2 (en) Auto white balance adjustment method and camera to which this method is applied
JP4791331B2 (en) Imaging apparatus and exposure control method
JP4697606B2 (en) Imaging apparatus and focus control method
JP5004544B2 (en) Imaging apparatus and exposure control method
JP2007053499A (en) White balance control unit and imaging apparatus
JP2017022610A (en) Image processing apparatus and image processing method
US7911527B2 (en) Focusing apparatus and focusing method
WO2017170716A1 (en) Image pickup device, image processing device, and electronic apparatus
JP2012074951A (en) Image pickup device and image processing method
JP2008278354A (en) Imaging device
JP2008109485A (en) Imaging apparatus and imaging control method
JP4067033B2 (en) Image processing apparatus and method
JP5948997B2 (en) Imaging apparatus and imaging method
JP2008017198A (en) Device and method for calculating light source color, and photographing device
JP2009055077A (en) Imaging apparatus
JP4210920B2 (en) White balance adjustment method and camera
WO2017170717A1 (en) Image pickup device, focusing device, and electronic apparatus
JP2008083243A (en) Photographing device and exposure control method
JP2012119885A (en) Light source determination device and light source determination method
JP2004274344A (en) Image processing apparatus and method
JP5009091B2 (en) Focus adjustment device and focus adjustment method
JP2004304695A (en) White balance adjustment method
JP2007053482A (en) Imaging apparatus
JP4378629B2 (en) Auto white balance adjustment method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20130807

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20130919

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20140109

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20140115

A762 Written abandonment of application

Free format text: JAPANESE INTERMEDIATE CODE: A762

Effective date: 20140310