JPH066822A - Color conversion device - Google Patents

Color conversion device

Info

Publication number
JPH066822A
JPH066822A JP4163044A JP16304492A JPH066822A JP H066822 A JPH066822 A JP H066822A JP 4163044 A JP4163044 A JP 4163044A JP 16304492 A JP16304492 A JP 16304492A JP H066822 A JPH066822 A JP H066822A
Authority
JP
Japan
Prior art keywords
color
locus
color conversion
luminance
color change
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP4163044A
Other languages
Japanese (ja)
Inventor
Takashi Endo
隆史 遠藤
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.)
Kyocera Corp
Original Assignee
Kyocera Corp
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 Kyocera Corp filed Critical Kyocera Corp
Priority to JP4163044A priority Critical patent/JPH066822A/en
Publication of JPH066822A publication Critical patent/JPH066822A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To perform quick color conversion with a simple circuit as to a luminance signal and color difference signals. CONSTITUTION:A chromaticity diagram is assumed based on u=U/Y and v=V/Y as to tristimulus values YUV and a spectral locus 100 and a pure purple locus 102 expressed in the diagram are approximated by a triangle 103. The triangle 103 is described by three line segments and a point representing a major wavelength of a color of a picture element is specified on any side of the triangle. Thus, the stimulus purity is obtained and a quantity of color change is obtained based on the stimulus purity and the brightness and the product between the quantity and the stimulus purity is obtained and new tristimulus values are obtained by substituting the product to an input formula.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、光源の色を補正して好
みの色調の画像を実時間で得る色変換装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a color conversion apparatus for correcting a color of a light source to obtain an image of a desired color tone in real time.

【0002】[0002]

【従来の技術】従来写真カメラでは、各種のフィルタの
装着により、光源の色の補正が行われている。ここで、
フィルタとは光の波長によって透過特性が異なるもので
あり、適切なフィルタを選択することにより、好みの色
調の写真が得られる。しかしながら、電子カメラにおい
ては、これに相当するような手軽でかつ自然な色変換装
置はなかった。
2. Description of the Related Art In a conventional photographic camera, the color of a light source is corrected by mounting various filters. here,
A filter has different transmission characteristics depending on the wavelength of light, and a photograph of a desired color tone can be obtained by selecting an appropriate filter. However, in an electronic camera, there has not been a handy and natural color conversion device equivalent to this.

【0003】特に、デジタル電子スチルカメラの画像の
ように、高精細かつ変換処理の容易な画像データを取り
扱うには、いかにスチル画像をきれいに再現するかが重
要な問題になってくる。すなわち、フィルムを用いるカ
メラと同等あるいはそれ以上の忠実さや表現力が要請さ
れる。
In particular, in order to handle image data of high definition and easy to convert, such as images of a digital electronic still camera, how to reproduce a still image neatly becomes an important issue. That is, fidelity and expressiveness equivalent to or higher than that of a camera using film are required.

【0004】従来の色変換装置としては、次に述べるホ
ワイトバランス装置とマスキング演算回路の例があるの
でこれを説明する。
As a conventional color conversion device, there is an example of a white balance device and a masking calculation circuit, which will be described below.

【0005】電子カメラを用いて撮影を行った場合、そ
の時に撮影者が感じる色と撮影された実際の画像の色と
がしばしば異なることがある。例えば、撮影時の光源が
白熱電灯であったとすると、再生した画像の色は赤くな
り過ぎて不自然だったり、また、蛍光灯下で撮影した画
像では、緑の波長帯にある輝線スペクトルの作用により
緑が強すぎて不自然に見えたりする。
When photographing is performed using an electronic camera, the color sensed by the photographer at that time may often be different from the color of the actual image photographed. For example, if the light source at the time of shooting was an incandescent lamp, the color of the reproduced image would be too red and unnatural, and in the case of an image taken under fluorescent light, the effect of the emission line spectrum in the green wavelength band Makes the green look too strong and unnatural.

【0006】このため、従来の電子カメラには、ホワイ
トバランス装置が設けられていた。すなわち、この装置
は、R(赤)、G(緑)、B(青)のバランスをとる機
能を有し、白い物体が白く再生できるように、画像デー
タの補正を行うものである。具体的には、ホワイトバラ
ンス装置は、出力信号のうちG信号を基準レベルとし
て、他のR信号及びB信号のレベルがG信号のものにほ
ぼ等しくなるように補正するものである(特開昭63−
121383号公報の第4図参照)。
Therefore, the conventional electronic camera is provided with a white balance device. That is, this device has a function of balancing R (red), G (green), and B (blue), and corrects image data so that a white object can be reproduced white. More specifically, the white balance device uses the G signal of the output signal as a reference level, and corrects the levels of the other R and B signals so that they are substantially equal to those of the G signal (Japanese Patent Laid-Open Publication No. Sho. 63-
(See FIG. 4 of 121383).

【0007】また、従来、画像伝送装置あるいはハード
コピーの出力装置には、マスキング演算回路が備えら
れ、色の補正に用いられてきた。これは、色を、C(シ
アン)M(マゼンタ)Y(黄)の成分に分解し、これに
補正のための行列をかけることで、色変換を行うもので
ある(特開昭62−262575号公報参照)。
Further, conventionally, the image transmission device or the hard copy output device has been provided with a masking arithmetic circuit, which has been used for color correction. This is to perform color conversion by decomposing a color into C (cyan) M (magenta) Y (yellow) components and multiplying this by a matrix for correction (Japanese Patent Laid-Open No. 62-262575). (See the official gazette).

【0008】また従来、本発明者は、CIE(193
1)xy色度図上で色変換を行う方法を特願平4−95
335号で提案した。
Further, conventionally, the inventor of the present invention has found that CIE (193
1) Japanese Patent Application No. 4-95 for a method for performing color conversion on an xy chromaticity diagram
Proposed in No. 335.

【0009】これは、周知のxy色度図上でスペクトル
軌跡と純紫軌跡を2次以下の方程式で表し、与えられた
色の座標と光源の色の座標を結ぶ直線との交点を求める
ことにより、主波長を表す色度点を求めることを原理と
していた。
This is to express the spectrum locus and the pure purple locus on a well-known xy chromaticity diagram by an equation of quadratic or lower order, and obtain the intersection of the straight line connecting the coordinates of the given color and the color of the light source. The principle is to obtain the chromaticity point that represents the dominant wavelength.

【0010】ここで、その特願平4−95335号で提
案した色変換方法の原理を図7を用いて概説する。ま
ず、R,G,Bをx,yに変換して、図7に示す色度図
上で、画素の色度を示す点Fを特定する。同時に、光源
の点Wを色温度軌跡104上に特定する。そして、この
2点を延長した直線Uがスペクトル軌跡100と交わる
点T(主波長)を定める。このとき点Wと点Tとの距離
WTに対する点Wと点Fとの間の距離WFの比として、
刺激純度p(=WF/WT)が算定される。
Here, the principle of the color conversion method proposed in Japanese Patent Application No. 4-95335 will be outlined with reference to FIG. First, R, G, B are converted into x, y, and a point F indicating the chromaticity of a pixel is specified on the chromaticity diagram shown in FIG. At the same time, the point W of the light source is specified on the color temperature locus 104. Then, a point T (main wavelength) at which the straight line U extending these two points intersects with the spectrum locus 100 is determined. At this time, as a ratio of the distance WF between the point W and the point F to the distance WT between the point W and the point T,
The stimulation purity p (= WF / WT) is calculated.

【0011】次に、光源Wをシフトさせて点W´を特定
し、この点W´と点Tとを通る直線U´を前記内分比
(刺激純度)pで内分する位置に、当該画素の色変換後
の点F´が定められる。そして、この点F´の色度値か
ら、当該画素の色変換後のR,G,Bが求められる。
Then, the light source W is shifted to identify a point W ', and a straight line U'passing through the point W'and the point T is internally divided by the internal division ratio (stimulation purity) p. The point F ′ after color conversion of the pixel is defined. Then, from the chromaticity value of the point F ′, R, G, B after color conversion of the pixel are obtained.

【0012】この方法はxy色度図を原理としているた
め一般性があり、また、理論にも忠実である。
This method is general because it is based on the xy chromaticity diagram, and is also faithful to the theory.

【0013】[0013]

【発明が解決しようとする課題】上記従来例のホワイト
バランス装置によれば白の補正は可能であるが、画像全
体の色調の調整は写真カメラにおけるフィルタ効果のよ
うにはできないという問題があった。また、従来のマス
キング回路においても同様で、自由な色調に変換するこ
とはできなかった。
Although the white balance device of the above-mentioned conventional example can correct white, there is a problem in that the color tone of the entire image cannot be adjusted like the filter effect in a photographic camera. . Further, the same can be said in the conventional masking circuit, and it has not been possible to convert to a free color tone.

【0014】この理由は、色変換の後述するような特徴
によるものであり、本発明による方法を採用することに
より、自由に画像の色調の変換が可能になる。
The reason for this is due to the characteristics of color conversion described later, and by adopting the method according to the present invention, it is possible to freely convert the color tone of an image.

【0015】また本発明者による上記従来の発明におい
ては、この色変換の原理的な機能を実現しているもの
の、この処理過程は単純な色変換を行うだけであるのに
非常に大きな回路規模を要するという問題を有してい
た。
Further, in the above-mentioned conventional invention by the present inventor, although the principle function of the color conversion is realized, this processing process only performs simple color conversion, but the circuit scale is very large. Had the problem of requiring.

【0016】すなわち、スペクトル軌跡を3個の2次曲
線と1個の直線で表し、純紫軌跡を1個の直線で表して
いた。このため一画素の色変換を行うのに直線と2次曲
線との交点を最大3回求め、直線と直線との交点を2回
求め、それらの交点のうち有効な点の判定を行い、色変
換を行い、さらに他の複雑な処理をする必要があった。
これを改善すべく簡単な回路でかつ少ない処理時間で
色変換を行うことのできる回路が切望されていた。
That is, the spectrum locus is represented by three quadratic curves and one straight line, and the pure purple locus is represented by one straight line. Therefore, in order to perform color conversion of one pixel, the intersection point of the straight line and the quadratic curve is determined at most three times, the intersection point of the straight line and the straight line is determined twice, and the effective point of these intersection points is determined to determine the color. We had to do the conversion and do some other complicated processing.
In order to improve this, a circuit that can perform color conversion with a simple circuit and a short processing time has been desired.

【0017】また、特にデジタル画像を扱う上では、輝
度と色差の信号を用いることにより、色差のデータ量を
削減することができるため、画像圧縮に有利であるこ
と、また、CCDで撮像するに際して、光量が大きくと
れるため高精細化に適していること、等の理由から、R
GBの信号よりも、輝度と色差の信号を用いることのほ
うが多い。ゆえに、この信号の特性を利用した、色変換
装置が切望されていた。
Further, particularly in handling a digital image, the amount of color difference data can be reduced by using the luminance and color difference signals, which is advantageous for image compression, and in capturing an image with a CCD. For the reason that it is suitable for high definition because a large amount of light can be taken,
Luminance and color difference signals are used more often than GB signals. Therefore, a color conversion device utilizing the characteristics of this signal has been earnestly desired.

【0018】そこで、本発明は、輝度及び色差の信号に
対して、簡単な回路で迅速に色変換を行うことを目的と
する。
Therefore, an object of the present invention is to quickly perform color conversion on a luminance and color difference signal with a simple circuit.

【0019】[0019]

【課題を解決するための手段】上記目的を達成するため
に、本発明は、単位輝度当たりの色変更量を設定する手
段と、デジタルデータで供給されるカラー画像の輝度と
2つの色差を入力とし、これを色変換して出力する演算
部と、を含む色変換装置であって、前記演算部は、前記
2つの色差を座標化した所定の色度図においてスペクト
ル軌跡及び純紫軌跡を複数の1次式で表される所定の多
角形とみなした場合に、無彩色と当該画素の色とを結ぶ
直線と、前記所定の多角形の辺との交点を求めることに
より刺激純度を求める手段と、前記刺激純度と前記輝度
とから色変更の大きさを求める手段と、前記色変更の大
きさと前記単位輝度当たりの色変更量との積を求め、そ
の積を入力された前記色差に加算する手段と、を備える
ことを特徴とする。
In order to achieve the above object, the present invention provides a means for setting a color change amount per unit luminance, a luminance of a color image supplied as digital data, and two color differences. And a calculation unit that performs color conversion and outputs the color conversion result, wherein the calculation unit includes a plurality of spectrum loci and pure purple loci in a predetermined chromaticity diagram in which the two color differences are coordinated. Means for determining the stimulus purity by determining the intersection between the straight line connecting the achromatic color and the color of the pixel and the side of the predetermined polygon when the polygon is regarded as the predetermined polygon represented by And a means for obtaining the magnitude of color change from the stimulus purity and the luminance, and obtaining the product of the magnitude of the color change and the amount of color change per unit luminance, and adding the product to the input color difference. And means for doing so.

【0020】[0020]

【作用】上記構成によれば、「単位輝度当たりの色変更
量」を任意に設定して、その設定に基づいて演算部にお
いて、画素ごとに色変換が行われる。例えば、「単位輝
度当たりの色変更量」は、u(=U/Y),v(=V/
Y)として、(Δu,Δv)の形式で指定される。
According to the above construction, the "color change amount per unit luminance" is arbitrarily set, and the color conversion is performed for each pixel in the arithmetic unit based on the setting. For example, “color change amount per unit luminance” is u (= U / Y), v (= V /
Y) is specified in the form of (Δu, Δv).

【0021】一方、本発明において、uv色度図上にお
いて作成されるスペクトル軌跡及び純紫軌跡は、複数の
1次式で表される簡単な図形(例えば、三角形)で近似
される。そして、その近似図形をスペクトル軌跡及び純
紫軌跡とみなして、「刺激純度」が計算される。この
際、簡単な図形が計算の対象となるので、従来のよう
に、複雑な計算式を大量に保持する必要がなくなり、同
時に計算が簡易化されるという利点がある。
On the other hand, in the present invention, the spectrum locus and pure purple locus created on the uv chromaticity diagram are approximated by simple figures (for example, triangles) represented by a plurality of linear expressions. Then, the "stimulation purity" is calculated by regarding the approximated figure as a spectrum locus and a pure purple locus. At this time, since a simple figure is the object of calculation, there is no need to hold a large amount of complicated calculation formulas as in the conventional case, and there is an advantage that the calculation is simplified at the same time.

【0022】このように刺激純度が求まると、その刺激
純度と輝度から「色変更の大きさ」が算出される。な
お、実際の装置においては、刺激純度を求める計算を必
ずしも独立させる必要はなく、色変更の大きさの計算と
同時に行ってもよい。
When the stimulus purity is obtained in this way, the "magnitude of color change" is calculated from the stimulus purity and the brightness. In an actual device, the calculation for obtaining the stimulation purity does not necessarily have to be independent, and may be performed simultaneously with the calculation of the magnitude of color change.

【0023】以上のように計算された「色変更の大き
さ」と「単位輝度当たりの色変更量」との積に、「色
差」を加えることにより、色変換後の3刺激値が得られ
る。
By adding the "color difference" to the product of the "color change magnitude" calculated as above and the "color change amount per unit luminance", the tristimulus value after color conversion can be obtained. .

【0024】この色変換では、画素の“輝度”を保った
まま、画素の“色差”を変更することができる。また、
明るいほど色の変更量が大きくなり、かつ与えられた画
素の色が無彩色に近いほど色の変更量が設定された単位
明度当たりの色変更量を忠実に受け、画素の色の彩度が
高いほど色が変更されないようになる。
In this color conversion, the "color difference" of the pixel can be changed while maintaining the "luminance" of the pixel. Also,
The brighter the color change amount, and the closer the given pixel color is to the achromatic color, the more faithfully the color change amount per unit brightness for which the color change amount is set is set. The higher the value, the less the color will change.

【0025】[0025]

【実施例】以下、本発明の好適な実施例を図面に基づい
て説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT A preferred embodiment of the present invention will be described below with reference to the drawings.

【0026】色度図に基づいた色変換の特徴は、与えら
れた画素の色が光源の色に近いほど(刺激純度が低いほ
ど)色変換による色の変更を忠実に受けるということに
ある。これは、物体に光源からの光が照射されて撮像素
子に到達するために、物体の色と光源の色とを混色した
色が撮像されるという現象をよく取り入れた方法であ
る。
The characteristic of the color conversion based on the chromaticity diagram is that the closer the color of a given pixel is to the color of the light source (the lower the stimulus purity), the more faithfully the color change by the color conversion is. This is a method that often incorporates the phenomenon that a color obtained by mixing the colors of the object and the light source is imaged because the object is irradiated with light from the light source and reaches the image sensor.

【0027】本発明はこの現象にのっとって、光源の色
の変化をその画素が光源の色(色差信号が2つとも0の
場合であり、実際は無彩色)に近いほど忠実に受け、純
粋な色に近いほど光源の色の変化を受けないようにする
という特徴を有している。
According to the present invention, according to this phenomenon, the change in the color of the light source is more faithfully received when the pixel is closer to the color of the light source (when both color difference signals are 0, which is actually an achromatic color), and the color is pure. The closer the color is, the less the light source color is changed.

【0028】CIE(1931)xy色度図において
は、図7に示したスペクトル軌跡100と純紫軌跡10
2を用いて色変換が実行されるが、これらの軌跡を正確
に近似すると回路的に負担が重い。このため、単純な図
形で純粋な色のなす軌跡(スペクトル軌跡及び純紫軌
跡)を模擬することが必要である。本発明は、計算を簡
単にし小さな回路規模で色変換を実現するため、xy色
度図やそのxy色度図上でのスペクトル軌跡等を利用せ
ず、後述するuv平面上にスペクトル軌跡100と純紫
軌跡102を想定し、これを3つの一次式で表現される
“3角形”で近似する。これにより、本発明によれば、
色変換を視覚的に充分な効果をもちながら実行できか
つ、非常に回路の単純な色変換装置が得られる。以下に
具体的に説明する。
In the CIE (1931) xy chromaticity diagram, the spectrum locus 100 and the pure purple locus 10 shown in FIG.
Although color conversion is executed using 2, the circuit load is heavy when these loci are accurately approximated. Therefore, it is necessary to simulate a pure color locus (spectral locus and pure purple locus) with a simple figure. In order to simplify the calculation and realize color conversion with a small circuit scale, the present invention does not use the xy chromaticity diagram or the spectrum locus on the xy chromaticity diagram, but rather the spectrum locus 100 on the uv plane described later. Assuming a pure purple locus 102, this is approximated by a “triangle” represented by three linear expressions. Thereby, according to the present invention,
It is possible to obtain a color conversion device that can perform color conversion with a visually sufficient effect and that has a very simple circuit. This will be specifically described below.

【0029】(A)uv色度図及び近似三角形の説明 図1には、u,vを横軸及び縦軸にとった2次元座標
(従来の色度図に相当するため、以下「色度図」と称す
る)が示されている。ここで、単位当たりの色差u,v
は、入力される3刺激値YUVから、次の式により算出
されるものである。
(A) Description of uv Chromaticity Diagram and Approximate Triangle FIG. 1 shows two-dimensional coordinates in which u and v are plotted on the horizontal and vertical axes. (Referred to as "figure"). Here, the color difference u, v per unit
Is calculated from the input tristimulus value YUV by the following formula.

【0030】 u=U/Y v=V/Y …(1) 図1に示すように、スペクトル軌跡100及び純紫軌跡
102を連結させた軌跡ループ106は、ほぼ三角形の
形状をなしている。すなわち、スペクトル軌跡100
は、図1の左側やや下方から、一旦垂直に下がって、そ
の後、右上方向にほぼ真っ直ぐに伸長している。純紫軌
跡102は、そのスペクトル軌跡100の両端を結んだ
直線である。
U = U / Y v = V / Y (1) As shown in FIG. 1, the locus loop 106 that connects the spectrum locus 100 and the pure purple locus 102 has a substantially triangular shape. That is, the spectrum locus 100
1 vertically descends from a little lower side in FIG. 1 and then extends almost straight in an upper right direction. The pure purple locus 102 is a straight line connecting both ends of the spectrum locus 100.

【0031】そして、本発明では、これらスペクトル軌
跡100及び純紫軌跡102を結合した軌跡ループ10
6を3つの直線からなる三角形103で近似し、これか
ら色の純粋さ(従来用いられてきた刺激純度と同一概念
であるため、「刺激純度」と称する)の計算を行う。す
なわち、複数の1次式で表現される簡易な図形を刺激純
度pの計算の際に用いようとするものである。
In the present invention, the locus loop 10 in which the spectrum locus 100 and the pure purple locus 102 are combined is used.
6 is approximated by a triangle 103 composed of three straight lines, and from this, the color purity (which is called “stimulation purity” because it has the same concept as conventionally used stimulation purity) is calculated. That is, a simple figure represented by a plurality of linear expressions is used when calculating the stimulation purity p.

【0032】ここで、図2に示すスペクトル軌跡100
及び純紫軌跡102の求め方を説明する。図7に示した
xy色度図上におけるスペクトル軌跡100及び純紫軌
跡102は、周知のCIE(1931)XYZ表色系で
座標値が求められているため、これを次に示すNTSC
規格のRGB刺激値に変換し、さらに、上に示した第1
式によりYUVからYuv値に変換する。
Here, the spectrum locus 100 shown in FIG.
A method of obtaining the pure purple locus 102 will be described. The spectral locus 100 and the pure purple locus 102 on the xy chromaticity diagram shown in FIG. 7 have their coordinate values obtained by the well-known CIE (1931) XYZ color system, and therefore the NTSC shown below is given.
Converted to standard RGB stimulus values, and then the first
The YUV value is converted to the Yuv value by the formula.

【0033】 R= 1.9106 xd −0.5326 yd −0.2883 zd G=−0.9843 xd −1.9984 yd −0.0283 zd B= 0.0584 xd −0.1185 yd +0.8985 zd …(2) Y= 0.299 R+0.587 G+0.114 B U=(B−Y)/2.03 =−0.147 R−0.289 G+0.436 B V=(R−Y)/1.14 = 0.615 R−0.514 G−0.101 B …(3) u=U/Y v=V/Y …(1) これにより、図1のようなスペクトル軌跡100及び純
紫軌跡102を得る。図2には、図1の右下部分の拡大
図が示されている。ここで、代表的な点の座標は次の通
りである。
R = 1.9106 xd −0.5326 yd −0.2883 zd G = −0.9843 xd −1.9984 yd −0.0283 zd B = 0.0584 xd −0.1185 yd +0.8985 zd (2) Y = 0.299 R + 0.587 G + 0.114 B U = (BY) /2.03=-0.147 R-0.289 G + 0.436 B V = (RY) /1.14=0.615 R-0.514 G-0.101 B (3) u = U / Y v = V / Y (1) As a result, the spectrum locus 100 and the pure purple locus 102 as shown in FIG. 1 are obtained. FIG. 2 shows an enlarged view of the lower right portion of FIG. Here, the coordinates of representative points are as follows.

【0034】 W(0、0) R(-0.492、2.057 ) G(-0.492、-0.876) B(3.825 、-0.876) …(4) ちなみに、u、vがなす平面上にRGBの3原色を特定
すると、直角三角形をつくり、辺RGと辺BGは直交し
ている。また無彩色は(u、v)=(0、0)である。
W (0,0) R (-0.492, 2.057) G (-0.492, -0.876) B (3.825, -0.876) (4) By the way, the three primary colors RGB are on the plane formed by u and v. To be specific, a right triangle is formed, and the side RG and the side BG are orthogonal to each other. The achromatic color is (u, v) = (0,0).

【0035】三角形による近似につき、具体的に説明す
ると、スペクトル軌跡100及び純紫軌跡102を3つ
の直線で近似するために、次の代表点を定義する。
The triangle approximation will be specifically described. In order to approximate the spectrum locus 100 and the pure purple locus 102 with three straight lines, the following representative points are defined.

【0036】 PR (-0.534164 、3.345027) PG (-0.534164 、-2.2) PB (81.62229、16.71693) …(5) これにより、三角形PR G B 103によって、スペ
クトル軌跡100と純紫軌跡102とからなる軌跡ルー
プ106が近似される。ここで、この三角形103を構
成する3つの直線の方程式は、 PR B : 13.371u−82.156v=−281.958 PG R : u=−0.534164 PB G : −18.916u+82.156v=−170.639 …(6) となる。ここで、上記式にuvが入っているのは、図1
の色度図が、単位輝度当たりの色差で形成されているか
らである。
P R (−0.534164, 3.345027) P G (−0.534164, −2.2) P B (81.62229, 16.71693) (5) As a result, the triangle P R P G P B 103 gives the spectrum locus 100 and pure purple. A trajectory loop 106 consisting of the trajectory 102 and the trajectory 102 is approximated. Here, the equation of the three straight lines constituting the triangle 103, P R P B: 13.371u- 82.156v = -281.958 P G P R: u = -0.534164 P B P G: -18.916u + 82.156v = - 170.639 (6) Here, uv is included in the above equation as shown in FIG.
This is because the chromaticity diagram of is formed by the color difference per unit luminance.

【0037】(B)色変換の各工程の説明 画素の輝度色差信号U,Vが与えられると、まず輝度Y
によらない色を表す値として、上記第1式により、 u=U/Y v=V/Y …(1) を求める。
(B) Description of each step of color conversion When the luminance color difference signals U and V of the pixel are given, first, the luminance Y
As a value representing a color that does not depend on the above, u = U / Y v = V / Y (1) is calculated by the above-mentioned first equation.

【0038】次に、上記三角形103を構成するいずれ
かの辺(直線)と、原点と当該画素の色を示す点(u、
v)とを結ぶ直線との交点(主波長に相当する点)を求
める。これは、従来の色変換方法と同様であるが、本実
施例では、近似三角形を用いているため、計算は簡易で
ある。
Next, one of the sides (straight line) forming the triangle 103, the origin, and the point (u,
v)) and an intersection (a point corresponding to the dominant wavelength) with a straight line that connects This is the same as the conventional color conversion method, but in this embodiment, since the approximate triangle is used, the calculation is simple.

【0039】主波長が求まった後、これを利用して刺激
純度Pの計算と実際の色変換とが実行されるが、具体的
には以下の通りである。
After the main wavelength is obtained, the calculation of the stimulus purity P and the actual color conversion are executed by using this, which is specifically as follows.

【0040】画素の色差を表す(u、v)の点と、原点
(0、0)を結ぶ直線を(u、v)方向に延長して、前
記の三角形103の各辺と交わる3つの点を求める。各
点の座標をパラメータtにより(tu、tv)とする
と、この画素の色の刺激純度pは、 p=1/t …(7) により定義できる。なお、刺激純度pの計算は、後述す
る。
Three points intersecting each side of the above-mentioned triangle 103 are extended in the (u, v) direction by a straight line connecting the origin (0, 0) and the point (u, v) representing the color difference of the pixel. Ask for. Assuming that the coordinates of each point are (tu, tv) by the parameter t, the stimulus purity p of the color of this pixel can be defined by p = 1 / t (7). The calculation of the stimulation purity p will be described later.

【0041】そして、当該画素の色変換は次の式で実行
される。
Then, the color conversion of the pixel is executed by the following formula.

【0042】 U’=U+△u*Y*(1−p) V’=V+△v*Y*(1−p) …(8) これは、刺激純度が低い色ほど光源の色変化を忠実にう
けるという原理を模擬した式である。ここで、Y*(1
−p)は、「色変更の大きさ」を示しており、1−pと
したので刺激純度が小さい程、色変更の大きさが大きく
なる。これは、“重み”としての輝度Yについても同様
であり、Yが大きい程、色変更の大きさが大きくなる。
U ′ = U + Δu * Y * (1-p) V ′ = V + Δv * Y * (1-p) (8) This is because the color with lower stimulus purity is more faithful to the color change of the light source. This is a formula simulating the principle of being exposed to water. Where Y * (1
-P) indicates "amount of color change", and since it is set to 1-p, the smaller the stimulus purity, the greater the size of color change. The same applies to the luminance Y as the "weight", and the larger Y is, the larger the color change is.

