JP2010232774A - Color space conversion circuit, color signal conversion device, and image display device - Google Patents

Color space conversion circuit, color signal conversion device, and image display device Download PDF

Info

Publication number
JP2010232774A
JP2010232774A JP2009075733A JP2009075733A JP2010232774A JP 2010232774 A JP2010232774 A JP 2010232774A JP 2009075733 A JP2009075733 A JP 2009075733A JP 2009075733 A JP2009075733 A JP 2009075733A JP 2010232774 A JP2010232774 A JP 2010232774A
Authority
JP
Japan
Prior art keywords
value
color difference
color
signal
saturation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2009075733A
Other languages
Japanese (ja)
Inventor
Fumio Koyama
文夫 小山
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.)
Seiko Epson Corp
Original Assignee
Seiko Epson 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 Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2009075733A priority Critical patent/JP2010232774A/en
Publication of JP2010232774A publication Critical patent/JP2010232774A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Liquid Crystal Display Device Control (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Color Image Communication Systems (AREA)
  • Control Of Indicators Other Than Cathode Ray Tubes (AREA)
  • Controls And Circuits For Display Device (AREA)
  • Image Processing (AREA)
  • Projection Apparatus (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide technique for converting a color space of an image signal. <P>SOLUTION: A color space conversion circuit 110 converts a first signal corresponding to three elements which are the luminance, first color difference and second color difference constituting a first color space of a three-dimensional orthogonal coordinate system into a second signal corresponding to three elements which are the luminance, saturation and hue constituting a second color space of a three dimensional polar coordinate system. The color space conversion circuit 1 includes a saturation calculation unit 30 and a hue calculation unit 50, wherein the saturation calculation unit 30 includes a first multiplier 31 for outputting a first multiplication value as a multiplication value of first color differences, a second multiplier 32 for outputting a second multiplication value as a multiplication value of second color differences, an adder 33 for outputting an addition value of the first multiplication value and second multiplication value, and a square root extractor for outputting the square root of the addition value as a signal corresponding to the saturation, and the hue calculation unit 50 outputs a signal corresponding to the hue based upon the signal corresponding to the saturation and the signals corresponding to the first and second color differences. <P>COPYRIGHT: (C)2011,JPO&INPIT

Description

本発明は画像信号の色空間を変換する技術に関する。   The present invention relates to a technique for converting a color space of an image signal.

従来、プロジェクターや、CRTや、LCDなどの画像表示装置では、画像信号に含まれる色信号の処理は、R(赤)・G(緑)・B(青)信号あるいはY(輝度)・U(第1色差)・V(第2色差)信号による処理が一般的である。しかし、画像表示装置が表示する画像の色をユーザーが調整する場合、RGBで表現された調整画面上で色調整を行うより、物体色の標準として常用されているH(色相)・L(明度)・S(彩度)で表されたマンセル表色系を用いた方が調整が容易である。つまり、画像表示装置がYUV信号からHLS信号に変換(以下、YUV−HLS変換とも呼ぶ)する機能を備えれば、HLSで表されたマンセル表色系の調整画面上で色調整を行う事が可能となる。YUV−HLS変換に関する技術としては、例えば特許文献1の技術が知られている。   Conventionally, in an image display device such as a projector, CRT, or LCD, processing of color signals included in an image signal is R (red) / G (green) / B (blue) signal or Y (luminance) / U ( Processing using a first color difference) · V (second color difference) signal is generally used. However, when the user adjusts the color of the image displayed by the image display device, H (hue) and L (lightness), which are commonly used as object color standards, are used rather than color adjustment on an adjustment screen expressed in RGB. ) · Adjustment is easier using the Munsell color system represented by S (saturation). That is, if the image display device has a function of converting a YUV signal to an HLS signal (hereinafter also referred to as YUV-HLS conversion), color adjustment can be performed on the Munsell color system adjustment screen represented by HLS. It becomes possible. As a technique related to YUV-HLS conversion, for example, the technique of Patent Document 1 is known.

特開平9−18724JP-A-9-18724 特開平11−69186JP-A-11-69186

しかしながら、外部から画像表示装置へ入力される画像信号はRGB信号ないしYUV信号である。また、プロジェクター等の画像表示装置は、RGB信号に基づいて画像を表示する。よって、プロジェクター等の画像表示装置にはRGB信号ないしYUV信号からHLS信号に変換する変換回路を搭載していない。YUV−HLS変換を、ソフトウェア上のプログラムをCPUで実行することは技術的に可能であるが、入力される大容量の画像信号を、リアルタイムに安定して変換処理することは困難である。   However, the image signal input from the outside to the image display device is an RGB signal or a YUV signal. An image display device such as a projector displays an image based on RGB signals. Therefore, an image display device such as a projector is not equipped with a conversion circuit for converting RGB signals or YUV signals into HLS signals. Although it is technically possible to execute a YUV-HLS conversion on a CPU with a software program, it is difficult to stably convert an input large-capacity image signal in real time.

本発明は、上述の課題の少なくとも一部を解決するために、以下の形態または適用例を取ることが可能である。   In order to solve at least a part of the problems described above, the present invention can take the following forms or application examples.

[適用例1]
3次元直交座標系の第1色空間を構成する輝度、第1色差、第2色差の3つの要素に対応する第1の信号を、3次元極座標系の第2色空間を構成する明度、彩度、色相の3つの要素に対応する第2の信号に変換する色空間変換回路であって、
彩度算出部と、色相算出部とを備え、前記彩度算出部は、前記第1色差の値同士の乗算値である第1乗算値を出力する第1乗算器と、前記第2色差の値同士の乗算値である第2乗算値を出力する第2乗算器と、前記第1乗算値と前記第2乗算値との加算値を出力する加算器と、前記加算値の平方根の値を前記彩度に対応した信号として出力する開平器とを備え、前記色相算出部は、前記彩度に対応する信号と前記第1及び第2色差に対応した信号とに基づいて前記色相に対応した信号を出力する回路である色空間変換回路。
[Application Example 1]
The first signal corresponding to the three elements of the luminance, the first color difference, and the second color difference constituting the first color space of the three-dimensional orthogonal coordinate system is used as the lightness, chromaticity constituting the second color space of the three-dimensional polar coordinate system. A color space conversion circuit for converting to a second signal corresponding to the three elements of degree and hue,
A saturation calculation unit; and a hue calculation unit, wherein the saturation calculation unit outputs a first multiplier that is a multiplication value of the first color difference values, and the second color difference. A second multiplier that outputs a second multiplication value that is a multiplication value of the values; an adder that outputs an addition value of the first multiplication value and the second multiplication value; and a square root value of the addition value. The hue calculating unit outputs a signal corresponding to the saturation, and the hue calculation unit corresponds to the hue based on the signal corresponding to the saturation and the signal corresponding to the first and second color differences. A color space conversion circuit that outputs a signal.

この色空間変換回路によれば、輝度、第1色差、第2色差の3つの要素に対応する第1の信号、いわゆるYUV信号を、明度、彩度、色相の3つの要素に対応した第2の信号、いわゆるHLS信号に、ハードウェアである電気回路を用いて変換処理を行うので、ソフトウェアであるプログラムをCPUで実行することによって同変換処理を行うより、処理速度が速く、且つ、安定して行うことができる。この結果、例えば動画表示などを行う場合に、動画表示中にその動画の画像信号をYUV信号からHLS信号にリアルタイムで変換するなど、入力された画像信号の信号変換を高速に行うことが可能となる。   According to this color space conversion circuit, a first signal corresponding to three elements of luminance, first color difference, and second color difference, so-called YUV signal, is converted into a second signal corresponding to three elements of brightness, saturation, and hue. Signal, so-called HLS signal, is converted using a hardware electrical circuit, so the processing speed is faster and more stable than when the software program is executed on the CPU. Can be done. As a result, for example, when displaying a moving image, the image signal of the moving image can be converted at high speed during the moving image display, such as converting the image signal of the moving image from a YUV signal to an HLS signal in real time. Become.

[適用例2]
適用例1記載の色空間変換回路であって、前記彩度の値を彩度値Sとし、前記平方根の値を開平結果値Rとした時に、前記彩度値Sを、前記開平結果値Rを正規化する下記式(1)に基づいて表し、前記開平結果値Rを第1実数値K、第1指数値Lにより下記式(2)を用いて表し、前記彩度値Sを第2実数値Sr、第2指数値Siにより下記式(3)を用いて表し、前記開平器は、前記加算値を浮動小数点演算することにより、前記下記式(2)を満たす前記第1実数値Kと、前記第1指数値Lとを出力する浮動小数点変換器と、前記第1実数値Kに基づいて下記式(4)を満たす前記第2実数値Srを読み出すルックアップテーブルAと、前記第1指数値Lに基づいて下記式(5)を満たす前記第2指数値Siを出力する彩度指数算出器と、ビットシフトを用いて前記下記式(3)を満たす前記彩度値Sを出力するビットシフト演算器とを備え、前記浮動小数点変換器は前記第1指数値Lを偶数の値で出力し、前記彩度指数算出器は前記第2指数値Siを整数値で出力する色空間変換回路。
S=√2*R・・・・(1)
2=K/2L・・・・(2)
S=Sr/2Si・・・・(3)
Sr=2n*√2*√K・・・・(4)
Si=L/2+n・・・・(5)
[Application Example 2]
In the color space conversion circuit according to Application Example 1, when the saturation value is the saturation value S and the square root value is the square root result value R, the saturation value S is the square root result value R. Is expressed based on the following equation (1), the square root result value R is expressed using the following equation (2) with the first real value K and the first exponent value L, and the saturation value S is expressed as the second value: The real value Sr and the second exponent value Si are used to express the following equation (3), and the square root extractor performs the floating point arithmetic operation on the addition value, thereby satisfying the following equation (2). A floating point converter that outputs the first exponent value L, a lookup table A that reads out the second real value Sr that satisfies the following equation (4) based on the first real value K, and A saturation index calculator that outputs the second index value Si that satisfies the following formula (5) based on one index value L A bit shift computing unit that outputs the saturation value S that satisfies the following equation (3) using a bit shift, and the floating point converter outputs the first exponent value L as an even number value, The saturation index calculator is a color space conversion circuit that outputs the second index value Si as an integer value.
S = √2 * R (1)
R 2 = K / 2 L (2)
S = Sr / 2 Si (3)
Sr = 2 n * √2 * √K (4)
Si = L / 2 + n (5)

通常、第1色差値と第2色差値との値とに基づいて開平結果値Rをルックアップテーブルを用いて出力すると、そのルックアップテーブルは非常にメモリ容量の大きいものになってしまう。例えば第1色差値,第2色差値を各々10ビットの階調データとした場合、第1色差値と第2色差値との全ての組み合わせに対応して、(1024*1024)の開平結果値Rの値をルックアップテーブルに記憶しなければならない。一方、この色空間変換回路によれば、第1色差値と第2色差値との値とに基づいて開平結果値Rを出力する際に、R2を第1実数値Kと第1指数値Lとで表し、浮動小数点変換器を用いて第1実数値K,第1指数値Lを出力し、第1実数値Kに基づいてルックアップテーブルAを用いて第2実数値Srを出力している。ルックアップテーブルAは第1実数値Kに対応して第2実数値Srを記憶している。第1実数値Kの値は、浮動小数点変換器を用いて(512*512)より格段に小さい数で出力することが可能である。例えば第1実数値Kの値を大凡3000以内程度にすることができる。つまりルックアップテーブルAは上述した通常のルックアップテーブルのメモリ容量より大幅にメモリ容量を減少させることが可能である。また、浮動小数点変換器は第1指数値Lを偶数の値で出力するので、第2指数値Siを出力する彩度指数算出器は、式(5)を満たす演算処理を行う際に、式(5)内のL/2の値を整数で出力できる。この演算処理は少数を含まないので、少数を含む場合の演算処理に比べ、処理速度を早くすることができる。 Normally, when the square root result value R is output using a lookup table based on the first color difference value and the second color difference value, the lookup table has a very large memory capacity. For example, if the first color difference value and the second color difference value are each 10-bit gradation data, the square root extraction result value of (1024 * 1024) corresponding to all combinations of the first color difference value and the second color difference value. The value of R must be stored in the lookup table. On the other hand, according to this color space conversion circuit, when the square root result value R is output based on the values of the first color difference value and the second color difference value, R 2 is set to the first real value K and the first exponent value. The first real value K and the first exponent value L are output using a floating point converter, and the second real value Sr is output using the lookup table A based on the first real value K. ing. The lookup table A stores a second real value Sr corresponding to the first real value K. The value of the first real value K can be output in a number much smaller than (512 * 512) using a floating point converter. For example, the value of the first real value K can be about 3000 or less. That is, the look-up table A can significantly reduce the memory capacity of the normal look-up table described above. In addition, since the floating point converter outputs the first exponent value L as an even number, the saturation index calculator that outputs the second exponent value Si performs an equation that satisfies the equation (5) when the arithmetic processing is performed. The value of L / 2 in (5) can be output as an integer. Since this arithmetic processing does not include a small number, the processing speed can be increased as compared with the arithmetic processing in the case where a small number is included.

[適用例3]
適用例2記載の色空間変換回路であって、前記第1色差に対応した第1色差値Uと、前記開平結果値Rとに基づいて下記式(6)を満たす値を余弦値Urとして表し、前記第2色差に対応した第2色差値Vと、前記開平結果値Rとに基づいて下記式(7)を満たす値を正弦値Vrとして表し、前記第2実数値Srに基づいて下記式(8)を満たす前記第2実数値Srの逆数をinvSrとして表し、前記色相算出部は、前記第1実数値Kに基づいて前記invSrを読み出すルックアップテーブルBと、前記第1色差値Uと前記第2指数値Siと前記invSrとに基づいて下記式(9)を満たす前記余弦値Urを出力するUr乗算器と、前記第2色差値Vと前記第2指数値Siと前記invSrとに基づいて下記式(10)を満たす前記正弦値Vrを出力するVr乗算器と、前記第1色差値U、前記第2色差値V、前記余弦値Ur、前記正弦値Vrの値に基づいて前記色相の値を出力する色相角算出部とを備える色空間変換回路。
Ur=U/R・・・・(6)
Vr=V/R・・・・(7)
invSr=w/Sr・・・・(8)
Ur=|U|*√2*invSr*2Si-m・・・・(9)
Vr=|V|*√2*invSr*2Si-m・・・・(10)
ただし、m,wは正の整数とする。
[Application Example 3]
In the color space conversion circuit according to the application example 2, a value satisfying the following expression (6) is represented as a cosine value Ur based on the first color difference value U corresponding to the first color difference and the square root result value R. A value satisfying the following equation (7) is expressed as a sine value Vr based on the second color difference value V corresponding to the second color difference and the square root result value R, and the following equation is expressed based on the second real value Sr: The reciprocal of the second real value Sr satisfying (8) is expressed as invSr, and the hue calculation unit reads the invSr based on the first real value K, the first color difference value U, Based on the second exponent value Si and the invSr, an Ur multiplier that outputs the cosine value Ur that satisfies the following equation (9), the second color difference value V, the second exponent value Si, and the invSr: Based on the sine satisfying the following formula (10) A Vr multiplier that outputs Vr; and a hue angle calculation unit that outputs the hue value based on the first color difference value U, the second color difference value V, the cosine value Ur, and the sine value Vr. A color space conversion circuit provided.
Ur = U / R (6)
Vr = V / R (7)
invSr = w / Sr (8)
Ur = | U | * √2 * invSr * 2 Si-m (9)
Vr = | V | * √2 * invSr * 2 Si-m (10)
However, m and w are positive integers.

上記適用例2と同様に、第1色差値と第2色差値との値とに基づいて色相の値をルックアップテーブルを用いて出力すると、そのルックアップテーブルは非常にメモリ容量の大きいものになってしまう。一方、この色空間変換回路によれば、第1実数値Kに基づいてinvSrを出力するので、ルックアップテーブルBは上述した通常のルックアップテーブルのメモリ容量よりメモリ容量を減少させることが可能である。   Similar to Application Example 2, when the hue value is output using the lookup table based on the first color difference value and the second color difference value, the lookup table has a very large memory capacity. turn into. On the other hand, according to this color space conversion circuit, since invSr is output based on the first real value K, the lookup table B can be reduced in memory capacity from the memory capacity of the normal lookup table described above. is there.

[適用例4]
適用例3記載の色空間変換回路であって、前記色相角算出部は、前記余弦値Urと前記正弦値Vrとの大小関係によって場合分けを行う第1判断部と、前記第1色差値Uの値が正、零、負のいずれであるかの判断と、前記第2色差値Vの値が正、零、負のいずれであるかの判断とを行う第2判断部と、前記第1,第2判断部の判断結果と、第1色差値U、第2色差値V、余弦値Ur、正弦値Vrとを組み合わせて前記色相の値を算出する色相値出力部とを備える色空間変換回路。
[Application Example 4]
In the color space conversion circuit according to Application Example 3, the hue angle calculation unit includes a first determination unit that performs case classification according to the magnitude relationship between the cosine value Ur and the sine value Vr, and the first color difference value U. A second determination unit that determines whether the value of the second color difference value V is positive, zero, or negative; and a first determination unit that determines whether the value of the second color difference value V is positive, zero, or negative; And a hue value output unit that calculates the hue value by combining the determination result of the second determination unit and the first color difference value U, the second color difference value V, the cosine value Ur, and the sine value Vr. circuit.

この第1色差値U、第2色差値Vの値に対応した色相を記憶するといったメモリ容量が大きいルックアップテーブルを用いずに色相を算出することができる。   The hue can be calculated without using a lookup table having a large memory capacity, such as storing the hue corresponding to the values of the first color difference value U and the second color difference value V.

[適用例5]
色信号変換装置であって、適用例1ないし適用例4のいずれか記載の色空間変換回路と、前記第2の信号の明度、彩度、色相の3つの要素に対応した値を変更した第3の信号を出力可能な色調整回路と、前記第3の信号を、前記第1色空間を構成する輝度、第1色差、第2色差の3つの要素に対応する第4の信号に変換する逆変換回路とを備える色信号変換装置。
[Application Example 5]
A color signal conversion apparatus, wherein the color space conversion circuit according to any one of Application Examples 1 to 4 and a value corresponding to three elements of brightness, saturation, and hue of the second signal are changed. A color adjustment circuit capable of outputting the third signal, and converting the third signal into a fourth signal corresponding to three elements of luminance, first color difference, and second color difference constituting the first color space. A color signal conversion apparatus comprising an inverse conversion circuit.

この色信号変換装置によれば、入力されるYUV信号からなる画像信号に対して、ユーザーがこの画像信号に対して変更等を行う際には、HLS信号として変更可能である。   According to this color signal conversion apparatus, when the user changes the image signal composed of the input YUV signal, it can be changed as an HLS signal.

[適用例6]
入力された画像信号に基づいて画像を表示する画像表示装置であって、前記画像信号に含まれる3次元直交座標系の第1色空間を構成する輝度、第1色差、第2色差の3つの要素に対応する第1の信号を、3次元極座標系の第2色空間を構成する明度、彩度、色相の3つの要素に対応する第2の信号に変換する色空間変換回路を備え、前記色空間変換回路は、前記第1色差の値同士の乗算値である第1乗算値を出力する第1乗算器と、前記第2色差の値同士の乗算値である第2乗算値を出力する第2乗算器と、前記第1乗算値と前記第2乗算値との加算値を出力する加算器と、前記加算値の平方根の値を前記彩度に対応した信号として出力する開平器とを備える彩度算出部と、前記彩度に対応する信号と前記第1及び第2色差に対応した信号とに基づいて前記色相に対応した信号を出力する色相算出部とを備える画像表示装置。
[Application Example 6]
An image display device that displays an image based on an input image signal, and includes three brightness, first color difference, and second color difference that constitute a first color space of a three-dimensional orthogonal coordinate system included in the image signal. A color space conversion circuit that converts a first signal corresponding to an element into a second signal corresponding to three elements of brightness, saturation, and hue constituting the second color space of the three-dimensional polar coordinate system; The color space conversion circuit outputs a first multiplier that outputs a first multiplication value that is a multiplication value of the first color difference values, and a second multiplication value that is a multiplication value of the second color difference values. A second multiplier; an adder that outputs an addition value of the first multiplication value and the second multiplication value; and a square root output device that outputs a square root value of the addition value as a signal corresponding to the saturation. A saturation calculation unit, a signal corresponding to the saturation, and a signal corresponding to the first and second color differences An image display device and a hue calculation unit for outputting a signal corresponding to the color on the basis of.

この画像表示装置によれば、YUV−HLS変換をハードウェアである電気回路を用いて変換処理を行うので、ソフトウェアであるプログラムをCPUで実行することによって同変換処理を行うより、処理速度が速く、且つ、安定して行うことができる。   According to this image display apparatus, YUV-HLS conversion is performed using an electrical circuit that is hardware, so that the processing speed is faster than when the conversion process is performed by executing a program that is software on the CPU. And can be performed stably.

なお、本発明は、種々の態様で実現することが可能である。例えば、画像信号変換方法および装置、画像信号変換システム、それらの方法または装置の機能を実現するための集積回路、コンピュータープログラム、そのコンピュータープログラムを記録した記録媒体等の形態で実現することができる。   Note that the present invention can be realized in various modes. For example, the present invention can be realized in the form of an image signal conversion method and apparatus, an image signal conversion system, an integrated circuit for realizing the functions of the method or apparatus, a computer program, a recording medium on which the computer program is recorded, and the like.

第1実施例における液晶プロジェクター100の全体の構成を示すブロック図である。1 is a block diagram illustrating an overall configuration of a liquid crystal projector 100 according to a first embodiment. 第1実施例における色空間変換回路110の構成を示すブロック図である。2 is a block diagram illustrating a configuration of a color space conversion circuit 110 in the first embodiment. FIG. YUV信号とHLS信号との関係を示した説明図である。It is explanatory drawing which showed the relationship between a YUV signal and a HLS signal. YUV空間とHLS空間とを、輝度、明度の要素に対応するYおよびL軸上から見た説明図である。It is explanatory drawing which looked at YUV space and HLS space from the Y-axis and L-axis corresponding to the element of a brightness | luminance and a brightness. 浮動小数点変換器34における浮動種数点演算の一例を示した説明図である。5 is an explanatory diagram showing an example of floating genus point calculation in the floating point converter 34. FIG. セレクター加算器61が色相値Hを出力する算出方法を説明した説明図である。It is explanatory drawing explaining the calculation method in which the selector adder 61 outputs the hue value H. セレクター加算器61が行う色相値Hの算出方法を、概念的に説明する説明図である。It is explanatory drawing which illustrates notionally the calculation method of the hue value H which the selector adder 61 performs. 色調整回路120が行う処理を概念的に示した説明図である。3 is an explanatory diagram conceptually showing processing performed by a color adjustment circuit 120. FIG. 第1実施例における逆変換回路140の構成を示すブロック図である。It is a block diagram which shows the structure of the inverse transformation circuit 140 in 1st Example. Ph出力器71が色相角Phと、象限値DIV_Hとを算出する算出方法を示した説明図である。It is explanatory drawing which showed the calculation method in which Ph output device 71 calculates hue angle Ph and quadrant value DIV_H. 第1色差出力器75が行う演算の演算式を示した説明図である。It is explanatory drawing which showed the computing equation of the calculation which the 1st color difference output device 75 performs. 第2色差出力器76が行う演算の演算式を示した説明図である。It is explanatory drawing which showed the computing equation of the calculation which the 2nd color difference output device 76 performs.

次に、本発明の実施の形態を実施例に基づいて以下の順序で説明する。
A.第1実施例:
(A1)液晶プロジェクターの概略構成
(A2)色空間変換回路
(A3)逆変換回路
B.変形例:
Next, embodiments of the present invention will be described in the following order based on examples.
A. First embodiment:
(A1) Schematic configuration of liquid crystal projector (A2) Color space conversion circuit (A3) Inverse conversion circuit Variation:

A.第1実施例:
(A1)液晶プロジェクターの概略構成:
図1は、本発明の一実施例としての色空間変換回路が適用される液晶プロジェクター100の全体の構成を示すブロック図である。この液晶プロジェクター100は、色空間変換回路110、色調整回路120、CPU130、逆変換回路140、液晶ライトバルブ駆動回路150、液晶ライトバルブ160、光源部170、投写レンズ180を備え、色空間変換回路110に入力されてくる画像信号に基づいて動画をスクリーン200に表示する。なお、画像信号は、図示しないビデオカメラやスキャナーやパーソナルコンピューター等の入力装置によってリアルタイムに色空間変換回路110に入力されてくる場合と、図示しないコンピューターで読取可能な記憶媒体から色空間変換回路110に読み出されてくる場合のいずれでもよい。ここで、コンピューターで読取可能な記憶媒体には、ROM、RAM、CD−ROM、DVD、FD、MD、メモリーカード等のいずれでもよい。
A. First embodiment:
(A1) Schematic configuration of the liquid crystal projector:
FIG. 1 is a block diagram showing the overall configuration of a liquid crystal projector 100 to which a color space conversion circuit as an embodiment of the present invention is applied. The liquid crystal projector 100 includes a color space conversion circuit 110, a color adjustment circuit 120, a CPU 130, an inverse conversion circuit 140, a liquid crystal light valve driving circuit 150, a liquid crystal light valve 160, a light source unit 170, and a projection lens 180. A moving image is displayed on the screen 200 based on the image signal input to 110. Note that the image signal is input to the color space conversion circuit 110 in real time by an input device such as a video camera, a scanner, or a personal computer (not shown), and the color space conversion circuit 110 from a computer-readable storage medium (not shown). Any of the cases in which the data is read out at any time may be used. Here, the computer-readable storage medium may be any of ROM, RAM, CD-ROM, DVD, FD, MD, memory card, and the like.

色空間変換回路110は、YUV信号として入力されたデジタルの画像信号に対してYUV−HLS変換を行ない、HLS信号として画像信号を出力する電気回路である。色空間変換回路110については後で詳しく説明する。   The color space conversion circuit 110 is an electric circuit that performs YUV-HLS conversion on a digital image signal input as a YUV signal and outputs the image signal as an HLS signal. The color space conversion circuit 110 will be described in detail later.

色調整回路120は、入力されたHLS信号に対応する色相、明度、彩度の各信号を、CPU130からのコマンドによって、色相については変更し、明度及び彩度については、その各信号の出力ゲインの値を補正(以下、ゲイン補正とも呼ぶ)する回路である。具体的には、色調整回路120は、入力される色相、明度、彩度の各信号の値に対して、出力すべき各信号の値(以下、出力信号値とも呼ぶ)を記憶したルックアップテーブルを備えている。液晶プロジェクター100が備える色調整機能を用いてユーザーが行う色調整の指示に従って、CPU130は、色調整回路120が備える各ルックアップテーブルを書き換える。このルックアップテーブルの書き換えによって、色調整回路120は入力されるHLS信号に対して変更等を行うことができる。   The color adjustment circuit 120 changes the hue, brightness, and saturation signals corresponding to the input HLS signal according to a command from the CPU 130 for the hue, and for the brightness and saturation, the output gain of each signal. Is a circuit that corrects the value (hereinafter also referred to as gain correction). Specifically, the color adjustment circuit 120 stores a value of each signal to be output (hereinafter also referred to as an output signal value) with respect to the input hue, lightness, and saturation signal values. Has a table. The CPU 130 rewrites each lookup table provided in the color adjustment circuit 120 in accordance with a color adjustment instruction performed by the user using the color adjustment function provided in the liquid crystal projector 100. By rewriting the lookup table, the color adjustment circuit 120 can change the input HLS signal.

逆変換回路140は入力されるHLS信号をYUV信号に変換(以下、HLS−YUV変換とも呼ぶ)して出力する回路である。逆変換回路140に入力されるHLS信号は、前述したユーザーによる色調整によって、変更及びゲイン補正がされた信号である。逆変換回路140については、後で詳しく説明する。   The inverse conversion circuit 140 is a circuit that converts an input HLS signal into a YUV signal (hereinafter also referred to as HLS-YUV conversion) and outputs it. The HLS signal input to the inverse conversion circuit 140 is a signal that has been changed and gain-corrected by the above-described color adjustment by the user. The inverse conversion circuit 140 will be described in detail later.

液晶ライトバルブ駆動回路150は、液晶ライトバルブ160を駆動する回路である。液晶ライトバルブ160は、液晶ライトバルブ駆動回路150で生成された信号を映像化するパネルであり、光源部170から射出される光を変調して投写に必要な光をスクリーン200側へ向けて射出する。   The liquid crystal light valve driving circuit 150 is a circuit that drives the liquid crystal light valve 160. The liquid crystal light valve 160 is a panel that visualizes the signal generated by the liquid crystal light valve driving circuit 150, and modulates the light emitted from the light source unit 170 to emit light necessary for projection toward the screen 200 side. To do.

光源部170は、画像を投写するための光源であり、主に、光を発するランプ171と、このランプ171から発せられる光を平行光とするレンズ172とを有している。平行光は、液晶ライトバルブ160で変調された後、投写レンズ180に入射する。投写レンズ180は、光源部170から投写される光をスクリーンに拡大して表示させる。また、スクリーン200は、液晶プロジェクター100から投写される投写像を表示する投写面を有している。   The light source unit 170 is a light source for projecting an image, and mainly includes a lamp 171 that emits light and a lens 172 that collimates light emitted from the lamp 171. The parallel light is modulated by the liquid crystal light valve 160 and then enters the projection lens 180. The projection lens 180 enlarges and displays the light projected from the light source unit 170 on the screen. The screen 200 has a projection surface that displays a projection image projected from the liquid crystal projector 100.

(A2)色空間変換回路:
次に、色空間変換回路110の具体的構成および動作について説明する。図2は色空間変換回路110の構成を示すブロック図である。この色空間変換回路110は図示するように、明度算出部10、彩度算出部30、色相算出部50を備えている。色空間変換回路110は、入力された画像信号に含まれる輝度信号(Y)、第1色差信号(U)、第2色差信号(V)を、明度信号(L)、彩度信号(S)、色相信号(H)に変換して出力する。なお、図示しない同期クロックが、各演算器に入力されており、回路間の動作を同期させているが、同期クロック信号については図示を省略している。よって、色空間変換回路110に入力されたYUV信号は、この同期クロックを用いたその一組の信号に対応したHLS信号として変換され、同期して出力される。
(A2) Color space conversion circuit:
Next, a specific configuration and operation of the color space conversion circuit 110 will be described. FIG. 2 is a block diagram showing the configuration of the color space conversion circuit 110. The color space conversion circuit 110 includes a lightness calculation unit 10, a saturation calculation unit 30, and a hue calculation unit 50 as illustrated. The color space conversion circuit 110 converts the luminance signal (Y), the first color difference signal (U), and the second color difference signal (V) included in the input image signal into a lightness signal (L) and a saturation signal (S). , Converted into a hue signal (H) and output. Note that a synchronous clock (not shown) is input to each arithmetic unit and synchronizes the operation between the circuits, but the synchronous clock signal is not shown. Therefore, the YUV signal input to the color space conversion circuit 110 is converted as an HLS signal corresponding to the set of signals using this synchronous clock, and is output in synchronization.

ここで、YUV信号とHLS信号との関係について説明する。図3は、YUV信号とHLS信号との関係を示した説明図である。YUV信号は、画像信号を、輝度と、第1色差と、第2色差との3つの要素から成る3次元直交座標空間(以下、YUV色空間とも呼ぶ)で表した信号である。HLS信号は、画像信号を、色相と、明度と、彩度との3つの要素から成る3次元極座標空間(以下、HLS色空間とも呼ぶ)で表した信号である。図3に示すように、YUV色空間上の輝度と、HLS色空間上の明度とは、両座標空間において軸方向が同じであり一対一の対応をしている。よって、輝度信号と明度信号とを同一の信号として扱うことができる。結果として、YUV信号として入力された画像信号を、HLS信号に変換することは、実質、画像信号に含まれる第1色差信号と第2色差信号とを、色相信号と彩度信号とに変換することに相当する。図4は、図3に示した両座標空間を輝度、明度の要素に対応するYおよびL軸上から見た図である。図3,図4に示した、YUV空間とHLS空間との関係に基づいて、図2に示した色空間変換回路110はYUV−HLS変換を行っている。   Here, the relationship between the YUV signal and the HLS signal will be described. FIG. 3 is an explanatory diagram showing the relationship between the YUV signal and the HLS signal. The YUV signal is a signal representing an image signal in a three-dimensional orthogonal coordinate space (hereinafter also referred to as a YUV color space) composed of three elements of luminance, first color difference, and second color difference. The HLS signal is a signal representing an image signal in a three-dimensional polar coordinate space (hereinafter also referred to as an HLS color space) composed of three elements of hue, brightness, and saturation. As shown in FIG. 3, the luminance in the YUV color space and the brightness in the HLS color space have the same axial direction in both coordinate spaces and have a one-to-one correspondence. Therefore, the luminance signal and the brightness signal can be handled as the same signal. As a result, converting an image signal input as a YUV signal into an HLS signal substantially converts the first color difference signal and the second color difference signal included in the image signal into a hue signal and a saturation signal. It corresponds to that. FIG. 4 is a view of both coordinate spaces shown in FIG. 3 as viewed from the Y and L axes corresponding to the luminance and lightness elements. The color space conversion circuit 110 shown in FIG. 2 performs YUV-HLS conversion based on the relationship between the YUV space and the HLS space shown in FIGS.

図2において、明度算出部10は、色空間変換回路110に入力された輝度信号(Y)に対応する値(以下、輝度値とも呼ぶ)を、そのまま明度信号(L)に対応した値(以下、明度値とも呼ぶ)に適用して、明度信号(Y)として出力する。これは図3で示したように、YUV色空間上の輝度と、HLS色空間上の明度とは、両座標空間において一対一の対応をしていることに拠っている。換言すれば、入力された輝度信号(Y)を、そのまま明度信号(L)として出力する。なお本実施例において、輝度信号(Y)および明度信号(L)は、ともに10ビットの階調データである。   In FIG. 2, the lightness calculation unit 10 uses a value (hereinafter also referred to as a luminance value) corresponding to the luminance signal (Y) input to the color space conversion circuit 110 as a value (hereinafter referred to as the luminance signal (L)). , Also referred to as a brightness value) and output as a brightness signal (Y). As shown in FIG. 3, this is because the luminance in the YUV color space and the brightness in the HLS color space have a one-to-one correspondence in both coordinate spaces. In other words, the input luminance signal (Y) is output as it is as the brightness signal (L). In this embodiment, the luminance signal (Y) and the lightness signal (L) are both 10-bit gradation data.

彩度算出部30は、色空間変換回路110に入力された第1色差信号(U)、第2色差信号(V)に基づいて、彩度信号(S)を出力する。彩度算出部30は、第1乗算器31、第2乗算器32、加算器33、浮動小数点変換器34、ルックアップテーブルA35、彩度指数算出器36、ビットシフト演算器37を備える。なお、以下、ルックアップテーブルをLUTとも呼び、例えば、ルックアップテーブルAはLUT_Aとも表記する。   The saturation calculation unit 30 outputs a saturation signal (S) based on the first color difference signal (U) and the second color difference signal (V) input to the color space conversion circuit 110. The saturation calculation unit 30 includes a first multiplier 31, a second multiplier 32, an adder 33, a floating point converter 34, a lookup table A 35, a saturation index calculator 36, and a bit shift calculator 37. Hereinafter, the lookup table is also referred to as an LUT. For example, the lookup table A is also denoted as LUT_A.

以下、彩度算出部30が第1色差値信号(U)と第2色差信号(V)とを、彩度信号(S)に変換するまでを信号の流れる順に沿って説明する。第1色差信号(U)および第2色差信号(V)は、それぞれ10ビットの階調データである。このため、両信号はそれぞれ、(0〜1023)の信号値をとることになるが、信号値が(512)の時、無色であることを示すものとして扱うので、以下、こうした場合には信号値を(−512〜511)と表記する。   Hereinafter, the process until the saturation calculation unit 30 converts the first color difference value signal (U) and the second color difference signal (V) into the saturation signal (S) will be described along the order in which the signals flow. Each of the first color difference signal (U) and the second color difference signal (V) is 10-bit gradation data. For this reason, both signals have signal values of (0 to 1023), but when the signal value is (512), they are treated as indicating that they are colorless. The value is expressed as (−512 to 511).

第1乗算器31は、入力された第1色差信号を(−512〜511)の階調データに変換後、信号値を、0(零)を中心とした対称性をもった階調値で表すため、(−512〜511)の階調データを(−511〜511)の階調データに丸め処理を行う。丸め処理後、第1乗算器31は第1色差信号の値(以下、第1色差値Uとも呼ぶ)をべき乗した第1乗算値U2を算出する。第2乗算器32は、第1乗算器31と同様の処理を、入力された第2色差信号に対して行い、第2色差信号の値をべき乗した第2乗算値V2を算出する。加算器33は、第1および第2乗算器31,32から出力された第1,第2乗算値U2,V2を互い加算した加算値、つまりU2+V2の値を算出する。 The first multiplier 31 converts the input first color difference signal into (−512 to 511) gradation data, and then converts the signal value to a gradation value having symmetry with 0 (zero) as the center. In order to express, gradation processing of (−512 to 511) is rounded to gradation data of (−511 to 511). After the rounding process, the first multiplier 31 calculates a first multiplication value U 2 that is a power of the value of the first color difference signal (hereinafter also referred to as the first color difference value U). The second multiplier 32 performs the same processing as that of the first multiplier 31 on the input second color difference signal, and calculates a second multiplication value V 2 that is a power of the value of the second color difference signal. The adder 33 calculates an addition value obtained by adding the first and second multiplication values U 2 and V 2 output from the first and second multipliers 31 and 32 to each other, that is, a value of U 2 + V 2 .

加算器33が出力した加算値に対して、平方根の値を算出し、HLS信号のスケールに正規化した値が彩度値Sとなる。正規化は、加算値の平方根の値を開平結果値Rとすると、開平結果値Rに√2を乗ずることで行う。この時、彩度値Sと開平結果値Rとは式(1)で表される。   A value obtained by calculating a square root value with respect to the added value output from the adder 33 and normalized to the scale of the HLS signal is the saturation value S. The normalization is performed by multiplying the square root result value R by √2, where the square root value of the added value is the square root result value R. At this time, the saturation value S and the square root extraction result value R are expressed by Expression (1).

浮動小数点変換器34は、加算値U2+V2、つまりR2の値に対応した信号が入力されると、R2の値に対して浮動小数点演算を行い、式(2)を満たす第1実数値Kおよび第1指数値Lの値を算出する。またこの時、第1指数値Lの値を偶数の値として算出する。浮動小数点変換器34における浮動種数点演算の一例を図5に示した。 When a signal corresponding to the added value U 2 + V 2 , that is, the value of R 2 is input, the floating-point converter 34 performs a floating-point operation on the value of R 2 , and satisfies the expression (2). The real value K and the first index value L are calculated. At this time, the value of the first index value L is calculated as an even value. An example of the floating genus point calculation in the floating point converter 34 is shown in FIG.

S=√2*R・・・・(1)
2=K/2L・・・・(2)
S = √2 * R (1)
R 2 = K / 2 L (2)

次に、彩度値Sを、式(3)を満たす第2実数値Srと第2指数値Siとで表すと、式(1)〜(3)により、第2実数値Srおよび第2指数値Siは、式(4)および式(5)として表すことができる。なお、式(4),(5)のnは、正の整数である。このnは、後述する各演算器による演算の性質上、出力される信号の値が小さくなり、その後の演算の精度が低下するのを回避する。演算の精度を確保するため、適宜、nに正の整数を代入し、演算によって出力される信号の値に対してビットシフトを行う。   Next, when the saturation value S is expressed by the second real value Sr and the second exponent value Si satisfying the equation (3), the second real value Sr and the second exponent are expressed by the equations (1) to (3). The value Si can be expressed as Equation (4) and Equation (5). Note that n in the expressions (4) and (5) is a positive integer. This n avoids a decrease in the accuracy of the subsequent calculation due to the small value of the output signal due to the nature of the calculation performed by each arithmetic unit described later. In order to ensure the accuracy of the operation, a positive integer is appropriately substituted for n, and a bit shift is performed on the value of the signal output by the operation.

S=Sr/2Si・・・・(3)
Sr=2n*√2*√K・・・・(4)
Si=L/2+n・・・・(5)
S = Sr / 2 Si (3)
Sr = 2 n * √2 * √K (4)
Si = L / 2 + n (5)

図2に示す、LUT_A35は浮動小数点変換器34から出力された第1実数値Kの値に対して、式(4)を満たす第2実数値Srを読み出すLUTである。本実施例においては、(0〜2047)の値をとる第1実数値Kに対応した第2実数値Srの値が、LUT_A35に記憶されている。   The LUT_A 35 shown in FIG. 2 is an LUT that reads the second real value Sr that satisfies Expression (4) with respect to the value of the first real value K output from the floating point converter 34. In the present embodiment, the value of the second real value Sr corresponding to the first real value K taking a value of (0-2047) is stored in the LUT_A 35.

彩度指数算出器36は浮動小数点変換器34から出力された第1指数値Lの値に対して、式(5)に示す演算処理を行い第2指数値Siを算出する算出器である。先述したように、浮動小数点変換器34は、第1指数値Lを偶数の値で出力している。よって、彩度指数算出器36が式(5)に示す演算処理を行う際に、少数の概念を含んだ演算を行う必要がない。また、彩度指数算出器36は第2指数値Siが整数値で出力する。   The saturation index calculator 36 is a calculator that calculates the second index value Si by performing the arithmetic processing shown in Expression (5) on the value of the first index value L output from the floating point converter 34. As described above, the floating-point converter 34 outputs the first exponent value L as an even value. Therefore, when the saturation index calculator 36 performs the calculation process shown in Expression (5), it is not necessary to perform a calculation including a small number of concepts. The saturation index calculator 36 outputs the second index value Si as an integer value.

ビットシフト演算器37はLUT_A35および彩度指数算出器36から出力された第2実数値Srおよび第2指数値Siから、式(3)を満たす彩度値Sを算出する演算器である。第2指数値Siは、彩度指数算出器36から整数値として出力されている。よってビットシフト演算器37は、式(3)の演算処理を行う際に、第2実数値Srの値に対してSi桁分のビットシフトを行うことで、彩度値Sを出力する。なお、浮動小数点変換器34と、LUT_A35と、彩度指数算出器36と、ビットシフト演算器37とが、特許請求の範囲に記載の開平器に相当する。以上が、彩度算出部30が行う演算処理である。   The bit shift computing unit 37 is a computing unit that calculates a saturation value S that satisfies Expression (3) from the second real value Sr and the second exponent value Si output from the LUT_A 35 and the saturation index calculator 36. The second exponent value Si is output from the saturation index calculator 36 as an integer value. Therefore, the bit shift calculator 37 outputs the saturation value S by performing a bit shift of Si digits on the value of the second real value Sr when performing the calculation process of Expression (3). The floating-point converter 34, the LUT_A 35, the saturation index calculator 36, and the bit shift calculator 37 correspond to the square root disclosed in the claims. The calculation processing performed by the saturation calculation unit 30 has been described above.

次に、色相算出部50について説明する。図2に示すように、色相算出部50は第1色差信号(U)、第2色差信号(V)、および、彩度算出部30で算出した第1実数値K、第2指数値Siに基づいて、色相信号(H)を出力する。色相算出部50は、LUT_B51、Ur乗算器53、Vr乗算器54、セレクター55、LUT_C57、セレクター減算器59、セレクター加算器61を備えている。   Next, the hue calculation unit 50 will be described. As shown in FIG. 2, the hue calculation unit 50 applies the first color difference signal (U), the second color difference signal (V), and the first real value K and the second exponent value Si calculated by the saturation calculation unit 30. Based on this, a hue signal (H) is output. The hue calculation unit 50 includes an LUT_B 51, an Ur multiplier 53, a Vr multiplier 54, a selector 55, an LUT_C 57, a selector subtractor 59, and a selector adder 61.

ここで、第1色差値U、第2色差値V、開平結果値Rを用いて、式(6),(7)に示す余弦値Urおよび正弦値Vrを定義する。また彩度算出部30で算出した第2実数値Srを用いて、第2実数値Srの逆数を、式(8)に示すinvSrで定義する。また、式(4)および式(8)より、invSrを式(8a)で表すことができる。その結果、式(1)〜式(8)および式(8a)より、余弦値Urおよび正弦値Vrは、式(9)および式(10)で表すことができる。なお、式(8),(8a),(9),(10)のwおよびmは、正の整数である。先述したnと同様に、後述する各演算器による演算の性質上、演算の精度を確保するため、適宜、w,mに正の整数を代入し、演算によって出力される信号の値に対してビットシフトを行う。   Here, using the first color difference value U, the second color difference value V, and the square root result value R, the cosine value Ur and the sine value Vr shown in the equations (6) and (7) are defined. Also, using the second real value Sr calculated by the saturation calculation unit 30, the reciprocal of the second real value Sr is defined by invSr shown in Expression (8). Moreover, invSr can be expressed by equation (8a) from equations (4) and (8). As a result, the cosine value Ur and the sine value Vr can be expressed by the equations (9) and (10) from the equations (1) to (8) and (8a). Note that w and m in the equations (8), (8a), (9), and (10) are positive integers. As in the case of n described above, a positive integer is appropriately substituted for w and m in order to ensure the accuracy of the operation due to the nature of the operation by each arithmetic unit to be described later, and for the signal value output by the operation Bit shift is performed.

Ur=U/R・・・・(6)
Vr=V/R・・・・(7)
invSr=w/Sr・・・・(8)
invSr=w/2n*√2*√K・・・・(8a)
Ur=|U|*√2*invSr*2Si/2m・・・・(9)
Vr=|V|*√2*invSr*2Si/2m・・・・(10)
Ur = U / R (6)
Vr = V / R (7)
invSr = w / Sr (8)
invSr = w / 2 n * √2 * √K (8a)
Ur = | U | * √2 * invSr * 2 Si / 2 m (9)
Vr = | V | * √2 * invSr * 2 Si / 2 m (10)

図2に示すLUT_B51は、浮動小数点変換器34から出力された第1実数値Kに対応して、式(8a)を満たすinvSrを読み出すLUTである。また、先述したLUT_A35と同様に、本実施例においては、(0〜2047)の値をとる第1実数値Kに対応したinvSrの値がLUT_B51に記憶されている。   The LUT_B 51 illustrated in FIG. 2 is an LUT that reads invSr that satisfies Expression (8a) corresponding to the first real value K output from the floating-point converter 34. Similarly to the LUT_A35 described above, in the present embodiment, the value of invSr corresponding to the first real value K that takes a value of (0 to 2047) is stored in the LUT_B51.

Ur乗算器53は、第1色差値Uおよび、彩度指数算出器36から出力された第2指数値Siおよび、LUT_B51から出力されたinvSrに対して式(9)に示す演算処理を行い、余弦値Urを算出する。また、Vr乗算器54は、第2色差値Vおよび、彩度指数算出器36から出力された第2指数値Siおよび、LUT_B51から出力されたinvSrに対して式(10)に示す演算処理を行い、正弦値Vrを算出する。   The Ur multiplier 53 performs the arithmetic processing shown in Expression (9) on the first color difference value U, the second exponent value Si output from the saturation index calculator 36, and invSr output from the LUT_B51, The cosine value Ur is calculated. Further, the Vr multiplier 54 performs the arithmetic processing shown in Expression (10) on the second color difference value V, the second exponent value Si output from the saturation index calculator 36, and invSr output from the LUT_B51. The sine value Vr is calculated.

セレクター55は、Ur乗算器およびVr乗算器から出力された余弦値Urおよび正弦値Vrの大小を比較し、小さい方の値(以下、セレクター出力値Dとも表記する)を選択し出力する。また、セレクター55は、セレクター出力値Dとともに、余弦値Urと正弦値Vrとの比較の結果、どちらが小さかったのかを示すセレクター情報を出力する。   The selector 55 compares the cosine value Ur and the sine value Vr output from the Ur multiplier and the Vr multiplier, and selects and outputs the smaller value (hereinafter also referred to as the selector output value D). The selector 55 outputs selector information indicating which is smaller as a result of the comparison between the cosine value Ur and the sine value Vr together with the selector output value D.

LUT_C57は、セレクター55が出力したセレクター出力値Dに対応して、式(11)を満たすLUT_C算出値Eを読み出すLUTである。式(11)のwは上述したように正の整数である。   The LUT_C 57 is an LUT that reads the LUT_C calculated value E that satisfies the expression (11) corresponding to the selector output value D output from the selector 55. In the formula (11), w is a positive integer as described above.

E=arcsin(D/w)・・・・式(11)
尚、Eの単位は「度」である。
E = arcsin (D / w) (11)
The unit of E is “degree”.

セレクター減算器59はセレクター55から出力されたセレクター情報に基づいて、式(12)又は式(13)で示す2つの減算処理を選択して、LUT_C出力値Eに対して、色相角Phを算出する。   Based on the selector information output from the selector 55, the selector subtractor 59 selects two subtraction processes shown in the equation (12) or (13), and calculates the hue angle Ph for the LUT_C output value E. To do.

Ur≧Vrのとき Ph=E・・・・式(12)
Ur<Vrのとき Ph=90−E・・・・式(13)
When Ur ≧ Vr, Ph = E (12)
When Ur <Vr, Ph = 90−E (13)

図6はセレクター加算器61が第1色差値Uと第2色差値Vと色相角Phに基づいて色相値Hを出力する算出方法を説明した説明図である。セレクター加算器61は、入力される第1色差値Uの値と、第2色差値Vの値との正、又は零、又は負であるか組み合わせによって色相値Hの出力方法を選択する。図6に示した、セレクター加算器61が行う色相値Hの算出方法を、概念的に説明する説明図を図7に示した。図7は横軸を第1色差値U、縦軸を第2色差値VとしたU−Vグラフである。図6,図7を用いて、具体例を示してセレクター加算器61によるHの算出方法を説明する。   FIG. 6 is an explanatory diagram illustrating a calculation method in which the selector adder 61 outputs the hue value H based on the first color difference value U, the second color difference value V, and the hue angle Ph. The selector adder 61 selects the output method of the hue value H based on whether the input first color difference value U and the second color difference value V are positive, zero, or negative. FIG. 7 is an explanatory diagram conceptually illustrating the method of calculating the hue value H performed by the selector adder 61 illustrated in FIG. FIG. 7 is a U-V graph with the first color difference value U on the horizontal axis and the second color difference value V on the vertical axis. A method for calculating H by the selector adder 61 will be described with reference to FIGS.

例えば、セレクター加算器61に入力された第1色差値Uが正の値、第2色差値Vが正の値である場合、図7に示すように色相角PhはU−Vグラフ上の第1象限上の角度に相当する。この場合、色相値Hと色相角Phが同じであることが図7から理解できる。図6において、第1色差値Uの値が正の値、第2色差値Vの値が正の値に対応したHの算出方法はH=Phとなっており、図7を用いて説明した色相値Hの算出方法に対応していることが分かる。   For example, when the first color difference value U input to the selector adder 61 is a positive value and the second color difference value V is a positive value, as shown in FIG. It corresponds to an angle in one quadrant. In this case, it can be understood from FIG. 7 that the hue value H and the hue angle Ph are the same. In FIG. 6, the calculation method of H corresponding to the positive value of the first color difference value U and the positive value of the second color difference value V is H = Ph, which has been described with reference to FIG. It can be seen that the method corresponds to the calculation method of the hue value H.

次に、2つ目の具体例として、セレクター加算器61に入力された第1色差値Uが負の値、第2色差値Vが負の値である場合、図7に示すように色相角PhはU−Vグラフ上の第3象限上の角度に相当する。この場合、図7に示すように、色相値Hは色相角Phに180度を加算することで求められることが理解できる。図6において、第1色差値Uの値が負の値、第2色差値Vの値が負の値に対応したHの算出方法はH=Ph+180となっており、図7を用いて説明した色相値Hの算出方法に対応していることが分かる。上記2つの具体例で示したように、セレクター加算器61では図6に対応した算出方法で、第1色差値Uと第2色差値Vと色相角Phに基づいて色相値Hを出力する。なお、セレクター55、LUT_C57、セレクター減算器59、セレクター加算器61が特許請求の範囲に記載の色相角算出部に相当する。さらに、セレクター55が特許請求の範囲に記載の第1判断部に相当し、セレクター加算器61が特許請求の範囲に記載の第2判断部および色相値出力部に相当する。以上、色空間変換回路110は上記の方法により、画像信号として入力されたYUV信号に対してYUV−HLS変換を施して、HLS信号を出力する。   Next, as a second specific example, when the first color difference value U input to the selector adder 61 is a negative value and the second color difference value V is a negative value, as shown in FIG. Ph corresponds to an angle in the third quadrant on the U-V graph. In this case, as shown in FIG. 7, it can be understood that the hue value H is obtained by adding 180 degrees to the hue angle Ph. In FIG. 6, the calculation method of H corresponding to the negative value of the first color difference value U and the negative value of the second color difference value V is H = Ph + 180, which has been described with reference to FIG. It can be seen that the method corresponds to the calculation method of the hue value H. As shown in the above two specific examples, the selector adder 61 outputs the hue value H based on the first color difference value U, the second color difference value V, and the hue angle Ph by a calculation method corresponding to FIG. The selector 55, LUT_C57, selector subtractor 59, and selector adder 61 correspond to the hue angle calculation unit described in the claims. Further, the selector 55 corresponds to a first determination unit described in the claims, and the selector adder 61 corresponds to a second determination unit and a hue value output unit described in the claims. As described above, the color space conversion circuit 110 performs YUV-HLS conversion on the YUV signal input as the image signal by the above method, and outputs an HLS signal.

色空間変換回路110から出力されたHLS信号は、色調整回路120に入力される。上述したように、色調整回路120に入力されたHLS信号は、色調整回路120が備えるLUTによって、色相、明度、彩度の各信号が変更・補正され、出力される。入力されたHLS信号に対して、色調整回路120が行う処理を概念的に図8に示した。   The HLS signal output from the color space conversion circuit 110 is input to the color adjustment circuit 120. As described above, the hue, lightness, and saturation signals of the HLS signal input to the color adjustment circuit 120 are changed and corrected by the LUT included in the color adjustment circuit 120 and output. FIG. 8 conceptually shows the processing performed by the color adjustment circuit 120 for the input HLS signal.

(A3)逆変換回路:
次に、逆変換回路140の具体的構成および動作について説明する。先述したように、逆変換回路140は、ユーザーによって色調整が行われ、変更、ゲイン補正が施された後のHLS信号に対して、HLS−YUV変換をし、変換したYUV信号を液晶ライトバルブ駆動回路150に向けて出力する回路である。図9は逆変換回路140の構成を示すブロック図である。この逆変換回路140は図示するように、Ph出力器71、LUT_D73、LUT_E74、第1色差出力器75、第2色差出力器76を備えている。なお、図示しない同期クロックが、各演算器に入力されており、回路間の動作を同期させているが、同期クロック信号については図示を省略している。よって、色空間変換回路110に入力されたYUV信号は、この同期クロックを用いたその一組の信号に対応したHLS信号として変換され、同期して出力される。
(A3) Inverse conversion circuit:
Next, a specific configuration and operation of the inverse conversion circuit 140 will be described. As described above, the inverse conversion circuit 140 performs HLS-YUV conversion on the HLS signal that has been color-adjusted, changed, and gain-corrected by the user, and converts the converted YUV signal to a liquid crystal light valve. It is a circuit that outputs to the drive circuit 150. FIG. 9 is a block diagram showing the configuration of the inverse conversion circuit 140. The inverse conversion circuit 140 includes a Ph output unit 71, LUT_D73, LUT_E74, a first color difference output unit 75, and a second color difference output unit 76, as shown in the figure. Note that a synchronous clock (not shown) is input to each arithmetic unit and synchronizes the operation between the circuits, but the synchronous clock signal is not shown. Therefore, the YUV signal input to the color space conversion circuit 110 is converted as an HLS signal corresponding to the set of signals using this synchronous clock, and is output in synchronization.

逆変換回路140に入力された明度信号(L)は、先述したように、図3に示した座標空間において、輝度信号(Y)と一対一で対応しているので、明度信号(L)をそのまま輝度信号(Y)として出力する。   As described above, the lightness signal (L) input to the inverse conversion circuit 140 has a one-to-one correspondence with the luminance signal (Y) in the coordinate space shown in FIG. The luminance signal (Y) is output as it is.

Ph出力器71は入力された色相信号(H)から、色相角Phと、色相信号(H)に対応する色相値HのU−Vグラフ(図7)上での象限値DIV_H(第1象限から第4象限に対応した値)とを算出する。図10は、Ph出力器71に入力された色相値Hに対応して、色相角Phと、象限値DIV_Hとを算出する算出方法を示した説明図である。色相値Hの大きさによって、色相角Phの算出する方法が異なる。一例として、色相値H=100(度)の時、色相値Hは図10において、90〜180(度)の範囲に対応しているので、色相角Phの算出方法はPh=180−Hとなり、Ph=80(度)となる。またこの時、色相値H(=100(度))はU−Vグラフ(図7)では第二象限に存在し、H_DIV=1として出力される。このようにして、色相値Hから色相角Phと象限値DIV_Hとを出力する。   The Ph output device 71 calculates a quadrant value DIV_H (first quadrant) on the U-V graph (FIG. 7) of the hue angle Ph and the hue value H corresponding to the hue signal (H) from the input hue signal (H). To a value corresponding to the fourth quadrant). FIG. 10 is an explanatory diagram showing a calculation method for calculating the hue angle Ph and the quadrant value DIV_H corresponding to the hue value H input to the Ph output device 71. The method of calculating the hue angle Ph differs depending on the magnitude of the hue value H. As an example, when the hue value H = 100 (degrees), the hue value H corresponds to the range of 90 to 180 (degrees) in FIG. 10, so the calculation method of the hue angle Ph is Ph = 180−H. , Ph = 80 (degrees). At this time, the hue value H (= 100 (degrees)) exists in the second quadrant in the UV graph (FIG. 7), and is output as H_DIV = 1. In this way, the hue angle Ph and the quadrant value DIV_H are output from the hue value H.

図9において、Ph出力器71から出力された色相角Phに対応する信号はLUT_D73およびLUT_E74に入力される。LUT_D73は、入力された色相角Phの信号に対応して、その余弦値であるcos(Ph)を出力するLUTである。またLUT_E74は、入力された色相角Phの信号に対応して、その正弦値であるsin(Ph)を出力するLUTである。Ph出力器から出力された色相角Phに対応する信号は、LUT_D73およびLUT_E74を介して、cos(Ph)およびsin(Ph)に対応する信号に変換され、第1色差出力器75および第2色差出力器76に向けて出力される。   In FIG. 9, a signal corresponding to the hue angle Ph output from the Ph output unit 71 is input to the LUT_D 73 and the LUT_E 74. The LUT_D 73 is an LUT that outputs cos (Ph) that is a cosine value in response to the input signal of the hue angle Ph. LUT_E74 is an LUT that outputs sin (Ph), which is a sine value, in response to the input hue angle Ph signal. A signal corresponding to the hue angle Ph output from the Ph output device is converted into a signal corresponding to cos (Ph) and sin (Ph) via LUT_D73 and LUT_E74, and the first color difference output device 75 and the second color difference are output. It is output toward the output device 76.

図9に示すように、第1色差出力器75は、彩度値Sと、cos(Ph)と、象限値DIV_Hとに対応した信号に基づいて、第1色差値Uに対応した信号を出力する。図11は、第1色差出力器75が行う演算の演算式を、象限値DIV_Hの値に対応させて示した説明図である。第1色差出力器75は、象限値DIV_Hの値(0〜3)に基づいて、第1色差値Uを出力する演算式を選択する。そして、象限値DIV_Hに対応して選択した演算式を用いて、入力された彩度値Sと、cos(Ph)とに基づいて第1色差値Uに対応する信号を出力する。   As shown in FIG. 9, the first color difference output unit 75 outputs a signal corresponding to the first color difference value U based on the signals corresponding to the saturation value S, cos (Ph), and the quadrant value DIV_H. To do. FIG. 11 is an explanatory diagram showing the calculation formula of the calculation performed by the first color difference output unit 75 in correspondence with the value of the quadrant value DIV_H. The first color difference output unit 75 selects an arithmetic expression for outputting the first color difference value U based on the value (0 to 3) of the quadrant value DIV_H. Then, a signal corresponding to the first color difference value U is output based on the input saturation value S and cos (Ph) using the arithmetic expression selected corresponding to the quadrant value DIV_H.

第2色差出力器76は、彩度値Sと、sin(Ph)と、象限値DIV_Hとに対応した信号に基づいて、第2色差値Vに対応した信号を出力する。図12は、第2色差出力器76が行う演算の演算式を、象限値DIV_Hの値に対応させて示した説明図である。第2色差出力器76は、象限値DIV_Hの値に基づいて、第2色差値Vを出力する演算式を選択する。そして、象限値DIV_Hに対応して選択した演算式を用いて、彩度値Sと、sin(Ph)とに基づいて第2色差値Vに対応する信号を出力する。こうして、逆変換回路140は、入力されたHLS信号に対して、HLS−YUV変換を行い、YUV信号を出力する。   The second color difference output unit 76 outputs a signal corresponding to the second color difference value V based on the signals corresponding to the saturation value S, sin (Ph), and the quadrant value DIV_H. FIG. 12 is an explanatory diagram showing an arithmetic expression of the calculation performed by the second color difference output unit 76 in correspondence with the value of the quadrant value DIV_H. The second color difference output unit 76 selects an arithmetic expression for outputting the second color difference value V based on the value of the quadrant value DIV_H. Then, a signal corresponding to the second color difference value V is output based on the saturation value S and sin (Ph) using the arithmetic expression selected corresponding to the quadrant value DIV_H. Thus, the inverse conversion circuit 140 performs HLS-YUV conversion on the input HLS signal and outputs a YUV signal.

以上説明したように、液晶プロジェクター100において、色空間変換回路110は、YUV−HLS変換を行う過程で、第1実数値K、第1指数値Lを用いて開平結果値Rを表す。そして、第1実数値Kに基づいてLUTを用いて彩度値Sおよび色相値Hを算出する。よって、第1色差値Uおよび第2色差値Vの値に対応して、直接、彩度値Sおよび色相値Hを読み出すLUTを用いる場合に比べて、YUV−HLS変換に必要なLUTのメモリ容量を大幅に減少させることができる。また、浮動小数点変換器34が第1指数値Lを偶数の値として出力することによって、彩度指数算出器36で行う式(5)に対応した演算処理を小数の概念を用いずに行うことができ、演算処理を簡易化することができ、演算回路として安定した処理速度を確保することができる。さらに、セレクター55において、余弦値Urと正弦値Vrの大小を比較し、式(11)で用いるセレクター出力値Dの値を選択することで、式(11)のarcsin(D/w)の誤差を小さくすることができる。なぜなら、arcsin(F)の演算は、Fが90(度)に近づくとき誤差が大きくなるからである。セレクター55で余弦値Urと正弦値Vrの大小を比較し、小さい方の値をセレクター出力値Dすることで、Fの値を45(度)以下にしてarcsin(F)の演算を行うことができる。加えて、セレクター減算器59において、上述した色相値Hの算出方法を採用し、第1色差値U、第2色差値V、色相角Phを用いることにより、0〜90(度)で出力される色相角Phに対して、0〜360(度)の範囲で色相値Hを算出することができる。また、逆変換回路140は、ユーザーが色調整を行うことによって変更およびゲイン補正がされたHLS信号に対して、HLS−YUV変換を行い、YUV信号を出力することができる。   As described above, in the liquid crystal projector 100, the color space conversion circuit 110 represents the square root extraction result value R using the first real value K and the first exponent value L in the process of performing the YUV-HLS conversion. Then, the saturation value S and the hue value H are calculated using the LUT based on the first real value K. Therefore, the memory of the LUT necessary for the YUV-HLS conversion is compared with the case of using the LUT that directly reads the saturation value S and the hue value H corresponding to the first color difference value U and the second color difference value V. The capacity can be greatly reduced. Further, the floating point converter 34 outputs the first exponent value L as an even value, so that the arithmetic processing corresponding to the equation (5) performed by the saturation exponent calculator 36 is performed without using the concept of decimals. Therefore, the arithmetic processing can be simplified, and a stable processing speed can be secured as the arithmetic circuit. Further, the selector 55 compares the magnitude of the cosine value Ur and the sine value Vr, and selects the value of the selector output value D used in the equation (11), whereby the error of arcsin (D / w) in the equation (11). Can be reduced. This is because the arcsin (F) calculation has a large error when F approaches 90 (degrees). The selector 55 compares the magnitude of the cosine value Ur and the sine value Vr, and calculates the arcsin (F) by setting the F value to 45 (degrees) or less by comparing the smaller value with the selector output value D. it can. In addition, the selector subtractor 59 employs the above-described method for calculating the hue value H, and uses the first hue difference value U, the second hue difference value V, and the hue angle Ph to output 0 to 90 (degrees). The hue value H can be calculated in the range of 0 to 360 (degrees) with respect to the hue angle Ph. Further, the inverse conversion circuit 140 can perform HLS-YUV conversion on the HLS signal that has been changed and gain-corrected by the user adjusting the color, and can output a YUV signal.

