JP4889225B2 - Electronic camera - Google Patents

Electronic camera Download PDF

Info

Publication number
JP4889225B2
JP4889225B2 JP2005038244A JP2005038244A JP4889225B2 JP 4889225 B2 JP4889225 B2 JP 4889225B2 JP 2005038244 A JP2005038244 A JP 2005038244A JP 2005038244 A JP2005038244 A JP 2005038244A JP 4889225 B2 JP4889225 B2 JP 4889225B2
Authority
JP
Japan
Prior art keywords
gain
predetermined
values
light source
electronic camera
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2005038244A
Other languages
Japanese (ja)
Other versions
JP2006229355A (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.)
Sanyo Electric Co Ltd
Original Assignee
Sanyo Electric Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sanyo Electric Co Ltd filed Critical Sanyo Electric Co Ltd
Priority to JP2005038244A priority Critical patent/JP4889225B2/en
Publication of JP2006229355A publication Critical patent/JP2006229355A/en
Application granted granted Critical
Publication of JP4889225B2 publication Critical patent/JP4889225B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Color Television Image Signal Generators (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Color Image Communication Systems (AREA)

Description

この発明は、電子カメラに関し、特にたとえば撮影された被写界像の白バランスを調整する、電子カメラに関する。   The present invention relates to an electronic camera, and more particularly to an electronic camera that adjusts the white balance of a captured scene image, for example.

従来のこの種の電子カメラの一例が、特許文献1に開示されている。この従来技術によれば、蛍光灯マニュアルモードが選択されると、測色部によって求められた測色結果R/Bが閾値K1およびK2の各々と比較される。   An example of a conventional electronic camera of this type is disclosed in Patent Document 1. According to this prior art, when the fluorescent lamp manual mode is selected, the color measurement result R / B obtained by the color measurement unit is compared with each of the threshold values K1 and K2.

K1<R/Gであれば、光源は電球色蛍光灯であるとみなされ、電球色に対応するゲインが白バランス調整用に選択される。K2<R/G≦K1であれば、光源は白色蛍光灯であるとみなされ、白色に対応するゲインが白バランス調整用に選択される。   If K1 <R / G, the light source is considered to be a light bulb color fluorescent lamp, and the gain corresponding to the light bulb color is selected for white balance adjustment. If K2 <R / G ≦ K1, the light source is regarded as a white fluorescent lamp, and a gain corresponding to white is selected for white balance adjustment.

K3<R/G≦K2であれば、光源は昼白色蛍光灯であるとみなされ、昼白色に対応するゲインが白バランス調整用に選択される。上記のいずれの条件も満たされなければ、光源は昼光色蛍光灯であるとみなされ、昼光色に対応するゲインが白バランス調整用に選択される。
特開平6−165189号公報[H04N9/04, 9/73]
If K3 <R / G ≦ K2, the light source is regarded as a day white fluorescent lamp, and a gain corresponding to day white is selected for white balance adjustment. If none of the above conditions is met, the light source is considered to be a daylight color fluorescent lamp, and the gain corresponding to the daylight color is selected for white balance adjustment.
JP-A-6-165189 [H04N9 / 04, 9/73]

しかし、従来技術では、複数の光源が照射された被写界を撮影するときに、この被写界のわずかな変化によって撮影画像の色合いが大きく変動する可能性がある。たとえば、電球色蛍光灯および白色蛍光灯の両方が照射された状態で人物AおよびBの各々を撮影した場合、測定結果R/Gが閾値K1の近傍で変動すると、選択されるゲインが大きく変化する。この結果、人物Aの撮影画像と人物Bの撮影画像との間で色あいが大きく相違してしまう。   However, in the prior art, when shooting an object scene irradiated with a plurality of light sources, there is a possibility that the color of the photographed image greatly fluctuates due to a slight change in the object scene. For example, when each of the persons A and B is photographed in a state where both the bulb-color fluorescent lamp and the white fluorescent lamp are irradiated, if the measurement result R / G fluctuates in the vicinity of the threshold value K1, the selected gain greatly changes. To do. As a result, the hue between the photographed image of the person A and the photographed image of the person B is greatly different.

それゆえに、この発明の主たる目的は、撮影画像の色合いを的確かつ安定的に調整することができる、電子カメラを提供することである。     Therefore, a main object of the present invention is to provide an electronic camera capable of accurately and stably adjusting the hue of a captured image.

請求項1の発明に従う電子カメラは、被写界を表す複数色の色情報信号を出力する撮影手段(22)、撮影手段から出力された色情報信号を増幅する増幅手段(24a, 24b)、増幅手段から出力される色情報信号について所定の白バランスが得られる調整ゲインが互いに異なる複数の特定の光源色にそれぞれ対応する複数の数値によって規定される特定範囲に属するか否かを判別する判別手段(S21)、判別手段の判別結果が肯定的であるとき調整ゲインを増幅手段に設定する第1設定手段(S23)、および判別手段の判別結果が否定的であるとき、前記特定範囲を規定する複数の数値と前記調整ゲインとの大小関係に応じて、前記異なる複数の特定の光源色にそれぞれ対応する複数の所定範囲の内の1つに属する所定ゲインを増幅手段に設定する第2設定手段(S25, S27, S29, S31, S33, S35, S37)を備える。 The electronic camera according to the invention of claim 1 is a photographing means (22) for outputting color information signals of a plurality of colors representing an object scene, an amplifying means (24a, 24b) for amplifying the color information signals output from the photographing means, Discriminating whether or not the adjustment gain for obtaining a predetermined white balance for the color information signal output from the amplifying means belongs to a specific range defined by a plurality of numerical values respectively corresponding to a plurality of different specific light source colors Means (S21), a first setting means (S23) for setting the adjustment gain in the amplifying means when the discrimination result of the discrimination means is affirmative, and the specified range when the discrimination result of the discrimination means is negative A second setting that sets a predetermined gain belonging to one of a plurality of predetermined ranges respectively corresponding to the plurality of different specific light source colors to the amplifying means according to a magnitude relationship between the plurality of numerical values to be adjusted and the adjustment gain Means (S25, S 27, S29, S31, S33, S35, S37).

撮影手段は、被写界を表す複数色の色情報信号を出力する。出力された色情報信号は、増幅手段によって増幅される。判別手段は、増幅手段から出力される色情報信号について所定の白バランスが得られる調整ゲインが特定範囲に属するか否かを判別する。ここで、特定範囲は、互いに異なる複数の特定の光源色にそれぞれ対応する複数の数値によって規定される範囲である。判別手段の判別結果が肯定的であれば、上述の調整ゲインが第1設定手段によって増幅手段に設定される。判別手段の判別結果が否定的であれば、前記特定範囲を規定する複数の数値と前記調整ゲインとの大小関係に応じて、前記異なる複数の特定の光源色にそれぞれ対応する複数の所定範囲の内の1つに属する所定ゲインが第2設定手段によって増幅手段に設定される。 The photographing unit outputs color information signals of a plurality of colors representing the object scene. The output color information signal is amplified by the amplification means. The discriminating unit discriminates whether or not an adjustment gain for obtaining a predetermined white balance for the color information signal output from the amplifying unit belongs to a specific range. Here, the specific range is a range defined by a plurality of numerical values respectively corresponding to a plurality of different specific light source colors. If the determination result of the determination means is affirmative, the adjustment gain described above is set to the amplification means by the first setting means. If the determination result of the determining means is negative, a plurality of predetermined ranges corresponding respectively to the plurality of different specific light source colors according to the magnitude relationship between the plurality of numerical values defining the specific range and the adjustment gain . A predetermined gain belonging to one of them is set in the amplification means by the second setting means.

特定範囲は、複数の数値によって規定される広がりを有する。所定の白バランスが得られる調整ゲインがこの特定範囲に属するときは、この調整ゲインが有効となる。一方、所定の色バランスが得られる調整ゲインがこの特定範囲に属しないときは、前記特定範囲を規定する複数の数値と前記調整ゲインとの大小関係に応じて、前記異なる複数の特定の光源色にそれぞれ対応する複数の所定範囲の内の1つに属する所定ゲインが有効となる。つまり、有効化されるゲインは、或る広がりを有する特定範囲に関連する値を有することとなる。この結果、撮影画像の色あいを的確かつ安定的に調整することができる。 The specific range has a spread defined by a plurality of numerical values. When the adjustment gain that provides a predetermined white balance belongs to this specific range, this adjustment gain is effective. On the other hand, when the adjustment gain that provides a predetermined color balance does not belong to the specific range, the plurality of different specific light source colors according to the magnitude relationship between the numerical values defining the specific range and the adjustment gain A predetermined gain belonging to one of a plurality of predetermined ranges respectively corresponding to is effective. That is, the gain to be effective has a value related to a specific range having a certain spread. As a result, the color tone of the photographed image can be adjusted accurately and stably.

請求項2の発明に従う電子カメラは、請求項1に従属し、増幅手段によって増幅された複数色の色情報信号に基づいて調整ゲインを決定する決定手段(S19)をさらに備え、判別手段は決定手段によって決定された調整ゲインの値を複数の数値の各々と比較する。   The electronic camera according to the invention of claim 2 is dependent on claim 1, and further comprises a determining means (S19) for determining an adjustment gain based on the color information signals of a plurality of colors amplified by the amplifying means. The value of the adjustment gain determined by the means is compared with each of a plurality of numerical values.

請求項3の発明に従う電子カメラは、請求項1または2に従属し、第2設定手段は互いに異なる複数の光源色にそれぞれ対応する複数のゲインの1つを所定ゲインとして選択する。   The electronic camera according to the invention of claim 3 is dependent on claim 1 or 2, and the second setting means selects one of a plurality of gains respectively corresponding to a plurality of different light source colors as a predetermined gain.

請求項の発明に従う電子カメラは、請求項1ないしのいずれかに従属し、特定範囲は昼白色の光源に対応する。 An electronic camera according to a fourth aspect of the invention is dependent on any one of the first to third aspects, and the specific range corresponds to a daylight white light source.

この発明によれば、特定範囲は、複数の数値によって規定される広がりを有する。所定の白バランスが得られる調整ゲインがこの特定範囲に属するときは、この調整ゲインが有効となる。一方、所定の色バランスが得られる調整ゲインがこの特定範囲に属しないときは、前記特定範囲を規定する複数の数値と前記調整ゲインとの大小関係に応じて、前記異なる複数の特定の光源色にそれぞれ対応する複数の所定範囲の内の1つに属する所定ゲインが有効となる。つまり、有効化されるゲインは、或る広がりを有する特定範囲に関連する値を有することとなる。この結果、撮影画像の色あいを的確かつ安定的に調整することができる。 According to the present invention, the specific range has a spread defined by a plurality of numerical values. When the adjustment gain that provides a predetermined white balance belongs to this specific range, this adjustment gain is effective. On the other hand, when the adjustment gain that provides a predetermined color balance does not belong to the specific range, the plurality of different specific light source colors according to the magnitude relationship between the numerical values defining the specific range and the adjustment gain A predetermined gain belonging to one of a plurality of predetermined ranges respectively corresponding to is effective. That is, the gain to be effective has a value related to a specific range having a certain spread. As a result, the color tone of the photographed image can be adjusted accurately and stably.

この発明の上述の目的,その他の目的,特徴および利点は、図面を参照して行う以下の実施例の詳細な説明から一層明らかとなろう。   The above object, other objects, features and advantages of the present invention will become more apparent from the following detailed description of embodiments with reference to the drawings.

図1を参照して、この実施例のディジタルカメラ(電子カメラ)10は、光学レンズ12を含む。被写界の光学像は、光学レンズ12を介して、撮像装置22を形成するイメージセンサ16の撮像面に照射される。撮像面は、図2に示すベイヤ配列を有する原色フィルタ14によって覆われる。このため、撮像面に形成された複数の受光素子の各々で生成される電荷の量は、R(Red),G(Green)またはB(Blue)の光量を反映する。   Referring to FIG. 1, a digital camera (electronic camera) 10 of this embodiment includes an optical lens 12. The optical image of the object scene is irradiated onto the imaging surface of the image sensor 16 forming the imaging device 22 via the optical lens 12. The imaging surface is covered with a primary color filter 14 having the Bayer arrangement shown in FIG. For this reason, the amount of electric charge generated in each of the plurality of light receiving elements formed on the imaging surface reflects the light quantity of R (Red), G (Green), or B (Blue).

TG(Timing Generator)42は、1/30秒毎に発生する垂直同期信号Vsyncに応答して、複数のタイミング信号をイメージセンサ16に与える。複数の受光素子の各々で生成された電荷つまり画素信号は、かかるタイミング信号に応答して、ラスタ走査態様でイメージセンサ16から読み出す。読み出された画素信号は、A/D変換器18によってディジタル信号である画素データに変換され、変換された画素データは前処理回路20によって相関2重サンプリング,自動ゲイン調整および色分離の一連の処理を施される。色分離によって、R,GおよびBの全ての色情報が各画素に割り当てられる。同じ画素に割り当てられたRデータ,GデータおよびBデータは、白バランス調整回路26に向けて同時に出力される。   A TG (Timing Generator) 42 gives a plurality of timing signals to the image sensor 16 in response to a vertical synchronization signal Vsync generated every 1/30 seconds. The charge generated by each of the plurality of light receiving elements, that is, the pixel signal is read from the image sensor 16 in a raster scanning manner in response to the timing signal. The read pixel signal is converted into pixel data which is a digital signal by the A / D converter 18, and the converted pixel data is subjected to a series of correlated double sampling, automatic gain adjustment and color separation by the preprocessing circuit 20. Processed. By color separation, all color information of R, G, and B is assigned to each pixel. The R data, G data, and B data assigned to the same pixel are simultaneously output to the white balance adjustment circuit 26.

Rデータは、アンプ24aによってゲインGrに従う増幅処理を施された後、マトリクス演算回路30および積算回路28rに与えられる。Bデータは、アンプ24bによってゲインGbに従う増幅処理を施された後、マトリクス演算回路30および積算回路28bに与えられる。Gデータは、そのままマトリクス演算回路30および積算回路28gに与えられる。   The R data is subjected to amplification processing according to the gain Gr by the amplifier 24a, and is then supplied to the matrix operation circuit 30 and the integration circuit 28r. The B data is subjected to amplification processing according to the gain Gb by the amplifier 24b, and is then supplied to the matrix operation circuit 30 and the integration circuit 28b. The G data is directly supplied to the matrix operation circuit 30 and the integration circuit 28g.

マトリクス演算回路30は、与えられたRGBデータに基づいてYUVデータを生成する。後処理回路32は、生成されたYUVデータをコンポジットビデオ信号に変換し、変換されたコンポジットビデオ信号をLCDモニタ34に向けて出力する。この結果、被写界のリアルタイム動画像(スルー画像)がモニタ画面に表示される。   The matrix operation circuit 30 generates YUV data based on the given RGB data. The post-processing circuit 32 converts the generated YUV data into a composite video signal, and outputs the converted composite video signal to the LCD monitor 34. As a result, a real-time moving image (through image) of the object scene is displayed on the monitor screen.

また、積算回路28r,28gおよび28bの各々は、以下に述べる要領で積算処理を行う。図7を参照して、被写界は、水平方向および垂直方向の各々に16分割される。この結果、256個の分割エリアが被写界上に割り当てられる。積算回路28rはRデータを分割エリア毎に積算し、積算回路28gはGデータを分割エリア毎に積算し、そして積算回路28bはBデータを分割エリア毎に積算する。これによって、各々の分割エリアの積算値Rij,GijおよびBijが、1フレーム期間(=1/30秒)を費やして生成される。   Each of the integration circuits 28r, 28g, and 28b performs integration processing in the manner described below. Referring to FIG. 7, the object scene is divided into 16 parts in each of the horizontal direction and the vertical direction. As a result, 256 divided areas are allocated on the object scene. The integrating circuit 28r integrates R data for each divided area, the integrating circuit 28g integrates G data for each divided area, and the integrating circuit 28b integrates B data for each divided area. As a result, the integrated values Rij, Gij and Bij of each divided area are generated by spending one frame period (= 1/30 second).

なお、iは水平方向における分割エリアの位置番号であり、“1”〜“16”のいずれかの値を示す。同様に、jは垂直方向における分割エリアの位置番号であり、“1”〜“16”のいずれかの値を示す。   Note that i is the position number of the divided area in the horizontal direction, and indicates any value from “1” to “16”. Similarly, j is the position number of the divided area in the vertical direction, and indicates any value from “1” to “16”.

モードSW38によって蛍光灯モードが選択されると、CPU36は、垂直同期信号Vsyncが発生する毎に、図3〜図4に示すフロー図に従う白バランス調整処理を実行する。なお、このフロー図に対応する制御プログラムは、フラッシュメモリ40に記憶される。   When the fluorescent lamp mode is selected by the mode SW 38, the CPU 36 executes a white balance adjustment process according to the flowcharts shown in FIGS. 3 to 4 every time the vertical synchronization signal Vsync is generated. The control program corresponding to this flowchart is stored in the flash memory 40.

まずステップS1で、ゲインGrおよびGbの各々を初期値に設定し、変数i,jおよび後述する変数ΣR,ΣG,ΣBの各々を“0”に設定する。   First, in step S1, gains Gr and Gb are set to initial values, and variables i and j and variables ΣR, ΣG, and ΣB described later are set to “0”.

ステップS3では、初期値を示すゲインGrおよびGbに従って白バランス調整を施されたRデータ,GデータおよびBデータに基づく積算値Rij,GijおよびBijのうち、変数iおよびjによって特定される分割エリアの積算値Rij,GijおよびBijを取り込む。   In step S3, divided areas specified by variables i and j out of integrated values Rij, Gij and Bij based on R data, G data and B data subjected to white balance adjustment according to gains Gr and Gb indicating initial values. The integrated values Rij, Gij and Bij are taken in.

ステップS5では、取り込まれた積算値Rij,GijおよびBijに基づいてYij,(R−G)ijおよび(B−G)ijを算出する。Yijは分割エリア(i,j)から検出されたYデータの積算値に相当し、“輝度評価値”と定義することができる。一方、(R−G)ijは積算値RijおよびGijの差分値であり、(B−G)ijは積算値BijおよびGijの差分値である。   In step S5, Yij, (R−G) ij and (B−G) ij are calculated based on the integrated values Rij, Gij and Bij fetched. Yij corresponds to an integrated value of Y data detected from the divided area (i, j), and can be defined as “luminance evaluation value”. On the other hand, (R−G) ij is a difference value between the integrated values Rij and Gij, and (B−G) ij is a difference value between the integrated values Bij and Gij.

続くステップS7では、数1に従ってfy(R−G)ijおよびfy(B−G)ijを求める。
[数1]
fy(R−G)ij=(R−G)ij/c1*Yij
fy(B−G)ij=(B−G)ij/c2*Yij
c1,c2:定数
ステップS5で求められた差分値(R−G)ijおよび(B−G)ijは、プリ露光時の露光量を反映する。つまり、露光量が多ければ数値は大きくなるが、露光量が小さければ数値は小さくなる。このような特性を持つ差分値(R−G)ijおよび(B−G)ijを注目する分割エリアの“色評価値”と定義すると、色評価値は露光量によって変動する。
In the subsequent step S7, fy (RG) ij and fy (BG) ij are obtained according to Equation 1.
[Equation 1]
fy (RG) ij = (RG) ij / c1 * Yij
fy (BG) ij = (BG) ij / c2 * Yij
c1, c2: Constant The difference values (R−G) ij and (B−G) ij obtained in step S5 reflect the exposure amount at the time of pre-exposure. That is, the numerical value increases as the exposure amount increases, but decreases as the exposure amount decreases. If the difference values (R−G) ij and (B−G) ij having such characteristics are defined as “color evaluation values” of the divided area of interest, the color evaluation values vary depending on the exposure amount.

一方、被写界の色は本来的に露光量に依存せず、被写体および光源が変化しない限り、被写界の色は常に同じである。したがって、露光量が変更されても、色評価値は同じ値をとり続けるべきである。   On the other hand, the color of the object scene does not inherently depend on the exposure amount, and the object field color is always the same unless the subject and the light source are changed. Therefore, even if the exposure amount is changed, the color evaluation value should continue to take the same value.

そこで、この実施例では、差分値(R−G)ijおよび(B−G)ijを露光量に関連する数値“c1*Yij”および“c2*Yij”によってそれぞれ割り算するようにしている。こうして求められたfy(R−G)ijおよびfy(B−G)ijが、“色評価値”と定義される。   Therefore, in this embodiment, the difference values (R−G) ij and (B−G) ij are respectively divided by numerical values “c1 * Yij” and “c2 * Yij” related to the exposure amount. The fy (RG) ij and fy (BG) ij obtained in this way are defined as “color evaluation values”.

ステップS9では、色評価値fy(R−G)ijおよびfy(B−G)ijが図5(B)に示す色分布図のどこに位置するかを判別し、判別された位置に対応する重み付け係数Wijを図5(A)に示す要領で作成されたテーブル40tから検出する。テーブル40tは、フラッシュメモリ40に記憶される。続くステップS11では、検出された重み付け係数WijをステップS3で取り込んだ積算値Rij,GijおよびBijの各々に掛け算し、重み付け値Rij*Wij,Gij*WijおよびBij*Wijを求める。   In step S9, it is determined where the color evaluation values fy (RG) ij and fy (BG) ij are located in the color distribution chart shown in FIG. 5B, and a weight corresponding to the determined position. The coefficient Wij is detected from the table 40t created in the manner shown in FIG. The table 40t is stored in the flash memory 40. In subsequent step S11, the detected weighting coefficient Wij is multiplied by each of the integrated values Rij, Gij and Bij fetched in step S3 to obtain weighted values Rij * Wij, Gij * Wij and Bij * Wij.

図5(A)によれば、重み付け係数Wijは、“0”,“6”,“7”および“8”のいずれかの値を示す。このうち、“6”,“7”および“8”が割り当てられた領域が引き込み範囲に対応する。引き込み範囲から外れる色評価値が検出された分割エリアは、ステップS11の処理によって無効となる。   According to FIG. 5A, the weighting coefficient Wij indicates any value of “0”, “6”, “7”, and “8”. Among these, the areas to which “6”, “7”, and “8” are assigned correspond to the pull-in range. The divided area in which the color evaluation value outside the pull-in range is detected is invalidated by the process of step S11.

図6に示す被写界では、テーブルTBLはドアDRから出入りできる室内に配置され、人物M1およびM2はテーブルTBLの周りに存在し、そして花瓶VSはテーブルTBLの上に置かれる。ここで、テーブルTBLおよび花瓶VSの各々を覆う分割エリアで求められた色評価値が引き込み範囲から外れ、残りの分割エリアで求められた色評価値が引き込み範囲に属する場合、図7において斜線で示される56個の分割エリアが無効エリアとされ、他の200個の分割エリアが有効エリアとされる。   In the object scene shown in FIG. 6, the table TBL is arranged in a room that can enter and exit from the door DR, the persons M1 and M2 exist around the table TBL, and the vase VS is placed on the table TBL. Here, when the color evaluation values obtained in the divided areas covering each of the table TBL and the vase VS are out of the pull-in range, and the color evaluation values obtained in the remaining divided areas belong to the pull-in range, hatched lines in FIG. The 56 divided areas shown are invalid areas, and the other 200 divided areas are valid areas.

ステップS13では、ステップS11で算出された重み付け値Rij*Wij,Gij*WijおよびBij*Wijを色情報毎に積算する。具体的には、数2に従う演算を実行し、今回算出された重み付け値Rij*Wij,Gij*WijおよびBij*Wijを現時点の変数ΣR,ΣGおよびΣBに加算する。
[数2]
ΣR=ΣR+Rij*Wij
ΣG=ΣG+Gij*Wij
ΣB=ΣB+Bij*Wij
ステップS15では数2に従う積算が256回繰り返されたかどうか判断し、NOであれば、ステップS17でカウント値iまたはjを更新してからステップS3に戻る。この結果、図7に示す256個の分割エリアの各々で得られた積算値Rij,GijおよびBijについて、ステップS3〜S13の処理が実行される。
In step S13, the weighted values Rij * Wij, Gij * Wij and Bij * Wij calculated in step S11 are integrated for each color information. Specifically, the calculation according to Equation 2 is executed, and the currently calculated weight values Rij * Wij, Gij * Wij and Bij * Wij are added to the current variables ΣR, ΣG and ΣB.
[Equation 2]
ΣR = ΣR + Rij * Wij
ΣG = ΣG + Gij * Wij
ΣB = ΣB + Bij * Wij
In step S15, it is determined whether the integration according to Equation 2 has been repeated 256 times. If NO, the count value i or j is updated in step S17, and the process returns to step S3. As a result, the processing of steps S3 to S13 is executed for the integrated values Rij, Gij and Bij obtained in each of the 256 divided areas shown in FIG.

ステップS15でYESと判断された時点で、変数ΣRは重み付け値Rij*Wijの総和を示し、変数ΣGは重み付け値Gij*Wijの総和を示し、そして変数ΣBは重み付け値Bij*Wijの総和を示す。ステップS19では、こうして求められた総和値ΣR,ΣGおよびΣBに数3に示す演算を施して、割り算値α1およびβ1を算出する。
[数3]
α1=k1*ΣG/ΣR
β1=k2*ΣG/ΣB
k1,k2:定数
ステップS21では、算出された割り算値α1およびβ1が数4に示す2つの条件の両方を満足するか否かを判別する。
[数4]
THr1<α1≦THr2
THb1<β1≦THb2
割り算値α1が閾値THr1よりも大きくかつ閾値THr2以下で、さらに割り算値β1が閾値THb1よりも大きくかつ閾値THb2以下であれば、条件は満足される。条件が満足されるとステップS23に進み、割り算値α1を示すゲインGrをアンプ24aに設定し、割り算値β1を示すゲインGbをアンプ24bに設定する。
When YES is determined in step S15, the variable ΣR indicates the sum of the weight values Rij * Wij, the variable ΣG indicates the sum of the weight values Gij * Wij, and the variable ΣB indicates the sum of the weight values Bij * Wij. . In step S19, the total values ΣR, ΣG and ΣB thus obtained are subjected to the calculation shown in Equation 3 to calculate the divided values α1 and β1.
[Equation 3]
α1 = k1 * ΣG / ΣR
β1 = k2 * ΣG / ΣB
k1, k2: Constant In step S21, it is determined whether or not the calculated division values α1 and β1 satisfy both of the two conditions shown in Equation 4.
[Equation 4]
THr1 <α1 ≦ THr2
THb1 <β1 ≦ THb2
The condition is satisfied if the divided value α1 is greater than the threshold value THr1 and less than or equal to the threshold value THr2, and if the divided value β1 is greater than the threshold value THb1 and less than or equal to the threshold value THb2. If the condition is satisfied, the process proceeds to step S23, where the gain Gr indicating the division value α1 is set in the amplifier 24a, and the gain Gb indicating the division value β1 is set in the amplifier 24b.

数4に示す条件が満足されなければ、割り算値β1が閾値THb2を上回るか否かをステップS25で判別する。ここでYESであればステップS27に進み、所定値α2を示すゲインGrをアンプ24aに設定し、所定値β2を示すゲインGbをアンプ24bに設定する。   If the condition shown in Equation 4 is not satisfied, it is determined in step S25 whether or not the division value β1 exceeds the threshold value THb2. If “YES” here, the process proceeds to a step S27 to set the gain Gr indicating the predetermined value α2 in the amplifier 24a and set the gain Gb indicating the predetermined value β2 in the amplifier 24b.

ステップS25でNOであれば、割り算値β1が閾値THb1以下であるか否かをステップS29で判別する。ここでYESであればステップS31に進み、所定値α3を示すゲインGrをアンプ24aに設定し、所定値β3を示すゲインGbをアンプ24bに設定する。   If “NO” in the step S25, it is determined whether or not the division value β1 is equal to or less than the threshold value THb1 in a step S29. If “YES” here, the process proceeds to a step S31, the gain Gr indicating the predetermined value α3 is set in the amplifier 24a, and the gain Gb indicating the predetermined value β3 is set in the amplifier 24b.

ステップS29でNOであれば、割り算値α1が閾値THr2を上回るか否かをステップS33で判別する。ここでYESであればステップS35に進み、所定値α4を示すゲインGrをアンプ24aに設定し、所定値β4を示すゲインGbをアンプ24bに設定する。ステップS33でNOであればステップS37に進み、所定値α5を示すゲインGrをアンプ24aに設定し、所定値β5を示すゲインGbをアンプ24bに設定する。   If “NO” in the step S29, it is determined whether or not the division value α1 exceeds the threshold value THr2. If “YES” here, the process proceeds to a step S35, the gain Gr indicating the predetermined value α4 is set in the amplifier 24a, and the gain Gb indicating the predetermined value β4 is set in the amplifier 24b. If “NO” in the step S33, the process proceeds to a step S37, the gain Gr indicating the predetermined value α5 is set in the amplifier 24a, and the gain Gb indicating the predetermined value β5 is set in the amplifier 24b.

図8を参照して、閾値THr1およびTHr2はゲインGrを定義する横軸上に位置し、閾値THb1およびTHb2はゲインBrを定義する縦軸上に位置する。閾値THr1,THr2,THb1およびTHb2によって囲まれる昼白色エリアは、昼白色蛍光灯を光源とする場合に的確な白バランス調整を実行できるエリアである。   Referring to FIG. 8, threshold values THr1 and THr2 are located on the horizontal axis defining gain Gr, and threshold values THb1 and THb2 are located on the vertical axis defining gain Br. The daylight white area surrounded by the thresholds THr1, THr2, THb1, and THb2 is an area where accurate white balance adjustment can be performed when a daylight white fluorescent lamp is used as a light source.

割り算値α1およびβ1が昼白色エリアに属する場合は、この割り算値α1およびβ1がゲインGrおよびGbとして設定される。割り算値α1およびβ1が昼白色エリアから外れる場合は、割り算値α1およびβ1によって特定される位置に応じて、所定値α2〜α5のいずれか1つがゲインGrとして設定され、所定値β2〜β5のいずれか1つがゲインGbとして設定される。白バランスは、こうして設定されたゲインGrおよびGbによって調整される。   When the divided values α1 and β1 belong to the daylight white area, the divided values α1 and β1 are set as the gains Gr and Gb. When the divided values α1 and β1 deviate from the daylight white area, one of the predetermined values α2 to α5 is set as the gain Gr according to the position specified by the divided values α1 and β1, and the predetermined values β2 to β5 Either one is set as the gain Gb. The white balance is adjusted by the gains Gr and Gb set in this way.

ここで、所定値α2およびβ2は白色蛍光灯に適したゲインであり、所定値α3およびβ3は3波長形昼光色蛍光灯に適したゲインである。また、所定値α4およびβ4は昼光色蛍光灯に適したゲインであり、所定値α5およびβ5は3波長形昼白色蛍光灯に適したゲインである。これらのゲインはいずれも、昼白色エリアの周縁上の値を示す。   Here, the predetermined values α2 and β2 are gains suitable for white fluorescent lamps, and the predetermined values α3 and β3 are gains suitable for three-wavelength daylight fluorescent lamps. The predetermined values α4 and β4 are gains suitable for daylight fluorescent lamps, and the predetermined values α5 and β5 are gains suitable for three-wavelength daylight white fluorescent lamps. All of these gains indicate values on the periphery of the daylight white area.

以上の説明から分かるように、撮影装置22は、被写界を表すRGBデータを出力する。出力されたRGBデータのうち、RデータおよびBデータは、白バランス調整回路26を形成するアンプ24aおよび24bによってそれぞれ増幅される。CPU36は、白バランス調整回路26から出力されるRGBデータについて所定の白バランスが得られるゲインα1およびβ1(調整ゲイン)を算出し、算出されたゲインα1およびβ1が昼白色エリア(特定範囲)に属するか否かを判別する(S21)。この判別結果が肯定的であれば、ゲインα1およびβ1がアンプ24aおよび24bにそれぞれ設定される(S23)。判別結果が否定的であれば、昼白色エリアの周縁上の値を示すゲインα2(α3,α4,α5)およびβ2(β3,β4,β5)がアンプ24aおよび24bにそれぞれ設定される。   As can be seen from the above description, the imaging device 22 outputs RGB data representing the object scene. Of the output RGB data, R data and B data are respectively amplified by the amplifiers 24 a and 24 b forming the white balance adjustment circuit 26. The CPU 36 calculates gains α1 and β1 (adjustment gain) for obtaining a predetermined white balance for the RGB data output from the white balance adjustment circuit 26, and the calculated gains α1 and β1 are in the daylight white area (specific range). It is determined whether or not it belongs (S21). If the determination result is affirmative, the gains α1 and β1 are set in the amplifiers 24a and 24b, respectively (S23). If the determination result is negative, gains α2 (α3, α4, α5) and β2 (β3, β4, β5) indicating values on the periphery of the daylight white area are set in the amplifiers 24a and 24b, respectively.

このように、ゲインα1およびβ1が昼白色エリアに属するときは、ゲインα1およびβ1が有効となる。一方、ゲインα1およびβ1が昼白色エリアに属しないときは、昼白色エリアの周縁上の値を示すゲインα2(α3,α4,α5)およびβ2(β3,β4,β5)が有効となる。つまり、有効化されるゲインは、必ず昼白色エリアに属することとなる。   Thus, when the gains α1 and β1 belong to the daylight white area, the gains α1 and β1 are effective. On the other hand, when the gains α1 and β1 do not belong to the daylight white area, the gains α2 (α3, α4, α5) and β2 (β3, β4, β5) indicating values on the periphery of the daylight white area are effective. In other words, the gain to be enabled always belongs to the daylight white area.

この結果、被写界のわずかな変化に起因するゲインの急激な変化が防止され、撮影画像の色あいを的確かつ安定的に調整することができる。かかる効果は、互いに異なる色を有する複数の光源の下で被写界を撮影するような場合に、顕著に現れる。   As a result, an abrupt change in gain due to a slight change in the object scene is prevented, and the hue of the captured image can be adjusted accurately and stably. Such an effect is prominent when the object scene is photographed under a plurality of light sources having different colors.

なお、この実施例では、昼白色エリアの周縁上の数値をゲインα2(α3,α4,α5)およびβ2(β3,β4,β5)として割り当てるようにしている。しかし、視認できるほどのゲインの急激な変化が生じない限り、図9に示すように昼白色エリアから外れる数値をゲインα2(α3,α4,α5)およびβ2(β3,β4,β5)として設定してもよい。なお、図9において実線と点線とで囲まれる範囲が、視認できるほどのゲインの急激な変化が生じない範囲である。   In this embodiment, numerical values on the periphery of the daylight white area are assigned as gains α2 (α3, α4, α5) and β2 (β3, β4, β5). However, as long as there is no sudden change in gain that can be visually recognized, numerical values that deviate from the daylight white area are set as gains α2 (α3, α4, α5) and β2 (β3, β4, β5) as shown in FIG. May be. In FIG. 9, the range surrounded by the solid line and the dotted line is a range where there is no sudden change in gain that can be visually recognized.

さらに、昼白色エリアの周縁よりも内側の数値をゲインα2(α3,α4,α5)およびβ2(β3,β4,β5)として設定してもよい。   Furthermore, numerical values inside the peripheral edge of the daylight white area may be set as gains α2 (α3, α4, α5) and β2 (β3, β4, β5).

この発明の一実施例の構成を示すブロック図である。It is a block diagram which shows the structure of one Example of this invention. 図1実施例に適用される原色フィルタの一例を示す図解図である。It is an illustration figure which shows an example of the primary color filter applied to the FIG. 1 Example. 図1実施例に適用されるCPUの動作の一部を示すフロー図である。It is a flowchart which shows a part of operation | movement of CPU applied to the FIG. 1 Example. 図1実施例に適用されるCPUの動作の他の一部を示すフロー図である。It is a flowchart which shows a part of other operation | movement of CPU applied to the FIG. 1 Example. (A)はテーブルに割り当てられた重み付け係数の一例を示す図解図であり、(B)はB−G軸およびR−G軸によって規定される平面上の色分布状態および引き込み範囲の割り当て状態を示す図解図である。(A) is an illustration figure which shows an example of the weighting coefficient allocated to the table, (B) is the color distribution state on the plane prescribed | regulated by the BG axis | shaft and the RG axis | shaft, and the allocation state of the drawing-in range. It is an illustration figure shown. 被写界の一例を示す図解図である。It is an illustration figure which shows an example of an object scene. 複数の分割エリアの割り当て状態の一例を示す図解図である。It is an illustration figure which shows an example of the allocation state of several division area. 白バランス調整動作の一部を示す図解図である。It is an illustration figure which shows a part of white balance adjustment operation | movement. この発明の他の実施例の動作の一部を示す図解図である。It is an illustration figure which shows a part of operation | movement of the other Example of this invention.

符号の説明Explanation of symbols

10 …ディジタルカメラ
16 …イメージセンサ
22 …白バランス調整回路
24a,24b …アンプ
28r,28g,28b …積算回路
30 …CPU
42 …フラッシュメモリ
DESCRIPTION OF SYMBOLS 10 ... Digital camera 16 ... Image sensor 22 ... White balance adjustment circuit 24a, 24b ... Amplifier 28r, 28g, 28b ... Integration circuit 30 ... CPU
42: Flash memory

Claims (4)

被写界を表す複数色の色情報信号を出力する撮影手段、
前記撮影手段から出力された色情報信号を増幅する増幅手段、
前記増幅手段から出力される色情報信号について所定の白バランスが得られる調整ゲインが互いに異なる複数の特定の光源色にそれぞれ対応する複数の数値によって規定される特定範囲に属するか否かを判別する判別手段、
前記判別手段の判別結果が肯定的であるとき前記調整ゲインを前記増幅手段に設定する第1設定手段、および
前記判別手段の判別結果が否定的であるとき、前記特定範囲を規定する複数の数値と前記調整ゲインとの大小関係に応じて、前記異なる複数の特定の光源色にそれぞれ対応する複数の所定範囲の内の1つに属する所定ゲインを前記増幅手段に設定する第2設定手段を備える、電子カメラ。
Photographing means for outputting color information signals of a plurality of colors representing an object scene;
Amplifying means for amplifying the color information signal output from the photographing means;
It is determined whether or not the adjustment gain for obtaining a predetermined white balance for the color information signal output from the amplifying means belongs to a specific range defined by a plurality of numerical values respectively corresponding to a plurality of different specific light source colors. Discrimination means,
A first setting unit that sets the adjustment gain in the amplification unit when the determination result of the determination unit is positive; and a plurality of numerical values that define the specific range when the determination result of the determination unit is negative And a second setting means for setting a predetermined gain belonging to one of a plurality of predetermined ranges respectively corresponding to the plurality of different specific light source colors in the amplification means according to a magnitude relationship between the adjustment gain and the adjustment gain. , Electronic camera.
前記増幅手段によって増幅された複数色の色情報信号に基づいて前記調整ゲインを決定する決定手段をさらに備え、
前記判別手段は前記決定手段によって決定された調整ゲインの値を前記複数の数値の各々と比較する、請求項1記載の電子カメラ。
Determining means for determining the adjustment gain based on a plurality of color information signals amplified by the amplifying means;
The electronic camera according to claim 1, wherein the determination unit compares the value of the adjustment gain determined by the determination unit with each of the plurality of numerical values.
前記第2設定手段は前記互いに異なる複数の光源色にそれぞれ対応する複数のゲインの1つを前記所定ゲインとして選択する、請求項1または2記載の電子カメラ。   The electronic camera according to claim 1, wherein the second setting unit selects one of a plurality of gains respectively corresponding to the plurality of different light source colors as the predetermined gain. 前記特定範囲は昼白色の光源に対応する、請求項1ないし3のいずれかに記載の電子カメラ。   The electronic camera according to claim 1, wherein the specific range corresponds to a daylight white light source.
JP2005038244A 2005-02-15 2005-02-15 Electronic camera Expired - Fee Related JP4889225B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005038244A JP4889225B2 (en) 2005-02-15 2005-02-15 Electronic camera

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005038244A JP4889225B2 (en) 2005-02-15 2005-02-15 Electronic camera

Publications (2)

Publication Number Publication Date
JP2006229355A JP2006229355A (en) 2006-08-31
JP4889225B2 true JP4889225B2 (en) 2012-03-07

Family

ID=36990353

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005038244A Expired - Fee Related JP4889225B2 (en) 2005-02-15 2005-02-15 Electronic camera

Country Status (1)

Country Link
JP (1) JP4889225B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5145454B1 (en) * 2011-12-13 2013-02-20 シャープ株式会社 White balance adjustment method, white balance adjustment device, program, and recording medium
JP5145453B1 (en) * 2011-12-13 2013-02-20 シャープ株式会社 White balance adjustment method, white balance adjustment device, program, and recording medium
WO2013088780A1 (en) * 2011-12-13 2013-06-20 シャープ株式会社 White balance adjustment method, white balance adjustment device, program and recording medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2532962B2 (en) * 1990-03-09 1996-09-11 三洋電機株式会社 Color video camera
JP2001160976A (en) * 1999-12-02 2001-06-12 Sharp Corp Image processing method, image processor and computer- readable recording medium with image processing program recorded thereon
JP4051171B2 (en) * 2000-05-30 2008-02-20 株式会社リコー White balance adjustment device
JP4477754B2 (en) * 2000-07-31 2010-06-09 株式会社日立国際電気 Color television camera
JP3948982B2 (en) * 2002-02-25 2007-07-25 三洋電機株式会社 Digital camera

Also Published As

Publication number Publication date
JP2006229355A (en) 2006-08-31

Similar Documents

Publication Publication Date Title
US9143704B2 (en) Image capturing device and method thereof
US7817206B2 (en) Determining a final exposure setting automatically for a solid state camera without a separate light metering circuit
JP5178170B2 (en) White balance adjusting device and white balance adjusting method
JP4761066B2 (en) White balance correction method and imaging apparatus
JP3510868B2 (en) Image synthesis device
KR20090127602A (en) Method and apparatus for obtaining images using entropy
JP6083974B2 (en) Image processing apparatus, image processing method, and program
JP5814799B2 (en) Image processing apparatus and image processing method
JP2004312139A (en) Imaging unit
CN110047060B (en) Image processing method, image processing device, storage medium and electronic equipment
KR101754425B1 (en) Apparatus and method for auto adjusting brightness of image taking device
JP3889867B2 (en) Imaging device
JP4889225B2 (en) Electronic camera
JP3838532B2 (en) White balance control method and apparatus
JPH11220739A (en) Video camera device
KR101005769B1 (en) Auto exposure and auto white-balance method for detecting high dynamic range conditions
JP2021002707A (en) White balance objective evaluation method, white balance objective evaluation program, and imaging device
JP4218936B2 (en) White balance adjusting device and white balance adjusting method
JP3863773B2 (en) Image photographing method and apparatus
JP5675391B2 (en) Image processing device
JP6504892B2 (en) Imaging device
JP3958700B2 (en) Digital camera
JP4067775B2 (en) White balance adjustment device
JP2021182673A (en) Image processing device, image processing method, and program
JP3948982B2 (en) Digital camera

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20080130

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20100311

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100323

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100524

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20110329

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110530

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

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20111213

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20141222

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20141222

Year of fee payment: 3

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313113

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20141222

Year of fee payment: 3

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees