JP2000278708A - Digital camera - Google Patents

Digital camera

Info

Publication number
JP2000278708A
JP2000278708A JP11085734A JP8573499A JP2000278708A JP 2000278708 A JP2000278708 A JP 2000278708A JP 11085734 A JP11085734 A JP 11085734A JP 8573499 A JP8573499 A JP 8573499A JP 2000278708 A JP2000278708 A JP 2000278708A
Authority
JP
Japan
Prior art keywords
gain
color component
color
digital camera
weighting
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.)
Pending
Application number
JP11085734A
Other languages
Japanese (ja)
Inventor
Seishin Okazaki
誠信 岡▲崎▼
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 JP11085734A priority Critical patent/JP2000278708A/en
Publication of JP2000278708A publication Critical patent/JP2000278708A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To properly adjust white balance even when a color of an object is in dispersion by calculating an optimum gain based on a principal color component. SOLUTION: A CPU 34 receives picture data corresponding to an object image from a RAM 20 to specify a principal color component of the object image based on the picture data. Then an optimum gain is calculated on the specified principal color component and set to amplifiers 26, 28. Since the optimum gain is calculated based on the principal color component, even when a color of the object is in dispersion, white balance can properly be adjusted.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】この発明は、白バランス調整回路
に関し、特にたとえばディジタルカメラに適用され、被
写体像の画像信号色情報信号から被写体の色を評価し、
色評価値に基づいて白バランスを調整する、白バランス
調整回路に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a white balance adjustment circuit, and more particularly to, for example, a digital camera, which evaluates the color of a subject from an image signal color information signal of the subject image.
The present invention relates to a white balance adjustment circuit that adjusts a white balance based on a color evaluation value.

【0002】[0002]

【従来の技術】従来のこの種の白バランス調整回路で
は、引き込み範囲内にある複数の色評価値が検出され、
検出された色評価値の平均値がR−Y軸およびB−Y軸
の交点に収束するように、白バランスが調整されてい
た。
2. Description of the Related Art In a conventional white balance adjustment circuit of this type, a plurality of color evaluation values within a pull-in range are detected.
The white balance has been adjusted so that the average value of the detected color evaluation values converges on the intersection of the RY axis and the BY axis.

【0003】[0003]

【発明が解決しようとする課題】しかし、このような従
来技術では、各色評価値がばらついた場合に白バランス
調整が不十分となる問題があった。つまり、たとえば図
10(A)に示すように色評価値が分布している場合、
色評価値の平均値が図10(B)に示すR−Y軸および
B−Y軸の交点に移動するように、アンプゲインが決定
される。このため、被写体が主に帯びている暖色系の色
に対して十分な白バランス調整が施されなかった。
However, such a conventional technique has a problem that the white balance adjustment becomes insufficient when the evaluation values of the respective colors vary. That is, for example, when the color evaluation values are distributed as shown in FIG.
The amplifier gain is determined so that the average of the color evaluation values moves to the intersection of the RY axis and the BY axis shown in FIG. For this reason, sufficient white balance adjustment has not been performed on the warm color that the subject mainly takes on.

【0004】それゆえに、この発明の主たる目的は、被
写体の持つ色にばらつきがあるときでも白バランスを適
切に調整することができる、ディジタルカメラを提供す
ることである。
[0004] Therefore, a main object of the present invention is to provide a digital camera capable of appropriately adjusting the white balance even when the colors of the subject vary.

【0005】[0005]

【課題を解決するための手段】この発明は、被写体像を
撮影する撮影手段、被写体像の主要色成分を特定する特
定手段、主要色成分に基づいて最適ゲインを算出する算
出手段、および最適ゲインに従って被写体像の白バラン
スを調整する調整手段を備える、ディジタルカメラであ
る。
SUMMARY OF THE INVENTION The present invention provides a photographing means for photographing a subject image, a specifying means for specifying a main color component of the subject image, a calculating means for calculating an optimum gain based on the main color component, and an optimum gain. Is a digital camera including an adjusting unit that adjusts a white balance of a subject image according to the following.

【0006】[0006]

【作用】撮影手段によって被写体像が撮影されると、特
定手段がこの被写体像の主要色成分を特定する。算出手
段は、主要色成分に基づいて最適ゲインを算出し、調整
手段は、算出された最適ゲインに従って被写体像の白バ
ランスを調整する。
When a subject image is photographed by the photographing means, the specifying means specifies a main color component of the subject image. The calculating means calculates the optimum gain based on the main color component, and the adjusting means adjusts the white balance of the subject image according to the calculated optimum gain.

【0007】この発明のある局面では、付与手段が第1
ゲインを画像信号に付与する。生成手段は、第1ゲイン
を持つ画像信号に基づいて複数の色成分を生成し、検出
手段は、生成された複数の色成分の中から第1範囲に含
まれる第1色成分を検出する。第1更新手段は、このよ
うにして検出された第1色成分に基づいて第1ゲインを
更新する。第1更新手段によって第1ゲインが更新され
た後に検出手段によって検出された第1色成分が、主要
色成分である。
[0007] In one aspect of the present invention, the application means is provided with the first means.
Gain is applied to the image signal. The generation unit generates a plurality of color components based on the image signal having the first gain, and the detection unit detects a first color component included in the first range from the generated plurality of color components. The first updating means updates the first gain based on the first color component detected in this manner. The first color component detected by the detecting unit after the first gain is updated by the first updating unit is the main color component.

【0008】なお、生成手段は、第1ゲインを持つ画像
信号を所定部分毎にかつ同じ色どうしで積分して複数の
色成分を生成する。
[0008] The generation means generates a plurality of color components by integrating the image signal having the first gain for each predetermined portion and for the same color.

【0009】この発明のある実施例では、第2ゲイン算
出手段が、主要色成分に基づいて第2ゲインを算出す
る。重み付け手段は、このような第2ゲインと上述の第
1ゲインとに所定の重み付けを施して、最適ゲインを求
める。
In one embodiment of the present invention, the second gain calculating means calculates the second gain based on the main color component. The weighting means obtains an optimum gain by performing predetermined weighting on the second gain and the first gain.

【0010】この発明の他の実施例では、第2検出手段
が主要色成分の中から第2範囲に含まれる第2色成分を
検出する。また、第2色成分が主要色成分に占める割合
が、割合算出手段によって算出される。重み付け手段
は、このようにして算出された割合に応じて上述の重み
付けを行う。
In another embodiment of the present invention, the second detecting means detects a second color component included in the second range from the main color components. Further, the ratio of the second color component to the main color component is calculated by the ratio calculation means. The weighting means performs the above-described weighting according to the ratio calculated as described above.

【0011】[0011]

【発明の効果】この発明によれば、被写体像の主要色成
分に基づいて最適ゲインを算出し、算出された最適ゲイ
ンに従って被写体像の白バランスを調整するようにした
ため、被写体の持つ色にばらつきがあるときでも白バラ
ンスを適切に調整することができる。
According to the present invention, the optimum gain is calculated based on the main color component of the subject image, and the white balance of the subject image is adjusted according to the calculated optimum gain. The white balance can be adjusted appropriately even when there is a color.

【0012】この発明の上述の目的,その他の目的,特
徴および利点は、図面を参照して行う以下の実施例の詳
細な説明から一層明らかとなろう。
The above objects, 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.

【0013】[0013]

【実施例】図1を参照して、この実施例のディジタルカ
メラ10は、光学レンズ12を含む。この光学レンズ1
2を通して入射された被写体像は、補色フィルタ14を
介してCCDイメージャ16に照射される。補色フィル
タ14は、図2に示すようにYe,Cy,MgおよびG
のフィルタ要素を持ち、1つのフィルタ要素が1つの画
素に対応する。このため、CCDイメージャ16から出
力されるそれぞれの画素信号は、Ye,Cy,Mgおよ
びGのいずれか1つの色のみを有する。
Referring to FIG. 1, a digital camera 10 of this embodiment includes an optical lens 12. This optical lens 1
The object image incident through 2 is irradiated on the CCD imager 16 via the complementary color filter 14. The complementary color filter 14 includes Ye, Cy, Mg, and G as shown in FIG.
And one filter element corresponds to one pixel. Therefore, each pixel signal output from the CCD imager 16 has only one color of Ye, Cy, Mg, and G.

【0014】このような画素信号が、A/D変換器18
によってディジタル信号つまり画素データに変換され、
画素データがメモリコントローラ22によってRAM2
0に一時的に格納される。
Such a pixel signal is supplied to the A / D converter 18.
Is converted into a digital signal, that is, pixel data by
The pixel data is stored in the RAM 2 by the memory controller 22.
0 is temporarily stored.

【0015】モニタ40に被写体の動画像をリアルタイ
ムで表示するカメラモードでは、メモリコントローラ2
2はRAM20へのデータの書き込みとRAM20から
のデータの読み出しを並行して実行する。このため、A
/D変換器18で生成された画像データは、1フレーム
遅れでRAM20から読み出される。信号処理回路24
は、入力された画素データからRGBデータを生成す
る。画素データは、上述のようにYe,Cy,Mgまた
はGの色を有する。このため、信号処理回路24は、こ
のような補色系の画素データにマトリクス演算を施し
て、各画素がR,GおよびBの色をもつ原色系の画素デ
ータを生成する。
In the camera mode for displaying a moving image of a subject on the monitor 40 in real time, the memory controller 2
2 executes writing data to the RAM 20 and reading data from the RAM 20 in parallel. Therefore, A
The image data generated by the / D converter 18 is read from the RAM 20 with a delay of one frame. Signal processing circuit 24
Generates RGB data from input pixel data. The pixel data has a color of Ye, Cy, Mg, or G as described above. Therefore, the signal processing circuit 24 performs a matrix operation on such complementary color-based pixel data to generate primary color-based pixel data in which each pixel has R, G, and B colors.

【0016】Rデータはアンプ26でα倍され、Bデー
タはアンプ28でβ倍される。つまり、Rデータにゲイ
ンαが与えられ、Bデータにゲインβが与えられる。一
方、Gデータにはゲインは与えられない。アンプ26お
よび28からそれぞれ出力されたR´データおよびB´
データならびに信号処理回路24から出力されたGデー
タは、その後マトリクス演算を施され、これによって輝
度データYと色差データR´−YおよびB´−Yとが生
成される。これらのデータは、その後信号処理回路36
による所定の処理を経てモニタ40に出力される。この
結果、スルー画像がモニタ画面に表示される。
The R data is multiplied by α by the amplifier 26, and the B data is multiplied by β by the amplifier 28. That is, the gain α is given to the R data, and the gain β is given to the B data. On the other hand, no gain is given to the G data. R 'data and B' output from amplifiers 26 and 28, respectively.
The data and the G data output from the signal processing circuit 24 are then subjected to a matrix operation, whereby luminance data Y and color difference data R'-Y and B'-Y are generated. These data are then transmitted to the signal processing circuit 36.
Is output to the monitor 40 through a predetermined process. As a result, a through image is displayed on the monitor screen.

