[go: up one dir, main page]

JP2001112019A - Automatic white balance device and method - Google Patents

Automatic white balance device and method

Info

Publication number
JP2001112019A
JP2001112019A JP28299099A JP28299099A JP2001112019A JP 2001112019 A JP2001112019 A JP 2001112019A JP 28299099 A JP28299099 A JP 28299099A JP 28299099 A JP28299099 A JP 28299099A JP 2001112019 A JP2001112019 A JP 2001112019A
Authority
JP
Japan
Prior art keywords
block
reliability
light source
color
image
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
JP28299099A
Other languages
Japanese (ja)
Other versions
JP4081213B2 (en
Inventor
Toshiki Miyano
俊樹 宮野
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.)
Eastman Kodak Japan Ltd
Original Assignee
Eastman Kodak Japan 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 Eastman Kodak Japan Ltd filed Critical Eastman Kodak Japan Ltd
Priority to JP28299099A priority Critical patent/JP4081213B2/en
Publication of JP2001112019A publication Critical patent/JP2001112019A/en
Application granted granted Critical
Publication of JP4081213B2 publication Critical patent/JP4081213B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Color Television Image Signal Generators (AREA)
  • Processing Of Color Television Signals (AREA)

Abstract

PROBLEM TO BE SOLVED: To improve instability in automatic white balancing. SOLUTION: A block division circuit 102 divides the output image from an image pickup device 20 into block units. A representative color calculation circuit 104 calculates a mean value of pixels of each block and converts the mean value into a luminance and color difference expression. A block reliability calculation circuit 110 obtains a distance between a color difference component of a block and a typical color difference of an assumed light source such as a fluorescent light or daylight or the like, and the reliability of the block that is lighted by the estimate light source is obtained on the basis of the distance. The reliability is obtained from a function changed continuously in response to the distance above. An automatic white balancer 10 obtains a color of the lighting light (lighting color) lighting the scene of a picture and the white balance is adjusted to cancel the color. Since the reliability changing continuously according to the color difference of the block is used, the instability in white balancing can be reduced.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、電子スチルカメラ
やビデオカメラなどに用いられるオートホワイトバラン
ス装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an automatic white balance device used for an electronic still camera, a video camera and the like.

【0002】[0002]

【従来の技術】ビデオカメラやデジタルスチルカメラで
は、白い被写体を白く再現するために、オートホワイト
バランス調整が行われている。従来のオートホワイトバ
ランス方式としては、画像全体の平均が無彩色となるよ
うに各画素の信号のRGB成分(赤、緑、青の三原色成
分)のバランスを調整する方式がよく知られている。し
かしながらこの方式では、有彩色が画像の大部分の領域
を占めている場合、誤ったホワイトバランス調整を行う
ことになりやすいという欠点があった。
2. Description of the Related Art In video cameras and digital still cameras, automatic white balance adjustment is performed to reproduce a white subject in white. As a conventional auto white balance method, a method of adjusting the balance of RGB components (three primary color components of red, green, and blue) of a signal of each pixel so that the average of the entire image becomes an achromatic color is well known. However, this method has a disadvantage that erroneous white balance adjustment is likely to be performed when a chromatic color occupies most of the area of the image.

【0003】このような誤ったホワイトバランス調整は
カラーフェイリアと呼ばれる。このカラーフェイリアを
軽減するオートホワイトバランス調整方式として、特開
平5−292533号公報に示される技術が知られてい
る。この技術では、画像を複数のブロックに分割し、各
ブロックのRGBの平均値を計算し、その平均値が予め
定めた範囲に属しているブロックのみを抽出する。そし
て、抽出したブロック群のRGBの平均値が無彩色にな
るように、RGB各成分の調整を行う。
[0003] Such incorrect white balance adjustment is called color failure. As an automatic white balance adjustment method for reducing the color failure, there is known a technique disclosed in Japanese Patent Application Laid-Open No. 5-292533. In this technique, an image is divided into a plurality of blocks, an average value of RGB of each block is calculated, and only blocks whose average values belong to a predetermined range are extracted. Then, the RGB components are adjusted so that the average value of RGB of the extracted block group becomes an achromatic color.

【0004】ところが、これらの方式は、被写体を照明
する光源が限定されている場合には効果が得られたが、
想定外の光源で照明される場合や複数種類の光源により
同時照明される場合などには十分なホワイトバランス調
整を行うことができなかった。
However, these methods have been effective when the light source for illuminating the subject is limited.
Sufficient white balance adjustment could not be performed when illuminated by unexpected light sources or when simultaneously illuminated by multiple types of light sources.

【0005】そこで、本出願人は、特開平8−2893
14号公報に開示した改良されたオートホワイトバラン
ス調整装置を提案した。この装置では、画像を複数のブ
ロックに分割し、蛍光灯下で白い対象物を撮影したと判
定されるブロック群、太陽光又はタングステン光下で白
い対象物を撮影したと判定されるブロック群、画像中で
最も明るいブロックに近い色を持つブロック群、をそれ
ぞれ抽出する。そして、それら各ブロック群ごとにRG
B各成分の平均値を求め、それらを予め定めた規則に従
って混合した値をホワイトバランス調整信号として用い
る。この装置では、画像中で最も明るいブロックに近似
した色のブロック群のRGBの平均値をホワイトバラン
ス信号に反映させることにより、想定外の光源下や複数
種類の光源下でも、適切なホワイトバランス調整を行う
ことができる。
Accordingly, the applicant of the present invention has disclosed in Japanese Patent Application Laid-Open No. 8-2893.
No. 14 discloses an improved automatic white balance adjusting device. In this device, the image is divided into a plurality of blocks, a group of blocks determined to have taken a white object under a fluorescent lamp, a group of blocks determined to have taken a white object under sunlight or tungsten light, A block group having a color close to the brightest block in the image is extracted. Then, for each of these block groups, RG
The average value of each of the B components is obtained, and a value obtained by mixing them according to a predetermined rule is used as a white balance adjustment signal. In this device, the average value of RGB of a block group of a color similar to the brightest block in an image is reflected in a white balance signal, so that appropriate white balance adjustment can be performed even under an unexpected light source or a plurality of types of light sources. It can be performed.

【0006】[0006]

【発明が解決しようとする課題】上記従来方式は、各光
源に対して固定的に定められた領域(光源領域)に対し
て各ブロックの色差の平均値が含まれるか否かという二
値的な弁別の結果を用いているため、撮影シーンの変化
によってホワイトバランスの挙動が不安定になりやすい
と言う問題があった。例えば、ある光源領域に属してい
たあるブロックが、撮影シーンが少し変化しただけで、
その光源領域に属さないものとなる可能性があり、この
ような二値的な急激な変化がホワイトバランスの不安定
さを惹起するおそれがあった。
In the above-mentioned conventional method, a binary (i.e., whether or not an average value of the color difference of each block is included in a region (light source region) fixed for each light source) is determined. There is a problem that the behavior of the white balance is likely to be unstable due to a change in the photographing scene because the result of such discrimination is used. For example, a certain block that belonged to a certain light source area only slightly changed the shooting scene,
There is a possibility that the light does not belong to the light source region, and such a sudden change in the binary value may cause instability of the white balance.

【0007】本発明は、この問題を解決するためになさ
れたものであり、安定したホワイトバランス調整を行う
ことができるオートホワイトバランス装置を提供するこ
とを目的とする。
The present invention has been made to solve this problem, and has as its object to provide an automatic white balance device capable of performing stable white balance adjustment.

【0008】[0008]

【課題を解決するための手段】本発明に係るオートホワ
イトバランス装置は、ホワイトバランス処理対象の画像
を複数のブロックに分割するブロック分割手段と、分割
された各ブロックごとに、当該ブロック内の画素値に基
づき当該ブロックの代表色を求める代表色算出手段と、
前記各ブロックごとかつ想定する各光源ごとに、当該光
源下での白色物体の色の色差成分と当該ブロックの代表
色の色差成分との距離を求め、これら各距離に基づき前
記各光源が前記各ブロックのシーンを照明している信頼
度を推定するブロック信頼度推定手段と、前記各光源ご
とについて、各ブロックの代表色を当該ブロックについ
ての当該光源の信頼度に従って加重平均することによ
り、当該光源の画像全体に対する寄与成分を推定する光
源寄与成分推定手段と、前記各光源ごとに、当該光源の
各ブロックについての信頼度を前記画像中の全ブロック
にわたって総和することにより、前記画像全体について
の当該光源の信頼度を推定する全体信頼度推定手段と、
前記光源寄与成分推定手段で推定された前記各光源の画
像全体に対する寄与成分を、前記全体信頼度推定手段で
推定された前記各光源の画像全体についての信頼度に従
って加重平均することにより、前記画像全体のシーンを
照明する照明色を推定する照明色推定手段と、推定した
前記照明色を打ち消すよう、前記画像の各画素に対して
ホワイトバランス処理を行うホワイトバランス手段と、
を有する。
An automatic white balance apparatus according to the present invention comprises: a block dividing means for dividing an image to be subjected to white balance processing into a plurality of blocks; and, for each of the divided blocks, a pixel in the block. Representative color calculating means for obtaining a representative color of the block based on the value;
For each of the blocks and for each assumed light source, the distance between the color difference component of the color of the white object under the light source and the color difference component of the representative color of the block is determined. Block reliability estimating means for estimating the reliability of illuminating the scene of the block; and for each light source, the representative color of each block is weighted according to the reliability of the light source for that block, to obtain the light source. Light source contributing component estimating means for estimating a contributing component to the entire image; and, for each of the light sources, the reliability of each block of the light source is summed over all the blocks in the image, so that the An overall reliability estimating means for estimating the reliability of the light source,
The weighted average of the contribution components of the respective light sources estimated by the light source contribution component estimating means to the entire image according to the reliability of the entire image of the respective light sources estimated by the overall reliability estimating means is obtained. Illumination color estimation means for estimating an illumination color for illuminating the entire scene, and white balance means for performing white balance processing on each pixel of the image so as to cancel the estimated illumination color;
Having.

【0009】この装置は、各光領域に対して各ブロック
の色差平均値が含まれるか否かという二値的な弁別の結
果を用いる代わりに、ブロック代表色の色差と各光源の
典型色差との距離から求めた信頼度を用いてホワイトバ
ランス調整を行う。両色差値間の距離は連続な値をと
る。したがって、本発明によるホワイトバランス調整処
理は、ホワイトバランスの挙動を撮影シーンの変化に対
して連続的に追従させることが可能になり、二値的な弁
別結果に基づく調整をしていた従来技術よりも滑らかな
ホワイトバランス調整が行える。
This apparatus uses a color difference of a block representative color and a typical color difference of each light source instead of using a binary discrimination result of whether or not the color difference average value of each block is included in each light area. White balance is adjusted using the reliability obtained from the distance. The distance between the two color difference values takes a continuous value. Therefore, the white balance adjustment processing according to the present invention allows the behavior of the white balance to continuously follow changes in the photographing scene, and the white balance adjustment processing according to the related art has performed the adjustment based on the binary discrimination result. Also allows smooth white balance adjustment.

【0010】本発明の好適な態様に係る装置は、ブロッ
ク信頼度推定手段で推定された各ブロックについての前
記信頼度を、前記ブロックの代表色の輝度成分に応じて
修正する手段を備える。
An apparatus according to a preferred aspect of the present invention includes means for correcting the reliability of each block estimated by the block reliability estimating means according to a luminance component of a representative color of the block.

【0011】シーンの明るさによりそのシーンの色が照
明の色を反映している度合いは異なる。この態様によれ
ば、そのようなシーンの明るさ、すなわち輝度に応じて
各光源がシーンを照明している信頼度を修正できるの
で、照明色の推定の精度が向上し、この結果ホワイトバ
ランス調整の精度も向上する。
The degree to which the color of the scene reflects the color of the illumination differs depending on the brightness of the scene. According to this aspect, since the reliability of each light source illuminating the scene can be corrected according to the brightness of the scene, that is, the brightness, the accuracy of estimation of the illumination color is improved, and as a result, the white balance adjustment is performed. Accuracy is also improved.

【0012】この態様において、信頼度の修正を、各光
源ごとに個別に用意した関数を用いて行うようにすれ
ば、各光源の明るさに関する知識を用いて各光源がシー
ンを照明している信頼度を修正することができる。ま
た、修正に用いる関数を、輝度に対して値が連続的に変
化する連続関数とすることにより、滑らかなホワイトバ
ランス調整が可能となる。
In this aspect, if the correction of the reliability is performed using a function prepared individually for each light source, each light source illuminates the scene using the knowledge about the brightness of each light source. The reliability can be modified. Further, by setting the function used for the correction to be a continuous function in which the value continuously changes with respect to the luminance, smooth white balance adjustment can be performed.

【0013】また、本発明の別の好適な態様では、光源
として、昼間の直射日光と昼間の日陰の光とを区別して
取り扱うことにより、画像に日光が当たっている部分と
日陰の部分の両方が含まれる場合でも、柔軟にホワイト
バランスを制御することができる。
According to another preferred embodiment of the present invention, as a light source, direct sunlight in the daytime and shaded light in the daytime are distinguished from each other, so that both the portion where the image is exposed to sunlight and the portion where the image is shaded are treated. , The white balance can be controlled flexibly.

【0014】[0014]

【発明の実施の形態】以下、本発明の実施の形態(以下
実施形態という)について、図面に基づいて説明する。
Embodiments of the present invention (hereinafter referred to as embodiments) will be described below with reference to the drawings.

【0015】図1は、本実施形態のオートホワイトバラ
ンス装置10の構成を示す機能ブロック図である。この
オートホワイトバランス装置10は、典型的には、電子
スチルカメラやビデオカメラなどのカメラ装置に組み込
まれる。このオートホワイトバランス装置10は、カメ
ラ装置の撮像装置20から入力された画像信号からホワ
イトバランス調整信号を生成し、この信号を用いて園が
増進号に対してホワイトバランス調整を施して出力す
る。本実施形態では、画像のシーン(場景)を照明する
光源の色(照明色と呼ぶ)を推定し、この推定結果に基
づきホワイトバランス調整を行う。
FIG. 1 is a functional block diagram showing the configuration of the automatic white balance device 10 of the present embodiment. The auto white balance device 10 is typically incorporated in a camera device such as an electronic still camera or a video camera. The automatic white balance device 10 generates a white balance adjustment signal from an image signal input from the imaging device 20 of the camera device, and the garden uses the signal to perform white balance adjustment for the extra signal and outputs the result. In the present embodiment, the color of a light source (referred to as an illumination color) that illuminates a scene (scene) of an image is estimated, and white balance adjustment is performed based on the estimation result.

【0016】図2は、このオートホワイトバランス装置
が行う処理の手順を示すフローチャートである。
FIG. 2 is a flowchart showing the procedure of processing performed by the automatic white balance apparatus.

【0017】以下、図1及び図2を参照して、オートホ
ワイトバランス装置10の詳細な構成及びその処理内容
を詳しく説明する。
Referring to FIGS. 1 and 2, a detailed configuration of the automatic white balance device 10 and the processing contents thereof will be described in detail.

【0018】撮像装置20から出力される画像信号は、
ブロック分割回路102によってブロック単位に分割さ
れる(S10)。図3は、画像のブロック分割の一例を
示す。この例では、1フレームの画像200は、それぞ
れm×m個の画素からなる16(=4×4)個の等しい
ブロック210に分割される。図3に示したブロック分
割はあくまで一例であり、これ以外の分割法を用いても
もちろんよい。この回路102で分割された各ブロック
の画像データは、代表色計算回路104、分散係数計算
回路106、飽和係数計算回路108、光源寄与計算回
路114にそれぞれ入力される。
The image signal output from the imaging device 20 is
The block is divided into blocks by the block dividing circuit 102 (S10). FIG. 3 shows an example of image block division. In this example, the image 200 of one frame is divided into 16 (= 4 × 4) equal blocks 210 each including m × m pixels. The block division shown in FIG. 3 is merely an example, and other division methods may of course be used. The image data of each block divided by the circuit 102 is input to a representative color calculation circuit 104, a variance coefficient calculation circuit 106, a saturation coefficient calculation circuit 108, and a light source contribution calculation circuit 114, respectively.

【0019】代表色計算回路104は、各ブロックごと
の画像データに基づき、各ブロックの平均的な色である
代表色を求める(S12)。この回路104の詳細な処
理内容は以下の通りである。すなわち、代表色計算回路
104は、まず1ブロックの全画素の画素値の平均値を
求める。撮像装置20の画像信号がRGB(赤、緑、
青)で表されている場合、代表色計算回路104は各画
素のRGB値を、RGBの各成分ごとに、当該ブロック
の全画素にわたって平均する。この平均(R,G,B)
が当該ブロックの代表色である。次に、代表色計算回路
104は、その平均値(R,G,B)を、輝度(L)及
び2つの色差成分(u,v)の組(L,u,v)に線形
変換する。この変換は次式で表される。
The representative color calculation circuit 104 obtains a representative color which is an average color of each block based on the image data of each block (S12). The detailed processing contents of this circuit 104 are as follows. That is, the representative color calculation circuit 104 first calculates the average value of the pixel values of all the pixels in one block. When the image signal of the imaging device 20 is RGB (red, green,
(Blue), the representative color calculation circuit 104 averages the RGB values of each pixel over all the pixels of the block for each of the RGB components. This average (R, G, B)
Is the representative color of the block. Next, the representative color calculation circuit 104 linearly converts the average value (R, G, B) into a set (L, u, v) of luminance (L) and two color difference components (u, v). This conversion is represented by the following equation.

【0020】[0020]

【数1】 なお、変換に用いる変換行列は、撮像装置20の入力色
特性に依存するものであり、式(1)に示したものはあ
くまでその一例にすぎない。また、画像信号がRGB以
外の表色系で表されている場合は、その表色系に応じた
変換行列を用いて輝度及び色差成分を求めればよい。ま
た、以上の処理では、ブロックの代表色を求めるに当た
り、ブロックの全画素についての平均を行ったが、この
代わりに、ブロックの画素の中から予め定めたサンプリ
ング規則に従って抽出した画素の平均を用いるようにし
てもよい。
(Equation 1) The conversion matrix used for the conversion depends on the input color characteristics of the imaging device 20, and the one shown in Expression (1) is only an example. When the image signal is represented by a color system other than RGB, the luminance and color difference components may be obtained using a conversion matrix corresponding to the color system. In the above processing, when calculating the representative color of the block, the average of all the pixels of the block was performed. Instead, the average of the pixels extracted from the pixels of the block according to a predetermined sampling rule is used. You may do so.

【0021】このような処理が、1画像を構成する各ブ
ロックごとに対して行われる。求められた各ブロックの
代表色の輝度・色差表現(L,u,v)はブロック信頼
度計算回路110に入力される。以下、ブロックの識別
番号をi(i=1,2,…,n:nは画像の総ブロック
数)とし、i番目のブロック(ブロックiと記す)の代
表色を(Li,ui,vi)と表現する。
Such processing is performed for each block constituting one image. The obtained luminance / color difference expression (L, u, v) of the representative color of each block is input to the block reliability calculation circuit 110. Hereinafter, the identification number of the block is i (i = 1, 2,..., N: n is the total number of blocks of the image), and the representative color of the i-th block (denoted as block i) is (Li, ui, vi). Is expressed as

【0022】以上の代表色計算回路104の処理と並行
して、分散係数計算回路106及び飽和係数計算回路1
08が各々の処理を実行する。
In parallel with the processing of the representative color calculation circuit 104, the dispersion coefficient calculation circuit 106 and the saturation coefficient calculation circuit 1
08 executes each process.

【0023】分散係数計算回路106は、各ブロックの
画像データを受け取り、各ブロックごとにその分散係数
Cvを求める。分散係数Cvは、後述するブロック信頼
度の補正のための係数であり、当該ブロックの画素値の
分散に応じて決まる。ブロックiの分散係数をCviと
表す。分散係数計算回路106は、まずブロックの画素
群の中から予め定めた方法で画素をサンプリングし、そ
れらサンプリングした画素群の画素値の分散を求める。
この場合、回路106は、例えば、R,G,Bの各成分
ごとにサンプリングした画素群における分散を求め、こ
れら各成分ごとの分散を例えば平均するなどして全体的
な分散値を求める。そして、分散係数計算回路106
は、このようにして求めた分散値に基づき分散係数を求
める。分散係数Cvは、予め用意した関数を用いて求め
る。図4は、この関数の一例のグラフである。図4に示
すように、回路106では、分散値が大きくなるほど、
それに対応する分散係数が小さくなるような関数を用い
る。この関数は、例えば回路106内にあらかじめ登録
されている。
The variance coefficient calculation circuit 106 receives the image data of each block, and calculates the variance coefficient Cv for each block. The variance coefficient Cv is a coefficient for correcting block reliability described later, and is determined according to the variance of the pixel values of the block. The variance coefficient of block i is denoted by Cvi. The variance coefficient calculation circuit 106 first samples the pixels from the pixel group of the block by a predetermined method, and obtains the variance of the pixel values of the sampled pixel group.
In this case, for example, the circuit 106 obtains the variance in the pixel group sampled for each of the R, G, and B components, and obtains an overall variance value by, for example, averaging the variance of each of the components. Then, the dispersion coefficient calculation circuit 106
Calculates the variance coefficient based on the variance value thus obtained. The dispersion coefficient Cv is obtained using a function prepared in advance. FIG. 4 is a graph of an example of this function. As shown in FIG. 4, in the circuit 106, as the variance increases,
A function that reduces the corresponding dispersion coefficient is used. This function is registered in advance in the circuit 106, for example.

【0024】飽和係数計算回路108は、各ブロックの
画像データを受け取り、各ブロックごとに、その飽和係
数Csを求める。飽和係数Csは、後述するブロック信
頼度の補正のための係数であり、当該ブロックにおける
飽和画素の数に応じて決まる。飽和画素とは、画素値の
1以上の成分(例えばR、G、またはB)が、その成分
の上限値(例えば8ビット表現ならば255)に達して
いる画素をいう。ブロックiの飽和係数をCsiと表
す。飽和係数計算回路108は、まずブロックの中の飽
和画素の数をカウントし、このカウント結果から飽和係
数を求める。飽和係数Csは、予め用意した関数を用い
て求める。図5は、この関数の一例のグラフである。図
5に示すように、回路108では、飽和画素数が大きく
なるほど、それに対応する飽和係数が小さくなるような
関数を用いる。ここで用いる関数は、例えば回路108
内にあらかじめ登録されている。
The saturation coefficient calculation circuit 108 receives the image data of each block, and obtains the saturation coefficient Cs for each block. The saturation coefficient Cs is a coefficient for correcting block reliability described later, and is determined according to the number of saturated pixels in the block. A saturated pixel is a pixel in which one or more components of the pixel value (for example, R, G, or B) have reached the upper limit value of that component (for example, 255 in 8-bit representation). The saturation coefficient of block i is denoted by Csi. The saturation coefficient calculation circuit 108 first counts the number of saturated pixels in the block, and obtains a saturation coefficient from the count result. The saturation coefficient Cs is obtained using a function prepared in advance. FIG. 5 is a graph of an example of this function. As shown in FIG. 5, the circuit 108 uses a function such that the larger the number of saturated pixels, the smaller the corresponding saturation coefficient. The function used here is, for example, the circuit 108
Is registered in advance.

【0025】分散係数計算回路106及び飽和係数計算
回路108で求められた分散係数及び飽和係数は、信頼
度修正回路112に入力される。
The dispersion coefficient and the saturation coefficient obtained by the dispersion coefficient calculation circuit 106 and the saturation coefficient calculation circuit 108 are input to the reliability correction circuit 112.

【0026】代表色計算回路104にてブロックの代表
色の輝度・色差表現(L,u,v)が求められると、次
にブロック信頼度計算回路110が、予め想定した各光
源ごとに、その光源がそのブロックを照明している信頼
度(ブロック信頼度と呼ぶ)を求める(S14)。ある
ブロックについてのブロック信頼度は、想定した光源ご
とに求められる。以下、このS14の処理を詳しく説明
する。
When the representative color calculation circuit 104 obtains the luminance / color difference expression (L, u, v) of the representative color of the block, the block reliability calculation circuit 110 next calculates the luminance for each light source assumed in advance. The reliability of the light source illuminating the block (referred to as block reliability) is determined (S14). The block reliability of a certain block is obtained for each assumed light source. Hereinafter, the process of S14 will be described in detail.

【0027】本実施形態では、光源として、太陽光、タ
ングステン光(例えば白熱灯など)、蛍光灯光を想定す
る。これらは、一般ユーザの写真撮影やビデオ撮影にお
ける照明光源として一般的なものである。前述した特開
平8−289314号公報開示の従来技術では、太陽光
とタングステン光とを一括して扱っていたが、本実施形
態ではこれらを別々に取り扱う。これにより、太陽光と
タングステン光のスペクトルの差をよりよく反映したホ
ワイト処理が可能になる。
In this embodiment, it is assumed that sunlight, tungsten light (for example, incandescent light), and fluorescent light are used as light sources. These are common illumination light sources for photographing and video photographing by general users. In the prior art disclosed in Japanese Patent Application Laid-Open No. 8-289314 described above, sunlight and tungsten light are handled collectively, but in the present embodiment, they are handled separately. This enables white processing that better reflects the difference between the spectra of sunlight and tungsten light.

【0028】更に、本実施形態では、太陽光を昼光(昼
間の日なたの光)と日陰光(昼間の日陰の光)とに分け
て取り扱う。日なたと日陰では、同じ太陽光の影響下で
あるといっても、前者は色温度が比較的低く(赤っぽ
い)、後者は色温度が比較的高い(青っぽい)という違
いがある。したがって、両者を一括して取り扱ったので
は、日なた、日陰とも中途半端なホワイトバランスにな
るおそれがあり、更に、日なたの部分と日陰の部分が混
在するシーンで柔軟なホワイトバランスのコントロール
が困難になる。そこで本実施形態では、昼光と日陰光と
を別の光源として区別して取り扱うことにより、そのよ
うな問題を解決している。結局、本実施形態では、昼
光、日陰光、タングステン光、蛍光灯光の4種類の光源
を想定することになる。
Further, in the present embodiment, the sunlight is divided into daylight (daylight in the daytime) and shade light (daylight in the daylight). The difference between the sun and the shade is that the former has a relatively low color temperature (reddish) and the latter has a relatively high color temperature (bluish), even under the same sunlight. Therefore, if both are handled together, there is a possibility that the sun balance and the shade may have an incomplete white balance, and furthermore, a flexible white balance can be obtained in a scene where the sun shade and the shade are mixed. Control becomes difficult. Therefore, in the present embodiment, such a problem is solved by treating daylight and shade light separately as different light sources. After all, in this embodiment, four types of light sources of daylight, shade light, tungsten light, and fluorescent light are assumed.

【0029】ブロック信頼度計算回路110は、これら
想定した各光源ごとに、その光源下での白色物体の色の
色差成分(以下、その光源の典型色差と呼ぶ)と、ブロ
ックの代表色の色差成分(u,v)との距離Dを求め
る。ここで、光源の識別番号をj(j=1,2,…,
m:mは想定光源の個数。本実施形態ではm=4)と
し、識別番号jの光源を光源jと表現する。ここでは、
便宜上光源1を昼光、光源2を日陰光、光源3をタング
ステン光、光源4を蛍光灯光とする。ブロックiの代表
色の色差成分(ui,vi)と光源jの典型色差(Uj,
Vj)との距離Dijは、例えば次式に従って求める。
The block reliability calculation circuit 110 calculates, for each of these assumed light sources, a color difference component of a color of a white object under the light source (hereinafter referred to as a typical color difference of the light source) and a color difference component of a representative color of the block. The distance D from the component (u, v) is obtained. Here, the identification number of the light source is j (j = 1, 2,...,
m: m is the number of assumed light sources. In the present embodiment, m = 4), and the light source with the identification number j is expressed as a light source j. here,
For convenience, the light source 1 is daylight, the light source 2 is shade light, the light source 3 is tungsten light, and the light source 4 is fluorescent light. The color difference component (ui, vi) of the representative color of the block i and the typical color difference (Uj,
The distance Dij to Vj) is obtained, for example, according to the following equation.

【0030】[0030]

【数2】 Dij=d11*(ui−Uj)+d12*(ui−Uj)*(vi−Vj)+d22*(vi−Vj) …(2) ここで、d11、d12、d22はそれぞれ所定の定数であ
る。各光源ごとに、その特性に合わせてこれら定数d1
1、d12、d22の組を選択することにより、光源特性に
あった適切な距離を定義できる。この場合、それら定数
の値は、各光源ごとに、実験などで予め求め、ブロック
信頼度計算回路110又はカメラに設けられた記憶装置
(ROMなど。図示省略)に記憶しておく。また、距離
の定義には、上記式(2)以外のものを用いることも可
能である。この場合、光源ごとに、その特性に応じた異
なる距離の定義式を用いることも可能である。
Dij = d11 * (ui−Uj) 2 + d12 * (ui−Uj) * (vi−Vj) + d22 * (vi−Vj) 2 (2) where d11, d12 and d22 are Each is a predetermined constant. For each light source, these constants d1
By selecting a set of 1, d12 and d22, an appropriate distance suitable for the light source characteristics can be defined. In this case, the values of these constants are obtained in advance by experiments or the like for each light source, and are stored in the block reliability calculation circuit 110 or a storage device (such as a ROM, not shown) provided in the camera. In addition, it is also possible to use something other than the above equation (2) for the definition of the distance. In this case, it is also possible to use a different distance definition formula according to the characteristics for each light source.

【0031】以上の距離Dの計算が、1つのブロックi
に対し、全想定光源jについて行われる。
The above calculation of the distance D is performed for one block i.
For all assumed light sources j.

【0032】次にブロック信頼度計算回路110は、求
めた距離Dijから、ブロックiが光源jにより照明され
ている信頼度Rdijを求める。この信頼度Rdijは、色
差の観点から見た信頼度である。信頼度Rdijは、予め
定めた関数fを用いて距離Dijから求める。光源の種類
ごとに、距離Dと信頼度Rdとの関係が異なるので、こ
の関数fは光源jごとに個別に用意することが好適であ
る。光源jについての信頼度関数をfjと表すと、ブロ
ックiが光源jにより照明されている信頼度Rdijは次
式により求められる。
Next, the block reliability calculation circuit 110 obtains the reliability Rdij that the block i is illuminated by the light source j from the obtained distance Dij. The reliability Rdij is a reliability from the viewpoint of color difference. The reliability Rdij is obtained from the distance Dij using a predetermined function f. Since the relationship between the distance D and the reliability Rd is different for each type of light source, it is preferable that the function f be prepared individually for each light source j. If the reliability function for the light source j is represented by fj, the reliability Rdij at which the block i is illuminated by the light source j is obtained by the following equation.

【0033】[0033]

【数3】Rdij=fj(Dij) …(3) 図6に信頼度関数fjの一例を示す。図6に示すよう
に、関数fjは、距離Dijが大きくなるに従って値が減
少する関数である。この関数を距離に関して連続的に変
化する関数とすることにより、二値的な弁別結果をベー
スにしたことによる従来技術の問題を回避できる。各光
源ごとの信頼度関数fjは、予め実験等により求め、装
置内に記憶しておく。
Rdij = fj (Dij) (3) FIG. 6 shows an example of the reliability function fj. As shown in FIG. 6, the function fj is a function whose value decreases as the distance Dij increases. By making this function a function that changes continuously with respect to distance, it is possible to avoid the problems of the related art based on the binary discrimination result. The reliability function fj for each light source is obtained in advance by an experiment or the like and stored in the apparatus.

【0034】また、ブロック信頼度計算回路110は、
このようにして求めた色差の観点からの信頼度Rdに対
し、輝度の観点からの修正を加える。これは、蛍光灯下
での白い物体の明るさの分布、直射日光(昼光)下での
白い物体の明るさの分布、日陰での白い物体の明るさの
分布、などがそれぞれ異なるためである。したがって、
ブロックiの輝度(明るさ)Liに応じて、ブロックi
が光源jにより照明されている可能性を求めることがで
きる。ここでは、この可能性を係数として、前に求めた
色差に基づく信頼度Rdを修正する。
The block reliability calculation circuit 110 calculates
The reliability Rd from the viewpoint of color difference obtained in this way is modified from the viewpoint of luminance. This is because the brightness distribution of a white object under fluorescent light, the brightness distribution of a white object under direct sunlight (daylight), the brightness distribution of a white object in the shade, etc. are different. is there. Therefore,
According to the brightness (brightness) Li of the block i, the block i
May be illuminated by the light source j. Here, using this possibility as a coefficient, the reliability Rd based on the previously obtained color difference is corrected.

【0035】このため、ブロック信頼度計算回路110
は、各ブロックiごとに、輝度の観点から見てそのブロ
ックiが光源jで照明されている可能性を示す輝度係数
Clijを求める。輝度係数Clijは、光源jごとに予め
定められた関数gjに、ブロックiの輝度Liを適用する
ことにより求められる。すなわち、
For this reason, the block reliability calculation circuit 110
Calculates a luminance coefficient Clij indicating the possibility that the block i is illuminated by the light source j from the viewpoint of luminance for each block i. The luminance coefficient Clij is obtained by applying the luminance Li of the block i to a function gj predetermined for each light source j. That is,

【数4】Clij=gj(Li) …(4) 図7に関数gjの一例を示す。関数gjは、輝度Liの関
数であり、この例は輝度が大きくなるほど係数Clは大
きくなるものを示している。これは明るい物ほど光源の
影響を受けている可能性が高いことを考慮したものであ
る。この関数を輝度に関して連続的に変化する関数とす
ることにより、ホワイトバランスに対するブロック輝度
Liの影響を滑らかなものとすることができる。これ
は、ホワイトバランスの挙動の安定化に役立つ。なお、
この輝度係数の特性は、光源jごとに異なる。各光源ご
との輝度係数関数gjは、予め実験等により求め、装置
内に記憶しておく。
## EQU4 ## Clij = gj (Li) (4) FIG. 7 shows an example of the function gj. The function gj is a function of the luminance Li. In this example, the coefficient Cl increases as the luminance increases. This takes into account that the brighter the object, the higher the possibility of being affected by the light source. By making this function a function that changes continuously with respect to luminance, the effect of block luminance Li on white balance can be made smooth. This helps stabilize the behavior of white balance. In addition,
The characteristic of the luminance coefficient differs for each light source j. The luminance coefficient function gj for each light source is obtained in advance by an experiment or the like and stored in the apparatus.

【0036】そして、ブロック信頼度計算回路110
は、色差に基づく信頼度Rdに輝度係数Clを乗じるこ
とにより、信頼度Rijを求める。信頼度Rijは、色差及
び輝度の両方の観点から見て、ブロックiが光源jで照
明されている可能性を示す値である。すなわち、信頼度
Rijは、
Then, the block reliability calculation circuit 110
Calculates the reliability Rij by multiplying the reliability Rd based on the color difference by the luminance coefficient Cl. The reliability Rij is a value indicating the possibility that the block i is illuminated by the light source j from the viewpoint of both the color difference and the luminance. That is, the reliability Rij is

【数5】Rij=Clij*Rdij …(3) により求められる。Rij = Clij * Rdij (3)

【0037】ブロック信頼度計算回路110は、以上の
処理を画像中の全てのブロックiに対して、各光源jご
とに実行する。求められた信頼度Rijの情報は、信頼度
修正回路112に入力される。
The block reliability calculation circuit 110 executes the above processing for all the blocks i in the image for each light source j. Information on the obtained reliability Rij is input to the reliability correction circuit 112.

【0038】信頼度Rijが推定されると、次に信頼度修
正回路112が、その信頼度に対して修正を加える(S
16)。この回路112では、ブロックiに対する光源
jの信頼度Rijを、当該ブロックiについての前述の分
散係数Cvi及び飽和係数Csiと、当該ブロックiの画
像全体の中での位置によって決まる位置係数Cpiとに
より信頼度Rijを補正する。具体的には、これら係数を
信頼度Rijにかけることにより、信頼度を修正する。修
正された信頼度(修正信頼度と呼ぶ)Rmijとすると、
After the reliability Rij is estimated, the reliability correction circuit 112 corrects the reliability (S
16). In this circuit 112, the reliability Rij of the light source j with respect to the block i is determined by the above-described dispersion coefficient Cvi and saturation coefficient Csi for the block i and the position coefficient Cpi determined by the position of the block i in the entire image. Correct the reliability Rij. Specifically, the reliability is corrected by multiplying these coefficients by the reliability Rij. Assuming that the modified reliability (referred to as modified reliability) Rmij,

【数6】 Rmij=Cvi*Cli*Cpi*Rij …(6) である。Rmij = Cvi * Cli * Cpi * Rij (6)

【0039】ここで、位置係数Cpiは、ブロックiが
画像の中央に近いほど大きい値になるように予め定めて
おく。これは、一般に、画像の中央に近いブロックほど
画像の中での重要度が高いと考えられるからである。位
置的に見て重要度の高いブロックに対し高い位置係数を
与えることにより、重要度の高いブロックの色がホワイ
トバランス制御により強く反映されることになる。図8
は、位置係数の設定例を示す図である。この例では、画
像中央部のブロック210−1には位置係数として1.
0、画像周縁部のブロック210−2には位置係数とし
て0.5が与えられている。これら位置係数は、装置内
に予め記憶されている。
Here, the position coefficient Cpi is determined in advance so that the value increases as the block i is closer to the center of the image. This is because it is generally considered that the closer to the center of the image, the higher the importance in the image. By giving a high position coefficient to a block having a high importance in terms of position, the color of the block having a high importance is strongly reflected by the white balance control. FIG.
FIG. 4 is a diagram showing an example of setting a position coefficient. In this example, the block 210-1 at the center of the image has a position coefficient of 1.
0 and 0.5 are given as position coefficients to the block 210-2 at the periphery of the image. These position coefficients are stored in the apparatus in advance.

【0040】また、この修正処理では、分散係数Cv
i、飽和係数Csiも考慮している。これには次のような
意義がある。
In this correction process, the variance coefficient Cv
i and saturation coefficient Csi are also taken into account. This has the following significance.

【0041】まず、分散係数Cviは、前述のように、
ブロックi内での画素値の分散が大きくなるほどその値
が小さくなるように定められている。したがって、ブロ
ックiの分散が大きいほど分散係数Cviは小さくな
り、この結果修正信頼度Rmijの値も小さくなる。この
ような修正を行うのは、ブロックiの画素値の分散が大
きいほど、そのブロックの代表色(Li,ui,vi)か
ら求めた信頼度Rij自体の信頼性が低いと考えられるた
めである。分散が大きいほどそのブロックの各画素値の
ばらつきが大きいので、その画素値から求めた代表色が
そのブロックの色の傾向(すなわち照明の傾向)を表し
ている可能性が低いと考えられる。したがって、そのよ
うな信頼性の低い代表色から求めた信頼度Rijは、信頼
性が低いと考えられるので、その信頼度Rijのホワイト
バランスへの影響を小さくするために、分散係数Cvi
の値を小さくする。
First, the variance coefficient Cvi is, as described above,
It is determined that the larger the variance of the pixel values in the block i, the smaller the value. Therefore, as the variance of the block i increases, the variance coefficient Cvi decreases, and as a result, the value of the modified reliability Rmij also decreases. The reason for such correction is that the greater the variance of the pixel values of the block i, the lower the reliability of the reliability Rij itself obtained from the representative colors (Li, ui, vi) of the block. . The larger the variance is, the larger the variation of each pixel value of the block is. Therefore, it is considered that the possibility that the representative color obtained from the pixel value indicates the color tendency of the block (that is, the tendency of illumination) is low. Therefore, the reliability Rij obtained from such a low-reliability representative color is considered to be low in reliability. In order to reduce the influence of the reliability Rij on the white balance, the dispersion coefficient Cvi
The value of.

【0042】また、飽和係数Csiは、前述のように、
ブロックi内での飽和画素の数が大きくなるほどその値
が小さくなる。したがって、ブロックi内の飽和画素数
が多いほど飽和係数Csiは小さくなり、この結果信頼
度Rijは小さい値に修正されることになる。このような
修正を行うのは、ブロックiの飽和画素数が大きいほ
ど、そのブロックの代表色(Li,ui,vi)から求め
た信頼度Rij自体の信頼性が低いと考えられるためであ
る。飽和画素は、RGB各成分の上限値を超える部分が
カットされている可能性があるので、対象物の正しい色
を表していないおそれがある。したがって、飽和画素が
多いほど、ブロックの代表色がそのブロックの色の傾向
(したがって照明の傾向)を表している可能性が低くな
ると考えられる。そのような信頼性の低い代表色から求
めた信頼度Rijは、それ自体信頼性が低いと考えられる
ので、ここでは、その信頼度Rijのホワイトバランスへ
の影響を小さくするために、飽和係数Csiの値を小さ
くするのである。
The saturation coefficient Csi is, as described above,
The value decreases as the number of saturated pixels in the block i increases. Therefore, as the number of saturated pixels in the block i increases, the saturation coefficient Csi decreases, and as a result, the reliability Rij is corrected to a small value. This correction is performed because the reliability of the reliability Rij itself obtained from the representative color (Li, ui, vi) of the block is considered to be lower as the number of saturated pixels of the block i is larger. Since there is a possibility that a portion of the saturated pixel exceeding the upper limit value of each of the RGB components has been cut, the saturated pixel may not represent the correct color of the object. Therefore, it is considered that the more saturated pixels, the lower the possibility that the representative color of the block indicates the tendency of the color of the block (and thus the tendency of illumination). Since the reliability Rij obtained from such a low-reliability representative color is considered to be low in its own right, here, in order to reduce the influence of the reliability Rij on the white balance, the saturation coefficient Csi Is made smaller.

【0043】S16では、以上の信頼度修正処理が、各
ブロックiごとに、及び各光源jごとに実行される。求
められた修正信頼度Rmijは光源寄与計算回路114及
び全体信頼度計算回路116に入力される。
In S16, the above-described reliability correction processing is executed for each block i and for each light source j. The obtained corrected reliability Rmij is input to the light source contribution calculation circuit 114 and the overall reliability calculation circuit 116.

【0044】全ブロックについて修正信頼度Rmijが求
められると、次に、画像のシーン全体についての各光源
jの信頼度、及び各光源jの画像全体への寄与成分の推
定が行われる(S18)。
When the modified reliability Rmij is obtained for all blocks, the reliability of each light source j for the entire scene of the image and the contribution component of each light source j to the entire image are estimated (S18). .

【0045】光源jの画像全体への信頼度(全体信頼度
と呼ぶ)Rtjは、全体信頼度計算回路116により計
算される。回路116は、各ブロックiの修正信頼度R
mijを画像中の全ブロックについて総和することによ
り、全体信頼度Rtijを求める。すなわち、
The reliability (referred to as overall reliability) Rtj of the light source j for the entire image is calculated by the overall reliability calculation circuit 116. The circuit 116 calculates the modified reliability R of each block i.
The total reliability Rtij is determined by summing mij for all blocks in the image. That is,

【数7】 Rtj=ΣRmij(ただしΣはi=1〜nについての総和) …(7) である。Rtj = ΣRmij (where Σ is the sum of i = 1 to n) (7)

【0046】光源寄与成分は、光源寄与計算回路116
により求められる。光源jの光源寄与成分は、画像全体
の色合いに対して各光源jが与えている影響のことであ
り、言い換えれば、その光源jがその画像のシーンを照
明することで、その画像に現れると推定される色の傾向
である。光源寄与成分は、輝度及び色差の組で表され
る。ここでは、画像全体に対する光源jの寄与成分を
(Lcj,ucj,vcj)と表す。
The light source contribution component is calculated by a light source contribution calculation circuit 116.
Required by The light source contributing component of the light source j is the influence of each light source j on the hue of the entire image. In other words, when the light source j illuminates the scene of the image, it appears in the image. Estimated color trend. The light source contribution component is represented by a set of luminance and color difference. Here, the contribution component of the light source j to the entire image is represented as (Lcj, ucj, vcj).

【0047】光源寄与計算回路116は、各ブロックご
と各光源ごとの修正信頼度Rmij、各ブロックの代表色
(Li,ui,vi)、及び各光源の全体信頼度Rtjに基
づき、次式に従って光源寄与成分を推定する。
The light source contribution calculating circuit 116 calculates the light source in accordance with the following equation based on the modified reliability Rmij for each light source for each block, the representative color (Li, ui, vi) of each block, and the overall reliability Rtj for each light source. Estimate the contribution component.

【0048】[0048]

【数8】 Lcj=(ΣRmij・Li)/Rtj ucj=(ΣRmij・ui)/Rtj vcj=(ΣRmij・vi)/Rtj …(8) 式(8)において、Σはi=1〜n(nは総ブロック
数)についての総和を示す。この計算は、各ブロックi
の輝度及び色差を、それぞれ各ブロックiの修正信頼度
Rmijによって、全ブロックにわたって加重平均する処
理と等価である。
Lcj = (ΣRmij · Li) / Rtj ucj = (ΣRmij · ui) / Rtj vcj = (ΣRmij · vi) / Rtj (8) In equation (8), Σ is i = 1 to n (n Indicates the sum of the total number of blocks. This calculation is performed for each block i
Is equivalent to a process of weighting and averaging the luminance and color difference of all the blocks with the correction reliability Rmij of each block i.

【0049】このようにして当該画像のシーン全体に対
する各光源jの寄与成分が推定されると、次にこの推定
値に対して光源寄与修正回路118が修正を加える(S
20)。この修正は大きく分けて2段階からなる。
When the contribution component of each light source j to the entire scene of the image is estimated in this way, the light source contribution correction circuit 118 corrects the estimated value (S
20). This modification is roughly divided into two stages.

【0050】第一段階では、各光源jの寄与成分を、各
光源jごとに予め定められた標準色と加重平均する。光
源jの標準色は、光源jの照明下でのシーンの標準的な
色(すなわち輝度及び色差の組)であり、これは予めそ
の光源jで各種のシーンを撮影し、それら撮影画像の輝
度、色差を集計することで求めておく。各光源jの標準
色(Lsj,usj,vsj)は、装置内に予め記憶して
おく。この第一段階の修正処理は、次式で表される。
In the first stage, the contribution component of each light source j is weighted and averaged with a standard color predetermined for each light source j. The standard color of the light source j is a standard color of a scene under the illumination of the light source j (that is, a set of luminance and color difference). , The color difference is calculated. The standard colors (Lsj, usj, vsj) of each light source j are stored in the apparatus in advance. The first-stage correction processing is represented by the following equation.

【0051】[0051]

【数9】 Lmj=wsj・Lcj+(1−wsj)・Lsj umj=wsj・ucj+(1−wsj)・usj vmj=wsj・vcj+(1−wsj)・vsj …(9) ここで(Lmj,umj,vmj)は寄与成分の修正結果
であり、wsj(ただし0≦ws≦1)は予め定めた重み
である。この重みwsjは、各光源jごとに予め実験等
により求めておき、装置内に記憶しておく。
Lmj = wsj · Lcj + (1-wsj) · Lsj umj = wsj · ucj + (1−wsj) · usj vmj = wsj · vcj + (1−wsj) · vsj (9) where (Lmj, umj) , Vmj) is the correction result of the contribution component, and wsj (where 0 ≦ ws ≦ 1) is a predetermined weight. The weight wsj is obtained in advance by an experiment or the like for each light source j and stored in the apparatus.

【0052】第一段階の修正は、光源寄与成分(Lc
j,ucj,vcj)に含まれる物体色の影響を低減する
ための修正である。画像に現れる色は、光源からの照明
光の色(照明色)と物体それ自体の色(物体色)の両方
から影響を受ける。ホワイトバランスは照明光の色温度
に合わせて白い物が白く見えるように色補正することで
ある。したがって照明光の色が精度よく推定できれば、
精度のよいホワイトバランス調整が行える。しかしなが
ら、実際の画像は、白色以外の物体が数多く含まれたシ
ーンを撮影したものがほとんどであり、画像の色には物
体色の影響が多分に含まれている。光源寄与成分と当該
光源jの標準色とを加重平均することで、光源寄与成分
に含まれる物体色の影響を相対的に低減することがで
き、光源寄与成分をより照明の色に近い値に修正でき
る。
The correction in the first stage is a light source contribution component (Lc
j, ucj, vcj) is a correction for reducing the effect of the object color included in the image data. The color appearing in the image is affected by both the color of the illumination light from the light source (illumination color) and the color of the object itself (object color). White balance is to correct the color so that a white object looks white according to the color temperature of the illumination light. Therefore, if the color of the illumination light can be accurately estimated,
Accurate white balance adjustment can be performed. However, most of the actual images are obtained by photographing scenes including many objects other than white, and the colors of the images largely include the effects of the object colors. By performing a weighted average of the light source contribution component and the standard color of the light source j, the influence of the object color included in the light source contribution component can be relatively reduced, and the light source contribution component is set to a value closer to the illumination color. Can be modified.

【0053】第二段階では、この第一段階の修正結果
(Lmj,umj,vmj)に対し、被写体輝度を考慮し
た修正を加える。被写体輝度Loは、カメラ装置に設け
られた被写体輝度検出装置30にて検出される。この第
二段階の修正では、修正回路118は、まず各光源jご
との修正係数Cojを求める。修正係数Cojは、光源j
ごとに用意された関数hjに、被写体輝度Loを適用す
ることにより求める。すなわち、
In the second stage, the correction result (Lmj, umj, vmj) of the first stage is corrected in consideration of the subject luminance. The subject brightness Lo is detected by a subject brightness detection device 30 provided in the camera device. In the second-stage correction, the correction circuit 118 first obtains a correction coefficient Coj for each light source j. The correction coefficient Coj is
It is obtained by applying the subject luminance Lo to the function hj prepared for each. That is,

【数10】Coj=hj(Lo) …(10) である。## EQU10 ## Coj = hj (Lo) (10)

【0054】図9に被写体輝度に基づく修正関数hjの
一例を示す。この例では、被写体輝度Loが大きくなる
につれて修正係数Coが小さくなっており、被写体輝度
がある値を超えると修正係数が0になっている。これは
光源が蛍光灯である場合の関数hjの一例である。撮影
シーンが蛍光灯照明下である場合、シーンが昼間の屋外
である場合に比べて被写体が暗い。被写体輝度が非常に
大きい場合、画像は屋外のシーンを撮影したものである
可能性が高く、蛍光灯照明である可能性は低い。そこ
で、蛍光灯光源の場合、被写体輝度が高くなるにつれて
修正係数Coが小さい値になるようにしている。タング
ステン光や日陰光のシーンの場合も、昼光シーンに比べ
て被写体輝度が低いと考えられるので、被写体輝度があ
る程度以上高くなると修正係数Coが小さくなるような
関数hjを用いる。これら修正関数hjは、実験等により
予め求めておき、装置内に記憶しておく。
FIG. 9 shows an example of the correction function hj based on the subject luminance. In this example, the correction coefficient Co decreases as the subject luminance Lo increases, and the correction coefficient becomes 0 when the subject luminance exceeds a certain value. This is an example of the function hj when the light source is a fluorescent lamp. When the shooting scene is under fluorescent lighting, the subject is darker than when the scene is outdoors in the daytime. If the subject brightness is very large, the image is likely to be an outdoor scene and less likely to be fluorescent lighting. Therefore, in the case of a fluorescent light source, the correction coefficient Co is set to a smaller value as the subject luminance increases. Also in the case of a scene of tungsten light or shade, the brightness of the subject is considered to be lower than that of the daylight scene, so a function hj is used such that when the brightness of the subject becomes higher than a certain level, the correction coefficient Co decreases. These correction functions hj are obtained in advance by experiments or the like and stored in the apparatus.

【0055】そして、光源寄与修正回路118は、この
ようにして求めた修正係数Coを第一段階の修正結果
(Lmj,umj,vmj)に乗じることにより、最終的
な修正結果(Lzj,uzj,vzj)を求める。すなわ
ち、
Then, the light source contribution correction circuit 118 multiplies the correction coefficient Co thus obtained by the correction result (Lmj, umj, vmj) of the first stage to obtain the final correction result (Lzj, uzj, vzj). That is,

【数11】 Lzj=Coj・Lmj uzj=Coj・umj vzj=Coj・vmj …(11) である。この修正結果(Lzj,uzj,vzj)は、被
写体輝度などのパラメータを考慮して修正された光源寄
与成分となっている。この修正結果は、照明色推定回路
120に入力される。
Lzj = Coj · Lmj uzj = Coj · umj vzj = Coj · vmj (11) The correction result (Lzj, uzj, vzj) is a light source contribution component corrected in consideration of parameters such as subject brightness. This correction result is input to the illumination color estimation circuit 120.

【0056】照明色推定回路120は、光源寄与修正回
路118から入力された各光源jの光源寄与成分の修正
結果(Lzj,uzj,vzj)と、全体信頼度計算回路
116で求められたシーン全体に対する各光源jの全体
信頼度Rtjとに基づき、当該画像の撮影シーンを照明
する照明の色(照明色)を推定する(S22)。この推
定は、光源寄与成分の修正結果(Lzj,uzj,vz
j)を、各光源jの全体信頼度Rtjを重みとして、想定
する全光源について加重平均することにより行う。すな
わち、照明色を(IL,Iu,Iv)とすると、
The illumination color estimation circuit 120 calculates the correction results (Lzj, uzj, vzj) of the light source contribution components of each light source j input from the light source contribution correction circuit 118 and the entire scene obtained by the overall reliability calculation circuit 116. Is estimated based on the overall reliability Rtj of each light source j with respect to (S22). This estimation is based on the correction result (Lzj, uzj, vz) of the light source contribution component.
j) is performed by performing weighted averaging for all assumed light sources using the overall reliability Rtj of each light source j as a weight. That is, if the illumination color is (IL, Iu, Iv),