このように、液晶プロジェクター100は、色空間変換回路110と逆変換回路140を備えることにより、色調整回路120を介して、ユーザーが、H(色相)・L(明度)・S(彩度)で表されたマンセル表色系の調整画面上で色調整を行う事を可能にする。また、ユーザーによって色調整が施されたHLS信号は逆変換回路140によってYUV信号に変換されて液晶ライトバルブ駆動回路150に出力されるので、液晶ライトバルブ駆動回路150以降の、画像信号が伝わる電気回路の構成は、一般に市販されているプロジェクターの回路構成を採用することができる。   As described above, the liquid crystal projector 100 includes the color space conversion circuit 110 and the inverse conversion circuit 140, so that the user can select H (hue), L (lightness), and S (saturation) via the color adjustment circuit 120. It is possible to perform color adjustment on the Munsell color system adjustment screen represented by. The HLS signal that has been color-adjusted by the user is converted into a YUV signal by the inverse conversion circuit 140 and output to the liquid crystal light valve driving circuit 150. As the circuit configuration, a commercially available circuit configuration of a projector can be adopted.

B.変形例:
なお、この発明は上記の実施例や実施形態に限られるものではなく、その要旨を逸脱しない範囲において種々の態様において実施することが可能であり、例えば次のような変形も可能である。
B. Variation:
The present invention is not limited to the above-described examples and embodiments, and can be implemented in various modes without departing from the gist thereof. For example, the following modifications are possible.

(B1)変形例1:
第1実施例では、液晶プロジェクター100に入力される画像信号に含まれる輝度信号(Y)が、色空間変換回路110を介して色調整回路120に入力されているが、上述したように、色空間変換回路110において、輝度信号(Y)は、そのまま明度信号(L)として扱われているので、輝度信号(Y)は色空間変換回路110に入力されず、直接、色調整回路120に入力されるような回路構成を採用してもよい。回路構成を簡易な構成とすることができる。
(B1) Modification 1:
In the first embodiment, the luminance signal (Y) included in the image signal input to the liquid crystal projector 100 is input to the color adjustment circuit 120 via the color space conversion circuit 110, but as described above, the color signal In the space conversion circuit 110, the luminance signal (Y) is handled as the lightness signal (L) as it is, so the luminance signal (Y) is not input to the color space conversion circuit 110 but directly input to the color adjustment circuit 120. Such a circuit configuration may be adopted. The circuit configuration can be simplified.

(B2)変形例2:
第1実施例における色空間変換回路110および逆変換回路140が備える1つ演算器が行っている1つの演算処理を、複数の演算処理に分けて、複数の演算器で行うようにしてもよい。
(B2) Modification 2:
One arithmetic process performed by one arithmetic unit included in the color space conversion circuit 110 and the inverse conversion circuit 140 in the first embodiment may be divided into a plurality of arithmetic processes and performed by a plurality of arithmetic units. .

(B3)変形例3:
第1実施例では、液晶プロジェクター100に入力される画像信号として、YUV信号が入力されていたが、RGB信号が入力されるとしてもよい。その場合、色空間変換回路110に、RGB信号をYUV信号に変換する簡易な演算回路を備えるようにすれば、上記実施例と同様の効果が得られる。
(B3) Modification 3:
In the first embodiment, a YUV signal is input as an image signal input to the liquid crystal projector 100, but an RGB signal may be input. In that case, if the color space conversion circuit 110 is provided with a simple arithmetic circuit for converting RGB signals into YUV signals, the same effects as in the above embodiment can be obtained.

(B4)変形例4:
第1実施例では、画像表示装置として液晶プロジェクター100を例示したが、光変調素子を液晶ライトバルブに限定するものではなく、例えば、DMD(Digital Micromirror Device)を用いることができる。なお、DMDは米国テキサスインスツルメンツ社の商標である。また、本発明はプラズマディスプレイや有機ELディスプレイなど、直視型の画像表示装置として実施することもできる。
(B4) Modification 4:
In the first embodiment, the liquid crystal projector 100 is exemplified as the image display device. However, the light modulation element is not limited to the liquid crystal light valve, and for example, a DMD (Digital Micromirror Device) can be used. DMD is a trademark of Texas Instruments Incorporated. The present invention can also be implemented as a direct-view image display device such as a plasma display or an organic EL display.

10…明度算出部
30…彩度算出部
31…第1乗算器
32…第2乗算器
33…加算器
34…浮動小数点変換器
35…LUT_A
36…彩度指数算出器
37…ビットシフト演算器
50…色相算出部
51…LUT_B
53…Ur乗算器
54…Vr乗算器
55…セレクター
57…LUT_C
59…セレクター減算器
61…セレクター加算器
71…Ph出力器
73…LUT_D
74…LUT_E
75…第1色差出力器
76…第2色差出力器
100…液晶プロジェクター
110…色空間変換回路
120…色調整回路
130…CPU
140…逆変換回路
150…液晶ライトバルブ駆動回路
160…液晶ライトバルブ
170…光源部
171…ランプ
172…レンズ
180…投写レンズ
200…スクリーン
S…彩度値
R…開平結果値
K…第1実数値
L…第1指数値
U…第1色差値
V…第2色差値
D…セレクター出力値
H…色相値
DIV_H…象限値
Ph…色相角
Si…第2指数値
Sr…第2実数値
Ur…余弦値
Vr…正弦値
2…第1乗算値
2…第2乗算値
DESCRIPTION OF SYMBOLS 10 ... Lightness calculation part 30 ... Saturation calculation part 31 ... 1st multiplier 32 ... 2nd multiplier 33 ... Adder 34 ... Floating point converter 35 ... LUT_A
36 ... Saturation index calculator 37 ... Bit shift calculator 50 ... Hue calculator 51 ... LUT_B
53 ... Ur multiplier 54 ... Vr multiplier 55 ... Selector 57 ... LUT_C
59 ... Selector subtractor 61 ... Selector adder 71 ... Ph output device 73 ... LUT_D
74 ... LUT_E
75 ... 1st color difference output device 76 ... 2nd color difference output device 100 ... Liquid crystal projector 110 ... Color space conversion circuit 120 ... Color adjustment circuit 130 ... CPU
DESCRIPTION OF SYMBOLS 140 ... Reverse conversion circuit 150 ... Liquid crystal light valve drive circuit 160 ... Liquid crystal light valve 170 ... Light source part 171 ... Lamp 172 ... Lens 180 ... Projection lens 200 ... Screen S ... Saturation value R ... Square root result value K ... 1st real value L: First exponent value U: First color difference value V: Second color difference value D: Selector output value H: Hue value DIV_H: Quadrant value Ph: Hue angle Si: Second exponent value Sr: Second real value Ur: Cosine value Vr ... sine value U 2 ... first multiplication value V 2 ... second multiplication value

Claims (6)