【0043】この第8式に示されるように、「色変更の
大きさ」Y*(1−p)に「単位当たりの色変更量」Δ
u,Δvを乗算し、その積をもとの色差U,Vに加算す
ることにより、色変換後の色差U’、V’が得られる。
なお、輝度Yは、色変換で不変であり、輝度を一定に保
ったまま、色変換が実行できる。
As shown in the equation (8), "color change amount" Y * (1-p) is added to "color change amount per unit" Δ
The color differences U ′ and V ′ after color conversion are obtained by multiplying u and Δv and adding the product to the original color differences U and V.
It should be noted that the luminance Y is invariable in color conversion, and color conversion can be executed while keeping the luminance constant.

【0044】(C)刺激純度の計算 色の純粋さ(刺激純度)を計算する回路は具体的には次
のような計算を行う。 t1= −281.958 /(13.371u−82.156v) t2= −0.534164/u t3= −170.639 /(−18.916u+82.156v) …(9) これらのt1、t2、t3のうち、正の数で最小なもの
を求め、これをtとする。刺激純度pは,p=1/tで
ある。この第9式は、当該画素の点から、最も近い交点
(主波長を示す点)を求めるための式である。「正の
数」としたのは、無彩色の点から当該画素の点を貫く直
線を負方向に延長しても辺と交わるため、それを排除
し、正方向の延長のみを抽出するためである。
(C) Calculation of stimulation purity Specifically, the circuit for calculating the color purity (stimulation purity) performs the following calculation. t1 = -281.958 / (13.371u-82.156v) t2 = -0.534164 / u t3 = -170.639 / (-18.916u + 82.156v) (9) Of these t1, t2, and t3, the positive number is the smallest. Find the thing and let this be t. The stimulation purity p is p = 1 / t. The ninth equation is an equation for obtaining the closest intersection (point indicating the dominant wavelength) from the point of the pixel. The "positive number" is used because the straight line that passes through the point of the pixel from the achromatic point intersects with the side even if it extends in the negative direction, so that it is excluded and only the extension in the positive direction is extracted. is there.

