JPH08161468A - Color conversion processing unit - Google Patents

Color conversion processing unit

Info

Publication number
JPH08161468A
JPH08161468A JP6302380A JP30238094A JPH08161468A JP H08161468 A JPH08161468 A JP H08161468A JP 6302380 A JP6302380 A JP 6302380A JP 30238094 A JP30238094 A JP 30238094A JP H08161468 A JPH08161468 A JP H08161468A
Authority
JP
Japan
Prior art keywords
color
signal
interpolation
signals
bits
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
JP6302380A
Other languages
Japanese (ja)
Other versions
JP3576612B2 (en
Inventor
Katsumi Asakawa
勝己 浅川
Hiroaki Sugiura
博明 杉浦
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP30238094A priority Critical patent/JP3576612B2/en
Publication of JPH08161468A publication Critical patent/JPH08161468A/en
Application granted granted Critical
Publication of JP3576612B2 publication Critical patent/JP3576612B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PURPOSE: To obtain the color conversion processing unit in which color conversion with high accuracy in real time or at a speed equivalent thereto is realized with a small circuit scale and the conversion accuracy of a dark part is especially enhanced. CONSTITUTION: The processing unit is provided with a 1st storage means 20 that stores the 1st color signal where its dark part is increased densely and its highlight part (high luminance part) is converted roughly when a 1st 3-dimensional color space represented by 1st to 3rd color signals is converted into a 2nd 3-dimensional color space represented by 4th to 6th color signals, a 2nd storage means 1 that receives a storage area number of the 1st color signal stored in the 1st storage means 20 and receives the 2nd and 3rd color signals and provides an output of the 4th to 6th color signals at plural points located at unit grating in the vicinity of points represented by the 2nd and 3rd color signals in the 2nd 3-dimensional color space, an interpolation coefficient generating means 2 generating an interpolation coefficient to calculate an interpolation signal from the 4th to 6th color signals at the plural points, and interpolation processing means 11, 12, 18, 19 interpolating the 4th to 6th color signals based on the 4th to 6th color signals at plural points and the interpolation coefficient.

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 processing device.

【0002】[0002]

【従来の技術】図7は、従来の色変換処理装置及び色逆
変換処理装置を示すブロック回路図である。図におい
て、44,45は3次元ルックアップテーブル(以下、
「LUT」と記す)である。
2. Description of the Related Art FIG. 7 is a block circuit diagram showing a conventional color conversion processing apparatus and color inverse conversion processing apparatus. In the figure, 44 and 45 are three-dimensional lookup tables (hereinafter,
"LUT").

【0003】次に、動作について説明する。カラーテレ
ビジョン方式には、NTSC(NationalTelevision System C
ommittee)方式、PAL(Phase Alternation by Line)方
式、SECAM(Sequential a Memoire)方式があるが、例え
ばNTSC方式におけるRGB色空間の信号を、CIE 1976 L
*a*b*均等知覚色空間の信号に変換する方法を以下に示
す。
Next, the operation will be described. For color television systems, NTSC (National Television System C
ommittee) system, PAL (Phase Alternation by Line) system, and SECAM (Sequential a Memoire) system. For example, signals in the RGB color space in the NTSC system are CIE 1976 L
* a * b * A method of converting to a signal in the uniform perceptual color space is shown below.

【0004】CIE 1976 L*a*b*均等知覚色空間は、国際
照明委員会(Commission Internationale del’Eclaira
ge 略称 CIE)が1976年に推奨した知覚的にほぼ均等な
歩度をもつ色空間である。まず、以下の(1),
(2),(3)式に示すように、NTSC方式のRGB信号
をXYZに変換する。 X=0.6069R+0.1739G+0.2009B ……(1) Y=0.2991R+0.5870G+0.1139B ……(2) Z=0.0000R+0.0660G+1.1169B ……(3)
The CIE 1976 L * a * b * uniform perceptual color space is defined by the Commission Internationale de l'Eclaira.
ge is an abbreviated name CIE) recommended in 1976, and is a color space with a perceptually almost even rate. First, the following (1),
As shown in equations (2) and (3), the NTSC RGB signal is converted into XYZ. X = 0.6069R + 0.1739G + 0.209B …… (1) Y = 0.2991R + 0.5870G + 0.1139B …… (2) Z = 0.0000R + 0.0660G + 1.1169B …… (3)

【0005】NTSC方式における基準白色はC光源(色度
座標x=0.3101,y=0.3163:相関色温度約6770K)であり、
C光源の三刺激値X000はY0を100とすると
(4),(5),(6)式のようになる。 X0=98.072 ……(4) Y0=100.000 ……(5) Z0=118.225 ……(6)
The reference white color in the NTSC system is a C light source (chromaticity coordinate x = 0.3101, y = 0.3163: correlated color temperature of about 6770K),
The tristimulus value X 0 Y 0 Z 0 of the C light source is expressed by equations (4), (5), and (6) when Y 0 is 100. X 0 = 98.072 …… (4) Y 0 = 100.000 …… (5) Z 0 = 118.225 …… (6)

【0006】XYZから基準白色をC光源とするL*a*b*
に変換する。 L*=116(Y/Y0)1/3-16 :Y/Y0> 0.008856 ……(7) L*=903.29(Y/Y0) :Y/Y0<=0.008856 ……(8) a*=500(X’-Y’) ……(9) b*=200(Y’-Z’) ……(10) X’=(X/X0)1/3 :X/X0> 0.008856 ……(11) X’=7.787(X/X0)+16/116 :X/X0<=0.008856 ……(12) Y’=(Y/Y0)1/3 :Y/Y0> 0.008856 ……(13) Y’=7.787(Y/Y0)+16/116 :Y/Y0<=0.008856 ……(14) Z’=(Z/Z0)1/3 :Z/Z0> 0.008856 ……(15) Z’=7.787(Z/Z0)+16/116 :Z/Z0<=0.008856 ……(16) (1)式〜(16)式の変換式により、NTSC方式におけ
るRGB色空間の信号を、CIE 1976 L*a*b*均等知覚色
空間の信号に非線形変換する。
L * a * b * with XYZ as a reference white light source as C light source
Convert to. L * = 116 (Y / Y 0) 1/3 -16: Y / Y 0> 0.008856 ...... (7) L * = 903.29 (Y / Y 0): Y / Y 0 <= 0.008856 ...... (8) a * = 500 (X'-Y ') ...... (9) b * = 200 (Y'-Z') ...... (10) X '= (X / X 0) 1/3: X / X 0> 0.008856 …… (11) X '= 7.787 (X / X 0 ) +16/116: X / X 0 <= 0.008856 …… (12) Y' = (Y / Y 0 ) 1/3 : Y / Y 0 > 0.008856 …… (13) Y '= 7.787 (Y / Y 0 ) +16/116 : Y / Y 0 <= 0.008856 …… (14) Z' = (Z / Z 0 ) 1/3 : Z / Z 0 > 0.008856 ...... (15) Z '= 7.787 (Z / Z 0 ) +16/116: Z / Z 0 <= 0.008856 ・ ・ ・ (16) By the conversion formulas of formula (1) to formula (16), NTSC A signal of RGB color space in the method is non-linearly converted into a signal of CIE 1976 L * a * b * uniform perceptual color space.

【0007】次に、CIE 1976 L*a*b*均等知覚色空間を
RGB色空間の信号に逆変換する方法を以下に示す。ま
ず、以下の(17)式〜(20)式に示すように、基準
白色をC光源とするL*a*b*からXYZに変換する。 X=X0{(L*+16)/116+a*/500}3 ……(17) Y=Y0{(L*+16)/116}3 :L*>=8.0 ……(18) Y=Y0×L*/903.29 :L*< 8.0 ……(19) Z=Z0{(L*+16)/116-b*/200}3 ……(20)
Next, a method for inversely converting the CIE 1976 L * a * b * uniform perceptual color space into an RGB color space signal will be described below. First, as shown in the following equations (17) to (20), L * a * b * in which the reference white color is the C light source is converted into XYZ. X = X 0 {(L * + 16) / 116 + a * / 500} 3 (17) Y = Y 0 {(L * + 16) / 116} 3 : L * > = 8.0 ...... (18 ) Y = Y 0 × L * / 903.29: L * <8.0 …… (19) Z = Z 0 {(L * + 16) / 116-b * / 200} 3 …… (20)

【0008】XYZをNTSC方式のRGB信号に変換す
る。 R=1.9106X−0.5335Y−0.2893Z ……(21) G=−0.9848X+1.9983Y−0.0266Z ……(22) B=0.0582X−0.1181Y+0.8969Z ……(23)
XYZ is converted into an NTSC type RGB signal. R = 1.9106X-0.5335Y-0.2893Z (21) G = -0.9848X + 1.9983Y-0.0266Z (22) B = 0.0582X-0.1181Y + 0.8969Z (23)

【0009】(1)式〜(16)式の変換式から全ての
R,G,Bに対するL*,a*,b*を算出し、変換値を3次元
LUT44に記憶させる。また、(17)式〜(23)
式の逆変換式からL*,a*,b*に対する全てのR,G,Bを
算出し、変換値を3次元LUT45に記憶させる。
From the conversion formulas (1) to (16), L * , a * , and b * for all R, G, and B are calculated, and the converted values are stored in the three-dimensional LUT 44. Also, equations (17) to (23)
All R, G, and B for L * , a * , and b * are calculated from the inverse conversion formula of the formula, and the conversion values are stored in the three-dimensional LUT 45.

【0010】図8に3次元LUT44の概念図を示す。
3次元LUT44により、入力信号Ri,Gi,Biの格子点に
位置する出力信号L(Ri,Gi,Bi),a(R
i,Gi,Bi),b(Ri,Gi,Bi)が得られ
る。
FIG. 8 shows a conceptual diagram of the three-dimensional LUT 44.
The three-dimensional LUT 44 allows the output signals L * (Ri, Gi, Bi), a * (R) located at the grid points of the input signals Ri, Gi, Bi.
i, Gi, Bi), b * (Ri, Gi, Bi) are obtained.

【0011】図9に3次元LUT45の概念図を示す。
3次元LUT45により、入力信号Li,ai,b
の格子点に位置する出力信号R(Li*,ai*,bi*),G(L
i*,ai*,bi*),B(Li*,ai*,bi*)が得られる。
FIG. 9 shows a conceptual diagram of the three-dimensional LUT 45.
The three-dimensional LUT 45 allows the input signals Li * , ai * , b
The output signal is located at a lattice point of the i * R (Li *, ai *, bi *), G (L
i * , ai * , bi * ) and B (Li * , ai * , bi * ) are obtained.

【0012】これらの正変換、逆変換に用いる3次元L
UTの格子点数を多くするほど変換精度は高くなる。全
ての入力信号に対する出力信号をLUTにより直接得る
方法をダイレクトマッピング法といい、ダイレクトマッ
ピング法を用いると、どの様な複雑な変換方法であって
も、高速かつ高精度の変換が可能となる。
Three-dimensional L used for these forward and reverse transformations
The greater the number of UT grid points, the higher the conversion accuracy. The method of directly obtaining the output signals for all the input signals by the LUT is called the direct mapping method. By using the direct mapping method, it is possible to perform high-speed and high-precision conversion regardless of any complicated conversion method.

【0013】しかし、例えば入力信号R,G,B、出力
信号L*,a*,b*を各々8ビットとすると、この正変換に用
いる3次元LUT44の容量は384Mビットとなり、大
規模な記憶手段を必要とするため、実用的ではない。一
般には、入力信号の上位信号を用いてダイレクトマッピ
ング法により数個の近傍値を得、入力信号の下位信号を
用いて、数個の近傍値から出力信号を補間する方法が用
いられる。
However, for example, if the input signals R, G, B and the output signals L * , a * , b * are each 8 bits, the capacity of the three-dimensional LUT 44 used for this normal conversion becomes 384 Mbits, and a large scale memory is required. It is not practical because it requires means. In general, a method is used in which several nearby values are obtained by a direct mapping method using an upper signal of an input signal and an output signal is interpolated from several neighboring values using a lower signal of the input signal.

【0014】次に、他の従来の技術について説明する。
図10は、「ITEJ Technical Report Vol.16,No.31,pp.
25-30」に示された他の従来の色変換処理装置を示すブ
ロック回路図である。図において、46は3次元LU
T、47は補間係数生成回路、48から55は乗算器、
56は加算回路である。
Next, another conventional technique will be described.
Figure 10 shows "ITEJ Technical Report Vol.16, No.31, pp.
25-30 ”is a block circuit diagram showing another conventional color conversion processing device. In the figure, 46 is a three-dimensional LU
T and 47 are interpolation coefficient generation circuits, 48 to 55 are multipliers,
56 is an adder circuit.

【0015】入力信号Ri,Gi,Biの上位信号Rn,Gn,Bnを3
次元LUT46に入力する。また、Ri,Gi,Biの下位信号
r,g,bを補間係数生成回路47に入力する。3次元LU
T46の出力d0,d1,d2,d3,d4,d5,d6,d7を各々乗算器4
8,49,50,51,52,53,54,55に入力
する。補間係数生成回路47の出力w0,w1,w2,w3,w4,w5,
w6,w7を各々乗算器48,49,50,51,52,5
3,54,55に入力する。乗算器48,49,50,
51,52,53,54,55の出力を加算回路56に
入力する。加算回路56の出力の上位8ビット分dを得
る。dはd0,d1,d2,d3,d4,d5,d6,d7に各々w0,w1,w2,w3,w
4,w5,w6,w7を乗じて加え合わせ、補間係数を1に正規化
するために下位15ビット分を切り捨てたものである。
The upper signals Rn, Gn, Bn of the input signals Ri, Gi, Bi are set to 3
Input to the dimension LUT 46. Also, the lower signals of Ri, Gi, Bi
The r, g and b are input to the interpolation coefficient generation circuit 47. Three-dimensional LU
T46 of the output d 0, d 1, d 2 , d 3, d 4, d 5, d 6, and d 7 each multiplier 4
Input to 8, 49, 50, 51, 52, 53, 54, 55. Outputs of interpolation coefficient generation circuit 47 w 0 , w 1 , w 2 , w 3 , w 4 , w 5 ,
w 6 and w 7 are respectively multiplied by multipliers 48, 49, 50, 51, 52, 5
Input to 3, 54, 55. Multipliers 48, 49, 50,
The outputs of 51, 52, 53, 54 and 55 are input to the adder circuit 56. The higher 8 bits d of the output of the adder circuit 56 are obtained. d is d 0 , d 1 , d 2 , d 3 , d 4 , d 5 , d 6 , d 7 respectively w 0 , w 1 , w 2 , w 3 , w
It is obtained by multiplying 4 , w 5 , w 6 , and w 7 and adding them together, and discarding the lower 15 bits in order to normalize the interpolation coefficient to 1.

【0016】次に、動作について説明する。入力信号R
i,Gi,Biを各々mビットの信号、入力信号Ri,Gi,Biの上
位nビット分を各々Rn,Gn,Bnとする。ただし、m>nで
ある。3次元LUT46から入力信号Ri,Gi,Biの近傍8
点の単位立方格子(Rn,Gn,Bn),(Rn+Dn,Gn,Bn),(Rn+Dn,G
n,Bn+Dn),(Rn,Gn,Bn+Dn),(Rn,Gn+Dn,Bn),(Rn+Dn,Gn+Dn,
Bn),(Rn+Dn,Gn+Dn,Bn+Dn),(Rn,Gn+Dn,Bn+Dn)に位置する
d0,d1,d2,d3,d4,d5,d6,d7を得る。ただし、Dnは3次元
LUT46の単位立方格子の1辺の長さで2m-nである。
Next, the operation will be described. Input signal R
It is assumed that i, Gi, Bi are m-bit signals, and upper n bits of the input signals Ri, Gi, Bi are Rn, Gn, Bn, respectively. However, m> n. Neighborhood 8 of the input signals Ri, Gi, Bi from the three-dimensional LUT 46
Unit cubic lattice of points (Rn, Gn, Bn), (Rn + Dn, Gn, Bn), (Rn + Dn, G
n, Bn + Dn), (Rn, Gn, Bn + Dn), (Rn, Gn + Dn, Bn), (Rn + Dn, Gn + Dn,
Bn), (Rn + Dn, Gn + Dn, Bn + Dn), (Rn, Gn + Dn, Bn + Dn)
Obtain d 0 , d 1 , d 2 , d 3 , d 4 , d 5 , d 6 , d 7 . However, Dn is 2 mn, which is the length of one side of the unit cubic lattice of the three-dimensional LUT 46.

【0017】次に、補間法について説明する。図11に
示すように、入力信号Ri,Gi,Biの近傍8点の単位立方格
子に位置する出力信号をd0,d1,d2,d3,d4,d5,d6,d7とす
る。入力信号Ri,Gi,Biの下位m−nビット分を各々r,g,
b、単位立方格子の一辺の長さをDnとする。入力信号Ri,
Gi,Biを中心としてR軸方向、G軸方向、B軸方向の3
方向で8分割した直方体の体積を、各々w0,w1,w2,w3,
w4,w5,w6,w7とする。入力信号Ri,Gi,Biに対する出力信
号dは、式(24)のように補間される。 d=d0w0+d1w1+d2w2+d3w3+d4w4+d5w5+d6w6+d7w7 ……(24) この補間法を用いて、L*,a*,b*それぞれの補間を行な
う。
Next, the interpolation method will be described. As shown in FIG. 11, the output signals located in the unit cubic lattice of eight points near the input signals Ri, Gi, Bi are d 0 , d 1 , d 2 , d 3 , d 4 , d 5 , d 6 , d. Set to 7 . The lower m-n bits of the input signals Ri, Gi, Bi are respectively r, g,
b, the length of one side of the unit cubic lattice is Dn. Input signal Ri,
3 about R axis direction, G axis direction and B axis direction with Gi and Bi as the center
The volume of a rectangular parallelepiped that is divided into eight parts in each direction is w 0 , w 1 , w 2 , w 3 ,
and w 4, w 5, w 6 , w 7. The output signal d for the input signals Ri, Gi, Bi is interpolated as shown in Expression (24). d = d 0 w 0 + d 1 w 1 + d 2 w 2 + d 3 w 3 + d 4 w 4 + d 5 w 5 + d 6 w 6 + d 7 w 7 (24) This interpolation method Then, each of L * , a * , and b * is interpolated.

【0018】逆変換についても同様である。図12は、
従来の色逆変換処理装置を示すブロック回路図である。
図において、57は3次元LUT、58は補間係数生成
回路、59〜66は乗算器、67は加算回路である。
The same applies to the inverse transformation. Figure 12
It is a block circuit diagram which shows the conventional color reverse conversion processing apparatus.
In the figure, 57 is a three-dimensional LUT, 58 is an interpolation coefficient generation circuit, 59 to 66 are multipliers, and 67 is an addition circuit.

【0019】入力信号Li*,ai*,bi*の上位信号Ln*,an*,b
n*を3次元LUT57に入力する。また、Li*,ai*,bi*
の下位信号l*,a*,b*を補間係数生成回路58に入力す
る。3次元LUT57の出力p0,p1,p2,p3,p4,p5,p6,p7
を各々乗算器59,60,61,62,63,64,6
5,66に入力する。補間係数生成回路58の出力v0,v
1,v2,v3,v4,v5,v6,v7を各々乗算器59,60,61,
62,63,64,65,66に入力する。乗算器5
9,60,61,62,63,64,65,66の出力
を加算回路67に入力する。加算回路67の出力の上位
8ビット分pを得る。pはp0,p1,p2,p3,p4,p5,p6,p7
各々v0,v1,v2,v3,v4,v5,v6,v7を乗じて加え合わせ、補
間係数を1に正規化するために下位15ビット分を切り
捨てたものである。
Upper signal Ln * , an * , b of input signals Li * , ai * , bi *
Input n * to the three-dimensional LUT 57. Also, Li * , ai * , bi *
The lower order signals l * , a * , b * of are input to the interpolation coefficient generation circuit 58. Outputs of three-dimensional LUT 57 p 0 , p 1 , p 2 , p 3 , p 4 , p 5 , p 6 , p 7
To multipliers 59, 60, 61, 62, 63, 64, 6 respectively.
Input to 5,66. Outputs v 0 , v of the interpolation coefficient generation circuit 58
1 , v 2 , v 3 , v 4 , v 5 , v 6 , v 7 are respectively multiplied by multipliers 59, 60 , 61,
Input to 62, 63, 64, 65, 66. Multiplier 5
The outputs of 9, 60, 61, 62, 63, 64, 65, 66 are input to the adder circuit 67. The upper 8 bits p of the output of the adder circuit 67 are obtained. p is p 0 , p 1 , p 2 , p 3 , p 4 , p 5 , p 6 , p 7 respectively v 0 , v 1 , v 2 , v 3 , v 4 , v 5 , v 6 , v 7 Is added and multiplied, and the lower 15 bits are truncated to normalize the interpolation coefficient to 1.

【0020】次に、動作について説明する。入力信号Li
*,ai*,bi*を各々mビットの信号、入力信号Li*,ai*,bi*
の上位nビット分を各々Ln*,an*,bn*とする。ただし、
m>nである。3次元LUT57から入力信号Li*,ai*,
bi*の近傍8点の単位立方格子(Ln*,an*,bn*),(Ln*,an*+
Dn,bn*),(Ln*,an*+Dn,bn*+Dn),(Ln*,an*,bn*+Dn),(Ln*+
Dn,an*,bn*),(Ln*+Dn,an*+Dn,bn*),(Ln*+Dn,an*+Dn,bn*
+Dn),(Ln*+Dn,an*,bn*+Dn)に位置するp0,p1,p2,p3,p4,p
5,p6,p7を得る。ただし、Dnは3次元LUT57の単位
立方格子の1辺の長さで2m-nである。
Next, the operation will be described. Input signal Li
* , ai * , bi * are m-bit signals and input signals Li * , ai * , bi *
The upper n bits of are defined as Ln * , an * , and bn * , respectively. However,
m> n. Input signal Li * , ai * , from the three-dimensional LUT 57
A unit cubic lattice (Ln * , an * , bn * ), (Ln * , an * +) with 8 points near bi *
Dn, bn * ), (Ln * , an * + Dn, bn * + Dn), (Ln * , an * , bn * + Dn), (Ln * +
Dn, an * , bn * ), (Ln * + Dn, an * + Dn, bn * ), (Ln * + Dn, an * + Dn, bn *
+ Dn), (Ln * + Dn, an * , bn * + Dn) located at p 0 , p 1 , p 2 , p 3 , p 4 , p
Get 5 , p 6 and p 7 . However, Dn is 2 mn, which is the length of one side of the unit cubic lattice of the three-dimensional LUT 57.

【0021】次に補間法について説明する。図13に示
すように、入力信号Li*,ai*,bi*の近傍8点の単位立方
格子に位置する出力信号をp0,p1,p2,p3,p4,p5,p6,p7
する。入力信号Li*,ai*,bi*の下位m−nビット分を各
々l*,a*,b*、単位立方格子の一辺の長さをDnとする。入
力信号Li*,ai*,bi*を中心としてL*軸方向、a*軸方向、b
*軸方向の3方向で8分割した直方体の体積を、各々v0,
v1,v2,v3,v4,v5,v6,v7とする。入力信号Li*,ai*,bi*
対する出力信号pは、式(25)のように補間される。 p=p0v0+p1v1+p2v2+p3v3+p4v4+p5v5+p6v6+p7v7 ……(25)
Next, the interpolation method will be described. As shown in FIG. 13, the input signal Li *, ai *, an output signal that is located in the unit cubic lattice near eight points bi * p 0, p 1, p 2, p 3, p 4, p 5, p 6 and p 7 . The lower mn bits of the input signals Li * , ai * , and bi * are respectively l * , a * , and b * , and the length of one side of the unit cubic lattice is Dn. L * axis direction, a * axis direction, b centered on the input signal Li * , ai * , bi *
* The volume of a rectangular parallelepiped divided into eight in three axial directions is v 0 ,
v 1, v 2, v 3 , v 4, v and 5, v 6, v 7. The output signal p for the input signals Li * , ai * , and bi * is interpolated as shown in Expression (25). p = p 0 v 0 + p 1 v 1 + p 2 v 2 + p 3 v 3 + p 4 v 4 + p 5 v 5 + p 6 v 6 + p 7 v 7 (25)

【0022】[0022]

【発明が解決しようとする課題】従来の色変換処理装置
及び色逆変換処理装置は以上のように構成されているた
め、実時間またはそれに準ずる速度で色変換することは
可能であるが、以下の問題点があった。
Since the conventional color conversion processing device and color inverse conversion processing device are configured as described above, it is possible to perform color conversion in real time or at a speed equivalent thereto. There was a problem.

【0023】第1に、全ての入力信号に対する出力信号
をダイレクトマッピング法により得ると、高精度の変換
が可能であるが、大容量のLUTを必要とする。
First, if output signals for all input signals are obtained by the direct mapping method, highly accurate conversion is possible, but a large capacity LUT is required.

【0024】第2に、LUTの容量を縮小するために、
入力信号の上位信号を用いてダイレクトマッピング法に
より数個の近傍値を得、入力信号の下位信号を用いて、
数個の近傍値から出力信号を補間する方法では、単位立
方格子8点を用いる8点補間では変換精度は高いが、多
くの乗算器を必要とし、回路規模が大きくなる。また、
6点補間、5点補間、4点補間など、補間に用いるデー
タ数を減らして回路規模を小さくすると、乗算器の数は
少なくなるが変換精度も低くなる。
Second, in order to reduce the capacity of the LUT,
Using the upper signal of the input signal, several neighboring values are obtained by the direct mapping method, and by using the lower signal of the input signal,
In the method of interpolating the output signal from several neighboring values, the conversion accuracy is high in 8-point interpolation using 8-point unit cubic lattice, but many multipliers are required and the circuit scale becomes large. Also,
If the circuit scale is reduced by reducing the number of data used for interpolation such as 6-point interpolation, 5-point interpolation, and 4-point interpolation, the number of multipliers decreases but the conversion accuracy also decreases.

【0025】第3に、LUTの容量を削減するために変
換値は固定小数点で記憶される。例えば8ビットの場
合、変換値は0から255に丸められる。このため、変
換値が小さい場合には大きな丸め誤差が含まれる。この
丸め誤差を含んだ変換値を用いて補間処理を行なうた
め、補間値と実際の値には誤差が生ずる。特に色信号の
小さい部分、つまり、暗部では補間誤差が大きくなり、
変換精度は低くなる。
Third, the conversion value is stored in fixed point to reduce the capacity of the LUT. For example, in the case of 8 bits, the converted value is rounded from 0 to 255. Therefore, when the converted value is small, a large rounding error is included. Since the interpolation process is performed using the conversion value including the rounding error, an error occurs between the interpolation value and the actual value. Especially, the interpolation error becomes large in the part where the color signal is small, that is, in the dark part,
The conversion accuracy is low.

【0026】本発明は、上記のような問題点を解決する
ためになされたもので、実時間またはそれに準ずる速度
で、従来より高精度の色変換を少ない回路規模で行なう
こと、および特に、暗部の変換精度を高めることができ
る色変換処理装置及び色逆変換処理装置を得ることを目
的とする。
The present invention has been made in order to solve the above-mentioned problems, and performs color conversion with higher accuracy than before in a small circuit scale in real time or at a speed corresponding to it, and particularly, in dark areas. It is an object of the present invention to obtain a color conversion processing device and a color inverse conversion processing device that can improve the conversion accuracy of.

【0027】[0027]

【課題を解決するための手段】請求項1の発明に係る色
変換処理装置は、第1、第2、第3の色信号で表わされ
る第1の3次元色空間を第4、第5、第6の色信号で表
わされる第2の3次元色空間に変換する色変換処理装置
において、暗部は密に、中高輝度部は粗に増加させた第
1の色信号を格納した第1記憶手段と、第1の色信号を
上記第1記憶手段に入力して得られる格納番号及び第
2、第3の色信号を入力し、この入力信号を示す第2の
3次元色空間内の点の近傍の単位格子に位置する複数点
の第4、第5、第6の色信号を出力する第2記憶手段
と、前記複数点の第4、第5、第6の色信号から補間信
号を算出するための補間係数を生成する補間係数生成手
段と、前記複数点の第4、第5、第6の色信号と前記補
間係数により、第4、第5、第6の色信号を補間する補
間処理手段を備えたものである。
According to a first aspect of the present invention, there is provided a color conversion processing device, wherein a first three-dimensional color space represented by first, second and third color signals is used as a fourth, fifth and third color space. In the color conversion processing device for converting into the second three-dimensional color space represented by the sixth color signal, the first storage means stores the first color signal which is densely increased in the dark part and coarsely increased in the middle and high brightness parts. And a storage number obtained by inputting the first color signal into the first storage means and the second and third color signals are input, and a point in the second three-dimensional color space indicating the input signal Second storage means for outputting fourth, fifth, and sixth color signals of a plurality of points located in a unit cell in the vicinity, and an interpolation signal calculated from the fourth, fifth, and sixth color signals of the plurality of points Interpolation coefficient generating means for generating an interpolation coefficient for performing the fourth, fifth, and sixth color signals at the plurality of points and the interpolation coefficient. 5, those having an interpolation processing means for interpolating a sixth color signal.

【0028】請求項2の発明に係る色変換処理装置は、
第1、第2、第3の色信号で表わされる第1の3次元色
空間を第4、第5、第6の色信号で表わされる第2の3
次元色空間に変換する色変換処理装置において、色変換
後の第4、第5、第6の色信号で表わされる特定色の明
度を、暗部は密に、中高輝度部は粗に増加させた第1の
色信号を格納した第1記憶手段と、m(mは自然数)ビ
ットのディジタル信号である第1の色信号を上記第1記
憶手段に入力して得られる格納番号k(kは自然数)及
びmビットのディジタル信号である第2、第3の色信号
を入力し、この入力信号を示す第2の3次元色空間内の
点の近傍の単位直方格子に位置する、または位置すると
仮定した8点の第4、第5、第6の色信号を出力する第
2記憶手段と、前記8点の第4、第5、第6の色信号に
乗ずるための補間係数を生成する補間係数生成手段と、
mビットである上記第2、第3の色信号を含み、上記第
1の色信号がk番目に格納されたものである場合の4点
の単位平面格子に位置する第4、第5、第6の色信号
に、各々前記補間係数を乗じて加え合わせた第1補間信
号を出力する手段と、同様にmビットである第2、第3
の色信号を含み、上記第1の色信号がk+1番目に格納
されたものである場合の4点の単位平面格子に位置する
第4、第5、第6の色信号に、各々前記補間係数を乗じ
て加え合わせた第2補間信号を出力する手段と、上記第
1補間信号にk+1番目に格納された第1の色信号から
mビットの第1の色信号を減じたものを乗じて、第2補
間信号にmビットの第1の色信号からk番目に格納され
た第1の色信号を減じたものを乗じて加えることによ
り、第4、第5、第6の色信号を算出する補間処理手段
を備えたものである。
A color conversion processing device according to the invention of claim 2 is
The first three-dimensional color space represented by the first, second, and third color signals is converted to the second three-dimensional space represented by the fourth, fifth, and sixth color signals.
In a color conversion processing device for converting into a three-dimensional color space, the lightness of a specific color represented by the fourth, fifth, and sixth color signals after color conversion is increased densely in the dark part and coarsely in the middle and high brightness parts. A first storage means for storing the first color signal and a storage number k (k is a natural number) obtained by inputting the first color signal, which is a digital signal of m (m is a natural number) bit, to the first storage means. ) And m-bit digital signals, which are second and third color signals, are input, and are assumed to be located on or located in a unit rectangular grid in the vicinity of a point in the second three-dimensional color space indicating the input signals. Second storage means for outputting the fourth, fifth, and sixth color signals of eight points, and an interpolation coefficient for generating an interpolation coefficient for multiplying the fourth, fifth, and sixth color signals of the eight points Generating means,
The fourth, fifth, and fourth positions, which include the second and third color signals of m bits and are located in the unit plane lattice of four points when the first color signal is stored in the kth position Means for outputting a first interpolated signal obtained by multiplying the color signals of 6 by the above-mentioned interpolating coefficient and adding them together, and second and third similarly having m bits
And the first, second, and sixth color signals, which are located in the unit plane lattice of four points when the first color signal is stored in the k + 1th color signal, And a means for outputting a second interpolated signal obtained by multiplying and adding, and multiplying the first interpolated signal by subtracting the m-bit first color signal from the k + 1th stored first color signal, Fourth, fifth, and sixth color signals are calculated by multiplying the second interpolation signal by the m-bit first color signal minus the k-th stored first color signal and adding the result. It is provided with an interpolation processing means.

【0029】請求項3の発明に係る色変換処理装置は、
色変換後の第4、第5、第6の色信号で表わされる無彩
色の明度を、暗部は密に、中高輝度部は粗に増加させた
第1の色信号を第1記憶手段に格納したものである。
A color conversion processing device according to a third aspect of the invention is
The first storage means stores the first color signal in which the lightness of the achromatic color represented by the fourth, fifth, and sixth color signals after color conversion is increased densely in the dark part and coarsely in the middle and high brightness parts. It was done.

【0030】請求項4の発明に係る色変換処理装置は、
第1、第2、第3の色信号が各々mビットのディジタル
信号の場合、下位m−n(nは自然数でm>n)ビット
分の第2、第3の色信号を中心として1辺が2m-nビッ
トの単位平面を、第2の色信号の軸方向と第3の色信号
の軸方向で、4分割した場合の4平面の面積を補間係数
として出力する補間係数生成手段を備えたものである。
A color conversion processing device according to a fourth aspect of the present invention is
When each of the first, second, and third color signals is a digital signal of m bits, one side is centered on the second and third color signals of lower m−n (n is a natural number m> n) bits. A unit plane of 2 mn bits is divided into four in the axial direction of the second color signal and the axial direction of the third color signal, and an interpolation coefficient generating means for outputting the area of the four planes as an interpolation coefficient is provided. It is a thing.

【0031】請求項5の発明に係る色変換処理装置は、
下位m−nビット分の第2、第3の色信号を入力して、
補間信号の算出に必要な4つの補間係数を出力する補間
係数生成手段を4つの記憶手段で構成したものである。
A color conversion processing apparatus according to the invention of claim 5 is
Input the second and third color signals for the lower mn bits,
The interpolation coefficient generating means for outputting the four interpolation coefficients necessary for calculating the interpolation signal is composed of four storage means.

【0032】請求項6の発明に係る色変換処理装置は、
下位m−nビット分の第2、第3の色信号を入力して、
補間信号の算出に必要な4つの補間係数のうち1つの補
間係数を出力する記憶手段と、複数の加算器及び複数の
ビットシフト回路で構成され、上記記憶手段の出力信号
から他の3つの補間係数を算出する補間係数生成手段を
備えたものである。
A color conversion processing apparatus according to the invention of claim 6 is
Input the second and third color signals for the lower mn bits,
A storage unit that outputs one interpolation coefficient out of the four interpolation coefficients necessary for calculating the interpolation signal, a plurality of adders, and a plurality of bit shift circuits, and the other three interpolations from the output signal of the storage unit. It is provided with an interpolation coefficient generating means for calculating a coefficient.

【0033】[0033]

【作用】請求項1の発明に係る色変換処理装置の第1記
憶手段は、暗部は密に、中高輝度部は粗に増加させた第
1の色信号を格納し、第2記憶手段は、第1の色信号を
上記第1記憶手段に入力して得られる格納番号及び第
2、第3の色信号を入力し、この入力信号を示す第2の
3次元色空間内の点の近傍の単位格子に位置する複数点
の第4、第5、第6の色信号を出力し、補間係数生成手
段は、前記複数点の第4、第5、第6の色信号から補間
信号を算出するための補間係数を生成し、補間処理手段
は、前記複数点の第4、第5、第6の色信号と前記補間
係数により、第4、第5、第6の色信号を補間するた
め、実時間またはそれに準ずる速度で高精度の色変換を
実現し、線形補間による変換精度、特に暗部の変換精度
を高めることが可能となる。
According to the first aspect of the present invention, the first storage means of the color conversion processing device stores the first color signals which are densely increased in the dark area and coarsely increased in the middle and high luminance areas, and the second storage means is The storage number obtained by inputting the first color signal to the first storage means and the second and third color signals are input, and the vicinity of a point in the second three-dimensional color space indicating the input signal is input. A plurality of points of fourth, fifth, and sixth color signals located on the unit grid are output, and the interpolation coefficient generating means calculates an interpolation signal from the plurality of points of fourth, fifth, and sixth color signals. For generating the interpolation coefficient, and the interpolation processing means interpolates the fourth, fifth, and sixth color signals by the fourth, fifth, and sixth color signals of the plurality of points and the interpolation coefficient, High-precision color conversion can be realized in real time or at a speed similar to that, and conversion accuracy by linear interpolation, especially in dark areas, can be improved. That.

【0034】請求項2の発明に係る色変換処理装置の第
1記憶手段は、色変換後の第4、第5、第6の色信号で
表わされる特定色の明度を、暗部は密に、中高輝度部は
粗に増加させた第1の色信号を格納し、第2記憶手段
は、m(mは自然数)ビットのディジタル信号である第
1の色信号を上記第1記憶手段に入力して得られる格納
番号k(kは自然数)及びmビットのディジタル信号で
ある第2、第3の色信号を入力し、この入力信号を示す
第2の3次元色空間内の点の近傍の単位直方格子に位置
する、または位置すると仮定した8点の第4、第5、第
6の色信号を出力し、補間係数生成手段は、前記8点の
第4、第5、第6の色信号に乗ずるための補間係数を生
成し、第1補間信号を出力する手段は、mビットの第
2、第3の色信号を含み、第1の色信号がk番目に格納
されたものである場合の4点の単位平面格子に位置する
第4、第5、第6の色信号に、各々前記補間係数を乗じ
て加え合わせた第1補間信号を出力し、第2補間信号を
出力する手段は、同様にmビットの第2、第3の色信号
を含み、第1の色信号がk+1番目に格納されたもので
ある場合の4点の単位平面格子に位置する第4、第5、
第6の色信号に、各々前記補間係数を乗じて加え合わせ
た第2補間信号を出力し、補間処理手段は、第1補間信
号にk+1番目に格納された第1の色信号からmビット
の第1の色信号を減じたものを乗じて、第2補間信号に
mビットの第1の色信号からk番目に格納された第1の
色信号を減じたものを乗じて加えることにより、第4、
第5、第6の色信号を算出するため、実時間またはそれ
に準ずる速度で高精度の色変換を実現し、線形補間によ
る変換精度、特に暗部の変換精度を高めることが可能と
なる。
According to the second aspect of the present invention, the first storage means of the color conversion processing device provides the lightness of the specific color represented by the fourth, fifth and sixth color signals after the color conversion, and the dark portion is dense, The medium-high brightness part stores the first color signal which is roughly increased, and the second storage means inputs the first color signal which is a digital signal of m (m is a natural number) bits to the first storage means. The storage number k (k is a natural number) obtained and the second and third color signals that are m-bit digital signals are input, and a unit in the vicinity of a point in the second three-dimensional color space indicating the input signal Eight-point fourth, fifth, and sixth color signals that are located on the assumption that they are or are located on a rectangular grid are output, and the interpolation coefficient generating means outputs the eight-point fourth, fifth, and sixth color signals. Means for generating an interpolation coefficient for multiplying by and outputting the first interpolation signal includes m-bit second and third color signals. , The 4th, 5th, and 6th color signals located in the 4-point unit plane grid in the case where the 1st color signal is the kth stored signal are multiplied by the interpolation coefficient and added. The means for outputting the first interpolation signal and the second interpolation signal also includes m-bit second and third color signals, and the first color signal is stored in the (k + 1) th order. 4th, 5th, which are located in the unit plane lattice of 4 points of
The sixth color signal is multiplied by each of the interpolation coefficients and added to output a second interpolation signal, and the interpolation processing means outputs m bits of the first color signal stored in the (k + 1) th first interpolation signal from the first color signal. By multiplying by subtracting the first color signal and multiplying the second interpolation signal by subtracting the m-bit first color signal minus the k-th stored first color signal, 4,
Since the fifth and sixth color signals are calculated, highly accurate color conversion can be realized in real time or at a speed corresponding thereto, and the conversion accuracy by linear interpolation, especially the conversion accuracy of dark areas can be improved.

【0035】請求項3の発明に係る色変換処理装置の第
1記憶手段は、色変換後の第4、第5、第6の色信号で
表わされる無彩色の明度を、暗部は密に、中高輝度部は
粗に増加させた第1の色信号を格納したため、変換後の
画像の色相、彩度、明度の平衡を保ったまま、明度方向
の変換誤差を少なくすることが可能となる。
According to the third aspect of the present invention, the first storage means of the color conversion processing device provides the lightness of the achromatic color represented by the fourth, fifth and sixth color signals after the color conversion, and the dark portion is densely arranged. Since the medium-high brightness portion stores the first color signal that is roughly increased, it is possible to reduce the conversion error in the lightness direction while maintaining the balance of the hue, saturation, and lightness of the converted image.

【0036】請求項4の発明に係る色変換処理装置の補
間係数生成手段は、第1、第2、第3の色信号が各々m
ビットのディジタル信号の場合、下位m−n(nは自然
数でm>n)ビット分の第2、第3の色信号を中心とし
て1辺が2m-nビットの単位平面を、第2の色信号の軸
方向と第3の色信号の軸方向で、4分割した場合の4平
面の面積を補間係数として出力するため、小容量の記憶
手段と補間処理手段により高精度の色変換を行なうこと
が可能となり、回路規模を小さくすることが可能とな
る。
In the interpolation coefficient generating means of the color conversion processing device according to the invention of claim 4, the first, second and third color signals are respectively m.
In the case of a bit digital signal, a unit plane whose sides are 2 mn bits centering on the second and third chrominance signals for the lower m−n (n is a natural number m> n) bits is the second chrominance signal. Since the area of the four planes when divided into four is output as the interpolation coefficient in the axis direction of and the axis direction of the third color signal, high-precision color conversion can be performed by the small-capacity storage means and interpolation processing means. It becomes possible and the circuit scale can be reduced.

【0037】請求項5の発明に係る色変換処理装置の補
間係数生成手段は、下位m−nビット分の第2、第3の
色信号を入力して、補間信号の算出に必要な4つの補間
係数を出力する4つの記憶手段で構成したため、乗算器
の数を減らし、回路規模を小さくすることが可能とな
る。
The interpolation coefficient generating means of the color conversion processing device according to the fifth aspect of the present invention inputs the second and third color signals of the lower m−n bits and outputs four signals necessary for calculating the interpolation signal. Since it is composed of four storage means for outputting the interpolation coefficient, the number of multipliers can be reduced and the circuit scale can be reduced.

【0038】請求項6の発明に係る色変換処理装置の補
間係数生成手段は、下位m−nビット分の第2、第3の
色信号を入力して、記憶手段により補間信号の算出に必
要な4つの補間係数のうち1つの補間係数を出力し、上
記記憶手段の出力信号と複数の加算器及び複数のビット
シフト回路から他の3つの補間係数を算出するため、乗
算器の数を減らし、回路規模を小さくすることが可能と
なる。
The interpolation coefficient generating means of the color conversion processing device according to the sixth aspect of the present invention inputs the second and third color signals of the lower m−n bits and is required by the storage means to calculate the interpolation signal. One of the four interpolation coefficients is output, and the other three interpolation coefficients are calculated from the output signal of the storage means, the plurality of adders, and the plurality of bit shift circuits, so that the number of multipliers is reduced. It is possible to reduce the circuit scale.

【0039】[0039]

【実施例】 実施例1.図1は、本発明の実施例1による色逆変換処
理装置を示すブロック回路図である。図において、1は
3次元LUT、2は補間係数生成回路、3から12は乗
算器、13,14は加算回路、15から18は加算器、
19は除算器、20はLUTである。
EXAMPLES Example 1. First Embodiment FIG. 1 is a block circuit diagram showing a color inverse conversion processing device according to a first embodiment of the present invention. In the figure, 1 is a three-dimensional LUT, 2 is an interpolation coefficient generation circuit, 3 to 12 are multipliers, 13 and 14 are addition circuits, 15 to 18 are adders,
Reference numeral 19 is a divider, and 20 is an LUT.

【0040】入力信号Li*をLUT20に入力し、LU
T20の出力k及び入力信号ai*,bi*の上位信号an*,bn*
を3次元LUT1に入力する。LUT20の出力Lk *,L
k+1 *を加算器15に入力し、Li*,Lk+1 *を加算器16に
入力し、Li*,Lk *を加算器17に入力する。また、ai*,b
i*の下位信号a*,b*を補間係数生成回路2に入力する。
3次元LUT1の出力d0,d1,d2,d3,d4,d5,d6,d7を各々
乗算器3,4,5,6,7,8,9,10に入力する。
補間係数生成回路2の出力S0,S1,S2,S3を各々乗算器
3,4,5,6及び7,8,9,10に入力する。乗算
器3,4,5,6の出力を加算回路13に入力し、乗算
器7,8,9,10の出力を加算回路14に入力する。
加算器16の出力及び加算回路13の出力dsを乗算器1
1に入力し、加算器17の出力及び加算回路14の出力
ds’を乗算器12に入力する。この2つの乗算器11,
12の出力を加算器18に入力する。加算器15の出力
及び加算器18の出力を除算器19に入力し、出力の上
位8ビット分dを得る。
The input signal Li * is input to the LUT 20 and the LU
T20 of the output k and the input signal ai *, bi * higher signal an *, bn *
Is input to the three-dimensional LUT1. Output of LUT 20 L k * , L
k + 1 * is input to the adder 15, Li * , L k + 1 * is input to the adder 16, and Li * , L k * is input to the adder 17. Also, ai * , b
The low order signals a * and b * of i * are input to the interpolation coefficient generation circuit 2.
The outputs d 0 , d 1 , d 2 , d 3 , d 4 , d 5 , d 6 , d 7 of the three-dimensional LUT 1 are input to the multipliers 3 , 4 , 5 , 6 , 7 , 8, 9, 10, respectively. .
The outputs S 0 , S 1 , S 2 , S 3 of the interpolation coefficient generation circuit 2 are input to the multipliers 3, 4, 5, 6 and 7, 8, 9, 10, respectively. The outputs of the multipliers 3, 4, 5, 6 are input to the adder circuit 13, and the outputs of the multipliers 7, 8, 9, 10 are input to the adder circuit 14.
The output of the adder 16 and the output ds of the adder circuit 13 are multiplied by the multiplier 1
Input to 1, output of adder 17 and output of adder circuit 14
The ds ′ is input to the multiplier 12. These two multipliers 11,
The output of 12 is input to the adder 18. The output of the adder 15 and the output of the adder 18 are input to the divider 19 to obtain the upper 8 bits d of the output.

【0041】次に、動作について説明する。入力信号Li
*,ai*,bi*を各々8ビットとする。入力信号Li*をLUT
20に入力する。図2にLUT20の概念図を示す。L
UT20は、例えば、入力信号Li*が200の場合、格納番
号kを7、Lk *を195、Lk+1 *を213として出力する。他の
場合も同様であるが、Li*が243以上の場合のみ、Lk+ 1 *
を256として出力する。
Next, the operation will be described. Input signal Li
Each of * , ai * , bi * is 8 bits. Input signal Li * is LUT
Enter 20. FIG. 2 shows a conceptual diagram of the LUT 20. L
For example, when the input signal Li * is 200, the UT 20 outputs the storage number k as 7, L k * as 195, and L k + 1 * as 213. The same applies to other cases, but only when Li * is 243 or more, L k + 1 *
Is output as 256.

【0042】R,G,Bを各々8ビットの信号とし、
R,G,B各々の信号が等しい無彩色の場合、これらの
信号に対応するL*,a*,b*(C光源を基準白色とする)は
表1のようになる。このL*を表2のように8ビットに正
規化する。
Each of R, G, and B is an 8-bit signal,
When the R, G, and B signals have the same achromatic color, Table 1 shows L * , a * , and b * (the C light source is the reference white color) corresponding to these signals. This L * is normalized to 8 bits as shown in Table 2.

【0043】[0043]

【表1】 [Table 1]

【0044】[0044]

【表2】 [Table 2]

【0045】図1において、格納番号k及び入力信号a
i*,bi*の各々上位3ビット分an*,bn*を3次元LUT1
に入力し、入力信号Li*,ai*,bi*の近傍8点の単位直方
格子(k,an*,bn*),(k,an*+Dn,bn*),(k,an*+Dn,bn*+Dn),
(k,an*,bn*+Dn),(k+Dk,an*,bn*),(k+Dk,an*+Dn,bn*),(k
+Dk,an*+Dn,bn*+Dn),(k+Dk,an*,bn*+Dn)に位置する出力
信号d0,d1,d2,d3,d4,d5,d6,d7を得る。Dnは3次元LU
T1のa*軸及びb*軸方向の単位平面の1辺の長さで25
ある。DkはLUT20の出力Lk+1 *とLk *の差であり、L*
軸方向の単位直方格子の1辺の長さである。
In FIG. 1, the storage number k and the input signal a
Three-dimensional LUT 1 for the upper 3 bits of each of i * and bi * an * and bn *
Input to the input signal Li * , ai * , bi * , and unit rectangular grid (k, an * , bn * ), (k, an *, Dn, bn * ), (k, an * +) Dn, bn * + Dn),
(k, an * , bn * + Dn), (k + D k , an * , bn * ), (k + D k , an * + Dn, bn * ), (k
+ D k , an * + Dn, bn * + Dn), (k + D k , an * , bn * + Dn) output signal d 0 , d 1 , d 2 , d 3 , d 4 , d Get 5 , d 6 and d 7 . Dn is a three-dimensional LU
The length of one side of the unit plane in the a * axis and b * axis directions of T1 is 25 . D k is the difference between the outputs L k + 1 * and L k * of the LUT 20, and L *
It is the length of one side of the unit rectangular lattice in the axial direction.

【0046】また、入力信号ai*,bi*の各々下位5ビッ
ト分r,bを補間係数生成回路2に入力し、図3に示すよ
うな補間係数S0,S1,S2,S3を得る。図3は、3次元LU
T1の単位直方格子の上面(d4,d5,d6,d7点から成る単
位平面)、下面(d0,d1,d2,d3点から成る単位平面)及
び、入力信号Li*のL*軸における位置を示したものであ
る。S0,S1,S2,S3は入力信号ai*,bi*の下位5ビット分の
a*,b*に位置する点を中心として、1辺が25ビットの単
位平面を、a*軸方向とb*軸方向で4分割した場合の4平
面に相当する補間係数である。 S0=(Dn-a*)×(Dn-b*) ……(26) S1=a*×(Dn-b*) ……(27) S2=a*×b* ……(28) S3=(Dn-a*)×b* ……(29)
Further, the lower 5 bits r, b of each of the input signals ai * , bi * are input to the interpolation coefficient generating circuit 2, and the interpolation coefficients S 0 , S 1 , S 2 , S 3 as shown in FIG. To get 3D LU
The upper surface (unit plane consisting of d 4 , d 5 , d 6 , d 7 points), the lower surface (unit plane consisting of d 0 , d 1 , d 2 , d 3 points) of the unit rectangular lattice of T1, and the input signal Li The position of * on the L * axis is shown. S 0 , S 1 , S 2 , S 3 are the lower 5 bits of the input signals ai * , bi *
It is an interpolation coefficient corresponding to four planes when a unit plane having sides of 25 bits is divided into four in the a * axis direction and the b * axis direction with the point located at a * and b * as the center. S 0 = (Dn-a * ) × (Dn-b * ) …… (26) S 1 = a * × (Dn-b * ) …… (27) S 2 = a * × b * …… (28 ) S 3 = (Dn-a * ) × b * …… (29)

【0047】図4は、補間係数生成回路2の構成を示す
図である。図において、21,22はビット反転回路、
23から26は乗算回路である。Dnはa*軸及びb*軸方向
の単位平面の1辺の長さであるため、入力信号8ビット
のうち上位3ビット分を3次元LUT1に入力する場
合、Dn=25となる。したがって、Dn-a*はa*の全ビットを
反転したものになる。同様にDn-b*もb*の全ビットを反
転したものになる。上述したことを利用すると、ビット
反転回路21,22及び乗算回路23,24,25,2
6により、式(26),(27),(28),(29)
の演算を実現することができる。
FIG. 4 is a diagram showing the configuration of the interpolation coefficient generating circuit 2. In the figure, 21 and 22 are bit inversion circuits,
Reference numerals 23 to 26 are multiplication circuits. Since Dn is the length of one side of the unit plane in the a * -axis and b * -axis directions, when inputting the upper 3 bits of the 8 bits of the input signal to the three-dimensional LUT 1, Dn = 25 . Therefore, Dn-a * is the inversion of all bits of a * . Similarly, Dn-b * is also the inversion of all bits of b * . Using the above, the bit inversion circuits 21 and 22 and the multiplication circuits 23, 24, 25 and 2
According to 6, equations (26), (27), (28), (29)
Can be realized.

【0048】図1における乗算器3,4,5,6、加算
回路13を用いて、第1補間信号dsを算出する。また、
乗算器7,8,9,10、加算回路14を用いて、第2
補間信号ds’を算出する。それぞれ、算出式は式(3
0),(31)で表わされる。 ds =d0S0+d1S1+d2S2+d3S3 ……(30) ds’=d4S0+d5S1+d6S2+d7S3 ……(31) (30),(31)式では、各格子点の信号に、入力信
号ai*,bi*を中心として点対称に位置する面積をそれぞ
れ補間係数として掛け合わせることにより、a*,b*平面
における2つの補間信号を算出している。この2つの補
間信号ds,ds’をさらにL*軸で補間することにより、3
次元補間を実現する。L*軸方向の単位直方格子の1辺の
長さをDkとすると、出力信号dは式(32)のように算
出される。 d={ds’×l*+ds×(Dk-l*)}/(Dn2×Dk) ……(32)
The first interpolation signal ds is calculated using the multipliers 3, 4, 5, 6 and the adder circuit 13 shown in FIG. Also,
Using the multipliers 7, 8, 9, 10 and the adder circuit 14, the second
The interpolated signal ds' is calculated. The calculation formula is the formula (3
It is represented by 0) and (31). ds = d 0 S 0 + d 1 S 1 + d 2 S 2 + d 3 S 3 (30) ds' = d 4 S 0 + d 5 S 1 + d 6 S 2 + d 7 S 3 ...... (31) In the equations (30) and (31), the signals at the respective lattice points are multiplied by the areas located point-symmetrically with respect to the input signals ai * and bi * as interpolation coefficients to obtain a * and b. * Two interpolation signals on the plane are calculated. By interpolating these two interpolation signals ds, ds' on the L * axis, 3
Realize dimensional interpolation. When the length of one side of the unit rectangular lattice in the L * axis direction is D k , the output signal d is calculated as in Expression (32). d = {ds' × l * + ds × (D k -l *)} / (Dn 2 × D k) ...... (32)

【0049】ただし、l*はLk *と入力信号Li*の差であ
り、加算器17により算出し、Dkは加算器15により算
出している。(Dn2×Dk)で除算しているのは、補間係数
を1に正規化するためである。ここで、Dn2は210となる
ため、実際には10ビット分桁下げすることにより算出
できる。式(32)の演算を乗算器11,12、加算器
15,16,17,18、除算器19で実現する。Dk-l
*及び第1補間信号dsを乗算器11に入力し、l*及び第
2補間信号ds’を乗算器12に入力する。乗算器11,
12の出力信号を加算器18に入力し、除算器19によ
り加算器18の出力をDkで除算する。この除算器19の
出力の上位8ビット分dを得る。dはd0,d1,d2,d3,d4,d
5,d6,d7に各々補間係数を乗じて加え合わせ、さらに、
補間係数を1に正規化するために下位20ビット分を切
り捨てたものである。同様の演算方法によりR,G,B
の補間処理を行なう。
However, l * is the difference between L k * and the input signal Li * , which is calculated by the adder 17 and D k is calculated by the adder 15. The division by (Dn 2 × D k ) is to normalize the interpolation coefficient to 1. Here, Dn 2 is to become a 2 10 can be calculated by actually be lowered 10 bits of digits. The calculation of Expression (32) is realized by the multipliers 11 and 12, the adders 15, 16, 17, and 18, and the divider 19. D k -l
The * and the first interpolation signal ds are input to the multiplier 11, and the l * and the second interpolation signal ds ′ are input to the multiplier 12. Multiplier 11,
The output signal of 12 is input to the adder 18, and the output of the adder 18 is divided by D k by the divider 19. The higher 8 bits d of the output of the divider 19 are obtained. d is d 0 , d 1 , d 2 , d 3 , d 4 , d
5 , d 6 , d 7 are multiplied by each interpolation coefficient and added together.
The lower 20 bits are truncated to normalize the interpolation coefficient to 1. R, G, B by the same calculation method
Interpolation processing is performed.

【0050】本実施例では、変換精度を向上させるため
に、暗部の格子点数を中高輝度部分の格子点数よりも多
くしている。暗部とはこの場合、L*の小さい部分であ
る。3次元LUTに記憶させる変換値は、有効桁数が補
償されている浮動小数点であればよいが、浮動小数点は
固定小数点よりも大きな記憶手段を必要とするため、一
般には固定小数点で変換値を記憶させる。このように固
定小数点で変換値を記憶させると、変換値が小さい場合
に丸め誤差が大きくなる。この丸め誤差を多く含んだ変
換値を用いて線形補間を行なうと、実際の値と補間値と
の誤差は大きくなる。
In the present embodiment, in order to improve the conversion accuracy, the number of grid points in the dark area is made larger than the number of grid points in the middle and high brightness areas. In this case, the dark part is a part having a small L * . The conversion value to be stored in the three-dimensional LUT may be a floating point whose number of significant digits is compensated, but since the floating point requires a storage means larger than the fixed point, the conversion value is generally fixed point. Remember. When the converted value is stored in the fixed point as described above, the rounding error increases when the converted value is small. When the linear interpolation is performed using the converted value including many rounding errors, the error between the actual value and the interpolated value becomes large.

【0051】この誤差を少なくする方法は2つ考えられ
る。格子点数はそのままで、変換値のビット数を増やす
方法と、本実施例のように暗部の格子点数を増やす方法
である。前者は、暗部だけではなく中高輝度部のビット
数も増やす必要があり、冗長な部分が多くなる。後者
は、誤差が大きくなる暗部の格子点距離を中高輝度部よ
りも短くして補間誤差を小さくする方法であり、冗長な
部分は少ない。
There are two possible methods of reducing this error. There are a method of increasing the number of bits of the converted value while keeping the number of grid points, and a method of increasing the number of grid points in the dark part as in the present embodiment. In the former case, it is necessary to increase the number of bits not only in the dark part but also in the middle and high brightness parts, and the number of redundant parts increases. The latter is a method of making the grid point distance of the dark part where the error becomes large shorter than that of the middle and high brightness parts to reduce the interpolation error, and there are few redundant parts.

【0052】しかし、このような暗部の補間誤差を少な
くするには、負のR,G,B(実際には存在しない虚
色)や、最大値をこえたR,G,Bを変換値として3次
元LUTに格納する必要がある。その理由について説明
する。
However, in order to reduce the interpolation error in such a dark part, negative R, G, B (imaginary color that does not actually exist) or R, G, B exceeding the maximum value is used as the conversion value. It needs to be stored in a three-dimensional LUT. The reason will be described.

【0053】CIE 1976 L*a*b*均等知覚色空間からRG
B色空間への変換は、RGB色空間を完全に含む3次元
LUTを必要とする。この色空間の変換は非線形であ
り、3次元LUT中には負のR,G,B(実際には存在
しない虚色)や、最大値をこえたR,G,Bが含まれ
る。入力値に対する3次元LUTの格子点数が十分多い
場合には、このようなRGB色空間に存在しない色への
変換値はどのような値であっても変換精度には大きな影
響は与えないため、負のR,G,Bは0に、最大値をこ
えたR,G,Bは最大値に丸めるなどの方法が用いられ
る。しかし、入力値に対する3次元LUTの格子点数が
少なく、単純に線形補間を行なう場合には、元のRGB
色空間に存在しない色への変換値を0や最大値に丸める
と変換精度に大きな影響を与える。
From CIE 1976 L * a * b * uniform perceptual color space to RG
Conversion to the B color space requires a three-dimensional LUT that fully contains the RGB color space. This color space conversion is non-linear, and negative R, G, B (imaginary colors that do not actually exist) and R, G, B exceeding the maximum value are included in the three-dimensional LUT. When the number of grid points of the three-dimensional LUT for the input value is sufficiently large, any conversion value for a color that does not exist in the RGB color space does not significantly affect the conversion accuracy. Negative R, G, B is rounded to 0, and R, G, B exceeding the maximum value are rounded to the maximum value. However, when the number of grid points of the three-dimensional LUT for the input value is small and the linear interpolation is simply performed, the original RGB
If the conversion value for a color that does not exist in the color space is rounded to 0 or the maximum value, the conversion accuracy is greatly affected.

【0054】例えば、8ビットのL*,a*,b*を8ビットの
R,G,Bに逆変換する場合を考える。333個の格子点
を持ち、各格子点の変換値を0と255(最大値)で8ビッ
トに丸めた3次元LUTと線形補間を併用して変換する
と変換精度の劣化は少ないが、53個の格子点の場合では
変換精度は著しく劣化する。このような変換精度の劣化
は、補間に用いる複数個の変換値がRGB色空間に存在
する点とRGB色空間に存在しない点が混在する場合に
生ずる。これは、0から255の値で丸められた変換値を用
いて線形補間するためであり、本来得られるべき値と補
間値とに誤差が生ずることが起因している。3次元LU
Tの格子点数が十分多い場合には、このような誤差が生
ずる可能性も低く、誤差自体も小さくなり問題は少な
い。しかし、回路規模を縮小するために格子点数を少な
くした場合には誤差が生ずる可能性が高くなり、誤差自
体も大きくなり問題となる。
For example, consider the case where 8-bit L * , a * , b * is inversely converted into 8-bit R, G, B. 33 If there are 3 grid points and the conversion value of each grid point is rounded to 8 bits with 0 and 255 (maximum value) and used in combination with linear interpolation, the conversion accuracy does not deteriorate, but 5 In the case of 3 grid points, the conversion accuracy deteriorates significantly. Such deterioration of conversion accuracy occurs when a plurality of conversion values used for interpolation include points that exist in the RGB color space and points that do not exist in the RGB color space. This is because the linear interpolation is performed using the converted value rounded with a value of 0 to 255, and this is because an error occurs between the originally obtained value and the interpolated value. Three-dimensional LU
When the number of grid points of T is sufficiently large, such an error is unlikely to occur, and the error itself is small, so that there are few problems. However, if the number of grid points is reduced in order to reduce the circuit scale, an error is more likely to occur and the error itself becomes large, which is a problem.

【0055】実施例1では、負のR,G,B(実際には
存在しない虚色)や、最大値をこえたR,G,Bを変換
値として3次元LUTに記憶させることにより、線形補
間による変換精度の向上を図る。例えば、変換値を10ビ
ットに拡張して、-512から+511までの値を3次元LUT
に記憶させることにより、変換精度を向上させることが
可能となる。
In the first embodiment, by storing negative R, G, B (imaginary colors that do not actually exist) or R, G, B exceeding the maximum value as conversion values in the three-dimensional LUT, Improve conversion accuracy by interpolation. For example, the converted value is expanded to 10 bits, and the values from -512 to +511 are three-dimensional LUT.
It is possible to improve the conversion accuracy by storing in the memory.

【0056】なお、実施例1では、CIE 1976 L*a*b*
等知覚色空間からRGB色空間への変換を示したが、逆
のRGB色空間からCIE 1976 L*a*b*均等知覚色空間へ
の変換では、この方法はあまり有効ではない。その理由
について説明する。RGB色空間からCIE 1976 L*a*b*
均等知覚色空間への変換に用いる3次元LUTの暗部
は、3次元で考慮する必要があり、暗部の格子点数を増
やすことは効率的ではない。しかし、CIE 1976 L*a*b*
均等知覚色空間からRGB色空間への変換に用いる3次
元LUTの暗部は、L*軸方向だけを考慮すれば良いた
め、3次元LUTの容量の増加を少なくすることが可能
となる。このように実施例1は、明度軸の分離した色空
間から他の色空間に変換する場合に有効な方法であると
いえる。
In the first embodiment, the conversion from the CIE 1976 L * a * b * uniform perceptual color space to the RGB color space is shown, but the reverse RGB color space to CIE 1976 L * a * b * uniform perceptual. This method is not very effective for conversion to the color space. The reason will be described. From RGB color space to CIE 1976 L * a * b *
The dark part of the three-dimensional LUT used for conversion to the uniform perceptual color space needs to be considered in three dimensions, and increasing the number of grid points in the dark part is not efficient. However, CIE 1976 L * a * b *
Since the dark part of the three-dimensional LUT used for conversion from the uniform perceptual color space to the RGB color space need only be considered in the L * axis direction, it is possible to reduce the increase in the capacity of the three-dimensional LUT. As described above, the first embodiment can be said to be an effective method in the case of converting a color space in which the lightness axis is separated into another color space.

【0057】実施例2.本発明の実施例2による色変換
処理装置の構成は、図1と同様であり、補間係数生成回
路2における信号処理が異なる。
Example 2. The configuration of the color conversion processing device according to the second embodiment of the present invention is the same as that of FIG. 1, but the signal processing in the interpolation coefficient generation circuit 2 is different.

【0058】次に、動作について説明する。入力信号Li
*,ai*,bi*を各々8ビットとする。入力信号Li*をLUT
20に入力し、k,Lk *,Lk+1 *を得る。格納番号k及び入力
信号ai*,bi*の各々上位3ビット分an*,bn*を3次元LU
T1に入力し、入力信号Li *,ai*,bi*の近傍8点の単位
直方格子(k,an*,bn*),(k,an*+Dn,bn*),(k,an*+Dn,bn*+D
n),(k,an*,bn*+Dn),(k+Dk,an*,bn*),(k+Dk,an*+Dn,b
n*),(k+Dk,an*+Dn,bn*+Dn),(k+Dk,an*,bn*+Dn)に位置す
る出力信号d0,d1,d2,d3,d4,d5,d6,d7を得る。また、入
力信号ai*,bi*の各々下位5ビット分a*,b*を補間係数生
成回路2に入力し、図3に示すような補間係数S0,S1,
S2,S3を得る。
Next, the operation will be described. Input signal Li
*, ai*, bi*Are each 8 bits. Input signal Li*The LUT
Type in 20, k, Lk *, Lk + 1 *Get. Storage number k and input
Signal ai*, bi*Upper 3 bits of each an*, bn*3D LU
Input to T1, input signal Li *, ai*, bi*Unit of 8 points near
Rectangular lattice (k, an*, bn*), (k, an*+ Dn, bn*), (k, an*+ Dn, bn*+ D
n), (k, an*, bn*+ Dn), (k + Dk, an*, bn*), (k + Dk, an*+ Dn, b
n*), (k + Dk, an*+ Dn, bn*+ Dn), (k + Dk, an*, bn*+ Dn)
Output signal d0, d1, d2, d3, dFour, dFive, d6, d7Get. Also, enter
Force signal ai*, bi*Lower 5 bits of each a*, b*Interpolation coefficient raw
Input to the synthesis circuit 2 and the interpolation coefficient S as shown in FIG.0, S1,
S2, S3Get.

【0059】図4は、本実施例2における補間係数生成
回路2の構成を示す図である。21,22はビット反転
回路であり、23,24,25,26は乗算回路であ
る。乗算回路23,24,25,26は入力a*,b*に対
して、式(26),(27),(28),(29)に示
すS0,S1,S2,S3を出力する。入力a*,b*は共に5ビット、
出力S0,S1,S2,S3は10ビットであるから、乗算回路2
3,24,25,26をLUTで構成すると総容量は40
kビットとなる。この容量では、乗算器4つを用いる方
が回路規模は小さい。そこで、入力信号を上位信号と下
位信号に分割して掛け算することによりLUTの縮小を
行なう。
FIG. 4 is a diagram showing the configuration of the interpolation coefficient generation circuit 2 in the second embodiment. Reference numerals 21 and 22 are bit inversion circuits, and 23, 24, 25 and 26 are multiplication circuits. The multiplication circuits 23, 24, 25, and 26 apply S 0 , S 1 , S 2 , and S 3 shown in equations (26), (27), (28), and (29) to the inputs a * and b * . Output. Input a * and b * are both 5 bits,
Since the outputs S 0 , S 1 , S 2 , S 3 are 10 bits, the multiplication circuit 2
If 3, 24, 25, 26 are configured by LUT, the total capacity is 40
It becomes k bits. With this capacity, the circuit scale is smaller when four multipliers are used. Therefore, the LUT is reduced by dividing the input signal into an upper signal and a lower signal and multiplying them.

【0060】式(33),(34)に示すように、入力
a*,b*を上位信号aH *,bH *と下位信号aL *,bL *に分ける
と、S2は式(35)のように表わされる。 a*=aH *×2K+aL * ……(33) b*=bH *×2K+bL * ……(34) S2=a*×b* =aH *bH *×22K+(aH *bL *+aL *bH *)×2K+aL *bL * ……(35) a*,b*は各々5ビットの信号であるから、Kを3とし
て、a*,b*を上位2ビットと下位3ビットに分割する。
その結果、入力3ビット、出力6ビットのLUTが16
個必要となるが、容量は6kビットに縮小できる。式
(35)からも明らかなように、加算器が全部で12個
必要となるが、回路規模は乗算器4つを用いるよりも小
さくなる。
As shown in equations (33) and (34), input
If a * and b * are divided into upper signals a H * and b H * and lower signals a L * and b L * , S 2 is expressed by equation (35). a * = a H * x 2 K + a L * ... (33) b * = b H * x 2 K + b L * ... (34) S 2 = a * x b * = a H * b H * × 2 2K + (a H * b L * + a L * b H * ) × 2 K + a L * b L * ... (35) Since a * and b * are 5-bit signals respectively, When K is 3, a * and b * are divided into upper 2 bits and lower 3 bits.
As a result, the LUT of 3 bits for input and 6 bits for output is 16
Although the number is required, the capacity can be reduced to 6k bits. As is clear from the equation (35), twelve adders are required in total, but the circuit scale is smaller than when four multipliers are used.

【0061】図5は、式(35)を実現する乗算回路2
5の構成を示す図である。図において、27から30は
入力3ビットに対して6ビットの乗算結果を出力するL
UT、31,32,33は加算器、34は6ビットシフ
ト回路、35は3ビットシフト回路である。LUT2
7,28,29,30により、aH *bH *,aL *bH *,aH *bL *,a
L *bL *を算出する。加算器31により、aL *bH *+aH *bL *
算出し、6ビットシフト回路34によりaH *bH *を6ビッ
ト分桁上げして、3ビットシフト回路35によりaL *bH *
+aH *bL *を3ビット分桁上げして、これらの信号を加算
器32,33により加算して、S2を算出する。乗算回路
23,24,26も同様な回路構成で構成できる。
FIG. 5 shows a multiplication circuit 2 for realizing the equation (35).
It is a figure which shows the structure of No. 5. In the figure, 27 to 30 are L for outputting the multiplication result of 6 bits for the input 3 bits.
UTs, 31, 32, and 33 are adders, 34 is a 6-bit shift circuit, and 35 is a 3-bit shift circuit. LUT2
By 7,28,29,30, a H * b H * , a L * b H *, a H * b L *, a
And calculates the L * b L *. An adder 31, a L * b H * + a H * b L * is calculated, and a H * b H * was raised six bits of digits by 6-bit shift circuit 34, a by 3-bit shift circuit 35 L * b H *
+ a H * b L * is carried by 3 bits and these signals are added by the adders 32 and 33 to calculate S 2 . The multiplication circuits 23, 24, and 26 can also be configured with a similar circuit configuration.

【0062】図1において、補間係数生成回路2の出力
S0,S1,S2,S3を、それぞれ乗算器3,4,5,6及び乗
算器7,8,9,10に入力し、これらの乗算器の出力
を、それぞれ加算回路13,14に入力して、第1補間
信号ds及び第2補間信号ds’を算出する。この2つの補
間信号を、式(32)に示すようにL*軸で補間すること
により3次元補間を行ない、出力信号dを得る。同様の
演算方法によりR,G,Bそれぞれの補間処理を行な
う。
In FIG. 1, the output of the interpolation coefficient generation circuit 2
S 0 , S 1 , S 2 , S 3 are input to the multipliers 3, 4, 5, 6 and the multipliers 7, 8, 9, 10, respectively, and the outputs of these multipliers are added to the adder circuit 13, respectively. The first interpolation signal ds and the second interpolation signal ds ′ are calculated by inputting to the input terminal 14. Three-dimensional interpolation is performed by interpolating the two interpolation signals on the L * axis as shown in Expression (32), and the output signal d is obtained. Interpolation processing for each of R, G, and B is performed by the same calculation method.

【0063】実施例3.本発明の実施例3による色変換
処理装置の構成は、図1と同様であり、補間係数生成回
路2における信号処理が異なる。
Example 3. The configuration of the color conversion processing device according to the third embodiment of the present invention is the same as that of FIG. 1, but the signal processing in the interpolation coefficient generation circuit 2 is different.

【0064】次に、動作について説明する。入力信号Li
*,ai*,bi*を各々8ビットとする。入力信号Li*をLUT
20に入力し、k,Lk *,Lk+1 *を得る。格納番号k及び入力
信号ai*,bi*の各々上位3ビット分an*,bn*を3次元LU
T1に入力し、入力信号Li*,ai*,bi*の近傍8点の単位
直方格子に位置する出力信号d0,d1,d2,d3,d4,d5,d6,d7
を得る。また、入力信号ai*,bi*の各々下位5ビット分a
*,b*を補間係数生成回路2に入力し、図3に示すような
補間係数S0,S1,S2,S3を得る。式(28)で算出される
補間係数S2だけを乗算回路25から得、他の補間係数
S0,S1,S3は式(36),(37),(38)に示すよう
にS2を用いて算出する。Dnは25であるため、式(3
6),(37),(38)は加算器とビットシフト回路
の組み合わせで実現できる。 S0=(Dn-a*)×(Dn-b*) =Dn2-(a*+b*)×Dn+S2 ……(36) S1=a*×(Dn-b*) =a*×Dn-S2 ……(37) S3=(Dn-a*)×b* =b*×Dn-S2 ……(38)
Next, the operation will be described. Input signal Li
Each of * , ai * , bi * is 8 bits. Input signal Li * is LUT
Input to 20, and obtain k, L k * , L k + 1 * . The storage number k and the upper 3 bits of each of the input signals ai * and bi * are an * and bn *, which are three-dimensional LU
Input signal T1 and output signals d 0 , d 1 , d 2 , d 3 , d 4 , d 5 , d 6 , d located on the unit rectangular grid of 8 points near the input signal Li * , ai * , bi * 7
Get. The lower 5 bits of each of the input signals ai * and bi * are a
Input * and b * to the interpolation coefficient generation circuit 2 to obtain the interpolation coefficients S 0 , S 1 , S 2 and S 3 as shown in FIG. Only the interpolation coefficient S 2 calculated by the equation (28) is obtained from the multiplication circuit 25, and the other interpolation coefficient S 2 is obtained.
S 0 , S 1 , and S 3 are calculated using S 2 as shown in equations (36), (37), (38). Since Dn is 25 , the formula (3
6), (37) and (38) can be realized by a combination of an adder and a bit shift circuit. S 0 = (Dn-a * ) × (Dn-b * ) = Dn 2- (a * + b * ) × Dn + S 2 …… (36) S 1 = a * × (Dn-b * ) = a * × Dn-S 2 …… (37) S 3 = (Dn-a * ) × b * = b * × Dn-S 2 …… (38)

【0065】図6は、本実施例における補間係数生成回
路2の構成を示す図である。図において、36,37,
38は5ビットシフト回路、39から43は加算器であ
る。乗算回路25により補間係数S2を算出する。a*を5
ビットシフト回路36に入力して、出力a*×25を得、加
算器39によりa*×25からS2を減じて補間係数S1を得
る。同様に5ビットシフト回路37と加算器40により
補間係数S3を得る。また、a*とb*を加算器43により加
算したものを5ビットシフト回路38に入力し、(a*+
b*)×25を得、210とS2を加算器41により加算し、加算
器42により、この加算器41の出力から(a*+b*)×25
を減じて補間係数S0を得る。乗算器4つを使用する場合
に比べて、上記のような演算方法では、補間係数生成回
路2を総容量1.5kビットのLUTと、加算器8個で実
現でき、回路規模を縮小することが可能となる。
FIG. 6 is a diagram showing the configuration of the interpolation coefficient generation circuit 2 in this embodiment. In the figure, 36, 37,
38 is a 5-bit shift circuit, and 39 to 43 are adders. The multiplication circuit 25 calculates the interpolation coefficient S 2 . a * is 5
It is input to the bit shift circuit 36 to obtain an output a * × 25, and an adder 39 subtracts S 2 from a * × 25 to obtain an interpolation coefficient S 1 . Similarly, the 5-bit shift circuit 37 and the adder 40 obtain the interpolation coefficient S 3 . Also, the sum of a * and b * added by the adder 43 is input to the 5-bit shift circuit 38, and (a * +
b * ) × 2 5 is obtained, 2 10 and S 2 are added by the adder 41, and the adder 42 outputs (a * + b * ) × 2 5 from the output of this adder 41.
To obtain the interpolation coefficient S 0 . Compared to the case where four multipliers are used, the interpolation coefficient generation circuit 2 can be realized by a LUT having a total capacity of 1.5 kbits and eight adders by the above-described calculation method, and the circuit scale can be reduced. It will be possible.

【0066】図1において、補間係数生成回路2の出力
S0,S1,S2,S3を、それぞれ乗算器3,4,5,6及び乗
算器7,8,9,10に入力し、これらの乗算器の出力
を、それぞれ加算回路13,14に入力して、第1補間
信号ds及び第2補間信号ds’を算出する。この2つの補
間信号を、式(32)に示すようにL*軸で補間すること
により3次元補間を行ない、出力信号dを得る。同様の
演算方法によりR,G,Bそれぞれの補間処理を行な
う。
In FIG. 1, the output of the interpolation coefficient generation circuit 2
S 0 , S 1 , S 2 , S 3 are input to the multipliers 3, 4, 5, 6 and the multipliers 7, 8, 9, 10, respectively, and the outputs of these multipliers are added to the adder circuit 13, respectively. The first interpolation signal ds and the second interpolation signal ds ′ are calculated by inputting to the input terminal 14. Three-dimensional interpolation is performed by interpolating the two interpolation signals on the L * axis as shown in Expression (32), and the output signal d is obtained. Interpolation processing for each of R, G, and B is performed by the same calculation method.

【0067】上記実施例1では、入力信号をmビットの
Li*信号、ai*信号、bi*信号とする場合、下位m−nビ
ット分のa*信号、b*信号を中心として、1辺が2m-nビッ
トの単位平面を、a*信号の軸方向とb*信号の軸方向で4
分割した場合の4平面の面積を補間係数としたが、変換
前の色空間と変換後の色空間の変換特性を考慮した他の
補間係数であってもよい。
In the above-described first embodiment, the input signal of m bits is input.
In the case of Li * signal, ai * signal, and bi * signal, the unit plane with 2 mn bits on each side of the a * signal and b * signal for the lower mn bits is the axis of the a * signal. And b * 4 in the axial direction of the signal
Although the areas of the four planes in the case of division are used as the interpolation coefficients, other interpolation coefficients may be used in consideration of the conversion characteristics of the color space before conversion and the color space after conversion.

【0068】また、上記実施例1では、CIE 1976 L*a*b
*均等知覚色空間からの変換を示したが、CIE 1976 L*u*
v*均等知覚色空間、マンセル表色系など、明度軸の分離
された色空間からの変換であればよい。
In the first embodiment, CIE 1976 L * a * b
* Conversion from uniform perceptual color space is shown, but CIE 1976 L * u *
v * Any conversion from a color space in which the lightness axis is separated, such as a uniform perceptual color space or Munsell color system, may be used.

【0069】また、上記実施例1では、3次元LUTの
格子点数をa*軸、b*軸方向に9点、L*軸方向には3点追
加して12点とした場合を示したが、L*軸方向に追加す
る格子点数は何点であってもよい。
In the first embodiment, the number of lattice points of the three-dimensional LUT is 9 points in the a * axis and b * axis directions and 3 points in the L * axis direction is added to 12 points. , L * The number of grid points added in the direction of the axis may be any number.

【0070】また、上記各実施例における記憶手段及び
LUTは、ROM(Read Only Memory)、RAM(Rand
om Access Memory)などの半導体素子で構成してもよい
し、他の高速な記憶手段で構成してもよい。
Further, the storage means and LUT in each of the above embodiments are ROM (Read Only Memory), RAM (Rand).
It may be composed of a semiconductor element such as an om access memory) or other high-speed storage means.

