JPH05207501A - Light source estimate device - Google Patents

Light source estimate device

Info

Publication number
JPH05207501A
JPH05207501A JP4014596A JP1459692A JPH05207501A JP H05207501 A JPH05207501 A JP H05207501A JP 4014596 A JP4014596 A JP 4014596A JP 1459692 A JP1459692 A JP 1459692A JP H05207501 A JPH05207501 A JP H05207501A
Authority
JP
Japan
Prior art keywords
light source
signal
sampling
chromaticity
source estimation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP4014596A
Other languages
Japanese (ja)
Inventor
Toshiki Kanemichi
敏樹 金道
Ryuta Ito
隆太 伊藤
Shin Yamada
伸 山田
Toshikazu Fujioka
利和 藤岡
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP4014596A priority Critical patent/JPH05207501A/en
Publication of JPH05207501A publication Critical patent/JPH05207501A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To attain excellent reproduction of a picture by using a picture signal and a diaphragm signal. CONSTITUTION:The device is provided with an object brightness calculation circuit 14 calculating an object brightness and a light source estimate section 15 estimating a light source based on a chromaticity signal and an object brightness signal. When a light source is estimated with the device, the chromaticity and the brightness of an object are processed equally to set the brightness of the object being a criterion of outdoor or indoor for each color thereby improving the precision of discrimination of outdoor or indoor and then realizing the light source estimate device estimating a light source with high precision.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、ビデオカメラなどにお
ける正しい色調を再現させるための光源推定装置に関す
るものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a light source estimating device for reproducing a correct color tone in a video camera or the like.

【0002】[0002]

【従来の技術】近年、ビデオカメラの普及にともなっ
て、美しい色を得るために撮影条件に追従する手段がま
すます重要になってきている。そのなかにあって、撮影
時の光源を的確に推定することは、色再現の上から非常
に重要である。
2. Description of the Related Art In recent years, with the spread of video cameras, means for following photographing conditions have become more and more important in order to obtain beautiful colors. Among them, it is very important for color reproduction to accurately estimate the light source at the time of shooting.

【0003】まず、従来の撮影光源を推定するための手
段として、異なるスペクトル特性を持った複数の光感応
素子を用いて推定を行う手段と、画像処理を通して推定
を行う手段が知られている。一般に、光源推定装置は、
デザイン、コストなどの観点から制約のある光感応素子
を用いた手段に変わって、画像信号を処理して光源を推
定する手段へと移行してきている。
First, as a conventional means for estimating a photographing light source, there are known a means for performing estimation using a plurality of photosensitive elements having different spectral characteristics and a means for performing estimation through image processing. In general, the light source estimation device is
From the viewpoints of design, cost, etc., the method has been changed to a method using a light-sensitive element, which has a limitation, and a method for estimating a light source by processing an image signal.

【0004】画像処理に基づいて光源を推定する手法の
根拠は、画面中の被写体の色を混合平均するとその色は
無彩色になるという仮定すなわちグレー・ワールド・ア
サンプション(以下、GWAと略す)にある。この仮定
に基づいて色調整を行う手法としては、特開昭56ー3
6291号公報に記載されたものが知られている。さら
に、GWA成立を判定して推定精度を上げる手法が本出
願人によって出願されている(特願平3−14871
5)。
The rationale for the method of estimating the light source based on image processing is that the color of the subject in the screen is achromatic when mixed and averaged, that is, the gray world assumption (hereinafter abbreviated as GWA). is there. As a method for performing color adjustment based on this assumption, Japanese Patent Laid-Open No. 56-3
The one described in Japanese Patent No. 6291 is known. Further, a method for determining the establishment of GWA and increasing the estimation accuracy has been filed by the present applicant (Japanese Patent Application No. 3-14871).
5).

【0005】[0005]

【発明が解決しようとする課題】しかしながら上記構成
では、被写体の輝度を反映していない画像信号のみによ
っているために、単調な画像に対して光源推定を誤る場
合があった。本発明は上記課題を解決するもので、画像
信号と絞り信号を用いることにより、優れた画像再現を
可能とする光源推定装置を提供することを目的とする。
However, in the above configuration, the light source estimation may be erroneous for a monotonous image because only the image signal that does not reflect the brightness of the subject is used. The present invention solves the above problems, and an object of the present invention is to provide a light source estimation apparatus that enables excellent image reproduction by using an image signal and an aperture signal.

【0006】[0006]

【課題を解決するための手段】この目的を達成するため
に本発明の光源推定装置は、色分離された画像信号から
光源推定に適した画像データを得るためのサンプリング
回路と、ビデオカメラの絞り値信号Fを受ける絞り値入
力端子と、サンプリングされた画像データをサンプリン
グ輝度信号Yとサンプリング色度信号((B−Y)/
Y,(R−Y)/Y)に変換する信号変換回路と、絞り
値信号Fとサンプリング輝度信号Yとからサンプリング
被写体輝度HYを計算する被写体輝度計算回路と、サン
プリング色度信号((B−Y)/Y,(R−Y)/Y)
とサンプリング被写体輝度信号HYとから光源を推定す
る光源推定部とからなる構成を有している。
In order to achieve this object, a light source estimation apparatus of the present invention comprises a sampling circuit for obtaining image data suitable for light source estimation from color-separated image signals, and a diaphragm of a video camera. An aperture value input terminal for receiving the value signal F, and a sampling luminance signal Y and a sampling chromaticity signal ((BY) /
Y, (R−Y) / Y), a signal conversion circuit that calculates the sampled subject brightness HY from the aperture value signal F and the sampling brightness signal Y, and a sampling chromaticity signal ((B− Y) / Y, (RY) / Y)
And a light source estimation unit that estimates the light source from the sampled subject luminance signal HY.

【0007】[0007]

【作用】この構成によって、光源推定を行うときに被写
体の色度と輝度を対等に扱うことにより、屋外屋内を分
離する分離面を色度平面に平行にとる必要はなく、色度
と輝度で構成される3次元空間内の任意の曲面によって
分離面を構成することができる。これにより、色ごとに
屋内屋外の判定境目となる被写体の輝度を設定できるよ
うになり、例えば、輝度の低い緑については小さな閾値
を与え、輝度の高い黄色については大きな閾値を与える
などすることが可能となり、屋外屋内の判定精度が向
上、ひいては光源の推定精度の高い光源推定装置が実現
される。
With this configuration, when the light source is estimated, the chromaticity and the luminance of the subject are treated equally, so that it is not necessary to make the separation plane for separating the outdoor and the indoor parallel to the chromaticity plane. The separating surface can be configured by any curved surface in the configured three-dimensional space. This makes it possible to set the brightness of the subject, which is the judgment boundary between indoors and outdoors, for each color. For example, it is possible to give a small threshold value to green with low brightness and a large threshold value to yellow with high brightness. This makes it possible to improve the accuracy of outdoor / indoor determination, and thus realize a light source estimation device with high light source estimation accuracy.

【0008】[0008]

【実施例】(実施例1)以下、本発明の光源推定装置の
一実施例について、図面を参照しながら説明をする。図
1は本発明の一実施例における光源推定装置の構成を示
すブロック図である。
(Embodiment 1) An embodiment of a light source estimation apparatus of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing the configuration of a light source estimation device in one embodiment of the present invention.

【0009】図1において、11は色分離された画像信
号から光源推定に適した画像データを得るためのサンプ
リング回路であり、12はビデオカメラの絞り値信号F
を受ける絞り値入力端子であり、13はサンプリングさ
れた画像データをサンプリング輝度信号Yとサンプリン
グ色度信号((B−Y)/Y,(R−Y)/Y)に変換
する信号変換回路であり、14は絞り値信号Fとサンプ
リング輝度信号Yとからサンプリング被写体輝度HYを
計算する被写体輝度計算回路であり、15はサンプリン
グ色度信号((B−Y)/Y,(R−Y)/Y)とサン
プリング被写体輝度信号HYとから光源を推定する光源
推定部であり、151はサンプリング色度信号とサンプ
リング被写体輝度信号をおもにサンプリング輝度信号に
基づいて信号の良不良を評価する信号評価回路であり、
152は信号評価回路151で良データとされたサンプ
リング色度信号とサンプリング被写体輝度信号とを用い
てそれぞれの平均値を計算する平均値計算回路であり、
153は色度と輝度で構成される3次元空間内に、色度
平面と平行でない平面または曲面によって構成される屋
外屋内分離面を有する判定テーブルを内部に持ち、平均
値計算回路152からの平均サンプリング色度と平均サ
ンプリング被写体輝度信号とで指定される点によってテ
ーブルを引いて光源を判定する光源判定回路である。
In FIG. 1, 11 is a sampling circuit for obtaining image data suitable for light source estimation from color-separated image signals, and 12 is a diaphragm value signal F of a video camera.
A reference numeral 13 denotes an aperture value input terminal for receiving a signal, and 13 is a signal conversion circuit for converting the sampled image data into a sampling luminance signal Y and a sampling chromaticity signal ((BY) / Y, (RY) / Y). Yes, 14 is a subject luminance calculation circuit that calculates the sampled subject luminance HY from the aperture value signal F and the sampling luminance signal Y, and 15 is a sampling chromaticity signal ((BY) / Y, (RY) / Y) and a sampled subject brightness signal HY, a light source estimation unit that estimates a light source. Reference numeral 151 is a signal evaluation circuit that evaluates whether the sampling chromaticity signal and the sampled subject brightness signal are good or bad based on the sampling brightness signal. Yes,
Reference numeral 152 denotes an average value calculation circuit that calculates the average value of each of the sampling chromaticity signal and the sampled subject luminance signal, which are good data in the signal evaluation circuit 151,
Reference numeral 153 has a determination table internally having an outdoor / indoor separation plane formed by a plane or a curved surface that is not parallel to the chromaticity plane in a three-dimensional space formed by chromaticity and luminance, and the average from the average value calculation circuit 152. It is a light source determination circuit that determines a light source by drawing a table according to points specified by the sampling chromaticity and the average sampling subject luminance signal.

【0010】以上のように構成された光源推定装置につ
いて、その動作を説明する。まず、色分離された画像信
号をサンプリング回路11は、あらかじめ設定された光
源推定を行うに適したサンプリング規則に従って画像信
号をサンプリングする。サンプリング回路11によって
つくられる画像データの一例としては、画面をいくつか
のブロックに分割し、そのブロックごとの輝度信号や色
差信号の平均値を考えることができる。信号変換回路1
3は、サンプリング回路11からの画像データを受け
て、とサンプリング輝度信号Yとサンプリング色度信号
((B−Y)/Y,(R−Y)/Y)に変換する。被写
体輝度計算回路14は、信号変換回路13からのサンプ
リング輝度信号Yと絞り値入力端子12から入力される
絞り信号Fとからサンプリング被写体輝度HYを計算す
る。
The operation of the light source estimation device configured as described above will be described. First, the color-separated image signal sampling circuit 11 samples the image signal according to a preset sampling rule suitable for performing light source estimation. As an example of the image data created by the sampling circuit 11, it is possible to divide the screen into several blocks and consider the average value of the luminance signal and the color difference signal for each block. Signal conversion circuit 1
3 receives the image data from the sampling circuit 11 and converts it into a sampling luminance signal Y and a sampling chromaticity signal ((BY) / Y, (RY) / Y). The subject luminance calculation circuit 14 calculates the sampled subject luminance HY from the sampling luminance signal Y from the signal conversion circuit 13 and the aperture signal F input from the aperture value input terminal 12.

【0011】通常、このサンプリング被写体輝度HY
は、絞り信号としてf値を用いる場合、 HY=F2*Y で与えられる。光源推定部15では、サンプリング色度
信号とサンプリング被写体輝度信号とを用いて光源の推
定を行う。まず、信号評価回路151はサンプリング色
度信号とサンプリング被写体輝度信号をおもにサンプリ
ング輝度信号に基づいて、例えば最高輝度設定値以上に
サンプリング輝度信号が高い場合と最低輝度設定値以下
にサンプリング輝度信号が低い場合に不良信号とするな
どして、信号の良不良評価する。
Usually, this sampling subject brightness HY
Is given by HY = F 2 * Y when the f value is used as the aperture signal. The light source estimation unit 15 estimates the light source using the sampling chromaticity signal and the sampling subject luminance signal. First, the signal evaluation circuit 151, based on the sampling chromaticity signal and the sampling subject luminance signal, mainly based on the sampling luminance signal, for example, when the sampling luminance signal is higher than the maximum luminance setting value and when the sampling luminance signal is lower than the minimum luminance setting value. In this case, the signal is evaluated as good or bad by setting it as a bad signal.

【0012】次に、平均値計算回路152は、信号評価
回路151で良データとされたサンプリング色度信号と
サンプリング被写体輝度信号とを用いてそれぞれの平均
値を計算する。光源判定回路153は、平均値計算回路
152からの平均サンプリング色度信号と平均サンプリ
ング被写体輝度信号とで指定される点に基づいて、内部
に保持する色度と輝度で構成される3次元空間内に、色
度平面と平行でない平面または曲面によって構成される
屋外屋内分離面を有する判定テーブルを引いて光源を判
定する。
Next, the average value calculation circuit 152 calculates each average value using the sampling chromaticity signal and the sampling subject luminance signal which are good data in the signal evaluation circuit 151. The light source determination circuit 153, based on the points designated by the average sampling chromaticity signal and the average sampling subject luminance signal from the average value calculating circuit 152, within the three-dimensional space constituted by the chromaticity and the luminance held inside. Then, a light source is determined by drawing a determination table having an outdoor / indoor separation plane formed by a plane or a curved surface that is not parallel to the chromaticity plane.