【0045】実際は、上式をさらに簡略化し、 p1= (u−6.14434 v)/(−21.087) p2= u/(−0.534164) p3= (u−4.34322 v)/9.020881 …(10) によって計算を行い、p1、p2、p3のうち正の数で
最大のものを求めそれをpとすればよい。
Actually, the above equation is further simplified, and the calculation is performed by p1 = (u−6.14434 v) / (− 21.087) p2 = u / (− 0.534164) p3 = (u−4.34322 v) /9.020881 (10) The maximum positive value among p1, p2, and p3 is calculated and set as p.

【0046】さらに計算を簡単にするために「色変更の
大きさ」を、 Y*(1−p)=Y−Y*p=Y−P …(11) により計算し、Y*pのかわりにPを求めることにす
る。すると上記第8式の計算は、 U’=U+△u*(Y−P) V’=V+△v*(Y−P) …(12) となる。ここで、このPを求めるためには、 P1= (Y−6.14434 V)/(−21.087) P2= U/(−0.534164) P3= (U−4.34322 V)/9.020881 …(13) の計算を行い、P1、P2、P3のうち正の数で最大の
ものを求めそれをPとすればよい。
To further simplify the calculation, the "magnitude of color change" is calculated by Y * (1−p) = Y−Y * p = Y−P (11), instead of Y * p Let's ask for P. Then, the calculation of the above-mentioned 8th formula becomes U '= U + (DELTA) u * (Y-P) V' = V + (DELTA) v * (Y-P) ... (12). Here, in order to obtain P, P1 = (Y−6.14434 V) / (− 21.087) P2 = U / (− 0.534164) P3 = (U−4.34322 V) /9.020881 (13) is calculated. , P1, P2, P3, the largest positive number can be obtained and set as P.

【0047】図3は、RGB刺激値空間内にYUVの各
値を示す軸をとり、かつ、前記のようにして求めたスペ
クトル軌跡100を、三角法で描いた図である。このス
ペクトル軌跡100は、Y=1の平面上にのっており、
UV軸のつくる平面上にはないが、本発明がなぜこのよ
うな曲線を使うのかを明らかにすることができる。すな
わち、青い色においては、輝度Yが低いために、Yで正
規化すると、座標値uは比較的大きな値をとるのであ
る。
FIG. 3 is a diagram in which the axes indicating the respective values of YUV are set in the RGB stimulus value space, and the spectrum locus 100 obtained as described above is drawn by trigonometry. This spectrum locus 100 lies on the plane of Y = 1,
It is not on the plane created by the UV axis, but it is possible to clarify why the present invention uses such a curve. That is, in the blue color, the brightness Y is low, and therefore the coordinate value u takes a relatively large value when normalized with Y.

【0048】輝度色差を定める信号規格については、以
下の説明ではYUVを用いるが、実際にはYIQなど種
々の信号規格が使用されている。これらにおいても、輝
度色差信号の意味でYUVと同等の信号であれば、いず
れの信号規格でも本発明を適用できる。
Regarding the signal standard for determining the luminance color difference, YUV is used in the following description, but various signal standards such as YIQ are actually used. Also in these, the present invention can be applied to any signal standard as long as it is a signal equivalent to YUV in the sense of a luminance color difference signal.

【0049】(D)単位明度当たりの色変更量の設定方
法 単位明度当たりの色変更量は、直接、その色変更量を指
定することもできるが、光源の色温度として、またはそ
の光源の色温度の変更量として指定することもできる。
そこで、参考として、CIExy色度図上で光源の色温
度を指定して、単位明度当たりの色変更量を設定する場
合について説明する。CIE(1931)xy色度図上
で光源の色温度は、黒体輻射軌跡もしくはCIE昼光軌
跡として表される。
(D) Setting Method of Color Change Amount per Unit Lightness The color change amount per unit lightness can be specified directly, but as the color temperature of the light source or the color of the light source. It can also be specified as the amount of change in temperature.
Therefore, as a reference, a case will be described in which the color temperature of the light source is specified on the CIExy chromaticity diagram and the color change amount per unit lightness is set. On the CIE (1931) xy chromaticity diagram, the color temperature of the light source is represented as a black body radiation locus or a CIE daylight locus.

【0050】周知のようにCIE昼光の相関色温度Tcp
とxy色度図の色度座標(x,y)との関係は、JIS
Z8720によると、次のように求められる。
As is well known, the correlated color temperature Tcp of CIE daylight
And the chromaticity coordinates (x, y) of the xy chromaticity diagram are defined in JIS
According to Z8720, it is calculated as follows.

【0051】 (4000゜K≦Tcp≦7000゜K) x=-4.6070(103 /Tcp) 3 +2.9678(103 / Tcp)2 +0.09911( 103 /Tcp)+0.244063 (7000゜K≦Tcp≦25000゜K) x=-2.0064(103 /Tcp) 3 +1.9018(103 / Tcp)2 + 0.24748(103 /Tcp)+0.237040 y=-3.000 x2 + 2.870x-0.275 …(14) 4000゜K以下の色温度については黒体輻射軌跡を用
いればよい。AmericanInstitute of Physics 3rd. edit
ion (McGRAW HILL)には1000゜Kまでの色温度にお
ける黒体の色度が記載されておりこれをもとに近似式を
求めると次のようになる。
(4000 ° K ≦ Tcp ≦ 7000 ° K) x = −4.6070 (10 3 / Tcp) 3 +2.9678 (10 3 / Tcp) 2 +0.09911 (10 3 /Tcp)+0.244063 (7000 ° K ≦ Tcp) ≦ 25000 ° K) x = -2.0064 (10 3 / Tcp) 3 +1.9018 (10 3 / Tcp) 2 +0.24748 (10 3 /Tcp)+0.237040 y = -3.000 x 2 + 2.870x-0.275… (14) A black body radiation locus may be used for a color temperature of 4000 ° K or less. American Institute of Physics 3rd. Edit
Ion (McGRAW HILL) describes the chromaticity of a black body at a color temperature of up to 1000 ° K. An approximate expression based on this is as follows.

