JPH0837667A - Color correction device - Google Patents

Color correction device

Info

Publication number
JPH0837667A
JPH0837667A JP6169395A JP16939594A JPH0837667A JP H0837667 A JPH0837667 A JP H0837667A JP 6169395 A JP6169395 A JP 6169395A JP 16939594 A JP16939594 A JP 16939594A JP H0837667 A JPH0837667 A JP H0837667A
Authority
JP
Japan
Prior art keywords
light source
color
source position
average value
unit
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
JP6169395A
Other languages
Japanese (ja)
Inventor
Hiroshi Ekusa
洋 江草
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 JP6169395A priority Critical patent/JPH0837667A/en
Publication of JPH0837667A publication Critical patent/JPH0837667A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To correct colors corresponding to the different kinds of light sources and to position a light source position by a light source estimation method for which chromatic colors and achromatic colors within a screen are paid attention to by dividing the screen into plural, obtaining the light source positions for respective areas and performing interpolation on the screen. CONSTITUTION:First, the screens are divided into a lot of small areas so as to obtain the color average values of (r) (red,) (g) (green) and (b) (blue.) For instance, the small areas are constituted by dividing the screen into 6X8, the color average values of the respective small areas are obtained in an average value computing part 1 and color difference values are obtained by a prescribed formula by a color conversion part 2 by using the color average values. That is, it is defined that X=(b-y)/y; Y=(r-y)/y, X and Y are defined as the color difference values, (y) is defined as luminance and the screens are divided into plural so as to decide the light source position of color space. For instance, division is defined as quadri-section, the color difference values of the respective small areas are outputted to intra-frame light source decision parts 3-6, the light source positions are obtained by them and the light source positions of respective picture elements are obtained based on the light source positions of respective divided frames by an interpolation processing part 7.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、ビデオカメラ、または
スチルカメラなどの色補正を行う色補正装置に関するも
のである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a color correction device for color correction such as a video camera or a still camera.

【0002】[0002]

【従来の技術】人間の目には色順応の性質があり、様々
な光源下であっても同一物体の色はほぼ同じ色に見え
る。しかしビデオカメラなどでは色順応性を持たないた
め、光源の種類によっては同一物体であっても色再現が
異なる場合がある。したがって、ビデオカメラなどには
オートホワイトバランス補正が必須であり、従来より様
々な方式が提案されている。
2. Description of the Related Art The human eye has the property of color adaptation, and the colors of the same object appear to be almost the same even under various light sources. However, since video cameras do not have color adaptation, color reproduction may be different even for the same object depending on the type of light source. Therefore, auto white balance correction is essential for video cameras and the like, and various methods have been proposed conventionally.

【0003】ここで従来のカラー撮像装置について説明
する。図13は、従来のカラー撮像装置の全体構成図で
あり、101は撮像素子、102は色分離部、103は
利得調整部、104はホワイトバランス演算部、105
は色変換部、106はエンコーダである。図14は、図
13のホワイトバランス演算部104を詳細に示したも
のであり、107は平均値演算部、108は色変換部、
109は光源選択部、110は利得演算部である。
Here, a conventional color image pickup device will be described. FIG. 13 is an overall configuration diagram of a conventional color image pickup apparatus. Reference numeral 101 is an image pickup element, 102 is a color separation unit, 103 is a gain adjustment unit, 104 is a white balance calculation unit, and 105.
Is a color conversion unit, and 106 is an encoder. FIG. 14 shows the details of the white balance calculation unit 104 in FIG. 13, where 107 is an average value calculation unit, 108 is a color conversion unit,
Reference numeral 109 is a light source selection unit, and 110 is a gain calculation unit.

【0004】以上のように構成されたカラー撮像装置に
ついて、以下その動作を説明する。まず、撮像素子10
1により得られた画像信号は、色分離部102によりr
gbの基本色信号に分離される。そして、rgb信号が
利得調整部103により利得制御され、r’g’b’信
号となり色変換部105に送られる。ここでは利得調整
部103より出力されたr’g’b’信号よりr−y、
b−y色差信号を生成する。そして色差信号はエンコー
ダ106に入力され、ここでNTSC方式などの標準色
信号に変換された後、出力される。
The operation of the color image pickup device constructed as described above will be described below. First, the image sensor 10
The image signal obtained by 1 is r by the color separation unit 102.
It is separated into gb basic color signals. Then, the rgb signal is gain-controlled by the gain adjustment unit 103, becomes an r′g′b ′ signal, and is sent to the color conversion unit 105. Here, from the r′g′b ′ signal output from the gain adjusting unit 103, r−y,
Generate a by color difference signal. The color difference signal is input to the encoder 106, where it is converted into a standard color signal of the NTSC system or the like, and then output.

【0005】また、色分離部102より出力された色信
号rgbは、ホワイトバランス演算部104へも入力さ
れる。ここでホワイトバランス演算部104では、まず
平均値演算部107でrgb画像信号を画面毎に平均化
し、色変換部108で色差信号r−y、b−yに変換す
る。光源選択部109では色差平面上において、図15
に示すような各種光源位置により決定される光源選択領
域111と、求められた入力画像の位置とを比較し、入
力画像が光源選択領域111内に入っているか否かで被
写体に照射されていると予想される光源種を選択する。
そして利得演算部110により、推定された光源に対応
する利得値を出力することにより利得調整部103でr
gb信号の利得を制御し、画像信号のホワイトバランス
をとるようになっている。
The color signal rgb output from the color separation unit 102 is also input to the white balance calculation unit 104. In the white balance calculation unit 104, the average value calculation unit 107 first averages the rgb image signals for each screen, and the color conversion unit 108 converts the rgb image signals into color difference signals r-y and by. In the light source selection unit 109, on the color difference plane, as shown in FIG.
The light source selection area 111 determined by various light source positions as shown in FIG. 6 is compared with the obtained position of the input image, and the subject is illuminated depending on whether or not the input image is within the light source selection area 111. Select a light source type expected to be.
Then, the gain calculation unit 110 outputs the gain value corresponding to the estimated light source, and the gain adjustment unit 103 outputs r.
The gain of the gb signal is controlled to white balance the image signal.

【0006】[0006]

【発明が解決しようとする課題】上記のような従来の構
成では、光源選択部では光源は単一であるということを
前提としており、異なる複数の光源により照明されてい
る場合は補正できない問題点があった。
In the conventional structure as described above, it is premised that the light source selection unit has a single light source, and cannot be corrected when illuminated by a plurality of different light sources. was there.

【0007】異なる光源が複数存在するときは、光が混
ざって画面内を照明する場合と、異なる光が画面内の異
なる領域を照明している場合の2つが考えられる。特に
本文では、後者を異種光源と呼ぶ。色補正では、異種光
源の場合の色補正がもっとも解決困難な課題となる。た
とえば図16のようにハロゲン光(色温度3000K付
近)と太陽光(日中時5000K付近)が異種光源状態
で存在するとき、従来法ではハロゲン光により照明され
た領域は赤く、太陽光で照明された領域は青く再現さ
れ、不自然な画像となってしまうことが多い。
When there are a plurality of different light sources, two cases are conceivable: a case where lights are mixed to illuminate the screen and a case where different lights illuminate different areas in the screen. Especially in the text, the latter is called a heterogeneous light source. In color correction, color correction in the case of different light sources is the most difficult problem to solve. For example, when the halogen light (color temperature near 3000K) and the sunlight (near daylight 5000K) exist in different light source states as shown in FIG. 16, the area illuminated by the halogen light is red in the conventional method, and is illuminated by the sunlight. The created area is reproduced in blue, often resulting in an unnatural image.

【0008】本発明は、かかる点に鑑み、異種光源時に
おいても補正可能な色補正装置を提供することを目的と
する。
In view of the above point, the present invention has an object to provide a color correction device capable of performing correction even when different types of light sources are used.

【0009】[0009]

【課題を解決するための手段】本発明は上記目的を達成
するため、全画面を多数の小領域に分割し、各小領域内
の画素の濃度値から色平均値を計算する平均値演算部
と、前記小領域より少ない個数の分割枠を画面上に設
け、前記色平均値から分割枠毎の色空間上の光源位置を
決定する枠内光源決定部と、前記分割枠の光源位置の補
間によって、画面上の各画素の光源位置を決定する補間
処理部と、求められた各画素の光源位置から、各画素の
濃度値を修正するための利得を出力する利得演算部を具
備した構成である。
In order to achieve the above object, the present invention divides the entire screen into a large number of small areas and calculates a color average value from the density values of the pixels in each small area. An in-frame light source determination unit that determines a light source position on the color space for each divided frame from the color average value by providing a smaller number of divided frames on the screen than the small area, and interpolates the light source position of the divided frame. According to the configuration, an interpolation processing unit that determines the light source position of each pixel on the screen and a gain calculation unit that outputs a gain for correcting the density value of each pixel from the obtained light source position of each pixel are configured. is there.

【0010】さらに、画面上の各画素の光源位置を決定
する補間処理に多重線形関数を用いた構成である。
Further, a multi-linear function is used in the interpolation process for determining the light source position of each pixel on the screen.

【0011】また、全画面を多数の小領域に分割し、各
小領域内の画素の濃度値から色平均値を計算する平均値
演算部と、前記色平均値を色相、彩度、輝度の3次元情
報に変換する色変換部と、色相と彩度で構成する平面上
において前記小領域の色分布の主軸方向と予めわかって
いる複数の照明の光源位置から、画像の中で実際に照明
されている光源位置を決定する主軸選択部と、求められ
た光源位置から各画素の濃度値を修正するための利得を
出力する利得演算部を具備した構成である。
Further, the entire screen is divided into a large number of small areas, and an average value calculating section for calculating a color average value from the density values of pixels in each small area, and the color average value for hue, saturation, and luminance. The color conversion unit for converting into three-dimensional information and the light source positions of a plurality of illuminations which are known in advance as the principal axis direction of the color distribution of the small area on the plane constituted by the hue and the saturation are actually illuminated in the image. A main axis selection unit that determines the light source position that has been set, and a gain calculation unit that outputs a gain for correcting the density value of each pixel from the obtained light source position.

【0012】さらに、色相と彩度で構成する平面上にお
いて、予めわかっている光源位置を通る軸近傍に分布す
る色を基に、画像の中で実際に照明されている光源位置
を決定する主軸選択部を具備した構成である。
Further, on a plane constituted by hue and saturation, a main axis for determining the light source position actually illuminated in the image based on the color distributed in the vicinity of the axis passing through the light source position known in advance. This is a configuration including a selection unit.

【0013】また、全画面を複数の小領域に分割し、各
小領域内の画素の濃度値から色平均値を計算する平均値
演算部と、前記色平均値を色相、彩度、輝度の3次元情
報に変換する色変換部と、色相と彩度で構成する平面上
において、色分布の主軸方向と予めわかっている複数の
照明の光源位置から、画像の中で実際に照明されている
光源位置を決定する主軸選択部と、その確からしさを表
す信頼度を出力する第1信頼性判定部と、前記色平均値
と予めわかっている光源位置との距離を条件として光源
位置を決定する光源選択部と、その確からしさを表す信
頼度を出力する第2信頼性判定部と、前記第1、第2信
頼性判定部の各信頼度に基づいて光源位置を決定する光
源決定部と、求められた各画素の光源位置から各画素の
濃度値を修正するための利得を出力するための利得演算
部を具備した構成である。
Further, the entire screen is divided into a plurality of small areas, and an average value calculating section for calculating a color average value from the density values of pixels in each small area, and the color average value for hue, saturation, and luminance. On the plane formed by the color conversion unit for converting into three-dimensional information and the hue and saturation, the light source positions of a plurality of illuminations which are known in advance as the main axis direction of the color distribution are actually illuminated in the image. A main axis selection unit that determines a light source position, a first reliability determination unit that outputs a reliability that indicates its certainty, and a light source position that is determined by the distance between the color average value and a light source position that is known in advance. A light source selection unit, a second reliability determination unit that outputs a reliability that represents the certainty thereof, and a light source determination unit that determines the light source position based on the reliability of each of the first and second reliability determination units, Correct the density value of each pixel from the obtained light source position of each pixel A structure provided with the gain calculation unit for outputting a gain fit.

【0014】さらに、枠内光源決定部に、色平均値を色
相、彩度、輝度の3次元情報に変換する色変換部と、色
相と彩度で構成する平面上において分割枠内の色分布の
主軸方向と予めわかっている複数の照明の光源位置か
ら、画像の中で実際に照明されている光源位置を決定す
る主軸選択部と、その確からしさを表す信頼度を出力す
る第1信頼性判定部と、色平均値と予めわかっている光
源位置との距離を条件として光源位置を決定する光源選
択部と、その確からしさを表す信頼度を出力する第2信
頼性判定部と、前記第1、第2信頼性判定部の各信頼度
に基づいて光源位置を決定する光源決定部を用いた構成
である。
Further, the in-frame light source determination section includes a color conversion section for converting the color average value into three-dimensional information of hue, saturation, and luminance, and a color distribution within the divided frame on a plane composed of hue and saturation. The main axis selecting unit that determines the position of the light source that is actually illuminated in the image from the light source positions of a plurality of illuminations that are known in advance as the main axis direction of the, and the first reliability that outputs the reliability that indicates the certainty. A determination unit, a light source selection unit that determines the light source position on the condition of the distance between the color average value and a light source position that is known in advance, a second reliability determination unit that outputs a reliability that represents the certainty thereof, This is a configuration using a light source determination unit that determines the light source position based on the reliability of each of the first and second reliability determination units.

【0015】[0015]

【作用】本発明は上記手段を設けることにより、画面内
の分割枠毎に光源位置を決定することで、複数の光源位
置を得る。求められた光源位置の補間を行うことで、画
面内の画素毎に異なる色補正を実現する。
According to the present invention, a plurality of light source positions are obtained by providing the above means to determine the light source position for each divided frame in the screen. By performing interpolation of the obtained light source position, different color correction is realized for each pixel in the screen.

【0016】また分割枠毎の光源位置をより正確に求め
るために、色空間上での有彩色の分布の主軸方向を基に
光源位置を決定する。
In order to obtain the light source position for each divided frame more accurately, the light source position is determined based on the principal axis direction of the chromatic color distribution on the color space.

【0017】さらに、無彩色に重点をおいた光源推定法
と有彩色に重点をおいた光源推定法との統合により、光
源位置導出の精度向上を実現する。
Furthermore, the accuracy of deriving the light source position is improved by integrating the light source estimation method with emphasis on achromatic colors and the light source estimation method with emphasis on chromatic colors.

【0018】[0018]

【実施例】以下、本発明の実施例について、図面を参照
しながら説明する。図1は、本発明における色補正装置
の第1の実施例の構成を示すブロック図である。本発明
を用いた全体構成の実施例については、従来例の図13
と同様である。本実施例はホワイトバランス演算部10
4の内部構成に関する。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing the configuration of a first embodiment of a color correction apparatus according to the present invention. An embodiment of the entire configuration using the present invention is shown in FIG.
Is the same as In this embodiment, the white balance calculation unit 10
4 regarding the internal configuration.

【0019】図1において、1は画面内を多数の小領域
に分割し、r(赤)、g(緑)、b(青)の色平均値を
出力する平均値演算部、2は色平均値((b-y)/y, (r-y)
/y)を色差値に変換する色変換部、3、4、5、6は画
面内を4つに分割する分割枠において、分割枠毎に分割
枠内の色差値から光源位置を決定する枠内光源決定部、
7は枠内光源決定部3、4、5、6から得られた各分割
枠の光源位置の補間によって、画面上の各画素の光源位
置を決定する補間処理部、8は補間処理部7で得られた
各画素の色差値から利得(bcont,rcont)を算出する利
得演算部である。
In FIG. 1, reference numeral 1 denotes an average value calculation unit that divides the screen into a large number of small areas, and outputs color average values of r (red), g (green), and b (blue). Value ((by) / y, (ry)
/ y) is a color conversion unit that converts the color difference value into three, four, five, and six division frames that divide the screen into four frames that determine the light source position from the color difference value in each division frame. Internal light source determination unit,
Reference numeral 7 is an interpolation processing unit that determines the light source position of each pixel on the screen by interpolating the light source position of each divided frame obtained from the in-frame light source determination units 3, 4, 5, and 6, and 8 is an interpolation processing unit 7. It is a gain calculation unit that calculates a gain (bcont, rcont) from the obtained color difference value of each pixel.

【0020】本実施例では、分光分布としては異なる光
をかなり近い色であると認識する作用を工学的に実現さ
せる。画像内の各領域について光源位置を決定し、その
光源に合わせた色補正を実現する方法であり、画面内の
位置に応じて色差平面上での光源位置(白色の位置)を
変化させる。
In the present embodiment, the effect of recognizing light having different spectral distributions as colors that are quite close to each other is realized engineeringally. This is a method of determining the light source position for each area in the image and realizing color correction in accordance with the light source. The light source position (white position) on the color difference plane is changed according to the position in the screen.

【0021】まずr,g,bの色平均値を求めるために、
画面を多数の小領域に分割する。例えば図2(a)のよう
に画面を6×8分割して小領域を構成する。平均値演算
部1で、各小領域の色平均値が求められる。色変換部2
では、色平均値を用いて(数1)のように色差値が求め
られる。
First, in order to obtain the color average values of r, g, and b,
Divide the screen into many small areas. For example, as shown in FIG. 2A, the screen is divided into 6 × 8 to form a small area. The average value calculator 1 obtains the color average value of each small area. Color converter 2
Then, the color difference value is obtained as in (Equation 1) using the color average value.

【0022】[0022]

【数1】 [Equation 1]

【0023】色空間の光源位置を決定するために画面を
複数に分割する。たとえば図2(b)のように4分割す
る。各小領域の色差値は、枠内光源決定部3〜6に出力
される。枠内光源決定部3、4、5、6では、例えば従
来の方法で光源位置((X1, Y1),(X2, Y2),(X3, Y3),(X
4, Y4))が求められる。補間処理部7では、各分割枠の
光源位置をもとに、画面上の各画素の光源位置を補間に
より求める。補間処理としては、図2(b)のようにフレ
ームの4隅に光源位置が配置された図2(c)のような多
重線形関数を構成する。式で示すと(数2)のようにな
る。
The screen is divided into a plurality of parts in order to determine the light source position in the color space. For example, it is divided into four as shown in FIG. The color difference value of each small area is output to the in-frame light source determination units 3 to 6. The in-frame light source determining units 3, 4, 5, and 6 use, for example, conventional light source positions ((X1, Y1), (X2, Y2), (X3, Y3), (X
4, Y4)) is required. The interpolation processing unit 7 obtains the light source position of each pixel on the screen by interpolation based on the light source position of each divided frame. As the interpolation processing, a multiple linear function as shown in FIG. 2C in which light source positions are arranged at four corners of the frame as shown in FIG. 2B is configured. When expressed by an equation, it becomes as shown in (Equation 2).

【0024】[0024]

【数2】 [Equation 2]

【0025】フレーム内の位置(p,q)における色差((b-
y)/y, (r-y)/y)と(数2)から求められた((bo-yo)/yo,
(ro-yo)/yo)の差分を行い、その結果を基に利得(bcon
t,rcont)を求める。この操作を1フレームの全ての画素
について行う。
Color difference ((b-
(y) / y, (ry) / y) and ((bo-yo) / yo,
(ro-yo) / yo) is calculated, and the gain (bcon
t, rcont) is calculated. This operation is performed for all pixels in one frame.

【0026】図3(a)は画面の左側に太陽光が、右側に
ハロゲン光が照明されている場合の画像を、図3(b)は
そのときの色差平面上での光源位置を示している。枠内
光源決定部では、フレームの左側に配置されている2つ
の枠内光源決定部では太陽光を、右側に配置されている
2つの枠内光源決定部ではハロゲン光を光源として推定
する。そして画面全体では、多重線形関数で求められる
光源位置が各画素に割り当てられる。
FIG. 3 (a) shows an image when sunlight is illuminated on the left side of the screen and halogen light is illuminated on the right side, and FIG. 3 (b) shows the light source position on the color difference plane at that time. There is. In the in-frame light source determining unit, the two in-frame light source determining units arranged on the left side of the frame estimate sunlight as the light source, and the two in-frame light source determining units disposed on the right side estimate the halogen light as the light source. Then, in the entire screen, the light source position obtained by the multiple linear function is assigned to each pixel.

【0027】以上のように本実施例では、画面内の分割
枠毎に光源位置を決定し、それを画面上で補間するの
で、異種光源に適応できる補正方式である。
As described above, in the present embodiment, the light source position is determined for each divided frame in the screen and is interpolated on the screen, which is a correction method applicable to different light sources.

【0028】図4は、本発明における色補正装置の第2
の実施例の構成を示すブロック図である。本発明を用い
た全体構成の例については、従来例の図13と同様であ
る。本実施例はホワイトバランス演算部104の内部構
成に関する。図4において、9は画面内を多数の小領域
に分割し、r(赤)、g(緑)、b(青)の色平均値を
出力する平均値演算部、10は色平均値((b-y)/y, (r-
y)/y)を色差値に変換する色変換部、11は色差値の色
分布の主軸を基に光源位置を決定する主軸選択部、12
は主軸選択部11で得られた各画素の色差値から利得(b
cont,rcont)を算出する利得演算部である。
FIG. 4 shows a second color correction apparatus according to the present invention.
3 is a block diagram showing the configuration of the embodiment of FIG. An example of the entire configuration using the present invention is the same as that of the conventional example shown in FIG. The present embodiment relates to the internal configuration of the white balance calculation unit 104. In FIG. 4, 9 is an average value calculator that divides the screen into a large number of small areas and outputs color average values of r (red), g (green), and b (blue), and 10 is an average value (( by) / y, (r-
A color conversion unit that converts y) / y) into color difference values, 11 is a main axis selection unit that determines the light source position based on the main axis of the color distribution of the color difference values, 12
Is a gain (b from the color difference value of each pixel obtained by the main axis selection unit 11).
cont, rcont) is a gain calculator.

【0029】従来例は、色差平面上において、もっとも
色差値の分布が集中した光源位置を照明光源とする方式
である。しかし色差値が、予めわかっている複数の光源
位置のいずれにも集中しない画像は多い。そこで本実施
例は、有彩色を用いた光源推定法を提案する。
The conventional example is a system in which the light source position where the distribution of color difference values is most concentrated on the color difference plane is used as the illumination light source. However, there are many images in which the color difference values are not concentrated on any of a plurality of light source positions that are known in advance. Therefore, the present embodiment proposes a light source estimation method using chromatic colors.

【0030】まず光源推定するための原理を図5で説明
する。多くの場合、物体表面13から反射された光は、
鏡面反射Ys(θ,λ)と拡散反射Yd(θ,λ)の2つの加法成
分に分解することが従来よりわかっている。式で示すと
(数3)のようになる。
First, the principle for estimating the light source will be described with reference to FIG. In many cases, the light reflected from the object surface 13
It has been conventionally known that decomposition into two additive components, specular reflection Ys (θ, λ) and diffuse reflection Yd (θ, λ). When expressed by an equation, it becomes as shown in (Equation 3).

【0031】[0031]

【数3】 (Equation 3)

【0032】ここで、(数4)のように幾何学的パラメ
ータと波長成分を分離可能とする。
Here, the geometrical parameter and the wavelength component can be separated as in (Equation 4).

【0033】[0033]

【数4】 [Equation 4]

【0034】さらに、(数5)のように反射光の電力ス
ペクトル分布を、分光反射率と入射光の電力スペクトル
分布との積に分解する。
Further, the power spectrum distribution of the reflected light is decomposed into the product of the spectral reflectance and the power spectrum distribution of the incident light as shown in (Equation 5).

【0035】[0035]

【数5】 (Equation 5)

【0036】実際には、不均質物体の表面は、油のよう
なもので、光の屈折率が波長に関して一定であることが
報告されている。屈折率が可視域で一定であれば、鏡面
成分は、波長に依存しなくなり、(数6)のように表現
できる。
In practice, it has been reported that the surface of an inhomogeneous object is oily and the refractive index of light is constant with wavelength. If the refractive index is constant in the visible range, the specular component does not depend on the wavelength and can be expressed as in (Equation 6).

【0037】[0037]

【数6】 (Equation 6)

【0038】したがって、反射光Y(θ,λ)は、入射光の
電力スペクトル分布E(λ)とその拡散成分Sd(λ)E(λ)
の線形和となる。これを色差平面上で表現すると、入射
光である光源の色と拡散反射成分である物体の色との間
に直線上に色分布が集中する。図6に赤色の被写体を蛍
光灯で照明した場合を示す。14は色差値の分布を、1
5の点線は色差値の分布の主軸を、16は蛍光灯の色差
平面上の光源位置を示している。赤色の被写体の彩度は
一定であるが、幾何学的パラメータの変化(輝度の変
化)が存在するので、色差平面上において光源と物体色
との間に色が直線上に分布する。
Therefore, the reflected light Y (θ, λ) is the power spectrum distribution E (λ) of the incident light and its diffusion component Sd (λ) E (λ).
Is the linear sum of. If this is expressed on the color difference plane, the color distribution is concentrated on a straight line between the color of the light source that is the incident light and the color of the object that is the diffuse reflection component. FIG. 6 shows a case where a red subject is illuminated with a fluorescent lamp. 14 is the distribution of color difference values is 1
The dotted line 5 indicates the main axis of the color difference value distribution, and 16 indicates the light source position on the color difference plane of the fluorescent lamp. Although the saturation of the red subject is constant, there is a change in the geometrical parameter (change in luminance), so that the color is linearly distributed between the light source and the object color on the color difference plane.

【0039】上記の知見から、本実施例では色が一色に
集中したとき、色分布の主軸方向を求め、さらに予めわ
かっている光源位置のいずれかと交差する条件を用いる
ことで照明光源の色差平面上での光源位置を推定する。
一般に、分布の主軸方向は、たとえば多変量解析手法の
最小2乗法などを用いれば、主軸の位置と傾きが求めら
れる。しかし、リアルタイム処理を行う必要性を鑑みて
本実施例ではより簡略化した方法をとる。
From the above knowledge, in this embodiment, when the colors are concentrated in one color, the principal axis direction of the color distribution is obtained, and the condition of intersecting with any one of the light source positions known in advance is used to obtain the color difference plane of the illumination light source. Estimate the light source position above.
Generally, for the main axis direction of the distribution, the position and inclination of the main axis can be obtained by using, for example, the least squares method of the multivariate analysis method. However, in view of the necessity of performing the real-time processing, a more simplified method is adopted in this embodiment.

【0040】即ち、色分布の主軸を直接求めるのではな
く、光源位置からの主軸方向を限定するような簡単な色
モデルを構成することを試みる。モデルとしては、夕日
等の赤、木の緑、肌色(赤と黄色の中間)、空の青に限
定する。これらのモデルを被写体色と光源位置のパラメ
ータで構成していく。モデルは図7のような色差平面上
の領域で表す。17は光源位置、18は赤色を表す扇上
の領域、19は肌色、20は緑色、21は青色を表して
いる。扇状の領域に属する色差値の数が多いほど、その
モデルである可能性が高いとみなす。各光源位置に対応
した赤色のモデルを図8に示す。
That is, instead of directly obtaining the principal axis of the color distribution, an attempt is made to construct a simple color model that limits the principal axis direction from the light source position. The models are limited to red such as sunset, green of trees, skin color (between red and yellow), and blue of the sky. These models are constructed by parameters of subject color and light source position. The model is represented by a region on the color difference plane as shown in FIG. Reference numeral 17 is a light source position, 18 is a fan-shaped area representing red, 19 is flesh color, 20 is green, and 21 is blue. The larger the number of color difference values belonging to the fan-shaped region, the higher the possibility of being the model. A red model corresponding to each light source position is shown in FIG.

【0041】図8において、22は色温度2500K、23
は3100K、24は4300K、25は5400K、26は7000
K、27は白色蛍光灯、28は3波長型昼光色蛍光灯、
29は昼光色蛍光灯の光源位置である。他の3色も扇上
の領域の光源位置に対する角度を変えて同様に構成す
る。式で示すと(数7)のようになる。
In FIG. 8, 22 is a color temperature of 2500K, 23
Is 3100K, 24 is 4300K, 25 is 5400K, 26 is 7000
K, 27 are white fluorescent lamps, 28 is a three-wavelength daylight fluorescent lamp,
29 is a light source position of a daylight color fluorescent lamp. The other three colors are similarly configured by changing the angle of the area on the fan with respect to the light source position. When expressed by an equation, it becomes as shown in (Equation 7).

【0042】[0042]

【数7】 (Equation 7)

【0043】このモデルを用いて光源を推定する。すな
わち、光源がliのとき、光源liにおいて被写体色cjが
存在する確からしさを画素数Nで表す。各光源および各
被写体色について画素数Nを計算すれば、どの光源のど
の被写体色が存在する可能性が高いか導出することがで
きる。
The light source is estimated using this model. That is, when the light source is li, the probability that the subject color cj exists in the light source li is represented by the number of pixels N. By calculating the number of pixels N for each light source and each subject color, it is possible to derive which subject color of which light source is likely to exist.

【0044】以下に、アルゴリズムの一例を示す。 [STEP1]フレームを複数に分割し、色信号(この場合色
差信号)の平均値(色差平均値と呼ぶ)を求める。(6
*8分割の場合48の平均値) [STEP2]色差平均値から、(数7)を基に光源として
(2500K、3100K、4300K、5400K、
7000K、白色、3波長型昼光色、昼光色)の8つ、
色モデルとしては(赤、肌色、緑、青)の4色について
合計32種類の画素数Nを求める。 [STEP3]各色で、最大画素数を導出した光源を選択す
る。(数8)のNmax(li, cj)は4色なので、4個存在す
る。
An example of the algorithm will be shown below. [STEP1] The frame is divided into a plurality of parts, and the average value of color signals (color difference signals in this case) (called color difference average value) is obtained. (6
* In the case of 8 divisions, the average value of 48) [STEP2] From the average value of color difference, as a light source based on (Equation 7) (2500K, 3100K, 4300K, 5400K,
7,000K, white, 3 wavelength type daylight color, daylight color)
As a color model, a total of 32 types of pixel numbers N are obtained for four colors (red, flesh color, green, blue). [STEP3] Select the light source that derives the maximum number of pixels for each color. Since Nmax (li, cj) in (Equation 8) has four colors, there are four.

【0045】[0045]

【数8】 (Equation 8)

【0046】[STEP4]選択された光源について画素数を
重み係数として、光源の位置を推定する。
[STEP4] The position of the light source is estimated using the number of pixels for the selected light source as a weighting coefficient.

【0047】[0047]

【数9】 [Equation 9]

【0048】図9(a)は、画面の中に顔が大きく撮像さ
れ、肌色の領域30が多く存在する画像の一例である。
光源として白色蛍光灯が照明に用いられているとき、図
9(b)のように白色蛍光灯の光源位置31の肌色を表す
扇状の領域32の中に色差値33が存在する。他の光源
位置に設けられた扇状の領域にも色差値が存在するが、
図9(b)の肌色の領域32に最も多くの色差値が存在す
ることになり、その結果光源として白色蛍光灯が選択さ
れる。
FIG. 9A shows an example of an image in which a large face is imaged on the screen and a lot of skin-colored areas 30 are present.
When a white fluorescent lamp is used for illumination as a light source, a color difference value 33 exists in a fan-shaped area 32 representing the skin color at the light source position 31 of the white fluorescent lamp as shown in FIG. 9B. Color difference values also exist in fan-shaped areas provided at other light source positions,
The flesh color area 32 of FIG. 9B has the largest number of color difference values, and as a result, a white fluorescent lamp is selected as the light source.

【0049】以上のように本実施例では、照明による物
体の有彩色の変化から光源を推定することで、分割枠の
数が増大し色の偏りが起こっても正確に光源を推定でき
る。
As described above, in the present embodiment, the light source is estimated from the change in the chromatic color of the object due to the illumination, so that the light source can be accurately estimated even if the number of division frames increases and color deviation occurs.

【0050】次に、本発明の第3の実施例について、図
面を参照しながら説明する。図10は、本発明における
色補正装置の第3の実施例の構成を示すブロック図であ
る。本発明を用いた全体構成例については、従来例の図
13と同様である。本実施例はホワイトバランス演算部
104の内部構成に関する。図10において、34は画
面内を多数の小領域に分割し、r(赤)、g(緑)、b
(青)の色平均値を出力する平均値演算部、35は色平
均値((b-y)/y, (r-y)/y)を色差値に変換する色変換
部、36は色差値の色分布の主軸を基に光源位置を決定
する主軸選択部、37は主軸選択部36で得られた光源
位置の確からしさを表す信頼度を出力する第1信頼性判
定部、38は従来例で説明した同様の機能を持つ光源選
択部、39は光源選択部38で得られた光源位置の確か
らしさを表す信頼度を出力する第2信頼性判定部、40
は第1、第2信頼性判定部で出力された各信頼度を基
に、主軸選択部36と光源選択部38で得られた光源位
置を合成する光源決定部、41は光源決定部40で得ら
れた光源位置の色差値から利得(bcont,rcont)を算出
する利得演算部である。
Next, a third embodiment of the present invention will be described with reference to the drawings. FIG. 10 is a block diagram showing the configuration of the third embodiment of the color correction apparatus according to the present invention. An example of the entire configuration using the present invention is similar to that of the conventional example shown in FIG. The present embodiment relates to the internal configuration of the white balance calculation unit 104. In FIG. 10, reference numeral 34 divides the screen into a large number of small areas, r (red), g (green), and b.
An average value calculator that outputs the color average value of (blue), 35 is a color conversion unit that converts the color average values ((by) / y, (ry) / y) into color difference values, and 36 is the color distribution of the color difference values. The main axis selecting section for determining the light source position based on the main axis of 37, 37 is the first reliability determining section for outputting the reliability indicating the certainty of the light source position obtained by the main axis selecting section 36, and 38 is the conventional example. A light source selection unit having a similar function, 39 is a second reliability determination unit that outputs the reliability that indicates the certainty of the light source position obtained by the light source selection unit 38, 40
Is a light source determination unit that combines the light source positions obtained by the spindle selection unit 36 and the light source selection unit 38 based on the respective reliability levels output by the first and second reliability determination units, and 41 is a light source determination unit 40. It is a gain calculation unit that calculates the gain (bcont, rcont) from the obtained color difference value of the light source position.

【0051】本実施例は、画面内の有彩色と無彩色の両
方を用いてより精度の高い光源位置を決定しようとする
方式である。まずr,g,bの色平均値を求めるために、
画面が多数の小領域に分割される。たとえば図2(a)の
ように画面を6×8分割し小領域を構成する。平均値演
算部34で、各小領域の色平均値が求められる。色変換
部35では、色平均値を用いて(数10)のように色差
値が求められる。
The present embodiment is a system in which both the chromatic color and the achromatic color on the screen are used to determine the light source position with higher accuracy. First, in order to obtain the color average value of r, g, b,
The screen is divided into many small areas. For example, as shown in FIG. 2A, the screen is divided into 6 × 8 to form a small area. The average value calculator 34 obtains the color average value of each small area. In the color conversion unit 35, the color difference value is obtained by using the color average value as in (Equation 10).

【0052】[0052]

【数10】 [Equation 10]

【0053】主軸選択部36では、(数11)のような
モデルを用いて第2の実施例と同様に以下のようなステ
ップで光源位置が求められる。
In the spindle selecting section 36, the light source position is obtained by the following steps using the model as shown in (Equation 11) as in the second embodiment.

【0054】[0054]

【数11】 [Equation 11]

【0055】このモデルを用いて光源を推定する。すな
わち、光源がliのとき、光源liにおいて被写体色cjが
存在する確からしさを画素数Nで表す。各光源および各
被写体色について画素数Nを計算すれば、どの光源のど
の被写体色が存在する可能性が高いか導出することがで
きる。
The light source is estimated using this model. That is, when the light source is li, the probability that the subject color cj exists in the light source li is represented by the number of pixels N. By calculating the number of pixels N for each light source and each subject color, it is possible to derive which subject color of which light source is likely to exist.

【0056】以下に、アルゴリズムの一例を示す。 [STEP1]フレームを複数に分割し、色信号(この場合色
差信号)の平均値(色差平均値と呼ぶ)を求める。(6
*8分割の場合48の平均値) [STEP2]色差平均値から、(数11)を基に光源として
(2500K、3100K、4300K、5400K、
7000K、白色、3波長型昼光色、昼光色)の8つ、
色モデルとしては(赤、肌色、緑、青)の4色について
合計32種類の画素数Nを求める。 [STEP3]各色で、最大画素数を導出した光源を選択す
る。
An example of the algorithm will be shown below. [STEP1] The frame is divided into a plurality of parts, and the average value of color signals (color difference signals in this case) (called color difference average value) is obtained. (6
* In the case of 8 divisions, the average value of 48) [STEP2] From the average value of color difference, as a light source based on (Equation 11) (2500K, 3100K, 4300K, 5400K,
7,000K, white, 3 wavelength type daylight color, daylight color)
As a color model, a total of 32 types of pixel numbers N are obtained for four colors (red, flesh color, green, blue). [STEP3] Select the light source that derives the maximum number of pixels for each color.

【0057】[0057]

【数12】 (Equation 12)

【0058】[STEP4]選択された光源について画素数を
重み係数として、光源の位置を推定する。
[STEP 4] The position of the light source is estimated using the number of pixels for the selected light source as a weighting coefficient.

【0059】[0059]

【数13】 (Equation 13)

【0060】第1信頼性判定部37では、光源位置の確
からしさを次のような条件で行う。(数12)におい
て、最大画素数を導出した光源は4種類存在する。たと
えば図12のように表される。ここで条件を最大画素数
と、最大画素数となった光源とは異なる光源の中での最
大画素数の比と、最大画素数と総画素数の比を基に光源
位置の確からしさの信頼度を構成する。
The first reliability determining section 37 determines the reliability of the light source position under the following conditions. In (Equation 12), there are four types of light sources that derive the maximum number of pixels. For example, as shown in FIG. The condition here is the maximum number of pixels, the ratio of the maximum number of pixels in a light source different from the light source that has reached the maximum number of pixels, and the reliability of the accuracy of the light source position based on the ratio of the maximum number of pixels to the total number of pixels. Make up degrees.

【0061】[0061]

【数14】 [Equation 14]

【0062】一方、光源選択部38では、従来例で示し
たような方法で光源が決定される。(数15)、(数1
6)に示す。
On the other hand, the light source selection unit 38 determines the light source by the method shown in the conventional example. (Equation 15), (Equation 1)
6).

【0063】[0063]

【数15】 (Equation 15)

【0064】[0064]

【数16】 [Equation 16]

【0065】(数16)で最大画素数となった光源liが
照明光源となる。さらに数(16)で得られる光源位置
の確からしさを表す信頼度を数(17)で示す。
The light source li having the maximum number of pixels in (Equation 16) serves as an illumination light source. Furthermore, the reliability representing the certainty of the light source position obtained by the equation (16) is shown by the equation (17).

【0066】[0066]

【数17】 [Equation 17]

【0067】信頼度R1、R2から光源位置を決定す
る。R1、R2は大きい方が信頼度が高い。そこで光源
の決め方としては以下のような処理ができる。 (1)R1 > k1 かつ R2 < k2 のとき主軸選択部36
の光源位置を採用 (2)R1 < k1 かつ R2 > k2 のとき光源選択部38
の光源位置を採用 (3)R1 > k1 かつ R2 > k2またはR1 < k1 かつ R
2 < k2 のとき主軸選択部36と光源選択部38の光源
位置の中間値を光源位置とする。
The light source position is determined from the reliability R1 and R2. The larger R1 and R2, the higher the reliability. Therefore, the following processing can be performed to determine the light source. (1) When R1> k1 and R2 <k2, spindle selection unit 36
(2) When R1 <k1 and R2> k2, the light source selection unit 38 is used.
(3) R1> k1 and R2> k2 or R1 <k1 and R
When 2 <k2, the intermediate value between the light source positions of the spindle selection unit 36 and the light source selection unit 38 is set as the light source position.

【0068】その効果の例を簡単に図12に示す。44
と46は光源選択領域、43と45は色の主軸を求める
ための扇状の領域、42と47は色差値の分布である。
An example of the effect is briefly shown in FIG. 44
Reference numerals 46 and 46 are light source selection areas, 43 and 45 are fan-shaped areas for obtaining the principal axes of colors, and 42 and 47 are distributions of color difference values.

【0069】図12(a)は、色が偏った場合、図12
(b)は無彩色を含めて様々な色が存在する場合である。
本実施例によれば図12(a)の場合は、信頼度R1が大
きく、信頼度R2が小さくなり、主軸選択部36の光源
位置が採用される。一方図12(b)の場合は信頼度R1
は小さく、信頼度R2が大きくなるので光源選択部38
の光源位置が採用される。このように画像の状態にあわ
せて光源を正確に求めることができる。
FIG. 12A shows the case where the colors are biased.
(b) is a case where various colors including achromatic colors exist.
According to the present embodiment, in the case of FIG. 12A, the reliability R1 is large and the reliability R2 is small, and the light source position of the spindle selection unit 36 is adopted. On the other hand, in the case of FIG. 12B, the reliability R1
Is small and the reliability R2 is large, the light source selection unit 38
The light source position of is adopted. Thus, the light source can be accurately obtained according to the state of the image.

【0070】また、第1の実施例では、画素単位に色補
正を行うために、画面を複数に分割し、それぞれについ
て色補正の原点位置を求める作業を必要とする。しかし
ながら分割枠は当然画面全体より面積が小さく、その結
果分割枠内の色の偏りが大きくなり、従来法では十分な
精度が期待できない場合が存在する。しかし第3の実施
例の中で、主軸選択部36、第1信頼性判定部37、光
源選択部38、第2信頼性判定部39、および光源決定
部40を各枠内光源決定部3、4、5、6に用いれば、
分割枠内の色の偏りにも十分に対応できる色補正装置が
実現できる。
Further, in the first embodiment, in order to perform color correction on a pixel-by-pixel basis, it is necessary to divide the screen into a plurality of parts and obtain the origin position of color correction for each. However, the division frame naturally has a smaller area than the entire screen, and as a result, the color deviation in the division frame becomes large, and there are cases in which sufficient accuracy cannot be expected with the conventional method. However, in the third embodiment, the spindle selection unit 36, the first reliability determination unit 37, the light source selection unit 38, the second reliability determination unit 39, and the light source determination unit 40 are included in each frame light source determination unit 3, If used for 4, 5 and 6,
It is possible to realize a color correction device that can sufficiently cope with color deviation in the divided frame.

【0071】[0071]

【発明の効果】以上のように本発明によれば、画面を複
数に分割し、それぞれについて光源位置を求め、画面上
で補間することによって異種光源に対応した色補正が可
能となる。また、画面内の有彩色と無彩色に注目した光
源推定法を用いることにより、光源位置を正確に求める
ことができる。
As described above, according to the present invention, it is possible to perform color correction corresponding to different light sources by dividing the screen into a plurality of parts, obtaining the light source position for each, and interpolating on the screen. In addition, the light source position can be accurately obtained by using the light source estimation method focusing on the chromatic color and the achromatic color on the screen.

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

【図1】本発明の第1の実施例の色補正装置の構成を示
すブロック図
FIG. 1 is a block diagram showing the configuration of a color correction apparatus according to a first embodiment of the present invention.

【図2】(a)〜(c)は画面の分割および光源位置の
補間処理を示す図
2A to 2C are diagrams showing screen division and light source position interpolation processing.

【図3】(a),(b)は異種光源状態を示す図3A and 3B are diagrams showing states of different light sources.

【図4】本発明の第2の実施例の色補正装置の構成を示
すブロック図
FIG. 4 is a block diagram showing a configuration of a color correction apparatus according to a second embodiment of the present invention.

【図5】光の反射を示す図FIG. 5 is a diagram showing light reflection.

【図6】有彩色物質の光の反射特徴を示す図FIG. 6 is a diagram showing light reflection characteristics of a chromatic substance.

【図7】有彩色を用いた光源推定を示す図FIG. 7 is a diagram showing light source estimation using chromatic colors.

【図8】有彩色を用いた光源推定を示す図FIG. 8 is a diagram showing light source estimation using chromatic colors.

【図9】(a),(b)は有彩色を用いた光源推定を示
す図
9A and 9B are diagrams showing light source estimation using chromatic colors.

【図10】本発明の第3の実施例の色補正装置の構成を
示すブロック図
FIG. 10 is a block diagram showing the configuration of a color correction apparatus according to a third embodiment of the present invention.

【図11】第3の実施例を示す図FIG. 11 is a diagram showing a third embodiment.

【図12】(a),(b)は第3の実施例の効果を示す
12 (a) and 12 (b) are views showing the effect of the third embodiment.

【図13】従来の色補正装置の全体構成を示すブロック
FIG. 13 is a block diagram showing the overall configuration of a conventional color correction device.

【図14】従来の他の色補正装置を示すブロック図FIG. 14 is a block diagram showing another conventional color correction device.

【図15】従来の色補正装置の動作を示す図FIG. 15 is a diagram showing an operation of a conventional color correction device.

【図16】発明が解決しようとする課題を説明するため
の図
FIG. 16 is a diagram for explaining a problem to be solved by the invention.