【0013】本実施例による光源推定装置と従来のサン
プリング色度信号のみを用いた光源推定の判定方法の違
いについて、図2を用いて説明する。従来の光源推定装
置では、光源の推定を色差のみで行ってたために、冬の
屋外光下の枯れた芝と白色蛍光灯、屋外光下の緑と昼光
色蛍光灯などが、色度平面上でほぼ同一点に表現される
ために、屋外でありながら、光源を誤って屋内と推定し
てしまっていた。これを改良する方法として、絞りが一
定値以上であれば屋外と判定するという処理を補助的に
付加することが試みられている。
The difference between the light source estimation apparatus according to this embodiment and the conventional light source estimation determination method using only the sampling chromaticity signal will be described with reference to FIG. In the conventional light source estimation device, since the light source is estimated only by the color difference, withered grass and white fluorescent light under the outdoor light in winter, green and daylight fluorescent light under the outdoor light, etc. are on the chromaticity plane. Since it was expressed at almost the same point, even though it was outdoors, the light source was mistakenly estimated to be indoors. As a method of improving this, it has been attempted to supplementarily add a process of determining that the aperture is outdoors when the aperture is a certain value or more.

【0014】しかしながら、この方法では絞りによって
屋外と判定する空間を分離する分離面は、図2(a)に
示したように、色度平面と平行な閾値平面に限られる。
こうした方法では、比較的輝度の高い被写体が多い黄色
を基準に閾値を定めると輝度の低い緑に対して屋外判定
ができなくなる。逆に緑を基準に閾値を定めると黄色に
ついて屋内を屋外と判定してしまう。このために光源推
定を行うための情報は輝度よりは、色に多いという判断
から、通常は閾値を高めにとっており絞りは十分に活用
されているとは言えなかった。本発明の構成によれば、
図2(b)に示したように、屋外屋内を分離する分離面
を色度平面に平行にとる必要はなく、色度と輝度で構成
される3次元空間内の任意の曲面によって分離面を構成
することができる。
However, in this method, the separation plane that separates the space determined to be outdoors by the diaphragm is limited to the threshold plane parallel to the chromaticity plane, as shown in FIG.
In such a method, if a threshold value is set on the basis of yellow, which has many relatively bright objects, outdoor judgment cannot be performed for green, which has low brightness. On the contrary, if the threshold value is determined based on green, indoors will be judged to be outdoor for yellow. For this reason, from the judgment that the information for estimating the light source is more in color than in luminance, it is usually said that the threshold value is set high and the aperture cannot be fully utilized. According to the configuration of the present invention,
As shown in FIG. 2B, it is not necessary to make the separation surface for separating the indoors and outdoors parallel to the chromaticity plane, and the separation surface can be formed by any curved surface in the three-dimensional space composed of chromaticity and luminance. Can be configured.

【0015】以上のように、本実施例によれば色ごとに
屋内屋外の判定境目となる被写体の輝度を設定できるよ
うになり、例えば、草木の緑など分光反射率の低い被写
体の多い色については小さな閾値を与え、輝度の高い被
写体の多い黄色などについては大きな閾値を与えるなど
することが可能となり、屋外屋内の判定精度が向上、ひ
いては光源の推定精度高い光源推定装置が実現される。
As described above, according to the present embodiment, it is possible to set the brightness of the subject, which is the judgment boundary between indoor and outdoor, for each color. Can give a small threshold value, and can give a large threshold value for yellow and the like, which has many high-luminance subjects, so that the determination accuracy inside and outside can be improved, and a light source estimation device with high estimation accuracy of the light source can be realized.

【0016】なお、被写体輝度計算回路14内の計算規
則とつじつまのあうように設定されていれば、絞り値信
号として用いる信号はf値でなくともよい。また、ここ
ではあえて記載しなかったが、必要に応じてタイミング
ジェネレータを設けて、絞りと画像信号が正確に対応す
るように絞り信号の入力のタイミングと平均輝度計算の
タイミングを同期させるなど、各回路のタイミングをと
るように構成することもできる。加えて、本発明はビデ
オカメラだけでなく、電子スチルカメラなど光電変換を
伴う撮像装置一般に用いることができる。これらは、以
下に掲げる実施例においても同様である。
Note that the signal used as the aperture value signal need not be the f value if it is set so as to be consistent with the calculation rule in the subject brightness calculation circuit 14. Although not described here intentionally, a timing generator is provided as necessary to synchronize the input timing of the aperture signal with the timing of the average luminance calculation so that the aperture and the image signal correspond accurately. It can also be configured to time the circuit. In addition, the present invention can be used not only in video cameras, but also in general image pickup devices such as electronic still cameras with photoelectric conversion. The same applies to the following examples.