【0017】R´データ、GデータおよびB´データは
また、積分回路32に入力される。画面は図3に示すよ
うに水平方向および垂直方向に16分割され、256個
の分割エリアが画面上に形成される。積分回路32は、
R´データ、GデータおよびB´データをこのような分
割エリア毎にかつ同じ色毎に積算する。このため、1フ
レーム期間に、256個の積算値IR´,256個の積
算値IGおよび256個の積算値IB´が得られる。つ
まり、各分割エリアに対応する256個の色評価値が得
られる。CPU34は、これらの色評価値に基づいてア
ンプ26および28のゲインαおよびβを制御する。こ
の結果、白バランスが適切に調整されたスルー画像がモ
ニタに表示される。
The R ′ data, G data and B ′ data are also input to the integration circuit 32. The screen is divided into 16 in the horizontal and vertical directions as shown in FIG. 3, and 256 divided areas are formed on the screen. The integration circuit 32
The R ′ data, G data and B ′ data are integrated for each of such divided areas and for each of the same colors. Therefore, 256 integrated values IR ', 256 integrated values IG, and 256 integrated values IB' are obtained in one frame period. That is, 256 color evaluation values corresponding to each divided area are obtained. The CPU 34 controls the gains α and β of the amplifiers 26 and 28 based on these color evaluation values. As a result, a through image in which the white balance is appropriately adjusted is displayed on the monitor.

【0018】オペレータがシャッタボタン42を操作す
ると、信号処理回路24が不能化される。また、メモリ
コントローラ22は、シャッタボタン42の操作に応答
してCCDイメージャ16から出力された画素データが
RAM20に書き込まれた時点で、データの書き込み動
作を中止する。但し、読み出し動作は引き続き行う。C
PU34は、RAM20から読み出された画素データを
取り込み、図4および図5に示すフロー図に従ってアン
プ26および28に最適ゲインαおよびβを設定する。
つまり、シャッタボタン42の操作に応答して撮影され
た被写体像(静止画像)の白バランスを、図4および図
5に示すフロー図に従って調整する。白バランス調整が
完了すると、信号処理回路24が再度能動化される。R
AM20から読み出された画素データは信号処理回路2
4によってRGB変換され、その後、RデータおよびB
データに最適ゲインαおよびβが付与される。ゲインα
およびβが与えられたR´データおよびB´データなら
びに信号処理回路24から出力されたGデータは、その
後信号処理回路36の処理を経て、メモリカード38に
記録される。
When the operator operates the shutter button 42, the signal processing circuit 24 is disabled. The memory controller 22 stops the data writing operation when the pixel data output from the CCD imager 16 is written into the RAM 20 in response to the operation of the shutter button 42. However, the reading operation is continued. C
The PU 34 takes in the pixel data read from the RAM 20, and sets the optimum gains α and β in the amplifiers 26 and 28 according to the flowcharts shown in FIGS.
That is, the white balance of the subject image (still image) photographed in response to the operation of the shutter button 42 is adjusted according to the flowcharts shown in FIGS. When the white balance adjustment is completed, the signal processing circuit 24 is activated again. R
The pixel data read from the AM 20 is transmitted to the signal processing circuit 2
4 for RGB conversion, and then R data and B
Optimal gains α and β are given to the data. Gain α
The R ′ data and B ′ data to which β and β have been given and the G data output from the signal processing circuit 24 are thereafter recorded in the memory card 38 through the processing of the signal processing circuit 36.

【0019】図4および図5を参照して、CPU34は
まずステップS1でカウンタ34dをリセットする。ス
テップS3では、RAM20から読み出された補色系の
画素データに数1に従ってRGB変換を施し、各画素が
R,GおよびBの全ての色を持つ原色系の画素データを
生成する。
Referring to FIGS. 4 and 5, CPU 34 first resets counter 34d in step S1. In step S3, the pixel data of the complementary color system read from the RAM 20 is subjected to RGB conversion in accordance with Equation 1, and pixel data of the primary color system in which each pixel has all the colors of R, G and B is generated.

【0020】[0020]

【数1】 (Equation 1)

【0021】CPU34は続いてステップS5に進み、
ステップS3で生成されたRデータ,GデータおよびB
データを同じ色どうしでかつ図3に示す分割エリア毎に
積算する。つまり、上述の積分回路32と同様の処理を
ソフトウェアによって実行する。この結果、256個の
積算値IR(x)、256個の積算値IG(x)および
256個の積算値IB(x)が得られる。つまり、各分
割エリアに対応する256個の色評価値が得られる。な
お、“x”は各分割エリアの番号を示し、0〜255の
いずれかの値をとる。
The CPU 34 subsequently proceeds to step S5,
R data, G data and B generated in step S3
Data is integrated for the same color and for each divided area shown in FIG. That is, the same processing as that of the integration circuit 32 described above is executed by software. As a result, 256 integrated values IR (x), 256 integrated values IG (x), and 256 integrated values IB (x) are obtained. That is, 256 color evaluation values corresponding to each divided area are obtained. Note that “x” indicates the number of each divided area, and takes any value from 0 to 255.

【0022】ステップS7では数2に従って積算値IR
(x)にゲインα1を掛け算し、ステップS9では数3
に従って積算値IB(x)にゲインβ1を掛け算する。
1回目のステップS7およびS9で用いられるゲインα
1およびβ1はメモリ34cに予め格納されており、5
100Kの色温度(基準色温度)を持つ被写体を撮影し
たときに白バランスが適切に調整される値を持つ。製造
されるそれぞれのCCDイメージャの特性には誤差があ
るため、積算値IR(x)および積算値IB(x)をそ
のまま用いると、最終的にアンプ26および28に設定
されるゲインにずれが生じる。このため、各ディジタル
カメラの製造時にゲインα1およびβ1を個別に算出
し、メモリ34cに書き込むようにしている。このよう
なゲインを積算値IR(x)および積算値IB(x)に
掛けることで、同じ被写体を撮影したときに算出される
積算値IR´(x)、IG(x)およびIB´(x)
は、各ディジタルカメラで互いに一致することとなる。
In step S7, the integrated value IR is calculated according to equation (2).
(X) is multiplied by the gain α1.
Is multiplied by the gain β1 according to the following equation.
Gain α used in first steps S7 and S9
1 and β1 are stored in the memory 34c in advance, and 5
When a subject having a color temperature of 100K (reference color temperature) is photographed, the white balance is appropriately adjusted. Since there is an error in the characteristics of each manufactured CCD imager, if the integrated value IR (x) and the integrated value IB (x) are used as they are, the gains finally set in the amplifiers 26 and 28 are shifted. . Therefore, at the time of manufacturing each digital camera, the gains α1 and β1 are individually calculated and written into the memory 34c. By multiplying the integrated value IR (x) and the integrated value IB (x) by such a gain, the integrated values IR ′ (x), IG (x), and IB ′ (x) calculated when the same subject is photographed. )
Will be the same for each digital camera.

【0023】[0023]

【数2】 (Equation 2)

【0024】[0024]

【数3】 (Equation 3)

【0025】CPU34は続いて、ステップS11で積
算値IR´(x)および積算値IB´(x)から積算値
IR´−Y(x)および積算値IB´−Y(x)を算出
する。算出された積算値IR´−Y(x)およびIB´
−Y(x)は、色差データR´−YおよびB´−Yを各
分割エリア毎に積算した値に等しい。このような積算値
IR´−Y(x)およびIB´−Y(x)もまた、各分
割エリアにおける色評価値である。
Subsequently, in step S11, the CPU 34 calculates an integrated value IR'-Y (x) and an integrated value IB'-Y (x) from the integrated value IR '(x) and the integrated value IB' (x). The calculated integrated values IR'-Y (x) and IB '
-Y (x) is equal to the value obtained by integrating the color difference data R'-Y and B'-Y for each divided area. Such integrated values IR'-Y (x) and IB'-Y (x) are also color evaluation values in each divided area.

【0026】CPU34はその後ステップS13に進
み、ステップS11で得られた色評価値に対応する重み
付け係数γ(x)を図6(A)に示す重み付けテーブル
34aから検出する。重み付けテーブル34aには重み
付け係数“0”および“1”が格納されており、各重み
付け係数は図6(B)に示すグラフに対応している。つ
まり、B−Y軸およびR−Y軸がそれぞれ17分割さ
れ、さらに、B−Y軸およびR−Y軸によって区切られ
たそれぞれの象限が64分割される。そして、このよう
にして形成された290個のエリアに上述の重み付け係
数が1つずつ割り当てられる。このうち、重み付け係数
“1”が割り当てられた範囲が第1引き込み範囲を形成
する。換言すれば、第1引き込み範囲内の重み付け係数
は全て“1”であるが、第1引き込み範囲外の重み付け
係数は全て“0”である。
The CPU 34 thereafter proceeds to step S13, and detects a weighting coefficient γ (x) corresponding to the color evaluation value obtained in step S11 from the weighting table 34a shown in FIG. Weighting coefficients “0” and “1” are stored in the weighting table 34a, and each weighting coefficient corresponds to the graph shown in FIG. In other words, the BY axis and the RY axis are each divided into 17, and each quadrant divided by the BY axis and the RY axis is divided into 64. Then, the above-mentioned weighting coefficients are assigned to the 290 areas thus formed one by one. Among these, the range to which the weighting coefficient “1” is assigned forms the first pull-in range. In other words, all the weighting factors within the first pull-in range are “1”, but all the weighting factors outside the first pull-in range are “0”.

【0027】ステップS13では、このような重み付け
テーブル34aから、図3に示す各分割エリアの重み付
け係数γ(x)を検出する。
In step S13, a weighting coefficient γ (x) of each divided area shown in FIG. 3 is detected from such a weighting table 34a.

【0028】CPU34は続いて、ステップS15およ
びS17のそれぞれで数4および数5を演算し、ステッ
プS5で得られた積算値IR(x),IG(x)および
IB(x)とステップS13で検出された重み付け係数
γ(x)とに基づいて、ゲインα2およびゲインβ2を
算出する。
Subsequently, the CPU 34 calculates Equations 4 and 5 in Steps S15 and S17, respectively, and calculates the integrated values IR (x), IG (x) and IB (x) obtained in Step S5 and Step S13. The gain α2 and the gain β2 are calculated based on the detected weighting coefficient γ (x).

【0029】[0029]

【数4】 (Equation 4)

【0030】[0030]

【数5】 (Equation 5)

【0031】重み付け係数γ(x)は“0”または
“1”しか持たないため、γ(x)をIG(x)および
IR(x)に掛けることで、色評価値が第1引き込み範
囲内にある分割エリアの積算値IG(x)およびIR
(x)だけが有効となる。数4では、このような有効積
算値IG(x)の総和と有効積算値IR(x)の総和が
とられ、これらの総和の間のずれ量が求められる。数5
においても、色評価値が第1引き込み範囲内にある分割
エリアだけが有効となり、有効な分割エリアにおける積
算値IG(x)の総和および積算値IB(x)の総和の
ずれ量が求められる。このようにして得られたゲインα
2およびβ2は、第1引き込み範囲に含まれる色評価値
の平均がR−Y軸およびB−Y軸の交点に収束するよう
な値をとる。
Since the weighting coefficient γ (x) has only “0” or “1”, by multiplying γ (x) by IG (x) and IR (x), the color evaluation value falls within the first pull-in range. Values IG (x) and IR of the divided areas in
Only (x) is valid. In Equation 4, the sum of such effective integrated values IG (x) and the sum of effective integrated values IR (x) are obtained, and the amount of deviation between these sums is obtained. Number 5
Also, only the divided areas whose color evaluation values are within the first pull-in range are valid, and the shift amount of the sum of the integrated values IG (x) and the sum of the integrated values IB (x) in the effective divided areas is obtained. The gain α thus obtained
2 and β2 take values such that the average of the color evaluation values included in the first pull-in range converges to the intersection of the RY axis and the BY axis.

【0032】CPU34は続いて、ステップS19でカ
ウンタ34dをインクリメントし、ステップS21でカ
ウンタ34dのカウント値が“2”に達したかどうか判
断する。1回目の判断時はカウント値=1であるため、
CPU32はステップS23に進み、ステップS15お
よびS17で算出されたゲインα2およびβ2によって
ゲインα1およびβ1をそれぞれ更新する。そして、ス
テップS7〜S19の処理を再度実行する。ステップS
7およびS9では、更新されたゲインα1およびβ1が
積分値IG(x)およびIR(x)に掛け算される。2
回目のステップS21の処理時点ではカウント値=2で
あるため、CPU34はステップS21でYESと判断
し、ステップS25に進む。
Subsequently, the CPU 34 increments the counter 34d in a step S19, and determines whether or not the count value of the counter 34d has reached "2" in a step S21. Since the count value is 1 at the first judgment,
The CPU 32 proceeds to step S23, and updates the gains α1 and β1 with the gains α2 and β2 calculated in steps S15 and S17, respectively. Then, the processing of steps S7 to S19 is executed again. Step S
At 7 and S9, the updated gains α1 and β1 are multiplied by the integral values IG (x) and IR (x). 2
Since the count value is 2 at the time of the processing in step S21, the CPU 34 determines YES in step S21, and proceeds to step S25.

【0033】ステップS25では、1回目のステップS
11の処理によって得られた色評価値と重み付けテーブ
ル34bとに基づいて、各分割エリアの重み付け係数λ
(x)を検出する。重み付けテーブル34bには図7
(A)に示すように複数の重み付け係数λ(x)が格納
され、これらの重み付け係数λ(x)は図7(B)に示
すグラフに対応付けられる。つまり、図7(B)に示す
グラフが上述と同様に290分割され、各エリアに
“0”または“1”が割り当てられる。このうち、
“1”が割り当てられた範囲が第2引き込み範囲を形成
する。すなわち、第2引き込み範囲内の重み付け係数は
全て“1”であり、第2引き込み範囲外の重み付け係数
は全て“0”である。ステップS25では、このような
重み付けテーブル34bから、各分割エリアの色評価値
に対応する重み付け係数を検出する。なお、図6(A)
および図7(A)から分かるように、第1引き込み範囲
は第2引き込み範囲よりも大きい。
In step S25, the first step S
11 based on the color evaluation value obtained by the processing of FIG. 11 and the weighting table 34b.
(X) is detected. FIG. 7 shows the weighting table 34b.
As shown in FIG. 7A, a plurality of weighting factors λ (x) are stored, and these weighting factors λ (x) are associated with the graph shown in FIG. 7B. That is, the graph shown in FIG. 7B is divided into 290 similarly to the above, and “0” or “1” is assigned to each area. this house,
The range to which "1" is assigned forms the second pull-in range. That is, the weighting coefficients in the second pull-in range are all “1”, and the weighting coefficients outside the second pull-in range are all “0”. In step S25, a weighting coefficient corresponding to the color evaluation value of each divided area is detected from such a weighting table 34b. Note that FIG.
7A, the first pull-in range is larger than the second pull-in range.

【0034】CPU34はその後、ステップS27で数
6を演算する。つまり、色評価値が第2引き込み範囲に
含まれる分割エリアのエリア数を第1引き込み範囲に含
まれる分割エリアのエリア数で割り、かつ“100”を
掛ける。この結果、第1引き込み範囲に含まれる色評価
値のうちさらに第2引き込み範囲にも含まれる色評価値
の割合が求められる。この割合が、重み付け量εとな
る。
Thereafter, the CPU 34 calculates Equation 6 in step S27. That is, the number of divided areas whose color evaluation values are included in the second pull-in range is divided by the number of divided areas included in the first pull-in range, and multiplied by “100”. As a result, the ratio of the color evaluation value included in the second pull-in range among the color evaluation values included in the first pull-in range is obtained. This ratio becomes the weighting amount ε.

【0035】[0035]

【数6】 (Equation 6)

【0036】ステップS23およびS25では数7およ
び数8を演算し、アンプ26および28に実際に設定す
る最適ゲインαおよびβを求める。数7では、ステップ
S23で更新されたゲインα1と2回目のステップS1
5で算出されたゲインα2とが重み付け量εに応じて重
み付けされる。数8でも同様に、ステップS23で更新
されたゲインβ1と2回目のステップS15で算出され
たゲインβ2とが重み付け量εに応じて重み付けされ
る。
In steps S23 and S25, equations (7) and (8) are calculated, and optimum gains α and β actually set in the amplifiers 26 and 28 are obtained. In equation 7, the gain α1 updated in step S23 and the second step S1
5 is weighted according to the weighting amount ε. Similarly, in equation 8, the gain β1 updated in step S23 and the gain β2 calculated in the second step S15 are weighted according to the weighting amount ε.

【0037】[0037]

【数7】 (Equation 7)

【0038】[0038]

【数8】 (Equation 8)

【0039】数7および数8によって最適ゲインαおよ
びβが算出されると、CPU34は、ステップS27で
アンプ26および28にこれらのゲインを設定し、そし
て処理を終了する。
When the optimum gains α and β are calculated by the equations (7) and (8), the CPU 34 sets these gains in the amplifiers 26 and 28 in step S27, and ends the processing.

【0040】以上のように、まずゲインα1およびβ1
が付加された色評価値に対応する重み付け係数γ(x)
が、重み付けテーブル34aから検出される。つまり、
重み付け係数γ(x)が“1”の分割エリアが有効化さ
れる。次に、有効化された分割エリアに対応するかつゲ
インα1およびβ1が付与されていない色評価値に基づ
いて、ゲインα2およびβ2が算出される。
As described above, first, the gains α1 and β1
Weighting coefficient γ (x) corresponding to the color evaluation value to which is added
Is detected from the weighting table 34a. That is,
The divided area whose weighting coefficient γ (x) is “1” is validated. Next, the gains α2 and β2 are calculated based on the color evaluation values corresponding to the activated divided areas and not provided with the gains α1 and β1.

【0041】ゲインα1およびβ1が付加されていない
色評価値とゲインα1およびβ1が付加された色評価値
とが図8(A)に示すように分布している場合、1回目
のステップS15およびS17において求められるゲイ
ンα2およびβ2は、ゲインα1およびβ1が付加され
た色評価値の平均値AがR−Y軸およびB−Y軸の交点
に移動するような値となる。つまり、色評価値が図8
(B)に示す位置に分布するように、ゲインα2および
β2が求められる。
When the color evaluation values to which the gains α1 and β1 are not added and the color evaluation values to which the gains α1 and β1 are added are distributed as shown in FIG. The gains α2 and β2 obtained in S17 are values such that the average value A of the color evaluation values to which the gains α1 and β1 are added moves to the intersection of the RY axis and the BY axis. That is, the color evaluation value is
The gains α2 and β2 are obtained so as to be distributed at the positions shown in FIG.

【0042】ゲインα2およびβ2が求められると、ゲ
インα1およびβ1がこれらのゲインによって更新さ
れ、上述と同様の処理が再度実行される。つまり、更新
されたゲインα1およびβ1(α2およびβ2)を持つ
色評価値に対応する重み付け係数γ(x)が検出され、
重み付け係数γ(x)が“1”の分割エリアが有効化さ
れる。つまり、図8(B)の暖色系の色評価値を持つ分
割エリアだけが有効となる。2回目のステップS15お
よびS17では、このような有効分割エリアに対応する
かつゲインα1およびβ1が付与されていない色評価値
に基づいてゲインα2およびβ2が更新される。更新さ
れたゲインα2およびβ2は、この暖色系の色評価値の
平均値がR−Y軸およびB−Y軸の交点に移動するよう
な値となる。
When the gains α2 and β2 are obtained, the gains α1 and β1 are updated by these gains, and the same processing as described above is executed again. That is, the weighting coefficient γ (x) corresponding to the color evaluation value having the updated gains α1 and β1 (α2 and β2) is detected,
The divided area whose weighting coefficient γ (x) is “1” is validated. That is, only the divided areas having the warm color evaluation values shown in FIG. 8B are valid. In the second steps S15 and S17, the gains α2 and β2 are updated based on the color evaluation values corresponding to such effective divided areas and not provided with the gains α1 and β1. The updated gains α2 and β2 are values such that the average value of the warm color color evaluation values moves to the intersection of the RY axis and the BY axis.

【0043】つまり、図8(A)および(B)に示すよ
うな色評価値を持つ被写体は主に暖色系の色を帯びてい
る。つまり、被写体の主要色成分は暖色である。このた
め、2回目のステップS13において暖色系の色評価値
を持つ分割エリアが有効化され、2回目のステップS1
5およびS17において、このような色評価値の平均が
R−Y軸およびB−Y軸の交点に収束するようにゲイン
α2およびβ2が求められる。
That is, a subject having a color evaluation value as shown in FIGS. 8A and 8B mainly has a warm color. That is, the main color component of the subject is a warm color. Therefore, in the second step S13, the divided area having the warm color-based color evaluation value is validated, and the second step S1 is performed.
In steps 5 and S17, the gains α2 and β2 are determined so that the average of such color evaluation values converges on the intersection of the RY axis and the BY axis.