【0071】また、上記各実施例では、変換後の3次元
色空間における無彩色方向の格子点を暗部は細かく、中
高輝度部は粗くなるように配置した3次元LUTについ
て説明したが、特に色再現性を重視する肌色などの特定
色についても同様である。基準白色がC光源の場合、CI
E 1976 L*a*b*均等知覚色空間における無彩色はa*,b*
ほぼ0のL*軸上に存在する。他の色の場合も同様で、特
定のa*,b*のL*軸上は明度だけが異なる色であるといえ
る。このため、特に色再現性を重視したい色を示すa*,b
*のL*軸上の格子点を暗部は細かく、中高輝度部は粗く
なるように配置すれば、特定色の伝送精度は向上する。
In each of the above embodiments, the three-dimensional LUT in which the grid points in the achromatic direction in the converted three-dimensional color space are arranged so that the dark part is fine and the middle and high brightness parts are coarse has been described. The same applies to a specific color such as a skin color that emphasizes reproducibility. If the reference white is C light source, CI
E 1976 L * a * b * Achromatic color in the uniform perceptual color space exists on the L * axis where a * and b * are almost zero. The same applies to other colors, and it can be said that the particular a * and b * are different in lightness only on the L * axis. Therefore, a * , b that indicates a color for which color reproducibility is emphasized
If the grid points on the L * axis of * are arranged so that the dark part is fine and the middle and high brightness parts are coarse, the transmission accuracy of the specific color is improved.

【0072】[0072]

【発明の効果】本発明は、映像情報を一方の画像入出力
機器に依存する色空間から他方の画像入出力機器に依存
する色空間に変換するものであって、以下の効果が得ら
れる。
The present invention converts video information from a color space dependent on one image input / output device into a color space dependent on the other image input / output device, and has the following effects.

【0073】請求項1の発明によれば、実時間またはそ
れに準ずる速度で、高精度の色変換を実現し、線形補間
による変換精度、特に暗部の変換精度を高めることが可
能となる。
According to the first aspect of the present invention, it is possible to realize highly accurate color conversion at real time or at a speed equivalent thereto, and to improve conversion accuracy by linear interpolation, particularly conversion accuracy of dark areas.

