JP2001320591A - Color balance adjustment method and device, and recording medium - Google Patents

Color balance adjustment method and device, and recording medium

Info

Publication number
JP2001320591A
JP2001320591A JP2000139748A JP2000139748A JP2001320591A JP 2001320591 A JP2001320591 A JP 2001320591A JP 2000139748 A JP2000139748 A JP 2000139748A JP 2000139748 A JP2000139748 A JP 2000139748A JP 2001320591 A JP2001320591 A JP 2001320591A
Authority
JP
Japan
Prior art keywords
image data
parameter
conversion
color
color balance
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
JP2000139748A
Other languages
Japanese (ja)
Other versions
JP4037036B2 (en
Inventor
Hideyuki Sakaida
英之 境田
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.)
Fujifilm Holdings Corp
Original Assignee
Fuji Photo Film 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 Fuji Photo Film Co Ltd filed Critical Fuji Photo Film Co Ltd
Priority to JP2000139748A priority Critical patent/JP4037036B2/en
Publication of JP2001320591A publication Critical patent/JP2001320591A/en
Application granted granted Critical
Publication of JP4037036B2 publication Critical patent/JP4037036B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide a color balance adjustment device that can properly adjust color balance of an image even when a parameter for color balance adjustment is more or less deviated. SOLUTION: A database 9 stores contents of a matrix A and a matrix B whose off-diagonal terms also have a value not 0 on the basis of the color adaptation prediction expression by von Kries. A read means 3 reads image data S0 and an LMS conversion means 4 converts the data into LMS 3-stimulus values. First and second color balance adjustment processing means 5, 6 receive the contents of the matrices A, B from the database 9 on the basis of information of a photographing light source received from an input means 1. The 1 st and 2nd color balance adjustment processing means 5, 6 convert the LMS 3-stimulus values on the basis of the contents of the matrices A, B, and a weight summing means 7 applies weight summing to the converted 3-stimulus values with a prescribed ratio α to obtain summed 3-stimulus values. An RGB conversion means converts the converted 3-stimulus values into an RGB color space, from which processed image data S3 can be obtained.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、画像のカラーバラ
ンスを調整するカラーバランス調整方法および装置並び
にカラーバランス調整方法をコンピュータに実行させる
ためのプログラムを記録したコンピュータ読取り可能な
記録媒体に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a color balance adjusting method and apparatus for adjusting the color balance of an image, and a computer-readable recording medium storing a program for causing a computer to execute the color balance adjusting method. .

【0002】[0002]

【従来の技術】デジタル電子スチルカメラ(以下デジタ
ルカメラとする)においては、撮影により取得した画像
をデジタル画像データとしてデジタルカメラ内部に設け
られた内部メモリやICカードなどの記録媒体に記憶
し、記憶されたデジタル画像データに基づいて、プリン
トなどのハードコピーとしてあるいはディスプレイ上に
ソフトコピーとして撮影により取得した画像を再現する
ことができる。このように、デジタルカメラにより取得
した画像を再現する場合においては、ネガフイルムから
プリントされた写真と同様の高品位な画質を有するもの
とすることが期待されている。
2. Description of the Related Art In a digital electronic still camera (hereinafter referred to as a digital camera), an image obtained by photographing is stored as digital image data in a recording medium such as an internal memory or an IC card provided inside the digital camera. Based on the obtained digital image data, an image obtained by shooting as a hard copy such as a print or as a soft copy on a display can be reproduced. As described above, when reproducing an image obtained by a digital camera, it is expected that the image has the same high-quality image quality as a photograph printed from a negative film.

【0003】一方、人間の視覚には色順応といって、昼
光やそれと分光エネルギー分布の異なる蛍光灯下やタン
グステン光下において白い紙を見ても、青っぽいあるい
は赤っぽいというようには知覚せず、基本的には白とし
て認識する機構が作用する。このような色順応を考慮
し、タングステン光、蛍光灯あるいは屋外の昼光のよう
に撮影光源が異なっても、光源色に依存しない画像を得
ることができるように、撮影された画像を表す画像デー
タに対して撮影光源に応じたホワイトバランス調整処理
(AWB処理)を自動的に施すようにした機能(AWB
機能)を有するデジタルカメラが提案されている。
On the other hand, human visual perception is called chromatic adaptation. Even when a white paper is viewed under daylight or under fluorescent light or tungsten light having a different spectral energy distribution, it is perceived as bluish or reddish. Instead, a mechanism for basically recognizing as white works. In consideration of such chromatic adaptation, even if the photographing light source is different such as tungsten light, fluorescent light or outdoor daylight, an image representing the photographed image can be obtained so that an image independent of the light source color can be obtained. A function (AWB) that automatically performs white balance adjustment processing (AWB processing) according to the shooting light source on data
Digital camera having a function).

【0004】このような、ホワイトバランス調整方法と
しては、von Kriesの色順応予測式に従う方法が用いら
れている。この方法は、光源1において撮影した画像を
光源2下において観察する場合に、光源1および光源2
の白色点の生理原色に基づく三刺激値がL1w
1w,S1wおよびL2w,M2w,S2wであると
すると、ホワイトバランス調整前の光源1下における画
像のLMS三刺激値(L,M,S)を、下記の式
(1)に示すようにホワイトバランス調整後の光源2下
における画像のLMS三刺激値(L,M,S)に変換
するものである。
As such a white balance adjustment method, a method according to the von Kries color adaptation prediction formula is used. This method uses the light source 1 and the light source 2 when observing an image captured by the light source 1 under the light source 2.
The tristimulus value based on the physiological primary color of the white point of L 1w ,
Assuming that M 1w and S 1w and L 2w , M 2w and S 2w , the LMS tristimulus value (L, M, S) 1 of the image under the light source 1 before white balance adjustment is calculated by the following equation (1). As shown in FIG. 5, the image under the light source 2 after white balance adjustment is converted into LMS tristimulus values (L, M, S) 2 .

【0005】[0005]

【数1】 しかしながら、von Kriesの色順応予測式に従う方法
は、昼光光源の場合には白色以外の顔等の色も適切に調
整することができるが、例えば蛍光灯やタングステン光
のような特殊な光源下において撮影された画像について
は、白色以外の顔等の色が不自然な色に変換されてしま
うという問題がある。
(Equation 1) However, the method according to the von Kries color adaptation prediction formula can appropriately adjust the color of a face etc. other than white in the case of a daylight light source, for example, under a special light source such as a fluorescent lamp or tungsten light. There is a problem that the color of the face etc. other than white is converted into an unnatural color with respect to the image taken in.

【0006】このため、生理原色の変換を、上記式
(1)に示すように対角項にのみ0でない値を有するマ
トリクスを用いるのではなく、非対角項も0でない値を
有するマトリクスを用いて行うことにより画像のカラー
バランスを調整する方法も提案されている。この方法に
よれば、特殊な光源下において撮影がなされた画像であ
っても、その光源を考慮したマトリクスを生成しておく
ことにより、適切な色となるようにカラーバランス調整
処理を行うことができる。
For this reason, instead of using a matrix having only non-diagonal terms having non-zero values as shown in the above equation (1), a matrix having non-diagonal terms having non-zero values is used for conversion of physiological primary colors. A method of adjusting the color balance of an image by using the method has also been proposed. According to this method, even if an image is captured under a special light source, by generating a matrix in consideration of the light source, it is possible to perform a color balance adjustment process to obtain an appropriate color. it can.

【0007】[0007]

【発明が解決しようとする課題】von Kriesの色順応予
測式に従う方法においては、マトリクスは対角項にのみ
0でない値を有し、三刺激値L,M,Sのそれぞれの成
分を白色点の各成分L,M,Sに応じて定数倍し
ているものであるため、カラーバランス調整処理におい
て撮影時の光源と仮定している光源の白色点と実際の撮
影時の光源の白色点とが若干ずれている場合でも、処理
に失敗して不自然な色を有する画像が得られてしまう可
能性は低い。これに対して、非対角項も0でない値を有
するマトリクスを用いて変換を行う場合には、対角項の
みならず非対角項も含めて三刺激値L,M,Sを変換し
ているため、撮影時の光源と仮定している光源の白色点
と実際の撮影時の光源の白色点とがずれていると、変換
によりずれが増幅され、処理により得られる画像の白色
が色味を帯びてしまうという問題がある。
In the method according to the von Kries color adaptation prediction formula, the matrix has non-zero values only in the diagonal terms, and the components of the tristimulus values L, M, and S are represented by white points. Are multiplied by a constant according to the components L w , M w , and S w of the light source. Therefore, in the color balance adjustment processing, the white point of the light source assumed to be the light source during shooting and the light source Even when the white point is slightly deviated, it is unlikely that the processing will fail and an image having an unnatural color will be obtained. On the other hand, when the conversion is performed using a matrix in which the off-diagonal terms also have non-zero values, the tristimulus values L, M, and S are converted including not only the diagonal terms but also the off-diagonal terms. Therefore, if the white point of the light source assumed as the light source at the time of shooting is different from the white point of the light source at the time of actual shooting, the shift is amplified by the conversion, and the white color of the image obtained by processing is There is a problem that it tastes.

【0008】例えば、von Kriesの色順応予測式に基づ
く変換が下記の式(2)に示すマトリクスからなる変換
パラメータにより行うものであり、非対角項も0でない
値を有するマトリクスによる変換が下記の式(3)に示
すマトリクスからなる変換パラメータにより行うもので
あるとする。そして、変換前の白色点のLが1%ずれた
とすると、式(2)の場合、変換後の色はL:0.99
%、M:0%、S:0%ずれるのみであるが、式(3)
の場合、変換後の色はL:1.22%、M:−0.11
%、S:−0.05%ずれる。このため、非対角項も0
でない値を有するマトリクスを用いた変換においては、
白色点の推定が多少ずれる等により変換パラメータが誤
って設定されると、変換後の白色が色味を帯びてしまう
こととなる。
For example, conversion based on the von Kries chromatic adaptation prediction formula is performed by using a conversion parameter consisting of a matrix represented by the following equation (2). It is assumed that the conversion is performed using a conversion parameter including a matrix shown in Expression (3). Then, assuming that L of the white point before the conversion is shifted by 1%, in the case of Expression (2), the color after the conversion is L: 0.99
%, M: 0%, and S: 0%, but the formula (3)
In the case of, the color after conversion is L: 1.22%, M: -0.11
%, S: -0.05%. Therefore, the off-diagonal term is also 0
In a transformation using a matrix with non-
If the conversion parameters are incorrectly set due to a slight shift in the estimation of the white point, the converted white will take on a tint.

【0009】[0009]

【数2】 (Equation 2)

【数3】 本発明は上記事情に鑑みなされたものであり、変換パラ
メータが多少誤って設定されても適切にカラーバランス
を調整できるカラーバランス調整方法および装置並びに
カラーバランス調整方法をコンピュータに実行させるた
めのプログラムを記録したコンピュータ読取り可能な記
録媒体を提供することを目的とするものである。
(Equation 3) The present invention has been made in view of the above circumstances, and provides a color balance adjustment method and apparatus capable of appropriately adjusting a color balance even when a conversion parameter is set somewhat incorrectly, and a program for causing a computer to execute the color balance adjustment method. It is an object of the present invention to provide a recorded computer-readable recording medium.

【0010】[0010]

【課題を解決するための手段】本発明によるカラーバラ
ンス調整方法は、被写体を撮影することにより取得した
画像を表す画像データ、または所定の光源下において観
察することを前提としたカラーバランス調整処理が施さ
れた画像データに対してカラーバランスを調整する処理
を施して処理済み画像データを得るカラーバランス調整
方法において、対角行列に基づく第1の変換パラメータ
によるカラーバランス調整処理と、少なくとも1つの0
でない非対角項を含む非対角行列に基づく第2の変換パ
ラメータによるカラーバランス調整処理とを所定の比率
により混合した混合処理を前記画像データに施すことに
より、前記処理済み画像データを得ることを特徴とする
ものである。
According to the color balance adjusting method of the present invention, image data representing an image obtained by photographing a subject or color balance adjusting processing premised on observation under a predetermined light source is performed. In a color balance adjustment method of performing color balance adjustment processing on the applied image data to obtain processed image data, a color balance adjustment processing using a first conversion parameter based on a diagonal matrix, and at least one 0
Obtaining the processed image data by applying a mixing process in which a color balance adjustment process based on a non-diagonal matrix including a non-diagonal term including a non-diagonal term is mixed at a predetermined ratio to the image data. It is characterized by the following.

【0011】「対角行列に基づく第1の変換パラメー
タ」とは、例えば上述したvon Kriesの色順応予測式に
用いられるマトリクスのように、対角項にのみ0でない
値を有し、変換の前後における画像の白色点を一致させ
ることができるマトリクスが挙げられるが、変換の前後
における画像の白色点を一致させるために、対角項にの
み0でない値を有するマトリクスに基づいて生成された
ものであれば、非対角項も0でない値を有するマトリク
スであってもよい。
The "first conversion parameter based on the diagonal matrix" is, for example, a matrix used in the von Kries chromatic adaptation prediction formula described above, which has a value other than 0 only in the diagonal term, and There is a matrix that can match the white point of the image before and after, but in order to match the white point of the image before and after the conversion, a matrix generated based on a matrix having only non-zero values in the diagonal terms If so, a matrix having non-diagonal terms having non-zero values may also be used.

【0012】「少なくとも1つの0でない非対角項を含
む非対角行列に基づく第2の変換パラメータ」とは、撮
影時の光源を考慮して適切なカラーバランス調整処理を
行うことができるように生成された、非対角項にも0で
ない値を有するマトリクスである。
The "second conversion parameter based on an off-diagonal matrix including at least one off-zero off-diagonal term" means that an appropriate color balance adjustment process can be performed in consideration of a light source at the time of photographing. Are matrices that have non-zero values for off-diagonal terms as well.

【0013】なお、本発明によるカラーバランス調整方
法においては、前記混合処理は、前記画像データを前記
第1の変換パラメータによって変換することにより第1
の中間画像データを得、前記画像データを前記第2の変
換パラメータによって変換することにより第2の中間画
像データを得、前記第1および第2の中間画像データを
前記所定の比率により重み付け加算する処理とすればよ
い。
[0013] In the color balance adjusting method according to the present invention, the mixing is performed by converting the image data using the first conversion parameter.
Is obtained by converting the image data according to the second conversion parameter, second intermediate image data is obtained, and the first and second intermediate image data are weighted and added according to the predetermined ratio. Processing may be performed.

【0014】また、前記混合処理は、前記第1の変換パ
ラメータと前記第2の変換パラメータとを前記所定の比
率により重み付け加算して加算パラメータを得、前記画
像データを該加算パラメータによって変換する処理とし
てもよい。
[0014] In the mixing process, the first conversion parameter and the second conversion parameter are weighted and added according to the predetermined ratio to obtain an addition parameter, and the image data is converted by the addition parameter. It may be.

【0015】さらに、前記混合処理は、前記画像データ
を前記第1の変換パラメータによって変換することによ
り第1の中間画像データを得、該第1の中間画像データ
を、前記第1および第2の変換パラメータに基づいて生
成された白色を保存する第3の変換パラメータによって
変換することにより第2の中間画像データを得、前記第
1の中間画像データを、前記第3の変換パラメータと単
位パラメータとに基づいて生成された白色を保存する第
4の変換パラメータによって変換することにより第3の
中間画像データを得、前記第2および第3の中間画像デ
ータを前記所定の比率により重み付け加算する処理とし
てもよい。
Further, in the mixing process, first intermediate image data is obtained by converting the image data by the first conversion parameter, and the first intermediate image data is converted into the first and second image data. The second intermediate image data is obtained by converting the white image generated based on the conversion parameter by using a third conversion parameter for storing the white image, and the first intermediate image data is converted into the third conversion parameter, the unit parameter, and The third intermediate image data is obtained by converting with a fourth conversion parameter that stores the white color generated based on the above, and the second and third intermediate image data are weighted and added by the predetermined ratio. Is also good.

【0016】「白色を保存する第3の変換パラメータ」
とは、変換の前後において白色を変更することなくカラ
ーバランス調整処理を行うことができる変換パラメータ
であり、第1の変換パラメータと第3の変換パラメータ
とにより処理を行ったときに、第2の変換パラメータに
よる処理に相当する処理が行われるように生成される。
"Third Conversion Parameter for Preserving White"
Is a conversion parameter that allows color balance adjustment processing to be performed without changing white color before and after conversion. When processing is performed using the first conversion parameter and the third conversion parameter, the second It is generated so that a process corresponding to the process based on the conversion parameter is performed.

【0017】「単位パラメータ」とは対角項が1の値を
有し、非対角項が0の値を有するマトリクスである。
A "unit parameter" is a matrix in which the diagonal terms have a value of 1 and the off-diagonal terms have a value of 0.

【0018】「白色を保存する第4の変換パラメータ」
とは、変換の前後において白色を変更することなくカラ
ーバランス調整処理を行うことができる変換パラメータ
であり、第1の変換パラメータと第4の変換パラメータ
とにより処理を行ったときに、第1の変換パラメータか
ら第2の変換パラメータを減算した処理に相当する処理
が行われるように、単位パラメータから第3のパラメー
タを減算することにより生成される。
"Fourth Conversion Parameter for Preserving White"
Is a conversion parameter that allows color balance adjustment processing to be performed before and after conversion without changing the white color. When processing is performed using the first conversion parameter and the fourth conversion parameter, the first It is generated by subtracting the third parameter from the unit parameter so that a process corresponding to the process of subtracting the second conversion parameter from the conversion parameter is performed.

【0019】また、前記混合処理は、前記画像データを
前記第1の変換パラメータによって変換することにより
第1の中間画像データを得、前記第1および第2の変換
パラメータに基づいて生成された白色を保存する第3の
変換パラメータと、該第3の変換パラメータと単位パラ
メータとに基づいて生成された白色を保存する第4の変
換パラメータとを前記所定の比率により重み付け加算し
て加算パラメータを得、前記第1の中間画像データを該
加算パラメータによって変換する処理としてもよい。
Further, in the mixing process, first image data is obtained by converting the image data using the first conversion parameter, and a white color generated based on the first and second conversion parameters is obtained. And a fourth conversion parameter for storing white generated based on the third conversion parameter and the unit parameter are weighted and added according to the predetermined ratio to obtain an addition parameter. , The first intermediate image data may be converted by the addition parameter.

【0020】さらに、前記混合処理は、前記画像データ
を、前記第1および第2の変換パラメータに基づいて生
成された白色を保存する第3の変換パラメータによって
変換することにより第1の中間画像データを得、前記画
像データを、前記第3の変換パラメータと単位パラメー
タとに基づいて生成された白色を保存する第4の変換パ
ラメータによって変換することにより第2の中間画像デ
ータを得、前記第1および第2の中間画像データを前記
所定の比率によって重み付け加算することにより加算画
像データを得、該加算画像データを前記第1の変換パラ
メータによって変換する処理としてもよい。
Further, in the mixing process, the first intermediate image data is converted by converting the image data by a third conversion parameter for storing white generated based on the first and second conversion parameters. And converting the image data with a fourth conversion parameter for storing white generated based on the third conversion parameter and the unit parameter, thereby obtaining second intermediate image data. The weighted addition of the second intermediate image data and the second intermediate image data according to the predetermined ratio may be performed to obtain added image data, and the added image data may be converted by the first conversion parameter.

【0021】さらにまた、前記混合処理は、前記第1お
よび第2の変換パラメータに基づいて生成された白色を
保存する第3の変換パラメータと、該第3の変換パラメ
ータと単位パラメータとに基づいて生成された白色を保
存する第4の変換パラメータとを前記所定の比率により
重み付け加算して加算パラメータを得、前記画像データ
を該加算パラメータによって変換することにより変換画
像データを得、該変換画像データを前記第1の変換パラ
メータによって変換する処理としてもよい。
Further, the mixing process is performed based on a third conversion parameter for storing a white color generated based on the first and second conversion parameters, and the third conversion parameter and a unit parameter. A fourth conversion parameter for storing the generated white color is weighted and added according to the predetermined ratio to obtain an addition parameter, and the image data is converted by the addition parameter to obtain conversion image data. May be converted by the first conversion parameter.

【0022】また、本発明によるカラーバランス調整方
法においては、前記画像を撮影した撮影装置の分光特性
に関連する色空間において、前記混合処理を行ってもよ
い。
Further, in the color balance adjusting method according to the present invention, the mixing process may be performed in a color space related to a spectral characteristic of a photographing device that has photographed the image.

【0023】「撮影を行う撮像装置の分光特性に関連す
る色空間」とは、例えばRGB色空間、CMY色空間が
挙げられる。
The "color space related to the spectral characteristics of the imaging device that performs photographing" includes, for example, an RGB color space and a CMY color space.

【0024】さらに、本発明によるカラーバランス調整
方法においては、人間の視覚特性に関連する色空間にお
いて、前記混合処理を行ってもよい。
Further, in the color balance adjusting method according to the present invention, the mixing process may be performed in a color space related to human visual characteristics.

【0025】「人間の視覚特性に関連する色空間」と
は、例えば生理原色に基づくLMS色空間が挙げられ
る。
The "color space related to human visual characteristics" is, for example, an LMS color space based on physiological primary colors.

【0026】また、本発明によるカラーバランス調整方
法においては、前記第1の変換パラメータを、人間の視
覚特性に関連する色空間において前記対角行列に基づい
て行われるカラーバランス調整処理を、前記画像を撮影
した撮影装置の分光特性に関連する色空間において行う
ためのパラメータとし、前記第2の変換パラメータを、
人間の視覚特性に関連する色空間において前記非対角行
列に基づいて行われるカラーバランス調整処理を、前記
画像を撮影した撮影装置の分光特性に関連する色空間に
おいて行うためのパラメータとしてもよい。
In the color balance adjusting method according to the present invention, the first conversion parameter may be a color balance adjusting process performed based on the diagonal matrix in a color space related to human visual characteristics. As a parameter to be performed in a color space related to the spectral characteristic of the imaging device that has captured the image, and the second conversion parameter is
The color balance adjustment processing performed based on the off-diagonal matrix in a color space related to human visual characteristics may be set as a parameter for performing the color balance related to the spectral characteristics of an imaging device that has captured the image.

【0027】「人間の視覚特性に関連する色空間におい
て前記対角行列に基づいて行われるカラーバランス調整
処理」とは、上記式(1)に示すvon Kriesの色順応予
測式のように例えばLMS色空間においてカラーバラン
スの調整を行う処理である。ここで、例えばデジタルカ
メラのように、得られる画像データがRGB色信号から
なるものである場合、カラーバランス調整処理を行うた
めにはRGBの色信号をLMS色空間に変換する必要が
ある。よって、「人間の視覚特性に関連する色空間にお
いて前記対角行列に基づいて行われるカラーバランス調
整処理を、前記画像を撮影した撮影装置の分光特性に関
連する色空間において行うためのパラメータ」とは、撮
影装置の分光特性に関連する色空間から人間の視覚特性
に関連する色空間への変換処理を行うパラメータと、vo
n Kriesの色順応予測式のようなカラーバランス調整処
理を行うパラメータとを合成することにより、色空間の
変換とカラーバランス調整処理とを同時に行うようにし
たパラメータのことをいう。
The "color balance adjustment processing performed based on the diagonal matrix in a color space related to human visual characteristics" means, for example, an LMS like the von Kries color adaptation prediction equation shown in the above equation (1). This is a process for adjusting the color balance in the color space. Here, when the obtained image data is composed of RGB color signals as in a digital camera, for example, it is necessary to convert the RGB color signals into the LMS color space in order to perform the color balance adjustment processing. Therefore, “parameters for performing color balance adjustment processing performed based on the diagonal matrix in a color space related to human visual characteristics in a color space related to spectral characteristics of an imaging device that has captured the image” Parameters for performing a conversion process from a color space related to the spectral characteristics of the imaging device to a color space related to the human visual characteristics;
This is a parameter in which color space conversion and color balance adjustment processing are performed simultaneously by synthesizing a parameter for performing color balance adjustment processing such as the n Kries color adaptation prediction equation.

【0028】また、「人間の視覚特性に関連する色空間
において前記非対角行列に基づいて行われるカラーバラ
ンス調整処理を、前記画像を撮影した撮影装置の分光特
性に関連する色空間において行うためのパラメータ」と
は、撮影装置の分光特性に関連する色空間から人間の視
覚特性に関連する色空間への変換処理を行うパラメータ
と、上記非対角項も0でない値を有するマトリクスのよ
うなカラーバランス調整処理を行うパラメータとを合成
することにより、色空間の変換とカラーバランス調整処
理とを同時に行うようにしたパラメータのことをいう。
[0028] Also, "the color balance adjustment processing performed based on the non-diagonal matrix in a color space related to human visual characteristics is performed in a color space related to the spectral characteristics of a photographing apparatus that has photographed the image. Are parameters for performing a conversion process from the color space related to the spectral characteristics of the imaging device to the color space related to the human visual characteristics, and a matrix such as the above-described non-diagonal term having a non-zero value. This is a parameter in which color space conversion and color balance adjustment processing are performed simultaneously by synthesizing parameters for performing color balance adjustment processing.

【0029】さらに、本発明によるカラーバランス調整
方法においては、前記画像データを撮影した際の撮影光
源の白色点を推定し、該白色点に基づいて前記第1およ
び第2の変換パラメータを生成してもよい。
Further, in the color balance adjusting method according to the present invention, a white point of a photographing light source at the time of photographing the image data is estimated, and the first and second conversion parameters are generated based on the white point. You may.

【0030】さらにまた、本発明によるカラーバランス
調整方法においては、前記画像データを撮影した際の撮
影光源の指定を受け付け、該指定された撮影光源に応じ
て、前記所定の比率を変更するようにしてもよい。
Further, in the color balance adjusting method according to the present invention, designation of a photographing light source at the time of photographing the image data is received, and the predetermined ratio is changed according to the designated photographing light source. You may.

【0031】ここで、撮影光源の指定の受け付けは、例
えば本発明を実施するための装置において、キーボー
ド、光源を指定するキー等からの入力を受け付けること
により行うことができる。また、撮影時に画像データに
撮影光源に関する情報を付与しておき、処理パラメータ
の生成時に画像データに付与された撮影光源に関する情
報を読み取ることにより、撮影光源の指定を受け付ける
ようにしてもよい。
Here, the designation of the photographing light source can be accepted, for example, by accepting an input from a keyboard, a key for designating the light source, etc. in an apparatus for implementing the present invention. In addition, information about the photographing light source may be added to the image data at the time of photographing, and the designation of the photographing light source may be received by reading information about the photographing light source added to the image data when the processing parameter is generated.

【0032】本発明によるカラーバランス調整装置は、
被写体を撮影することにより取得した画像を表す画像デ
ータ、または所定の光源下において観察することを前提
としたカラーバランス調整処理が施された画像データに
対してカラーバランスを調整する処理を施して処理済み
画像データを得るカラーバランス調整装置において、対
角行列に基づく第1の変換パラメータによるカラーバラ
ンス調整処理と、少なくとも1つの0でない非対角項を
含む非対角行列に基づく第2の変換パラメータによるカ
ラーバランス調整処理とを所定の比率により混合した混
合処理を前記画像データに施すことにより、前記処理済
み画像データを得る混合処理手段を備えたことを特徴と
するものである。
The color balance adjusting device according to the present invention comprises:
A process of performing color balance adjustment processing on image data representing an image obtained by photographing a subject or image data on which color balance adjustment processing has been performed on the assumption that observation is performed under a predetermined light source. A color balance adjustment device for obtaining finished image data, a color balance adjustment process using a first conversion parameter based on a diagonal matrix, and a second conversion parameter based on an off-diagonal matrix including at least one non-zero off-diagonal term And a mixing processing unit that obtains the processed image data by performing a mixing process of mixing the color balance adjustment process with the image data at a predetermined ratio on the image data.

【0033】なお、本発明によるカラーバランス調整装
置においては、前記混合処理手段は、前記画像データを
前記第1の変換パラメータによって変換することにより
第1の中間画像データを得る第1の変換手段と、前記画
像データを前記第2の変換パラメータによって変換する
ことにより第2の中間画像データを得る第2の変換手段
と、前記第1および第2の中間画像データを前記所定の
比率により重み付け加算する重み付け加算手段とを備え
るものとしてもよい。
In the color balance adjusting device according to the present invention, the mixing processing means includes a first conversion means for converting the image data by the first conversion parameter to obtain first intermediate image data. A second conversion unit that obtains second intermediate image data by converting the image data using the second conversion parameter; and weights and adds the first and second intermediate image data according to the predetermined ratio. A weighting and adding unit may be provided.

【0034】また、前記混合処理手段は、前記第1の変
換パラメータと前記第2の変換パラメータとを前記所定
の比率により重み付け加算して加算パラメータを得る重
み付け加算手段と、前記画像データを該加算パラメータ
によって変換する変換手段とを備えるものとしてもよ
い。
In addition, the mixing processing means includes weighted addition means for obtaining an addition parameter by weighting and adding the first conversion parameter and the second conversion parameter at the predetermined ratio, and adding the image data to the image data. Conversion means for performing conversion by parameters may be provided.

【0035】さらに、前記混合処理手段は、前記画像デ
ータを前記第1の変換パラメータによって変換すること
により第1の中間画像データを得る第1の変換手段と、
該第1の中間画像データを、前記第1および第2の変換
パラメータに基づいて生成された白色を保存する第3の
変換パラメータによって変換することにより第2の中間
画像データを得る第2の変換手段と、前記第1の中間画
像データを、前記第3の変換パラメータと単位パラメー
タとに基づいて生成された白色を保存する第4の変換パ
ラメータによって変換することにより第3の中間画像デ
ータを得る第3の変換手段と、前記第2および第3の中
間画像データを前記所定の比率により重み付け加算する
重み付け加算手段とを備えるものとしてもよい。
Further, the mixing processing means converts the image data by the first conversion parameter to obtain first intermediate image data,
A second conversion for obtaining the second intermediate image data by converting the first intermediate image data by a third conversion parameter for storing a white color generated based on the first and second conversion parameters; Means for converting the first intermediate image data by a fourth conversion parameter for storing a white color generated based on the third conversion parameter and the unit parameter to obtain third intermediate image data The image processing apparatus may further include third conversion means, and weighting addition means for weighting and adding the second and third intermediate image data at the predetermined ratio.

【0036】また、前記混合処理手段は、前記画像デー
タを前記第1の変換パラメータによって変換することに
より第1の中間画像データを得る第1の変換手段と、前
記第1および第2の変換パラメータに基づいて生成され
た白色を保存する第3の変換パラメータと、該第3の変
換パラメータと単位パラメータとに基づいて生成された
白色を保存する第4の変換パラメータとを前記所定の比
率により重み付け加算して加算パラメータを得る重み付
け加算手段と、前記第1の中間画像データを該加算パラ
メータによって変換する第2の変換手段とを備えるもの
としてもよい。
Further, the mixing processing means includes: first conversion means for obtaining the first intermediate image data by converting the image data using the first conversion parameter; and the first and second conversion parameters. Weighting the third conversion parameter for storing the white color generated based on the third conversion parameter and the fourth conversion parameter for storing the white color generated based on the third conversion parameter and the unit parameter by the predetermined ratio The image processing apparatus may further include a weighting addition unit that obtains an addition parameter by adding, and a second conversion unit that converts the first intermediate image data using the addition parameter.

【0037】さらに、前記混合処理手段は、前記画像デ
ータを、前記第1および第2の変換パラメータに基づい
て生成された白色を保存する第3の変換パラメータによ
って変換することにより第1の中間画像データを得る第
1の変換手段と、前記画像データを、前記第3の変換パ
ラメータと単位パラメータとに基づいて生成された白色
を保存する第4の変換パラメータによって変換すること
により第2の中間画像データを得る第2の変換手段と、
前記第1および第2の中間画像データを前記所定の比率
によって重み付け加算することにより加算画像データを
得る重み付け加算手段と、該加算画像データを前記第1
の変換パラメータによって変換する第3の変換手段とを
備えるものとしてもよい。
Further, the mixing processing means converts the image data by using a third conversion parameter for storing a white color generated based on the first and second conversion parameters, thereby obtaining a first intermediate image. A first conversion unit for obtaining data; and a second intermediate image by converting the image data by a fourth conversion parameter for storing white generated based on the third conversion parameter and the unit parameter. Second conversion means for obtaining data;
Weighted addition means for obtaining added image data by weighting and adding the first and second intermediate image data according to the predetermined ratio; and
And a third conversion unit that performs conversion using the conversion parameter of (3).

【0038】また、前記混合処理手段は、前記第1およ
び第2の変換パラメータに基づいて生成された白色を保
存する第3の変換パラメータと、該第3の変換パラメー
タと単位パラメータとに基づいて生成された白色を保存
する第4の変換パラメータとを前記所定の比率により重
み付け加算して加算パラメータを得る重み付け加算手段
と、前記画像データを該加算パラメータによって変換す
ることにより変換画像データを得る第1の変換手段と、
該変換画像データを前記第1の変換パラメータによって
変換する第2の変換手段とを備えるものとしてもよい。
Further, the mixing processing means includes a third conversion parameter for storing the white color generated based on the first and second conversion parameters, and a third conversion parameter based on the third conversion parameter and the unit parameter. Weighting and adding means for obtaining an addition parameter by weighting and adding the fourth conversion parameter for storing the generated white color according to the predetermined ratio; and obtaining the converted image data by converting the image data using the addition parameter. 1 conversion means;
Second conversion means for converting the converted image data using the first conversion parameter may be provided.

【0039】また、本発明によるカラーバランス調整装
置においては、前記混合処理手段は、前記画像を撮影し
た撮影装置の分光特性に関連する色空間において、前記
混合処理を行う手段としてもよい。
Further, in the color balance adjusting device according to the present invention, the mixing processing means may be means for performing the mixing processing in a color space related to the spectral characteristics of the photographing apparatus that has photographed the image.

【0040】さらに、前記混合処理手段は、人間の視覚
特性に関連する色空間において、前記混合処理を行う手
段としてもよい。
Further, the mixing processing means may be means for performing the mixing processing in a color space related to human visual characteristics.

【0041】さらにまた、前記第1の変換パラメータ
を、人間の視覚特性に関連する色空間において前記対角
行列に基づいて行われるカラーバランス調整処理を、前
記画像を撮影した撮影装置の分光特性に関連する色空間
において行うためのパラメータとし、前記第2の変換パ
ラメータを、人間の視覚特性に関連する色空間において
前記非対角行列に基づいて行われるカラーバランス調整
処理を、前記画像を撮影した撮影装置の分光特性に関連
する色空間において行うためのパラメータとしてもよ
い。
Furthermore, the first conversion parameter is converted into a color balance adjustment process performed based on the diagonal matrix in a color space related to human visual characteristics, and the spectral characteristics of a photographing device that has photographed the image are converted into a color balance adjustment process. As a parameter to be performed in a related color space, the second conversion parameter is subjected to a color balance adjustment process performed based on the non-diagonal matrix in a color space related to human visual characteristics, and the image is captured. It may be a parameter for performing in a color space related to the spectral characteristics of the imaging device.

【0042】また、本発明によるカラーバランス調整装
置においては、前記画像データを撮影した際の撮影光源
の白色点を推定する白色点推定手段と、該白色点に基づ
いて前記第1および第2の変換パラメータを生成するパ
ラメータ生成手段とを備えるものとしてもよい。
Further, in the color balance adjusting device according to the present invention, a white point estimating means for estimating a white point of a photographing light source when the image data is photographed, and the first and the second based on the white point. And a parameter generation unit that generates a conversion parameter.

【0043】さらに、本発明によるカラーバランス調整
装置においては、前記画像データを撮影した際の撮影光
源の指定を受け付ける受付手段と、該指定された撮影光
源に応じて、前記所定の比率を変更する変更手段とを備
えるものとしてもよい。
Further, in the color balance adjusting device according to the present invention, a receiving means for receiving designation of a photographing light source when photographing the image data, and changing the predetermined ratio in accordance with the designated photographing light source. And changing means.

【0044】なお、本発明によるカラーバランス調整方
法をコンピュータに実行させるためのプログラムとし
て、コンピュータ読取り可能な記録媒体に記録して提供
してもよい。
The program for causing a computer to execute the color balance adjustment method according to the present invention may be provided by being recorded on a computer-readable recording medium.

【0045】また、本発明によるカラーバランス調整装
置を、デジタルカメラのような撮像装置に設けてもよ
い。
Further, the color balance adjusting device according to the present invention may be provided in an imaging device such as a digital camera.

【0046】さらに、本発明によるカラーバランス調整
装置を、プリンタ、モニタのような出力装置に設けても
よい。
Further, the color balance adjusting device according to the present invention may be provided in an output device such as a printer or a monitor.

【0047】[0047]

【発明の効果】本発明によれば、対角行列に基づく第1
の変換パラメータによるカラーバランス調整処理と、少
なくとも1つの0でない非対角項を含む非対角行列に基
づく第2の変換パラメータによるカラーバランス調整処
理とを所定の比率により混合した混合処理を画像デー
タ、または所定の光源下において観察することを前提と
したカラーバランス調整処理が施された画像データに施
すことにより、処理済み画像データを得るようにしたも
のである。ここで、第1の変換パラメータによるカラー
バランス調整処理は、対角行列に基づくものであるた
め、カラーバランス調整処理において撮影時の光源と仮
定している光源の白色点と実際の撮影時の光源の白色点
とが若干ずれている場合でも、処理に失敗して不自然な
色を有する画像が得られてしまう可能性は低いが、特殊
な光源下において得られた画像に対しては白色以外の色
が不自然に変換されてしまう。一方、第2の変換パラメ
ータによるカラーバランス調整処理は、撮影時の光源と
仮定している光源の白色点と実際の撮影時の光源の白色
点とが若干ずれていると、処理により得られる画像の色
が不自然なものとなってしまうが、特殊な光源下におい
て得られた画像に対しては白色以外の色も適切な色とな
るように変換を行うことができる。したがって、これら
のカラーバランス調整処理を所定の比率により混合した
混合処理を行うことにより、撮影時の光源と仮定してい
る光源の白色点と実際の撮影時の光源の白色点とが若干
ずれている場合であっても、また、特殊な光源下におい
て得られた画像であっても、さらに所定の光源下におい
て観察することを前提としたカラーバランス調整処理が
施された画像であっても、処理により得られる画像の白
色が色味を帯びることなく、かつ不自然な色を生じさせ
ることなくカラーバランス調整処理を行うことができ
る。
According to the present invention, the first diagonal matrix is used.
And a color balance adjustment process based on a non-diagonal matrix including at least one non-zero diagonal term and a color balance adjustment process based on a non-diagonal matrix including at least one non-diagonal matrix. Alternatively, processed image data is obtained by applying the image data to which color balance adjustment processing has been performed on the assumption that observation is performed under a predetermined light source. Here, since the color balance adjustment processing based on the first conversion parameter is based on a diagonal matrix, the white point of the light source assumed to be a light source during shooting in the color balance adjustment processing and the light source during actual shooting Even if the white point of the image slightly deviates, it is unlikely that the processing will fail and an image having an unnatural color will be obtained. Color is unnaturally converted. On the other hand, in the color balance adjustment processing using the second conversion parameter, if the white point of the light source assumed as the light source at the time of shooting is slightly different from the white point of the light source at the time of actual shooting, an image obtained by the processing is obtained. Is unnatural, but it is possible to convert an image obtained under a special light source so that colors other than white are also appropriate colors. Therefore, by performing a mixing process in which these color balance adjustment processes are mixed at a predetermined ratio, the white point of the light source assumed to be the light source during shooting and the white point of the light source during actual shooting slightly shift. Even if it is, or even an image obtained under a special light source, even if the image has been subjected to a color balance adjustment processing that is further premised on observation under a predetermined light source, The color balance adjustment processing can be performed without causing the white color of the image obtained by the processing to take on a tint and generating an unnatural color.

【0048】また、人間の視覚特性に関連する色空間に
おいて混合処理を行うことにより、人間がものを見た際
に認識する色に基づいてカラーバランス調整処理を行う
ことができるため、見た目の印象に忠実な画像が再現さ
れるようなカラーバランス調整処理を行うことができ
る。
Further, by performing the mixing process in the color space related to the human visual characteristics, the color balance adjustment process can be performed based on the color that a human recognizes when he / she sees the object. A color balance adjustment process that reproduces an image faithful to the image can be performed.

【0049】さらに、画像を撮影した撮影装置の分光特
性に関連する色空間において混合処理を行うことによ
り、デジタルカメラなどの撮影装置において取得された
データに対して何ら色変換を行うことなくカラーバラン
ス調整処理を行うことができるため、装置の構成を簡易
なものとすることができ、かつ処理を高速に行うことが
できる。
Further, by performing a mixing process in a color space related to the spectral characteristic of the photographing device that has photographed the image, the color balance can be obtained without performing any color conversion on the data acquired by the photographing device such as a digital camera. Since the adjustment process can be performed, the configuration of the device can be simplified, and the process can be performed at high speed.

【0050】さらに、所定の比率を撮影光源の指定に応
じて変更することにより、例えば昼光下において撮影を
行うことにより得られた画像、あるいは第2の変換パラ
メータを生成する際に仮定した撮影光源下において撮影
を行うことにより得られた画像については、光源に適し
たカラーバランス調整処理が行えるように混合処理の比
率を変更できるため、より適切なカラーバランス調整処
理を行うことができる。
Further, by changing the predetermined ratio in accordance with the designation of a photographing light source, for example, an image obtained by photographing in daylight or a photographing assumed when the second conversion parameter is generated. For an image obtained by shooting under a light source, the ratio of the mixing process can be changed so that a color balance adjustment process suitable for the light source can be performed, so that a more appropriate color balance adjustment process can be performed.

【0051】[0051]

【発明の実施の形態】以下図面を参照して本発明の実施
形態について説明する。
Embodiments of the present invention will be described below with reference to the drawings.

【0052】図1は本発明の第1の実施形態によるカラ
ーバランス調整装置の構成を示す概略ブロック図であ
る。図1に示すように、本実施形態によるカラーバラン
ス調整装置1は、デジタルカメラ2においてシーンを撮
影することにより取得されたRGB色信号R0,G0,
B0からなる画像データS0に対してカラーバランス調
整処理を施して処理済み画像データS3を得るためのも
のであり、画像データS0が記憶されたメモリカード2
Aから画像データS0を読み出すカードスロット等の読
出手段3と、画像データS0を構成する色信号R0,G
0,B0をLMS色空間における生理原色の三刺激値L
0,M0,S0に変換するLMS変換手段4と、三刺激
値L0,M0,S0に対して第1のカラーバランス調整
処理を施して処理済み三刺激値L1,M1,S1を得る
第1のカラーバランス調整処理手段5と、三刺激値L
0,M0,S0に対して第2のカラーバランス調整処理
を施して処理済み三刺激値L2,M2,S2を得る第2
のカラーバランス調整処理手段6と、処理済み三刺激値
L1,M1,S1と処理済み三刺激値L2,M2,S2
とを重み付け加算して加算三刺激値L3,M3,S3を
得る重み付け加算手段7と、加算三刺激値L3,M3,
S3をRGB色空間の信号に変換して変換済み信号R
3,G3,B3からなる処理済み画像データS3を得る
RGB変換手段8と、第1および第2のカラーバランス
調整処理手段5,6において用いられるカラーバランス
調整処理のためのマトリクスA,Bを、撮影光源の種類
に応じて記憶したデータベース9と、データベース9に
撮影光源種を入力する入力手段10とを備える。
FIG. 1 is a schematic block diagram showing the configuration of the color balance adjusting device according to the first embodiment of the present invention. As shown in FIG. 1, a color balance adjustment device 1 according to the present embodiment includes an RGB color signal R0, G0,
This is for performing color balance adjustment processing on the image data S0 composed of B0 to obtain processed image data S3.
A, reading means 3 such as a card slot for reading image data S0 from A, and color signals R0, G constituting image data S0.
0, B0 is the tristimulus value L of the physiological primary color in the LMS color space
An LMS conversion means 4 for converting the tristimulus values L0, M0, S0, and a first color balance adjustment process on the tristimulus values L0, M0, S0 to obtain processed tristimulus values L1, M1, S1. Color balance adjustment processing means 5 and tristimulus value L
A second color balance adjustment process is performed on 0, M0, and S0 to obtain processed tristimulus values L2, M2, and S2.
Color balance adjustment processing means 6, processed tristimulus values L1, M1, S1 and processed tristimulus values L2, M2, S2
Weighted addition means 7 for obtaining the added tristimulus values L3, M3, S3 by weighting and adding
S3 is converted to a signal in the RGB color space, and the converted signal R
RGB conversion means 8 for obtaining processed image data S3 comprising G3, G3 and B3, and matrices A and B for color balance adjustment processing used in the first and second color balance adjustment processing means 5 and 6, The database 9 includes a database 9 stored according to the type of imaging light source, and input means 10 for inputting the type of imaging light source into the database 9.

【0053】LMS変換手段4は下記のように画像デー
タS0をLMS色空間の三刺激値L0,M0,S0に変
換する。デジタルカメラ2において取得された画像デー
タS0は、ITU Rec.709規格に準拠したRG
B各色8ビットの色信号からなるものであり、LMS変
換手段4は、画像データS0を構成する各色信号R0,
G0,B0を下記の式(4),(5)により0〜1の値
に正規化された色信号R1に変換する。
The LMS conversion means 4 converts the image data S0 into tristimulus values L0, M0, S0 in the LMS color space as described below. The image data S0 acquired by the digital camera 2 is based on ITU Rec. RG conforming to 709 standard
The LMS conversion means 4 is composed of 8-bit color signals for each of the B colors.
G0 and B0 are converted into a color signal R1 normalized to values of 0 to 1 by the following equations (4) and (5).

【0054】[0054]

【数4】 なお、ここでは色信号R1についてのみ説明したが、色
信号G1,B1についても色信号R1と同様の演算によ
り求める。
(Equation 4) Although only the color signal R1 has been described here, the color signals G1 and B1 are obtained by the same calculation as the color signal R1.

【0055】次いで、色信号R1,G1,B1を下記の
式(6)によりCIE1931XYZ三刺激値に変換し
て三刺激値X1,Y1,Z1を得る。
Next, the color signals R1, G1, and B1 are converted into CIE1931XYZ tristimulus values by the following equation (6) to obtain tristimulus values X1, Y1, and Z1.

【0056】[0056]

【数5】 さらに、三刺激値X1,Y1,Z1を下記の式(7)に
より生理原色に基づく三刺激値に変換し、これを画像デ
ータS0により表される画像の生理原色に基づく三刺激
値L0,M0,S0とする。
(Equation 5) Further, the tristimulus values X1, Y1 and Z1 are converted into tristimulus values based on physiological primary colors by the following equation (7), and these are converted into tristimulus values L0 and M0 based on physiological primary colors of the image represented by the image data S0. , S0.

【0057】[0057]

【数6】 第1のカラーバランス調整処理手段5は、下記の式
(8)に示すように三刺激値L0,M0,S0を上記式
(1)に示すvon Kriesの色順応予測式に従ったマトリ
クスAにより変換してカラーバランス調整処理を行っ
て、処理済み三刺激値L1,M1,S1を得る。
(Equation 6) The first color balance adjustment processing means 5 calculates the tristimulus values L0, M0, and S0 by a matrix A according to the von Kries chromatic adaptation prediction equation shown in the above equation (1) as shown in the following equation (8). After conversion, the color balance adjustment processing is performed to obtain processed tristimulus values L1, M1, and S1.

【0058】[0058]

【数7】 第2のカラーバランス調整処理手段6は、下記の式
(9)に示すように三刺激値L0,M0,S0をvon Kr
iesの色順応予測式とは異なる非対角項も0でない値を
有するマトリクスBにより変換してカラーバランス調整
処理を行って、処理済み三刺激値L2,M2,S2を得
る。
(Equation 7) The second color balance adjustment processing means 6 calculates the tristimulus values L0, M0, S0 as von Kr as shown in the following equation (9).
The non-diagonal terms different from the chromatic adaptation prediction formula of ies are converted by a matrix B having a non-zero value to perform color balance adjustment processing to obtain processed tristimulus values L2, M2, and S2.

【0059】[0059]

【数8】 重み付け加算手段7は、処理済み三刺激値L1,M1,
S1と処理済み三刺激値L2,M2,S2とを所定の比
率αにより下記の式(10)に示すように重み付け加算
して加算三刺激値L3,M3,S3を得る。なお、本実
施形態においてはα=0.5とされる。
(Equation 8) The weighting and adding means 7 calculates the processed tristimulus values L1, M1,
S1 and the processed tristimulus values L2, M2, and S2 are weighted and added at a predetermined ratio α as shown in the following equation (10) to obtain added tristimulus values L3, M3, and S3. In this embodiment, α = 0.5.

【0060】[0060]

【数9】 RGB変換手段8は、下記の式(11)に示すように、
式(7)および式(6)を逆に解き、さらに式(4)お
よび式(5)を逆に解くことにより、処理済み画像デー
タS3を構成する処理済み色信号R3,G3,B3を得
る。
(Equation 9) The RGB conversion means 8 calculates, as shown in the following equation (11),
By solving equations (7) and (6) in reverse, and further solving equations (4) and (5) in reverse, processed color signals R3, G3, and B3 constituting processed image data S3 are obtained. .

【0061】[0061]

【数10】 データベース9にはデジタルカメラ2により画像データ
S0を取得した際の撮影光源(以下光源1とする)と、
処理済み画像データS3を観察する際の観察光源(以下
光源2とする)に応じて生成された、von Kriesの色順
応予測式に基づくマトリクスAおよび非対角項も0でな
い値を有するマトリクスBを複数記憶してなるものであ
る。以下、マトリクスA,Bの作成方法について説明す
る。まず、von Kriesの色順応予測式に基づくマトリク
スAの作成方法について説明する。
(Equation 10) The database 9 includes a photographing light source (hereinafter, referred to as a light source 1) when the image data S0 is acquired by the digital camera 2,
A matrix A based on the von Kries chromatic adaptation prediction formula and a matrix B having non-diagonal non-zero values, which are generated according to an observation light source (hereinafter, light source 2) when observing the processed image data S3. Are stored. Hereinafter, a method of creating the matrices A and B will be described. First, a method of creating the matrix A based on the von Kries color adaptation prediction formula will be described.

【0062】まず、光源1下において撮影を行うことに
より画像データS11を得、この画像データS11を構
成する色信号R11,G11,B11を上記式(4)、
(5)により変換して正規化した信号R11′,G1
1′,B11′を得る。そして、画像データS11によ
り表される画像の全画素数Nを用いて、下記の式(1
2)により色信号R11′,G11′,B11′の平均
値Rm11,Gm11,Bm11を算出する。
First, image data S11 is obtained by photographing under the light source 1, and the color signals R11, G11, B11 constituting the image data S11 are obtained by the above equation (4).
Signals R11 'and G1 converted and normalized by (5)
1 'and B11' are obtained. Then, using the total number N of pixels of the image represented by the image data S11, the following expression (1)
The average values Rm11, Gm11, Bm11 of the color signals R11 ', G11', B11 'are calculated according to 2).

【0063】[0063]

【数11】 そして、算出された平均値Rm11,Gm11,Bm1
1を上記式(6)によりCIE1931XYZ三刺激値
に変換し、これを画像データS11により表される画像
における白色点の三刺激値X11w,Y11w,Z
11wとする。さらに、三刺激値X11w,Y11w
11wを上記式(7)により生理原色に基づく三刺激
値に変換し、これを光源1の白色点の生理原色に基づく
三刺激値L 1w,M11w,S11wとする。
[Equation 11] Then, the calculated average values Rm11, Gm11, Bm1
1 is converted into CIE1931XYZ tristimulus values by the above equation (6), and these are converted into tristimulus values X 11w , Y 11w , Z of a white point in the image represented by the image data S11.
11w . Further, tristimulus values X 11w , Y 11w ,
The Z 11 w converted to tristimulus values based on the physiological primary colors according to the above equation (7), which tristimulus values L 1 1 w based on the physiological primary colors of the white point of the light source 1, M 11 w, and S 11 w.

【0064】同様に、光源2下において撮影を行うこと
により画像データS12を得、これから上記と同様にし
て光源2の白色点の生理原色に基づく三刺激値
12w,M 12w,S12wを得る。
Similarly, photographing under the light source 2
To obtain image data S12.
Stimulus value based on the physiological primary color of the white point of light source 2
L12w, M 12w, S12wGet.

【0065】そして、各光源1,2の白色点の生理原色
に基づく三刺激値L11w,M11 ,S11w、L
12w,M12w,S12wから上記式(1)に示すマ
トリクスを求め、これをvon Kriesの色順応予測式に基
づくマトリクスAとする。
[0065] Then, the tristimulus values L 11 w based on the physiological primary colors of the white point of the light sources 1,2, M 11 w, S 11w , L
12w, M 12w, seek matrix shown in the equation (1) from S 12w, which is a matrix A based on the color adaptation prediction equation of von Kries.

【0066】次いで、非対角項も0でない値を有するマ
トリクスBの作成方法について説明する。自然界の物体
の分光反射率は3つの主成分により代表できることが一
般的に知られている。したがって、撮影した物体の分光
反射率は、3つの主成分x(λ),x(λ),x
(λ)(λ:スペクトル周波数)の線形結合として下記
の式(13)に示すように表すことができる。
Next, a method of creating a matrix B having non-diagonal terms having values other than 0 will be described. It is generally known that the spectral reflectance of an object in the natural world can be represented by three main components. Therefore, the spectral reflectance of the photographed object is determined by three principal components x 1 (λ), x 2 (λ), and x 3
It can be expressed as the following equation (13) as a linear combination of (λ) (λ: spectral frequency).

【0067】[0067]

【数12】 但し、a,a,aは各主成分を重み付け加算する
際の重みである。
(Equation 12) Here, a 1 , a 2 , and a 3 are weights at the time of weighting and adding each principal component.

【0068】光源1の分光放射分布をF(λ)とし、三
刺激値のL−cone,M−cone,S−coneを
それぞれ
Let F (λ) be the spectral radiation distribution of the light source 1, and let L-cone, M-cone and S-cone of the tristimulus values be respectively

【数13】 となる。なお、式(14)〜(16)において積分は可
視領域の積分であるが、全スペクトル領域において積分
を行ってもよい。ここで、光源1の分光放射分布F
(λ)、各主成分x(λ),x(λ),x(λ)
および
(Equation 13) Becomes In addition, although the integration in Equations (14) to (16) is integration in the visible region, integration may be performed in the entire spectral region. Here, the spectral radiation distribution F of the light source 1
(Λ), each principal component x 1 (λ), x 2 (λ), x 3 (λ)
and

【数14】 のように置き換えると、光源1下において分光反射率x
(λ)の物体を見たときのLMS三刺激値は、
[Equation 14] Can be expressed as follows, the spectral reflectance x under the light source 1
The LMS tristimulus value when looking at the object of (λ) is

【数15】 となる。同様に、光源2下において分光反射率x(λ)
の物体を見たときのLMS三刺激値は、
(Equation 15) Becomes Similarly, the spectral reflectance x (λ) under the light source 2
The LMS tristimulus value when looking at the object of

【数16】 となる。式(18)および(19)からa,a,a
を消去すると、
(Equation 16) Becomes From equations (18) and (19), a 1 , a 2 , a
If you delete 3 ,

【数17】 となり、光源1下におけるLMS三刺激値(yとす
る)から光源2下におけるLMS三刺激値(yとす
る)への変換は、式(20)より、
[Equation 17] Next, converting the LMS tristimulus values under the light source 1 from (a y 1) LMS tristimulus values under the light source 2 (the y 2) is the equation (20),

【数18】 のように非対角項も0でない値を有する3×3のマトリ
クスP −1により行うことができる。よって、こ
のようにして求められたマトリクスP −1をマト
リクスBとする。
(Equation 18) It can be carried out by the matrix P 2 P 1 -1 of 3 × 3 having a non-diagonal terms also non-zero value as. Thus, the matrix P 2 P 1 -1 obtained in this way a matrix B.

【0069】そして、種々の撮影光源および観察光源に
ついて複数のマトリクスA,Bを算出し、これをデータ
ベース9に記憶する。データベース9に記憶されるマト
リクスA,Bの例を下記に示す。ここでは、撮影光源を
昼白色蛍光灯(相関色温度5000K)、昼光色蛍光灯
(相関色温度6500K)とし、処理済み画像データS
3をプリント出力するものと想定して、観察光源はCI
E−D50とする。なお、処理済み画像データS3をモ
ニタに再生する場合はCIE−D65である。また、本
実施形態において観察光源はCIE−D50に固定し、
観察光源をCIE−D50として生成されたマトリクス
A,Bがデータベース9に記憶されているものとする。
Then, a plurality of matrices A and B are calculated for various photographing light sources and observation light sources, and these are stored in the database 9. Examples of the matrices A and B stored in the database 9 are shown below. Here, the shooting light source is a daylight white fluorescent lamp (correlated color temperature 5000K) and a daylight fluorescent lamp (correlated color temperature 6500K), and the processed image data S
3 is assumed to be printed out, and the observation light source is CI
E-D50. In the case where the processed image data S3 is reproduced on a monitor, CIE-D65 is used. In this embodiment, the observation light source is fixed to CIE-D50,
It is assumed that the matrices A and B generated using the observation light source as CIE-D50 are stored in the database 9.

【0070】[0070]

【数19】 なお、例えばマンセルカラーチップ中の1269色のよ
うに多数色の分光反射率データを用いて、光源1下およ
び光源2下におけるLMS三刺激値を求め、最小二乗法
などによって三刺激値yを三刺激値yに変換するた
めのマトリクスをマトリクスBとして求めるようにして
もよい。
[Equation 19] Incidentally, for example, using a number color spectral reflectance data as 1269 colors in Munsell color chips, seek LMS tristimulus values 1 below and the light source 2 below the light source, the tristimulus values y 1 by a least square method the matrix to convert the tristimulus value y 2 may be obtained as a matrix B.

【0071】また、光源1の白色が光源2の白色に変換
されるように、マトリクスを決定することもできる。こ
れはまず、上記マンセルカラーチップのような多数色の
分光反射率データを用いて、光源1下および光源2下に
おけるLMS三刺激値を求め、最小二乗法などによって
三刺激値yを三刺激値yに変換するためのマトリク
スを求める。この際、光源1における白色が光源2の白
色に変換されるよう、下記の式(22)に示すように、
求めるマトリクスをvon Kriesの色順応予測式に基づく
マトリクスVと、三刺激値yに垂直なマトリクスV
′とに分解してマトリクスV,V′を求める。
The matrix can be determined so that the white color of the light source 1 is converted to the white color of the light source 2. It first uses multiple color spectral reflectance data, such as the Munsell color chips, seek LMS tristimulus values under and the light source 2 below the light source 1, the tristimulus tristimulus values y 1 by a least square method Request matrix for converting the value y 2. At this time, as shown in the following equation (22), the white color of the light source 1 is converted to the white color of the light source 2
A matrix V 1 based matrix for obtaining the chromatic adaptation prediction equation of von Kries, perpendicular to the tristimulus values y 1 matrix V
1 ′ to obtain matrices V 1 and V 1 ′.

【0072】 y=(V+V′)y (22) 但し、V′y=0 この場合、 P −1=V+V′ (23) となる。このように、光源1の白色が光源2の白色に変
換されるように、マトリクスを決定することにより、光
源1下における白色と光源2下における白色とを一致さ
せることができるため、より好ましい。
[0072] y 2 = (V 1 + V 1 ') y 1 (22) where, V 1' y 1 = 0 In this case, the P 2 P 1 -1 = V 1 + V 1 '(23). By determining the matrix such that the white color of the light source 1 is converted to the white color of the light source 2, the white color under the light source 1 and the white color under the light source 2 can be matched, which is more preferable.

【0073】入力手段10は、撮影光源の情報をデータ
ベース9に入力するためのものであり、キーボード、光
源を指定するキー等からなるものである。データベース
9は入力手段10から入力された撮影光源の種類に応じ
て、マトリクスA,Bを読み出して第1および第2のカ
ラーバランス調整手段5,6に入力する。また、撮影時
に画像データS0に撮影光源に関する情報を付与してお
き、メモリカード2Aからの画像データS0の読み出し
時にこの情報も読み出し、これを入力手段10を介して
データベース9に入力してもよい。この場合、データベ
ース9においては入力された情報に基づいてマトリクス
A,Bが読み出されることとなる。
The input means 10 is for inputting information on the photographing light source to the database 9, and comprises a keyboard, keys for designating the light source, and the like. The database 9 reads out the matrices A and B according to the type of the imaging light source input from the input unit 10 and inputs the matrices A and B to the first and second color balance adjusting units 5 and 6. In addition, information regarding the photographing light source may be added to the image data S0 at the time of photographing, and this information may also be read at the time of reading the image data S0 from the memory card 2A, and may be input to the database 9 via the input means 10. . In this case, the matrices A and B are read from the database 9 based on the input information.

【0074】次いで、本実施形態の動作について説明す
る。図2は第1の実施形態の動作を示すフローチャート
である。まず、デジタルカメラ2において撮影が行われ
て画像データS0が記憶されたメモリカード2Aから、
読出手段3において画像データS0が読み出される(ス
テップS1)。そして、LMS変換手段4において画像
データS0を構成する色信号R0,G0,B0が生理原
色に基づく三刺激値L0,M0,S0に変換される(ス
テップS2)。一方、入力手段10から入力された撮影
光源種に応じて、マトリクスA,Bがデータベース9か
ら読み出されて第1および第2のカラーバランス調整手
段5,6に入力される(ステップS3)。
Next, the operation of this embodiment will be described. FIG. 2 is a flowchart showing the operation of the first embodiment. First, from the memory card 2A in which image data S0 is stored by photographing in the digital camera 2,
The image data S0 is read by the reading means 3 (step S1). Then, the LMS conversion means 4 converts the color signals R0, G0, B0 constituting the image data S0 into tristimulus values L0, M0, S0 based on physiological primary colors (step S2). On the other hand, the matrices A and B are read from the database 9 and input to the first and second color balance adjusting means 5 and 6 in accordance with the type of imaging light source input from the input means 10 (step S3).

【0075】三刺激値L0,M0,S0は第1および第
2のカラーバランス調整手段5,6に入力され、ここで
それぞれマトリクスA,Bによるカラーバランス調整処
理が施されて、処理済み三刺激値L1,M1,S1、L
2,M2,S2が得られる(ステップS4)。処理済み
三刺激値L1,M1,S1、L2,M2,S2は重み付
け加算手段7に入力され、ここで重み付け加算がなされ
て加算三刺激値L3,M3,S3が得られる(ステップ
S5)。加算三刺激値L3,M3,S3はRGB変換手
段8においてRGB色空間に変換されて処理済み画像デ
ータS3が得られ(ステップS6)、処理を終了する。
The tristimulus values L0, M0, S0 are input to first and second color balance adjusting means 5, 6, where color balance adjustment processing is performed by matrices A and B, respectively, and the processed tristimulus values are processed. Values L1, M1, S1, L
2, M2 and S2 are obtained (step S4). The processed tristimulus values L1, M1, S1, L2, M2, and S2 are input to the weighting and adding means 7, where weighted addition is performed to obtain added tristimulus values L3, M3, and S3 (step S5). The added tristimulus values L3, M3, and S3 are converted into the RGB color space by the RGB conversion means 8 to obtain processed image data S3 (step S6), and the process ends.

【0076】ここで、第1のカラーバランス調整手段5
におけるマトリクスAによるカラーバランス調整処理
は、von Kriesの色順応予測式に基づくものであるた
め、カラーバランス調整処理において撮影時の光源と仮
定している光源の白色点と実際の撮影時の光源の白色点
とが若干ずれている場合でも、処理に失敗して不自然な
色を有する画像が得られてしまう可能性は低いが、蛍光
灯のような特殊な光源下において得られた画像に対して
は白色以外の色が不自然に変換されてしまう。一方、第
2のカラーバランス調整手段6におけるマトリクスBに
よるカラーバランス調整処理は、撮影時の光源と仮定し
ている光源の白色点と実際の撮影時の光源の白色点とが
若干ずれていると、処理により得られる画像の色が不自
然なものとなってしまうが、特殊な光源下において得ら
れた画像に対しては白色以外の色も適切な色となるよう
に変換を行うことができる。したがって、第1の実施形
態のように、第1のカラーバランス調整手段5において
得られる三刺激値L1,M1,S1と第2のカラーバラ
ンス調整手段6において得られる三刺激値L2,M2,
S2とを、所定の比率αにより重み付け加算することに
より、撮影時の光源と仮定している光源の白色点と実際
の撮影時の光源の白色点とが若干ずれている場合であっ
ても、また、特殊な光源下において得られた画像であっ
ても、処理済み画像データS3により表される画像の白
色が色味を帯びることなく、かつ不自然な色を生じさせ
ることなくカラーバランス調整処理を行うことができ
る。
Here, the first color balance adjusting means 5
Since the color balance adjustment processing by the matrix A in the above is based on the von Kries color adaptation prediction formula, the white point of the light source assumed to be a light source at the time of shooting in the color balance adjustment processing and the light source at the time of actual shooting Even when the white point is slightly deviated, it is unlikely that the processing will fail and an image having an unnatural color will be obtained, but the image obtained under a special light source such as a fluorescent light is In some cases, colors other than white are unnaturally converted. On the other hand, in the color balance adjustment processing using the matrix B in the second color balance adjustment means 6, the white point of the light source assumed to be the light source at the time of shooting and the white point of the light source at the time of actual shooting slightly differ. Although the color of the image obtained by the processing becomes unnatural, the image obtained under a special light source can be converted so that colors other than white are also appropriate colors. . Therefore, as in the first embodiment, the tristimulus values L1, M1, and S1 obtained by the first color balance adjusting unit 5 and the tristimulus values L2, M2, and S2 obtained by the second color balance adjusting unit 6 are used.
By weighting and adding S2 with a predetermined ratio α, even when the white point of the light source assumed to be the light source at the time of shooting and the white point of the light source at the time of actual shooting are slightly different, Further, even if the image is obtained under a special light source, the color balance adjustment processing is performed without causing the white color of the image represented by the processed image data S3 to take on a tint and generating an unnatural color. It can be performed.

【0077】また、人間の視覚特性に関連する色空間で
あるLMS色空間においてカラーバランス調整処理を行
っているため、人間がものを見た際に認識する色に基づ
いてカラーバランス調整を行うことができ、これによ
り、見た目の印象に忠実な画像が再現されるようなカラ
ーバランス調整処理を行うことができる。
Further, since the color balance adjustment processing is performed in the LMS color space, which is a color space related to human visual characteristics, it is necessary to perform color balance adjustment based on the color that a human recognizes when looking at an object. As a result, it is possible to perform a color balance adjustment process such that an image faithful to a visual impression is reproduced.

【0078】次いで、本発明の第2の実施形態について
説明する。図3は本発明の第2の実施形態によるカラー
バランス調整装置の構成を示す概略ブロック図である。
なお、第2の実施形態において、第1の実施形態と同一
の構成については同一の参照番号を付し、詳細な説明は
省略する。第2の実施形態によるカラーバランス調整装
置1は、第1および第2のカラーバランス調整手段5,
6および重み付け加算手段7に代えて、データベース9
から読み出されたマトリクスA,Bを重み付け加算して
加算マトリクスM0を得る重み付け加算手段7′と、L
MS変換手段4において得られた三刺激値L0,M0,
S0に対して加算マトリクスM0によってカラーバラン
ス調整処理を施して処理済み三刺激値L4,M4,S4
を得るカラーバランス調整手段11とを備えた点が第1
の実施形態と異なるものである。
Next, a second embodiment of the present invention will be described. FIG. 3 is a schematic block diagram illustrating a configuration of a color balance adjustment device according to a second embodiment of the present invention.
In the second embodiment, the same components as those in the first embodiment are denoted by the same reference numerals, and the detailed description is omitted. The color balance adjustment device 1 according to the second embodiment includes first and second color balance adjustment units 5,
6 and the weighting and adding means 7,
Weighting and adding means 7 'for obtaining the addition matrix M0 by weighting and adding the matrices A and B read from
The tristimulus values L0, M0,
S0 is subjected to color balance adjustment processing by the addition matrix M0, and processed tristimulus values L4, M4, S4
Is that the color balance adjusting means 11 for obtaining
This is different from the embodiment.

【0079】重み付け加算手段7′は下記の式(24)
によりマトリクスA,Bを重み付け加算して加算マトリ
クスM0を得る。
The weighting and adding means 7 'is calculated by the following equation (24).
To obtain an addition matrix M0.

【0080】M0=αA+(1−α)B (24) カラーバランス調整手段11は、下記の式(25)に示
すように三刺激値L0,M0,S0を加算マトリクスM
0により変換してカラーバランス調整処理を行って、処
理済み三刺激値L4,M4,S4を得る。
M0 = αA + (1−α) B (24) The color balance adjusting means 11 calculates the tristimulus values L0, M0, S0 as an addition matrix M as shown in the following equation (25).
By performing conversion by 0, color balance adjustment processing is performed to obtain processed tristimulus values L4, M4, and S4.

【0081】[0081]

【数20】 なお、第1の実施形態におけるマトリクスA,Bと第2
の実施形態におけるマトリクスA,Bとが同一であれ
ば、式(25)により得られる処理済み三刺激値L4,
M4,S4と加算三刺激値L3,M3,S3とは同一の
ものとなる。したがって、RGB変換手段8において得
られる処理済み画像データは第1の実施形態と同一のも
のとなるため、第2の実施形態における処理済み画像デ
ータについては、第1の実施形態と同様に参照符号S3
を用いるものとする。
(Equation 20) Note that the matrices A and B in the first embodiment are
If the matrices A and B are the same, the processed tristimulus values L4 and
M4, S4 and the added tristimulus values L3, M3, S3 are the same. Therefore, the processed image data obtained by the RGB conversion means 8 is the same as that of the first embodiment. Therefore, the processed image data of the second embodiment is denoted by the same reference numerals as in the first embodiment. S3
Shall be used.

【0082】次いで、第2の実施形態の動作について説
明する。図4は第2の実施形態の動作を示すフローチャ
ートである。まず、デジタルカメラ2において撮影が行
われて画像データS0が記憶されたメモリカード2Aか
ら、読出手段3において画像データS0が読み出される
(ステップS11)。そして、LMS変換手段4におい
て画像データS0を構成する色信号R0,G0,B0が
生理原色に基づく三刺激値L0,M0,S0に変換され
る(ステップS12)。一方、入力手段10から入力さ
れた撮影光源種に応じて、マトリクスA,Bがデータベ
ース9から読み出され(ステップS13)、重み付け加
算手段7′において重み付け加算されて加算マトリクス
M0が得られる(ステップS14)。なお、ステップS
13,S14の処理をステップS11,S12より先に
行ってもよく、これらを並列して行ってもよい。
Next, the operation of the second embodiment will be described. FIG. 4 is a flowchart showing the operation of the second embodiment. First, the image data S0 is read out by the reading means 3 from the memory card 2A in which image data S0 is stored by photographing in the digital camera 2 (step S11). Then, the LMS conversion means 4 converts the color signals R0, G0, B0 constituting the image data S0 into tristimulus values L0, M0, S0 based on physiological primary colors (step S12). On the other hand, the matrices A and B are read from the database 9 in accordance with the type of the imaging light source input from the input means 10 (step S13), and weighted and added by the weighting and adding means 7 'to obtain an addition matrix M0 (step S13). S14). Step S
Steps S13 and S14 may be performed before steps S11 and S12, or they may be performed in parallel.

【0083】加算マトリクスM0はカラーバランス調整
手段11に入力され、ここで三刺激値L0,M0,S0
に対して加算マトリクスM0によるカラーバランス調整
処理が施されて、処理済み三刺激値L4,M4,S4が
得られる(ステップS15)。処理済み三刺激値L4,
M4,S4はRGB変換手段8においてRGB色空間に
変換されて処理済み画像データS3が得られ(ステップ
S16)、処理を終了する。
The addition matrix M0 is input to the color balance adjusting means 11, where the tristimulus values L0, M0, S0
Is subjected to color balance adjustment processing by the addition matrix M0, and processed tristimulus values L4, M4, and S4 are obtained (step S15). Treated tristimulus value L4
M4 and S4 are converted to the RGB color space by the RGB conversion means 8 to obtain processed image data S3 (step S16), and the process is terminated.

【0084】このように、第2の実施形態においては、
マトリクスA,Bを、所定の比率αにより重み付け加算
して加算マトリクスM0を得、この加算マトリクスM0
によりカラーバランス調整を行うようにしたため、撮影
時の光源と仮定している光源の白色点と実際の撮影時の
光源の白色点とが若干ずれている場合であっても、ま
た、特殊な光源下において得られた画像であっても、処
理済み画像データS3により表される画像の白色が色味
を帯びることなく、かつ不自然な色を生じさせることな
くカラーバランス調整処理を行うことができる。
As described above, in the second embodiment,
The matrices A and B are weighted and added by a predetermined ratio α to obtain an addition matrix M0.
The color balance adjustment is performed by using a special light source even if the white point of the light source assumed to be the light source at the time of shooting is slightly different from the white point of the light source at the time of actual shooting. Even for the image obtained below, the color balance adjustment processing can be performed without causing the white color of the image represented by the processed image data S3 to take on a tint and generating an unnatural color. .

【0085】なお、上記第1の実施形態における、式
(4)、(5)による色信号R0,G0,B0を正規化
する変換を変換X、式(6)による三刺激値X1,Y
1,Z1への変換を変換Y、式(7)による生理原色に
基づく三刺激値L0,M0,S0への変換を変換Z、第
1のカラーバランス調整手段5におけるマトリクスAに
よる変換を変換A、第2のカラーバランス調整手段6に
おけるマトリクスBによる変換を変換Bとすると、画像
データS0の入力から処理済み画像データS3の出力ま
での系は図5のように表すことができる。この系におけ
る変換は下記の式(26)に示すように1つの式で表す
ことができる。
In the first embodiment, the conversion for normalizing the color signals R0, G0 and B0 according to the equations (4) and (5) is the conversion X, and the tristimulus values X1 and Y according to the equation (6).
1, conversion to Z1; conversion to tristimulus values L0, M0, S0 based on physiological primary colors according to equation (7); conversion to matrix A in first color balance adjustment means 5; Assuming that the conversion by the matrix B in the second color balance adjusting means 6 is conversion B, the system from the input of the image data S0 to the output of the processed image data S3 can be represented as shown in FIG. The conversion in this system can be represented by one equation as shown in the following equation (26).

【0086】 X−1−1−1(αA+(1−α)B)ZYX (26) また、この式(26)は下記の式(27)に示すように
変形することができる。
X -1 Y -1 Z -1 (αA + (1-α) B) ZYX (26) Further, this equation (26) can be modified as shown in the following equation (27).

【0087】 X−1(αY−1−1AZY+(1−α)Y−1−1BZY)X ( 27) ここで変換Y,Z,A,Bを行うのは3×3のマトリク
スである。したがって、第1の実施形態によるカラーバ
ランス調整装置1は図6に示すように構成を変更するこ
とができる。以下これを第3の実施形態として説明す
る。
X −1 (αY −1 Z −1 AZY + (1−α) Y −1 Z −1 BZY) X (27) Here, the conversion Y, Z, A, and B are performed in a 3 × 3 matrix. It is. Therefore, the configuration of the color balance adjustment device 1 according to the first embodiment can be changed as shown in FIG. Hereinafter, this will be described as a third embodiment.

【0088】図6に示すように第3の実施形態によるカ
ラーバランス調整装置は、第1の実施形態と同様の読出
手段3、第1のカラーバランス調整手段5、第2のカラ
ーバランス調整手段6、重み付け加算手段7、データベ
ース9および入力手段10と、画像データS0を構成す
るITU Rec709規格に準拠した色信号R0,G
0,B0を正規化して色信号R1,G1,B1を得る正
規化手段12と、後述するように重み付け加算手段7に
おいて得られた色信号R6,G6,B6をRec709
規格に準拠した色信号R7,G7,B7に変換するRG
B変換手段13とを備え、データベース9にはマトリク
スA,Bに代えてマトリクスY−1 AZYおよび
−1−1BZYを記憶し、第1および第2のカラー
バランス調整手段5,6においては、これらのマトリク
スY−1−1AZYおよびY −1BZYに基づ
いて色信号R1,G1,B1に対してカラーバランス調
整処理を行うようにしたものである。
As shown in FIG. 6, the color balance adjusting device according to the third embodiment has the same readout means 3, first color balance adjusting means 5, and second color balance adjusting means 6 as in the first embodiment. , Weighting and adding means 7, database 9 and input means 10, and color signals R0, G based on ITU Rec 709 standard constituting image data S0.
Normalizing means 12 for normalizing 0 and B0 to obtain color signals R1, G1 and B1, and color signals R6, G6 and B6 obtained by weighting and adding means 7 as described later in Rec 709.
RG for converting into color signals R7, G7, B7 conforming to the standard
And a B conversion unit 13, a matrix Y -1 Z instead of the matrix A, B in the database 9 - stores 1 Azy and Y -1 Z -1 BZY, first and second color balance adjustment means 5 in the 6, these matrix Y -1 Z -1 AZY and Y - is obtained to perform color balance adjustment processing on the color signals R1, G1, B1 based on 1 Z -1 BZY.

【0089】正規化手段12においては、上記式
(4),(5)に示すように色信号R0,G0,B0を
正規化して正規化された色信号R1,G1,B1が得ら
れる。
The normalizing means 12 normalizes the color signals R0, G0, B0 as shown in the above equations (4), (5) to obtain normalized color signals R1, G1, B1.

【0090】第1のカラーバランス調整処理手段5にお
いては、下記の式(28)に示すようにマトリクスY
−1−1AZYによって色信号R1,G1,B1を変
換することによりカラーバランス調整処理が行われて、
処理済み色信号R4,G4,B4が得られる。なお、第
3の実施形態においては、マトリクスY−1−1AZ
Yは非対角項も0でない値を有するものである。
In the first color balance adjustment processing means 5, as shown in the following equation (28), the matrix Y
The color balance adjustment processing is performed by converting the color signals R1, G1, and B1 using -1Z- 1 AZY.
The processed color signals R4, G4, B4 are obtained. In the third embodiment, the matrix Y -1 Z -1 AZ
Y is a non-diagonal term having a non-zero value.

【0091】[0091]

【数21】 第2のカラーバランス調整処理手段6においては、下記
の式(29)に示すようにマトリクスY−1−1BZ
Yによって色信号R1,G1,B1を変換することによ
りカラーバランス調整処理が行われて、処理済み色信号
R5,G5,B5が得られる。
(Equation 21) In the second color balance adjustment processing means 6, as shown in the following equation (29), the matrix Y -1 Z -1 BZ
The color balance adjustment processing is performed by converting the color signals R1, G1, and B1 by Y, and processed color signals R5, G5, and B5 are obtained.

【0092】[0092]

【数22】 重み付け加算手段7においては、処理済み色信号R4,
G4,B4と処理済み色信号R5,G5,B5とが所定
の比率αにより下記の式(30)に示すように重み付け
加算されて加算色信号R6,G6,B6が得られる。
(Equation 22) In the weighting and adding means 7, the processed color signal R4,
G4, B4 and the processed color signals R5, G5, B5 are weighted and added at a predetermined ratio α as shown in the following equation (30) to obtain added color signals R6, G6, B6.

【0093】[0093]

【数23】 RGB変換手段14においては、加算色信号R6,G
6,B6に対して上記式(4)、(5)とは逆の処理が
行われてRec709規格に準拠した色信号R7,G
7,B7が得られる。なお、ここで色信号R7,G7,
B7は、第1の実施形態において得られる色信号R3,
G3,B3と同一のものとなるため、色信号R7,G
7,B7からなる処理済み画像データとしては第1の実
施形態と同様に参照符号S3を用いるものとする。
(Equation 23) In the RGB conversion means 14, the added color signals R6, G
6, B6 are processed in a manner opposite to the above equations (4) and (5), and the color signals R7, G conforming to the Rec709 standard.
7, B7 are obtained. Here, the color signals R7, G7,
B7 is a color signal R3 obtained in the first embodiment.
G3 and B3, so that the color signals R7 and G3
The reference numeral S3 is used as the processed image data composed of 7 and B7 as in the first embodiment.

【0094】次いで、第3の実施形態の動作について説
明する。図7は第3の実施形態の動作を示すフローチャ
ートである。まず、デジタルカメラ2において撮影が行
われて画像データS0が記憶されたメモリカード2Aか
ら、読出手段3において画像データS0が読み出される
(ステップS21)。そして、正規化手段12において
画像データS0を構成する色信号R0,G0,B0が正
規化されて正規化された色信号R1,G1,B1が得ら
れる(ステップS22)。一方、入力手段10から入力
された撮影光源種に応じて、マトリクスY−1−1
ZYおよびY −1BZYがデータベース9から読
み出されて第1および第2のカラーバランス調整手段
5,6に入力される(ステップS23)。
Next, the operation of the third embodiment will be described. FIG. 7 is a flowchart showing the operation of the third embodiment. First, the image data S0 is read by the reading means 3 from the memory card 2A in which the image is taken by the digital camera 2 and the image data S0 is stored (step S21). Then, the color signals R0, G0, B0 constituting the image data S0 are normalized by the normalizing means 12 to obtain normalized color signals R1, G1, B1 (step S22). On the other hand, according to the imaging light source type input from the input unit 10, the matrix Y - 1Z - 1A
ZY and Y - 1 Z -1 BZY is input to the first and second color balance adjustment means 5, 6 is read from the database 9 (Step S23).

【0095】色信号R1,G1,B1は第1および第2
のカラーバランス調整手段5,6に入力され、ここでそ
れぞれマトリクスY−1−1AZYおよびY−1
−1BZYによるカラーバランス調整処理が施されて、
処理済み色信号R4,G4,B4、R5,G5,B5が
得られる(ステップS24)。処理済み色信号R4,G
4,B4、R5,G5,B5は重み付け加算手段7に入
力され、ここで重み付け加算がなされて加算色信号R
6,G6,B6が得られる(ステップS25)。加算色
信号R6,G6,B6はRGB変換手段13においてI
TU Rec709規格に準拠した色信号R7,G7,
B7に変換されて処理済み画像データS3が得られ(ス
テップS26)、処理を終了する。
The color signals R1, G1, and B1 are the first and second color signals.
Is input to the color balance adjustment means 5 and 6, wherein each matrix Y -1 Z -1 AZY and Y -1 Z
-1 The color balance adjustment processing by BZY is performed,
The processed color signals R4, G4, B4, R5, G5, B5 are obtained (step S24). Processed color signals R4, G
4, B4, R5, G5, and B5 are input to weighting and adding means 7, where weighted addition is performed, and the added color signal R
6, G6, and B6 are obtained (step S25). The added color signals R6, G6, and B6 are converted by the RGB conversion means 13 into I
Color signals R7, G7, compliant with TU Rec 709 standard
The processed image data S3 is obtained by conversion to B7 (step S26), and the processing is terminated.

【0096】一方、第2の実施形態によるカラーバラン
ス調整装置1は図8に示すように構成を変更することが
できる。以下これを第4の実施形態として説明する。
On the other hand, the configuration of the color balance adjusting device 1 according to the second embodiment can be changed as shown in FIG. Hereinafter, this will be described as a fourth embodiment.

【0097】図8に示すように第4の実施形態によるカ
ラーバランス調整装置は、第2の実施形態と同様の読出
手段3、カラーバランス調整手段11、重み付け加算手
段7′、データベース9および入力手段10と、第3の
実施形態と同様の正規化手段12およびRGB変換手段
13とを備え、データベース9には第3の実施形態と同
様にマトリクスA,Bに代えてマトリクスY−1−1
AZYおよびY−1 −1BZYを記憶し、重み付け加
算手段7′においては、これらのマトリクスY −1
−1AZYおよびY−1−1BZYを重み付け加算し
て加算マトリクスM1を得るようにしたものである。
As shown in FIG. 8, the camera according to the fourth embodiment
The balance adjustment device performs the same readout as in the second embodiment.
Means 3, color balance adjusting means 11, weighting and adding means
Step 7 ', database 9 and input means 10, and a third
Normalization means 12 and RGB conversion means similar to the embodiment
13 and the database 9 has the same configuration as the third embodiment.
Matrix A instead of matrices A and B-1Z-1
AZY and Y-1Z -1BZY is stored and weighted
In the calculating means 7 ', these matrices Y -1Z
-1AZY and Y-1Z-1BZY is weighted and added
Thus, an addition matrix M1 is obtained.

【0098】なお、第3の実施形態と第4の実施形態と
において、マトリクスY−1−1AZYおよびY−1
−1BZYが同一であれば、カラーバランス調整処理
手段11において得られる処理済み色信号と第3の実施
形態における加算色信号R6,G6,B6とは同一のも
のとなり、RGB変換手段13において得られる色信号
からなる処理済み画像データも同一のものとなる。した
がって、第4の実施形態においては、第3の実施形態と
同様にカラーバランス調整処理手段11において得られ
る処理済み色信号について参照符号R6,G6,B6
を、RGB変換手段13において得られる色信号につい
て参照符号R7,G7,B7を、処理済み画像データに
ついて参照符号S3を用いるものとする。
In the third and fourth embodiments, the matrices Y −1 Z −1 AZY and Y −1
If Z −1 BZY is the same, the processed color signal obtained by the color balance adjustment processing unit 11 and the added color signals R6, G6, and B6 in the third embodiment are the same, and the RGB conversion unit 13 The processed image data composed of the obtained color signals is also the same. Therefore, in the fourth embodiment, the processed color signals obtained by the color balance adjustment processing unit 11 are denoted by reference numerals R6, G6, and B6, similarly to the third embodiment.
Is used for the color signals obtained by the RGB conversion means 13, and the reference sign S3 is used for the processed image data.

【0099】次いで、第4の実施形態の動作について説
明する。図9は第4の実施形態の動作を示すフローチャ
ートである。まず、デジタルカメラ2において撮影が行
われて画像データS0が記憶されたメモリカード2Aか
ら、読出手段3において画像データS0が読み出される
(ステップS31)。そして、正規化手段12において
画像データS0を構成する色信号R0,G0,B0が正
規化されて正規化された色信号R1,G1,B1が得ら
れる(ステップS32)。一方、入力手段10から入力
された撮影光源種に応じて、マトリクスY−1−1
ZYおよびY −1BZYがデータベース9から読
み出され(ステップS33)、重み付け加算手段7′に
おいて重み付け加算されて加算マトリクスM1が得られ
る(ステップS34)。なお、ステップS33,S34
の処理をステップS31,S32より先に行ってもよ
く、これらを並列して行ってもよい。
Next, the operation of the fourth embodiment will be described. FIG. 9 is a flowchart showing the operation of the fourth embodiment. First, the image data S0 is read by the reading means 3 from the memory card 2A in which the image is taken by the digital camera 2 and the image data S0 is stored (step S31). Then, the color signals R0, G0, B0 constituting the image data S0 are normalized by the normalizing means 12 to obtain normalized color signals R1, G1, B1 (step S32). On the other hand, according to the imaging light source type input from the input unit 10, the matrix Y - 1Z - 1A
ZY and Y - 1 Z -1 BZY is read from the database 9 (Step S33), the weighted sum in the weighted addition unit 7 'adds matrix M1 is obtained (Step S34). Steps S33 and S34
May be performed prior to steps S31 and S32, or may be performed in parallel.

【0100】加算マトリクスM1はカラーバランス調整
手段11に入力され、ここで色信号R1,G1,B1に
対して加算マトリクスM1によるカラーバランス調整処
理が施されて、処理済み色信号R6,G6,B6が得ら
れる(ステップS35)。処理済み色信号R6,G6,
B6はRGB変換手段13においてITU Rec70
9規格に準拠した色信号R7,G7,B7に変換されて
処理済み画像データS3が得られ(ステップS36)、
処理を終了する。
The addition matrix M1 is input to the color balance adjusting means 11, where the color signals R1, G1 and B1 are subjected to color balance adjustment processing by the addition matrix M1, and the processed color signals R6, G6 and B6 are processed. Is obtained (step S35). Processed color signals R6, G6,
B6 is converted by the RGB conversion means 13 into ITU Rec 70
The image data is converted into color signals R7, G7, B7 conforming to the N.9 standard to obtain processed image data S3 (step S36).
The process ends.

【0101】次いで、本発明の第5の実施形態について
説明する。図10は本発明の第5の実施形態によるカラ
ーバランス調整装置の構成を示す概略ブロック図であ
る。なお、第5の実施形態において、第1の実施形態と
同一の構成については同一の参照番号を付し、詳細な説
明は省略する。第1の実施形態においては、データベー
ス9に記憶されたマトリクスA,Bによりカラーバラン
ス調整処理を行っていたが、第5の実施形態においては
マトリクスA,Bを生成してカラーバランス調整処理を
行うようにしたものである。このため、第5の実施形態
によるカラーバランス調整装置1は、第1の実施形態に
おけるデータベース9および入力手段10に代えて、画
像データS0を取得した際の撮影光源の白色点を推定す
る白色点推定手段14、白色点推定手段14において推
定された白色点に基づいてマトリクスA,Bを生成する
パラメータ生成手段15、および後述するようにマトリ
クスA,Bを生成するために必要なパラメータを記憶し
たデータベース16を備える。
Next, a fifth embodiment of the present invention will be described. FIG. 10 is a schematic block diagram illustrating a configuration of a color balance adjustment device according to a fifth embodiment of the present invention. In the fifth embodiment, the same components as those in the first embodiment are denoted by the same reference numerals, and detailed description is omitted. In the first embodiment, the color balance adjustment processing is performed using the matrices A and B stored in the database 9, but in the fifth embodiment, the matrices A and B are generated and the color balance adjustment processing is performed. It is like that. For this reason, the color balance adjusting apparatus 1 according to the fifth embodiment is different from the database 9 and the input unit 10 in the first embodiment in that the white point for estimating the white point of the photographing light source at the time of acquiring the image data S0 is used. Estimating means 14, parameter generating means 15 for generating matrices A and B based on the white point estimated by white point estimating means 14, and parameters necessary for generating matrices A and B as described later are stored. A database 16 is provided.

【0102】白色点推定手段14は、上記式(4)、
(5)により画像データS0を正規化して色信号R1,
G1,B1を得、式(12)により色信号R1,G1,
B1の平均値を求め、この平均値を上記式(6)、
(7)により変換して、画像データS0を取得した際の
撮影光源の白色点の生理原色に基づく三刺激値L1w
,S1wを得、これを画像データS0を得た際の
撮影光源の白色点とする。なお、本実施形態では撮影光
源を光源1、観察光源を光源2と称して説明する。
The white point estimating means 14 calculates the above equation (4),
The image data S0 is normalized by (5) to obtain the color signals R1,
G1 and B1, and the color signals R1, G1,
The average value of B1 is obtained, and this average value is calculated by the above equation (6).
The tristimulus values L 1w , based on the physiological primary color of the white point of the imaging light source when the image data S0 is obtained by conversion according to (7),
M 1 w and S 1 w are obtained, and are set as the white point of the imaging light source when the image data S0 is obtained. In the present embodiment, a description will be given with the imaging light source as a light source 1 and the observation light source as a light source 2.

【0103】データベース16には、複数の光源(観察
光源を含む、以下既知光源とする)についての白色点の
生理原色に基づく三刺激値が記憶されている。また、各
既知光源下における三刺激値を画像を観察する観察光源
下における三刺激値に変換するためのマトリクスも記憶
されている。このマトリクスは、上記式(13)から
(21)により算出された非対角項も0でない値を有す
るマトリクスであり、以下既知光源パラメータとする。
The database 16 stores tristimulus values of a plurality of light sources (including observation light sources, hereinafter referred to as known light sources) based on physiological primaries of a white point. Also stored is a matrix for converting tristimulus values under each known light source into tristimulus values under an observation light source for observing an image. This matrix is a matrix having non-diagonal terms calculated by the above equations (13) to (21) and having values other than 0, and is hereinafter referred to as a known light source parameter.

【0104】パラメータ生成手段15は、光源1の白色
点の三刺激値L1w,M1w,S に基づいてマトリ
クスA,Bを生成する。まず、マトリクスAについて
は、データベース16に処理済み画像データS3を観察
する観察光源(光源2)についての白色点の生理原色に
基づく三刺激値L2w,M2w,S2wが記憶されてい
ることから、画像データS0を取得した際の光源1の白
色点の生理原色に基づく三刺激値L1w,M1w,S
1wと観察光源である光源2の三刺激値L2w
2w,S2wとから上記式(1)に示すvon Kriesの
色順応予測式に基づくマトリクスを求め、これをマトリ
クスAとする。
The parameter generating means 15 calculates the white color of the light source 1
Point tristimulus value L1w, M1w, S1 wMatri based on
And A and B are generated. First, about matrix A
Observes the processed image data S3 in the database 16
To the physiological primary color of the white point for the observation light source (light source 2)
Based tristimulus value L2w, M2w, S2wIs remembered
Therefore, the white of the light source 1 when the image data S0 is obtained
Tristimulus value L based on physiological primaries of color points1w, M1w, S
1wAnd the tristimulus value L of the light source 2 as the observation light source2w,
M 2w, S2wFrom this, von Kries's equation (1)
Find a matrix based on the chromatic adaptation prediction formula,
Box A.

【0105】次いで、マトリクスBの生成方法について
説明する。まず、パラメータ生成手段15は、LMS色
空間において白色点推定手段14から入力された光源1
の白色点の三刺激値L1w,M1w,S1wと、データ
ベース16に記憶された既知光源の白色点の三刺激値と
の距離を求め、この距離が最も小さい2つの既知光源を
選択する。具体的には、データベース16に記憶された
既知光源の白色点の三刺激値および三刺激値L1w,M
1w,S1wをLMS色空間にプロットし、LMS色空
間において、光源1の白色点に最も近い位置にあるすな
わち同種の光源と見なすことができる既知光源を選択す
る。ここでは、図11に示すように既知光源KA,KB
が選択されたものとする。
Next, a method of generating the matrix B will be described. First, the parameter generation unit 15 outputs the light source 1 input from the white point estimation unit 14 in the LMS color space.
The distance between the white point tristimulus values L 1w , M 1w , S 1w and the white point tristimulus values of the known light sources stored in the database 16 is determined, and the two known light sources having the smallest distance are selected. . Specifically, the tristimulus values and the tristimulus values L 1w , M of the white point of the known light source stored in the database 16
1w and S 1w are plotted in the LMS color space, and a known light source located closest to the white point of the light source 1 in the LMS color space, that is, can be regarded as a similar light source is selected. Here, as shown in FIG. 11, known light sources KA, KB
It is assumed that has been selected.

【0106】このように2つの既知光源KA,KBが選
択されると、LMS色空間上において既知光源KA,K
Bの白色点(点KA,KBとする)を結ぶ直線KAKB
と、光源1の白色点(図11における×点)から直線K
AKBに下した垂線との交点KCを求める。ここで、交
点KCにより直線KAKBが1−β:βの分割比率によ
り分割されるとすると、交点KCは、図12に示すよう
に既知光源KAの分光強度分布と既知光源KBの分光強
度分布とをβ:1−βの割合で合成した分光強度分布を
有する光源の白色点に相当するものとなる。
When the two known light sources KA and KB are selected as described above, the known light sources KA and K are selected on the LMS color space.
Straight line KAKB connecting the white points of B (points KA and KB)
And a straight line K from the white point of light source 1 (the point x in FIG. 11).
A crossing point KC with a perpendicular line dropped to AKB is obtained. Here, assuming that the straight line KAKB is divided by the intersection KC at a division ratio of 1-β: β, the intersection KC is divided into the spectral intensity distribution of the known light source KA and the spectral intensity distribution of the known light source KB as shown in FIG. Corresponds to the white point of a light source having a spectral intensity distribution synthesized at a ratio of β: 1−β.

【0107】上記のようにして交点KCが求められる
と、既知光源KA,KBの既知光源パラメータMA,M
Bに対して補間演算を施すことにより、交点KCに対応
する光源におけるマトリクスを算出する。
When the intersection KC is obtained as described above, the known light source parameters MA, M of the known light sources KA, KB
By performing an interpolation operation on B, a matrix at the light source corresponding to the intersection KC is calculated.

【0108】具体的には、上述したように算出したβに
基づいて、交点KCに対応する光源下におけるLMS三
刺激値を光源2下におけるLMS三刺激値に変換するた
めのマトリクスPcを下記の式(31)により求める。
Specifically, based on β calculated as described above, a matrix Pc for converting the LMS tristimulus values under the light source corresponding to the intersection KC into the LMS tristimulus values under the light source 2 is as follows. It is determined by equation (31).

【0109】Pc=βMA+(1−β)MB (31) したがって、交点KCに対応する光源下におけるLMS
三刺激値yは下記の式(32)により光源2下におけ
るLMS三刺激値に変換することができる。
Pc = βMA + (1-β) MB (31) Therefore, the LMS under the light source corresponding to the intersection KC
Tristimulus values y C can be converted to the LMS tristimulus values under the light source 2 by the following equation (32).

【0110】y=Pcy (32) 一方、上記交点KCはLMS色空間において既知光源K
A,KBの白色点を結ぶ直線KAKB上にあり光源1と
は一致していない。したがって、光源1下における白色
が光源2下における白色に変換されるように下記のよう
にしてマトリクスPcを補正する。まず、マトリクスP
cに補正マトリクスΔPを加算して、下記の式(33)
に示すように、光源1下における白色が光源2下におけ
る白色に変換されるようにすることを考える。
Y 2 = Pcy C (32) On the other hand, the intersection KC is the known light source K in the LMS color space.
It is on the straight line KAKB connecting the white points of A and KB, and does not coincide with the light source 1. Therefore, the matrix Pc is corrected as described below so that the white color under the light source 1 is converted to the white color under the light source 2. First, the matrix P
The correction matrix ΔP is added to c, and the following equation (33) is obtained.
As shown in FIG. 5, consider that white under the light source 1 is converted to white under the light source 2.

【0111】[0111]

【数24】 次いで、マトリクスPcおよびΔPを、下記の式(3
4)、(35)に示すように、光源1から光源2へのvo
n Kriesの色順応予測式に従う成分Vと、その他の成分
QcおよびΔQとに分解する。
(Equation 24) Next, the matrices Pc and ΔP are calculated by the following equation (3).
4) As shown in (35), vo from the light source 1 to the light source 2
It is decomposed into a component V according to the n Kries color adaptation prediction formula, and other components Qc and ΔQ.

【0112】Pc=QcV (34) ΔP=ΔQV (35) ここで、三刺激値L1w,M1w,S1wと三刺激値L
2w,M2w,S2wとは下記の式(36)に示す関係
にあることから、式(34)および(35)を式(3
3)に代入すると下記の式(37)となる。
Pc = QcV (34) ΔP = ΔQV (35) Here, the tristimulus values L 1w , M 1w , S 1w and the tristimulus value L
Since 2w , M 2w , and S 2w have the relationship shown in the following equation (36), equations (34) and (35) are replaced by equation (3).
Substituting into 3) gives the following equation (37).

【0113】[0113]

【数25】 式(37)を変形すると下記の式(38)となる。(Equation 25) By transforming equation (37), the following equation (38) is obtained.

【0114】[0114]

【数26】 但し、E:単位行列 式(34)より Qc=PcV−1 (39) であることから、式(38)の右辺は既知である。した
がって、
(Equation 26) However, E: unit determinant From the equation (34), since Qc = PcV −1 (39), the right side of the equation (38) is known. Therefore,

【数27】 のように置き換えを行うと、[Equation 27] If you replace like this,