【数12】 Wj=Rtj/(ΣRtj) IL=Σ(Wj*Lzj) Iu=Σ(Wj*uzj) Iv=Σ(Wj*vzj) …(12) 式(12)において、Σは全想定光源jについての総和
である。
Wj = Rtj / (ΣRtj) IL = Σ (Wj * Lzj) Iu = Σ (Wj * uzj) Iv = Σ (Wj * vzj) (12) In equation (12), Σ represents all assumed light sources This is the sum of j.

【0057】すなわち、このS22では、シーンがそれ
ら想定光源jで複合的に照明されているとの仮定の下
で、加重平均によりその複合照明の照明色を推定してい
る。この照明色は、その複合照明下での白色物体の色に
対応する。求められた照明色(IL,Iu,Iv)は、
ホワイトバランスゲイン計算回路122に入力される。
That is, in S22, the illumination color of the composite illumination is estimated by the weighted average under the assumption that the scene is illuminated compositely by the assumed light source j. This illumination color corresponds to the color of a white object under the composite illumination. The obtained illumination colors (IL, Iu, Iv)
It is input to the white balance gain calculation circuit 122.

【0058】ホワイトバランスゲイン計算回路122
は、受け取った照明色(IL,Iu,Iv)の情報に基
づき、ホワイトバランス調整のためのゲイン(Rgain,
Ggain,Bgain)を計算する(S24)。この計算は、
以下の式に基づき行われる。
White balance gain calculation circuit 122
Is based on the information of the received illumination colors (IL, Iu, Iv) based on the gain (Rgain,
Ggain, Bgain) are calculated (S24). This calculation is
This is performed based on the following equation.