3次元直交座標系の第1色空間を構成する輝度、第1色差、第2色差の3つの要素に対応する第1の信号を、3次元極座標系の第2色空間を構成する明度、彩度、色相の3つの要素に対応する第2の信号に変換する色空間変換回路であって、
彩度算出部と、
色相算出部とを備え、
前記彩度算出部は、前記第1色差の値同士の乗算値である第1乗算値を出力する第1乗算器と、前記第2色差の値同士の乗算値である第2乗算値を出力する第2乗算器と、前記第1乗算値と前記第2乗算値との加算値を出力する加算器と、前記加算値の平方根の値を前記彩度に対応した信号として出力する開平器とを備え、
前記色相算出部は、前記彩度に対応する信号と前記第1及び第2色差に対応した信号とに基づいて前記色相に対応した信号を出力する回路である
色空間変換回路。
The first signal corresponding to the three elements of the luminance, the first color difference, and the second color difference constituting the first color space of the three-dimensional orthogonal coordinate system is used as the lightness, chromaticity constituting the second color space of the three-dimensional polar coordinate system. A color space conversion circuit for converting to a second signal corresponding to the three elements of degree and hue,
A saturation calculation unit;
A hue calculation unit,
The saturation calculation unit outputs a first multiplier that outputs a first multiplication value that is a multiplication value of the first color difference values, and a second multiplication value that is a multiplication value of the second color difference values. A second multiplier that outputs an addition value of the first multiplication value and the second multiplication value, and a square root output device that outputs a square root value of the addition value as a signal corresponding to the saturation. With
The hue calculation unit is a color space conversion circuit which is a circuit that outputs a signal corresponding to the hue based on a signal corresponding to the saturation and a signal corresponding to the first and second color differences.
請求項1記載の色空間変換回路であって、
前記彩度の値を彩度値Sとし、前記平方根の値を開平結果値Rとした時に、前記彩度値Sを、前記開平結果値Rを正規化する下記式(1)に基づいて表し、
前記開平結果値Rを第1実数値K、第1指数値Lにより下記式(2)を用いて表し、
前記彩度値Sを第2実数値Sr、第2指数値Siにより下記式(3)を用いて表し、
前記開平器は、
前記加算値を浮動小数点演算することにより、前記下記式(2)を満たす前記第1実数値Kと、前記第1指数値Lとを出力する浮動小数点変換器と、
前記第1実数値Kに基づいて下記式(4)を満たす前記第2実数値Srを読み出すルックアップテーブルAと、
前記第1指数値Lに基づいて下記式(5)を満たす前記第2指数値Siを出力する彩度指数算出器と、
ビットシフトを用いて前記下記式(3)を満たす前記彩度値Sを出力するビットシフト演算器と
を備え、
前記浮動小数点変換器は前記第1指数値Lを偶数の値で出力し、前記彩度指数算出器は前記第2指数値Siを整数値で出力する
色空間変換回路。
S=√2*R・・・・(1)
2=K/2L・・・・(2)
S=Sr/2Si・・・・(3)
Sr=2n*√2*√K・・・・(4)
Si=L/2+n・・・・(5)
The color space conversion circuit according to claim 1,
When the saturation value is the saturation value S and the square root value is the square root result value R, the saturation value S is expressed based on the following equation (1) that normalizes the square root result value R. ,
The square root result value R is expressed by the following equation (2) using the first real value K and the first exponent value L:
The saturation value S is expressed by the following equation (3) using the second real value Sr and the second exponent value Si:
The square root
A floating-point converter that outputs the first real value K and the first exponent value L satisfying the following equation (2) by performing floating-point arithmetic on the addition value;
A lookup table A that reads out the second real value Sr that satisfies the following expression (4) based on the first real value K;
A saturation index calculator that outputs the second index value Si that satisfies the following formula (5) based on the first index value L;
A bit shift computing unit that outputs the saturation value S that satisfies the following equation (3) using a bit shift:
The color space conversion circuit, wherein the floating point converter outputs the first exponent value L as an even number, and the saturation index calculator outputs the second exponent value Si as an integer value.
S = √2 * R (1)
R 2 = K / 2 L (2)
S = Sr / 2 Si (3)
Sr = 2 n * √2 * √K (4)
Si = L / 2 + n (5)
請求項2記載の色空間変換回路であって、
前記第1色差に対応した第1色差値Uと、前記開平結果値Rとに基づいて下記式(6)を満たす値を余弦値Urとして表し、
前記第2色差に対応した第2色差値Vと、前記開平結果値Rとに基づいて下記式(7)を満たす値を正弦値Vrとして表し、
前記第2実数値Srに基づいて下記式(8)を満たす前記第2実数値Srの逆数をinvSrとして表し、
前記色相算出部は、
前記第1実数値Kに基づいて前記invSrを読み出すルックアップテーブルBと、
前記第1色差値Uと前記第2指数値Siと前記invSrとに基づいて下記式(9)を満たす前記余弦値Urを出力するUr乗算器と、
前記第2色差値Vと前記第2指数値Siと前記invSrとに基づいて下記式(10)を満たす前記正弦値Vrを出力するVr乗算器と、
前記第1色差値U、前記第2色差値V、前記余弦値Ur、前記正弦値Vrの値に基づいて前記色相の値を出力する色相角算出部と
を備える色空間変換回路。
Ur=U/R・・・・(6)
Vr=V/R・・・・(7)
invSr=w/Sr・・・・(8)
Ur=|U|*√2*invSr*2Si-m・・・・(9)
Vr=|V|*√2*invSr*2Si-m・・・・(10)
ただし、m,wは正の整数とする。
The color space conversion circuit according to claim 2,
A value satisfying the following formula (6) based on the first color difference value U corresponding to the first color difference and the square root result value R is represented as a cosine value Ur.
A value satisfying the following formula (7) based on the second color difference value V corresponding to the second color difference and the square root result value R is represented as a sine value Vr.
The reciprocal of the second real value Sr that satisfies the following formula (8) based on the second real value Sr is expressed as invSr:
The hue calculation unit
A lookup table B that reads the invSr based on the first real value K;
An Ur multiplier that outputs the cosine value Ur that satisfies the following formula (9) based on the first color difference value U, the second exponent value Si, and the invSr;
A Vr multiplier that outputs the sine value Vr that satisfies the following equation (10) based on the second color difference value V, the second exponent value Si, and the invSr;
A color space conversion circuit comprising: a hue angle calculation unit that outputs the hue value based on the first color difference value U, the second color difference value V, the cosine value Ur, and the sine value Vr.
Ur = U / R (6)
Vr = V / R (7)
invSr = w / Sr (8)
Ur = | U | * √2 * invSr * 2 Si-m (9)
Vr = | V | * √2 * invSr * 2 Si-m (10)
However, m and w are positive integers.
請求項3記載の色空間変換回路であって、
前記色相角算出部は、
前記余弦値Urと前記正弦値Vrとの大小関係によって場合分けを行う第1判断部と、
前記第1色差値Uの値が正、零、負のいずれであるかの判断と、前記第2色差値Vの値が正、零、負のいずれであるかの判断とを行う第2判断部と、
前記第1,第2判断部の判断結果と、第1色差値U、第2色差値V、余弦値Ur、正弦値Vrとを組み合わせて前記色相の値を算出する色相値出力部と
を備える
色空間変換回路。
The color space conversion circuit according to claim 3,
The hue angle calculation unit
A first determination unit for performing case classification according to the magnitude relationship between the cosine value Ur and the sine value Vr;
A second determination for determining whether the value of the first color difference value U is positive, zero, or negative and determining whether the value of the second color difference value V is positive, zero, or negative. And
A hue value output unit that calculates the hue value by combining the determination result of the first and second determination units and the first color difference value U, the second color difference value V, the cosine value Ur, and the sine value Vr. Color space conversion circuit.
色信号変換装置であって、
請求項1ないし請求項4のいずれか記載の色空間変換回路と、
前記第2の信号の明度、彩度、色相の3つの要素に対応した値を変更し、第3の信号として出力可能な色調整回路と、
前記第3の信号を、前記第1色空間を構成する輝度、第1色差、第2色差の3つの要素に対応する第4の信号に変換する逆変換回路と
を備える
色信号変換装置。
A color signal converter,
A color space conversion circuit according to any one of claims 1 to 4,
A color adjustment circuit capable of changing values corresponding to the three elements of brightness, saturation, and hue of the second signal and outputting the third signal as a third signal;
A color signal conversion apparatus comprising: an inverse conversion circuit configured to convert the third signal into a fourth signal corresponding to three elements of luminance, first color difference, and second color difference constituting the first color space.
入力された画像信号に基づいて画像を表示する画像表示装置であって、
前記画像信号に含まれる3次元直交座標系の第1色空間を構成する輝度、第1色差、第2色差の3つの要素に対応する第1の信号を、3次元極座標系の第2色空間を構成する明度、彩度、色相の3つの要素に対応する第2の信号に変換する色空間変換回路を備え、
前記色空間変換回路は、
前記第1色差の値同士の乗算値である第1乗算値を出力する第1乗算器と、前記第2色差の値同士の乗算値である第2乗算値を出力する第2乗算器と、前記第1乗算値と前記第2乗算値との加算値を出力する加算器と、前記加算値の平方根の値を前記彩度に対応した信号として出力する開平器とを備える彩度算出部と、
前記彩度に対応する信号と前記第1及び第2色差に対応した信号とに基づいて前記色相に対応した信号を出力する色相算出部と
を備える
画像表示装置。
An image display device that displays an image based on an input image signal,
The first signal corresponding to the three elements of luminance, first color difference, and second color difference constituting the first color space of the three-dimensional orthogonal coordinate system included in the image signal is represented as the second color space of the three-dimensional polar coordinate system. Comprising a color space conversion circuit for converting into a second signal corresponding to the three elements of brightness, saturation and hue constituting
The color space conversion circuit includes:
A first multiplier that outputs a first multiplication value that is a multiplication value of the first color difference values; a second multiplier that outputs a second multiplication value that is a multiplication value of the second color difference values; A saturation calculation unit comprising: an adder that outputs an addition value of the first multiplication value and the second multiplication value; and a square root unit that outputs a square root value of the addition value as a signal corresponding to the saturation; ,
An image display apparatus comprising: a hue calculation unit that outputs a signal corresponding to the hue based on the signal corresponding to the saturation and the signal corresponding to the first and second color differences.
JP2009075733A 2009-03-26 2009-03-26 Color space conversion circuit, color signal conversion device, and image display device Pending JP2010232774A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009075733A JP2010232774A (en) 2009-03-26 2009-03-26 Color space conversion circuit, color signal conversion device, and image display device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009075733A JP2010232774A (en) 2009-03-26 2009-03-26 Color space conversion circuit, color signal conversion device, and image display device

Publications (1)

Publication Number Publication Date
JP2010232774A true JP2010232774A (en) 2010-10-14

Family

ID=43048206

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009075733A Pending JP2010232774A (en) 2009-03-26 2009-03-26 Color space conversion circuit, color signal conversion device, and image display device

Country Status (1)

Country Link
JP (1) JP2010232774A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109636863A (en) * 2018-12-03 2019-04-16 新视家科技(北京)有限公司 A kind of color space converting circuit
CN116524870A (en) * 2023-07-03 2023-08-01 深圳康荣电子有限公司 Liquid crystal display screen chromaticity optimization method and system and liquid crystal display device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109636863A (en) * 2018-12-03 2019-04-16 新视家科技(北京)有限公司 A kind of color space converting circuit
CN109636863B (en) * 2018-12-03 2022-10-21 新视家科技(北京)有限公司 Color space conversion circuit
CN116524870A (en) * 2023-07-03 2023-08-01 深圳康荣电子有限公司 Liquid crystal display screen chromaticity optimization method and system and liquid crystal display device
CN116524870B (en) * 2023-07-03 2023-09-19 深圳康荣电子有限公司 Liquid crystal display screen chromaticity optimization method and system and liquid crystal display device

Similar Documents

Publication Publication Date Title
KR20190055289A (en) Method of converting color gamut and display device employing the same
US8325397B2 (en) Image processing device and image display device
US20080101692A1 (en) Image data conversion device and image display device
KR20150112754A (en) Conversion between color spaces
TW201531107A (en) Gamut mapping method and the related device thereof
KR100553950B1 (en) Color compensating circuit and image display device having the same
JP2009044492A (en) Image processing system, display device, program, and information storage medium
JP5304375B2 (en) Image display device
JP2010232774A (en) Color space conversion circuit, color signal conversion device, and image display device
JP2012039274A (en) Color space conversion device, image processing device, image display device, and color space conversion method
JP2011209523A (en) Conversion device, image display device, and data conversion method
JP2011188319A (en) Color correction method and color correction device
JP2007241193A (en) Image display controller, projector and control method thereof
JP5321089B2 (en) Image processing apparatus, image display apparatus, and image processing method
JP2009010574A (en) Image forming apparatus, image processing method, and image processing program
JP2002244637A (en) Picture display device
US9554102B2 (en) Processing digital images to be projected on a screen
JP5678454B2 (en) Data conversion device, video display device, and data conversion method
JP4860514B2 (en) 7-axis color correction apparatus and method
WO2008012969A1 (en) Multiple original color display device
JP3933145B2 (en) Image display device and image display method
CN115862534A (en) Color correction method, color correction device, electronic device and storage medium
JP2014095905A (en) Display device, program, and information storage medium
JP5025678B2 (en) Image forming apparatus, image processing method, and image processing program
JP2018133675A (en) Color conversion device, display device, and color conversion method