【0017】(実施例2)以下本発明の第2の実施例に
ついて図面を参照しながら説明する。本発明の第2の実
施例は、第1の実施例の光源判定回路153を神経回路
網模擬手段で構成するものである。
(Second Embodiment) A second embodiment of the present invention will be described below with reference to the drawings. In the second embodiment of the present invention, the light source determination circuit 153 of the first embodiment is constructed by a neural network simulation means.

【0018】神経回路網模擬手段については、学習ベク
トル量子化(以下、LVQと略す)、誤差逆伝播法を学
習アルゴリズムとした多層パーセプトロン、アソシアト
ロンなど、平均サンプリング色度と平均被写体輝度と光
源の間の関係を学習できるものであるならば、適当と思
われるものを用いてよい。LVQ、多層パーセプトロ
ン、アソシアトロンなど、ここの神経回路網模擬手段の
詳細については、文献1(PDPモデル、D.E.ラメ
ルハート他2名、甘利俊一監訳、1989年)、文献2
(ニューラルネットワークの基礎理論、中野馨他7名、
1990年)などに詳しいので、ここでは深く言及しな
い。
As for the neural network simulating means, learning vector quantization (hereinafter abbreviated as LVQ), a multilayer perceptron using an error backpropagation method as a learning algorithm, an associatron, and the like, average sampling chromaticity, average subject brightness, and light source If you can learn the relationship between them, you can use what you think is appropriate. For details of neural network simulation means such as LVQ, multi-layer perceptron, and associatron, refer to Reference 1 (PDP model, DE Lamelhardt et al., 2 persons, translated by Shunichi Amari, 1989), Reference 2.
(Basic theory of neural networks, Kaoru Nakano and 7 others,
(1990), so I will not go into detail here.

【0019】図3は、本発明の第2の実施例の神経回路
網模擬手段を用いて構成された光源判定回路153の構
成を示すブロック図である。図3において、31は平均
サンプリング色度信号と平均サンプリング被写体輝度信
号を受けて光源推定値信号を出力する神経回路網模擬手
段によって構成された判定処理手段であり、32は判定
処理手段31からの光源推定値信号から推定光源信号を
求める光源固定手段である。
FIG. 3 is a block diagram showing the configuration of the light source determination circuit 153 constructed by using the neural network simulation means of the second embodiment of the present invention. In FIG. 3, reference numeral 31 is a judgment processing means constituted by a neural network simulation means for receiving an average sampling chromaticity signal and an average sampling subject luminance signal and outputting a light source estimation value signal, and 32 is from the judgment processing means 31. The light source fixing means obtains the estimated light source signal from the light source estimated value signal.

【0020】以上のように構成された光源判定回路につ
いて、神経回路網模擬手段として多層パーセプトロンを
用いた場合の動作について説明する。まず、神経回路網
模擬手段によって構成された判定処理手段31は平均サ
ンプリング色度信号と平均サンプリング被写体輝度信号
を受け、屋外晴、蛍光灯、ハロゲンなどそれぞれの光源
について、イエスかノーかを1、0(多層パーセプトロ
ンなどアナログ出力を行う神経回路網模擬手段を用いた
場合は、0.9,0.1程度の値を出すように構成され
ている)で表現した光源推定値信号を出力するように構
成されている。
The operation of the light source determination circuit configured as described above when the multilayer perceptron is used as the neural network simulation means will be described. First, the judgment processing means 31 constituted by the neural network simulation means receives the average sampling chromaticity signal and the average sampling subject luminance signal, and judges whether each light source such as an outdoor fine weather, a fluorescent lamp, and a halogen is 1, or not, A light source estimated value signal expressed by 0 (it is configured to output a value of about 0.9, 0.1 when a neural network simulating means such as a multilayer perceptron is used) is output. Is configured.

【0021】すなわち、判定処理手段31を構成する神
経回路網模擬手段に、入力信号として入力された平均サ
ンプリング色度信号と平均サンプリング被写体輝度信号
を、教師信号としてその信号を生成した画像を撮影した
ときの光源を与えて、判定処理手段31の推定結果と教
師信号との誤差が小さくなるように誤差逆伝播法に基づ
いて学習を行わせることにより、神経回路網模擬手段を
用いた判定処理部31は、被写体の色と輝度に基づく光
源の推定の仕方を人間のように経験的に身につけ、的確
な判断を行うようになる。
That is, the neural network simulation unit constituting the judgment processing unit 31 uses the average sampling chromaticity signal and the average sampling subject luminance signal input as the input signals, and the images in which the signals are generated are taken as the teacher signals. A decision processing unit using a neural network simulating means by giving a light source at this time and performing learning based on the error back propagation method so that the error between the estimation result of the decision processing means 31 and the teacher signal becomes small. The person 31 empirically learns how to estimate the light source based on the color and brightness of the subject like a human, and makes an accurate judgment.

【0022】しかしながら、多層パーセプトロンなど神
経回路網模擬手段の出力関数としてシグモイド関数のよ
うなアナログ関数を用いた場合には、各光源についての
光源推定値信号は、 光源は屋外晴 =0.2 光源は蛍光灯 =0.7 光源はハロゲン=0.4 といったように与えられるので、このままでは上記実施
例に記載したような推定光源信号としては必ずしも適切
な表現となっていない。そこで、光源固定手段32にお
いて、判定処理手段31からの光源推定値信号の整形を
行う。出力の整形の一例としては、 (1)最大値を持つ出力を見いだす。
However, when an analog function such as a sigmoid function is used as the output function of the neural network simulation means such as the multi-layer perceptron, the light source estimation value signal for each light source is as follows: Is given as a fluorescent lamp = 0.7 and a light source is halogen = 0.4, so that it is not always an appropriate expression as the estimated light source signal as described in the above embodiment. Therefore, the light source fixing means 32 shapes the light source estimated value signal from the determination processing means 31. Examples of output shaping include (1) finding the output with the maximum value.

【0023】・上記例では、光源は蛍光灯=0.7 (2)その値が閾値以上であるかどうかで、信号精度を
判定する ・上記例では、0.7>(閾値)かどうかを判定する。
In the above example, the light source is a fluorescent lamp = 0.7 (2) The signal accuracy is judged by whether the value is equal to or more than a threshold value. In the above example, it is determined whether 0.7> (threshold value). judge.

【0024】(3)閾値以上の場合、その光源を推定光
源信号として出力する。 ・上記例で、(閾値)=0.5とした場合に「光源は蛍
光灯」が出力される。
(3) If the threshold value is exceeded, the light source is output as an estimated light source signal. In the above example, when (threshold value) = 0.5, "the light source is a fluorescent lamp" is output.

【0025】(4)その他の場合、「判定不能」を出力
する。という処理を考えることができる。この他に、最
大値と2番目に大きな値との差が一定値以上開いている
か否かの判定をもって、信号精度を判定する処理に置き
換えるか、上記判定にこれを付加するなどしても良い。
(4) In other cases, "undecidable" is output. You can think of the process. In addition to this, depending on whether or not the difference between the maximum value and the second largest value is larger than a certain value, it may be replaced with the processing for determining the signal accuracy, or this may be added to the above determination. ..

【0026】なお、神経回路網模擬手段によって判定処
理部31を構成する場合、通常は学習済みの神経回路網
模擬手段を用いれば十分なので、機器組み込みの際には
学習機能は省略してかまわない。
When the judgment processing section 31 is constituted by the neural network simulating means, it is usually sufficient to use the learned neural network simulating means, so that the learning function may be omitted when the device is incorporated. ..

【0027】また、本実施例では神経回路網模擬手段と
して多層パーセプトロンを採用した場合について説明し
たが、これは最初に述べたように、平均サンプリング色
度と平均被写体輝度と光源の間の関係を学習できるもの
であるならば、適当と思われる神経回路網模擬手段を用
いてよい。
Further, in the present embodiment, the case where the multilayer perceptron is adopted as the neural network simulating means has been described. However, as described at the beginning, this shows the relationship among the average sampling chromaticity, the average subject brightness and the light source. Any neural network simulating means may be used as long as it can be learned.

【0028】[0028]

【発明の効果】以上のように本発明は光源推定装置を、
色分離された画像信号と絞り値信号とを入力できるよう
にし、絞り値信号と色度と輝度で構成される3次元空間
内に、色度平面と平行でない平面または曲面によって構
成される屋外屋内分離面を有する判定テーブルを内部に
持ち、平均値計算回路からの平均サンプリング色度と平
均サンプリング被写体輝度信号とで指定される点によっ
てテーブルを引いて光源を判定できる構成とした。
As described above, the present invention provides a light source estimation device,
An indoor / outdoor structure configured by allowing a color-separated image signal and an aperture value signal to be input, and having a plane or a curved surface that is not parallel to the chromaticity plane in a three-dimensional space composed of the aperture value signal, chromaticity, and luminance A determination table having a separation surface is provided inside, and the light source can be determined by drawing the table according to the points designated by the average sampling chromaticity and the average sampling subject luminance signal from the average value calculation circuit.

【0029】この構成によって、光源推定を行うときに
被写体の色度と輝度を対等に扱うことにより、屋外屋内
を分離する分離面を色度平面に平行にとる必要はなく、
色度と輝度で構成される3次元空間内の任意の曲面によ
って分離面を構成することができる。これにより、色ご
とに屋内屋外の判定境目となる被写体の輝度を設定でき
るようになり、例えば、輝度の低い緑については小さな
閾値を与え、輝度の高い黄色については大きな閾値を与
えるなどすることが可能となり、屋外屋内の判定精度が
向上、ひいては光源の推定精度の高い光源推定装置が実
現される。
With this configuration, when the light source is estimated, the chromaticity and the luminance of the subject are treated equally, so that it is not necessary to take the separation plane for separating the indoors and outdoors as parallel to the chromaticity plane.
The separation surface can be formed by an arbitrary curved surface in a three-dimensional space composed of chromaticity and luminance. This makes it possible to set the brightness of the subject, which is the judgment boundary between indoors and outdoors, for each color. For example, it is possible to give a small threshold value to green with low brightness and a large threshold value to yellow with high brightness. This makes it possible to improve the accuracy of outdoor / indoor determination, and thus realize a light source estimation device with high light source estimation accuracy.

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

【図1】本発明の一実施例における光源推定装置の構成
を示すブロック図
FIG. 1 is a block diagram showing a configuration of a light source estimation device according to an embodiment of the present invention.

【図2】(a)従来のの光源推定装置の動作の原理を説
明するための色度輝度空間内に設定された屋内屋外分離
平面のイメージ図 (b)本発明の光源推定装置の動作の原理を説明するた
めの色度輝度空間内に形成される屋内屋外分離曲面のイ
メージ図
FIG. 2A is an image diagram of an indoor / outdoor separation plane set in a chromaticity / luminance space for explaining the principle of operation of a conventional light source estimation apparatus. FIG. 2B is a principle of operation of the light source estimation apparatus of the present invention. Image of indoor / outdoor separated curved surface formed in chromaticity / luminance space for explaining

【図3】本発明の第2の実施例における神経回路網模擬
手段を用いて構成された光源判定回路構成を示すブロッ
ク図
FIG. 3 is a block diagram showing the configuration of a light source determination circuit configured by using a neural network simulation means in a second embodiment of the present invention.

【符号の説明】 11 サンプリング回路 12 絞り値入力端子 13 信号変換回路 14 被写体輝度計算回路 15 光源推定部 151 信号評価回路 152 平均値計算回路 153 光源判定回路 31 判定処理手段 32 光源固定手段[Description of Reference Signs] 11 Sampling circuit 12 Aperture value input terminal 13 Signal conversion circuit 14 Subject brightness calculation circuit 15 Light source estimation unit 151 Signal evaluation circuit 152 Average value calculation circuit 153 Light source determination circuit 31 Determination processing means 32 Light source fixing means

───────────────────────────────────────────────────── フロントページの続き (72)発明者 藤岡 利和 神奈川県川崎市多摩区東三田3丁目10番1 号 松下技研株式会社内 ─────────────────────────────────────────────────── ─── Continuation of the front page (72) Inventor Toshikazu Fujioka 3-10-1 Higashisanda, Tama-ku, Kawasaki-shi, Kanagawa Matsushita Giken Co., Ltd.

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 少なくとも、色分離された画像信号から
光源推定に適した画像データを得るためのサンプリング
回路と、ビデオカメラの絞り値信号を受ける絞り値入力
端子と、サンプリングされた画像データから少なくとも
サンプリング輝度信号を計算する信号変換回路と、絞り
値信号とサンプリング輝度信号とからサンプリング被写
体輝度を計算する被写体輝度計算回路と、画像データと
サンプリング被写体輝度信号とから光源を推定する光源
推定部とを具備する光源推定装置。
1. A sampling circuit for obtaining image data suitable for light source estimation from a color-separated image signal, an aperture value input terminal for receiving an aperture value signal of a video camera, and at least the sampled image data. A signal conversion circuit that calculates a sampling luminance signal, a subject luminance calculation circuit that calculates a sampling subject luminance from an aperture value signal and a sampling luminance signal, and a light source estimation unit that estimates a light source from image data and a sampling subject luminance signal. A light source estimation device provided.
【請求項2】 信号変換回路はサンプリングされた画像
データをサンプリング色度信号とサンプリング輝度信号
に変換し、光源推定部はサンプリング色度信号とサンプ
リング被写体輝度信号とから光源を推定する請求項1記
載の光源推定装置。
2. The signal conversion circuit converts the sampled image data into a sampling chromaticity signal and a sampling luminance signal, and the light source estimation unit estimates the light source from the sampling chromaticity signal and the sampling subject luminance signal. Light source estimation device.
【請求項3】 光源推定部は、サンプリング色度信号と
サンプリング被写体輝度信号をおもにサンプリング輝度
信号に基づいて信号の良不良を評価する信号評価回路
と、信号評価回路で良データとされたサンプリング色度
信号とサンプリング被写体輝度信号とを用いてそれぞれ
の平均値を計算する平均値計算回路と、色度と輝度で構
成される3次元空間内に、色度平面と平行でない平面ま
たは曲面によって構成される屋外屋内分離面を有する判
定テーブルを内部に持ち、平均値計算回路からの平均サ
ンプリング色度と平均サンプリング被写体輝度信号とで
指定される点によってテーブルを引いて光源を判定する
判定回路とからなる請求項2記載の光源推定装置。
3. The light source estimation unit evaluates whether the signal is good or bad, mainly based on the sampling luminance signal and the sampling chromaticity signal and the sampled subject luminance signal, and the sampling color determined as good data by the signal evaluation circuit. An average value calculation circuit that calculates each average value using the chromaticity signal and the sampled subject luminance signal, and a plane or curved surface that is not parallel to the chromaticity plane in a three-dimensional space composed of chromaticity and luminance. It has a judgment table having an outdoor / indoor separation plane inside, and consists of a judgment circuit for judging the light source by drawing the table according to the points specified by the average sampling chromaticity and the average sampling subject luminance signal from the average value calculation circuit. The light source estimation device according to claim 2.
【請求項4】 判定回路は神経回路網模擬手段によって
構成された判定処理手段と判定処理手段の光源推定値信
号を整形する光源固定手段から構成される請求項3記載
の光源推定装置。
4. The light source estimation device according to claim 3, wherein the determination circuit comprises a determination processing means constituted by a neural network simulation means and a light source fixing means for shaping a light source estimation value signal of the determination processing means.
JP4014596A 1992-01-30 1992-01-30 Light source estimate device Pending JPH05207501A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4014596A JPH05207501A (en) 1992-01-30 1992-01-30 Light source estimate device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4014596A JPH05207501A (en) 1992-01-30 1992-01-30 Light source estimate device

Publications (1)

Publication Number Publication Date
JPH05207501A true JPH05207501A (en) 1993-08-13

Family

ID=11865565

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4014596A Pending JPH05207501A (en) 1992-01-30 1992-01-30 Light source estimate device

Country Status (1)

Country Link
JP (1) JPH05207501A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006174281A (en) * 2004-12-17 2006-06-29 Canon Inc Image processing apparatus, method, and computer program
JP2006319514A (en) * 2005-05-11 2006-11-24 Sony Corp White-balance controller
JP2009296102A (en) * 2008-06-03 2009-12-17 Olympus Corp Imaging device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006174281A (en) * 2004-12-17 2006-06-29 Canon Inc Image processing apparatus, method, and computer program
JP4677226B2 (en) * 2004-12-17 2011-04-27 キヤノン株式会社 Image processing apparatus and method
JP2006319514A (en) * 2005-05-11 2006-11-24 Sony Corp White-balance controller
JP4670465B2 (en) * 2005-05-11 2011-04-13 ソニー株式会社 White balance control device
JP2009296102A (en) * 2008-06-03 2009-12-17 Olympus Corp Imaging device

Similar Documents

Publication Publication Date Title
JP3550440B2 (en) Auto white balance adjustment device
Soriano et al. Using the skin locus to cope with changing illumination conditions in color-based face tracking
JP5021338B2 (en) White balance correction apparatus and method
CN105187810B (en) A kind of auto white balance method and electronic medium device based on face color character
US8803994B2 (en) Adaptive spatial sampling using an imaging assembly having a tunable spectral response
EP0720390B1 (en) Non-linear color corrector and method thereof
US9460521B2 (en) Digital image analysis
WO2006072671A1 (en) Automatic white balancing of colour gain values
JP3018914B2 (en) Gradation correction device
JP3076679B2 (en) Image processing device
JP2978615B2 (en) Apparatus and method for adjusting color balance
CN115861119A (en) Rock slag image color cast correction method based on deep convolutional neural network
JP2003264850A (en) Digital camera
KR100350789B1 (en) Method of raw color adjustment and atmosphere color auto extract in a image reference system
JPH05207501A (en) Light source estimate device
JP2003163944A (en) White balance-control method and digital camera
Garud et al. A fast color constancy scheme for automobile video cameras
JP3958700B2 (en) Digital camera
Kim et al. Automatic white balance based on adaptive feature selection with standard illuminants
JPS58186291A (en) Gradation converting method of color video signal
JP2002135802A (en) Signal processor, image pickup device, signal processing method and storage medium
JP3411847B2 (en) Color reproduction method and apparatus for input device, and recording medium recording program of this method
JP3903095B2 (en) White balance control method and digital camera
WO2021199366A1 (en) Information processing device, method, program, and model
JPH0686156A (en) Back light detector, specific color level discriminating device, and automatic level controller