【0052】 (1000゜K≦Tcp<4000゜K) x= 0.222782(103 /Tcp)3 -0.834781(103 / Tcp)2 +1.114627(103 /Tcp)+0.149920 y= -1.235009x3 -0.992589x2 + 1.918509x-0.141562 …(15) これにより、1000゜Kから25000゜Kまでの光
源の色度座標が得られることになる。
(1000 ° K ≦ Tcp <4000 ° K) x = 0.222782 (10 3 / Tcp) 3 -0.834781 (10 3 / Tcp) 2 +1.114627 (10 3 /Tcp)+0.149920 y = -1.235009x 3- 0.992589x 2 + 1.918509x-0.141562 (15) With this, the chromaticity coordinates of the light source from 1000 ° K to 25000 ° K can be obtained.

【0053】これを用いて、任意の色温度でxy色度図
上におけるその光源の色度座標を求めることができる。
また、代表的な色温度に対して色度座標をテーブルにし
て記憶しておいても好適である。
Using this, it is possible to obtain the chromaticity coordinates of the light source on the xy chromaticity diagram at any color temperature.
It is also suitable to store chromaticity coordinates in a table for typical color temperatures.

【0054】さて、任意の色温度での座標(x、y)が
得られると、撮影時の光源の色の座標(x1 、y1 )と
再生時の光源の色の座標(x2 、y2 )の差分を求め
(xd、yd )=(x2 −x1 、y2 −y1 )、これを
次の式によりYUV信号に変換する。
Now, when the coordinates (x, y) at any color temperature are obtained, the color coordinates (x1, y1) of the light source at the time of photographing and the color coordinates (x2, y2) of the light source at the time of reproduction are obtained. The difference is obtained (xd, yd) = (x2-x1, y2-y1), and this is converted into a YUV signal by the following formula.

【0055】 zd =1−xd −yd …(16) R= 1.9106 xd −0.5326 yd −0.2883 zd G=−0.9843 xd −1.9984 yd −0.0283 zd B= 0.0584 xd −0.1185 yd +0.8985 zd …(17) (これはNTSC規格に定めるRGB刺激値である) Y= 0.299 R+0.587 G+0.114 B U=(B−Y)/2.03 =−0.147 R−0.289 G+0.436 B V=(R−Y)/1.14 = 0.615 R−0.514 G−0.101 B …(18) さらに、色変更量を単位輝度あたりに正規化するため
に、輝度Yで割る。
Zd = 1-xd -yd (16) R = 1.9106 xd -0.5326 yd -0.2883 zd G = -0.9843 xd -1.9984 yd -0.0283 zd B = 0.0584 xd -0.1185 yd +0.8985 zd (17) (This is the RGB stimulus value defined in the NTSC standard) Y = 0.299 R + 0.587 G + 0.114 BU = (BY) /2.03=-0.147 R-0.289 G + 0.436 B V = (RY) / 1.14 = 0.615 R-0.514 G-0.101 B (18) Further, in order to normalize the color change amount per unit luminance, divide by the luminance Y.

【0056】 △u=U/Y △v=V/Y …(19) 以上により、単位輝度当たりの色変更量(Δu,Δv)
が算出される。
Δu = U / Y Δv = V / Y (19) From the above, the color change amount per unit luminance (Δu, Δv)
Is calculated.

【0057】(E)本発明に係る色変換装置 図4に、第1実施例の構成を示す。色変更量設定手段1
0は、設定された光源の色度値から単位輝度あたりの色
変更量を算出し、それを積和演算手段12の乗算器のレ
ジスタに設定する。そして、画素のYUV値が入力され
ると、色変更の大きさを計算する手段14により、色変
更の大きさが求められ、積和演算器12の乗算器のもう
一方のレジスタにセットされる。積和演算器12は両者
の積を求め、同時に入力であるYUVとの和を求める。
これにより色変換がなされ、その後、色修正手段(図示
せず)においてその値が8ビットで表現できるか判定さ
れ、もし8ビットデータに変換することができない場合
には強制的に色を修正し、出力される。
(E) Color Conversion Device According to the Present Invention FIG. 4 shows the configuration of the first embodiment. Color change amount setting means 1
0 calculates the amount of color change per unit luminance from the chromaticity value of the set light source, and sets it in the register of the multiplier of the product-sum calculation means 12. Then, when the YUV value of the pixel is input, the magnitude of the color change is obtained by the means 14 for calculating the magnitude of the color change, and is set in the other register of the multiplier of the product-sum calculator 12. . The product-sum calculator 12 calculates the product of both, and simultaneously calculates the sum with the input YUV.
As a result, color conversion is performed, and then it is judged by a color correction means (not shown) whether the value can be expressed by 8 bits. If the value cannot be converted into 8-bit data, the color is forcibly corrected. , Is output.

【0058】図5に、第2実施例の構成を示す。色変更
量設定手段16は、設定された光源の色度値から単位輝
度あたりの色変更量を算出し、積和演算回路18の乗算
器18aのレジスタに設定する。そして、画素のYUV
値が入力されると、色変更の大きさを計算する手段20
は次のようにして計算を行う。
FIG. 5 shows the configuration of the second embodiment. The color change amount setting means 16 calculates the color change amount per unit luminance from the set chromaticity value of the light source, and sets it in the register of the multiplier 18 a of the product-sum calculation circuit 18. And the YUV of the pixel
A means 20 for calculating the magnitude of color change when a value is entered
Calculates as follows.

【0059】すなわち、UVの1次式を3通り計算し,
そのうち正の数で最大のものを選択しPとする。
That is, three linear equations of UV are calculated,
Among them, the largest positive number is selected and designated as P.

【0060】 P1= (Y−6.14434 V)/(−21.087) P2= U/(−0.534164) P3= (U−4.34322 V)/9.020881 …(20) 次に輝度Yからこの最大値Pを減じることにより、色変
更の大きさが求められ、積和演算回路18の乗算器18
aのもう一方のレジスタにセットされる。
P1 = (Y−6.14434 V) / (− 21.087) P2 = U / (− 0.534164) P3 = (U−4.34322 V) /9.020881 (20) Next, subtract this maximum value P from the luminance Y. The magnitude of the color change is obtained by the
It is set in the other register of a.

【0061】積和演算回路18は両者の積を求め、同時
に入力であるU、Vとの和を求める 。 U’=U+△u*(Y−P) V’=V+△v*(Y−P) …(21) これにより色変換がなされ、その後,色修正手段(図示
せず)においてその値が8ビットで表現できるか判定さ
れ、もし8ビットデータに変換することができない場合
には、強制的に色を修正し、出力される。
The product-sum operation circuit 18 obtains the product of both, and simultaneously obtains the sum of the inputs U and V. U '= U + [Delta] u * (Y-P) V' = V + [Delta] v * (Y-P) (21) As a result, color conversion is performed, and then the value is set to 8 by the color correction means (not shown). It is determined whether the data can be expressed in bits, and if it cannot be converted into 8-bit data, the color is forcibly corrected and output.