【数28】 となる。ここで、ベクトル(q00,q01,q0
2)、(q10,q11,q12)、(q20,q2
1,q22)の値が最小となれば補正マトリクスΔPの
成分も最小となるため、マトリクスPcに少ない補正を
加えるのみで、光源1下における白色点を光源2下にお
ける白色点に変換できることとなる。
[Equation 28] Becomes Here, the vectors (q00, q01, q0
2), (q10, q11, q12), (q20, q2
When the value of (1, q22) is the minimum, the component of the correction matrix ΔP is also the minimum. Therefore, the white point under the light source 1 can be converted to the white point under the light source 2 only by applying a small correction to the matrix Pc. .

【0115】ベクトル(q00,q01,q02)、
(q10,q11,q12)、(q20,q21,q2
2)の値が最小となるのは、これらのベクトルがベクト
ル(L 2w,M2w,S2w)に平行な場合である。し
たがって、下記の式(40)〜(41)によりベクトル
(q00,q01,q02)、(q10,q11,q1
2)、(q20,q21,q22)を決定することによ
り、マトリクスΔQを求める。
Vectors (q00, q01, q02),
(Q10, q11, q12), (q20, q21, q2
The value of 2) is the smallest because these vectors are vector
Le (L 2w, M2w, S2w). I
Therefore, the vector is calculated by the following equations (40) to (41).
(Q00, q01, q02), (q10, q11, q1
2) By determining (q20, q21, q22)
Then, a matrix ΔQ is obtained.

【0116】[0116]

【数29】 よって、補正マトリクスΔPは上記式(35)により求
めることができる。これにより、光源1下におけるLM
S三刺激値を光源2下におけるLMS三刺激値に変換す
るためのマトリクスBは、 B=Pc+ΔP (43) により求めることができる。
(Equation 29) Therefore, the correction matrix ΔP can be obtained by the above equation (35). Thereby, LM under the light source 1
A matrix B for converting the S tristimulus values into the LMS tristimulus values under the light source 2 can be obtained by B = Pc + ΔP (43).

【0117】このマトリクスBは、光源1下における白
色点の三刺激値を光源2下における白色点の三刺激値に
変換する。また、交点KCに対応する光源下におけるL
MS三刺激値を光源2下におけるLMS三刺激値に変換
するためのマトリクスPcを補正したものであるため、
光源1下におけるLMS三刺激値を光源2下におけるL
MS三刺激値に変換する特徴をも備えたものとなってい
る。
This matrix B converts the tristimulus values of the white point under the light source 1 into the tristimulus values of the white point under the light source 2. L under the light source corresponding to the intersection KC
Since the matrix Pc for converting the MS tristimulus values into the LMS tristimulus values under the light source 2 is corrected,
The LMS tristimulus value under light source 1 is calculated as L under light source 2
It also has a feature of converting to an MS tristimulus value.

【0118】そして、このようにして生成されたマトリ
クスA,Bは第1および第2のカラーバランス調整処理
手段5,6に入力され、第1の実施形態と同様に三刺激
値L0,M0,S0に対してカラーバランス調整処理が
施されて、処理済み三刺激値L1,M1,S1、L2,
M2,S2が得られる。処理済み三刺激値L1,M1,
S1、L2,M2,S2は重み付け加算手段7に入力さ
れ、ここで重み付け加算がなされて加算三刺激値L3,
M3,S3が得られる。加算三刺激値L3,M3,S3
はRGB変換手段8においてRGB色空間に変換されて
処理済み画像データS3が得られることとなる。
The matrices A and B generated in this way are input to the first and second color balance adjustment processing means 5 and 6, and the tristimulus values L0, M0, Color balance adjustment processing is performed on S0, and the processed tristimulus values L1, M1, S1, L2,
M2 and S2 are obtained. The processed tristimulus values L1, M1,
S1, L2, M2, and S2 are input to the weighting and adding means 7, where weighted addition is performed, and the added tristimulus value L3,
M3 and S3 are obtained. Additive tristimulus values L3, M3, S3
Is converted into the RGB color space by the RGB conversion means 8 to obtain the processed image data S3.

【0119】次いで、本発明の第6の実施形態について
説明する。図13は本発明の第6の実施形態によるカラ
ーバランス調整装置の構成を示す概略ブロック図であ
る。なお、第6の実施形態において、第2の実施形態と
同一の構成については同一の参照番号を付し、詳細な説
明は省略する。第2の実施形態においては、データベー
ス9に記憶されたマトリクスA,Bを重み付け加算して
加算マトリクスM0を求めていたが、第6の実施形態に
おいては第5の実施形態と同様にマトリクスA,Bを生
成し、生成されたマトリクスA,Bから加算マトリクス
M0を求めるようにしたものである。このため、第6の
実施形態によるカラーバランス調整装置1は、第5の実
施形態と同様に、データベース9および入力手段10に
代えて、白色点推定手段14、パラメータ生成手段1
5、およびデータベース16を備える。
Next, a sixth embodiment of the present invention will be described. FIG. 13 is a schematic block diagram illustrating a configuration of a color balance adjustment device according to the sixth embodiment of the present invention. Note that, in the sixth embodiment, the same components as those of the second embodiment are denoted by the same reference numerals, and detailed description thereof will be omitted. In the second embodiment, the matrices A and B stored in the database 9 are weighted and added to obtain the addition matrix M0. However, in the sixth embodiment, the matrices A and B are used similarly to the fifth embodiment. B is generated, and an addition matrix M0 is obtained from the generated matrices A and B. For this reason, the color balance adjusting device 1 according to the sixth embodiment replaces the database 9 and the input unit 10 with the white point estimating unit 14 and the parameter generating unit 1 as in the fifth embodiment.
5 and a database 16.

【0120】第5の実施形態と同様にして生成されたマ
トリクスA,Bは重み付け加算手段7′に入力され、こ
こで第2の実施形態と同様に重み付け加算されて加算マ
トリクスM0が得られる。加算マトリクスM0はカラー
バランス調整手段11に入力され、ここで加算マトリク
スM0によるカラーバランス調整処理が施されて、処理
済み三刺激値L4,M4,S4が得られる。処理済み三
刺激値L4,M4,S4はRGB変換手段8においてR
GB色空間に変換されて処理済み画像データS3が得ら
れることとなる。
The matrices A and B generated in the same manner as in the fifth embodiment are input to the weighting and adding means 7 ', where they are weighted and added as in the second embodiment to obtain an addition matrix M0. The addition matrix M0 is input to the color balance adjustment unit 11, where the color balance adjustment processing is performed by the addition matrix M0 to obtain processed tristimulus values L4, M4, and S4. The processed tristimulus values L4, M4, S4
The converted image data S3 is obtained after being converted into the GB color space.

【0121】次いで、本発明の第7の実施形態について
説明する。図14は本発明の第7の実施形態によるカラ
ーバランス調整装置の構成を示す概略ブロック図であ
る。なお、第7の実施形態において、第3の実施形態と
同一の構成については同一の参照番号を付し、詳細な説
明は省略する。第3の実施形態においては、データベー
ス9に記憶されたマトリクスY−1−1AZYおよび
−1−1BZYを重み付け加算して加算マトリクス
M0を求めていたが、第7の実施形態においては第5の
実施形態と同様にマトリクスY−1−1AZYおよび
−1−1BZYを生成し、生成されたマトリクスY
−1−1AZYおよびY−1−1BZYに基づいて
カラーバランス調整処理を行うようにしたものである。
このため、第7の実施形態によるカラーバランス調整装
置1は、第5の実施形態と同様に、データベース9およ
び入力手段10に代えて、白色点推定手段14、パラメ
ータ生成手段15、およびデータベース16を備える。
Next, a seventh embodiment of the present invention will be described. FIG. 14 is a schematic block diagram showing the configuration of the color balance adjustment device according to the seventh embodiment of the present invention. In the seventh embodiment, the same components as those in the third embodiment are denoted by the same reference numerals, and detailed description thereof will be omitted. In the third embodiment, had sought matrix Y -1 Z -1 AZY and Y -1 Z -1 adder matrix M0 BZY a weighted sum stored in the database 9, in the seventh embodiment Generates matrices Y -1 Z -1 AZY and Y -1 Z -1 BZY in the same manner as in the fifth embodiment, and generates the generated matrix Y
The color balance adjustment processing is performed based on -1Z- 1 AZY and Y - 1Z- 1 BZY.
Therefore, the color balance adjusting device 1 according to the seventh embodiment includes a white point estimating unit 14, a parameter generating unit 15, and a database 16 instead of the database 9 and the input unit 10, as in the fifth embodiment. Prepare.

【0122】なお、マトリクスY−1−1AZYおよ
びY−1−1BZYは、第5の実施形態と同様にして
生成したマトリクスA,B、式(6)に示す変換を行う
マトリクスY、および式(7)に示す変換を行うマトリ
クスZに基づいて、パラメータ生成手段15において生
成される。また、マトリクスY、Zはデータベース16
に記憶しておけばよい。
Note that the matrices Y -1 Z -1 AZY and Y -1 Z -1 BZY are the matrices A and B generated in the same manner as in the fifth embodiment and the matrix Y for performing the conversion shown in equation (6). , And a matrix Z that performs the conversion shown in equation (7). The matrices Y and Z are stored in the database 16
Should be memorized.

【0123】パラメータ生成手段15において生成され
たマトリクスY−1−1AZYおよびY−1−1
ZYは第1および第2のカラーバランス調整処理手段
5,6に入力され、第3の実施形態と同様に正規化され
た色信号R1,G1,B1に対してカラーバランス調整
処理が施されて、処理済み色信号R4,G4,B4、R
5,G5,B5が得られる。処理済み色信号R4,G
4,B4、R5,G5,B5は重み付け加算手段7に入
力され、ここで重み付け加算がなされて色信号R6,G
6,B6が得られる。色信号R6,G6,B6はRGB
変換手段13においてITU Rec709規格に準拠
した色信号R7,G7,B7に変換されて処理済み画像
データS3が得られることとなる。
The matrices Y -1 Z -1 AZY and Y -1 Z -1 B generated by the parameter generating means 15
ZY is input to the first and second color balance adjustment processing means 5 and 6, and color balance adjustment processing is performed on the normalized color signals R1, G1, and B1 as in the third embodiment. , Processed color signals R4, G4, B4, R
5, G5, B5 are obtained. Processed color signals R4, G
4, B4, R5, G5, and B5 are input to the weighting and adding means 7, where they are subjected to weighting and addition, and the color signals R6, G
6, B6 are obtained. The color signals R6, G6 and B6 are RGB
The conversion means 13 converts the color signals into color signals R7, G7, B7 conforming to the ITU Rec 709 standard to obtain processed image data S3.

【0124】次いで、本発明の第8の実施形態について
説明する。図15は本発明の第8の実施形態によるカラ
ーバランス調整装置の構成を示す概略ブロック図であ
る。なお、第8の実施形態において、第4の実施形態と
同一の構成については同一の参照番号を付し、詳細な説
明は省略する。第4の実施形態においては、データベー
ス9に記憶されたマトリクスY−1−1AZYおよび
−1−1BZYを重み付け加算して加算マトリクス
M1を求めていたが、第8の実施形態においては第7の
実施形態と同様にマトリクスY−1−1AZYおよび
−1−1BZYを生成し、生成されたマトリクスY
−1−1AZYおよびY−1−1BZYを重み付け
加算して加算マトリクスM1を求めるようにしたもので
ある。このため、第8の実施形態によるカラーバランス
調整装置1は、第7の実施形態と同様に、データベース
9および入力手段10に代えて、白色点推定手段14、
パラメータ生成手段15、およびデータベース16を備
える。
Next, an eighth embodiment of the present invention will be described. FIG. 15 is a schematic block diagram showing the configuration of the color balance adjustment device according to the eighth embodiment of the present invention. In the eighth embodiment, the same components as those of the fourth embodiment are denoted by the same reference numerals, and the detailed description will be omitted. In the fourth embodiment, it had sought matrix Y -1 Z -1 AZY and Y -1 Z to -1 BZY weighted addition by adding matrix M1 stored in the database 9, in the eighth embodiment Generates matrices Y -1 Z -1 AZY and Y -1 Z -1 BZY similarly to the seventh embodiment, and generates the generated matrix Y
-1 is obtained so as to obtain the Z -1 Azy and Y -1 Z to -1 BZY weighted addition by adding the matrix M1. For this reason, the color balance adjusting device 1 according to the eighth embodiment differs from the seventh embodiment in that the white point estimating unit 14 is replaced with the database 9 and the input unit 10,
It comprises a parameter generating means 15 and a database 16.

【0125】第7の実施形態と同様に生成されたマトリ
クスY−1−1AZYおよびY −1BZYは、
重み付け加算手段7′に入力され、ここで第4の実施形
態と同様に重み付け加算されて加算マトリクスM1が得
られる。加算マトリクスM1はカラーバランス調整手段
11に入力され、ここで加算マトリクスM1によるカラ
ーバランス調整処理が施されて、処理済み色信号R6,
G6,B6が得られる。処理済み色信号R6,G6,B
6はRGB変換手段13においてITU Rec709
規格に準拠した色信号R7,G7,B7に変換されて処
理済み画像データS3が得られることとなる。
[0125] similarly to the seventh embodiment-generated matrix Y -1 Z -1 AZY of and Y - 1 Z -1 BZY is
It is input to the weighting and adding means 7 ', where it is weighted and added in the same manner as in the fourth embodiment to obtain an addition matrix M1. The addition matrix M1 is input to the color balance adjustment unit 11, where the color balance adjustment processing by the addition matrix M1 is performed, and the processed color signals R6 and R6 are processed.
G6 and B6 are obtained. Processed color signals R6, G6, B
Reference numeral 6 denotes ITU Rec 709 in the RGB conversion means 13.
The processed image data S3 is obtained by being converted into color signals R7, G7, B7 conforming to the standard.

【0126】次いで、本発明の第9の実施形態について
説明する。図16は本発明の第9の実施形態によるカラ
ーバランス調整装置の構成を示す概略ブロック図であ
る。なお、第9の実施形態において、第5の実施形態と
同一の構成については同一の参照番号を付し、詳細な説
明は省略する。図16に示すように本発明の第9の実施
形態によるカラーバランス調整装置1は、第5の実施形
態と同様の読取手段3、LMS変換手段4、第1のカラ
ーバランス調整処理手段5、RGB変換手段8、白色点
推定手段14、パラメータ生成手段15およびデータベ
ース16と、第1のカラーバランス調整処理手段5にお
いて得られた処理済み三刺激値L1,M1,S1に対し
て後述するマトリクスCによるカラーバランス調整処理
を施して処理済み三刺激値L6,M6,S6を得る第3
のカラーバランス調整処理手段17と、処理済み三刺激
値L1,M1,S1に対して後述するマトリクスDによ
るカラーバランス調整処理を施して処理済み三刺激値L
7,M7,S7を得る第4のカラーバランス調整処理手
段18と、処理済み三刺激値L7,M7,S7を比率α
により重み付けして処理済み三刺激値L6,M6,S6
と加算して加算三刺激値L8,M8,S8を得る重み付
け加算手段27とを備える。
Next, a ninth embodiment of the present invention will be described. FIG. 16 is a schematic block diagram showing the configuration of the color balance adjustment device according to the ninth embodiment of the present invention. In the ninth embodiment, the same components as those in the fifth embodiment are denoted by the same reference numerals, and a detailed description thereof will be omitted. As shown in FIG. 16, a color balance adjusting device 1 according to a ninth embodiment of the present invention includes a reading unit 3, an LMS conversion unit 4, a first color balance adjustment processing unit 5, and RGB similar to those of the fifth embodiment. The converting means 8, the white point estimating means 14, the parameter generating means 15, the database 16 and the processed tristimulus values L1, M1, S1 obtained by the first color balance adjustment processing means 5 are obtained by a matrix C which will be described later. Third to perform color balance adjustment processing to obtain processed tristimulus values L6, M6, and S6
And the processed tristimulus values L1, M1, and S1 are subjected to a color balance adjustment process using a matrix D, which will be described later, and the processed tristimulus values L
The fourth color balance adjustment processing means 18 for obtaining 7, M7, S7 and the processed tristimulus values L7, M7, S7 are compared with a ratio α.
Processed tristimulus values L6, M6, S6
And weighted adding means 27 for obtaining the added tristimulus values L8, M8, S8.

【0127】ここで、パラメータ生成手段15において
は、第5の実施形態と同様にして白色点推定手段14に
おいて推定された白色点およびデータベース16に記憶
されたパラメータに基づいてマトリクスA,Bが生成さ
れるとともに、マトリクスC,Dが生成される。ここ
で、マトリクスCはマトリクスA,Bから下記の式(4
4)に示すように生成される。
Here, the parameter generating means 15 generates matrices A and B based on the white point estimated by the white point estimating means 14 and the parameters stored in the database 16 in the same manner as in the fifth embodiment. At the same time, matrices C and D are generated. Here, the matrix C is obtained from the matrices A and B by the following equation (4).
It is generated as shown in 4).

【0128】C=BA−1 (44) このマトリクスCは、下記の式(45)に示す特徴を有
するものとなる。したがって、白色点を変化させること
なく他の色を変化させることができるものである。
C = BA -1 (44) This matrix C has the characteristics shown in the following equation (45). Therefore, other colors can be changed without changing the white point.

【0129】[0129]

【数30】 但し、L,M,S:白色点の生理原色に基づく三
刺激値 一方、マトリクスDはマトリクスCから下記の式(4
6)に示すように生成される。
[Equation 30] Here, L w , M w , and S w are tristimulus values based on the physiological primary color of the white point. On the other hand, the matrix D is obtained from the matrix C by the following equation (4).
It is generated as shown in 6).

【0130】D=E−C (46) 但し、E:単位行列 ここで、マトリクスDはマトリクスCと同様に白色点を
変化させることなく他の色を変化させることができるも
のである。
D = E−C (46) where E: unit matrix Here, the matrix D can change other colors without changing the white point like the matrix C.

【0131】第3のカラーバランス調整処理手段17
は、下記の式(47)に示すように処理済み三刺激値L
1,M1,S1をマトリクスCにより変換してカラーバ
ランス調整処理を行って、処理済み三刺激値L6,M
6,S6を得る。この処理済み三刺激値L6,M6,S
6は、第1の実施形態の第2のカラーバランス調整処理
手段6において、三刺激値L0,M0,S0に対してマ
トリクスBにより変換を施すことにより得られる処理済
み三刺激値L2,M2,S2に相当するものである。
Third color balance adjustment processing means 17
Is the processed tristimulus value L as shown in equation (47) below.
1, M1 and S1 are converted by a matrix C to perform a color balance adjustment process, and the processed tristimulus values L6, M
6, S6 is obtained. The processed tristimulus values L6, M6, S
Reference numeral 6 denotes processed tristimulus values L2, M2, and 2 obtained by performing conversion by the matrix B on the tristimulus values L0, M0, and S0 in the second color balance adjustment processing means 6 of the first embodiment. This is equivalent to S2.

【0132】[0132]

【数31】 第4のカラーバランス調整処理手段18は、下記の式
(48)に示すように処理済み三刺激値L1,M1,S
1をマトリクスDにより変換してカラーバランス調整処
理を行って、処理済み三刺激値L7,M7,S7を得
る。この処理済み三刺激値L7,M7,S7は、第1の
実施形態の第1のカラーバランス調整処理手段5におい
て、三刺激値L0,M0,S0に対してマトリクスAに
より変換を施すことにより得られる処理済み三刺激値L
1,M1,S1と、処理済み三刺激値L2,M2,S2
との差に相当するものである。
(Equation 31) The fourth color balance adjustment processing means 18 calculates the processed tristimulus values L1, M1, S as shown in the following equation (48).
1 is converted by the matrix D to perform color balance adjustment processing to obtain processed tristimulus values L7, M7, and S7. The processed tristimulus values L7, M7, S7 are obtained by converting the tristimulus values L0, M0, S0 by the matrix A in the first color balance adjustment processing means 5 of the first embodiment. Processed tristimulus value L
1, M1, S1 and processed tristimulus values L2, M2, S2
Is equivalent to the difference between

【0133】[0133]

【数32】 重み付け加算手段27は、処理済み三刺激値L6,M
6,S6と処理済み三刺激値L7,M7,S7とを所定
の比率αにより下記の式(49)に示すように重み付け
加算して加算三刺激値L8,M8,S8を得る。
(Equation 32) The weighting and adding means 27 calculates the processed tristimulus values L6, M
6, S6 and the processed tristimulus values L7, M7, S7 are weighted and added at a predetermined ratio α as shown in the following equation (49) to obtain added tristimulus values L8, M8, S8.

【0134】[0134]

【数33】 ここで、第9の実施形態においては、第1のカラーバラ
ンス調整処理手段5においてまず白色を補正し、第3お
よび第4のカラーバランス調整処理手段17,18にお
いて、白色を保存しつつ白色以外の色に対する補正を行
う構成となっている。
[Equation 33] Here, in the ninth embodiment, the first color balance adjustment processing means 5 first corrects the white color, and the third and fourth color balance adjustment processing means 17 and 18 preserve the white color while excluding the white color. The correction is made for the color.

【0135】なお、第9の実施形態において得られる加
算三刺激値L8,M8,S8と第1の実施形態において
得られる加算三刺激値L3,M3,S3とは同一のもの
となる。したがって、RGB変換手段8において得られ
る処理済み画像データは第1の実施形態と同一のものと
なるため、第9の実施形態のRGB変換手段8において
得られる処理済み画像データとしては、第1の実施形態
と同様に参照符号S3を用いるものとする。
The added tristimulus values L8, M8, S8 obtained in the ninth embodiment are the same as the added tristimulus values L3, M3, S3 obtained in the first embodiment. Therefore, the processed image data obtained by the RGB conversion means 8 is the same as that of the first embodiment, and the processed image data obtained by the RGB conversion means 8 of the ninth embodiment is the first image data. The reference numeral S3 is used as in the embodiment.

【0136】次いで、第9の実施形態の動作について説
明する。図17は第9の実施形態の動作を示すフローチ
ャートである。なお、ここではパラメータ生成手段15
において、マトリクスA,C,Dが既に生成されている
ものとして説明する。まず、デジタルカメラ2において
撮影が行われて画像データS0が記憶されたメモリカー
ド2Aから、読出手段3において画像データS0が読み
出される(ステップS41)。そして、LMS変換手段
4において画像データS0を構成する色信号R0,G
0,B0が生理原色に基づく三刺激値L0,M0,S0
に変換される(ステップS42)。一方、パラメータ生
成手段15において生成されたマトリクスA,C,Dが
第1、第3および第4のカラーバランス調整手段5,1
7,18に入力される(ステップS43)。
Next, the operation of the ninth embodiment will be described. FIG. 17 is a flowchart showing the operation of the ninth embodiment. Here, the parameter generation unit 15
In the description below, it is assumed that the matrices A, C, and D have already been generated. First, the image data S0 is read out by the reading means 3 from the memory card 2A in which the image data S0 has been captured by the digital camera 2 and stored (step S41). Then, in the LMS conversion means 4, the color signals R0, G constituting the image data S0 are obtained.
0, B0 are tristimulus values L0, M0, S0 based on physiological primary colors
(Step S42). On the other hand, the matrices A, C, and D generated by the parameter generating means 15 are the first, third, and fourth color balance adjusting means 5, 1
7 and 18 (step S43).

【0137】三刺激値L0,M0,S0に対しては下記
のようにカラーバランス調整処理が施される(ステップ
S44)。まず三刺激値L0,M0,S0は第1のカラ
ーバランス調整手段5に入力され、ここでマトリクスA
によるカラーバランス調整処理が施されて、処理済み三
刺激値L1,M1,S1が得られる。処理済み三刺激値
L1,M1,S1は、第3および第4のカラーバランス
調整手段17,18に入力され、ここでそれぞれマトリ
クスC,Dによるカラーバランス調整処理が施されて、
処理済み三刺激値L6,M6,S6、L7,M7,S7
が得られる。処理済み三刺激値L6,M6,S6、L
7,M7,S7は重み付け加算手段27に入力され、こ
こで重み付け加算がなされて加算三刺激値L8,M8,
S8が得られる(ステップS45)。加算三刺激値L
8,M8,S8はRGB変換手段8においてRGB色空
間に変換されて処理済み画像データS3が得られ(ステ
ップS46)、処理を終了する。
A color balance adjustment process is performed on the tristimulus values L0, M0, S0 as follows (step S44). First, the tristimulus values L0, M0, S0 are inputted to the first color balance adjusting means 5, where the matrix A
Is performed, and the processed tristimulus values L1, M1, and S1 are obtained. The processed tristimulus values L1, M1, and S1 are input to third and fourth color balance adjustment units 17 and 18, where color balance adjustment processing is performed by matrices C and D, respectively.
Processed tristimulus values L6, M6, S6, L7, M7, S7
Is obtained. Treated tristimulus values L6, M6, S6, L
7, M7, S7 are input to the weighting and adding means 27, where weighted addition is performed, and the added tristimulus values L8, M8,
S8 is obtained (step S45). Additive tristimulus value L
8, M8, and S8 are converted into the RGB color space by the RGB conversion means 8 to obtain processed image data S3 (step S46), and the process ends.

【0138】次いで、本発明の第10の実施形態につい
て説明する。図18は本発明の第10の実施形態による
カラーバランス調整装置の構成を示す概略ブロック図で
ある。なお、第10の実施形態において、第9の実施形
態と同一の構成については同一の参照番号を付し、詳細
な説明は省略する。第10の実施形態によるカラーバラ
ンス調整装置1は、パラメータ生成手段15において生
成されたマトリクスC,Dを重み付け加算手段27′に
おいて重み付け加算して加算マトリクスM2を得、第5
のカラーバランス調整処理手段19において、第1のカ
ラーバランス調整処理手段5において得られた処理済み
三刺激値L1,M1,S1に対して加算マトリクスM2
によってカラーバランス調整処理を施して処理済み三刺
激値L8,M8,S8を得るようにした点が第9の実施
形態と異なるものである。
Next, a tenth embodiment of the present invention will be described. FIG. 18 is a schematic block diagram showing the configuration of the color balance adjustment device according to the tenth embodiment of the present invention. Note that, in the tenth embodiment, the same configurations as those in the ninth embodiment are denoted by the same reference numerals, and detailed description is omitted. In the color balance adjusting apparatus 1 according to the tenth embodiment, the matrices C and D generated by the parameter generating means 15 are weighted and added by the weighting and adding means 27 'to obtain an addition matrix M2.
In the color balance adjustment processing means 19, an addition matrix M2 is added to the processed tristimulus values L1, M1, and S1 obtained in the first color balance adjustment processing means 5.
Is different from the ninth embodiment in that color balance adjustment processing is performed to obtain processed tristimulus values L8, M8, and S8.

【0139】重み付け加算手段27′は下記の式(5
0)によりマトリクスC,Dを重み付け加算して加算マ
トリクスM2を得る。
The weighting and adding means 27 'is calculated by the following equation (5)
0), the matrices C and D are weighted and added to obtain an addition matrix M2.

【0140】M2=C+αD (50) 第5のカラーバランス調整手段19は、下記の式(5
1)に示すように処理済み三刺激値L1,M1,S1を
加算マトリクスM2により変換してカラーバランス調整
処理を行って、処理済み三刺激値L8,M8,S8を得
る。
M2 = C + αD (50) The fifth color balance adjusting means 19 calculates the following equation (5)
As shown in 1), the processed tristimulus values L1, M1 and S1 are converted by the addition matrix M2 and color balance adjustment processing is performed to obtain processed tristimulus values L8, M8 and S8.

【0141】[0141]

【数34】 なお、第10の実施形態の第5のカラーバランス調整処
理手段19において得られる処理済み三刺激値は第9の
実施形態の重み付け加算手段27において得られる加算
三刺激値L8,M8,S8と同一のものとなるため同一
の参照符号を用いる。また、RGB変換手段8において
得られる処理済み画像データは、第1の実施形態におい
て得られる処理済み画像データと同一のものとなるた
め、参照符号S3を用いるものとする。
(Equation 34) Note that the processed tristimulus values obtained by the fifth color balance adjustment processing means 19 of the tenth embodiment are the same as the added tristimulus values L8, M8, S8 obtained by the weighted addition means 27 of the ninth embodiment. , The same reference numerals are used. Further, the processed image data obtained by the RGB conversion means 8 is the same as the processed image data obtained in the first embodiment, so that the reference numeral S3 is used.

【0142】次いで、第10の実施形態の動作について
説明する。図19は第10の実施形態の動作を示すフロ
ーチャートである。なお、ここではパラメータ生成手段
15において、マトリクスA,C,Dが既に生成されて
いるものとして説明する。まず、デジタルカメラ2にお
いて撮影が行われて画像データS0が記憶されたメモリ
カード2Aから、読出手段3において画像データS0が
読み出される(ステップS51)。そして、LMS変換
手段4において画像データS0を構成する色信号R0,
G0,B0が生理原色に基づく三刺激値L0,M0,S
0に変換される(ステップS52)。一方、パラメータ
生成手段15において生成されたマトリクスA,C,D
が第1のカラーバランス調整手段5および重み付け加算
手段27′に入力される(ステップS53)。
Next, the operation of the tenth embodiment will be described. FIG. 19 is a flowchart showing the operation of the tenth embodiment. Here, the description will be made on the assumption that the matrices A, C, and D have already been generated by the parameter generating means 15. First, the image data S0 is read by the reading means 3 from the memory card 2A in which the image is taken by the digital camera 2 and the image data S0 is stored (step S51). Then, in the LMS conversion means 4, the color signals R0,
G0, B0 are tristimulus values L0, M0, S based on physiological primary colors
It is converted to 0 (step S52). On the other hand, the matrices A, C, and D generated by the parameter generation means 15
Is input to the first color balance adjusting means 5 and the weighting and adding means 27 '(step S53).

【0143】重み付け加算手段27′に入力されたマト
リクスC,Dは重み付け加算されて加算マトリクスM2
が得られる(ステップS54)。そして、三刺激値L
0,M0,S0に対しては下記のようにカラーバランス
調整処理が施される(ステップS55)。まず第1のカ
ラーバランス調整手段5に入力された三刺激値L0,M
0,S0は、ここでマトリクスAによるカラーバランス
調整処理が施されて、処理済み三刺激値L1,M1,S
1が得られる。処理済み三刺激値L1,M1,S1は、
第5のカラーバランス調整手段19に入力され、ここで
加算マトリクスM2によるカラーバランス調整処理が施
されて、処理済み三刺激値L8,M8,S8が得られ
る。処理済み三刺激値L8,M8,S8はRGB変換手
段8においてRGB色空間に変換されて処理済み画像デ
ータS3が得られ(ステップS56)、処理を終了す
る。
The matrices C and D input to the weighting and adding means 27 'are weighted and added to obtain an addition matrix M2.
Is obtained (step S54). And the tristimulus value L
Color balance adjustment processing is performed on 0, M0, and S0 as follows (step S55). First, the tristimulus values L0, M input to the first color balance adjusting means 5
0, S0 are subjected to the color balance adjustment processing by the matrix A, and the processed tristimulus values L1, M1, S
1 is obtained. The processed tristimulus values L1, M1, and S1 are
The data is input to the fifth color balance adjustment means 19, where the color balance adjustment processing is performed by the addition matrix M2, and the processed tristimulus values L8, M8, S8 are obtained. The processed tristimulus values L8, M8, and S8 are converted into the RGB color space by the RGB conversion means 8 to obtain processed image data S3 (step S56), and the process ends.

【0144】次いで、本発明の第11の実施形態につい
て説明する。図20は本発明の第11の実施形態による
カラーバランス調整装置の構成を示す概略ブロック図で
ある。なお、第11の実施形態において、第9の実施形
態と同一の構成については同一の参照番号を付し、詳細
な説明は省略する。図20に示すように本発明の第11
の実施形態によるカラーバランス調整装置1は、第9の
実施形態と同様の読取手段3、LMS変換手段4、第1
のカラーバランス調整処理手段5、重み付け加算手段2
7、RGB変換手段8、白色点推定手段14、パラメー
タ生成手段15およびデータベース16を備え、LMS
変換手段4において得られた三刺激値L0,M0,S0
に対して第6のカラーバランス調整処理手段17′にお
いて後述するマトリクスC′によるカラーバランス調整
処理を施して処理済み三刺激値L6′,M6′,S6′
を得、LMS変換手段4において得られた三刺激値L
0,M0,S0に対して第7のカラーバランス調整処理
手段18′において後述するマトリクスD′によるカラ
ーバランス調整処理を施して処理済み三刺激値L7′,
M7′,S7′を得、重み付け加算手段27において処
理済み三刺激値L6′,M6′,S6′と処理済み三刺
激値L7′,M7′,S7′とを重み付け加算して加算
三刺激値L9,M9,S9を得、この加算三刺激値L
9,M9,S9に対して第1のカラーバランス調整処理
手段5においてマトリクスAによるカラーバランス調整
処理を施して処理済み三刺激値L8,M8,S8を得る
ようにしたものである。
Next, an eleventh embodiment of the present invention will be described. FIG. 20 is a schematic block diagram showing the configuration of the color balance adjustment device according to the eleventh embodiment of the present invention. In the eleventh embodiment, the same components as those in the ninth embodiment are denoted by the same reference numerals, and a detailed description thereof will be omitted. As shown in FIG.
The color balance adjusting device 1 according to the present embodiment includes a reading unit 3, an LMS conversion unit 4, and a first
Color balance adjustment processing means 5, weight addition means 2
7, an RGB conversion means 8, a white point estimating means 14, a parameter generating means 15, and a database 16
Tristimulus values L0, M0, S0 obtained by conversion means 4
The sixth color balance adjustment processing means 17 'performs a color balance adjustment process using a matrix C' to be described later to process the processed tristimulus values L6 ', M6', S6 '.
And the tristimulus value L obtained by the LMS conversion means 4
The seventh color balance adjustment processing means 18 'performs color balance adjustment processing using a matrix D' described later on 0, M0, and S0, and processes the processed tristimulus values L7 ',
M7 'and S7' are obtained, and the weighted addition means 27 weights and adds the processed tristimulus values L6 ', M6' and S6 'and the processed tristimulus values L7', M7 'and S7' to obtain an added tristimulus value. L9, M9 and S9 are obtained, and the added tristimulus value L
The first, color balance adjustment processing means 5 performs color balance adjustment processing using a matrix A on the pixels 9, M9, S9 to obtain processed tristimulus values L8, M8, S8.

【0145】ここで、第6のカラーバランス調整処理手
段は第9の実施形態における第3のカラーバランス調整
処理手段に対応するため、参照符号として17′を用い
る。また、第7のカラーバランス調整処理手段は第9の
実施形態における第4のカラーバランス調整処理手段に
対応するため、参照符号として18′を用いる。
Here, since the sixth color balance adjustment processing means corresponds to the third color balance adjustment processing means in the ninth embodiment, 17 'is used as a reference numeral. Since the seventh color balance adjustment processing means corresponds to the fourth color balance adjustment processing means in the ninth embodiment, reference numeral 18 'is used.

【0146】パラメータ生成手段15においては、マト
リクスC′,D′はマトリクスA,Bから下記の式(5
2)、(53)に示すように生成される。
In the parameter generating means 15, the matrices C 'and D' are obtained from the matrices A and B by the following equation (5).
2), generated as shown in (53).

【0147】C′=A−1B (52) D′=E−C (53) なおマトリクスC′,D′は、上記第9および第10の
実施形態におけるマトリクスC,Dと同様に、白色点を
変化させることなく他の色を変化させることができるも
のである。
C ′ = A −1 B (52) D ′ = E−C (53) The matrices C ′ and D ′ are the same as the matrices C and D in the ninth and tenth embodiments. Other colors can be changed without changing the point.

【0148】第6のカラーバランス調整処理手段17′
においては、下記の式(54)に示すように三刺激値L
0,M0,S0をマトリクスC′により変換してカラー
バランス調整処理が行われて、処理済み三刺激値L
6′,M6′,S6′が得られる。
Sixth color balance adjustment processing means 17 '
, The tristimulus value L as shown in the following equation (54)
0, M0, and S0 are converted by the matrix C 'to perform color balance adjustment processing, and the processed tristimulus values L
6 ', M6' and S6 'are obtained.

【0149】[0149]

【数35】 第7のカラーバランス調整処理手段18′においては、
下記の式(55)に示すように三刺激値L0,M0,S
0をマトリクスD′により変換してカラーバランス調整
処理が行われて、処理済み三刺激値L7′,M7′,S
7′が得られる。
(Equation 35) In the seventh color balance adjustment processing means 18 ',
As shown in the following equation (55), tristimulus values L0, M0, S
0 is converted by the matrix D 'to perform color balance adjustment processing, and the processed tristimulus values L7', M7 ', S
7 'is obtained.

【0150】[0150]

【数36】 重み付け加算手段27においては、処理済み三刺激値L
6′,M6′,S6′と処理済み三刺激値L7′,M
7′,S7′とが所定の比率αにより下記の式(56)
に示すように重み付け加算されて加算三刺激値L9,M
9,S9が得られる。
[Equation 36] In the weighting and adding means 27, the processed tristimulus value L
6 ', M6', S6 'and the processed tristimulus values L7', M
7 ′ and S7 ′ are determined by the following equation (56) according to a predetermined ratio α.
Are weighted and added as shown in FIG.
9, S9 are obtained.

【0151】[0151]

【数37】 第1のカラーバランス調整処理手段5は、加算三刺激値
L9,M9,S9をマトリクスAにより変換してカラー
バランス調整処理が施された処理済み三刺激値L8,M
8,S8を得る。
(37) The first color balance adjustment processing unit 5 converts the added tristimulus values L9, M9, and S9 using the matrix A and performs the processed tristimulus values L8, M that have been subjected to the color balance adjustment processing.
8, S8 is obtained.

【0152】ここで、第11の実施形態においては、第
6および第7のカラーバランス調整処理手段17′,1
8′において、白色を保存しつつ白色以外の色に対する
補正比率を変更し、第1のカラーバランス調整処理手段
5において白色を補正する構成となっている。
Here, in the eleventh embodiment, the sixth and seventh color balance adjustment processing means 17 ', 1
8 ', the correction ratio for colors other than white is changed while preserving white, and the first color balance adjustment processing means 5 corrects white.

【0153】なお、第11の実施形態の第1のカラーバ
ランス調整処理手段5において得られる処理済み三刺激
値と第9の実施形態の重み付け加算手段27において得
られる加算三刺激値L8,M8,S8とは同一のものと
なるため、同一の参照符号を用いる。また、RGB変換
手段8において得られる処理済み画像データは、第1の
実施形態において得られる処理済み画像データと同一の
ものとなるため、参照符号S3を用いるものとする。
The processed tristimulus values obtained by the first color balance adjustment processing means 5 of the eleventh embodiment and the added tristimulus values L8, M8,... Obtained by the weighting addition means 27 of the ninth embodiment. Since S8 is the same, the same reference numeral is used. Further, the processed image data obtained by the RGB conversion means 8 is the same as the processed image data obtained in the first embodiment, so that the reference numeral S3 is used.

【0154】次いで、第11の実施形態の動作について
説明する。なお、第11の実施形態においては、上記第
9の実施形態におけるカラーバランス調整処理のみが異
なるため、このカラーバランス調整処理の動作について
のみ説明する。LMS変換手段4において画像データS
0を構成する色信号R0,G0,B0を変換することに
より得られた三刺激値L0,M0,S0は、第6および
第7のカラーバランス調整処理手段17′,18′に入
力される。三刺激値L0,M0,S0は、第6および第
7のカラーバランス調整手段17′,18′において、
それぞれマトリクスC′,D′によるカラーバランス調
整処理が施されて、処理済み三刺激値L6′,M6′,
S6′、L7′,M7′,S7′が得られる。処理済み
三刺激値L6′,M6′,S6′、L7′,M7′,S
7′は重み付け加算手段27に入力され、ここで重み付
け加算がなされて加算三刺激値L9,M9,S9が得ら
れる。加算三刺激値L9,M9,S9は第1のカラーバ
ランス調整手段5に入力され、ここでマトリクスAによ
るカラーバランス調整処理が施されて、処理済み三刺激
値L8,M8,S8が得られる。処理済み三刺激値L
8,M8,S8はRGB変換手段8においてRGB色空
間に変換されて処理済み画像データS3が得られる。
Next, the operation of the eleventh embodiment will be described. Note that, in the eleventh embodiment, only the color balance adjustment processing in the ninth embodiment is different, so only the operation of the color balance adjustment processing will be described. In the LMS conversion means 4, the image data S
The tristimulus values L0, M0, S0 obtained by converting the color signals R0, G0, B0 constituting 0 are input to the sixth and seventh color balance adjustment processing means 17 ', 18'. The tristimulus values L0, M0, S0 are obtained by the sixth and seventh color balance adjusting means 17 ', 18'.
A color balance adjustment process is performed using the matrices C ′ and D ′, and the processed tristimulus values L6 ′, M6 ′,
S6 ', L7', M7 ', and S7' are obtained. Processed tristimulus values L6 ', M6', S6 ', L7', M7 ', S
7 'is input to the weighted addition means 27, where weighted addition is performed to obtain added tristimulus values L9, M9, S9. The added tristimulus values L9, M9, S9 are input to the first color balance adjusting means 5, where the color balance adjustment processing is performed by the matrix A, and the processed tristimulus values L8, M8, S8 are obtained. Treated tristimulus value L
8, M8 and S8 are converted to an RGB color space by an RGB conversion means 8 to obtain processed image data S3.

【0155】次いで、本発明の第12の実施形態につい
て説明する。図21は本発明の第12の実施形態による
カラーバランス調整装置の構成を示す概略ブロック図で
ある。なお、第12の実施形態において、第10の実施
形態と同一の構成については同一の参照番号を付し、詳
細な説明は省略する。第12の実施形態によるカラーバ
ランス調整装置1は、パラメータ生成手段15において
生成されたマトリクスC′,D′を重み付け加算手段2
7′において重み付け加算して加算マトリクスM3を
得、第8のカラーバランス調整処理手段19′におい
て、LMS変換手段4において得られた三刺激値L0,
M0,S0に対して加算マトリクスM3によってカラー
バランス調整処理を施して処理済み三刺激値L10,M
10,S10を得、この処理済み三刺激値L10,M1
0,S10に対して第1のカラーバランス調整処理手段
5においてマトリクスAによるカラーバランス調整処理
を施して処理済み三刺激値L8,M8,S8を得るよう
にしたものである。
Next, a twelfth embodiment of the present invention will be described. FIG. 21 is a schematic block diagram showing the configuration of the color balance adjustment device according to the twelfth embodiment of the present invention. In the twelfth embodiment, the same components as those in the tenth embodiment are denoted by the same reference numerals, and detailed description thereof will be omitted. The color balance adjusting apparatus 1 according to the twelfth embodiment is configured such that the matrices C ′ and D ′ generated by the parameter
7 ', weighted addition is performed to obtain an addition matrix M3. Eighth color balance adjustment processing means 19' outputs tristimulus values L0, L0,
M0 and S0 are subjected to color balance adjustment processing by an addition matrix M3, and processed tristimulus values L10 and M
10, S10, and the processed tristimulus values L10, M1
The first color balance adjustment processing means 5 performs a color balance adjustment process using a matrix A on 0 and S10 to obtain processed tristimulus values L8, M8 and S8.

【0156】ここで、第8のカラーバランス調整処理手
段は第10の実施形態における第5のカラーバランス調
整処理手段に対応するため、参照符号として19′を用
いる。
Here, since the eighth color balance adjustment processing means corresponds to the fifth color balance adjustment processing means in the tenth embodiment, reference numeral 19 'is used.

【0157】重み付け加算手段27′においては、下記
の式(57)によりマトリクスC′,D′が重み付け加
算されて加算マトリクスM3が得られる。
In the weighting addition means 27 ', the matrices C' and D 'are weighted and added according to the following equation (57) to obtain an addition matrix M3.

【0158】M3=C′+αD′ (57) 第8のカラーバランス調整手段19′においては、下記
の式(58)に示すように三刺激値L0,M0,S0が
加算マトリクスM3により変換されてカラーバランス調
整処理が行われて、処理済み三刺激値L10,M10,
S10が得られる。
M3 = C '+ αD' (57) In the eighth color balance adjusting means 19 ', the tristimulus values L0, M0, S0 are converted by the addition matrix M3 as shown in the following equation (58). A color balance adjustment process is performed, and the processed tristimulus values L10, M10,
S10 is obtained.

【0159】[0159]

【数38】 なお、第12の実施形態の第1のカラーバランス調整処
理手段5において得られる処理済み三刺激値は第9の実
施形態の重み付け加算手段27において得られる加算三
刺激値L8,M8,S8と同一のものとなるため同一の
参照符号を用いる。また、RGB変換手段8において得
られる処理済み画像データは、第1の実施形態において
得られる処理済み画像データと同一のものとなるため、
参照符号S3を用いるものとする。
(38) The processed tristimulus values obtained by the first color balance adjustment processing means 5 of the twelfth embodiment are the same as the added tristimulus values L8, M8, S8 obtained by the weighting addition means 27 of the ninth embodiment. , The same reference numerals are used. The processed image data obtained by the RGB conversion means 8 is the same as the processed image data obtained in the first embodiment.
It is assumed that reference numeral S3 is used.

【0160】次いで、第12の実施形態の動作について
説明する。なお、第12の実施形態においては、上記第
10の実施形態におけるカラーバランス調整処理のみが
異なるため、このカラーバランス調整処理の動作につい
てのみ説明する。パラメータ生成手段15において生成
されたマトリクスC′,D′は重み付け加算手段27′
において重み付け加算されて加算マトリクスM3が得ら
れる。LMS変換手段4において画像データS0を構成
する色信号R0,G0,B0を変換することにより得ら
れた三刺激値L0,M0,S0は、第8のカラーバラン
ス調整処理手段19′に入力され、ここで三刺激値L
0,M0,S0に対して加算マトリクスM3によるカラ
ーバランス調整処理が施されて、処理済み三刺激値L1
0,M10,S10が得られる。処理済み三刺激値L1
0,M10,S10は第1のカラーバランス調整処理手
段5に入力され、ここでマトリクスAによるカラーバラ
ンス調整処理が施されて、処理済み三刺激値L8,M
8,S8が得られる。処理済み三刺激値L8,M8,S
8はRGB変換手段8においてRGB色空間に変換され
て処理済み画像データS3が得られる。
Next, the operation of the twelfth embodiment will be described. In the twelfth embodiment, only the color balance adjustment processing in the tenth embodiment is different, and therefore only the operation of the color balance adjustment processing will be described. The matrices C 'and D' generated by the parameter generating means 15 are weighted and added by 27 '.
Are weighted and added to obtain an addition matrix M3. The tristimulus values L0, M0, S0 obtained by converting the color signals R0, G0, B0 constituting the image data S0 in the LMS conversion means 4 are input to an eighth color balance adjustment processing means 19 '. Where the tristimulus value L
0, M0, and S0 are subjected to color balance adjustment processing by an addition matrix M3, and the processed tristimulus values L1
0, M10 and S10 are obtained. Treated tristimulus value L1
0, M10, and S10 are input to the first color balance adjustment processing means 5, where the color balance adjustment processing is performed by the matrix A, and the processed tristimulus values L8, M
8, S8 are obtained. Processed tristimulus values L8, M8, S
8 is converted to an RGB color space by an RGB conversion means 8 to obtain processed image data S3.

【0161】なお、上記第9から第12の実施形態は、
白色点推定手段14、パラメータ生成手段15およびデ
ータベース16を備え、画像データS0から算出された
白色点に基づいてマトリクスA,C,D,C′,D′を
生成しているが、第1の実施形態と同様にデータベース
9および入力手段10を備える構成とし、データベース
9にマトリクスA,C,D,C′,D′を記憶してお
き、入力手段10からの撮影光源の入力に応じてマトリ
クスA,C,D,C′,D′を読み出してカラーバラン
ス調整処理手段に入力するようにしてもよい。
Note that the ninth to twelfth embodiments are
It has white point estimating means 14, parameter generating means 15, and database 16, and generates matrices A, C, D, C ', D' based on white points calculated from image data S0. As in the embodiment, a database 9 and an input unit 10 are provided, and matrices A, C, D, C ′, and D ′ are stored in the database 9, and the matrixes are stored in accordance with the input of the imaging light source from the input unit 10. A, C, D, C ', D' may be read out and input to the color balance adjustment processing means.

【0162】また、上記第1から第12の実施形態にお
いては、重み付け加算手段7,7′,27,27′にお
ける重み付け加算の比率αを固定としているが、撮影光
源に応じてこの比率αを変更してもよい。以下、比率α
を変更するカラーバランス調整装置の実施形態を第13
の実施形態として説明する。
In the first to twelfth embodiments, the ratio α of the weighting addition in the weighting and adding means 7, 7 ', 27, 27' is fixed. May be changed. Hereinafter, the ratio α
Embodiment 13 of the color balance adjusting device for changing
An embodiment will be described.

【0163】図22は本発明の第13の実施形態による
カラーバランス調整装置の構成を示す概略ブロック図で
ある。なお、比率αの変更は上記第1から第12の実施
形態のいずれのカラーバランス調整装置においても行う
ことができるが、ここでは第1の実施形態によるカラー
バランス調整装置において比率αを変更するものとして
説明する。図22に示すように本発明の第13の実施形
態によるカラーバランス調整装置1は、第1の実施形態
と同様の読出手段3、LMS変換手段4、第1のカラー
バランス調整処理手段5、第2のカラーバランス調整処
理手段6、重み付け加算手段7、RGB変換手段8、デ
ータベース9および入力手段10と、入力手段10から
入力される撮影光源の情報に基づいて重み付け加算手段
7における重み付け加算の比率αを変更する変更手段2
0とを備え、撮影光源の情報に応じて処理済み三刺激値
L1,M1,S1と処理済み三刺激値L2,M2,S2
との加算比率αを変更するようにしたものである。
FIG. 22 is a schematic block diagram showing the configuration of a color balance adjusting device according to the thirteenth embodiment of the present invention. The change of the ratio α can be performed in any of the color balance adjusting devices of the first to twelfth embodiments. However, here, the change of the ratio α in the color balance adjusting device of the first embodiment is described. It will be described as. As shown in FIG. 22, a color balance adjustment device 1 according to a thirteenth embodiment of the present invention includes a reading unit 3, an LMS conversion unit 4, a first color balance adjustment processing unit 5, and a 2 color balance adjustment processing means 6, weighting and adding means 7, RGB converting means 8, database 9, input means 10, and the ratio of weighted addition in weighting and adding means 7 based on information on the imaging light source inputted from input means 10 Changing means 2 for changing α
0, and the processed tristimulus values L1, M1, S1 and the processed tristimulus values L2, M2, S2 according to the information of the imaging light source.
Is changed.

【0164】すなわち、撮影光源が昼光の場合にはマト
リクスAのみによる処理であっても色が不自然なものと
なる場合は少なく、比率αは1に近いものであることが
好ましい。一方、撮影光源が蛍光灯の場合には比率αは
0に近いものであることが好ましい。したがって、変更
手段20においては、入力手段10から入力された撮影
光源の情報に基づいて、例えば、撮影光源が昼光の場合
は比率αを1に近いものとし、撮影光源が蛍光灯の場合
は比率αを0に近いものとするように重み付け加算手段
7における比率αを変更する。これにより、撮影光源の
種類に応じてより適切なカラーバランス調整処理を行う
ことができる。
That is, when the photographing light source is daylight, the color rarely becomes unnatural even if the processing is performed only by the matrix A, and the ratio α is preferably close to 1. On the other hand, when the imaging light source is a fluorescent light, the ratio α is preferably close to zero. Therefore, in the changing unit 20, for example, when the imaging light source is daylight, the ratio α is close to 1 based on the information of the imaging light source input from the input unit 10, and when the imaging light source is a fluorescent lamp, The ratio α in the weighting and adding means 7 is changed so that the ratio α is close to 0. Thereby, more appropriate color balance adjustment processing can be performed according to the type of the imaging light source.

【0165】さらに、上記第1から第13の実施形態に
おいては、本発明によるカラーバランス調整装置を単独
の装置として用いているが、本発明によるカラーバラン
ス調整装置をプリンタに設けてもよい。
In the first to thirteenth embodiments, the color balance adjusting device according to the present invention is used as a single device. However, the color balance adjusting device according to the present invention may be provided in a printer.

【0166】また、本発明によるカラーバランス調整装
置をデジタルカメラ2に設けてもよい。以下、これを第
14の実施形態として説明する。図23は本発明の第1
4の実施形態によるカラーバランス調整装置を備えたデ
ジタルカメラの構成を示す概略ブロック図である。な
お、デジタルカメラ2には上記第1から第13の実施形
態のいずれのカラーバランス調整装置を設けることがで
きるが、ここでは第1の実施形態によるカラーバランス
調整装置を設けたものとして説明する。図23に示すよ
うにデジタルカメラ2は、CCD等の撮像手段21と、
第1の実施形態と同様の読出手段3、LMS変換手段
4、第1のカラーバランス調整処理手段5、第2のカラ
ーバランス調整処理手段6、重み付け加算手段7、RG
B変換手段8、データベース9および入力手段10を備
え、RGB変換手段8において得られた処理済み画像デ
ータS3をメモリカード2Aに記憶するものである。
The digital camera 2 may be provided with a color balance adjusting device according to the present invention. Hereinafter, this will be described as a fourteenth embodiment. FIG. 23 shows the first embodiment of the present invention.
FIG. 14 is a schematic block diagram illustrating a configuration of a digital camera including a color balance adjustment device according to a fourth embodiment. Note that the digital camera 2 can be provided with any of the color balance adjustment devices of the first to thirteenth embodiments. Here, the description will be made assuming that the color balance adjustment device according to the first embodiment is provided. As shown in FIG. 23, the digital camera 2 includes an imaging unit 21 such as a CCD,
Readout means 3, LMS conversion means 4, first color balance adjustment processing means 5, second color balance adjustment processing means 6, weighting addition means 7, RG similar to the first embodiment.
It comprises a B conversion means 8, a database 9 and an input means 10, and stores the processed image data S3 obtained by the RGB conversion means 8 in the memory card 2A.

【0167】以下、第14の実施形態の動作について説
明する。図24は第5の実施形態の動作を示すフローチ
ャートである。まず、撮像手段21において被写体が撮
像されて画像データS0が得られる(ステップS6
1)。そして、LMS変換手段4において画像データS
0を構成する色信号R0,G0,B0が生理原色に基づ
く三刺激値L0,M0,S0に変換される(ステップS
62)。一方、入力手段10から入力された撮影光源種
に応じて、マトリクスA,Bがデータベース9から読み
出されて第1および第2のカラーバランス調整手段5,
6に入力される(ステップS63)。
Hereinafter, the operation of the fourteenth embodiment will be described. FIG. 24 is a flowchart showing the operation of the fifth embodiment. First, a subject is imaged by the imaging means 21 to obtain image data S0 (step S6).
1). Then, the image data S
The color signals R0, G0, B0 constituting 0 are converted into tristimulus values L0, M0, S0 based on physiological primary colors (step S).
62). On the other hand, the matrices A and B are read out from the database 9 in accordance with the type of photographing light source input from the input means 10, and the first and second color balance adjusting means 5,
6 (step S63).

