JP2003333616A - White balance adjustment method, image pickup device, program, and storage medium - Google Patents

White balance adjustment method, image pickup device, program, and storage medium

Info

Publication number
JP2003333616A
JP2003333616A JP2003057217A JP2003057217A JP2003333616A JP 2003333616 A JP2003333616 A JP 2003333616A JP 2003057217 A JP2003057217 A JP 2003057217A JP 2003057217 A JP2003057217 A JP 2003057217A JP 2003333616 A JP2003333616 A JP 2003333616A
Authority
JP
Japan
Prior art keywords
color temperature
white balance
white
color
image signal
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.)
Granted
Application number
JP2003057217A
Other languages
Japanese (ja)
Other versions
JP2003333616A5 (en
JP3848274B2 (en
Inventor
Eiichiro Ikeda
栄一郎 池田
Takaaki Fukui
貴明 福井
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Canon Inc
Original Assignee
Canon Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Canon Inc filed Critical Canon Inc
Priority to JP2003057217A priority Critical patent/JP3848274B2/en
Publication of JP2003333616A publication Critical patent/JP2003333616A/en
Publication of JP2003333616A5 publication Critical patent/JP2003333616A5/ja
Application granted granted Critical
Publication of JP3848274B2 publication Critical patent/JP3848274B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

<P>PROBLEM TO BE SOLVED: To always obtain accurate white balance regardless of photographing conditions. <P>SOLUTION: A white balance adjustment method is provided with a first color temperature calculation step (S1) for calculating a first color temperature from an image signal within a white detection range out of image signals from an imaging device, a second color temperature calculation step (S2) for calculating a second color temperature from an image signal within a chromatic color detection range out of the image signals from the imaging device, and white balance adjustment steps (S3 to S6) for adjusting white balance on the basis of the first and second color temperatures. <P>COPYRIGHT: (C)2004,JPO

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は、デジタルカメラや
デジタルビデオカメラなどにおける撮像装置のホワイト
バランスを調整する技術に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a technique for adjusting the white balance of an image pickup device such as a digital camera or a digital video camera.

【0002】[0002]

【従来の技術】従来の撮像装置のホワイトバランス装置
について説明する。
2. Description of the Related Art A white balance device of a conventional image pickup apparatus will be described.

【0003】撮像素子から出力された画像信号は、A/
D変換器を通りデジタル信号となる。デジタル化された
撮像素子出力信号は図3のような任意の複数のブロック
に分割され、各ブロックごとに色評価値 Cx=(R-B)/Y Cy=(R+B-2G)/Y Y=(R+G+B)/2 が算出される(原色信号の場合の変換式の例)。
The image signal output from the image sensor is A /
It becomes a digital signal through the D converter. The digitized image sensor output signal is divided into a plurality of arbitrary blocks as shown in FIG. 3, and the color evaluation value Cx = (RB) / Y Cy = (R + B-2G) / YY = (for each block. R + G + B) / 2 is calculated (example of conversion formula for primary color signal).

【0004】ここで、後述する予め設定した白検出エリ
アに色評価値(Cx,Cy)が含まれる場合に、そのブロッ
クが白であると仮定し、白と仮定されたブロックのそれ
ぞれの色画素の積分値(SumR、SumG、SumB)を算出す
る。その積分値から以下の式を用いてホワイトバランス
ゲインを算出している。 kWB_R=1.0/SumR kWB_G=1.0/SumG kWB_B=1.0/SumB 図2は、白検出エリアの例を示す図である。高色温度か
ら低色温度の光源下で任意の色温度ステップ毎に白を撮
影し、撮像素子から得られた信号値より色評価値を算出
し、それをプロットする。これにより、図2に(a)で
示すように、高色温度から低色温度までの白の判定ライ
ンが作られる。実際には白でも分光に若干のばらつきが
あるため、ラインから若干の幅をもたせる。
Here, when a color evaluation value (Cx, Cy) is included in a preset white detection area, which will be described later, it is assumed that the block is white, and each color pixel of the block assumed to be white. The integrated value of (SumR, SumG, SumB) is calculated. The white balance gain is calculated from the integrated value using the following formula. kWB_R = 1.0 / SumR kWB_G = 1.0 / SumG kWB_B = 1.0 / SumB FIG. 2 is a diagram showing an example of a white detection area. White is photographed at every arbitrary color temperature step under a light source of high color temperature to low color temperature, a color evaluation value is calculated from a signal value obtained from an image sensor, and the value is plotted. As a result, as shown in FIG. 2A, a white judgment line from a high color temperature to a low color temperature is created. In fact, even if it is white, there is some variation in the spectrum, so there is a slight width from the line.

【0005】しかしながら、従来のホワイトバランス検
出装置では以下のような欠点があった。
However, the conventional white balance detection device has the following drawbacks.

【0006】例えば、太陽光などの高色温度光源下で人
肌アップなどを撮影した場合、太陽光源下の白色被写体
の色評価値は(図2に示す「White」)のように分布す
るが、人肌の色評価値は(図2に示す「Skin」)のよう
に低色温度光源下の白色とほぼ同一位置に分布する。こ
のため、肌色の面積が大きい場合、実際より低い光源と
誤判別してしまう問題点があった。
[0006] For example, when human skin up and the like are photographed under a high color temperature light source such as sunlight, the color evaluation value of a white subject under the sun light source is distributed as (“White” shown in FIG. 2). The color evaluation value of human skin is distributed at almost the same position as white under a low color temperature light source as shown in (Skin ”in FIG. 2). Therefore, when the skin color area is large, there is a problem in that the light source is erroneously determined to be lower than the actual light source.

【0007】従来は、このような誤判別を避けるため
に、被写体照度が明るい場合は外光である可能性が高い
という仮定で、白検出範囲をWhiteで示す範囲のように
狭めて、低色温度の光源をひろわないように工夫してい
た。
Conventionally, in order to avoid such misjudgment, the white detection range is narrowed to a range shown by White on the assumption that there is a high possibility that it is external light when the illuminance of the subject is bright, and low white color is detected. It was devised so that the temperature light source was not picked up.

【0008】[0008]

【発明が解決しようとする課題】しかしながら、従来の
ホワイトバランス装置では、スタジオなどのタングステ
ン光など色温度が低く照度が非常に大きい場合には対応
できず、また、日陰や夕方などの被写体が暗い場合に
は、色温度の高い光源から低い光源まで検出する必要が
あるため、白検出範囲を広くしなければならず、これに
より、肌色にひっぱられるという問題点を解消すること
はできなかった。
However, the conventional white balance device cannot deal with the case where the color temperature is low and the illuminance is very large such as tungsten light in the studio, and the subject such as the shade or the evening is dark. In this case, since it is necessary to detect from a light source having a high color temperature to a light source having a low color temperature, it is necessary to widen the white detection range, which cannot solve the problem of being attracted to the skin color.

【0009】従って、本発明は上述した課題に鑑みてな
されたものであり、その目的は、撮影条件によらず、常
に正確なホワイトバランスを取ることができるようにす
ることである。
Therefore, the present invention has been made in view of the above-mentioned problems, and an object thereof is to always obtain an accurate white balance regardless of photographing conditions.

【0010】[0010]

【課題を解決するための手段】上述した課題を解決し、
目的を達成するために、本発明に係わるホワイトバラン
ス調整方法は、撮像素子からの画像信号のうちの白検出
範囲内の画像信号から第1の色温度を算出する第1の色
温度算出工程と、前記撮像素子からの画像信号のうちの
有彩色検出範囲内の画像信号から第2の色温度を算出す
る第2の色温度算出工程と、前記第1の色温度と前記第
2の色温度に基づいてホワイトバランスを調整するホワ
イトバランス調整工程とを具備することを特徴としてい
る。
[Means for Solving the Problems]
In order to achieve the object, a white balance adjusting method according to the present invention includes a first color temperature calculating step of calculating a first color temperature from an image signal within a white detection range of image signals from an image sensor. A second color temperature calculating step of calculating a second color temperature from an image signal within a chromatic color detection range of the image signal from the image sensor, the first color temperature and the second color temperature And a white balance adjusting step of adjusting the white balance based on the above.

【0011】[0011]

【発明の実施の形態】以下、添付の図面に沿って本発明
の実施の形態を説明する。
BEST MODE FOR CARRYING OUT THE INVENTION Embodiments of the present invention will be described below with reference to the accompanying drawings.

【0012】(第1の実施の形態)図1は、本発明の実
施形態に係わるホワイトバランス装置を備える撮像装置
の概略構成を示すブロック図である。
(First Embodiment) FIG. 1 is a block diagram showing the schematic arrangement of an image pickup apparatus having a white balance apparatus according to the embodiment of the present invention.

【0013】図1において、レンズ18を通過した光を
CCD19において受光し、CCDからの出力信号をA
/D変換器20においてデジタル信号にした後、本発明
の実施形態のWB回路6においてホワイトバランスをと
り、色信号作成回路21において色差信号U,Vを作成
し、また、輝度信号作成回路において輝度信号Yを作成
することで、カラー画像を得ることが可能である。
In FIG. 1, the light passing through the lens 18 is received by the CCD 19, and the output signal from the CCD is A
After being converted into a digital signal in the D / D converter 20, white balance is taken in the WB circuit 6 of the embodiment of the present invention, color difference signals U and V are created in the color signal creation circuit 21, and luminance is created in the brightness signal creation circuit A color image can be obtained by creating the signal Y.

【0014】図2および図8は白検出範囲と肌色検出範
囲を示した図である。本実施形態では原色フィルタを使
用した撮像素子を例にあげて説明する。図2において、
「White」,「Skin」で示した領域は、白色、
肌色が、それぞれ、屋外など高色温度において撮影した
場合に検出される領域を示している。図8において、
「White」,「Skin」で示した領域は、白色、
肌色が、それぞれ、タングステン光など低色温度におい
て撮影した場合に検出される領域を示している。
2 and 8 are diagrams showing a white detection range and a skin color detection range. In the present embodiment, an image sensor using a primary color filter will be described as an example. In FIG.
The areas indicated by “White” and “Skin” are white,
The flesh colors respectively indicate the areas detected when the image is taken at a high color temperature such as outdoors. In FIG.
The areas indicated by “White” and “Skin” are white,
Each flesh color indicates an area detected when the image is taken at a low color temperature such as tungsten light.

【0015】白検出範囲は高色温度から低色温度まで、
任意のステップで白色を撮影した撮像素子の出力値か
ら、 Cx=(R-B)/Y Cy=(R+B-2G)/Y Y=(R+G+B)/2 …(1) を計算し、2次元軸にプロットしたものである(図2に
(a)で示す)。ここで、X軸が光源の色温度に対応
し、Y軸が緑方向補正量に対応している。このようにし
て白検出範囲(細かい点線が示す範囲)を作成してお
く。
The white detection range is from high color temperature to low color temperature,
Calculate Cx = (RB) / Y Cy = (R + B-2G) / YY = (R + G + B) / 2 (1) from the output value of the image sensor that captured white in any step. It is plotted on a two-dimensional axis (shown by (a) in FIG. 2). Here, the X axis corresponds to the color temperature of the light source, and the Y axis corresponds to the green direction correction amount. In this way, the white detection range (the range indicated by the fine dotted line) is created.

【0016】また、肌色に対しても同様に、各色温度毎
に人肌を撮影し、軸にプロットしたものである(図2に
(b)で示す)。ここで、人肌は、白人、黒人、黄色人
など様々いるが、各人肌における色相値はあまりかわら
ないので、ほぼ中間的な肌色を用いて肌検出軸を作成す
る。そして緑色補正を行うためにこの肌検出軸に対して
Y軸方向に検出範囲を広げたものが肌検出範囲(細かい
点線が示す範囲)である。
Similarly, for skin color, human skin is photographed for each color temperature and plotted on the axis (shown by (b) in FIG. 2). Here, there are various human skins such as whites, blacks, and yellows, but since the hue value of each human skin does not change so much, the skin detection axis is created using an almost intermediate skin color. The skin detection range (the range indicated by the fine dotted line) is obtained by expanding the detection range in the Y-axis direction with respect to the skin detection axis for performing the green correction.

【0017】以上の検出軸を用いて、本実施形態のホワ
イトバランスを検出する動作を図5に示すフローチャー
トを参照して説明する。
The operation of detecting the white balance of this embodiment using the above detection axes will be described with reference to the flow chart shown in FIG.

【0018】まず、図3に示す1画面を任意の大きさの
ブロックに分割する。そして、各ブロック毎において、
撮像素子からの色信号に基づいて白評価値(Cx、Cy)を
計算し、図の白検出範囲、肌検出範囲に入るか否かを判
定する。
First, one screen shown in FIG. 3 is divided into blocks of arbitrary size. And in each block,
A white evaluation value (Cx, Cy) is calculated based on the color signal from the image sensor, and it is determined whether or not the white detection range and the skin detection range in the figure are entered.

【0019】次に、白検出範囲内に含まれるブロックの
各色フィルタの出力値の積分値SumRw、SumGw、SumBw及
び総サンプル数SampleWNumを算出する。 SumRw=ΣR(i) SumGw=ΣG(i) SumBw=ΣB(i) …(2) SampleWNum= ΣSample(i) 更に、上記積分値から白評価値SumCxW、SumCyWを算出す
る。 SumCxW=(SumRw-SumBw)/Yw SumCyW=(SumRw+SumBw-2SumGw)/Yw …(3) Yw=(SumRw+SumGr+SumBg)/2 この白評価値より、被写体(撮像画面内)の色温度(第
1の色温度:CTempFromWhite)を予測する(ステップS
1)。白検出軸のX軸は色温度に対応する軸であるの
で、SumCxWがわかれば光源色温度は計算可能である。
Next, the integrated values SumRw, SumGw, SumBw of the output values of the color filters of the blocks included in the white detection range and the total sample number SampleWNum are calculated. SumRw = ΣR (i) SumGw = ΣG (i) SumBw = ΣB (i) (2) SampleWNum = ΣSample (i) Further, the white evaluation values SumCxW and SumCyW are calculated from the integrated value. SumCxW = (SumRw-SumBw) / Yw SumCyW = (SumRw + SumBw-2SumGw) / Yw (3) Yw = (SumRw + SumGr + SumBg) / 2 Color temperature of the subject (in the image capture screen) from this white evaluation value Predict (first color temperature: CTempFromWhite) (step S
1). Since the X axis of the white detection axis corresponds to the color temperature, the light source color temperature can be calculated if SumCxW is known.

【0020】同様に、肌検出範囲内に含まれるブロック
の各色フィルタの出力値の積分値及び総サンプル数を算
出する。 SumRskin(赤),SumGskin(緑),SumBskin(青),SampleSkinNum(総サンプル数 )…(4) また、上記積分値より肌評価値SumCxSkin、SumCySkinを
算出する。 SumCxSkin=(SumRskin-SumBskin)/Yskin SumCySkin=(SumRskin+SumBw-2SumGskin)/Yskin …(5) Yskin= (SumRskin+SumGw+SumBskin)/2 この肌評価値より、被写体(撮像画面内)の色温度(第
2の色温度:CTempFromSkin)を予測する(ステップS
2)。
Similarly, the integral value and the total number of samples of the output values of the color filters of the blocks included in the skin detection range are calculated. SumRskin (red), SumGskin (green), SumBskin (blue), SampleSkinNum (total number of samples) (4) Further, the skin evaluation values SumCxSkin and SumCySkin are calculated from the above integrated values. SumCxSkin = (SumRskin-SumBskin) / Yskin SumCySkin = (SumRskin + SumBw-2SumGskin) / Yskin… (5) Yskin = (SumRskin + SumGw + SumBskin) / 2 From this skin evaluation value, the color temperature of the subject (in the imaging screen) (Second color temperature: CTempFromSkin) is predicted (step S
2).

【0021】ここで、SumCxと色温度との関係を示す図
6を用いてステップS1およびステップS2において求
められたSumCxW, SumCxSkinから各色温度を予測する方
法を説明する。
A method of predicting each color temperature from SumCxW, SumCxSkin obtained in step S1 and step S2 will be described with reference to FIG. 6 showing the relationship between SumCx and color temperature.

【0022】SumCxWから色温度CtempFromWhiteを求める
場合、図6の式L1を用いる。式L1は、 L1:Ctemp=α×SumCx+m(但し、αは負の係数であり、mは4000K前後の値であ る) …(6)’ として表わされる。
When the color temperature CtempFromWhite is obtained from SumCxW, the equation L1 in FIG. 6 is used. Formula L1 is expressed as L1: Ctemp = α × SumCx + m (where α is a negative coefficient and m is a value around 4000K) (6) ′.

【0023】また、SumCxSkinから色温度CtempFromSkin
を求める場合、図6の式L2を用いる。式L2は、 L2:Ctemp=α×SumCx+n(但し、n>mであり、mは人肌として定義した色相によ って定められる) …(7)’ として表わされる。
In addition, the color temperature CtempFromSkin from SumCxSkin
When obtaining, the equation L2 in FIG. 6 is used. Formula L2 is expressed as L2: Ctemp = α × SumCx + n (where n> m, and m is determined by the hue defined as human skin) (7) ′.

【0024】なお、式L1は各色温度毎に白紙などを撮
影したときの色温度をプロットすることによって予め求
められているものとする。また、式L2においても各色
温度毎に人肌を撮影したときの色温度をプロットするこ
とによって予め求められているものとする。
The expression L1 is preliminarily obtained by plotting the color temperature when a blank sheet is photographed for each color temperature. Further, in the formula L2 as well, it is assumed that it is obtained in advance by plotting the color temperature when the human skin is photographed for each color temperature.

【0025】そして、白評価値より算出した色温度と肌
評価値より算出した色温度を比較する(ステップS
3)。
Then, the color temperature calculated from the white evaluation value and the color temperature calculated from the skin evaluation value are compared (step S
3).

【0026】白検出で正しい色温度が検出できていれば
(高色温度下であってかつ肌色面積が少ない場合)、 CtempFromWhite≧CTempFromSkin …(6) となる(ステップS3Yes)。よって白検出結果の色
温度を最終的な光源の色温度と判定する(ステップS
4)。なお、白検出結果の色温度が肌検出結果の色温度
より高い場合も、白検出結果の色温度を最終的な光源の
色温度と判定する。
If the correct color temperature can be detected by the white detection (when the color temperature is high and the skin color area is small), CtempFromWhite ≧ CTempFromSkin (6) is satisfied (step S3 Yes). Therefore, the color temperature of the white detection result is determined as the final color temperature of the light source (step S
4). Even when the color temperature of the white detection result is higher than the color temperature of the skin detection result, the color temperature of the white detection result is determined as the final color temperature of the light source.

【0027】しかしながら、色温度の高低に関わらず、
肌色の面積が多いときには、白検出軸の低色温度側に肌
色が多く分布するために、肌検出範囲から予測された色
温度より低くなり、 CTempFromWhite<CTempFromSkin …(7) という結果になる(ステップS3No)。これが肌色の
ひっぱられをあらわしており、このような場合には、肌
色の検出領域において予測された色温度CTempFromSkin
を出力する(ステップS5)。また、タングステン光な
どの低色温度下において撮影された場合、肌色が存在し
ない場合においても白色が肌検出範囲に含まれることに
なるので、やはり式(7)の結果を用いることになる。
この場合、後述のステップS5の処理によって白検出結
果CTempFromWhite、肌検出結果CtempFromSkinが加重平
均されるのでその影響はなくなる。
However, regardless of whether the color temperature is high or low,
When the skin color area is large, the skin temperature is lower than the color temperature predicted from the skin detection range because the skin color is mostly distributed on the low color temperature side of the white detection axis, resulting in CTempFromWhite <CTempFromSkin… (7) (step S3 No). This indicates that the skin color is pulled, and in such a case, the predicted color temperature CTempFromSkin in the skin color detection area is calculated.
Is output (step S5). Further, when the image is taken under a low color temperature such as tungsten light, white is included in the skin detection range even when there is no skin color, and thus the result of Expression (7) is also used.
In this case, the white detection result CTempFromWhite and the skin detection result CtempFromSkin are weighted averaged by the process of step S5 described later, so that the influence is eliminated.

【0028】ここで、デジタル的に白検出結果CTempFro
mWhite、肌検出結果CTempFromSkinをきりかえてホワイ
トバランス補正に用いると、若干のシーンずれでホワイ
トバランスの切り替わりが発生してしまう場合がある。
よって、これを防ぐ理由からも、肌検出されたサンプル
数の割合によって、2つの係数を加重平均する処理(以
下、この処理をサンプル数係数MIXと呼ぶ)を行うこと
がより好ましい。以下、例をあげてこのサンプル数係数
MIX処理を説明する。
Here, the white detection result CTempFro is digitally obtained.
If mWhite and the skin detection result CTempFromSkin are used for white balance correction, the white balance may change due to a slight scene shift.
Therefore, for the reason of preventing this, it is more preferable to perform the process of weighted averaging two coefficients according to the ratio of the number of samples for which skin is detected (hereinafter, this process is referred to as sample number coefficient MIX). Below is an example of this sample number coefficient
The MIX processing will be described.

【0029】1画面を分割して得られるブロック数のト
ータルをAllSampleNumberとし、肌検出されたサンプル
ポイントの合計より、以下の式を用いて、肌が画面の何
%を占めていたかを判断する。 SkinSamplePercent= SampleSkinNum×100/AllSampleNumber …(8) このSkinSamplePercentを用いて、以下の式を用いて最
終的な被写体の色温度を算出する。 CTempResult=k×CTempFromSkin+(1−k)×CTempFromWhite …(9) 例えばSkinSamplePercentが10%以上の場合は、肌検
出結果を100%(k=1)使用し、SkinPercentが10%
をきると徐々に白検出結果をまぜはじめる。SkinSample
Percentが5%で、肌検出結果を50%(k=0.5)、白検
出結果を50%とし、SkinSamplePercentが0%で、肌
検出結果が0%(k=0)、白検出結果が100%になる
ように設定する。
The total number of blocks obtained by dividing one screen is AllSampleNumber, and from the total of the sample points detected for skin, the following formula is used to determine what percentage of the screen the skin occupies. SkinSamplePercent = SampleSkinNum × 100 / AllSampleNumber (8) Using this SkinSamplePercent, the final color temperature of the subject is calculated using the following equation. CTempResult = k × CTempFromSkin + (1-k) × CTempFromWhite (9) For example, when SkinSamplePercent is 10% or more, 100% (k = 1) of skin detection result is used and SkinPercent is 10%.
When you turn off, the white detection result starts to be mixed gradually. SkinSample
Percent is 5%, skin detection result is 50% (k = 0.5), white detection result is 50%, SkinSamplePercent is 0%, skin detection result is 0% (k = 0), white detection result is 100%. To be set.

【0030】このようにして求められた色温度に基づい
てホワイトバランス係数を算出し、撮像信号のホワイト
バランス補正処理を実行する(ステップ6)。
The white balance coefficient is calculated based on the color temperature thus obtained, and the white balance correction processing of the image pickup signal is executed (step 6).

【0031】なお、本実施の形態においては、CTempFro
mWhite<CtempFromSkinの場合にCtempFromWhiteおよびC
tempFromSkinの加重平均を行っていたが、CtempFromWhi
te≧CTempFromSkinの場合にこれらの色温度の加重平均
をおこなってもよい。この場合処理が簡略化するので応
答性が向上する。
In the present embodiment, CTempFro
CtempFromWhite and C if mWhite <CtempFromSkin
I was doing a weighted average of tempFromSkin, but CtempFromWhi
A weighted average of these color temperatures may be performed when te ≧ CTempFromSkin. In this case, the processing is simplified and the responsiveness is improved.

【0032】以上説明したように、光源の色温度の高
低、および撮影画面内の肌色の有無に関わらず、適切な
ホワイトバランス補正が可能となる。
As described above, appropriate white balance correction can be performed regardless of whether the color temperature of the light source is high or low, and whether or not there is a flesh color in the photographing screen.

【0033】(第2の実施形態)本実施形態では、第1
の実施形態の白検出によって予測された色温度と肌検出
によって予測された被写体色温度のミックス方法が異な
る。図7は第2の実施の形態における撮像装置の動作処
理フローチャートであり、図7を用いて本実施の形態の
処理を説明する。
(Second Embodiment) In this embodiment, the first embodiment
The method of mixing the color temperature predicted by the white detection and the subject color temperature predicted by the skin detection in the above embodiment is different. FIG. 7 is an operation processing flowchart of the image pickup apparatus according to the second embodiment, and the processing according to the present embodiment will be described with reference to FIG.

【0034】まず白検出からの色温度CtempFromWhite
(第1の色温度)よりSumCxW及びSumCyWを求め、さら
に、式(1)の連立方程式を解くことで撮像素子の色画
素出力値Rw、Gw、Bw値を逆算する。
First, the color temperature CtempFromWhite from white detection
SumCxW and SumCyW are calculated from (first color temperature), and the simultaneous equations of equation (1) are solved to back-calculate the color pixel output values Rw, Gw, and Bw of the image sensor.

【0035】これより、ホワイトバランス係数WB_Rw、W
B_Gw、WB_Bwを算出する(ステップS21)。 WB_Rw=1.0/Rw WB_Gw=1.0/Gw …(10) WB_Bw=1.0/Bw 次に、肌検出からの色温度CTempFromSkin(第2の色温
度)より、肌検出軸でのCxFromSkin、CyFromSkinを算出
する。この算出方法は第1の実施の形態と同様である。
これから、先ほどと同様に連立方程式を解くことで、R
s、Gs、Bs値を求める。更にこれより、肌からのホワイ
トバランス係数WB_Rs、WB_Gs、WB_Bsを算出する(ステ
ップS22)。 WB_Rs=1.0/Rs WB_Gs=1.0/Gs …(11) WB_Bs=1.0/Bs 画面の予め指定したブロック(図4のような画面中央
部)内において得られる色信号に対して、上記2種類の
WB係数のそれぞれに基づいてホワイトバランス補正を行
い、その補正された信号より色差信号を作成し、色差信
号の平均値を算出する(ステップS23)。白からのホ
ワイトバランス係数に基づいて補正された信号から色差
信号を算出し、色差信号の絶対値の和を平均化したもの
を、 AveCrw、AveCbw …(12) とし、肌からのホワイトバランス係数に基づいて補正さ
れた信号から色差信号を算出し、色差信号の絶対値の和
を平均したものを、 AveCrs、AveCbs …(13) とする。
From this, the white balance coefficients WB_Rw, W
B_Gw and WB_Bw are calculated (step S21). WB_Rw = 1.0 / Rw WB_Gw = 1.0 / Gw (10) WB_Bw = 1.0 / Bw Next, from the color temperature CTempFromSkin (second color temperature) from skin detection, CxFromSkin on the skin detection axis , CyFromSkin is calculated. This calculation method is the same as in the first embodiment.
By solving the simultaneous equations as before, R
Find the s, Gs, and Bs values. Further, from this, the white balance coefficients WB_Rs, WB_Gs, and WB_Bs from the skin are calculated (step S22). WB_Rs = 1.0 / Rs WB_Gs = 1.0 / Gs (11) WB_Bs = 1.0 / Bs For the color signals obtained in the pre-designated block of the screen (center part of the screen as shown in Fig. 4) , The above two types
White balance correction is performed based on each WB coefficient, a color difference signal is created from the corrected signal, and an average value of the color difference signals is calculated (step S23). The color difference signal is calculated from the signal corrected based on the white balance coefficient from white, and the sum of the absolute values of the color difference signals is averaged to obtain AveCrw, AveCbw (12), which is used as the white balance coefficient from the skin. A color difference signal is calculated from the signal corrected based on the above, and an average of sums of absolute values of the color difference signals is defined as AveCrs, AveCbs, ... (13).

【0036】これより彩度を算出すると、 ChromaW=sqrt(AveCrw12+AveCbw12) ChromaS=sqrt(AveCrs12+AveCbs12) …(14) となる(ステップS25)。When the saturation is calculated from this, ChromaW = sqrt (AveCrw1 2 + AveCbw1 2 ) ChromaS = sqrt (AveCrs1 2 + AveCbs1 2 ) ... (14) (step S25).

【0037】ここで、白検出から算出されたWB係数が正
しければ(肌にひっぱられていなければ) ChromaW=ChromaS …(15) となるが、白色を検出する際に人物の肌色にひっぱられ
ると肌色を無彩色にするように(画面全体が青くなる方
向に)動作してしまう。つまり、人肌が画面中央部にあ
って、肌色が白色検出領域に存在する場合には、 ChromaW<ChromaS …(16) となる。
Here, if the WB coefficient calculated from the white detection is correct (if it is not pulled on the skin), ChromaW = ChromaS (15), but if it is pulled on the skin color of a person when white is detected. It operates so that the flesh color is achromatic (in the direction that the entire screen turns blue). That is, when the human skin is in the center of the screen and the skin color is in the white detection area, ChromaW <ChromaS (16).

【0038】式(15)のような状態になったとき、白
検出からの色温度CtempFromWhiteを出力する(ステップ
S27)。一方、式(16)のような場合、肌検出から
の色温度CTempFromSkinを用いてホワイトバランス係数
を算出してもよいが、急激な画面のホワイトバランス補
正の切換わりを防ぐため、第1の実施形態と同じような
加重平均を用いて最終的な被写体の色温度を予測する
(ステップS26)。 CTempResult= k×CTempFromSkin+(1−k)×CTempFromWhite …(17) ただし、式(17)において、k,CTempResult,CTempF
romSkin,CTempFromWhiteは、第1の実施形態と同様の
意味を表わすものとする。式(17)は肌色が多く検出
されればされるほど肌検出からの色温度CTempFromSkin
を重視することを意味する。例えば、画面内の全てに肌
色が検出された場合は肌検出からの色温度CTempFromSki
nのみを採用することになるので、画面中から白色が検
出されない場合においても適切なホワイトバランス補正
を行うことができる。
When the state of equation (15) is reached, the color temperature CtempFromWhite from white detection is output (step S27). On the other hand, in the case of Expression (16), the white balance coefficient may be calculated using the color temperature CTempFromSkin from the skin detection, but in order to prevent a sudden change of the white balance correction of the screen, the first embodiment is performed. The final color temperature of the subject is predicted using the weighted average similar to the form (step S26). CTempResult = k × CTempFromSkin + (1-k) × CTempFromWhite (17) However, in Expression (17), k, CTempResult, CTempF
romSkin and CTempFromWhite have the same meaning as in the first embodiment. Equation (17) indicates that the more the skin color is detected, the color temperature CTempFromSkin from the skin detection.
Means to attach importance to. For example, if the skin color is detected in all of the screen, the color temperature CTempFromSki from the skin detection is detected.
Since only n is adopted, appropriate white balance correction can be performed even when white is not detected in the screen.

【0039】このようにして得られた色温度からホワイ
トバランス補正を行うための係数を決定する(ステップ
S28)。
From the color temperature thus obtained, the coefficient for white balance correction is determined (step S28).

【0040】なお、本実施の形態においては、ChromaW
<ChromaSの場合にCtempFromWhiteおよびCtempFromSkin
の加重平均を行っていたが、ChromaW≧ChromaSの場合に
これらの色温度の加重平均をおこなってもよい。この場
合処理が簡略化するので応答性が向上する。
In the present embodiment, ChromaW
<CtempFromWhite and CtempFromSkin for ChromaS
However, the weighted average of these color temperatures may be performed when ChromaW ≧ ChromaS. In this case, the processing is simplified and the responsiveness is improved.

【0041】なお、ステップS25の処理では肌色の検
出が少ないため、確度が低い可能性が考えられる。この
場合、ステップS25に進む前の処理において、肌検出
範囲から検出されるサンプル数がある値より小さい場合
には(例えば、SkinSamplePercentが1%以下)ステッ
プS27の処理に進み、それ以外の場合にはステップS
25の処理に進むようにしてもよい。
In the process of step S25, since the skin color is less detected, the accuracy may be low. In this case, in the process before proceeding to step S25, if the number of samples detected from the skin detection range is smaller than a certain value (for example, SkinSamplePercent is 1% or less), the process proceeds to step S27, and otherwise. Is step S
You may make it progress to the process of 25.

【0042】以上説明したように、本実施の形態におい
ても適切なホワイトバランスの補正を行うことができ
る。
As described above, appropriate white balance correction can be performed also in this embodiment.

【0043】(第3の実施形態)本実施形態では、第1
の実施形態の白検出からの被写体色温度と肌検出からの
被写体色温度のミックス方法(図5のステップ5)とは
異なるミックス方法を示す。
(Third Embodiment) In the present embodiment, the first
6 illustrates a mixing method different from the method for mixing the subject color temperature from white detection and the subject color temperature from skin detection (step 5 in FIG. 5) according to the embodiment.

【0044】白検出、肌検出の対象となった撮像素子の
複数ブロックの総数を AllBlockNum …(18) とする。
The total number of the plurality of blocks of the image pickup device subjected to white detection and skin detection is AllBlockNum (18).

【0045】白検出範囲に含まれるブロック数SampleWN
umとAllBlockNumを用いて、白と判別されたブロックの
割合WBlockPercentを算出する。 WBlockPercent= SampleWNum/AllBlockNum×100 …(19) この割合を用いて以下のような加重加算を用いて最終の
被写体色温度(CTempResult)を算出する。
Number of blocks included in the white detection range SampleWN
Using um and AllBlockNum, the percentage WBlockPercent of blocks determined to be white is calculated. WBlockPercent = SampleWNum / AllBlockNum × 100 (19) Using this ratio, the final subject color temperature (CTempResult) is calculated using the following weighted addition.

【0046】(例) WBlockPercent>10%を満たす場合、 CTempResult=CTempFromWhite …(20) とする。(Example) If WBlockPercent> 10%, CTempResult = CTempFromWhite (20) And

【0047】また、WBlockPercent>10%を満たさな
い場合、 CTempResult=WhiteRatio×CTempWhite+(1-WhiteRati
o)×CtempFromSkin ここで、WhiteRatioは、WBlockPercent=10%のときWh
iteRatio=1.0、WBlockPercent=0%のときWhiteRatio
=0.0となるように、WhiteRatio= a×WBlockPercent+b
…(21) の1次関数で色温度が求まる。
When WBlockPercent> 10% is not satisfied, CTempResult = WhiteRatio × CTempWhite + (1-WhiteRati
o) × CtempFromSkin where WhiteRatio is Wh when WBlockPercent = 10%
WhiteRatio when itRatio = 1.0 and WBlockPercent = 0%
= Ratio = a × WBlockPercent + b
The color temperature is obtained by the linear function of (21).

【0048】本実施形態では、白検出と有彩色の検出と
して肌色を用いたが、肌色のみならず、葉っぱなどの
緑、青空などの青を用いても効果は期待できる。
In this embodiment, the skin color is used for the white detection and the chromatic color detection, but the effect can be expected by using not only the skin color but also the green such as the leaf and the blue such as the blue sky.

【0049】(第4の実施形態)本実施形態では、第1
の実施形態の白検出からの被写体色温度と肌検出からの
被写体色温度のミックス方法が第1の実施の形態の方法
(図5のステップ5)とは異なる形態を示す。
(Fourth Embodiment) In this embodiment, the first
The method of mixing the subject color temperature from the white detection and the subject color temperature from the skin detection in the embodiment of the present invention is different from the method of the first embodiment (step 5 in FIG. 5).

【0050】本実施形態では、カメラの撮影モードがポ
ートレートモード(人物撮影モード)と指定されたとき
に、肌検出からの被写体色温度情報を用いてホワイトバ
ランスをとる。
In this embodiment, when the photographing mode of the camera is designated as the portrait mode (portrait photographing mode), white color balance is obtained using the subject color temperature information from the skin detection.

【0051】あるいは、カメラの撮影モードがポートレ
ートモードのとき、ミックス時の式の係数kの割合を大
きくする重みをつける。
Alternatively, when the shooting mode of the camera is the portrait mode, a weight is added to increase the ratio of the coefficient k in the equation at the time of mixing.

【0052】以上説明したように、上記の第1乃至第4
の実施形態によれば、従来のホワイトバランス装置に用
いられる白検出手段からの色情報に加え、肌色を検出す
ることによって求められる色情報を加味して最終の被写
体色温度を特定する構成をとっているので、人顔アップ
などのショットで白の面積が小さくなった場合でもより
正確な色温度判別が可能となる。
As described above, the above first to fourth
According to the embodiment of the present invention, in addition to the color information from the white detecting means used in the conventional white balance device, the final subject color temperature is specified by adding the color information obtained by detecting the skin color. Therefore, even if the white area becomes smaller in a shot such as a close-up of the human face, more accurate color temperature determination can be performed.

【0053】また、従来肌色を白と誤判別し白く誤補正
していた比較的低照度の被写体において、肌色のひっぱ
られを防ぐことが可能となる。
In addition, it is possible to prevent the skin color from being pulled in a subject having a relatively low illuminance, which has been conventionally erroneously determined to be white and erroneously corrected to be white.

【0054】また、明るい被写体においても従来のよう
に白検出範囲を狭める必要がなくなるため、スタジオな
どの非常に高照度のタングステン光のホワイトバランス
補正を適正に行うことができる。
Further, since it is not necessary to narrow the white detection range even in a bright subject as in the conventional case, it is possible to properly perform the white balance correction of the tungsten light of extremely high illuminance such as in a studio.

【0055】[0055]

【他の実施形態】また、各実施形態の目的は、前述した
実施形態の機能を実現するソフトウェアのプログラムコ
ードを記録した記憶媒体(または記録媒体)を、システ
ムあるいは装置に供給し、そのシステムあるいは装置の
コンピュータ(またはCPUやMPU)が記憶媒体に格納され
たプログラムコードを読み出し実行することによって
も、達成されることは言うまでもない。この場合、記憶
媒体から読み出されたプログラムコード自体が前述した
実施形態の機能を実現することになり、そのプログラム
コードを記憶した記憶媒体は本発明を構成することにな
る。また、コンピュータが読み出したプログラムコード
を実行することにより、前述した実施形態の機能が実現
されるだけでなく、そのプログラムコードの指示に基づ
き、コンピュータ上で稼働しているオペレーティングシ
ステム(OS)などが実際の処理の一部または全部を行
い、その処理によって前述した実施形態の機能が実現さ
れる場合も含まれることは言うまでもない。
Other Embodiments The purpose of each embodiment is to supply a storage medium (or recording medium) recording a program code of software for realizing the functions of the above-described embodiments to a system or apparatus, It is needless to say that this is also achieved by the computer (or CPU or MPU) of the device reading and executing the program code stored in the storage medium. In this case, the program code itself read from the storage medium realizes the functions of the above-described embodiments, and the storage medium storing the program code constitutes the present invention. Further, by executing the program code read by the computer, not only the functions of the above-described embodiments are realized, but also an operating system (OS) running on the computer is executed based on the instruction of the program code. It goes without saying that a case where some or all of the actual processing is performed and the functions of the above-described embodiments are realized by the processing is also included.

【0056】さらに、記憶媒体から読み出されたプログ
ラムコードが、コンピュータに挿入された機能拡張カー
ドやコンピュータに接続された機能拡張ユニットに備わ
るメモリに書込まれた後、そのプログラムコードの指示
に基づき、その機能拡張カードや機能拡張ユニットに備
わるCPUなどが実際の処理の一部または全部を行い、そ
の処理によって前述した実施形態の機能が実現される場
合も含まれることは言うまでもない。
Further, after the program code read from the storage medium is written in the memory provided in the function expansion card inserted into the computer or the function expansion unit connected to the computer, based on the instruction of the program code. Needless to say, this also includes a case where a CPU or the like included in the function expansion card or the function expansion unit performs a part or all of the actual processing and the processing realizes the functions of the above-described embodiments.

【0057】本発明を上記記憶媒体に適用する場合、そ
の記憶媒体には、先に説明したフローチャートに対応す
るプログラムコードが格納されることになる。
When the present invention is applied to the above storage medium, the storage medium stores the program code corresponding to the above-described flowchart.

【0058】[0058]

【発明の効果】以上説明したように、本発明によれば、
撮影条件によらず、常に正確なホワイトバランスを取る
ことが可能となる。
As described above, according to the present invention,
It is possible to always achieve accurate white balance regardless of shooting conditions.

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

【図1】本発明の実施形態のホワイトバランス装置を備
える撮像装置の概略構成を示す図である。
FIG. 1 is a diagram showing a schematic configuration of an image pickup apparatus including a white balance apparatus according to an embodiment of the present invention.

【図2】白及び肌検出軸を示した図である。FIG. 2 is a diagram showing white and skin detection axes.

【図3】色検出ブロックを示した図である。FIG. 3 is a diagram showing a color detection block.

【図4】肌判定ブロックを示した図である。FIG. 4 is a diagram showing a skin determination block.

【図5】第1の実施の形態におけるホワイトバランス装
置の動作を示すフローチャートである。
FIG. 5 is a flowchart showing an operation of the white balance device according to the first embodiment.

【図6】SumCxWおよびSumCxSkinから色温度を求めるた
めの式を示す図である。
FIG. 6 is a diagram showing an equation for obtaining a color temperature from SumCxW and SumCxSkin.

【図7】第2の実施の形態におけるホワイトバランス装
置の動作を示すフローチャートである。
FIG. 7 is a flowchart showing an operation of the white balance device according to the second embodiment.

【図8】白及び肌検出軸を示した図である。FIG. 8 is a diagram showing white and skin detection axes.

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

6 ホワイトバランス回路 18 レンズ 19 撮像素子 20 A/D変換器 21 色信号作成回路 22 輝度信号作成回路 6 White balance circuit 18 lenses 19 Image sensor 20 A / D converter 21 Color signal generation circuit 22 Luminance signal generation circuit

Claims (17)

【特許請求の範囲】[Claims] 【請求項1】 撮像素子からの画像信号のうちの白検出
範囲内の画像信号から第1の色温度を算出する第1の色
温度算出工程と、 前記撮像素子からの画像信号のうちの有彩色検出範囲内
の画像信号から第2の色温度を算出する第2の色温度算
出工程と、 前記第1の色温度と前記第2の色温度に基づいてホワイ
トバランスを調整するホワイトバランス調整工程とを具
備することを特徴とするホワイトバランス調整方法。
1. A first color temperature calculation step of calculating a first color temperature from an image signal within a white detection range of an image signal from the image sensor, and a first color temperature calculation step from among the image signals from the image sensor. A second color temperature calculation step of calculating a second color temperature from the image signal within the color detection range; and a white balance adjustment step of adjusting white balance based on the first color temperature and the second color temperature. A white balance adjusting method comprising:
【請求項2】 前記ホワイトバランス調整工程では、前
記第1の色温度と前記第2の色温度とを比較して、前記
第1の色温度と前記第2の色温度が略同じか前記第1の
色温度の方が前記第2の色温度より高い場合は、前記第
1の色温度を光源の色温度と判定し、前記第1の色温度
よりも前記第2の色温度が高い場合は、前記第2の色温
度を光源の色温度と判定することを特徴とする請求項1
に記載のホワイトバランス調整方法。
2. In the white balance adjustment step, the first color temperature and the second color temperature are compared to determine whether the first color temperature and the second color temperature are substantially the same. When the first color temperature is higher than the second color temperature, it is determined that the first color temperature is the color temperature of the light source, and the second color temperature is higher than the first color temperature. Determines that the second color temperature is the color temperature of the light source.
White balance adjustment method described in.
【請求項3】 前記ホワイトバランス調整工程では、前
記第1の色温度と前記第2の色温度とを比較して、前記
第1の色温度と前記第2の色温度が略同じか前記第1の
色温度の方が前記第2の色温度より高い場合は、前記第
1の色温度を光源の色温度と判定し、前記第1の色温度
よりも前記第2の色温度が高い場合は、前記画像信号内
に占める白色の範囲の比率と有彩色の範囲の比率に基づ
いて、前記第1の色温度と前記第2の色温度を加重平均
して前記光源の色温度を判定することを特徴とする請求
項1に記載のホワイトバランス調整方法。
3. In the white balance adjusting step, the first color temperature and the second color temperature are compared to determine whether the first color temperature and the second color temperature are substantially the same. When the first color temperature is higher than the second color temperature, it is determined that the first color temperature is the color temperature of the light source, and the second color temperature is higher than the first color temperature. Determines the color temperature of the light source by performing a weighted average of the first color temperature and the second color temperature based on the ratio of the range of white color and the ratio of the range of chromatic color in the image signal. The white balance adjusting method according to claim 1, wherein
【請求項4】 前記ホワイトバランス調整工程では、前
記第1の色温度から第1のホワイトバランス係数を算出
し、該第1のホワイトバランス係数で前記画像信号を補
正し、補正後の画像信号から第1の彩度値を算出すると
共に、前記第2の色温度から第2のホワイトバランス係
数を算出し、該第2のホワイトバランス係数で前記画像
信号を補正し、補正後の画像信号から第2の彩度値を算
出し、前記第1の彩度値と前記第2の彩度値の大きい方
に対応するホワイトバランス係数によりホワイトバラン
スを調整することを特徴とする請求項1に記載のホワイ
トバランス調整方法。
4. The white balance adjusting step calculates a first white balance coefficient from the first color temperature, corrects the image signal with the first white balance coefficient, and outputs the corrected image signal from the corrected image signal. A first saturation value is calculated, a second white balance coefficient is calculated from the second color temperature, the image signal is corrected with the second white balance coefficient, and a second white balance coefficient is calculated from the corrected image signal. The saturation value of 2 is calculated, and the white balance is adjusted by a white balance coefficient corresponding to the larger one of the first saturation value and the second saturation value. White balance adjustment method.
【請求項5】 前記ホワイトバランス調整工程では、前
記第1の色温度から第1のホワイトバランス係数を算出
し、該第1のホワイトバランス係数で前記画像信号を補
正し、補正後の画像信号から第1の彩度値を算出すると
共に、前記第2の色温度から第2のホワイトバランス係
数を算出し、該第2のホワイトバランス係数で前記画像
信号を補正し、補正後の画像信号から第2の彩度値を算
出し、前記第1の彩度値と前記第2の彩度値を加重平均
してホワイトバランス係数を決定することを特徴とする
請求項1に記載のホワイトバランス調整方法。
5. In the white balance adjusting step, a first white balance coefficient is calculated from the first color temperature, the image signal is corrected by the first white balance coefficient, and the corrected image signal is obtained. A first saturation value is calculated, a second white balance coefficient is calculated from the second color temperature, the image signal is corrected with the second white balance coefficient, and a second white balance coefficient is calculated from the corrected image signal. The white balance adjusting method according to claim 1, wherein a saturation value of 2 is calculated, and a white balance coefficient is determined by performing a weighted average of the first saturation value and the second saturation value. .
【請求項6】 前記ホワイトバランス調整工程では、前
記画像信号内に占める白色の範囲の比率を算出し、該白
色の範囲の比率が所定値より大きいときには前記第1の
色温度を光源の色温度と判定し、前記白色の範囲の比率
が所定値より小さいときには前記第1の色温度と前記第
2の色温度を加重平均して前記光源の色温度を判定する
ことを特徴とする請求項1に記載のホワイトバランス調
整方法。
6. The white balance adjusting step calculates a ratio of a white range occupied in the image signal, and sets the first color temperature to a color temperature of a light source when the ratio of the white range is larger than a predetermined value. The color temperature of the light source is determined by performing a weighted average of the first color temperature and the second color temperature when the ratio of the white range is smaller than a predetermined value. White balance adjustment method described in.
【請求項7】 前記ホワイトバランス調整工程では、前
記画像信号内に占める白色の範囲の比率と有彩色の範囲
の比率に基づいて、前記第1の色温度と前記第2の色温
度を加重平均して前記光源の色温度を判定することを特
徴とする請求項1に記載のホワイトバランス調整方法。
7. The weighted average of the first color temperature and the second color temperature is based on a ratio of a white range and a range of a chromatic color in the image signal in the white balance adjusting step. The white balance adjusting method according to claim 1, wherein the color temperature of the light source is determined.
【請求項8】 画像信号内に占める白色の範囲の比率に
基づいて、前記第1の色温度と前記第2の色温度を加重
平均して前記光源の色温度を判定することを特徴とする
請求項1に記載のホワイトバランス調整方法。
8. The color temperature of the light source is determined by weighted averaging the first color temperature and the second color temperature based on the ratio of the range of white occupying in the image signal. The white balance adjusting method according to claim 1.
【請求項9】 前記ホワイトバランス調整工程では、前
記画像信号内に占める白色の範囲の比率と有彩色の範囲
の比率に基づいて、前記第1の色温度と前記第2の色温
度を加重平均して前記光源の色温度を判定することを特
徴とする請求項1に記載のホワイトバランス調整方法。
9. In the white balance adjusting step, a weighted average of the first color temperature and the second color temperature is calculated based on a ratio of a white range and a range of a chromatic color in the image signal. The white balance adjusting method according to claim 1, wherein the color temperature of the light source is determined.
【請求項10】 画像信号内に占める白色の範囲の比率
に基づいて、前記第1の色温度と前記第2の色温度を加
重平均して前記光源の色温度を判定することを特徴とす
る請求項1に記載のホワイトバランス調整方法。
10. The color temperature of the light source is determined by performing a weighted average of the first color temperature and the second color temperature based on the ratio of the range of white in the image signal. The white balance adjusting method according to claim 1.
【請求項11】 前記有彩色とは肌色であることを特徴
とする請求項1に記載のホワイトバランス調整方法。
11. The white balance adjusting method according to claim 1, wherein the chromatic color is a flesh color.
【請求項12】 前記ホワイトバランス調整工程では、
撮像装置の撮影モードが人物撮影モードに設定されてい
るときには、前記第2の色温度を光源の色温度と判定す
ることを特徴とする請求項10に記載のホワイトバラン
ス調整方法。
12. The white balance adjusting step,
11. The white balance adjusting method according to claim 10, wherein the second color temperature is determined to be the color temperature of the light source when the photographing mode of the image pickup apparatus is set to the person photographing mode.
【請求項13】 前記ホワイトバランス調整工程では、
撮像装置の撮影モードが人物撮影モードに設定されてい
るときには、前記第2の色温度の重みを増して前記第1
の色温度と加重平均することによって、光源の色温度を
判定することを特徴とする請求項10に記載のホワイト
バランス調整方法。
13. The white balance adjusting step,
When the photographing mode of the image pickup apparatus is set to the person photographing mode, the weight of the second color temperature is increased to increase the first color temperature.
The white balance adjusting method according to claim 10, wherein the color temperature of the light source is determined by performing a weighted average with the color temperature of.
【請求項14】 前記第1,第2の彩度値を算出する場
合、それぞれホワイトバランス補正された画像信号のう
ち、画面の中央部の画像信号に基づいて前記第1,第2
の色温度を算出することを特徴とする請求項4に記載の
ホワイトバランス調整方法。
14. When calculating the first and second saturation values, the first and second saturation values are calculated based on the image signal of the central portion of the screen among the white balance-corrected image signals.
The white balance adjusting method according to claim 4, wherein the color temperature of the color balance is calculated.
【請求項15】 請求項1乃至14のいずれか1項に記
載のホワイトバランス調整方法をコンピュータに実行さ
せることを特徴とするプログラム。
15. A program for causing a computer to execute the white balance adjusting method according to claim 1. Description:
【請求項16】 請求項15に記載のプログラムをコン
ピュータ読み取り可能に記憶したことを特徴とする記憶
媒体。
16. A storage medium on which the program according to claim 15 is stored so that it can be read by a computer.
【請求項17】 請求項1乃至14のいずれか1項に記
載のホワイトバランス調整方法を実行することを特徴と
する撮像装置。
17. An image pickup apparatus, which executes the white balance adjusting method according to claim 1. Description:
JP2003057217A 2002-03-06 2003-03-04 White balance adjustment method, imaging apparatus, program, and storage medium Expired - Fee Related JP3848274B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003057217A JP3848274B2 (en) 2002-03-06 2003-03-04 White balance adjustment method, imaging apparatus, program, and storage medium

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP2002060901 2002-03-06
JP2002-60901 2002-03-06
JP2003057217A JP3848274B2 (en) 2002-03-06 2003-03-04 White balance adjustment method, imaging apparatus, program, and storage medium

Publications (3)

Publication Number Publication Date
JP2003333616A true JP2003333616A (en) 2003-11-21
JP2003333616A5 JP2003333616A5 (en) 2005-07-21
JP3848274B2 JP3848274B2 (en) 2006-11-22

Family

ID=29713808

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003057217A Expired - Fee Related JP3848274B2 (en) 2002-03-06 2003-03-04 White balance adjustment method, imaging apparatus, program, and storage medium

Country Status (1)

Country Link
JP (1) JP3848274B2 (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006237748A (en) * 2005-02-22 2006-09-07 Canon Inc White balance correction device and method, and image pickup device
WO2007007788A1 (en) 2005-07-13 2007-01-18 Nec Corporation Color correction method and device
CN100515095C (en) * 2005-06-20 2009-07-15 佳能株式会社 Image sensing apparatus and image processing method
JP2009159496A (en) * 2007-12-27 2009-07-16 Canon Inc White balance control device, imaging apparatus using the same, and white balance control method
JP2009164838A (en) * 2007-12-28 2009-07-23 Canon Inc Image processing device and method, and imaging device
JP2009212641A (en) * 2008-03-03 2009-09-17 Ricoh Co Ltd Unit and method for controlling white balance and recording medium for recording control processing program
JP2009225150A (en) * 2008-03-17 2009-10-01 Canon Inc Imaging device and its white balance control method
JP2011139481A (en) * 2011-01-26 2011-07-14 Fujifilm Corp Device, method and program for calculating auto white balance correction value, and imaging device
JP2012257337A (en) * 2012-09-28 2012-12-27 Canon Inc White balance control device, imaging apparatus using the same, and white balance control method
US8520091B2 (en) 2007-07-17 2013-08-27 Fujifilm Corporation Auto white balance correction value calculation device, method, program, and image pickup device
JP2014209681A (en) * 2013-04-16 2014-11-06 リコーイメージング株式会社 Color tone adjustment device and color tone adjustment method
KR20150000359A (en) * 2013-06-24 2015-01-02 삼성테크윈 주식회사 Method for interpolating white balance
US9258539B2 (en) 2013-10-24 2016-02-09 Samsung Electronics Co., Ltd. Method of calibrating automatic white balance and image capturing device performing the same

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08280041A (en) * 1995-04-07 1996-10-22 Canon Inc Image pickup device
JPH11289548A (en) * 1998-02-09 1999-10-19 Ricoh Co Ltd White balance control method and device
JP2000224608A (en) * 1999-02-02 2000-08-11 Fuji Photo Film Co Ltd Automatic white balance control method
JP2001036924A (en) * 1999-07-23 2001-02-09 Victor Co Of Japan Ltd Automatic white balance adjusting device and its method
JP2001103508A (en) * 1999-09-28 2001-04-13 Nikon Corp Digital camera

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08280041A (en) * 1995-04-07 1996-10-22 Canon Inc Image pickup device
JPH11289548A (en) * 1998-02-09 1999-10-19 Ricoh Co Ltd White balance control method and device
JP2000224608A (en) * 1999-02-02 2000-08-11 Fuji Photo Film Co Ltd Automatic white balance control method
JP2001036924A (en) * 1999-07-23 2001-02-09 Victor Co Of Japan Ltd Automatic white balance adjusting device and its method
JP2001103508A (en) * 1999-09-28 2001-04-13 Nikon Corp Digital camera

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006237748A (en) * 2005-02-22 2006-09-07 Canon Inc White balance correction device and method, and image pickup device
CN100515095C (en) * 2005-06-20 2009-07-15 佳能株式会社 Image sensing apparatus and image processing method
US8023736B2 (en) 2005-07-13 2011-09-20 Nec Corporation Color correction method and color correction apparatus
WO2007007788A1 (en) 2005-07-13 2007-01-18 Nec Corporation Color correction method and device
US8520091B2 (en) 2007-07-17 2013-08-27 Fujifilm Corporation Auto white balance correction value calculation device, method, program, and image pickup device
JP2009159496A (en) * 2007-12-27 2009-07-16 Canon Inc White balance control device, imaging apparatus using the same, and white balance control method
JP2009164838A (en) * 2007-12-28 2009-07-23 Canon Inc Image processing device and method, and imaging device
JP2009212641A (en) * 2008-03-03 2009-09-17 Ricoh Co Ltd Unit and method for controlling white balance and recording medium for recording control processing program
JP2009225150A (en) * 2008-03-17 2009-10-01 Canon Inc Imaging device and its white balance control method
US8294783B2 (en) 2008-03-17 2012-10-23 Canon Kabushiki Kaisha Image-pickup apparatus and white-balance control method provided therefor
JP2011139481A (en) * 2011-01-26 2011-07-14 Fujifilm Corp Device, method and program for calculating auto white balance correction value, and imaging device
JP2012257337A (en) * 2012-09-28 2012-12-27 Canon Inc White balance control device, imaging apparatus using the same, and white balance control method
JP2014209681A (en) * 2013-04-16 2014-11-06 リコーイメージング株式会社 Color tone adjustment device and color tone adjustment method
KR20150000359A (en) * 2013-06-24 2015-01-02 삼성테크윈 주식회사 Method for interpolating white balance
KR101964256B1 (en) 2013-06-24 2019-04-01 한화테크윈 주식회사 Method for interpolating white balance
US9258539B2 (en) 2013-10-24 2016-02-09 Samsung Electronics Co., Ltd. Method of calibrating automatic white balance and image capturing device performing the same

Also Published As

Publication number Publication date
JP3848274B2 (en) 2006-11-22

Similar Documents

Publication Publication Date Title
EP2426928B1 (en) Image processing apparatus, image processing method and program
US7084907B2 (en) Image-capturing device
EP2426927B1 (en) Image processing apparatus, image processing method and computer program
US8614751B2 (en) Image processing apparatus and image processing method
US9462247B2 (en) Image processing and white balance controlling apparatus
JP5693271B2 (en) Image processing apparatus and method
US7148921B2 (en) White balance adjustment method, image sensing apparatus, program, and storage medium
US8810681B2 (en) Image processing apparatus and image processing method
US9036046B2 (en) Image processing apparatus and method with white balance correction
JP3848274B2 (en) White balance adjustment method, imaging apparatus, program, and storage medium
KR100967091B1 (en) Method for adjusting white balance of digital image device
JP4544308B2 (en) Image processing apparatus, imaging apparatus, method, and program
WO2006067724A2 (en) Automatic white balance control
JP2015005927A (en) Image processing apparatus and control method of the same
JP6148497B2 (en) Image processing apparatus, image processing method, program, and storage medium
JP2002290988A (en) Imaging device
JP2010011153A (en) Imaging apparatus, imaging method and program
JP5854716B2 (en) Image processing apparatus, image processing method, and program
JP3958700B2 (en) Digital camera
JP4028395B2 (en) Digital camera
JP2011040975A (en) Image processing apparatus, imaging apparatus, image processing method and program
JP4396225B2 (en) White balance control device and electronic device
JP2007267170A (en) Electronic camera with chroma saturation regulating function and image processing program
JP5791454B2 (en) Imaging apparatus and control method thereof
US11100610B2 (en) Image processing apparatus, image processing method, and storage medium

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20041201

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20041201

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20060428

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20060512

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20060711

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20060824

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20090901

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20100901

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20110901

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20110901

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20120901

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20120901

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20130901

Year of fee payment: 7

S802 Written request for registration of partial abandonment of right

Free format text: JAPANESE INTERMEDIATE CODE: R311802

R360 Written notification for declining of transfer of rights

Free format text: JAPANESE INTERMEDIATE CODE: R360

R360 Written notification for declining of transfer of rights

Free format text: JAPANESE INTERMEDIATE CODE: R360

R371 Transfer withdrawn

Free format text: JAPANESE INTERMEDIATE CODE: R371

S802 Written request for registration of partial abandonment of right

Free format text: JAPANESE INTERMEDIATE CODE: R311802

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees