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 PDFInfo
- 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
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
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
しかしながら、外部から画像表示装置へ入力される画像信号は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)
R2=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.
次に、本発明の実施の形態を実施例に基づいて以下の順序で説明する。
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
色空間変換回路110は、YUV信号として入力されたデジタルの画像信号に対してYUV−HLS変換を行ない、HLS信号として画像信号を出力する電気回路である。色空間変換回路110については後で詳しく説明する。
The color
色調整回路120は、入力されたHLS信号に対応する色相、明度、彩度の各信号を、CPU130からのコマンドによって、色相については変更し、明度及び彩度については、その各信号の出力ゲインの値を補正(以下、ゲイン補正とも呼ぶ)する回路である。具体的には、色調整回路120は、入力される色相、明度、彩度の各信号の値に対して、出力すべき各信号の値(以下、出力信号値とも呼ぶ)を記憶したルックアップテーブルを備えている。液晶プロジェクター100が備える色調整機能を用いてユーザーが行う色調整の指示に従って、CPU130は、色調整回路120が備える各ルックアップテーブルを書き換える。このルックアップテーブルの書き換えによって、色調整回路120は入力されるHLS信号に対して変更等を行うことができる。
The
逆変換回路140は入力されるHLS信号をYUV信号に変換(以下、HLS−YUV変換とも呼ぶ)して出力する回路である。逆変換回路140に入力されるHLS信号は、前述したユーザーによる色調整によって、変更及びゲイン補正がされた信号である。逆変換回路140については、後で詳しく説明する。
The
液晶ライトバルブ駆動回路150は、液晶ライトバルブ160を駆動する回路である。液晶ライトバルブ160は、液晶ライトバルブ駆動回路150で生成された信号を映像化するパネルであり、光源部170から射出される光を変調して投写に必要な光をスクリーン200側へ向けて射出する。
The liquid crystal light
光源部170は、画像を投写するための光源であり、主に、光を発するランプ171と、このランプ171から発せられる光を平行光とするレンズ172とを有している。平行光は、液晶ライトバルブ160で変調された後、投写レンズ180に入射する。投写レンズ180は、光源部170から投写される光をスクリーンに拡大して表示させる。また、スクリーン200は、液晶プロジェクター100から投写される投写像を表示する投写面を有している。
The
(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
ここで、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
図2において、明度算出部10は、色空間変換回路110に入力された輝度信号(Y)に対応する値(以下、輝度値とも呼ぶ)を、そのまま明度信号(L)に対応した値(以下、明度値とも呼ぶ)に適用して、明度信号(Y)として出力する。これは図3で示したように、YUV色空間上の輝度と、HLS色空間上の明度とは、両座標空間において一対一の対応をしていることに拠っている。換言すれば、入力された輝度信号(Y)を、そのまま明度信号(L)として出力する。なお本実施例において、輝度信号(Y)および明度信号(L)は、ともに10ビットの階調データである。
In FIG. 2, the
彩度算出部30は、色空間変換回路110に入力された第1色差信号(U)、第2色差信号(V)に基づいて、彩度信号(S)を出力する。彩度算出部30は、第1乗算器31、第2乗算器32、加算器33、浮動小数点変換器34、ルックアップテーブルA35、彩度指数算出器36、ビットシフト演算器37を備える。なお、以下、ルックアップテーブルをLUTとも呼び、例えば、ルックアップテーブルAはLUT_Aとも表記する。
The
以下、彩度算出部30が第1色差値信号(U)と第2色差信号(V)とを、彩度信号(S)に変換するまでを信号の流れる順に沿って説明する。第1色差信号(U)および第2色差信号(V)は、それぞれ10ビットの階調データである。このため、両信号はそれぞれ、(0〜1023)の信号値をとることになるが、信号値が(512)の時、無色であることを示すものとして扱うので、以下、こうした場合には信号値を(−512〜511)と表記する。
Hereinafter, the process until the
第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
加算器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
浮動小数点変換器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-
S=√2*R・・・・(1)
R2=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
彩度指数算出器36は浮動小数点変換器34から出力された第1指数値Lの値に対して、式(5)に示す演算処理を行い第2指数値Siを算出する算出器である。先述したように、浮動小数点変換器34は、第1指数値Lを偶数の値で出力している。よって、彩度指数算出器36が式(5)に示す演算処理を行う際に、少数の概念を含んだ演算を行う必要がない。また、彩度指数算出器36は第2指数値Siが整数値で出力する。
The
ビットシフト演算器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
次に、色相算出部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
ここで、第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
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
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
セレクター55は、Ur乗算器およびVr乗算器から出力された余弦値Urおよび正弦値Vrの大小を比較し、小さい方の値(以下、セレクター出力値Dとも表記する)を選択し出力する。また、セレクター55は、セレクター出力値Dとともに、余弦値Urと正弦値Vrとの比較の結果、どちらが小さかったのかを示すセレクター情報を出力する。
The
LUT_C57は、セレクター55が出力したセレクター出力値Dに対応して、式(11)を満たすLUT_C算出値Eを読み出すLUTである。式(11)のwは上述したように正の整数である。
The
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
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
例えば、セレクター加算器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
次に、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
色空間変換回路110から出力されたHLS信号は、色調整回路120に入力される。上述したように、色調整回路120に入力されたHLS信号は、色調整回路120が備えるLUTによって、色相、明度、彩度の各信号が変更・補正され、出力される。入力されたHLS信号に対して、色調整回路120が行う処理を概念的に図8に示した。
The HLS signal output from the color
(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
逆変換回路140に入力された明度信号(L)は、先述したように、図3に示した座標空間において、輝度信号(Y)と一対一で対応しているので、明度信号(L)をそのまま輝度信号(Y)として出力する。
As described above, the lightness signal (L) input to the
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
図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
図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
第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
以上説明したように、液晶プロジェクター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
このように、液晶プロジェクター100は、色空間変換回路110と逆変換回路140を備えることにより、色調整回路120を介して、ユーザーが、H(色相)・L(明度)・S(彩度)で表されたマンセル表色系の調整画面上で色調整を行う事を可能にする。また、ユーザーによって色調整が施されたHLS信号は逆変換回路140によってYUV信号に変換されて液晶ライトバルブ駆動回路150に出力されるので、液晶ライトバルブ駆動回路150以降の、画像信号が伝わる電気回路の構成は、一般に市販されているプロジェクターの回路構成を採用することができる。
As described above, the
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
(B2)変形例2:
第1実施例における色空間変換回路110および逆変換回路140が備える1つ演算器が行っている1つの演算処理を、複数の演算処理に分けて、複数の演算器で行うようにしてもよい。
(B2) Modification 2:
One arithmetic process performed by one arithmetic unit included in the color
(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
(B4)変形例4:
第1実施例では、画像表示装置として液晶プロジェクター100を例示したが、光変調素子を液晶ライトバルブに限定するものではなく、例えば、DMD(Digital Micromirror Device)を用いることができる。なお、DMDは米国テキサスインスツルメンツ社の商標である。また、本発明はプラズマディスプレイや有機ELディスプレイなど、直視型の画像表示装置として実施することもできる。
(B4) Modification 4:
In the first embodiment, the
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…正弦値
U2…第1乗算値
V2…第2乗算値
DESCRIPTION OF
36 ...
53 ...
59 ...
74 ... LUT_E
75 ... 1st color
DESCRIPTION OF
Claims (6)
彩度算出部と、
色相算出部とを備え、
前記彩度算出部は、前記第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.
前記彩度の値を彩度値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)
R2=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)
前記第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.
前記色相角算出部は、
前記余弦値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.
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)
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 |
-
2009
- 2009-03-26 JP JP2009075733A patent/JP2010232774A/en active Pending
Cited By (4)
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 |