【0044】続いて、1回目に算出されたゲインα2お
よびβ2を持つ色評価値について、第1引き込み範囲に
含まれる色評価値のうちさらに第2引き込み範囲にも含
まれる色評価値の割合εが算出される。1回目に算出さ
れたゲインα2(α1)および2回目に算出されたゲイ
ンα2は、このような割合εに応じた重み付けを施され
る。1回目に算出されたゲインβ2(β1)および2回
目に算出されたゲインβ2もまた、同様の重み付けを施
される。このようにして、実際にアンプ26および28
に設定する最適ゲインαおよびβが求められる。
Subsequently, for the color evaluation values having the gains α2 and β2 calculated at the first time, the ratio ε of the color evaluation values included in the second pull-in range among the color evaluation values included in the first pull-in range. Is calculated. The gain α2 (α1) calculated for the first time and the gain α2 calculated for the second time are weighted according to such a ratio ε. The gain β2 (β1) calculated for the first time and the gain β2 calculated for the second time are also weighted in the same manner. In this way, the amplifiers 26 and 28 are actually
Are determined.

【0045】1回目に算出されたゲインα2およびβ2
を持つ色評価値が図9に示すように第2引き込み範囲を
跨ぐ場合、最適ゲインαおよびβが付与された色評価値
は、1回目のゲインα2およびβ2が付加された色評価
値と2回目のゲインα2およびβ2が付与された色評価
値との間に分布する。
The gains α2 and β2 calculated for the first time
When the color evaluation value having the “?” Straddles the second pull-in range as shown in FIG. The second gains α2 and β2 are distributed between the assigned color evaluation values.

【0046】図8(A)に示すように色評価値が分布す
る被写体像を従来のディジタルカメラで撮影した場合、
ゲインαおよびβは、平均値AがR−Y軸およびB−Y
軸の交点に移動する値に設定されていた。このため、被
写体像が主に帯びている暖色系の色に対して十分な白バ
ランス調整が施されなかった。これに対して、この実施
例では、被写体像の主要色成分にのみ着目してゲインを
算出し、白バランスを調整するようにしている。つま
り、被写体像の主要色成分に基づいて最適ゲインを算出
し、最適ゲインをアンプに設定している。このため、被
写体の持つ色にばらつきがあるときでも、白バランスを
適切に調整することができる。
As shown in FIG. 8A, when a subject image in which color evaluation values are distributed is photographed by a conventional digital camera,
The gains α and β are such that the average value A is the RY axis and the BY
The value was set to move to the intersection of the axes. For this reason, sufficient white balance adjustment has not been performed on the warm-colored colors in which the subject image is mainly taken. In contrast, in this embodiment, the gain is calculated by focusing only on the main color components of the subject image, and the white balance is adjusted. That is, the optimum gain is calculated based on the main color component of the subject image, and the optimum gain is set in the amplifier. Therefore, even when the colors of the subject vary, the white balance can be appropriately adjusted.

【図面の簡単な説明】[Brief description of the drawings]

【図1】この発明の1実施例を示すブロック図である。FIG. 1 is a block diagram showing one embodiment of the present invention.

【図2】色フィルタを示す図解図である。FIG. 2 is an illustrative view showing a color filter;

【図3】被写体像の1例を示す図解図である。FIG. 3 is an illustrative view showing one example of a subject image;

【図4】図1実施例の動作の一部を示すフロー図であ
る。
FIG. 4 is a flowchart showing a part of the operation of the embodiment in FIG. 1;

【図5】図1実施例の動作の他の一部を示すフロー図で
ある。
FIG. 5 is a flowchart showing another portion of the operation of the embodiment in FIG. 1;

【図6】(A)は各色評価値に対応する重み付け係数の
一例を示す図解図であり、(B)は色相および色の濃さ
を示すグラフである。
FIG. 6A is an illustrative view showing one example of a weighting coefficient corresponding to each color evaluation value, and FIG. 6B is a graph showing hue and color density;

【図7】(A)は各色評価値に対応する重み付け係数の
他の一例を示す図解図であり、(B)は色相および色の
濃さを示すグラフである。
FIG. 7A is an illustrative view showing another example of a weighting coefficient corresponding to each color evaluation value, and FIG. 7B is a graph showing hue and color density;

【図8】図1実施例の動作の一部を示す図解図である。FIG. 8 is an illustrative view showing one portion of an operation of the embodiment in FIG. 1;

【図9】図1実施例の動作の他の一部を示す図解図であ
る。
FIG. 9 is an illustrative view showing another portion of the operation of the embodiment in FIG. 1;

【図10】従来技術の動作の一部を示す図解図である。FIG. 10 is an illustrative view showing one portion of a conventional operation;

【符号の説明】[Explanation of symbols]

10 …ディジタルカメラ 16 …CCDイメージャ 20 …RAM 24 …信号処理回路 26,28 …アンプ 34 …CPU DESCRIPTION OF SYMBOLS 10 ... Digital camera 16 ... CCD imager 20 ... RAM 24 ... Signal processing circuit 26,28 ... Amplifier 34 ... CPU

Claims (7)

【特許請求の範囲】[Claims] 【請求項1】被写体像を撮影する撮影手段、 前記被写体像の主要色成分を特定する特定手段、 前記主要色成分に基づいて最適ゲインを算出する算出手
段、および前記最適ゲインに従って前記被写体像の白バ
ランスを調整する調整手段を備える、ディジタルカメ
ラ。
A photographing unit for photographing a subject image; a specifying unit for specifying a main color component of the subject image; a calculating unit for calculating an optimum gain based on the main color component; A digital camera comprising an adjusting unit for adjusting a white balance.
【請求項2】前記特定手段は、第1ゲインを前記画像信
号に付与する付与手段、前記第1ゲインを持つ画像信号
に基づいて複数の色成分を生成する生成手段、前記複数
の色成分のうち第1範囲に含まれる第1色成分を検出す
る第1検出手段、および前記第1色成分に基づいて前記
第1ゲインを更新する第1更新手段を含む、請求項1記
載のディジタルカメラ。
2. The image processing apparatus according to claim 1, wherein the specifying unit includes: an applying unit that applies a first gain to the image signal; a generating unit that generates a plurality of color components based on the image signal having the first gain; 2. The digital camera according to claim 1, further comprising: first detection means for detecting a first color component included in a first range, and first updating means for updating the first gain based on the first color component.
【請求項3】前記生成手段は前記第1ゲインを持つ画像
信号を所定部分毎にかつ同じ色どうしで積分して前記複
数の色成分を生成する、請求項2記載のディジタルカメ
ラ。
3. The digital camera according to claim 2, wherein said generation means generates the plurality of color components by integrating the image signal having the first gain for each predetermined portion and between the same colors.
【請求項4】前記第1更新手段によって前記第1ゲイン
が更新された後に前記検出手段によって検出された第1
色成分が前記主要色成分である、請求項2または3記載
のディジタルカメラ。
4. The method according to claim 1, wherein said first gain is updated by said first updating means and said first gain detected by said detecting means is updated.
4. The digital camera according to claim 2, wherein a color component is the main color component.
【請求項5】前記算出手段は、前記主要色成分に基づい
て第2ゲインを算出する第2ゲイン算出手段、および前
記第1ゲインおよび前記第2ゲインに所定の重み付けを
施して前記最適ゲインを求める重み付け手段を含む、請
求項2ないし4のいずれかに記載のディジタルカメラ。
5. The second gain calculating means for calculating a second gain based on the main color component, and a predetermined weighting applied to the first gain and the second gain to calculate the optimum gain. 5. The digital camera according to claim 2, further comprising a weighting means for determining.
【請求項6】前記主要色成分のうち第2範囲に含まれる
第2色成分を検出する第2検出手段、および前記第2色
成分が前記主要色成分に占める割合を算出する割合算出
手段をさらに備え、 前記重み付け手段は前記割合に応じた重み付けを行う、
請求項5記載のディジタルカメラ。
6. A second detecting means for detecting a second color component included in a second range among the main color components, and a ratio calculating means for calculating a ratio of the second color component to the main color component. Furthermore, the weighting means performs weighting according to the ratio,
The digital camera according to claim 5.
【請求項7】前記第2範囲は前記第1範囲よりも小さ
い、請求項6記載のディジタルカメラ。
7. The digital camera according to claim 6, wherein said second range is smaller than said first range.
JP11085734A 1999-03-29 1999-03-29 Digital camera Pending JP2000278708A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP11085734A JP2000278708A (en) 1999-03-29 1999-03-29 Digital camera

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP11085734A JP2000278708A (en) 1999-03-29 1999-03-29 Digital camera

Publications (1)

Publication Number Publication Date
JP2000278708A true JP2000278708A (en) 2000-10-06

Family

ID=13867081

Family Applications (1)

Application Number Title Priority Date Filing Date
JP11085734A Pending JP2000278708A (en) 1999-03-29 1999-03-29 Digital camera

Country Status (1)

Country Link
JP (1) JP2000278708A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003250164A (en) * 2002-02-25 2003-09-05 Sanyo Electric Co Ltd Digital camera

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003250164A (en) * 2002-02-25 2003-09-05 Sanyo Electric Co Ltd Digital camera

Similar Documents

Publication Publication Date Title
CN1992820B (en) Digital camera with face detection function for facilitating exposure compensation
JP4628937B2 (en) Camera system
US8184177B2 (en) White balance control apparatus, control method therefor, and image sensing apparatus
JP2000311243A (en) Image color correction method and device
JP3540679B2 (en) White balance adjustment circuit
JP4033140B2 (en) Imaging apparatus, white balance control method, and white balance control program
US7423682B2 (en) Digital camera
JP2003009164A (en) Digital camera
JP2001238127A (en) Camera
JPH1141556A (en) Digital photograph image pickup device provided with image processing unit
JP4916341B2 (en) Image processing apparatus and image processing program
US8041206B2 (en) Imaging apparatus and method for controlling flash emission
JP2000278708A (en) Digital camera
JP4028395B2 (en) Digital camera
JP3992476B2 (en) Image processing device
JP2006074710A (en) Digital camera and camera system
JP2000217128A (en) White balance adjustment circuit
JP2007267170A (en) Electronic camera with chroma saturation regulating function and image processing program
JP4307862B2 (en) Signal processing method, signal processing circuit, and imaging apparatus
JP2004222076A (en) Image processing program and method
JP5263764B2 (en) Electronic camera
JP3628856B2 (en) Imaging device
JP4353813B2 (en) Exposure control device
JP3977260B2 (en) Digital camera and recorded image data recording method
JP4336892B2 (en) Imaging apparatus, printing apparatus, and printing system

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20040323