【0059】[0059]

【数13】 (Equation 13)

【数14】 IMax=max(IR,IG,IB) …(14)Imax = max (IR, IG, IB) (14)

【数15】 Rgain=IMax/IR Ggain=IMax/IG Bgain=IMax/IB …(15) (IR,IG,IB)は、照明色のRGB表現である。
求められるホワイトバランスゲイン(Rgain,Ggain,
Bgain)は、この色の照明が白色物体で反射されたとき
の色(すなわち(IR,IG,IB)そのもの)をグレ
イ(すなわちR=G=B)に補正する値となる。求めら
れたホワイトバランスゲインは、ホワイトバランス調整
回路124に入力される。
Rgain = IMax / IR Ggain = IMax / IG Bgain = IMax / IB (15) (IR, IG, IB) is an RGB representation of the illumination color.
The required white balance gain (Rgain, Ggain,
Bgain) is a value that corrects the color (ie, (IR, IG, IB) itself) when the illumination of this color is reflected by a white object to gray (ie, R = G = B). The obtained white balance gain is input to the white balance adjustment circuit 124.

【0060】ホワイトバランス調整回路124は、撮像
装置20から入力された画像の各画素値R,G,Bに対
し、ホワイトバランスゲイン計算回路122で求めたゲ
インRgain,Ggain,Bgainをそれぞれ乗じることによ
り、その画像のホワイトバランスを調整する(S2
6)。したがって、オートホワイトバランス装置10の
出力端子126からは、次式、
The white balance adjustment circuit 124 multiplies each of the pixel values R, G, and B of the image input from the imaging device 20 by the gains Rgain, Ggain, and Bgain obtained by the white balance gain calculation circuit 122, respectively. , Adjust the white balance of the image (S2
6). Therefore, from the output terminal 126 of the auto white balance device 10,

【数16】 Rout=Rgain*R Gout=Ggain*G Bout=Bgain*B …(16) によって求められた出力(Rout,Gout,Bout)が出
力される。
Rout = Rgain * R Gout = Ggain * G Bout = Bgain * B (16) The output (Rout, Gout, Bout) obtained by (16) is output.

【0061】以上、本発明の好適な実施の形態を説明し
た。以上説明したように、本実施形態では、各ブロック
の代表色と各光源の典型色差との距離に基づいて、各ブ
ロックが各光源で照明されている信頼度を推定し、その
信頼度に基づきホワイトバランス調整を行う。信頼度
は、距離に対する連続的な関数から求められるので、各
ブロックが各光源に対応する範囲に含まれるか否かとい
う二値的な弁別結果に基づきホワイトバランス調整を行
っていた従来技術に比べ、ホワイトバランス制御の挙動
が安定するという効果が得られる。
The preferred embodiment of the present invention has been described above. As described above, in the present embodiment, the reliability of each block being illuminated by each light source is estimated based on the distance between the representative color of each block and the typical color difference of each light source, and based on the reliability. Perform white balance adjustment. Since the reliability is obtained from a continuous function with respect to the distance, it is compared with the prior art in which white balance adjustment is performed based on a binary discrimination result of whether each block is included in a range corresponding to each light source. The effect of stabilizing the behavior of white balance control is obtained.

【0062】また、本実施形態では、色差に基づく信頼
度を、ブロックの代表色の輝度に応じて修正すること
で、想定する各光源がシーンの輝度に与える影響に関す
る知識を折り込んだホワイトバランス制御が可能にな
る。この輝度に応じた修正は、輝度に関する連続的な関
数に従って行うので、ホワイトバランス制御が滑らかに
行われると言う利点もある。
In this embodiment, the reliability based on the color difference is corrected in accordance with the luminance of the representative color of the block, so that the white balance control incorporating knowledge on the influence of each assumed light source on the luminance of the scene is performed. Becomes possible. Since the correction according to the luminance is performed according to a continuous function relating to the luminance, there is an advantage that the white balance control is smoothly performed.