【符号の説明】 1、9、34 平均値演算部 2、10、35 色変換部 3、4、5、6 枠内光源決定部 7 補間処理部 8、12、41 利得演算部 11、36 主軸選択部 13 物質表面 14、33、42、47 色差値の分布 15 主軸 16、17 光源位置 18、19、20、21、32、43、45 扇状の領
域 22、23、24、25、26、27、28、29、3
1 光源位置 30 肌色領域 37 第1信頼性判定部 38 光源選択部 39 第2信頼性判定部 40 光源決定部 44、46 光源決定領域
[Explanation of reference numerals] 1, 9, 34 Average value calculation unit 2, 10, 35 Color conversion unit 3, 4, 5, 6 In-frame light source determination unit 7 Interpolation processing unit 8, 12, 41 Gain calculation unit 11, 36 Spindle Selector 13 Material surface 14, 33, 42, 47 Color difference value distribution 15 Main axis 16, 17 Light source position 18, 19, 20, 21, 32, 43, 45 Fan-shaped area 22, 23, 24, 25, 26, 27 , 28, 29, 3
DESCRIPTION OF SYMBOLS 1 Light source position 30 Skin color area 37 1st reliability determination part 38 Light source selection part 39 2nd reliability determination part 40 Light source determination part 44, 46 Light source determination region

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】全画面を複数の小領域に分割し、各小領域
内の画素の濃度値から色平均値を計算する平均値演算部
と、前記小領域より少ない個数の分割枠を画面上に設
け、前記色平均値から分割枠毎の色空間上の光源位置を
決定する枠内光源決定部と、前記分割枠の光源位置の補
間によって、画面上の各画素の光源位置を決定する補間
処理部と、求められた各画素の光源位置から、各画素の
濃度値を修正するための利得を出力する利得演算部とを
具備することを特徴とする色補正装置。
1. An average value calculation unit that divides the entire screen into a plurality of small areas and calculates a color average value from the density values of pixels in each small area, and a number of division frames smaller than the small areas on the screen. And an inter-frame light source determining unit that determines the light source position on the color space for each divided frame from the color average value, and an interpolation that determines the light source position of each pixel on the screen by interpolating the light source position of the divided frame. A color correction apparatus comprising: a processing unit; and a gain calculation unit that outputs a gain for correcting the density value of each pixel from the obtained light source position of each pixel.
【請求項2】画面上の各画素の光源位置を決定する補間
処理に多重線形関数を用いたことを特徴とする請求項1
記載の色補正装置。
2. A multiple linear function is used for interpolation processing for determining the light source position of each pixel on the screen.
The described color correction device.
【請求項3】全画面を複数の小領域に分割し、各小領域
内の画素の濃度値から色平均値を計算する平均値演算部
と、前記色平均値を色相、彩度、輝度の3次元情報に変
換する色変換部と、色相と彩度で構成する平面上におい
て前記小領域の色分布の主軸方向と予めわかっている複
数の照明の光源位置から、画像の中で実際に照明されて
いる光源位置を決定する主軸選択部と、求められた光源
位置から各画素の濃度値を修正するための利得を出力す
る利得演算部とを具備することを特徴とする色補正装
置。
3. An average value calculation unit that divides the entire screen into a plurality of small areas and calculates a color average value from the density values of pixels in each small area, and the color average value of hue, saturation, and luminance. The color conversion unit for converting into three-dimensional information and the light source positions of a plurality of illuminations which are known in advance as the principal axis direction of the color distribution of the small area on the plane constituted by the hue and the saturation are actually illuminated in the image. A color correction apparatus comprising: a main axis selection unit that determines a light source position that is set, and a gain calculation unit that outputs a gain for correcting the density value of each pixel from the obtained light source position.
【請求項4】色相と彩度で構成する平面上において、予
めわかっている光源位置を通る軸近傍に分布する色を基
に、画像の中で実際に照明されている光源位置を決定す
る主軸選択部を具備することを特徴とする請求項3記載
の色補正装置。
4. A principal axis for determining a light source position actually illuminated in an image based on a color distributed in the vicinity of an axis passing through a light source position which is known in advance on a plane constituted by hue and saturation. The color correction apparatus according to claim 3, further comprising a selection unit.
【請求項5】全画面を複数の小領域に分割し、各小領域
内の画素の濃度値から色平均値を計算する平均値演算部
と、前記色平均値を色相、彩度、輝度の3次元情報に変
換する色変換部と、色相と彩度で構成する平面上におい
て、色分布の主軸方向と予めわかっている複数の照明の
光源位置から、画像の中で実際に照明されている光源位
置を決定する主軸選択部と、その確からしさを表す信頼
度を出力する第1信頼性判定部と、前記色平均値と予め
わかっている光源位置との距離を条件として光源位置を
決定する光源選択部と、その確からしさを表す信頼度を
出力する第2信頼性判定部と、前記第1、第2信頼性判
定部の各信頼度に基づいて光源位置を決定する光源決定
部と、求められた各画素の光源位置から各画素の濃度値
を修正するための利得を出力するための利得演算部とを
具備することを特徴とする色補正装置。
5. An average value calculation unit that divides the entire screen into a plurality of small areas and calculates a color average value from the density values of pixels in each small area, and the color average values of hue, saturation, and luminance. On the plane formed by the color conversion unit for converting into three-dimensional information and the hue and saturation, the light source positions of a plurality of illuminations which are known in advance as the main axis direction of the color distribution are actually illuminated in the image. A main axis selection unit that determines a light source position, a first reliability determination unit that outputs a reliability that indicates its certainty, and a light source position that is determined by the distance between the color average value and a light source position that is known in advance. A light source selection unit, a second reliability determination unit that outputs a reliability that represents the certainty thereof, and a light source determination unit that determines the light source position based on the reliability of each of the first and second reliability determination units, To correct the density value of each pixel from the obtained light source position of each pixel Color correction apparatus characterized by comprising a gain calculation unit for outputting obtained.
【請求項6】枠内光源決定部は、色平均値を色相、彩
度、輝度の3次元情報に変換する色変換部と、色相と彩
度で構成する平面上において分割枠内の色分布の主軸方
向と予めわかっている複数の照明の光源位置から、画像
の中で実際に照明されている光源位置を決定する主軸選
択部と、その確からしさを表す信頼度を出力する第1信
頼性判定部と、色平均値と予めわかっている光源位置と
の距離を条件として光源位置を決定する光源選択部と、
その確からしさを表す信頼度を出力する第2信頼性判定
部と、前記第1、第2信頼性判定部の各信頼度に基づい
て光源位置を決定する光源決定部を備えたことを特徴と
する請求項1記載の色補正装置。
6. The in-frame light source determining unit converts a color average value into three-dimensional information of hue, saturation, and luminance, and a color distribution in a divided frame on a plane composed of hue and saturation. The main axis selecting unit that determines the position of the light source that is actually illuminated in the image from the light source positions of a plurality of illuminations that are known in advance as the main axis direction of the, and the first reliability that outputs the reliability that indicates the certainty. A determination unit, a light source selection unit that determines the light source position based on the distance between the color average value and the light source position that is known in advance,
A second reliability determination unit that outputs a reliability that represents the certainty and a light source determination unit that determines a light source position based on the reliability of each of the first and second reliability determination units. The color correction device according to claim 1.
JP6169395A 1994-07-21 1994-07-21 Color correction device Pending JPH0837667A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6169395A JPH0837667A (en) 1994-07-21 1994-07-21 Color correction device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6169395A JPH0837667A (en) 1994-07-21 1994-07-21 Color correction device

Publications (1)

Publication Number Publication Date
JPH0837667A true JPH0837667A (en) 1996-02-06

Family

ID=15885809

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6169395A Pending JPH0837667A (en) 1994-07-21 1994-07-21 Color correction device

Country Status (1)

Country Link
JP (1) JPH0837667A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006324840A (en) * 2005-05-18 2006-11-30 Eastman Kodak Co Image processing apparatus and white balance adjusting device
JP2018182593A (en) * 2017-04-17 2018-11-15 キヤノン株式会社 Image processing apparatus and image processing method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006324840A (en) * 2005-05-18 2006-11-30 Eastman Kodak Co Image processing apparatus and white balance adjusting device
JP2018182593A (en) * 2017-04-17 2018-11-15 キヤノン株式会社 Image processing apparatus and image processing method
US11037014B2 (en) 2017-04-17 2021-06-15 Canon Kabushiki Kaisha Image processing apparatus, image processing method, and non-transitory computer-readable storage medium

Similar Documents

Publication Publication Date Title
EP2426928B1 (en) Image processing apparatus, image processing method and program
US8310561B2 (en) White balance correction apparatus and method
US8208037B2 (en) Digital camera and gain computation method
US8331665B2 (en) Method of electronic color image saturation processing
KR100441595B1 (en) Color conversion system and method using the same
JPH08289314A (en) Automatic white balance adjustment device
US8243164B2 (en) Method, apparatus, and system for selecting pixels for automatic white balance processing
CN111899182B (en) Color enhancement method and device
JP4030199B2 (en) Projection type LCD
US7053935B2 (en) Apparatus and method for accurate electronic color capture and reproduction
WO2011148776A1 (en) Image processing apparatus and image processing method
US20090244316A1 (en) Automatic white balance control
US6798449B2 (en) Automatic white-balance correction for digital camera
JP2004282133A (en) Automatic white balance processor and method, and image signal processor
US9036030B2 (en) Color calibration of an image capture device in a way that is adaptive to the scene to be captured
US8115834B2 (en) Image processing device, image processing program and image processing method
JP4430656B2 (en) Digital image capture device and white balance adjustment method
JPH0837667A (en) Color correction device
JP2006222783A (en) Preparation of color conversion table
JPH08154258A (en) Color correction device
KR101137611B1 (en) System and method for effectively performing an image data transformation procedure
JPH07143513A (en) Color image pickup device
EP1895781B1 (en) Method of and apparatus for adjusting colour saturation
US7728884B2 (en) Method for white balance adjustment and digital image capturing device using the same
JP2002135802A (en) Signal processor, image pickup device, signal processing method and storage medium