【0062】(F)色修正の方法 本発明はYUVの入力とYUVの出力を前提としている
が、色変換後のUV刺激値は必ずしも所定のビット数に
収まるとは限らない。所定のビット数をはみ出した場合
その画素は再生装置では再生できない色に変換されてし
まったことになり、なんらかの修正を加えなければなら
ない。この場合の対処法としては、例えば、以下の2つ
の方法が考えられる。
(F) Color Correction Method Although the present invention is premised on YUV input and YUV output, the UV stimulus value after color conversion does not always fall within a predetermined number of bits. If the pixel exceeds the predetermined number of bits, it means that the pixel has been converted into a color that cannot be reproduced by the reproducing apparatus, and some correction must be made. As a coping method in this case, for example, the following two methods can be considered.

【0063】第1の方法は、「UV値の所定のビット数
を越えた分については頭打ちする」方法である。
The first method is a method of "capturing the UV value exceeding a predetermined number of bits".

【0064】第2の方法は、「所定のビット数より多い
ビット数で量子化しておいて、後で、所定のビット数に
納まるように再量子化する」方法である。
The second method is a method of "quantizing with a number of bits larger than a predetermined number of bits and later requantizing so that the number of bits is within the predetermined number".

【0065】まず、第1の方法を説明する。First, the first method will be described.

【0066】入力の3刺激値がYUVそれぞれ8ビット
であるとしても、色変換を実行した後の3刺激値は8ビ
ットで表せないことがある。よって、色変換を浮動小数
点演算で実現している場合、最終出力を3刺激値に変換
する時に、「値がもし、0より小さいならば、0を出力
する」「値がもし、255より大きいならば、255を
出力する」ようにすると、第1の色修正方法が実行され
る。
Even if the input tristimulus values are 8 bits for each YUV, the tristimulus values after the color conversion may not be represented by 8 bits. Therefore, when the color conversion is realized by the floating point arithmetic, when the final output is converted into the tristimulus value, “if the value is less than 0, 0 is output.” “The value is greater than 255. If so, output 255 ”, and the first color correction method is executed.

【0067】次に、第2の方法を説明する。Next, the second method will be described.

【0068】色変換を浮動小数点演算で実現している場
合、最終出力を3刺激値に変換する時に、入力が符号無
し8ビットだとすると符号無し9ビットで整数化し、比
較回路により最大値を検出しながらメモリに書き込み一
時記憶しておく。全ての色変換が終了したら、記憶して
いた符号無し9ビットのデータを読み出し、求めておい
た最大値でスケーリングして符号無し8ビットのデータ
に変換し、出力とする。これにより第2の色修正方法が
実行される。
When color conversion is realized by floating point arithmetic, when converting the final output into tristimulus values, if the input is 8 bits without a sign, it is converted into an integer with 9 bits without a sign, and the maximum value is detected by the comparison circuit. While writing to the memory, it is temporarily stored. When all color conversion is completed, the stored unsigned 9-bit data is read, scaled by the obtained maximum value, converted to unsigned 8-bit data, and output. As a result, the second color correction method is executed.

【0069】またデータをRGB刺激値に変換して記録
しておくことも、パソコン用にしばしば行われるが、こ
の場合も前記RGB−YUV変換式で変換したRGB刺
激値が所定のビット精度で表せるとは限らない。この場
合はRGBに変換する前に色修正を行うのが好ましい。
3番目としてこの場合の方法を説明する。
Also, it is often done for a personal computer to convert data into RGB stimulus values and record them. In this case, the RGB stimulus values converted by the RGB-YUV conversion formula can be expressed with a predetermined bit precision. Not necessarily. In this case, it is preferable to perform color correction before converting to RGB.
The method in this case will be described as the third.

【0070】すなわち、第3の方法は、「再生可能な制
限範囲の中に座標が入るように、色相を保ちながら彩度
を落とす」方法である。
That is, the third method is a method of "decreasing the saturation while maintaining the hue so that the coordinates fall within the reproducible limit range".

【0071】この方法は具体的には次のように行えばよ
い。
Specifically, this method may be performed as follows.

【0072】まずRGB刺激値が8ビットで表されるも
のとして次式を得る。
First, the following equation is obtained assuming that the RGB stimulus value is represented by 8 bits.

【0073】 0≦R<256 0≦G<256 0≦B<256 …(22) これにYUV−RGB変換式を代入して次式を得る。0 ≦ R <256 0 ≦ G <256 0 ≦ B <256 (22) By substituting the YUV-RGB conversion formula into this, the following formula is obtained.

【0074】 0≦Y +1.14V<256 0≦Y−0.39602 U−0.58084 V<256 0≦Y +2.03U <256 …(23) この不等式によって、RGB座標に変換する前に、その
色が再生可能かどうかを判定することができる。つま
り、色変換後の値を(Y、U’、V’)として、(Y、
tU’、tV’)が上記不等式を満たすかどうかを次の
式により計算する。
0 ≦ Y + 1.14V <256 0 ≦ Y−0.39602 U−0.58084 V <256 0 ≦ Y + 2.03U <256 (23) By this inequality, the color is reproduced before being converted into RGB coordinates. It is possible to determine whether it is possible. That is, the value after color conversion is (Y, U ', V'), and (Y,
Whether tU ′, tV ′) satisfies the above inequality is calculated by the following equation.

【0075】 t1=−Y/(1.14V) t2=−Y/(−0.39602 U−0.58084 V) t3=−Y/(2.03U) t4=(256−Y)/(1.14V) t5=(256−Y)/(−0.39602 U−0.58084 V) t6=(256−Y)/(2.03U) …(24) これらt1〜t6のうち正の数で最小のものをtとす
る。もしtがt>1を満たすならばその色は再生できな
い。よって、色を(Y、tU’、tV’)に修正するの
である。
T1 = −Y / (1.14V) t2 = −Y / (− 0.39602 U−0.58084 V) t3 = −Y / (2.03U) t4 = (256−Y) / (1.14V) t5 = (256 -Y) / (-0.39602 U-0.58084 V) t6 = (256-Y) / (2.03U) (24) Among these t1 to t6, the smallest positive number is defined as t. If t satisfies t> 1, the color cannot be reproduced. Therefore, the color is corrected to (Y, tU ', tV').

【0076】以上の色修正を実行するのが、図6に示す
色修正回路である。すなわち、この色修正回路は、上記
第24式の演算を行い、判定器30にて正の最小値を判
定するものである。
The color correction circuit shown in FIG. 6 executes the above color correction. That is, this color correction circuit performs the operation of the above-mentioned formula 24 and determines the positive minimum value by the determiner 30.

【0077】本発明では、特に色変換が強いときに色変
換後のUV値が飽和することが問題となり、実験によれ
ば本発明では第1または第3の方法により、偽輪郭や異
常な領域の発生を有効に防ぐことができることがわかっ
ている。
In the present invention, there is a problem that the UV value is saturated after the color conversion especially when the color conversion is strong. According to the experiment, the present invention shows that the false contour or the abnormal area is obtained by the first or third method. It has been found that the occurrence of can be effectively prevented.

【0078】[0078]

【発明の効果】以上説明したように、本発明に係る色変
換装置によれば、次のような効果がある。
As described above, the color conversion device according to the present invention has the following effects.