【0168】三刺激値L0,M0,S0は第1および第
2のカラーバランス調整手段5,6に入力され、ここで
それぞれマトリクスA,Bによるカラーバランス調整処
理が施されて、処理済み三刺激値L1,M1,S1、L
2,M2,S2が得られる(ステップS64)。処理済
み三刺激値L1,M1,S1、L2,M2,S2は重み
付け加算手段7に入力され、ここで重み付け加算がなさ
れて加算三刺激値L3,M3,S3が得られる(ステッ
プS65)。加算三刺激値L3,M3,S3はRGB変
換手段8においてRGB色空間に変換されて処理済み画
像データS3が得られる(ステップS66)。処理済み
画像データS3はメモリカード2Aに記憶され(ステッ
プS67)、処理を終了する。
The tristimulus values L0, M0, S0 are input to first and second color balance adjusting means 5, 6, where color balance adjustment processing is performed by matrices A and B, respectively, and the processed tristimulus values are processed. Values L1, M1, S1, L
2, M2 and S2 are obtained (step S64). The processed tristimulus values L1, M1, S1, L2, M2, and S2 are input to the weighting and adding means 7, where weighted addition is performed to obtain the added tristimulus values L3, M3, and S3 (step S65). The added tristimulus values L3, M3, and S3 are converted into the RGB color space by the RGB conversion means 8 to obtain processed image data S3 (step S66). The processed image data S3 is stored in the memory card 2A (step S67), and the process ends.

【0169】なお、上記各実施形態においては、LMS
色空間においてカラーバランス調整処理を行っている
が、とくに第14の実施形態のように本発明によるカラ
ーバランス調整装置をデジタルカメラに設けた場合は、
装置の構成を簡易なものとするためにRGB色空間にお
いてカラーバランス調整処理を行うことが好ましい。以
下、RGB色空間においてカラーバランス調整処理を行
うカラーバランス調整装置について第15の実施形態と
して説明する。なお、RGB色空間におけるカラーバラ
ンス調整処理は、上記第1から第13の実施形態による
カラーバランス調整装置および上記第14の実施形態に
よるカラーバランス調整装置を備えたデジタルカメラの
いずれにおいても行うことができるが、ここではデジタ
ルカメラにRGB色空間におけるカラーバランス調整装
置を設けたものとして説明する。
In each of the above embodiments, the LMS
Although the color balance adjustment processing is performed in the color space, especially when the digital camera is provided with the color balance adjustment device according to the present invention as in the fourteenth embodiment,
It is preferable to perform color balance adjustment processing in the RGB color space in order to simplify the configuration of the device. Hereinafter, a color balance adjustment device that performs a color balance adjustment process in the RGB color space will be described as a fifteenth embodiment. The color balance adjustment processing in the RGB color space can be performed in any of the color balance adjustment devices according to the first to thirteenth embodiments and the digital camera including the color balance adjustment device according to the fourteenth embodiment. Although it is possible, a description will be given here assuming that a digital camera is provided with a color balance adjusting device in an RGB color space.

【0170】図25は本発明の第15の実施形態による
カラーバランス調整装置を備えたデジタルカメラの構成
を示す概略ブロック図である。図25に示すようにこの
デジタルカメラ2は、撮像手段21、第1のカラーバラ
ンス調整処理手段5′、第2のカラーバランス調整処理
手段6′、重み付け加算手段7、入力手段10、および
データベース9を備える。データベース9には画像デー
タS0を構成する色信号R0,G0,B0に対してRG
B色空間においてカラーバランス調整処理を施すマトリ
クスA′,B′が記憶されている。ここで、マトリクス
A′はLMS色空間においてカラーバランス調整処理を
行うマトリクスAに対応し、マトリクスB′はマトリク
スBに対応する。そして、第1のカラーバランス調整処
理手段5′において、マトリクスA′により色信号R
0,G0,B0に対してカラーバランス調整処理を施し
て処理済み色信号R21,G21,B21を得、第2の
カラーバランス調整処理手段6′において、マトリクス
B′により色信号R0,G0,B0に対してカラーバラ
ンス調整処理を施して処理済み色信号R22,G22,
B22を得、これらの処理済み色信号R21,G21,
B21、R22,G22,B22を重み付け加算手段7
において加算して加算色信号R23,G23,B23を
得、これを処理済み画像データS3とするものである。
FIG. 25 is a schematic block diagram showing the configuration of a digital camera provided with a color balance adjusting device according to the fifteenth embodiment of the present invention. As shown in FIG. 25, the digital camera 2 includes an imaging unit 21, a first color balance adjustment processing unit 5 ', a second color balance adjustment processing unit 6', a weighting addition unit 7, an input unit 10, and a database 9 Is provided. The database 9 stores RG for the color signals R0, G0, B0 constituting the image data S0.
Matrixes A 'and B' for performing color balance adjustment processing in the B color space are stored. Here, the matrix A 'corresponds to the matrix A for performing the color balance adjustment processing in the LMS color space, and the matrix B' corresponds to the matrix B. Then, in the first color balance adjustment processing means 5 ', the color signal R is calculated by the matrix A'.
0, G0, and B0 are subjected to color balance adjustment processing to obtain processed color signals R21, G21, and B21. The color signals R0, G0, and B0 are processed by the matrix B 'in the second color balance adjustment processing means 6'. Is subjected to color balance adjustment processing, and processed color signals R22, G22,
B22, and these processed color signals R21, G21,
B21, R22, G22, and B22 are weighted and added by means 7
Are added to obtain added color signals R23, G23, and B23, which are used as processed image data S3.

【0171】このように、RGB色空間においてカラー
バランス調整処理を行うことにより、画像データS0の
RGB色空間からLMS色空間への色変換、およびLM
S色空間からRGB色空間への色変換を行う必要がなく
なるため、装置の構成を簡易なものとすることができ、
かつ処理を高速に行うことができる。
As described above, by performing the color balance adjustment processing in the RGB color space, the color conversion of the image data S0 from the RGB color space to the LMS color space and the LM
Since there is no need to perform color conversion from the S color space to the RGB color space, the configuration of the device can be simplified,
In addition, processing can be performed at high speed.

【0172】なお、上記第5から第12の実施形態にお
いては、上記式(4)、(5)、(12)、(6)およ
び(7)により画像データS0の白色点の三刺激値を推
定しているが、例えば特願平11−70186号に記載
された白色点推定方法により画像データS0の白色点の
三刺激値を推定してもよい。以下、特願平11−701
86号に記載された白色点の三刺激値の推定方法につい
て説明する。
In the fifth to twelfth embodiments, the tristimulus values of the white point of the image data S0 are calculated by the above equations (4), (5), (12), (6) and (7). Although the estimation is performed, for example, the tristimulus values of the white point of the image data S0 may be estimated by the white point estimation method described in Japanese Patent Application No. 11-70186. Hereafter, Japanese Patent Application No. 11-701
No. 86 describes a method of estimating tristimulus values of a white point.

【0173】まず、画像データS0を構成する色信号R
0,G0,B0から式(4)、(5)により正規化した
色信号R1,G1,B1を得、色信号R1,G1,B1
を式(6)によりCIE1931XYZ三刺激値に変換
するとともに、下記の式(59)によりCIE1976
uv色度値に変換する。
First, the color signal R constituting the image data S0
The color signals R1, G1, and B1 normalized by the equations (4) and (5) are obtained from 0, G0, and B0, and the color signals R1, G1, and B1 are obtained.
Is converted to a CIE1931XYZ tristimulus value by the equation (6), and the CIE1976 is calculated by the following equation (59).
uv chromaticity value.

【0174】 u=4X/(X+15Y+3Z) v=9Y/(X+15Y+3Z) (59) そして、上記式(59)により求められた色度値u,v
の平均値u0,v0を下記の式(60)により算出す
る。
U = 4X / (X + 15Y + 3Z) v = 9Y / (X + 15Y + 3Z) (59) Then, the chromaticity values u and v obtained by the above equation (59)
Is calculated by the following equation (60).

【0175】 u0=Σu/n v0=Σv/n (60) 但し、n:画素数 次いで平均値u0,v0を下記の式(61)〜(63)
により生理原色L0,M0,S0に変換する。
U0 = Σu / n v0 = Σv / n (60) where n is the number of pixels, and then the average values u0 and v0 are calculated by the following equations (61) to (63).
To convert them into physiological primary colors L0, M0, S0.

【0176】 sx=9.0×u0(6.0×u0−16.0×v0+12.0) sy=4.0×v0(6.0×u0−16.0×v0+12.0) (61) X0=sx/sy Y0=100.0 (62) Z0=(1.0−sx−sy)/sy L0 X0 M0 =Z・Y0 (63) S0 Z0 ここで、マトリクスZは、式(7)におけるマトリクス
である。そして、このようにして求められた生理原色L
0,M0,S0を画像データS0の白色点の三刺激値と
するものである。
Sx = 9.0 × u0 (6.0 × u0-16.0 × v0 + 12.0) sy = 4.0 × v0 (6.0 × u0-16.0 × v0 + 12.0) (61) X0 = sx / sy Y0 = 100.0 (62) ) Z0 = (1.0−sx−sy) / sy L0 X0 M0 = Z · Y0 (63) S0 Z0 Here, the matrix Z is the matrix in the equation (7). And the physiological primary color L obtained in this way
0, M0, and S0 are the tristimulus values of the white point of the image data S0.

【0177】さらに、上記各実施形態においては、RG
Bの色信号からなる画像データS0に対してカラーバラ
ンス調整処理を施しているが、これに限定されるもので
はなく、CMYの色信号からなる画像データS0に対し
てカラーバランス調整処理を施すものであってもよい。
In each of the above embodiments, RG
The color balance adjustment processing is performed on the image data S0 composed of the B color signal. However, the present invention is not limited to this. The color balance adjustment processing is performed on the image data S0 composed of the CMY color signals. It may be.

【0178】また、上記各実施形態においては、カラー
バランス調整処理を施す画像データを、所定の光源下に
おいて観察することを前提としたカラーバランス調整処
理が既に施された画像データとしてもよい。
In each of the above embodiments, image data to be subjected to color balance adjustment processing may be image data to which color balance adjustment processing has already been performed on the assumption that observation is performed under a predetermined light source.

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

【図1】本発明の第1の実施形態によるカラーバランス
調整装置の構成を示す概略ブロック図
FIG. 1 is a schematic block diagram illustrating a configuration of a color balance adjustment device according to a first embodiment of the present invention.

【図2】第1の実施形態の動作を示すフローチャートFIG. 2 is a flowchart showing the operation of the first embodiment;

【図3】本発明の第2の実施形態によるカラーバランス
調整装置の構成を示す概略ブロック図
FIG. 3 is a schematic block diagram illustrating a configuration of a color balance adjustment device according to a second embodiment of the present invention.

【図4】第2の実施形態の動作を示すフローチャートFIG. 4 is a flowchart showing the operation of the second embodiment.

【図5】第1の実施形態における画像データの変換の系
を示す図
FIG. 5 is a diagram showing a system for converting image data according to the first embodiment;

【図6】本発明の第3の実施形態によるカラーバランス
調整装置の構成を示す概略ブロック図
FIG. 6 is a schematic block diagram illustrating a configuration of a color balance adjustment device according to a third embodiment of the present invention.

【図7】第3の実施形態の動作を示すフローチャートFIG. 7 is a flowchart showing the operation of the third embodiment.

【図8】本発明の第4の実施形態によるカラーバランス
調整装置の構成を示す概略ブロック図
FIG. 8 is a schematic block diagram illustrating a configuration of a color balance adjustment device according to a fourth embodiment of the present invention.

【図9】第4の実施形態の動作を示すフローチャートFIG. 9 is a flowchart showing the operation of the fourth embodiment.

【図10】本発明の第5の実施形態によるカラーバラン
ス調整装置の構成を示す概略ブロック図
FIG. 10 is a schematic block diagram illustrating a configuration of a color balance adjustment device according to a fifth embodiment of the present invention.

【図11】LMS色空間におけるマトリクスの生成を説
明するための図(その1)
FIG. 11 is a diagram for explaining generation of a matrix in an LMS color space (part 1)

【図12】LMS色空間におけるマトリクスの生成を説
明するための図(その2)
FIG. 12 is a diagram for explaining generation of a matrix in the LMS color space (part 2)

【図13】本発明の第6の実施形態によるカラーバラン
ス調整装置の構成を示す概略ブロック図
FIG. 13 is a schematic block diagram illustrating a configuration of a color balance adjustment device according to a sixth embodiment of the present invention.

【図14】本発明の第7の実施形態によるカラーバラン
ス調整装置の構成を示す概略ブロック図
FIG. 14 is a schematic block diagram illustrating a configuration of a color balance adjustment device according to a seventh embodiment of the present invention.

【図15】本発明の第8の実施形態によるカラーバラン
ス調整装置の構成を示す概略ブロック図
FIG. 15 is a schematic block diagram illustrating a configuration of a color balance adjustment device according to an eighth embodiment of the present invention.

【図16】本発明の第9の実施形態によるカラーバラン
ス調整装置の構成を示す概略ブロック図
FIG. 16 is a schematic block diagram illustrating a configuration of a color balance adjustment device according to a ninth embodiment of the present invention.

【図17】第9の実施形態の動作を示すフローチャートFIG. 17 is a flowchart showing the operation of the ninth embodiment;

【図18】本発明の第10の実施形態によるカラーバラ
ンス調整装置の構成を示す概略ブロック図
FIG. 18 is a schematic block diagram illustrating a configuration of a color balance adjustment device according to a tenth embodiment of the present invention.

【図19】第10の実施形態の動作を示すフローチャー
FIG. 19 is a flowchart showing the operation of the tenth embodiment.

【図20】本発明の第11の実施形態によるカラーバラ
ンス調整装置の構成を示す概略ブロック図
FIG. 20 is a schematic block diagram illustrating a configuration of a color balance adjustment device according to an eleventh embodiment of the present invention.

【図21】本発明の第12の実施形態によるカラーバラ
ンス調整装置の構成を示す概略ブロック図
FIG. 21 is a schematic block diagram illustrating a configuration of a color balance adjustment device according to a twelfth embodiment of the present invention.

【図22】本発明の第13の実施形態によるカラーバラ
ンス調整装置の構成を示す概略ブロック図
FIG. 22 is a schematic block diagram illustrating a configuration of a color balance adjustment device according to a thirteenth embodiment of the present invention.

【図23】本発明の第14の実施形態によるカラーバラ
ンス調整装置の構成を示す概略ブロック図
FIG. 23 is a schematic block diagram illustrating a configuration of a color balance adjustment device according to a fourteenth embodiment of the present invention.

【図24】第14の実施形態の動作を示すフローチャー
FIG. 24 is a flowchart showing the operation of the fourteenth embodiment.

【図25】本発明の第15の実施形態によるカラーバラ
ンス調整装置の構成を示す概略ブロック図
FIG. 25 is a schematic block diagram illustrating a configuration of a color balance adjustment device according to a fifteenth embodiment of the present invention.

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

1 カラーバランス調整装置 2 デジタルカメラ 3 読出手段 4 LMS変換手段 5 第1のカラーバランス調整処理手段 6 第2のカラーバランス調整処理手段 7,7′,27,27′ 重み付け加算手段 8,13 RGB変換手段 9,16 データベース 10 入力手段 11 カラーバランス調整処理手段 12 正規化手段 14 白色点推定手段 15 パラメータ生成手段 17 第3のカラーバランス調整処理手段 18 第4のカラーバランス調整処理手段 19 第5のカラーバランス調整処理手段 20 変更手段 21 撮像手段 DESCRIPTION OF SYMBOLS 1 Color balance adjustment device 2 Digital camera 3 Reading means 4 LMS conversion means 5 First color balance adjustment processing means 6 Second color balance adjustment processing means 7, 7 ', 27, 27' Weighting addition means 8, 13 RGB conversion Means 9, 16 Database 10 Input means 11 Color balance adjustment processing means 12 Normalization means 14 White point estimation means 15 Parameter generation means 17 Third color balance adjustment processing means 18 Fourth color balance adjustment processing means 19 Fifth color Balance adjustment processing means 20 changing means 21 imaging means

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.7 識別記号 FI テーマコート゛(参考) H04N 9/79 H04N 1/40 D 5C079 // H04N 101:00 9/79 G Fターム(参考) 5B057 BA28 CA01 CB01 CC01 CE16 CH08 5C055 AA07 BA06 GA00 HA00 HA37 5C065 AA03 BB01 CC01 CC08 CC09 DD01 EE03 GG21 GG23 GG30 GG32 HH02 5C066 AA01 AA03 AA05 BA20 CA08 CA17 EA03 EA13 EC01 FA02 GA01 KA12 KE02 KE03 KE07 KF05 KM02 KM05 KM11 5C077 MP08 PP32 PP37 PP71 PQ12 PQ18 TT09 5C079 HB01 HB11 JA25 LA23 LB02 MA01 MA11 NA02 ──────────────────────────────────────────────────続 き Continued on the front page (51) Int.Cl. 7 Identification symbol FI Theme coat ゛ (Reference) H04N 9/79 H04N 1/40 D 5C079 // H04N 101: 00 9/79 G F-term (Reference) 5B057 BA28 CA01 CB01 CC01 CE16 CH08 5C055 AA07 BA06 GA00 HA00 HA37 5C065 AA03 BB01 CC01 CC08 CC09 DD01 EE03 GG21 GG23 GG30 GG32 HH02 5C066 AA01 AA03 AA05 BA20 CA08 CA17 EA03 EA13 EC01 FA02 GA01 KA03 KE03 KA02 PQ18 TT09 5C079 HB01 HB11 JA25 LA23 LB02 MA01 MA11 NA02

Claims (38)