【0063】また、本実施形態では、ブロック内の画素
値の分散が大きくなるほど信頼度が小さくなるように補
正する機構を設けたので、画素値のばらつきが大きい
(すなわち照明光の色を表している可能性の低い)ブロ
ックがホワイトバランス制御に与える影響を低減するこ
とができる。
Further, in this embodiment, since a mechanism is provided for correcting so that the reliability decreases as the variance of the pixel values in the block increases, the variation of the pixel values is large (that is, the color of the illumination light is expressed. It is possible to reduce the influence of the blocks (which are unlikely to be present) on the white balance control.

【0064】また、本実施形態では、ブロック内の飽和
画素数が大きくなるほど信頼度が小さくなるように補正
する機構を設けたので、飽和画素数が大きい(すなわち
画素値が正しい色を表していない可能性がある)ブロッ
クがホワイトバランス制御に与える影響を低減すること
ができる。
In the present embodiment, a mechanism is provided for correcting the reliability so that the reliability decreases as the number of saturated pixels in the block increases. Therefore, the number of saturated pixels is large (that is, the pixel value does not represent a correct color). It is possible to reduce the influence of (possibly) blocks on white balance control.

【0065】また、本実施形態では、光源と被写体輝度
との関係に関する知識を用い、被写体輝度に応じてホワ
イトバランスを調整する機構を設けたので、より適切な
ホワイトバランス制御を行うことができる。
Further, in the present embodiment, a mechanism for adjusting the white balance according to the brightness of the subject is provided by using the knowledge on the relationship between the light source and the brightness of the subject, so that more appropriate white balance control can be performed.

【0066】なお、以上の実施形態では、ブロックの代
表色の色差から求めた信頼度を、代表色の輝度や、ブロ
ック内の画素値の分散、ブロック内の飽和画素数、ブロ
ックの画像内での位置、などに応じて修正したが、この
ような修正をまったく施さない信頼度を用いてホワイト
バランス制御を行っても、従来技術に対してある程度の
改善効果が得られる。この色差に基づく信頼度に対し
て、上記各項目についての修正を行うことにより、改善
度合いが向上する。そして、より多くの項目に関して修
正を行うほど、ホワイトバランス制御の精度が高くな
る。
In the above embodiment, the reliability obtained from the color difference of the representative color of the block is used to calculate the luminance of the representative color, the variance of the pixel values in the block, the number of saturated pixels in the block, and the image of the block. However, even if the white balance control is performed using the reliability that does not perform such correction at all, a certain improvement effect can be obtained with respect to the related art. The degree of improvement is improved by correcting each of the above items with respect to the reliability based on the color difference. Then, the more the items are corrected, the higher the accuracy of the white balance control becomes.

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

【図1】 実施形態のオートホワイトバランス装置の構
成を示す図である。
FIG. 1 is a diagram illustrating a configuration of an automatic white balance device according to an embodiment.

【図2】 実施形態のオートホワイトバランス装置の処
理手順を示す図である。
FIG. 2 is a diagram showing a processing procedure of the automatic white balance device of the embodiment.

【図3】 ブロック分割の一例を示す図である。FIG. 3 is a diagram illustrating an example of block division.

【図4】 分散係数を求めるための関数の一例を示す図
である。
FIG. 4 is a diagram illustrating an example of a function for obtaining a variance coefficient.

【図5】 飽和係数を求めるための関数の一例を示す図
である。
FIG. 5 is a diagram showing an example of a function for obtaining a saturation coefficient.

【図6】 ブロック信頼度を求めるための関数の一例を
示す図である。
FIG. 6 is a diagram illustrating an example of a function for obtaining block reliability.

【図7】 輝度係数を求めるための関数の一例を示す図
である。
FIG. 7 is a diagram illustrating an example of a function for obtaining a luminance coefficient.

【図8】 位置係数の設定例を示す図である。FIG. 8 is a diagram illustrating a setting example of a position coefficient.

【図9】 被写体輝度に基づく修正係数を求めるための
関数の一例を示す図である。
FIG. 9 is a diagram illustrating an example of a function for calculating a correction coefficient based on subject brightness.

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

10 オートホワイトバランス装置、20 撮像装置、
30 被写体輝度検出装置、102 ブロック分割回
路、104 代表色計算回路、106 分散係数計算回
路、108 飽和係数計算回路、110 ブロック信頼
度計算回路、112 信頼度修正回路、114 光源寄
与計算回路、116 全体信頼度計算回路、118 光
源寄与修正回路、120 照明色推定回路、122 ホ
ワイトバランスゲイン計算回路、124 ホワイトバラ
ンス調整回路。
10 auto white balance devices, 20 imaging devices,
Reference Signs List 30 object luminance detection device, 102 block division circuit, 104 representative color calculation circuit, 106 dispersion coefficient calculation circuit, 108 saturation coefficient calculation circuit, 110 block reliability calculation circuit, 112 reliability correction circuit, 114 light source contribution calculation circuit, 116 overall Reliability calculation circuit, 118 light source contribution correction circuit, 120 illumination color estimation circuit, 122 white balance gain calculation circuit, 124 white balance adjustment circuit.

Claims (18)

【特許請求の範囲】[Claims] 【請求項1】 ホワイトバランス処理対象の画像を複数
のブロックに分割するブロック分割手段と、 分割された各ブロックごとに、当該ブロック内の画素値
に基づき当該ブロックの代表色を求める代表色算出手段
と、 前記各ブロックごとかつ想定する各光源ごとに、当該光
源下での白色物体の色の色差成分と当該ブロックの代表
色の色差成分との距離を求め、これら各距離に基づき前
記各光源が前記各ブロックのシーンを照明している信頼
度を推定するブロック信頼度推定手段と、 前記各光源ごとについて、各ブロックの代表色を当該ブ
ロックについての当該光源の信頼度に従って加重平均す
ることにより、当該光源の画像全体に対する寄与成分を
推定する光源寄与成分推定手段と、 前記各光源ごとに、当該光源の各ブロックについての信
頼度を前記画像中の全ブロックにわたって総和すること
により、前記画像全体についての当該光源の信頼度を推
定する全体信頼度推定手段と、 前記光源寄与成分推定手段で推定された前記各光源の画
像全体に対する寄与成分を、前記全体信頼度推定手段で
推定された前記各光源の画像全体についての信頼度に従
って加重平均することにより、前記画像全体のシーンを
照明する照明色を推定する照明色推定手段と、 推定した前記照明色を打ち消すよう、前記画像の各画素
に対してホワイトバランス処理を行うホワイトバランス
手段と、 を有するオートホワイトバランス装置。
1. A block dividing means for dividing an image to be subjected to white balance processing into a plurality of blocks, and a representative color calculating means for obtaining, for each of the divided blocks, a representative color of the block based on a pixel value in the block. And for each block and for each assumed light source, determine the distance between the color difference component of the color of the white object under the light source and the color difference component of the representative color of the block, and based on each of these distances, Block reliability estimating means for estimating the reliability of illuminating the scene of each block, for each light source, by weighted averaging the representative color of each block according to the reliability of the light source for the block, A light source contribution component estimating means for estimating a contribution component of the light source to the entire image; and a signal for each block of the light source for each of the light sources. Total reliability over all blocks in the image, thereby estimating the reliability of the light source for the entire image, and an overall image of each light source estimated by the light source contribution component estimating means. An illumination color estimating means for estimating an illumination color for illuminating a scene of the entire image by performing a weighted average according to the reliability on the entire image of each light source estimated by the overall reliability estimating means. An auto white balance apparatus comprising: a white balance unit that performs white balance processing on each pixel of the image so as to cancel the estimated illumination color.
【請求項2】 請求項1記載の装置であって、 前記ブロック信頼度推定手段は、前記距離が大きくなる
につれて単調に減少する連続関数を用いて前記信頼度を
推定することを特徴とする装置。
2. The apparatus according to claim 1, wherein the block reliability estimating unit estimates the reliability using a continuous function that monotonically decreases as the distance increases. .
【請求項3】 請求項2記載の装置であって、 前記信頼度を求めるために用いる前記連続関数は、前記
各光源ごとに個別に用意されることを特徴とする装置。
3. The apparatus according to claim 2, wherein said continuous function used to determine said reliability is prepared separately for each of said light sources.
【請求項4】 請求項1記載の装置であって、さらに、 前記各ブロックごとに、そのブロックの前記画像内での
位置に応じて定められる係数により、前記ブロック信頼
度推定手段で推定された前記信頼度を修正する手段を有
することを特徴とする装置。
4. The apparatus according to claim 1, further comprising: for each of the blocks, the block reliability estimating means estimates a coefficient determined according to a position of the block in the image. An apparatus comprising means for modifying the reliability.
【請求項5】 請求項1記載の装置であって、 前記各光源ごとについて、前記ブロック信頼度推定手段
で推定された各ブロックについての前記信頼度を、前記
ブロックの代表色の輝度成分に応じて修正する手段を有
することを特徴とする装置。
5. The apparatus according to claim 1, wherein for each of the light sources, the reliability of each block estimated by the block reliability estimating means is determined according to a luminance component of a representative color of the block. Device having means for correcting by means of
【請求項6】 請求項5記載の装置であって、 前記各ブロックについての前記信頼度を修正する手段
は、前記各光源ごとに個別に用意した連続関数を用いて
修正を行うことを特徴とする装置。
6. The apparatus according to claim 5, wherein the means for correcting the reliability of each of the blocks performs correction using a continuous function individually prepared for each of the light sources. Equipment to do.
【請求項7】 請求項1記載の装置であって、さらに、 前記ブロックからサンプリングした画素の画素値の分散
を求める手段と、 前記ブロック信頼度推定手段で推定された信頼度を、前
記画素値の分散が大きいほど値が小さくなる所定の関数
に従って修正する手段と、 を有する装置。
7. The apparatus according to claim 1, further comprising: means for obtaining a variance of pixel values of pixels sampled from the block; and calculating the reliability estimated by the block reliability estimating means using the pixel value. Means for modifying according to a predetermined function, the value of which decreases as the variance of increases.
【請求項8】 請求項1記載の装置であって、さらに、 前記ブロックに含まれる飽和画素の数をカウントする手
段と、 前記ブロック信頼度推定手段で推定された信頼度を、前
記飽和画素の数が大きいほど値が小さくなる所定の関数
に従って修正する手段と、を有する装置。
8. The apparatus according to claim 1, further comprising: a means for counting the number of saturated pixels included in the block; and a reliability estimated by the block reliability estimation means, Means for modifying according to a predetermined function in which the larger the number, the smaller the value.
【請求項9】 請求項1記載の装置であって、 被写体の輝度を検出する被写体輝度検出手段と、 検出した被写体の輝度に応じて、前記光源寄与成分推定
手段で推定された前記各光源ごとの寄与成分を修正する
修正手段と、 を更に含み、 前記照明色推定手段は、前記修正手段による前記寄与成
分の修正結果に基づき、前記照明色を推定することを特
徴とする装置。
9. An apparatus according to claim 1, wherein said light source estimated by said light source contributing component estimating means according to the detected brightness of the subject, and subject brightness detecting means for detecting the brightness of the subject. Correction means for correcting the contribution component of (i), wherein the illumination color estimation means estimates the illumination color based on a result of the correction of the contribution component by the correction means.
【請求項10】 請求項1記載の装置であって、 前記各光源ごとに、前記光源寄与成分推定手段で推定さ
れた前記各光源ごとの寄与成分を、当該光源について予
め用意されている標準色により修正する第二の修正手段
を更に含み、 前記照明色推定手段は、前記第二の修正手段による前記
寄与成分の修正結果に基づき前記照明色を推定すること
を特徴とする装置。
10. The apparatus according to claim 1, wherein, for each light source, the contribution component of each light source estimated by the light source contribution component estimating means is a standard color prepared in advance for the light source. The illumination color estimating means estimates the illumination color based on a result of the correction of the contribution component by the second correcting means.
【請求項11】 請求項1記載の装置であって、 前記想定する各光源には、昼間の日光と昼間の日陰とが
含まれることを特徴とする装置。
11. The apparatus according to claim 1, wherein each of the assumed light sources includes daytime sunlight and daytime shade.
【請求項12】 ホワイトバランス処理対象の画像の各
画素値から当該画像の代表色を求める代表色算出手段
と、 想定する各光源ごとについて、その光源下での白色物体
の色の色差成分と前記画像の代表色の色差成分との距離
を求め、これら各距離に基づき前記各光源がその画像の
シーンを照明している信頼度を推定する信頼度推定手段
と、 前記画像の代表色と前記各光源ごとの信頼度とに基づ
き、前記画像のシーンを照明する照明の色を推定する照
明色推定手段と、 前記照明色を打ち消すよう、前記画像の各画素に対して
ホワイトバランス処理を行うホワイトバランス手段と、 を有するオートホワイトバランス装置。
12. A representative color calculating means for obtaining a representative color of an image to be subjected to white balance processing from each pixel value of the image, a color difference component of a color of a white object under the light source for each assumed light source, and Calculating a distance between the color difference component of the representative color of the image and a reliability estimating means for estimating the reliability of illuminating the scene of the image based on each of the distances; Illumination color estimating means for estimating the color of illumination for illuminating the scene of the image based on the reliability of each light source; and white balance performing white balance processing on each pixel of the image so as to cancel the illumination color. Means, and an auto white balance device comprising:
【請求項13】 請求項12記載の装置であって、 前記各光源ごとについて、前記信頼度推定手段で推定さ
れた信頼度を前記画像の代表色の輝度成分に応じて修正
する手段を更に有し、前記照明色推定手段は修正された
信頼度を用いて照明色を推定することを特徴とする装
置。
13. The apparatus according to claim 12, further comprising: a means for correcting, for each of the light sources, the reliability estimated by the reliability estimation means in accordance with a luminance component of a representative color of the image. The illumination color estimating means estimates an illumination color using the corrected reliability.
【請求項14】 請求項13記載の装置であって、 前記信頼度を修正する手段は、前記各光源ごとに個別に
用意した連続関数を用いて修正を行うことを特徴とする
装置。
14. The apparatus according to claim 13, wherein the means for correcting the reliability performs the correction using a continuous function individually prepared for each of the light sources.
【請求項15】 撮影された画像に対してオートホワイ
トバランス調整を行う方法であって、 (a)ホワイトバランス処理対象の画像を複数のブロッ
クに分割し、 (b)分割された各ブロックごとに、当該ブロック内の
画素値に基づき当該ブロックの代表色を算出し、 (c)前記各ブロックごとかつ想定する各光源ごとに、
当該光源下での白色物体の色の色差成分と当該ブロック
の代表色の色差成分との距離を求め、これら各距離に基
づき前記各光源が前記各ブロックのシーンを照明してい
る信頼度を推定し、 (d)前記各光源ごとについて、各ブロックの代表色を
当該ブロックについての当該光源の信頼度に従って加重
平均することにより、当該光源の画像全体に対する寄与
成分を推定し、 (e)前記各光源ごとに、当該光源の各ブロックについ
ての信頼度を前記画像中の全ブロックにわたって総和す
ることにより、前記画像全体についての当該光源の信頼
度を推定し、 (f)推定された前記各光源の画像全体に対する寄与成
分を、推定された前記各光源の画像全体についての信頼
度に従って加重平均することにより、前記画像全体のシ
ーンを照明する照明色を推定し、 (g)推定した前記照明色を打ち消すよう、前記画像の
各画素に対してホワイトバランス処理を行う、 ことを特徴とする方法。
15. A method for performing automatic white balance adjustment on a captured image, comprising: (a) dividing an image to be subjected to white balance processing into a plurality of blocks; Calculating a representative color of the block based on pixel values in the block, and (c) for each of the blocks and each assumed light source,
Obtain the distance between the color difference component of the color of the white object under the light source and the color difference component of the representative color of the block, and estimate the reliability that each light source illuminates the scene of each block based on these distances. (D) For each of the light sources, a representative color of each block is weighted average according to the reliability of the light source for the block to estimate a contribution component of the light source to the entire image; For each light source, the reliability of the light source for each block is summed over all blocks in the image to estimate the reliability of the light source for the entire image. (F) An illumination color for illuminating a scene of the entire image by performing a weighted average of the contribution components to the entire image according to the estimated reliability of each light source for the entire image. Estimated, (g) estimated to cancel the illumination color, the white balance processing for each pixel of the image, wherein the.
【請求項16】 請求項15記載の方法であって、 (c1)前記各光源ごとについて、前記ステップ(c)
で推定された前記各ブロックについての前記信頼度を、
当該ブロックの代表色の輝度成分に応じて修正し、 ステップ(d)以降の各ステップでは、前記ステップ
(c1)で修正された前記信頼度に基づき処理を行うこ
とを特徴とする方法。
16. The method of claim 15, wherein (c1) for each of the light sources, the step (c).
The reliability of each block estimated in the above,
A method according to claim 1, wherein correction is performed in accordance with a luminance component of a representative color of the block, and in each of the steps after step (d), processing is performed based on the reliability corrected in step (c1).
【請求項17】 請求項16記載の方法であって、 前記ステップ(c1)では、前記各光源ごとに個別に用
意した連続関数を用いて修正を行うことを特徴とする方
法。
17. The method according to claim 16, wherein in the step (c1), the correction is performed using a continuous function prepared individually for each of the light sources.
【請求項18】 請求項16記載の方法であって、 前記想定する各光源には、昼間の日光と昼間の日陰とが
含まれることを特徴とする方法。
18. The method of claim 16, wherein each of the assumed light sources includes daytime sunlight and daytime shade.
JP28299099A 1999-10-04 1999-10-04 Auto white balance apparatus and method Expired - Lifetime JP4081213B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP28299099A JP4081213B2 (en) 1999-10-04 1999-10-04 Auto white balance apparatus and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP28299099A JP4081213B2 (en) 1999-10-04 1999-10-04 Auto white balance apparatus and method

Publications (2)

Publication Number Publication Date
JP2001112019A true JP2001112019A (en) 2001-04-20
JP4081213B2 JP4081213B2 (en) 2008-04-23

Family

ID=17659790

Family Applications (1)

Application Number Title Priority Date Filing Date
JP28299099A Expired - Lifetime JP4081213B2 (en) 1999-10-04 1999-10-04 Auto white balance apparatus and method

Country Status (1)

Country Link
JP (1) JP4081213B2 (en)

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20030009624A (en) * 2001-07-23 2003-02-05 주식회사 하이닉스반도체 White balance correction method by using Kalman filter
JP2003224865A (en) * 2002-01-29 2003-08-08 Fuji Photo Film Co Ltd White balance control method and digital camera
JP2003224864A (en) * 2002-01-29 2003-08-08 Fuji Photo Film Co Ltd White balance control method and digital camera
WO2003085989A1 (en) * 2002-04-04 2003-10-16 Nikon Corporation Image processing device, image processing program, and image processing method
JP2005142890A (en) * 2003-11-07 2005-06-02 Fuji Photo Film Co Ltd White balance adjusting method and image processing apparatus
US7081920B2 (en) 2001-09-14 2006-07-25 Kabushiki Kaisha Toshiba Illumination light color estimating method of obtaining white balance and image sensing apparatus
JP2006203393A (en) * 2005-01-19 2006-08-03 Eastman Kodak Co Automatic white balance apparatus and automatic white balance adjusting method
JP2006324840A (en) * 2005-05-18 2006-11-30 Eastman Kodak Co Image processing apparatus and white balance adjusting device
JP2007036927A (en) * 2005-07-29 2007-02-08 Eastman Kodak Co Digital camera and gain calculation method
JP2008172422A (en) * 2007-01-10 2008-07-24 Nikon Corp Imaging device
JP2009518982A (en) * 2005-12-08 2009-05-07 クゥアルコム・インコーポレイテッド Adaptive automatic white balance
JP2010130468A (en) * 2008-11-28 2010-06-10 Olympus Corp White balance adjusting device, white balance adjusting method, white balance adjusting program and imaging apparatus
US7830419B2 (en) 2005-12-19 2010-11-09 Eastman Kodak Company Digital camera, gain-computing device and method
KR101381350B1 (en) * 2007-07-20 2014-04-14 삼성디스플레이 주식회사 Backlight unit and liquid crystal display device withthe same and dimming method thereof
CN107274351A (en) * 2016-04-07 2017-10-20 富士施乐株式会社 Image processing equipment, image processing system and image processing method

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20030009624A (en) * 2001-07-23 2003-02-05 주식회사 하이닉스반도체 White balance correction method by using Kalman filter
US7081920B2 (en) 2001-09-14 2006-07-25 Kabushiki Kaisha Toshiba Illumination light color estimating method of obtaining white balance and image sensing apparatus
JP2003224865A (en) * 2002-01-29 2003-08-08 Fuji Photo Film Co Ltd White balance control method and digital camera
JP2003224864A (en) * 2002-01-29 2003-08-08 Fuji Photo Film Co Ltd White balance control method and digital camera
WO2003085989A1 (en) * 2002-04-04 2003-10-16 Nikon Corporation Image processing device, image processing program, and image processing method
JP2005142890A (en) * 2003-11-07 2005-06-02 Fuji Photo Film Co Ltd White balance adjusting method and image processing apparatus
JP2006203393A (en) * 2005-01-19 2006-08-03 Eastman Kodak Co Automatic white balance apparatus and automatic white balance adjusting method
JP2006324840A (en) * 2005-05-18 2006-11-30 Eastman Kodak Co Image processing apparatus and white balance adjusting device
JP2007036927A (en) * 2005-07-29 2007-02-08 Eastman Kodak Co Digital camera and gain calculation method
US8208037B2 (en) 2005-07-29 2012-06-26 Eastman Kodak Company Digital camera and gain computation method
JP2009518982A (en) * 2005-12-08 2009-05-07 クゥアルコム・インコーポレイテッド Adaptive automatic white balance
US8064110B2 (en) 2005-12-08 2011-11-22 Qualcomm Incorporated Adaptive auto white balance
US7830419B2 (en) 2005-12-19 2010-11-09 Eastman Kodak Company Digital camera, gain-computing device and method
JP2008172422A (en) * 2007-01-10 2008-07-24 Nikon Corp Imaging device
KR101381350B1 (en) * 2007-07-20 2014-04-14 삼성디스플레이 주식회사 Backlight unit and liquid crystal display device withthe same and dimming method thereof
US8711080B2 (en) 2007-07-20 2014-04-29 Samsung Display Co., Ltd. Backlight assembly, method for driving backlight assembly, and liquid crystal display having the same
JP2010130468A (en) * 2008-11-28 2010-06-10 Olympus Corp White balance adjusting device, white balance adjusting method, white balance adjusting program and imaging apparatus
CN107274351A (en) * 2016-04-07 2017-10-20 富士施乐株式会社 Image processing equipment, image processing system and image processing method

Also Published As

Publication number Publication date
JP4081213B2 (en) 2008-04-23

Similar Documents

Publication Publication Date Title
JP4740602B2 (en) Auto white balance device and white balance adjustment method
US6791606B1 (en) Auto white balancing apparatus and method
JP4754227B2 (en) Auto white balance device and white balance adjustment method
JP4063418B2 (en) Auto white balance device
CN101283604B (en) Image processing equipment with automatic white balance
US7081920B2 (en) Illumination light color estimating method of obtaining white balance and image sensing apparatus
JP4081213B2 (en) Auto white balance apparatus and method
EP2227025B1 (en) Apparatus and method for adjusting white balance of digital image
US20100245618A1 (en) White balance control apparatus and method
JP2003299117A (en) Method of automatically correcting white balance of digital image
US8614751B2 (en) Image processing apparatus and image processing method
US20020101516A1 (en) White balance control apparatus and method, and image pickup apparatus
US20070085911A1 (en) Apparatus for color correction of subject-image data, and method of controlling same
JP2004007545A (en) Method for automatic white balance of digital image
JP2009518982A (en) Adaptive automatic white balance
JP3848274B2 (en) White balance adjustment method, imaging apparatus, program, and storage medium
JPH08251620A (en) Automatic white balance device
JP3821729B2 (en) Digital camera
JP3193456B2 (en) White balance control device
US6741285B2 (en) Apparatus which adjusts exposure on luminance value of photoelectrically converted image pickup screen
JPH07143513A (en) Color imaging device
US20070041064A1 (en) Image sampling method for automatic white balance
US20100177210A1 (en) Method for adjusting white balance
JP3384916B2 (en) Imaging device
JP3010373B2 (en) Imaging device

Legal Events

Date Code Title Description
A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A712

Effective date: 20050906

A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A711

Effective date: 20051111

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20060928

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20071002

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20071225

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20080208

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

Free format text: PAYMENT UNTIL: 20110215

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Ref document number: 4081213

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20110215

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20120215

Year of fee payment: 4

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

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

Free format text: PAYMENT UNTIL: 20120215

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20130215

Year of fee payment: 5

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

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

Free format text: PAYMENT UNTIL: 20140215

Year of fee payment: 6

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313113

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

EXPY Cancellation because of completion of term