【0074】また、請求項2の発明によれば、少ない回
路規模で実時間またはそれに準ずる速度で、高精度の色
変換を実現し、線形補間による変換精度を高めることが
可能となる。また、特定色方向の格子点を暗部は細か
く、中高輝度部は粗くなるように配置した3次元LUT
を用いるため、特定色の変換精度を向上させることが可
能となる。
According to the second aspect of the invention, it is possible to realize highly accurate color conversion with a small circuit scale in real time or at a speed corresponding thereto, and to improve conversion accuracy by linear interpolation. A three-dimensional LUT in which the grid points in the specific color direction are arranged so that the dark part is fine and the middle and high brightness parts are coarse
Therefore, it is possible to improve the conversion accuracy of the specific color.

【0075】例えば、CIE 1976 L*a*b*均等知覚色空間
を他の色空間に変換する場合、人間の視覚特性上、最も
敏感な肌色方向の変換値を上記のような3次元LUTに
配置することにより、記憶容量に対する変換精度を向上
させることが可能となる。例えば、格子点数を729点、
変換値を8ビット、CIE 1976 L*a*b*均等知覚色空間の
基準光源をC光源とする正変換用の3次元LUT、及び
逆変換用の3次元LUTを用い、画像シミュレーション
を行なった。評価に用いた画像は、ITE Color Matching
Chart(a girl with carnation)をビデオカメラを用い
てワークステーションに取り込んだ画像である。評価に
は、RGBからL*a*b*に正変換した後、L*a*b*からRG
Bに逆変換した処理画像と原画との色差を用いた。
For example, when the CIE 1976 L * a * b * uniform perceptual color space is converted to another color space, the conversion value in the skin color direction, which is the most sensitive to human visual characteristics, is converted into the above three-dimensional LUT. By arranging them, it is possible to improve the conversion accuracy with respect to the storage capacity. For example, the number of grid points is 729,
An image simulation was performed using a three-dimensional LUT for forward conversion and a three-dimensional LUT for inverse conversion in which the conversion value is 8 bits and the C light source is the reference light source of the CIE 1976 L * a * b * uniform perceptual color space. . The image used for evaluation is ITE Color Matching
This is an image of a Chart (a girl with carnation) captured on a workstation using a video camera. The evaluation after positive conversion from RGB to L * a * b *, L * a * b * from RG
The color difference between the processed image inversely converted to B and the original image was used.

【0076】なお、色差はRGB色空間ではなく、CIE
1976 L*a*b*均等知覚色空間で算出した。従来の方法で
ある8点補間の色差は1.24、6点補間の色差は1.34、5
点補間の色差は2.23、4点補間の色差は1.33、補間処理
しない場合の色差は27.43となった。暗部に変換値を加
え、格子点数を972点、変換値を10ビットに拡張した
逆変換用の3次元LUTを用いた本発明によると色差は
1.18となり、変換精度は最も良好になった。
The color difference is not in the RGB color space, but in the CIE
1976 L * a * b * Calculated in uniform perceptual color space. Color difference of 8-point interpolation which is the conventional method is 1.24, color difference of 6-point interpolation is 1.34, 5
The color difference for point interpolation was 2.23, the color difference for point interpolation was 1.33, and the color difference without interpolation processing was 27.43. According to the present invention using a three-dimensional LUT for inverse conversion in which a conversion value is added to the dark area, the number of grid points is 972 points, and the conversion value is expanded to 10 bits, the color difference is
It became 1.18, and the conversion accuracy was the best.

【0077】また、正変換した画像を逆変換して元の色
空間に戻すことを伝送1回分とみなすと、伝送10回分
では8点補間の色差は9.94、6点補間の色差は10.63、
5点補間の色差は10.48、4点補間の色差は7.76となっ
た。本発明によると色差は10.65であり、最も色差は大
きくなるが、本発明以外の方法で画像シミュレーション
した処理画像は階調が不連続となり、画像の低周波部分
に偽輪郭が発生した。特に髪の部分など暗部は従来の方
式では階調が完全に崩れて真っ黒になったが、本発明で
は暗部の劣化は抑えられた。
Further, assuming that the image which has been subjected to the normal conversion is subjected to the inverse conversion and returned to the original color space as one transmission, the color difference of the 8-point interpolation is 9.94, the color difference of the 6-point interpolation is 10.63, and the transmission of 10 times.
The 5-point interpolation color difference was 10.48, and the 4-point interpolation color difference was 7.76. According to the present invention, the color difference is 10.65, and the color difference is the largest, but the processed image subjected to image simulation by a method other than the present invention has discontinuous gradation, and false contours are generated in the low frequency part of the image. In particular, in the dark area such as the hair portion, the gradation was completely destroyed in the conventional method and became black, but in the present invention, the deterioration of the dark area was suppressed.

【0078】さらに、図14に示すような輝度が連続的
に変化するランプ関数を原画として、8点補間と本発明
による方法(上記の条件)の両方でシミュレーションを
行なった。図15が8点補間の方法を用いて伝送を10
回繰り返した場合の処理画像の出力値であり、図16が
本発明を用いて伝送を10回繰り返した場合の処理画像
の出力値である。これらの結果からも明らかなように本
発明の処理画像の方が階調の連続性を保っているといえ
る。また、図16はL*軸方向の暗部の格子点を3点追加
しているため、暗部の階調の崩れが改善されていること
が分かる。暗部は信号が小さいため、誤差が多少大きく
ても色差(数値)としては表われにくいが、視感評価で
はその差はよく分かる。格子点数を増加することによ
り、さらに暗部を改善することができるが、格子点数の
増加は、回路規模の増加となるため適当な個数にする必
要がある。
Further, simulations were carried out by both the 8-point interpolation and the method according to the present invention (the above conditions) using a ramp function whose luminance continuously changes as shown in FIG. FIG. 15 shows transmission using the 8-point interpolation method.
This is the output value of the processed image when repeated 10 times, and FIG. 16 is the output value of the processed image when transmission is repeated 10 times using the present invention. As is clear from these results, it can be said that the processed image of the present invention maintains gradation continuity. Further, in FIG. 16, since three grid points of the dark part in the L * axis direction are added, it can be seen that the deterioration of the gradation of the dark part is improved. Since the dark area has a small signal, even if the error is a little large, it is difficult to appear as a color difference (numerical value), but the difference can be clearly seen in the visual evaluation. The dark area can be further improved by increasing the number of grid points, but the increase in the number of grid points will increase the circuit scale, so it is necessary to make the number appropriate.

【0079】請求項3の発明によれば、無彩色方向の格
子点を暗部は細かく、中高輝度部は粗くなるように配置
した3次元LUTを用いるため、変換後の画像におい
て、色相、明度、彩度の平衡を保ったまま、明度方向の
誤差を小さくすることが可能となる。例えば、白黒画像
の場合、変換誤差による着色が少なくなる。
According to the third aspect of the present invention, since the three-dimensional LUT in which the grid points in the achromatic color direction are arranged so that the dark portion is fine and the middle and high luminance portions are coarse is used, the hue, lightness, and It is possible to reduce the error in the lightness direction while maintaining the saturation balance. For example, in the case of a black and white image, coloring due to conversion error is reduced.

【0080】請求項4の発明によれば、小容量の記憶手
段と補間処理手段により色変換を行なうため、例えば入
力信号を8ビットのディジタル信号として、記憶手段に
は入力信号の上位3ビットを入力し、入力信号の下位5
ビットで補間処理を行なう場合、従来の補間方法では7
2個必要であった乗算器を30個に減らすことができ、
回路規模を縮小することが可能となる。
According to the fourth aspect of the present invention, since the color conversion is performed by the small capacity storage means and the interpolation processing means, for example, the input signal is an 8-bit digital signal, and the storage means stores the upper 3 bits of the input signal. Input and the lower 5 of the input signal
When performing interpolation processing with bits, it is 7 with the conventional interpolation method.
You can reduce the number of multipliers from 2 to 30
It is possible to reduce the circuit scale.

【0081】請求項5の発明によれば、例えば5ビット
の信号の乗算を384ビットのLUT4個とビットシフト
回路2個と加算器3個で実現でき、補間信号生成に必要
な乗算器4個を総容量6kビットのLUTとビットシフ
ト回路8個と加算器12個で実現できるため、回路規模
を縮小することが可能となる。
According to the fifth aspect of the present invention, for example, multiplication of a 5-bit signal can be realized by four 384-bit LUTs, two bit shift circuits, and three adders, and four multipliers required for generating an interpolation signal. Since the LUT having a total capacity of 6 k bits, eight bit shift circuits and twelve adders can be realized, the circuit scale can be reduced.

【0082】請求項6の発明によれば、補間係数生成回
路2を複数のLUTと複数のビットシフト回路と複数の
加算器で実現でき、補間係数生成回路2を総容量1.5k
ビットのLUTとビットシフト回路5個と加算器8個で
実現できるため、回路規模を縮小することが可能とな
る。
According to the invention of claim 6, the interpolation coefficient generation circuit 2 can be realized by a plurality of LUTs, a plurality of bit shift circuits and a plurality of adders, and the interpolation coefficient generation circuit 2 can have a total capacity of 1.5k.
Since it can be realized by a bit LUT, five bit shift circuits, and eight adders, the circuit scale can be reduced.

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

【図1】 本発明の実施例1、2、3における色変換処
理装置を示すブロック回路図である。
FIG. 1 is a block circuit diagram showing a color conversion processing device according to first, second and third embodiments of the present invention.

【図2】 実施例1におけるLUT20の概念図を示す
図である。
FIG. 2 is a diagram illustrating a conceptual diagram of an LUT 20 according to the first embodiment.

【図3】 実施例1、2、3の色変換処理装置における
補間方法を示す図である。
FIG. 3 is a diagram illustrating an interpolation method in the color conversion processing devices according to the first, second, and third embodiments.

【図4】 実施例1、2における補間係数生成回路2の
構成を示すブロック回路図である。
FIG. 4 is a block circuit diagram showing a configuration of an interpolation coefficient generation circuit 2 according to the first and second embodiments.

【図5】 この発明の実施例2における乗算回路25の
構成を示すブロック回路図である。
FIG. 5 is a block circuit diagram showing a configuration of a multiplication circuit 25 according to the second embodiment of the present invention.

【図6】 この発明の実施例3における補間係数生成回
路2の構成を示すブロック回路図である。
FIG. 6 is a block circuit diagram showing a configuration of an interpolation coefficient generation circuit 2 in Embodiment 3 of the present invention.

【図7】 従来の色変換処理装置及び色逆変換処理装置
を示すブロック回路図である。
FIG. 7 is a block circuit diagram showing a conventional color conversion processing device and conventional color inverse conversion processing device.

【図8】 3次元LUT44の概念図を示す図である。FIG. 8 is a diagram showing a conceptual diagram of a three-dimensional LUT 44.

【図9】 3次元LUT45の概念図を示す図である。FIG. 9 is a diagram showing a conceptual diagram of a three-dimensional LUT 45.

【図10】 他の従来の色変換処理装置を示すブロック
回路図である。
FIG. 10 is a block circuit diagram showing another conventional color conversion processing device.

【図11】 従来の色変換処理装置における補間方法を
示す図である。
FIG. 11 is a diagram showing an interpolation method in a conventional color conversion processing device.

【図12】 従来の色逆変換処理装置を示すブロック回
路図である。
FIG. 12 is a block circuit diagram showing a conventional color inverse conversion processing device.

【図13】 従来の色逆変換処理装置における補間方法
を示す図である。
FIG. 13 is a diagram showing an interpolation method in a conventional color inverse conversion processing device.

【図14】 RGBが等しく、連続的に階調が変化する
ランプ関数の出力値を示す図である。
FIG. 14 is a diagram showing output values of a ramp function in which RGB are the same and gradation is continuously changed.

【図15】 図14のランプ関数を原画として、従来の
色変換方式で変換、逆変換を10回ずつ繰り返した処理
画像の出力値を示す図である。
FIG. 15 is a diagram showing output values of a processed image obtained by repeating conversion and inverse conversion by the conventional color conversion method 10 times using the ramp function of FIG. 14 as an original image.

【図16】 図14のランプ関数を原画として、本発明
の色変換方式で変換、逆変換を10回ずつ繰り返した処
理画像の出力値を示す図である。
16 is a diagram showing output values of a processed image obtained by repeating conversion and inverse conversion 10 times each by the color conversion method of the present invention using the ramp function of FIG. 14 as an original image.

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

1,44,45,46,57…3次元LUT、2,4
7,58…補間係数生成回路、3〜12,48〜55,
59〜66…乗算器、13,14,56,67…加算回
路、15〜18,31〜33,39〜43…加算器、1
9…除算器、20,27〜30…LUT、21,22…
ビット反転回路、23〜26…乗算回路、34…6ビッ
トシフト回路、35…3ビットシフト回路、36〜38
…5ビットシフト回路。
1, 44, 45, 46, 57 ... Three-dimensional LUT, 2, 4
7, 58 ... Interpolation coefficient generation circuit, 3 to 12, 48 to 55,
59 to 66 ... Multiplier, 13, 14, 56, 67 ... Adder circuit, 15-18, 31-33, 39-43 ... Adder, 1
9 ... Divider, 20, 27-30 ... LUT, 21, 22 ...
Bit inversion circuit, 23-26 ... Multiplication circuit, 34 ... 6-bit shift circuit, 35 ... 3-bit shift circuit, 36-38
... 5-bit shift circuit.

─────────────────────────────────────────────────────
─────────────────────────────────────────────────── ───

【手続補正書】[Procedure amendment]

【提出日】平成7年2月28日[Submission date] February 28, 1995

【手続補正1】[Procedure Amendment 1]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】0026[Correction target item name] 0026

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【0026】本発明は、上記のような問題点を解決する
ためになされたもので、実時間またはそれに準ずる速度
で、従来より高精度の色変換を少ない回路規模で行なう
こと、および特に、暗部の変換精度を高めることができ
る色変換処理装置を得ることを目的とする。
The present invention has been made in order to solve the above-mentioned problems, and performs color conversion with higher accuracy than before in a small circuit scale in real time or at a speed corresponding to it, and particularly, in dark areas. and to obtain a color conversion process equipment which can improve the conversion accuracy.