【0079】YUVなどの輝度色差のデジタルデータで
表された画像について、光源の色度をシフトすることに
より、再生画像の色を自然に補正することができる。ま
た再生するときに好みに応じて、光源の色度をより自然
に変えて表示することが可能になる。
With respect to an image represented by digital data of luminance color difference such as YUV, the color of the reproduced image can be naturally corrected by shifting the chromaticity of the light source. Further, when reproducing, it is possible to change the chromaticity of the light source more naturally and display it according to preference.

【0080】また、本発明は、従来の色度図やスペクト
ル軌跡を利用せず、計算が簡単であるため、小さな回路
規模で実現でき、消費電流が少なく、集積化に適してい
る。
Further, since the present invention does not utilize the conventional chromaticity diagram or spectrum locus and the calculation is simple, it can be realized with a small circuit scale, consumes less current, and is suitable for integration.

【0081】少ない演算で実行でき、一画面分の処理を
行っても短時間で実行できる。特にスペクトル軌跡を厳
密に求めずにuv平面内の3角形で近似して計算を進め
るため、色変更の大きさを求めるのにわり算器や平方根
を求める回路が必要ない。ゆえに少ない計算で済み、非
常に回路が単純化されかつ処理速度も向上する。
It can be executed with a small number of calculations, and can be executed in a short time even if processing for one screen is performed. In particular, the spectrum locus is approximated by a triangle in the uv plane without being strictly obtained, and the calculation is advanced. Therefore, a calculator and a circuit for obtaining a square root are not necessary to obtain the magnitude of color change. Therefore, less calculation is required, the circuit is greatly simplified, and the processing speed is improved.

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

【図1】uv色度図と近似三角形103を示す説明図で
ある。
FIG. 1 is an explanatory diagram showing a uv chromaticity diagram and an approximate triangle 103.

【図2】図1の右下部分の拡大図である。FIG. 2 is an enlarged view of a lower right portion of FIG.

【図3】RGB座標系とYUV座標系との関係を三角法
により示す説明図である。
FIG. 3 is an explanatory diagram showing a relationship between an RGB coordinate system and a YUV coordinate system by trigonometry.

【図4】色変換装置の第1実施例の構成を示すブロック
図である。
FIG. 4 is a block diagram showing a configuration of a first embodiment of a color conversion device.

【図5】色変換装置の第2実施例の構成を示すブロック
図である。
FIG. 5 is a block diagram showing a configuration of a second embodiment of a color conversion device.

【図6】色修正回路を示すブロック図である。FIG. 6 is a block diagram showing a color correction circuit.

【図7】従来のxy色度図を示す説明図である。FIG. 7 is an explanatory diagram showing a conventional xy chromaticity diagram.

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

100 スペクトル軌跡 102 純紫軌跡 103 近似三角形 106 軌跡ループ 100 spectrum locus 102 pure purple locus 103 approximate triangle 106 locus loop

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 単位輝度当たりの色変更量を設定する手
段と、 デジタルデータで供給されるカラー画像の輝度と2つの
色差を入力とし、これを色変換して出力する演算部と、 を含む色変換装置であって、 前記演算部は、 前記2つの色差を座標化した所定の色度図において、ス
ペクトル軌跡及び純紫軌跡を複数の1次式で表される所
定の多角形とみなした場合に、無彩色と当該画素の色と
を結ぶ直線と、前記所定の多角形の辺と、の交点を求め
ることにより刺激純度を求める手段と、 前記刺激純度と前記輝度とから色変更の大きさを求める
手段と、 前記色変更の大きさと前記単位輝度当たりの色変更量と
の積を求め、その積を入力された前記色差に加算する手
段と、 を備えることを特徴とする色変換装置。
1. A unit for setting a color change amount per unit luminance, and a calculation unit for inputting the luminance of a color image supplied as digital data and two color differences, and performing color conversion and outputting the color conversion. In the color conversion device, the arithmetic unit regards a spectrum locus and a pure purple locus as a predetermined polygon represented by a plurality of linear expressions in a predetermined chromaticity diagram in which the two color differences are coordinated. In this case, a means for obtaining the stimulus purity by obtaining the intersection of the straight line connecting the achromatic color and the color of the pixel and the side of the predetermined polygon, and the size of the color change from the stimulus purity and the luminance. A color conversion device, and a means for obtaining the product of the magnitude of the color change and the color change amount per unit luminance and adding the product to the input color difference. .
JP4163044A 1992-06-22 1992-06-22 Color conversion device Pending JPH066822A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4163044A JPH066822A (en) 1992-06-22 1992-06-22 Color conversion device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4163044A JPH066822A (en) 1992-06-22 1992-06-22 Color conversion device

Publications (1)

Publication Number Publication Date
JPH066822A true JPH066822A (en) 1994-01-14

Family

ID=15766119

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4163044A Pending JPH066822A (en) 1992-06-22 1992-06-22 Color conversion device

Country Status (1)

Country Link
JP (1) JPH066822A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6958772B1 (en) 1999-01-20 2005-10-25 Canon Kabushiki Kaisha Image sensing apparatus and image processing method therefor
CN111064944A (en) * 2019-12-05 2020-04-24 华侨大学 Colorless constant white balance method

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6958772B1 (en) 1999-01-20 2005-10-25 Canon Kabushiki Kaisha Image sensing apparatus and image processing method therefor
US7542076B2 (en) 1999-01-20 2009-06-02 Canon Kabushiki Kaisha Image sensing apparatus having a color interpolation unit and image processing method therefor
US7929026B2 (en) 1999-01-20 2011-04-19 Canon Kabushiki Kaisha Image sensing apparatus and image processing method thereof using color conversion and pseudo color removing
CN111064944A (en) * 2019-12-05 2020-04-24 华侨大学 Colorless constant white balance method
CN111064944B (en) * 2019-12-05 2021-11-02 华侨大学 Colorless constant white balance method

Similar Documents

Publication Publication Date Title
JP5481021B2 (en) Heterogeneous color gamut mapping method and apparatus
US7027105B2 (en) Method and apparatus for changing brightness of image
US6823083B1 (en) Saturation correcting apparatus and method
US7599551B2 (en) Color correction device and color correction method
US20090060326A1 (en) Image processing apparatus and method
JP2004286814A (en) Four-color display device
JP2004356930A (en) Apparatus and method for adjusting color
US8064693B2 (en) Methods of and apparatus for adjusting colour saturation in an input image
US6894720B2 (en) Method and apparatus for applying tone mapping functions to color images
JP2004032060A (en) Color picture signal processing method and color image output arrangement as well as photographing equipment
US7224833B2 (en) Method for fast color saturation control
JP2002109523A (en) Image pickup device, optical filter group, and image data converter
JP2876853B2 (en) Color converter
JP2007019970A (en) Device and method for color correction
US20050147294A1 (en) Enhanced color correction circuitry capable of employing negative RGB values
JPH066822A (en) Color conversion device
JPH1117968A (en) Color conversion method of image
JP3105633B2 (en) Color conversion device and electronic camera
JP2002094826A (en) Image processing unit, image forming unit and method for processing image
JP3105681B2 (en) Color conversion circuit
KR100464323B1 (en) Method and apparatus for changing brightness of image
JPH05344529A (en) Method and device for converting color
JPH06334850A (en) Color conversion processing unit
JP3205054B2 (en) Color image processing apparatus and method
JPH07319438A (en) Color picture processing method and its device