【特許請求の範囲】[Claims] 【請求項1】 被写体を撮影することにより取得した
画像を表す画像データ、または所定の光源下において観
察することを前提としたカラーバランス調整処理が施さ
れた画像データに対してカラーバランスを調整する処理
を施して処理済み画像データを得るカラーバランス調整
方法において、 対角行列に基づく第1の変換パラメータによるカラーバ
ランス調整処理と、少なくとも1つの0でない非対角項
を含む非対角行列に基づく第2の変換パラメータによる
カラーバランス調整処理とを所定の比率により混合した
混合処理を前記画像データに施すことにより、前記処理
済み画像データを得ることを特徴とするカラーバランス
調整方法。
1. A color balance is adjusted for image data representing an image obtained by photographing a subject or image data subjected to a color balance adjustment process on the assumption that the image is observed under a predetermined light source. A color balance adjustment method for performing processing to obtain processed image data, comprising: a color balance adjustment process based on a first conversion parameter based on a diagonal matrix, and a color balance adjustment process based on a non-diagonal matrix including at least one non-zero off-diagonal term. A color balance adjustment method, wherein the processed image data is obtained by subjecting the image data to a mixing process in which a color balance adjustment process based on a second conversion parameter is mixed at a predetermined ratio.
【請求項2】 前記混合処理は、前記画像データを前
記第1の変換パラメータによって変換することにより第
1の中間画像データを得、 前記画像データを前記第2の変換パラメータによって変
換することにより第2の中間画像データを得、 前記第1および第2の中間画像データを前記所定の比率
により重み付け加算する処理であることを特徴とする請
求項1記載のカラーバランス調整方法。
2. The mixing process obtains first intermediate image data by converting the image data using the first conversion parameter, and converts the image data by using the second conversion parameter. 2. The color balance adjustment method according to claim 1, wherein the second and third intermediate image data are obtained by weighting and adding the first and second intermediate image data according to the predetermined ratio.
【請求項3】 前記混合処理は、前記第1の変換パラ
メータと前記第2の変換パラメータとを前記所定の比率
により重み付け加算して加算パラメータを得、 前記画像データを該加算パラメータによって変換する処
理であることを特徴とする請求項1記載のカラーバラン
ス調整方法。
3. The process of weighting and adding the first conversion parameter and the second conversion parameter according to the predetermined ratio to obtain an addition parameter, and converting the image data using the addition parameter. 2. The color balance adjusting method according to claim 1, wherein:
【請求項4】 前記混合処理は、前記画像データを前
記第1の変換パラメータによって変換することにより第
1の中間画像データを得、 該第1の中間画像データを、前記第1および第2の変換
パラメータに基づいて生成された白色を保存する第3の
変換パラメータによって変換することにより第2の中間
画像データを得、 前記第1の中間画像データを、前記第3の変換パラメー
タと単位パラメータとに基づいて生成された白色を保存
する第4の変換パラメータによって変換することにより
第3の中間画像データを得、 前記第2および第3の中間画像データを前記所定の比率
により重み付け加算する処理であることを特徴とする請
求項1記載のカラーバランス調整方法。
4. The mixing process obtains first intermediate image data by converting the image data using the first conversion parameter, and converts the first intermediate image data into the first and second image data. The second intermediate image data is obtained by converting the white image generated based on the conversion parameter by a third conversion parameter that stores the white, and the first intermediate image data is converted into the third conversion parameter, the unit parameter, and The third intermediate image data is obtained by converting with a fourth conversion parameter that stores the white color generated based on the second intermediate image data, and the second and third intermediate image data are weighted and added according to the predetermined ratio. 2. The color balance adjusting method according to claim 1, further comprising:
【請求項5】 前記混合処理は、前記画像データを前
記第1の変換パラメータによって変換することにより第
1の中間画像データを得、 前記第1および第2の変換パラメータに基づいて生成さ
れた白色を保存する第3の変換パラメータと、該第3の
変換パラメータと単位パラメータとに基づいて生成され
た白色を保存する第4の変換パラメータとを前記所定の
比率により重み付け加算して加算パラメータを得、 前記第1の中間画像データを該加算パラメータによって
変換する処理であることを特徴とする請求項1記載のカ
ラーバランス調整方法。
5. The mixing process obtains first intermediate image data by converting the image data according to the first conversion parameter, and generates a white image generated based on the first and second conversion parameters. And a fourth conversion parameter for storing white generated based on the third conversion parameter and the unit parameter are weighted and added according to the predetermined ratio to obtain an addition parameter. 2. The color balance adjustment method according to claim 1, wherein the first intermediate image data is converted by the addition parameter.
【請求項6】 前記混合処理は、前記画像データを、
前記第1および第2の変換パラメータに基づいて生成さ
れた白色を保存する第3の変換パラメータによって変換
することにより第1の中間画像データを得、 前記画像データを、前記第3の変換パラメータと単位パ
ラメータとに基づいて生成された白色を保存する第4の
変換パラメータによって変換することにより第2の中間
画像データを得、 前記第1および第2の中間画像データを前記所定の比率
によって重み付け加算することにより加算画像データを
得、 該加算画像データを前記第1の変換パラメータによって
変換する処理であることを特徴とする請求項1記載のカ
ラーバランス調整方法。
6. The image processing device according to claim 1, wherein the mixing process includes:
A first intermediate image data is obtained by converting the white data generated based on the first and second conversion parameters using a third conversion parameter that stores the white color. The second intermediate image data is obtained by converting the white image generated based on the unit parameter with a fourth conversion parameter that stores the white color, and the first and second intermediate image data are weighted and added by the predetermined ratio. 2. The color balance adjustment method according to claim 1, further comprising obtaining additional image data by performing the conversion, and converting the additional image data using the first conversion parameter.
【請求項7】 前記混合処理は、前記第1および第2
の変換パラメータに基づいて生成された白色を保存する
第3の変換パラメータと、該第3の変換パラメータと単
位パラメータとに基づいて生成された白色を保存する第
4の変換パラメータとを前記所定の比率により重み付け
加算して加算パラメータを得、 前記画像データを該加算パラメータによって変換するこ
とにより変換画像データを得、 該変換画像データを前記第1の変換パラメータによって
変換する処理であることを特徴とする請求項1記載のカ
ラーバランス調整方法。
7. The mixing process according to claim 1, wherein the first and second mixing processes are performed.
A third conversion parameter for storing the white color generated based on the conversion parameter of the above, and a fourth conversion parameter for storing the white color generated based on the third conversion parameter and the unit parameter, A weighted addition based on a ratio to obtain an addition parameter; converting the image data using the addition parameter to obtain converted image data; and converting the converted image data using the first conversion parameter. The color balance adjustment method according to claim 1.
【請求項8】 前記画像を撮影した撮影装置の分光特
性に関連する色空間において、前記混合処理を行うこと
を特徴とする請求項1から7のいずれか1項記載のカラ
ーバランス調整方法。
8. The color balance adjustment method according to claim 1, wherein the mixing process is performed in a color space related to a spectral characteristic of a photographing device that has photographed the image.
【請求項9】 人間の視覚特性に関連する色空間にお
いて、前記混合処理を行うことを特徴とする請求項1か
ら7のいずれか1項記載のカラーバランス調整方法。
9. The color balance adjustment method according to claim 1, wherein the mixing process is performed in a color space related to human visual characteristics.
【請求項10】 前記第1の変換パラメータは、人間
の視覚特性に関連する色空間において前記対角行列に基
づいて行われるカラーバランス調整処理を、前記画像を
撮影した撮影装置の分光特性に関連する色空間において
行うためのパラメータであり、 前記第2の変換パラメータは、人間の視覚特性に関連す
る色空間において前記非対角行列に基づいて行われるカ
ラーバランス調整処理を、前記画像を撮影した撮影装置
の分光特性に関連する色空間において行うためのパラメ
ータであることを特徴とする請求項1から3のいずれか
1項記載のカラーバランス調整方法。
10. The first conversion parameter relates to a color balance adjustment process performed based on the diagonal matrix in a color space related to a human visual characteristic, and relates to a spectral characteristic of a photographing apparatus that has photographed the image. The second conversion parameter is a color space adjustment process performed based on the off-diagonal matrix in a color space related to human visual characteristics, the image is captured 4. The color balance adjusting method according to claim 1, wherein the parameter is a parameter to be performed in a color space related to a spectral characteristic of the photographing device.
【請求項11】 前記画像データを撮影した際の撮影
光源の白色点を推定し、 該白色点に基づいて前記第1および第2の変換パラメー
タを生成することを特徴とする請求項1から10のいず
れか1項記載のカラーバランス調整方法。
11. The method according to claim 1, further comprising: estimating a white point of a photographing light source when photographing the image data, and generating the first and second conversion parameters based on the white point. The color balance adjusting method according to any one of the above items.
【請求項12】 前記画像データを撮影した際の撮影
光源の指定を受け付け、 該指定された撮影光源に応じて、前記所定の比率を変更
することを特徴とする請求項1から11のいずれか1項
記載のカラーバランス調整方法。
12. The apparatus according to claim 1, wherein a designation of a photographing light source at the time of photographing the image data is received, and the predetermined ratio is changed in accordance with the designated photographing light source. 2. The color balance adjustment method according to claim 1.
【請求項13】 被写体を撮影することにより取得し
た画像を表す画像データ、または所定の光源下において
観察することを前提としたカラーバランス調整処理が施
された画像データに対してカラーバランスを調整する処
理を施して処理済み画像データを得るカラーバランス調
整装置において、 対角行列に基づく第1の変換パラメータによるカラーバ
ランス調整処理と、少なくとも1つの0でない非対角項
を含む非対角行列に基づく第2の変換パラメータによる
カラーバランス調整処理とを所定の比率により混合した
混合処理を前記画像データに施すことにより、前記処理
済み画像データを得る混合処理手段を備えたことを特徴
とするカラーバランス調整装置。
13. A color balance is adjusted for image data representing an image obtained by photographing a subject, or image data subjected to color balance adjustment processing on the assumption that the image is observed under a predetermined light source. A color balance adjustment device for performing processing to obtain processed image data, comprising: a color balance adjustment process based on a first conversion parameter based on a diagonal matrix; and a color balance adjustment process including at least one nonzero off-diagonal term. A color processing unit that obtains the processed image data by performing a mixing process on the image data by mixing a color balance adjustment process based on a second conversion parameter with a predetermined ratio. apparatus.
【請求項14】 前記混合処理手段は、前記画像デー
タを前記第1の変換パラメータによって変換することに
より第1の中間画像データを得る第1の変換手段と、 前記画像データを前記第2の変換パラメータによって変
換することにより第2の中間画像データを得る第2の変
換手段と、 前記第1および第2の中間画像データを前記所定の比率
により重み付け加算する重み付け加算手段とを備えたこ
とを特徴とする請求項13記載のカラーバランス調整装
置。
14. The image processing apparatus according to claim 1, wherein the mixing processing unit converts the image data using the first conversion parameter to obtain first intermediate image data, and converts the image data into the second conversion data. A second conversion unit that obtains second intermediate image data by performing conversion with a parameter; and a weighting addition unit that weights and adds the first and second intermediate image data according to the predetermined ratio. The color balance adjusting device according to claim 13, wherein
【請求項15】 前記混合処理手段は、前記第1の変
換パラメータと前記第2の変換パラメータとを前記所定
の比率により重み付け加算して加算パラメータを得る重
み付け加算手段と、 前記画像データを該加算パラメータによって変換する変
換手段とを備えたことを特徴とする請求項13記載のカ
ラーバランス調整装置。
15. The weighting and adding means for obtaining an addition parameter by weighting and adding the first conversion parameter and the second conversion parameter according to the predetermined ratio; and adding the image data to the image data. 14. The color balance adjustment device according to claim 13, further comprising a conversion unit configured to perform conversion by a parameter.
【請求項16】 前記混合処理手段は、前記画像デー
タを前記第1の変換パラメータによって変換することに
より第1の中間画像データを得る第1の変換手段と、 該第1の中間画像データを、前記第1および第2の変換
パラメータに基づいて生成された白色を保存する第3の
変換パラメータによって変換することにより第2の中間
画像データを得る第2の変換手段と、 前記第1の中間画像データを、前記第3の変換パラメー
タと単位パラメータとに基づいて生成された白色を保存
する第4の変換パラメータによって変換することにより
第3の中間画像データを得る第3の変換手段と、 前記第2および第3の中間画像データを前記所定の比率
により重み付け加算する重み付け加算手段とを備えたこ
とを特徴とする請求項13記載のカラーバランス調整装
置。
16. The mixing processing means, wherein the first conversion means obtains first intermediate image data by converting the image data using the first conversion parameter; and A second conversion unit that obtains second intermediate image data by converting a white color generated based on the first and second conversion parameters using a third conversion parameter that stores the white color; and the first intermediate image. A third conversion unit that obtains third intermediate image data by converting the data by using a fourth conversion parameter that stores white generated based on the third conversion parameter and the unit parameter; 14. The color balun according to claim 13, further comprising: weighting and adding means for weighting and adding the second and third intermediate image data according to the predetermined ratio. Adjustment device.
【請求項17】 前記混合処理手段は、前記画像デー
タを前記第1の変換パラメータによって変換することに
より第1の中間画像データを得る第1の変換手段と、 前記第1および第2の変換パラメータに基づいて生成さ
れた白色を保存する第3の変換パラメータと、該第3の
変換パラメータと単位パラメータとに基づいて生成され
た白色を保存する第4の変換パラメータとを前記所定の
比率により重み付け加算して加算パラメータを得る重み
付け加算手段と、 前記第1の中間画像データを該加算パラメータによって
変換する第2の変換手段とを備えたことを特徴とする請
求項13記載のカラーバランス調整装置。
17. The first conversion unit for obtaining first intermediate image data by converting the image data by using the first conversion parameter, the mixing processing unit comprising: Weighting the third conversion parameter for storing the white color generated based on the third conversion parameter and the fourth conversion parameter for storing the white color generated based on the third conversion parameter and the unit parameter by the predetermined ratio 14. The color balance adjusting device according to claim 13, further comprising: a weighting addition unit that obtains an addition parameter by adding, and a second conversion unit that converts the first intermediate image data using the addition parameter.
【請求項18】 前記混合処理手段は、前記画像デー
タを、前記第1および第2の変換パラメータに基づいて
生成された白色を保存する第3の変換パラメータによっ
て変換することにより第1の中間画像データを得る第1
の変換手段と、 前記画像データを、前記第3の変換パラメータと単位パ
ラメータとに基づいて生成された白色を保存する第4の
変換パラメータによって変換することにより第2の中間
画像データを得る第2の変換手段と、 前記第1および第2の中間画像データを前記所定の比率
によって重み付け加算することにより加算画像データを
得る重み付け加算手段と、 該加算画像データを前記第1の変換パラメータによって
変換する第3の変換手段とを備えたことを特徴とする請
求項13記載のカラーバランス調整装置。
18. The first intermediate image by converting the image data by a third conversion parameter for storing white generated based on the first and second conversion parameters. First to get data
And a second conversion unit that converts the image data with a fourth conversion parameter that stores white generated based on the third conversion parameter and the unit parameter to obtain second intermediate image data. Conversion means; weighted addition means for obtaining added image data by weighting and adding the first and second intermediate image data according to the predetermined ratio; and converting the added image data by the first conversion parameter. 14. The color balance adjusting device according to claim 13, further comprising a third conversion unit.
【請求項19】 前記混合処理手段は、前記第1およ
び第2の変換パラメータに基づいて生成された白色を保
存する第3の変換パラメータと、該第3の変換パラメー
タと単位パラメータとに基づいて生成された白色を保存
する第4の変換パラメータとを前記所定の比率により重
み付け加算して加算パラメータを得る重み付け加算手段
と、 前記画像データを該加算パラメータによって変換するこ
とにより変換画像データを得る第1の変換手段と、 該変換画像データを前記第1の変換パラメータによって
変換する第2の変換手段とを備えたことを特徴とする請
求項13記載のカラーバランス調整装置。
19. The mixing processing means according to claim 3, further comprising: a third conversion parameter for storing a white color generated based on the first and second conversion parameters; and a third conversion parameter and a unit parameter. Weighting and adding means for obtaining an addition parameter by weighting and adding a fourth conversion parameter for storing the generated white color according to the predetermined ratio; and obtaining converted image data by converting the image data using the addition parameter. 14. The color balance adjusting device according to claim 13, further comprising: a first conversion unit; and a second conversion unit configured to convert the converted image data using the first conversion parameter.
【請求項20】 前記混合処理手段は、前記画像を撮
影した撮影装置の分光特性に関連する色空間において、
前記混合処理を行う手段であることを特徴とする請求項
13から19のいずれか1項記載のカラーバランス調整
装置。
20. The image processing apparatus according to claim 19, wherein the mixing processing unit includes:
20. The color balance adjustment device according to claim 13, wherein the color balance adjustment device is a unit that performs the mixing process.
【請求項21】 前記混合処理手段は、人間の視覚特
性に関連する色空間において、前記混合処理を行う手段
であることを特徴とする請求項13から19のいずれか
1項記載のカラーバランス調整装置。
21. The color balance adjustment according to claim 13, wherein said mixing processing means is means for performing said mixing processing in a color space related to human visual characteristics. apparatus.
【請求項22】 前記第1の変換パラメータは、人間
の視覚特性に関連する色空間において前記対角行列に基
づいて行われるカラーバランス調整処理を、前記画像を
撮影した撮影装置の分光特性に関連する色空間において
行うためのパラメータであり、 前記第2の変換パラメータは、人間の視覚特性に関連す
る色空間において前記非対角行列に基づいて行われるカ
ラーバランス調整処理を、前記画像を撮影した撮影装置
の分光特性に関連する色空間において行うためのパラメ
ータであることを特徴とする請求項13から15のいず
れか1項記載のカラーバランス調整装置。
22. The first conversion parameter relates to a color balance adjustment process performed based on the diagonal matrix in a color space related to human visual characteristics, and relates to a spectral characteristic of a photographing device that has photographed the image. The second conversion parameter is a color space adjustment process performed based on the off-diagonal matrix in a color space related to human visual characteristics, the image is captured 16. The color balance adjusting device according to claim 13, wherein the parameter is a parameter to be performed in a color space related to a spectral characteristic of the photographing device.
【請求項23】 前記画像データを撮影した際の撮影
光源の白色点を推定する白色点推定手段と、 該白色点に基づいて前記第1および第2の変換パラメー
タを生成するパラメータ生成手段とを備えたことを特徴
とする請求項13から22のいずれか1項記載のカラー
バランス調整装置。
23. A white point estimating means for estimating a white point of a photographing light source when the image data is photographed, and a parameter generating means for generating the first and second conversion parameters based on the white point. 23. The color balance adjustment device according to claim 13, wherein the color balance adjustment device is provided.
【請求項24】 前記画像データを撮影した際の撮影
光源の指定を受け付ける受付手段と、 該指定された撮影光源に応じて、前記所定の比率を変更
する変更手段とを備えたことを特徴とする請求項13か
ら23のいずれか1項記載のカラーバランス調整装置。
24. An image forming apparatus comprising: receiving means for receiving designation of a photographing light source at the time of photographing the image data; and changing means for changing the predetermined ratio according to the designated photographing light source. 24. The color balance adjustment device according to claim 13, wherein
【請求項25】 被写体を撮影することにより取得し
た画像を表す画像データ、または所定の光源下において
観察することを前提としたカラーバランス調整処理が施
された画像データに対してカラーバランスを調整する処
理を施して処理済み画像データを得るカラーバランス調
整方法をコンピュータに実行させるためのプログラムを
記録したコンピュータ読取り可能な記録媒体において、 前記プログラムは、対角行列に基づく第1の変換パラメ
ータによるカラーバランス調整処理と、少なくとも1つ
の0でない非対角項を含む非対角行列に基づく第2の変
換パラメータによるカラーバランス調整処理とを所定の
比率により混合した混合処理を前記画像データに施すこ
とにより、前記処理済み画像データを得る手順を有する
ことを特徴とするコンピュータ読取り可能な記録媒体。
25. A color balance is adjusted for image data representing an image obtained by photographing a subject or image data subjected to color balance adjustment processing on the assumption that the image data is observed under a predetermined light source. A computer-readable recording medium storing a program for causing a computer to execute a color balance adjustment method of performing processing to obtain processed image data, the program comprising: a color balance using a first conversion parameter based on a diagonal matrix. Performing, on the image data, a mixing process in which an adjustment process and a color balance adjustment process using a second conversion parameter based on a non-diagonal matrix including at least one non-zero non-diagonal term are mixed at a predetermined ratio. A step of obtaining the processed image data. Computer-readable recording medium.
【請求項26】 前記混合処理を施す手順は、前記画
像データを前記第1の変換パラメータによって変換する
ことにより第1の中間画像データを得る手順と、 前記画像データを前記第2の変換パラメータによって変
換することにより第2の中間画像データを得る手順と、 前記第1および第2の中間画像データを前記所定の比率
により重み付け加算する手順とを有することを特徴とす
る請求項25記載のコンピュータ読取り可能な記録媒
体。
26. The step of performing the mixing process includes the steps of: converting the image data by the first conversion parameter to obtain first intermediate image data; and the step of converting the image data by the second conversion parameter. 26. The computer-readable medium according to claim 25, further comprising: a step of obtaining second intermediate image data by conversion; and a step of weighting and adding the first and second intermediate image data according to the predetermined ratio. Possible recording medium.
【請求項27】 前記混合処理を施す手順は、前記第
1の変換パラメータと前記第2の変換パラメータとを前
記所定の比率により重み付け加算して加算パラメータを
得る手順と、 前記画像データを該加算パラメータによって変換する手
順とを有することを特徴とする請求項25記載のコンピ
ュータ読取り可能な記録媒体。
27. The step of performing the mixing process includes a step of obtaining an addition parameter by weighting and adding the first conversion parameter and the second conversion parameter according to the predetermined ratio; and a step of adding the image data. 26. The computer-readable recording medium according to claim 25, further comprising a step of performing conversion by a parameter.
【請求項28】 前記混合処理を施す手順は、前記画
像データを前記第1の変換パラメータによって変換する
ことにより第1の中間画像データを得る手順と、 該第1の中間画像データを、前記第1および第2の変換
パラメータに基づいて生成された白色を保存する第3の
変換パラメータによって変換することにより第2の中間
画像データを得る手順と、 前記第1の中間画像データを、前記第3の変換パラメー
タと単位パラメータとに基づいて生成された白色を保存
する第4の変換パラメータによって変換することにより
第3の中間画像データを得る手順と、 前記第2および第3の中間画像データを前記所定の比率
により重み付け加算する手順とを有することを特徴とす
る請求項25記載のコンピュータ読取り可能な記録媒
体。
28. The step of performing the mixing process includes a step of obtaining the first intermediate image data by converting the image data using the first conversion parameter; and a step of converting the first intermediate image data into the first intermediate image data. Obtaining a second intermediate image data by converting the first intermediate image data by converting the white image generated based on the first and second conversion parameters with a third conversion parameter for storing the white color. Obtaining third intermediate image data by converting with a fourth conversion parameter that stores white generated based on the conversion parameter and the unit parameter of the second and third intermediate image data. 26. The computer-readable recording medium according to claim 25, further comprising a step of performing weighted addition by a predetermined ratio.
【請求項29】 前記混合処理を施す手順は、前記画
像データを前記第1の変換パラメータによって変換する
ことにより第1の中間画像データを得る手順と、 前記第1および第2の変換パラメータに基づいて生成さ
れた白色を保存する第3の変換パラメータと、該第3の
変換パラメータと単位パラメータとに基づいて生成され
た白色を保存する第4の変換パラメータとを前記所定の
比率により重み付け加算して加算パラメータを得る手順
と、 前記第1の中間画像データを該加算パラメータによって
変換する手順とを有することを特徴とする請求項25記
載のコンピュータ読取り可能な記録媒体。
29. The step of performing the mixing process includes a step of converting the image data using the first conversion parameter to obtain first intermediate image data, and a step of obtaining the first intermediate image data based on the first and second conversion parameters. Weighting and adding the third conversion parameter for storing the white color generated in accordance with the predetermined ratio with the fourth conversion parameter for storing the white color generated based on the third conversion parameter and the unit parameter. 26. The computer-readable recording medium according to claim 25, further comprising: a step of obtaining an addition parameter by using the addition parameter; and a step of converting the first intermediate image data using the addition parameter.
【請求項30】 前記混合処理を施す手順は、前記画
像データを、前記第1および第2の変換パラメータに基
づいて生成された白色を保存する第3の変換パラメータ
によって変換することにより第1の中間画像データを得
る手順と、 前記画像データを、前記第3の変換パラメータと単位パ
ラメータとに基づいて生成された白色を保存する第4の
変換パラメータによって変換することにより第2の中間
画像データを得る手順と、 前記第1および第2の中間画像データを前記所定の比率
によって重み付け加算することにより加算画像データを
得る手順と、 該加算画像データを前記第1の変換パラメータによって
変換する手順とを有することを特徴とする請求項25記
載のコンピュータ読取り可能な記録媒体。
30. A step of performing the mixing process, wherein the image data is converted by a first conversion parameter for storing a white color generated based on the first and second conversion parameters. Obtaining intermediate image data; and converting the image data by a fourth conversion parameter for storing a white color generated based on the third conversion parameter and the unit parameter. Obtaining, adding and weighting the first and second intermediate image data according to the predetermined ratio to obtain added image data, and converting the added image data by the first conversion parameter. 26. The computer-readable recording medium according to claim 25, comprising:
【請求項31】 前記混合処理を施す手順は、前記第
1および第2の変換パラメータに基づいて生成された白
色を保存する第3の変換パラメータと、該第3の変換パ
ラメータと単位パラメータとに基づいて生成された白色
を保存する第4の変換パラメータとを前記所定の比率に
より重み付け加算して加算パラメータを得る手順と、 前記画像データを該加算パラメータによって変換するこ
とにより変換画像データを得る手順と、 該変換画像データを前記第1の変換パラメータによって
変換する手順とを有することを特徴とする請求項25記
載のコンピュータ読取り可能な記録媒体。
31. The step of performing the mixing process includes a step of storing a third conversion parameter for storing a white color generated based on the first and second conversion parameters, and the third conversion parameter and a unit parameter. A procedure for obtaining an addition parameter by weighting and adding a fourth conversion parameter for storing the white color generated based on the predetermined ratio, and a procedure for obtaining converted image data by converting the image data using the addition parameter. 26. The computer-readable recording medium according to claim 25, further comprising: converting the converted image data using the first conversion parameter.
【請求項32】 前記混合処理を施す手順は、前記画
像を撮影した撮影装置の分光特性に関連する色空間にお
いて、前記混合処理を行う手順であることを特徴とする
請求項25から31のいずれか1項記載のコンピュータ
読取り可能な記録媒体。
32. The method according to claim 25, wherein the step of performing the mixing process is a step of performing the mixing process in a color space related to a spectral characteristic of a photographing apparatus that has photographed the image. The computer-readable recording medium according to claim 1.
【請求項33】 前記混合処理を施す手順は、人間の
視覚特性に関連する色空間において、前記混合処理を行
う手順であることを特徴とする請求項25から31のい
ずれか1項記載のコンピュータ読取り可能な記録媒体。
33. The computer according to claim 25, wherein the step of performing the mixing process is a step of performing the mixing process in a color space related to human visual characteristics. A readable recording medium.
【請求項34】 前記第1の変換パラメータは、人間
の視覚特性に関連する色空間において前記対角行列に基
づいて行われるカラーバランス調整処理を、前記画像を
撮影した撮影装置の分光特性に関連する色空間において
行うためのパラメータであり、 前記第2の変換パラメータは、人間の視覚特性に関連す
る色空間において前記非対角行列に基づいて行われるカ
ラーバランス調整処理を、前記画像を撮影した撮影装置
の分光特性に関連する色空間において行うためのパラメ
ータであることを特徴とする請求項25から27のいず
れか1項記載のコンピュータ読取り可能な記録媒体。
34. The first conversion parameter relates to a color balance adjustment process performed based on the diagonal matrix in a color space related to human visual characteristics, and relates to a spectral characteristic of a photographing device that has photographed the image. The second conversion parameter is a color space adjustment process performed based on the off-diagonal matrix in a color space related to human visual characteristics, the image is captured The computer-readable recording medium according to any one of claims 25 to 27, wherein the parameter is a parameter to be performed in a color space related to a spectral characteristic of an imaging device.
【請求項35】 前記画像データを撮影した際の撮影
光源の白色点を推定する手順と、 該白色点に基づいて前記第1および第2の変換パラメー
タを生成する手順とを有することを特徴とする請求項2
5から34のいずれか1項記載のコンピュータ読取り可
能な記録媒体。
35. A method comprising: estimating a white point of an imaging light source when imaging the image data; and generating the first and second conversion parameters based on the white point. Claim 2
35. The computer-readable recording medium according to any one of items 5 to 34.
【請求項36】 前記画像データを撮影した際の撮影
光源の指定を受け付ける手順と、 該指定された撮影光源に応じて、前記所定の比率を変更
する手順とを有することを特徴とする請求項25から3
5のいずれか1項記載のコンピュータ読取り可能な記録
媒体。
36. A method according to claim 36, further comprising: a step of receiving designation of a photographing light source when the image data is photographed; and a step of changing the predetermined ratio in accordance with the designated photographing light source. 25 to 3
6. The computer-readable recording medium according to any one of claims 5 to 7.
【請求項37】 請求項13から24のいずれか1項
記載のカラーバランス調整装置を備えたことを特徴とす
る撮像装置。
37. An imaging apparatus comprising the color balance adjustment device according to claim 13. Description:
【請求項38】 請求項13から24のいずれか1項
記載のカラーバランス調整装置を備えたことを特徴とす
る出力装置。
38. An output device comprising the color balance adjustment device according to any one of claims 13 to 24.
JP2000139748A 2000-05-12 2000-05-12 Color balance adjusting method and apparatus, and recording medium Expired - Fee Related JP4037036B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000139748A JP4037036B2 (en) 2000-05-12 2000-05-12 Color balance adjusting method and apparatus, and recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000139748A JP4037036B2 (en) 2000-05-12 2000-05-12 Color balance adjusting method and apparatus, and recording medium

Publications (2)

Publication Number Publication Date
JP2001320591A true JP2001320591A (en) 2001-11-16
JP4037036B2 JP4037036B2 (en) 2008-01-23

Family

ID=18647145

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000139748A Expired - Fee Related JP4037036B2 (en) 2000-05-12 2000-05-12 Color balance adjusting method and apparatus, and recording medium

Country Status (1)

Country Link
JP (1) JP4037036B2 (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2002065756A1 (en) * 2001-02-09 2002-08-22 Seiko Epson Corporation Apparatus and method for adjusting output image from image data
JP2004145773A (en) * 2002-10-28 2004-05-20 Japan Science & Technology Agency Method for reproducing color of merchandise image through communication network
JP2006050559A (en) * 2004-06-29 2006-02-16 Fuji Photo Film Co Ltd Image correcting apparatus and method, and image correction program
WO2007007798A1 (en) * 2005-07-12 2007-01-18 Nikon Corporation Image processing device, image processing program, and image processing method
US7663788B2 (en) 2004-06-29 2010-02-16 Fujifilm Corporation Image correcting apparatus and method, and image correction program
CN102883168A (en) * 2012-07-05 2013-01-16 上海大学 White balance processing method directed towards atypical-feature image

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2002065756A1 (en) * 2001-02-09 2002-08-22 Seiko Epson Corporation Apparatus and method for adjusting output image from image data
US8040390B2 (en) 2001-02-09 2011-10-18 Seiko Epson Corporation Adjustment for output image of image data
US8432459B2 (en) 2001-02-09 2013-04-30 Seiko Epson Corporation Adjustment for output image of image data
JP2004145773A (en) * 2002-10-28 2004-05-20 Japan Science & Technology Agency Method for reproducing color of merchandise image through communication network
JP2006050559A (en) * 2004-06-29 2006-02-16 Fuji Photo Film Co Ltd Image correcting apparatus and method, and image correction program
US7663788B2 (en) 2004-06-29 2010-02-16 Fujifilm Corporation Image correcting apparatus and method, and image correction program
JP4515964B2 (en) * 2004-06-29 2010-08-04 富士フイルム株式会社 Image correction apparatus and method, and image correction program
WO2007007798A1 (en) * 2005-07-12 2007-01-18 Nikon Corporation Image processing device, image processing program, and image processing method
JP4883007B2 (en) * 2005-07-12 2012-02-22 株式会社ニコン Image processing apparatus, image processing program, and image processing method
US8270712B2 (en) 2005-07-12 2012-09-18 Nikon Corporation Image processing device, image processing program, and image processing method
CN102883168A (en) * 2012-07-05 2013-01-16 上海大学 White balance processing method directed towards atypical-feature image

Also Published As

Publication number Publication date
JP4037036B2 (en) 2008-01-23

Similar Documents

Publication Publication Date Title
US5929906A (en) Color correcting method and apparatus
EP1092323B1 (en) Methods and apparatus for color device characterization
US5659357A (en) Auto white adjusting device
EP0487304B1 (en) Color image processing
EP1487219A1 (en) Image processing device, image processing method, and image processing device manufacturing method
JP3115508B2 (en) Color image processing equipment
US9342872B2 (en) Color correction parameter computation method, color correction parameter computation device, and image output system
CN111292246B (en) Image color correction method, storage medium, and endoscope
US6850272B1 (en) Image processing method and system
US20050046883A1 (en) Color-space transformation-matrix calculating system and calculating method
US7409082B2 (en) Method, apparatus, and recording medium for processing image data to obtain color-balance adjusted image data based on white-balance adjusted image data
US6002806A (en) Method of and apparatus for correcting color
JP2004200902A (en) Image processor, electronic camera, and image processing program
EP1343331A2 (en) Apparatus and method for accurate electronic color image capture and reproduction
JPH05276529A (en) Method for adjusting color temperature or white balance and device therefor
JP2003102031A (en) Image processing method, image processing apparatus, method for evaluation imaging device, image information storage method, image processing system, and data structure in image data file
JP4060024B2 (en) Color balance adjusting method and apparatus, and recording medium
JPH06121159A (en) Color image processor
JP2001320591A (en) Color balance adjustment method and device, and recording medium
JP2002109523A (en) Image pickup device, optical filter group, and image data converter
CN115426487B (en) Color correction matrix adjustment method, device, electronic equipment and readable storage medium
JP2005278213A (en) Production method
Kanamori et al. Fast color processor with programmable interpolation by small memory (PRISM)
JP3539883B2 (en) Image processing method and apparatus, recording medium, imaging apparatus, and image reproducing apparatus
US20050018054A1 (en) Chroma compensation circuit and its method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20050912

A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A712

Effective date: 20061201

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20070330

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20070515

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20070717

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20071031

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20101109

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20111109

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20121109

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20121109

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20131109

Year of fee payment: 6

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

LAPS Cancellation because of no payment of annual fees