【手続補正2】[Procedure Amendment 2]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】0039[Correction target item name] 0039

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【0039】[0039]

【実施例】 実施例1.図1は、本発明の実施例1による色変換処理
装置を示すブロック回路図である。図において、1は3
次元LUT、2は補間係数生成回路、3から12は乗算
器、13,14は加算回路、15から18は加算器、1
9は除算器、20はLUTである。
EXAMPLES Example 1. Figure 1 is a block circuit diagram illustrating a color conversion processing apparatus according to the first embodiment of the present invention. In the figure, 1 is 3
Dimension LUT, 2 is an interpolation coefficient generation circuit, 3 to 12 are multipliers, 13 and 14 are addition circuits, 15 to 18 are adders, 1
Reference numeral 9 is a divider, and 20 is an LUT.

【手続補正3】[Procedure 3]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】0060[Correction target item name] 0060

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【0060】式(33),(34)に示すように、入力
a*,b*を上位信号aH *,bH *と下位信号aL *,bL *に分ける
と、S2は式(35)のように表わされる。 a*=aH *×2K+aL * ……(33) b*=bH *×2K+bL * ……(34) S2=a*×b* =aH *bH *×22K+(aH *bL *+aL *bH *)×2K+aL *bL * ……(35) a*,b*は各々5ビットの信号であるから、Kを3とし
て、a*,b*を上位2ビットと下位3ビットに分割する。
その結果、入力3ビット、出力6ビットのLUTが16
個必要となるが、容量は6kビットに縮小できる。式
(35)からも明らかなように、加算器が全部で12個
必要となるが、回路規模は乗算器4つを用いるよりも小
さくなる。
As shown in equations (33) and (34), input
If a * and b * are divided into upper signals a H * and b H * and lower signals a L * and b L * , S 2 is expressed by equation (35). a * = a H * x 2 K + a L * ... (33) b * = b H * x 2 K + b L * ... (34) S 2 = a * x b * = a H * b H * × 2 2K + (a H * b L * + a L * b H * ) × 2 K + a L * b L * ... (35) Since a * and b * are 5-bit signals respectively, When K is 3, a * and b * are divided into upper 2 bits and lower 3 bits.
As a result, the LUT of 3 bits for input and 6 bits for output is 16
Although the number is required, the capacity can be reduced to 6k bits. As is clear from the equation (35), twelve adders are required in total, but the circuit scale is smaller than when four multipliers are used.

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.6 識別記号 庁内整理番号 FI 技術表示箇所 H04N 1/46 9/64 Z G06F 15/68 310 A H04N 1/46 Z ─────────────────────────────────────────────────── ─── Continuation of the front page (51) Int.Cl. 6 Identification number Internal reference number FI Technical indication H04N 1/46 9/64 Z G06F 15/68 310 A H04N 1/46 Z

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 第1、第2、第3の色信号で表わされる
第1の3次元色空間を第4、第5、第6の色信号で表わ
される第2の3次元色空間に変換する色変換処理装置に
おいて、暗部は密に、中高輝度部は粗に増加させた第1
の色信号を格納した第1記憶手段と、第1の色信号を上
記第1記憶手段に入力して得られる格納番号及び第2、
第3の色信号を入力し、この入力信号を示す第2の3次
元色空間内の点の近傍の単位格子に位置する複数点の第
4、第5、第6の色信号を出力する第2記憶手段と、前
記複数点の第4、第5、第6の色信号から補間信号を算
出するための補間係数を生成する補間係数生成手段と、
前記複数点の第4、第5、第6の色信号と前記補間係数
により、第4、第5、第6の色信号を補間する補間処理
手段を備えたことを特徴とする色変換処理装置。
1. A first three-dimensional color space represented by first, second, and third color signals is converted into a second three-dimensional color space represented by fourth, fifth, and sixth color signals. In the color conversion processing device, the dark part is densely increased and the middle and high brightness parts are coarsely increased.
A first storage means storing the color signal of No. 1, a storage number obtained by inputting the first color signal to the first storage means, and a second
A third color signal is input, and fourth, fifth, and sixth color signals at a plurality of points located on a unit cell in the vicinity of a point in the second three-dimensional color space indicating the input signal are output. 2 storage means, and interpolation coefficient generation means for generating an interpolation coefficient for calculating an interpolation signal from the fourth, fifth, and sixth color signals of the plurality of points,
A color conversion processing device, comprising: interpolation processing means for interpolating the fourth, fifth, and sixth color signals based on the plurality of points of the fourth, fifth, and sixth color signals and the interpolation coefficient. .
【請求項2】 第1、第2、第3の色信号で表わされる
第1の3次元色空間を第4、第5、第6の色信号で表わ
される第2の3次元色空間に変換する色変換処理装置に
おいて、色変換後の第4、第5、第6の色信号で表わさ
れる特定色の明度の暗部は密に、中高輝度部は粗に増加
させた第1の色信号を格納した第1記憶手段と、m(m
は自然数)ビットのディジタル信号である第1の色信号
を上記第1記憶手段に入力して得られる格納番号k(k
は自然数)及びmビットのディジタル信号である上記第
2、第3の色信号を入力し、この入力信号を示す第2の
3次元色空間内の点の近傍の単位直方格子に位置する、
または位置すると仮定した8点の第4、第5、第6の色
信号を出力する第2記憶手段と、前記8点の第4、第
5、第6の色信号に乗ずるための補間係数を生成する補
間係数生成手段と、mビットである上記第2、第3の色
信号を含み、第1の色信号がk番目に格納されたもので
ある場合の4点の単位平面格子に位置する第4、第5、
第6の色信号に、各々前記補間係数を乗じて加え合わせ
た第1補間信号を出力する手段と、同様にmビットであ
る上記第2、第3の色信号を含み、上記第1の色信号が
k+1番目に格納されたものである場合の4点の単位平
面格子に位置する第4、第5、第6の色信号に、各々前
記補間係数を乗じて加え合わせた第2補間信号を出力す
る手段と、上記第1補間信号にk+1番目に格納された
第1の色信号からmビットの第1の色信号を減じたもの
を乗じて、第2補間信号にmビットの第1の色信号から
k番目に格納された第1の色信号を減じたものを乗じて
加えることにより、第4、第5、第6の色信号を算出す
る補間処理手段を備えたことを特徴とする色変換処理装
置。
2. A first three-dimensional color space represented by first, second, and third color signals is converted into a second three-dimensional color space represented by fourth, fifth, and sixth color signals. In the color conversion processing device, the dark portion of the brightness of the specific color represented by the fourth, fifth, and sixth color signals after the color conversion is dense, and the middle and high luminance portions are the coarsely increased first color signal. The stored first storage means and m (m
Is a natural number) bit, and the first color signal, which is a digital signal, is input to the first storage means to obtain a storage number k (k
Is a natural number) and the second and third color signals, which are m-bit digital signals, are input, and they are located in a unit rectangular grid near a point in the second three-dimensional color space indicating the input signal.
Alternatively, it is assumed that the second storage means for outputting the fourth, fifth, and sixth color signals of eight points and the interpolation coefficient for multiplying the fourth, fifth, and sixth color signals of the eight points are located. It is located in the unit plane lattice of 4 points when the first color signal is stored in the kth position, including the interpolation coefficient generating means for generating and the second and third color signals of m bits. 4th, 5th,
Means for outputting a first interpolated signal obtained by multiplying a sixth color signal by each of the interpolation coefficients and adding it together; and, similarly, including the second and third color signals of m bits, the first color signal A second interpolation signal obtained by multiplying each of the fourth, fifth, and sixth color signals located in the unit plane lattice of four points when the signal is stored in the k + 1th order by multiplying the interpolation coefficient by each other, and adding the result. The means for outputting is multiplied by the first interpolation signal obtained by subtracting the m-bit first color signal from the k + 1th stored first color signal, and the second interpolation signal is multiplied by the m-bit first color signal. It is characterized by comprising interpolation processing means for calculating the fourth, fifth and sixth color signals by multiplying the color signal by subtracting the k-th stored first color signal and adding it. Color conversion processing device.
【請求項3】 色変換後の第4、第5、第6の色信号で
表わされる無彩色の明度を暗部は密に、中高輝度部は粗
に増加させた第1の色信号を第1記憶手段に格納したこ
とを特徴とする請求項2記載の色変換処理装置。
3. The first color signal, in which the lightness of the achromatic color represented by the fourth, fifth, and sixth color signals after color conversion is increased in the dark portion and coarsely in the middle and high luminance portions, is changed into the first color signal. The color conversion processing device according to claim 2, wherein the color conversion processing device is stored in a storage means.
【請求項4】 第1、第2、第3の色信号が各々mビッ
トのディジタル信号の場合、下位m−n(nは自然数で
m>n)ビット分の第2、第3の色信号を中心として1
辺が2m-nビットの単位平面を、第2の色信号の軸方向
と第3の色信号の軸方向で、4分割した場合の4平面の
面積を補間係数として出力する補間係数生成手段を備え
たことを特徴とする請求項2記載の色変換処理装置。
4. When the first, second and third color signals are digital signals of m bits each, the second and third color signals of lower m−n (n is a natural number m> n) bits. Centered on 1
An interpolation coefficient generation unit is provided which outputs an area of four planes as an interpolation coefficient when a unit plane having sides of 2 mn bits is divided into four in the axial direction of the second color signal and the axial direction of the third color signal. The color conversion processing device according to claim 2, wherein
【請求項5】 下位m−nビット分の第2、第3の色信
号を入力して、補間信号の算出に必要な4つの補間係数
を出力する補間係数生成手段を4つの記憶手段で構成し
たことを特徴とする請求項4記載の色変換処理装置。
5. An interpolation coefficient generating means for inputting second and third color signals of lower m-n bits and outputting four interpolation coefficients required for calculation of an interpolation signal is composed of four storage means. The color conversion processing device according to claim 4, wherein
【請求項6】 下位m−nビット分の第2、第3の色信
号を入力して、補間信号の算出に必要な4つの補間係数
のうち1つの補間係数を出力する記憶手段と、複数の加
算器及び複数のビットシフト回路で構成され、上記記憶
手段の出力信号から他の3つの補間係数を算出する補間
係数生成手段を備えたことを特徴とする請求項4記載の
色変換処理装置。
6. A storage means for inputting second and third color signals of lower m−n bits and outputting one interpolation coefficient out of four interpolation coefficients required for calculation of an interpolation signal, and a plurality of storage means. 5. The color conversion processing device according to claim 4, further comprising: an interpolation coefficient generating unit configured to add the other three interpolation coefficients from an output signal of the storage unit, the interpolation coefficient generating unit including an adder and a plurality of bit shift circuits. .
JP30238094A 1994-12-06 1994-12-06 Color conversion processor Expired - Fee Related JP3576612B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP30238094A JP3576612B2 (en) 1994-12-06 1994-12-06 Color conversion processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP30238094A JP3576612B2 (en) 1994-12-06 1994-12-06 Color conversion processor

Publications (2)

Publication Number Publication Date
JPH08161468A true JPH08161468A (en) 1996-06-21
JP3576612B2 JP3576612B2 (en) 2004-10-13

Family

ID=17908213

Family Applications (1)

Application Number Title Priority Date Filing Date
JP30238094A Expired - Fee Related JP3576612B2 (en) 1994-12-06 1994-12-06 Color conversion processor

Country Status (1)

Country Link
JP (1) JP3576612B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003263492A (en) * 1999-10-29 2003-09-19 Kao Corp Hair color advice system
US8643664B2 (en) 2006-08-31 2014-02-04 Sony Corporation Gamut converting device and gamut converting method
US9172849B2 (en) 2005-06-13 2015-10-27 Thomson Licensing Method and apparatus for color transformation by addressing a look-up table

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003263492A (en) * 1999-10-29 2003-09-19 Kao Corp Hair color advice system
US9172849B2 (en) 2005-06-13 2015-10-27 Thomson Licensing Method and apparatus for color transformation by addressing a look-up table
US8643664B2 (en) 2006-08-31 2014-02-04 Sony Corporation Gamut converting device and gamut converting method

Also Published As

Publication number Publication date
JP3576612B2 (en) 2004-10-13

Similar Documents

Publication Publication Date Title
EP0487304B1 (en) Color image processing
JPH05292306A (en) Color picture processing method and device
JP2903807B2 (en) Color signal conversion method and apparatus
EP1221812B1 (en) Fast interpolation of large color lookup tables
US5564006A (en) Real time transformation between color spaces
JP3519230B2 (en) Color correction method for image data
KR100510308B1 (en) Image processing device
Kanamori et al. Novel color transformation algorithm and its applications
JP2876853B2 (en) Color converter
JP3576612B2 (en) Color conversion processor
JP2947015B2 (en) Color conversion device and color conversion method
JPH09168097A (en) Image processing unit
US5657068A (en) Color image processing apparatus and conversion method
JP3527291B2 (en) Color conversion processing device, color inverse conversion processing device, and video signal processing device
JP3364813B2 (en) Color inverse conversion processing device and video signal processing device
JPH08237497A (en) Image processing unit and its method
JPH0814843B2 (en) Color conversion method and color conversion device
JPH05284346A (en) Color conversion device
JPH07288707A (en) Color conversion processor
US5831687A (en) Color video signal processing method and apparatus for converting digital color difference component signals into digital RGB component signals by a digital conversion
JPH06121160A (en) Color correction circuit
JPH0865528A (en) Color converting processor
JP2001320593A (en) Image processing unit, and image forming device provided with it, and image processing method
JPH10191089A (en) Color converter, color printer, color image data output device and recording medium
JPH10126636A (en) Color image processing method and processing unit

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20040625

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20040708

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

Free format text: PAYMENT UNTIL: 20070716

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20080716

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20090716

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20100716

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20100716

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20110716

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20110716

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20120716

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20120716

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20130716

Year of fee payment: 9

LAPS Cancellation because of no payment of annual fees