JP2007235664A - Color conversion matrix generating device, color conversion matrix generating method, color conversion matrix generating program, and image processing apparatus - Google Patents

Color conversion matrix generating device, color conversion matrix generating method, color conversion matrix generating program, and image processing apparatus Download PDF

Info

Publication number
JP2007235664A
JP2007235664A JP2006055875A JP2006055875A JP2007235664A JP 2007235664 A JP2007235664 A JP 2007235664A JP 2006055875 A JP2006055875 A JP 2006055875A JP 2006055875 A JP2006055875 A JP 2006055875A JP 2007235664 A JP2007235664 A JP 2007235664A
Authority
JP
Japan
Prior art keywords
color conversion
conversion matrix
color
image data
matrix
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.)
Withdrawn
Application number
JP2006055875A
Other languages
Japanese (ja)
Inventor
Satoko Motai
里子 馬渡
Hidekuni Moriya
英邦 守屋
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 JP2006055875A priority Critical patent/JP2007235664A/en
Publication of JP2007235664A publication Critical patent/JP2007235664A/en
Withdrawn legal-status Critical Current

Links

Images

Landscapes

  • Image Processing (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Color Image Communication Systems (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a color conversion matrix generating device that generates a color conversion matrix for converting image data disposed outside a color reproduction region to a proper color conversion value. <P>SOLUTION: The color conversion matrix generating device generates the color conversion matrix for color-converting the input image to a color that a display device which displays an image can display. When the color corresponding to the input image data is disposed outside the color reproduction region, a color conversion matrix generating means selects a plurality of color conversion matrixes to be used for the image data. Then the color conversion matrix generating means generates a color conversion matrix by combining the plurality of selected color conversion matrixes. The color conversion matrix generating device can suitably adjust a color conversion matrix causing a defect such as change in hue and deterioration in gray scale. <P>COPYRIGHT: (C)2007,JPO&INPIT

Description

本発明は、入力された画像データを色変換する際に用いる色変換行列を作成する色変換行列作成装置、色変換行列作成方法、色変換行列作成プログラムの技術分野に関する。   The present invention relates to a technical field of a color conversion matrix creation device, a color conversion matrix creation method, and a color conversion matrix creation program for creating a color conversion matrix used for color conversion of input image data.

従来から、4以上の色を用いて、画像を表示可能な画像表示装置が知られている。このような複数の色を表示可能な画像表示装置では、入力される画像データが3色であるため、画像データを例えば4色に色変換している。例えば、特許文献1には、色再現領域を複数の角錐の領域に分割し、各々の領域においてRGBCを計算する方法が記載されている。この場合、RGBCが属する領域は、計算されたRGBCに対する条件判定を行うことによって求める。   Conventionally, an image display device capable of displaying an image using four or more colors is known. In such an image display device capable of displaying a plurality of colors, since the input image data is three colors, the image data is color-converted into, for example, four colors. For example, Patent Document 1 describes a method of dividing a color reproduction region into a plurality of pyramid regions and calculating RGBC in each region. In this case, the region to which the RGBC belongs is obtained by performing a condition determination on the calculated RGBC.

特開2000−338950号公報JP 2000-338950 A

しかしながら、上記した特許文献1に記載された技術では、色再現領域の形状の違いにより、色変換後の色に対して違和感が生じてしまう場合があった。   However, in the technique described in Patent Document 1 described above, there may be a case where a sense of incongruity is generated with respect to the color after color conversion due to a difference in the shape of the color reproduction region.

本発明は、以上の点に鑑みてなされたものであり、色再現領域の外側に位置する画像データを適切な色変換値に変換することが可能な色変換行列を作成する色変換行列作成装置、色変換行列作成方法、色変換行列作成プログラム、及び画像処理装置を提供することを課題とする。   The present invention has been made in view of the above points, and is a color conversion matrix creation device that creates a color conversion matrix capable of converting image data located outside a color reproduction region into an appropriate color conversion value. It is an object of the present invention to provide a color conversion matrix creation method, a color conversion matrix creation program, and an image processing apparatus.

本発明の1つの観点では、入力された画像データを、画像を表示する表示装置が表示可能な色へと色変換するための色変換行列を作成する色変換行列作成装置は、色空間において、前記入力された画像データに対応する色が前記表示装置の表示可能な色再現領域の外側に位置する場合、当該画像データに対して用いる複数の色変換行列を選定する色変換行列選定手段と、前記色変換行列選定手段が選定した複数の色変換行列を組み合わせて、色変換行列を作成する色変換行列作成手段と、を備える。   In one aspect of the present invention, a color conversion matrix creation device that creates a color conversion matrix for color-converting input image data into a color that can be displayed by a display device that displays an image, in a color space, A color conversion matrix selecting means for selecting a plurality of color conversion matrices to be used for the image data when a color corresponding to the input image data is located outside a displayable color reproduction region of the display device; Color conversion matrix creation means for creating a color conversion matrix by combining a plurality of color conversion matrices selected by the color conversion matrix selection means.

上記の色変換行列作成装置は、色変換行列選定手段及び色変換行列作成手段を有し、入力された画像データを、画像を表示する表示装置が表示可能な色へと色変換するための色変換行列を作成する。色変換行列選定手段は、色空間において、入力された画像データに対応する色が表示装置の表示可能な色再現領域の外側に位置する場合、画像データに対して用いるべき、複数の色変換行列を選定する。そして、色変換行列作成手段は、このように選定された複数の色変換行列を組み合わせて色変換行列を作成することができる。これにより、例えば固定された色変換行列を用いて色変換を行うことによって、色相が変わったり、階調性が悪くなったりするなどの不具合が生じた場合に、この色変換行列を適切に調整することによって、上記した不具合の発生を抑制することが可能となる。   The color conversion matrix creation device includes a color conversion matrix selection unit and a color conversion matrix creation unit, and converts the input image data into a color that can be displayed by a display device that displays an image. Create a transformation matrix. The color conversion matrix selection means is a plurality of color conversion matrices to be used for the image data when the color corresponding to the input image data is located outside the color reproduction region that can be displayed on the display device in the color space. Is selected. The color conversion matrix creation means can create a color conversion matrix by combining the plurality of color conversion matrices selected in this way. As a result, for example, when a color conversion is performed using a fixed color conversion matrix and a problem such as a change in hue or a deterioration in gradation occurs, the color conversion matrix is appropriately adjusted. By doing so, it becomes possible to suppress the occurrence of the above-mentioned problems.

上記の色変換行列作成装置の一態様では、前記色変換行列選定手段は、前記入力された画像データに対応する色の値と、当該入力された画像データを色変換して得られる色変換値との誤差が最小となるような色変換をするために用いる第1の色変換行列と、前記入力された画像データに対応する色の値と少なくとも色相が同じ色変換値が得られるような色変換をするために用いる第2の色変換行列と、を選定する。これらの色変換行列を用いることにより、階調性・色相・色再現領域の大きさなどを調整することが可能な色変換行列を作成することが可能となる。なお、第1の色変換行列を選定する場合において、誤差を比較する際には、標準色空間内における両色に対応する値同士を比較することができる。   In one aspect of the color conversion matrix creation device, the color conversion matrix selection unit includes a color value corresponding to the input image data, and a color conversion value obtained by performing color conversion on the input image data. A first color conversion matrix used for color conversion that minimizes an error between the first and second colors, and a color that can obtain a color conversion value that has at least the same hue as the color value corresponding to the input image data. A second color conversion matrix to be used for conversion is selected. By using these color conversion matrices, it is possible to create a color conversion matrix capable of adjusting the gradation, the hue, the size of the color reproduction region, and the like. When selecting the first color conversion matrix, when comparing errors, values corresponding to both colors in the standard color space can be compared.

上記の色変換行列作成装置の他の一態様では、前記色変換行列作成手段は、前記複数の色変換行列を重み付けて組み合わせることによって、前記色変換行列を作成する。この場合、色変換行列作成手段は、色変換において不具合が生じた色が、理想の色変換値に色変換されるように重み付けを行うことができる。   In another aspect of the color conversion matrix creation device, the color conversion matrix creation unit creates the color conversion matrix by weighting and combining the plurality of color conversion matrices. In this case, the color conversion matrix creation means can perform weighting so that the color in which a problem has occurred in the color conversion is color-converted to an ideal color conversion value.

上記の色変換行列作成装置において好適には、前記色変換行列選定手段は、高彩度の緑及び中間調の緑に対応するそれぞれのデータが前記画像データとして入力された場合に、前記複数の色変換行列を選定し、前記色変換行列作成手段は、前記高彩度の緑及び前記中間調の緑の各々に対して、前記複数の色変換行列を組み合わせた色変換行列を作成することができる。   Preferably, in the color conversion matrix creation device, the color conversion matrix selection unit includes the plurality of color conversions when data corresponding to high saturation green and halftone green are input as the image data. A matrix is selected, and the color conversion matrix creation means can create a color conversion matrix in which the plurality of color conversion matrices are combined for each of the high saturation green and the halftone green.

好適には、画像処理装置は、色変換行列作成装置によって作成された前記色変換行列をテーブルとして記憶する記憶手段と、前記記憶手段に記憶されたテーブルを用いて、入力される画像データを、前記表示装置が用いる複数の色へと色変換する色変換手段と、を備える。これにより、画像処理装置は、色変換によって適切な色変換値を得ることができる。   Preferably, the image processing apparatus stores the color conversion matrix created by the color conversion matrix creation apparatus as a table, and the input image data using the table stored in the storage means, Color conversion means for performing color conversion into a plurality of colors used by the display device. Thereby, the image processing apparatus can obtain an appropriate color conversion value by color conversion.

本発明の他の観点では、入力された画像データを、画像を表示する表示装置が表示可能な色へと色変換するための色変換行列を作成する色変換行列作成方法は、色空間において、前記入力された画像データに対応する色が前記表示装置の表示可能な色再現領域の外側に位置する場合、当該画像データに対して用いる複数の色変換行列を選定する色変換行列選定工程と、前記色変換行列選定工程で選定された複数の色変換行列を組み合わせて、色変換行列を作成する色変換行列作成工程と、を備える。   In another aspect of the present invention, a color conversion matrix creation method for creating a color conversion matrix for color-converting input image data into a color that can be displayed by a display device that displays an image, in a color space, A color conversion matrix selection step of selecting a plurality of color conversion matrices to be used for the image data when a color corresponding to the input image data is located outside a displayable color reproduction region of the display device; A color conversion matrix creation step of creating a color conversion matrix by combining a plurality of color conversion matrices selected in the color conversion matrix selection step.

本発明の更に他の観点では、入力された画像データを、画像を表示する表示装置が表示可能な色へと色変換するための色変換行列が作成されるようにコンピュータを機能させる色変換行列作成プログラムは、色空間において、前記入力された画像データに対応する色が前記表示装置の表示可能な色再現領域の外側に位置する場合、当該画像データに対して用いる複数の色変換行列を選定する色変換行列選定手段、及び、前記色変換行列選定手段が選定した複数の色変換行列を組み合わせて、色変換行列を作成する色変換行列作成手段、として前記コンピュータを機能させる。   In still another aspect of the present invention, a color conversion matrix that causes a computer to function so as to create a color conversion matrix for converting input image data into a color that can be displayed by a display device that displays an image. The creation program selects a plurality of color conversion matrices to be used for the image data when the color corresponding to the input image data is located outside the displayable color reproduction area of the display device in the color space. The computer is caused to function as a color conversion matrix selection unit for generating a color conversion matrix by combining a plurality of color conversion matrices selected by the color conversion matrix selection unit and the color conversion matrix selection unit.

上記した色変換行列作成方法及び色変換行列作成プログラム(記録媒体に記録されたプログラムを含む)によっても、適切な色変換値に色変換する色変換行列を作成することができる。   A color conversion matrix that performs color conversion to an appropriate color conversion value can also be generated by the above-described color conversion matrix generation method and color conversion matrix generation program (including a program recorded on a recording medium).

以下、図面を参照して本発明の好適な実施形態について説明する。なお、以下では、複数の色として4以上の色を用いて、画像を表示可能な画像表示装置を例に挙げて説明する。   Hereinafter, preferred embodiments of the present invention will be described with reference to the drawings. In the following, an image display apparatus capable of displaying an image using four or more colors as a plurality of colors will be described as an example.

[画像表示装置の構成]
図1は、本実施形態に係る画像表示装置100の概略構成を示すブロック図である。画像表示装置100は、外部から画像データと制御コマンドを取得して画像データに対して画像処理を行う画像処理部10と、画像処理部10で画像処理された画像データを表示する表示部20とを備える。なお、画像表示装置100は、4以上の色を用いて画像を表示可能に構成されている。具体的には、画像表示装置100は、Red(赤)、Green(緑)、Blue(青)、及びCyan(シアン)の4色(以下、単に「R」、「G」、「B」、「C」とも表記する。)を表示可能に構成されている。
[Configuration of image display device]
FIG. 1 is a block diagram illustrating a schematic configuration of an image display apparatus 100 according to the present embodiment. The image display apparatus 100 includes an image processing unit 10 that acquires image data and a control command from the outside and performs image processing on the image data, and a display unit 20 that displays the image data processed by the image processing unit 10. Is provided. The image display device 100 is configured to display an image using four or more colors. Specifically, the image display apparatus 100 includes four colors (hereinafter simply referred to as “R”, “G”, “B”, red (red), green (green), blue (blue), and cyan (cyan)). "C" is also displayed).

画像処理部10は、I/F制御回路11と、色変換回路12と、VRAM13と、アドレス制御回路14と、テーブル格納メモリ15と、γ補正回路16と、を備える。I/F制御回路11は、外部(例えばカメラなど)から画像データと制御コマンドを取得し、画像データd1を色変換回路12に供給する。なお、外部から供給される画像データは、R、G、Bの3色で構成されている。   The image processing unit 10 includes an I / F control circuit 11, a color conversion circuit 12, a VRAM 13, an address control circuit 14, a table storage memory 15, and a γ correction circuit 16. The I / F control circuit 11 acquires image data and a control command from the outside (for example, a camera) and supplies the image data d1 to the color conversion circuit 12. Note that image data supplied from the outside is composed of R, G, and B colors.

色変換回路12は、取得した画像データd1に対して、階調特性を変換するためのテーブル変換(1DLUT(1-Dimentional Look-Up-Table)変換)と、3色から4色に変換する処理を行う。この場合、色変換回路12は、テーブル格納メモリ15に記憶されたデータなどを参照して処理を行う。例えば、テーブル格納メモリ15には色変換行列が記憶されており、色変換回路12は、この色変換行列を用いて色変換を行う。この場合、テーブル格納メモリ15は、記憶手段として機能する。   The color conversion circuit 12 performs table conversion (1DLUT (1-Dimensional Look-Up-Table) conversion) on the acquired image data d1 and processing for converting from three colors to four colors. I do. In this case, the color conversion circuit 12 performs processing with reference to data stored in the table storage memory 15. For example, a color conversion matrix is stored in the table storage memory 15, and the color conversion circuit 12 performs color conversion using this color conversion matrix. In this case, the table storage memory 15 functions as a storage unit.

色変換回路12で画像処理された画像データd2は、VRAM13に書き込まれる。VRAM13に書き込まれた画像データd2は、アドレス制御回路からの制御信号d21に基づいて、γ補正回路16によって画像データd3として読み出されると共に、表示部20内の走査線駆動回路22によってアドレスデータd4として読み出される。γ補正回路16は、テーブル格納メモリ15に記憶されたデータなどを参照して、取得した画像データd3に対してγ補正を行う。そして、γ補正回路16は、γ補正後の画像データd5を表示部20内のデータ線駆動回路21に供給する。このように、色変換回路12は色変換手段として動作し、画像処理部10は画像処理装置として機能する。   The image data d2 subjected to image processing by the color conversion circuit 12 is written in the VRAM 13. The image data d2 written in the VRAM 13 is read out as image data d3 by the γ correction circuit 16 on the basis of a control signal d21 from the address control circuit, and as address data d4 by the scanning line driving circuit 22 in the display unit 20. Read out. The γ correction circuit 16 refers to the data stored in the table storage memory 15 and performs γ correction on the acquired image data d3. Then, the γ correction circuit 16 supplies the image data d5 after γ correction to the data line driving circuit 21 in the display unit 20. Thus, the color conversion circuit 12 operates as color conversion means, and the image processing unit 10 functions as an image processing device.

表示部20は、データ線駆動回路21と、走査線駆動回路22と、表示パネル23と、を備える。データ線駆動回路21は、960本のデータ線に対してデータ線駆動信号X1〜X960を供給する。走査線駆動回路22は、320本の走査線に対して走査線駆動信号Y1〜Y320を供給する。この場合、データ線駆動回路21と走査線駆動回路22は、同期して表示パネル23を駆動する。表示パネル23は、液晶(LCD)などによって構成され、走査線及びデータ線に電圧を印加されることによって、表示すべき文字や映像などの画像を表示する。表示部20は、表示装置として機能する。   The display unit 20 includes a data line driving circuit 21, a scanning line driving circuit 22, and a display panel 23. The data line driving circuit 21 supplies data line driving signals X1 to X960 to 960 data lines. The scanning line driving circuit 22 supplies scanning line driving signals Y1 to Y320 to 320 scanning lines. In this case, the data line driving circuit 21 and the scanning line driving circuit 22 drive the display panel 23 in synchronization. The display panel 23 is composed of a liquid crystal (LCD) or the like, and displays images such as characters and video to be displayed by applying voltages to the scanning lines and the data lines. The display unit 20 functions as a display device.

[色変換方法]
次に、上記した画像処理部10の色変換回路12で行われる色変換方法について説明する。
[Color conversion method]
Next, a color conversion method performed by the color conversion circuit 12 of the image processing unit 10 described above will be described.

図2は、色変換を具体的に説明するための図である。詳しくは、図2は色再現領域を多面体として表した図である。この多面体は、色に対応するベクトルによって構成され、N色の場合には、N(N−1)面体となる。この場合、R2、G2、B2、C2の4色であるため、色再現領域は12面体となる。なお、R2、G2、B2、C2は、画像データR1、G1、B1を1DLUT変換することによって得られるデータに対応する。   FIG. 2 is a diagram for specifically explaining the color conversion. Specifically, FIG. 2 is a diagram showing the color reproduction region as a polyhedron. This polyhedron is composed of vectors corresponding to colors. In the case of N colors, the polyhedron is an N (N-1) face. In this case, since the colors are R2, G2, B2, and C2, the color reproduction region is a dodecahedron. R2, G2, B2, and C2 correspond to data obtained by performing 1DLUT conversion on the image data R1, G1, and B1.

色変換は、三刺激値X、Y、ZをR2、G2、B2、C2によって表現するために行う。具体的には、1DLUT変換後の画像データR1、G1、B1に対して行列Mを乗算することによって(以下の式(1)参照)、色を表す三刺激値Xi、Yi、Ziを得る。   Color conversion is performed in order to express the tristimulus values X, Y, and Z by R2, G2, B2, and C2. Specifically, the tristimulus values Xi, Yi, and Zi representing colors are obtained by multiplying the image data R1, G1, and B1 after the 1DLUT conversion by the matrix M (see the following formula (1)).

Figure 2007235664
図3は、色再現領域を示す多面体を分割した四角錐を示している。色変換の目的は、前述したように三刺激値X、Y、ZをR2、G2、B2、C2で表現することであるが、求めるべき変数の数が次元の数よりも多いため、色再現領域を示す多面体を分割することによって変数に対して拘束条件を与える。即ち、変数の数を下げることによって色変換の計算を行う。具体的には、図3(a)〜(h)は、図2に示した12面体を、M0〜M7の8個の領域に分割した図を示す。図示のように、8個の領域M0〜M7はいずれも四角錐となる。ここで、図3(a)の領域M0を代表して説明すると、領域M0を示す四角錐は「B2」、「R2」、「G2」の3つのベクトルによって表現され、「C2=0」という変数の拘束条件が与えられる。即ち、領域M0は、「R2、G2、B2」の要素のみで構成されている。出力される4色は(R2,G2,B2,C2)=(R2,G2,B2,0)となるため、4つの要素で表してはいるが使用している要素は3つとなり、入力の3色を一意に求めることができる。
Figure 2007235664
FIG. 3 shows a quadrangular pyramid obtained by dividing a polyhedron indicating a color reproduction region. The purpose of color conversion is to express the tristimulus values X, Y, and Z as R2, G2, B2, and C2 as described above. However, since the number of variables to be obtained is larger than the number of dimensions, color reproduction is performed. A constraint condition is given to a variable by dividing a polyhedron indicating a region. That is, the color conversion is calculated by reducing the number of variables. Specifically, FIGS. 3A to 3H are diagrams in which the dodecahedron shown in FIG. 2 is divided into eight regions M0 to M7. As shown in the figure, each of the eight regions M0 to M7 is a quadrangular pyramid. Here, the region M0 in FIG. 3A will be described as a representative. A quadrangular pyramid representing the region M0 is represented by three vectors “B2”, “R2”, and “G2”, and is called “C2 = 0” Variable constraints are given. That is, the region M0 is composed of only the elements “R2, G2, B2”. The four colors to be output are (R2, G2, B2, C2) = (R2, G2, B2, 0), so although there are four elements, there are three elements in use. Three colors can be uniquely determined.

次に、色変換処理について、図4乃至図9を用いて具体的に説明する。   Next, the color conversion process will be specifically described with reference to FIGS.

図4は、R2、G2、B2、C2の色変換処理の方法を説明するための図である。色再現領域を示す多面体を分割して得られた四角錐を、3つのベクトルPn、Qn、Rnで表す(「Rn」は、色を示すRedと無関係である)。これらのベクトルPn、Qn、Rnは、それぞれXYZ成分の値を有する。R2、G2、B2、C2の算出をする際には、まず、ベクトルPn、Qn、RnのXYZ成分と、上記した三刺激値Xi、Yi、Ziを用いて、pn、qn、rnを求める(「rn」は、色を示すRedと無関係である)。具体的には、以下の式(2)で示す計算を行う。この場合、nは0〜7の整数である。   FIG. 4 is a diagram for explaining a color conversion processing method for R2, G2, B2, and C2. A quadrangular pyramid obtained by dividing a polyhedron indicating a color reproduction region is represented by three vectors Pn, Qn, and Rn (“Rn” is independent of Red indicating color). These vectors Pn, Qn, and Rn each have a value of an XYZ component. When calculating R2, G2, B2, and C2, first, pn, qn, and rn are obtained using the XYZ components of the vectors Pn, Qn, and Rn and the tristimulus values Xi, Yi, and Zi described above ( “Rn” is independent of Red indicating color). Specifically, the calculation shown by the following formula (2) is performed. In this case, n is an integer of 0-7.

Figure 2007235664
そして、求めたpn、qn、rnが所定の条件(以下、「条件A」と呼ぶ。)を満たす場合には、各領域におけるR2、G2、B2、C2の設定に対応してpn、qn、rnからR2、G2、B2、C2を求める。詳しくは、条件Aは、以下の式(3)で表される。このような条件Aを用いることによって、pn、qn、rnが、分割されたnで示される四角錐の内側に位置するか否かを判定することができる。
Figure 2007235664
When the obtained pn, qn, and rn satisfy a predetermined condition (hereinafter referred to as “condition A”), pn, qn, and pn correspond to the settings of R2, G2, B2, and C2 in each region. R2, G2, B2, and C2 are obtained from rn. Specifically, the condition A is represented by the following formula (3). By using such a condition A, it can be determined whether pn, qn, and rn are located inside the divided quadrangular pyramid indicated by n.

Figure 2007235664
図5は、色変換値計算処理を示すフローチャートである。この処理は、入力された画像データに対する色変換値を計算する処理であり、色変換回路12が行う。
Figure 2007235664
FIG. 5 is a flowchart showing color conversion value calculation processing. This process is a process of calculating a color conversion value for the input image data, and is performed by the color conversion circuit 12.

まず、ステップS401では、色変換回路12は画像データR1、G1、B1を入力する。そして、処理はステップS402に進む。ステップS402では、色変換回路12は、上記の式(1)を用いて三刺激値Xi、Yi、Ziを算出する。そして、処理はステップS403に進む。   First, in step S401, the color conversion circuit 12 inputs image data R1, G1, and B1. Then, the process proceeds to step S402. In step S402, the color conversion circuit 12 calculates tristimulus values Xi, Yi, and Zi using the above equation (1). Then, the process proceeds to step S403.

ステップS403では、色変換回路12は、変数nを「0」にセットし、ステップS404の処理に進む。ステップS404では、色変換回路12は、上記の式(2)を用いてpn、qn、rnを計算し、ステップS405の処理に進む。ステップS405では、色変換回路12は、ステップS404で算出されたpn、qn、rnが式(3)で示される条件Aを満たしているか否かを判定する。即ち、ステップS405では、pn、qn、rnが分割された領域に位置するか否かを判定している。   In step S403, the color conversion circuit 12 sets the variable n to “0”, and proceeds to the process of step S404. In step S404, the color conversion circuit 12 calculates pn, qn, and rn using the above equation (2), and proceeds to the process of step S405. In step S405, the color conversion circuit 12 determines whether or not pn, qn, and rn calculated in step S404 satisfy the condition A expressed by equation (3). That is, in step S405, it is determined whether or not pn, qn, and rn are located in the divided area.

pn、qn、rnが条件Aを満たしている場合(ステップS405;Yes)には、処理はステップS406に進む。この場合には、pn、qn、rnは、分割された領域に位置する。よって、ステップS406において、色変換回路12は、各領域におけるR2、G2、B2、C2の設定に対応してpn、qn、rnからR2、G2、B2、C2を求めて、これを出力する。そして、処理は当該フローを抜ける。   If pn, qn, and rn satisfy the condition A (step S405; Yes), the process proceeds to step S406. In this case, pn, qn, and rn are located in the divided areas. Therefore, in step S406, the color conversion circuit 12 obtains R2, G2, B2, and C2 from pn, qn, and rn corresponding to the settings of R2, G2, B2, and C2 in each region, and outputs this. Then, the process exits the flow.

一方、pn、qn、rnが条件Aを満たしていない場合(ステップS405;No)には、処理はステップS407に進む。この場合には、pn、qn、rnが分割された領域に位置しない。ステップS407では、色変換回路12は、分割された全領域に対する処理が終了したか否かを行う。言い換えると、変数nが色数Nに一致するか否かを判定する。   On the other hand, when pn, qn, and rn do not satisfy the condition A (step S405; No), the process proceeds to step S407. In this case, pn, qn, and rn are not located in the divided area. In step S407, the color conversion circuit 12 determines whether or not the processing for all divided areas has been completed. In other words, it is determined whether or not the variable n matches the number N of colors.

全領域に対する処理が終了している場合(ステップS407;Yes)には、処理はステップS408に進む。この場合には、全領域に対する処理が終了しているにもかかわらず、全ての変数nにおいてpn、qn、rnが条件Aを満たしていないため、pn、qn、rnに対応する点は色再現領域内に位置しない。よって、ステップS408において、色変換回路12は、色再現領域の外側の点に対して色変換値を計算する処理(以下、この処理を「色域外計算処理」と呼ぶ。)を行う。そして、この色域外計算処理が終了すると、処理は当該フローを抜ける。   If the processing for all areas has been completed (step S407; Yes), the processing proceeds to step S408. In this case, pn, qn, and rn do not satisfy the condition A in all the variables n even though the processing for all the regions is finished, and the points corresponding to pn, qn, and rn are color reproductions. It is not located in the area. Accordingly, in step S408, the color conversion circuit 12 performs a process of calculating a color conversion value for a point outside the color reproduction area (hereinafter, this process is referred to as “out-of-gamut calculation process”). When the out-of-gamut calculation process ends, the process exits the flow.

全領域に対する処理が終了していない場合(ステップS407;No)には、処理はステップS409に進む。この場合には、現在の変数nで求められたpn、qn、rnに対応する点は色再現領域内に位置しないが、全領域に対する処理が終了していないため、変数nを変更して処理を行う。具体的には、ステップS409では、色変換回路12が、変数nに「1」を加算する処理を行う。そして、処理はステップS404に戻る。即ち、新しい変数nに設定して上記の処理を行う。   If the process for all the areas has not been completed (step S407; No), the process proceeds to step S409. In this case, the points corresponding to pn, qn, and rn obtained with the current variable n are not located in the color reproduction region, but the processing for all the regions has not been completed. I do. Specifically, in step S409, the color conversion circuit 12 performs a process of adding “1” to the variable n. Then, the process returns to step S404. That is, the above processing is performed by setting a new variable n.

次に、前述した色域外計算処理について説明する。図6は、色域外計算処理の基本概念を説明するための図である。色域外計算処理は、符号150で示すように入力された画像データが色再現領域の外側に存在する場合に処理である。この場合、上記の式(2)に基づいてpn、qn、rnを求めるが、pn、qn、rnに対して判定する際に用いる条件(以下、ここで用いる条件を「条件B」と呼ぶ。)が異なる。この条件Bは、条件Aを緩和した条件となっている。具体的には、条件Bにおいては、pnは「1」よりも大きい値を有することができる(但し、pnは「0」未満の値を有することはできない)と共に、qn、rnは任意の値を有することができる。詳しくは、条件Bは、以下の式(4)で表される。   Next, the aforementioned out-of-gamut calculation process will be described. FIG. 6 is a diagram for explaining a basic concept of out-of-gamut calculation processing. The out-of-gamut calculation process is a process when input image data exists outside the color reproduction area as indicated by reference numeral 150. In this case, pn, qn, and rn are obtained based on the above formula (2), but the conditions used when determining pn, qn, and rn (hereinafter, the conditions used here are referred to as “condition B”). ) Is different. This condition B is a condition in which the condition A is relaxed. Specifically, in the condition B, pn can have a value larger than “1” (however, pn cannot have a value less than “0”), and qn and rn can be arbitrary values. Can have. Specifically, the condition B is expressed by the following formula (4).

Figure 2007235664
図7は、色域外計算処理を示すフローチャートである。この処理は、図5に示す色変換処理におけるステップS408において、実行される。即ち、入力された画像データが色再現領域の外側に位置する場合に行われる。なお、色域外計算処理は、色変換回路12によって実行される。
Figure 2007235664
FIG. 7 is a flowchart showing the out-of-gamut calculation process. This process is executed in step S408 in the color conversion process shown in FIG. That is, it is performed when the input image data is located outside the color reproduction area. Note that the out-of-gamut calculation process is executed by the color conversion circuit 12.

ステップS501〜S504の処理は、前述したステップS401〜S404の処理と同様であるため、その説明を省略する。   Since the processing of steps S501 to S504 is the same as the processing of steps S401 to S404 described above, description thereof is omitted.

ステップS505では、色変換回路12は、ステップS504で算出されたpn、qn、rnが式(4)で示される条件Bを満たしているか否かを判定する。pn、qn、rnが条件Bを満たしている場合(ステップS505;Yes)には、処理はステップS506に進む。ステップS506では、色変換回路12は、算出されたpn、qn、rnを保存する。そして、処理はステップS508に進む。一方、pn、qn、rnが条件Bを満たしていない場合(ステップS505;No)には、処理はステップS507に進む。ステップS507では、色変換回路12は、算出されたpn、qn、rnを保存しない。そして、処理はステップS508に進む。ここで、条件Bの制限が緩和されているため、ステップS504〜S509の処理を繰り返し実行することにより、1つの入力された画像データに対して複数のpn、qn、rnが保存される。言い換えると、ステップS505における判定は、入力された画像データに対して複数の色変換値の候補を選定していることに相当する。   In step S505, the color conversion circuit 12 determines whether or not pn, qn, and rn calculated in step S504 satisfy the condition B expressed by equation (4). When pn, qn, and rn satisfy the condition B (step S505; Yes), the process proceeds to step S506. In step S506, the color conversion circuit 12 stores the calculated pn, qn, and rn. Then, the process proceeds to step S508. On the other hand, when pn, qn, and rn do not satisfy the condition B (step S505; No), the process proceeds to step S507. In step S507, the color conversion circuit 12 does not store the calculated pn, qn, and rn. Then, the process proceeds to step S508. Here, since the restriction on the condition B is relaxed, a plurality of pn, qn, and rn are stored for one input image data by repeatedly executing the processes of steps S504 to S509. In other words, the determination in step S505 corresponds to selecting a plurality of color conversion value candidates for the input image data.

ステップS508では、色変換回路12は、分割された全領域に対する処理が終了したか否か判定する。言い換えると、変数nが色数Nに一致するか否かを判定する。全領域に対する処理が終了している場合(ステップS508;Yes)には、処理はステップS510に進む。   In step S508, the color conversion circuit 12 determines whether the processing for all the divided areas has been completed. In other words, it is determined whether or not the variable n matches the number N of colors. If the processing for all regions has been completed (step S508; Yes), the processing proceeds to step S510.

一方、全領域に対する処理が終了していない場合(ステップS508;No)には、処理はステップS509に進む。この場合には、現在の「n」において求められたpn、qn、rnは条件Bを満たしていないが、全領域に対する処理が終了していないため、次の「n」に設定して処理を行う。具体的には、ステップS509では、色変換回路12が、変数nに「1」を加算する処理を行う。そして、処理はステップS504に戻る。即ち、新しい変数nに設定して上記の処理を行う。   On the other hand, when the process for all the areas has not been completed (step S508; No), the process proceeds to step S509. In this case, pn, qn, and rn obtained at the current “n” do not satisfy the condition B, but the processing for all the areas has not been completed. Do. Specifically, in step S509, the color conversion circuit 12 performs a process of adding “1” to the variable n. Then, the process returns to step S504. That is, the above processing is performed by setting a new variable n.

ステップS510では、色変換回路12は、出力値計算処理を行う。具体的には、出力値計算処理では、上記の判定によって選定された複数の色変換値の候補から、1つの色変換値を決定する処理に対応する。詳しくは、保存された複数のpn、qn、rnのうちの1つを決定する処理を行う。この出力値計算処理の詳細は後述する。以上の出力値計算処理が終了すると、処理はステップS511に進む。   In step S510, the color conversion circuit 12 performs an output value calculation process. Specifically, the output value calculation process corresponds to a process of determining one color conversion value from a plurality of color conversion value candidates selected by the above determination. Specifically, a process for determining one of a plurality of stored pn, qn, and rn is performed. Details of this output value calculation processing will be described later. When the above output value calculation process ends, the process proceeds to step S511.

ステップS511では、色変換回路12は、出力値計算処理によって選択されたpn、qn、rnからR2、G2、B2、C2を求めて、これを出力する。この色変換回路12から出力されるR2、G2、B2、C2は、後述するリミッタなどをかけていない値であり、三刺激値X、Y、Zを正確に再現する値である。以上の処理が終了すると、処理は当該フローを抜ける。   In step S511, the color conversion circuit 12 obtains R2, G2, B2, and C2 from pn, qn, and rn selected by the output value calculation process, and outputs them. R2, G2, B2, and C2 output from the color conversion circuit 12 are values that are not subjected to a limiter described later, and are values that accurately reproduce the tristimulus values X, Y, and Z. When the above process ends, the process exits the flow.

次に、出力値計算処理について説明する。出力値計算処理では、前述したステップS504〜S509の処理によって保存された複数のpn、qn、rnに対して(正確にはpn、qn、rnに対応するR2、G2、B2、C2に対して)リミッタをかけ、複数のリミッタをかけられた値(以下、「リミッタ状態値」と呼ぶ。)のうちの1つを決定する。具体的には、複数のリミッタ状態値と元の入力された値との誤差を計算し、この誤差が最小となるリミッタ状態値を決定する。このようにして決定されたリミッタ状態値に基づいて、色変換値であるR2、G2、B2、C2が得られる。なお、「リミッタをかける」とは、「0」未満の値や「1」より大きい値を有しているR2、G2、B2、C2に対して、「0〜1」の範囲に制限をかける処理をいう。また、上記した誤差を比較する際には、標準色空間内における両色に対応する値同士を比較する。   Next, the output value calculation process will be described. In the output value calculation process, for a plurality of pn, qn, and rn stored by the processes of steps S504 to S509 described above (more precisely, for R2, G2, B2, and C2 corresponding to pn, qn, and rn) ) A limiter is applied, and one of a plurality of limiter values (hereinafter referred to as “limiter state value”) is determined. Specifically, an error between a plurality of limiter state values and the original input value is calculated, and a limiter state value that minimizes this error is determined. Based on the limiter state value determined in this manner, color conversion values R2, G2, B2, and C2 are obtained. “Applying a limiter” limits the range of “0 to 1” for R2, G2, B2, and C2 having a value less than “0” or a value greater than “1”. Refers to processing. Further, when comparing the above errors, values corresponding to both colors in the standard color space are compared.

図8は、出力値計算処理を具体的に説明するための図である。図8中の点160は、入力された画像データに対応する三刺激値Xi、Yi、Ziに対応する。この場合、前述したステップS504〜S509の処理によって、「n=0」で示される領域と「n=4」で示される領域に関して、R2、G2、B2、C2を求めて保存しているものとする。ここで、リミッタをかけることによって0〜1の範囲に値を制限すると、色再現領域の境界(即ち、色再現領域の最外郭面)の位置で色変換値が表される。そのため、点160に対応する値は、「n=0」で示される領域と「n=4」で示される領域に関して、それぞれ点161、162に対応する値へ移動する。そして、点160と点161との誤差、及び点160と点162との誤差を計算する。   FIG. 8 is a diagram for specifically explaining the output value calculation processing. A point 160 in FIG. 8 corresponds to the tristimulus values Xi, Yi, and Zi corresponding to the input image data. In this case, R2, G2, B2, and C2 are obtained and stored for the area indicated by “n = 0” and the area indicated by “n = 4” by the processing of steps S504 to S509 described above. To do. Here, when the value is limited to a range of 0 to 1 by applying a limiter, the color conversion value is represented at the position of the boundary of the color reproduction region (that is, the outermost surface of the color reproduction region). Therefore, the value corresponding to the point 160 moves to the values corresponding to the points 161 and 162 with respect to the region indicated by “n = 0” and the region indicated by “n = 4”, respectively. Then, an error between the points 160 and 161 and an error between the points 160 and 162 are calculated.

図9は、上記の出力値計算処理を示すフローチャートである。この処理は、図7に示す色域外計算処理におけるステップS510において、色変換回路12によって実行される。   FIG. 9 is a flowchart showing the output value calculation process. This process is executed by the color conversion circuit 12 in step S510 in the out-of-gamut calculation process shown in FIG.

ステップS601では、色変換回路12は、保存された複数のpn、qn、rnからR2、G2、B2、C2を得て、このR2、G2、B2、C2に対してリミッタをかける。以下では、リミッタをかけた状態にあるR2、G2、B2、C2を「R21、G21、B21、C21」と表記する。ステップS601の処理が終了すると、処理はステップS602に進む。   In step S601, the color conversion circuit 12 obtains R2, G2, B2, and C2 from the plurality of stored pn, qn, and rn, and applies a limiter to the R2, G2, B2, and C2. Hereinafter, R2, G2, B2, and C2 in a state where the limiter is applied are referred to as “R21, G21, B21, and C21”. When the process of step S601 ends, the process proceeds to step S602.

ステップS602では、色変換回路12は、リミッタをかけた状態にあるR21、G21、B21、C21から三刺激値Xk、Yk、Zkを求める。そして、処理はステップS603に進む。   In step S602, the color conversion circuit 12 obtains tristimulus values Xk, Yk, and Zk from R21, G21, B21, and C21 in a state where the limiter is applied. Then, the process proceeds to step S603.

ステップS603では、色変換回路12は、リミッタをかけた状態にある三刺激値Xk、Yk、Zkと、リミッタをかけていない状態にある元の三刺激値Xi、Yi、Ziとの誤差を計算する。例えば、色変換回路12は、色差などに基づいて誤差を計算する。この場合、保存されたpn、qn、rnが複数存在するので、誤差も複数計算される。そして、処理はステップS604に進む。   In step S603, the color conversion circuit 12 calculates an error between the tristimulus values Xk, Yk, Zk in a state where the limiter is applied and the original tristimulus values Xi, Yi, Zi in a state where the limiter is not applied. To do. For example, the color conversion circuit 12 calculates an error based on a color difference or the like. In this case, since there are a plurality of stored pn, qn, and rn, a plurality of errors are also calculated. Then, the process proceeds to step S604.

ステップS604では、色変換回路12は、ステップS603で得られた複数の誤差のうち、最小となる誤差を選択する。そして、色変換回路12は、選択された誤差が得られたR2、G2、B2、C2を出力する。この場合、色変換回路12は、リミッタをかけた状態にあるR21、G21、B21、C21ではなく、リミッタをかけていない状態にあるR2、G2、B2、C2を出力する。以上の処理が終了すると、処理は当該フローを抜ける。このような色変換によれば、複数の領域から候補が見つかり、変換結果を一意に決定することができるため、入力された画像データが色再現領域の外側に位置する場合にも、適切に色変換を行うことが可能となる。   In step S604, the color conversion circuit 12 selects the smallest error among the plurality of errors obtained in step S603. Then, the color conversion circuit 12 outputs R2, G2, B2, and C2 from which the selected error is obtained. In this case, the color conversion circuit 12 outputs R2, G2, B2, and C2 that are not applied with the limiter, instead of R21, G21, B21, and C21 that are applied with the limiter. When the above process ends, the process exits the flow. According to such color conversion, candidates can be found from a plurality of areas, and the conversion result can be uniquely determined. Therefore, even when the input image data is located outside the color reproduction area, the color conversion is appropriately performed. Conversion can be performed.

このような色変換処理によって得られた色変換値は、入力された画像データに対応付けてテーブル格納メモリ15に記憶される。具体的には、画像処理部10は、上記した色変換値が得られる色変換行列をLUTとしてテーブル格納メモリ15に記憶しておき、このLUTに基づいて色変換を行う。   The color conversion value obtained by such color conversion processing is stored in the table storage memory 15 in association with the input image data. Specifically, the image processing unit 10 stores the color conversion matrix from which the color conversion values described above are obtained in the table storage memory 15 as an LUT, and performs color conversion based on the LUT.

[色変換行列作成方法]
次に、本実施形態に係る色変換行列作成方法について説明する。
[Color conversion matrix creation method]
Next, a color conversion matrix creation method according to the present embodiment will be described.

本実施形態では、上記した色変換行列を用いて色変換を行ったときに、階調性の悪さや色相のずれなどの不具合が生じる場合があるため、このような不具合が生じる色変換行列を調整する。具体的には、不具合が生じる色変換行列を調整し、新たな色変換行列を作成する。例えば、色再現領域の外側における緑(G)の色相で、階調性の悪さや色相のずれなどの不具合が発生する可能性が高い。   In this embodiment, when color conversion is performed using the above-described color conversion matrix, problems such as poor gradation and hue shift may occur. adjust. Specifically, the color conversion matrix in which a defect occurs is adjusted to create a new color conversion matrix. For example, in the green (G) hue outside the color reproduction region, there is a high possibility that problems such as poor gradation and hue deviation will occur.

図10を用いて、緑の色相で上記した不具合が生じる理由について説明する。図10は、xy色度図を示す。一点鎖線がAdobeRGBの色再現領域を示し、破線が4色の色再現領域の一例を示す。AdobeRGBを入力として想定する標準色空間(以下、標準色空間として用いるAdobeRGBのことを「ターゲット」とも呼ぶ。)とすると、4色の色再現領域では、ハッチング領域180で示すように、ターゲットの色再現領域の緑の部分をカバーしきれていないことがわかる。つまり、4色の色再現領域では、再現されない色が生じるといえる。このようにターゲットの色再現領域の緑部分をカバーしきれていない場合においては、緑が黄緑に近い色で再現されたり、緑の色相で中間調の階調性が悪くなったりする場合がある。また、色再現領域を広げるために緑の色を黄緑の色相で設定する場合にも、同様の不具合が発生し得る。   The reason why the above-described problem occurs in the green hue will be described with reference to FIG. FIG. 10 shows an xy chromaticity diagram. An alternate long and short dash line indicates an AdobeRGB color reproduction region, and a broken line indicates an example of four color reproduction regions. Assuming that the standard color space assuming AdobeRGB as an input (hereinafter, AdobeRGB used as the standard color space is also referred to as “target”), in the four-color reproduction region, as shown by the hatching region 180, the target color is shown. It can be seen that the green part of the reproduction area is not completely covered. That is, it can be said that an unreproduced color occurs in the four color reproduction regions. In this way, when the green part of the target color reproduction area is not covered, green may be reproduced with a color close to yellowish green, or the gradation of the halftone may deteriorate due to the green hue. is there. The same problem may occur when the green color is set with a yellowish green hue in order to widen the color reproduction region.

図11は、Lab空間でAdobeRGBの色再現領域と4色の色再現領域の一例とを示した図である。縦軸にL(明度)を示し、横軸にそれぞれaとbの値を示しており、中心から外側に向かうほど彩度が高くなる。符号192、193で示す領域は、それぞれ4色の色再現領域とAdobeRGBの色再現領域とをab平面上に投影した領域を示す。矢印190で示すように、4色の色再現領域はターゲット(AdobeRGB)の緑の色相付近の領域を包含していないことがわかる。更に、4色の色再現領域においては、矢印191で示すように、緑の色相部分に関してシアンの色が明度の低い部分で高彩度であるため、その形が相似形とならないことがわかる。そのため、4色の色再現領域外の入力値を制限した場合には、ターゲットと相似形に色が再現されない可能性が高い。具体的には、ターゲットの色の緑の明度が高く彩度も高いので、高彩度の緑は、色の緑に近い色に変換される。一方、中間調の緑は、明度の低い場所で彩度の高くなっている色のシアンに近い色に変換される。   FIG. 11 is a diagram showing an example of an AdobeRGB color reproduction region and an example of four color reproduction regions in the Lab space. The vertical axis indicates L (brightness), and the horizontal axis indicates the values of a and b. The saturation increases from the center toward the outside. The areas denoted by reference numerals 192 and 193 are areas obtained by projecting the four color reproduction areas and the AdobeRGB color reproduction area on the ab plane. As indicated by the arrow 190, it can be seen that the four color reproduction regions do not include the region near the green hue of the target (AdobeRGB). Further, in the color reproduction region of four colors, as indicated by an arrow 191, it can be seen that the cyan color has a high saturation at the low lightness portion with respect to the green hue portion, and thus the shape does not become similar. For this reason, when input values outside the four color reproduction regions are limited, there is a high possibility that colors will not be reproduced in a similar shape to the target. Specifically, since the brightness of the target color green is high and the saturation is high, the high saturation green is converted to a color close to the green color. On the other hand, halftone green is converted to a color close to cyan, which is highly saturated in places with low lightness.

このように、色変換の実行により、色相や明度が極端に変わることや階調性が悪くなる可能性がある。つまり、このような状況において領域毎に固定された色変換行列を用いて色変換を行うと、色相が変わったり、階調性が悪くなったりするなどの不具合が生じ得る。したがって、本実施形態では、上記のような不具合が生じる色変換行列を調整し、新たな色変換行列を作成する。   As described above, there is a possibility that the hue and brightness may change drastically and the gradation may deteriorate due to the execution of color conversion. That is, in such a situation, if color conversion is performed using a color conversion matrix fixed for each region, problems such as a change in hue and a deterioration in gradation may occur. Therefore, in the present embodiment, a color conversion matrix that causes the above-described problems is adjusted to create a new color conversion matrix.

なお、上記した高彩度の緑は、例えば、AdobeRGBの緑における最も高彩度(高階調)の緑であり、中間調の緑は、例えば、AdobeRGBの緑における中間彩度(中間階調)の緑である。   Note that the high saturation green is, for example, the highest saturation (high gradation) green in the AdobeRGB green, and the halftone green is, for example, the intermediate saturation (intermediate gradation) green in the AdobeRGB green. .

(色変換行列作成装置)
図12は、色変換行列を作成する処理を行う色変換行列作成装置50の概略構成を示した図である。色変換行列作成装置50は、CPU51と、メモリ52と、ROM53と、を備える。
(Color conversion matrix creation device)
FIG. 12 is a diagram showing a schematic configuration of a color conversion matrix creation device 50 that performs processing for creating a color conversion matrix. The color conversion matrix creation device 50 includes a CPU 51, a memory 52, and a ROM 53.

色変換行列作成装置50には、色変換前の画像データがデータd51として入力される。CPU51は、前述した色変換処理(図5、図7、及び図9に示した処理)を実行することによって、入力された画像データの色変換値を求める。具体的には、入力された画像データが色再現領域の外側に位置する場合、入力された画像データとその色変換値との誤差が最小になるような色変換行列を求める。そして、CPU51は、求められた色変換行列を用いてLUTを作成する。   The color conversion matrix creation device 50 receives image data before color conversion as data d51. The CPU 51 obtains the color conversion value of the input image data by executing the above-described color conversion processing (the processing shown in FIGS. 5, 7, and 9). Specifically, when the input image data is located outside the color reproduction area, a color conversion matrix is obtained such that an error between the input image data and its color conversion value is minimized. Then, the CPU 51 creates an LUT using the obtained color conversion matrix.

更に、CPU51は、このようにして作成した色変換行列による色変換によって上記したような不具合が生じた場合(即ち、色相が変わってしまったり、階調性が悪くなってしまった場合)、不具合が生じた色を調整するために、新たな色変換行列を作成する。具体的には、まず、CPU51は、誤差が最小になる色変換行列(LUT内の色変換行列)を選定すると共に、他の色変換行列も選定する。詳しくは、CPU51は、誤差が最小となるような色変換を行う色変換行列(以下、「第1の色変換行列」とも呼ぶ。)と、入力された画像データと少なくとも色相が同じ色変換値が得られるような変換を行う色変換行列(以下、「第2の色変換行列」とも呼ぶ。)を選定する。   Further, when the above-described problem occurs due to the color conversion using the color conversion matrix created in this way (that is, when the hue changes or the gradation is deteriorated), the CPU 51 has a problem. A new color conversion matrix is created to adjust the color in which the error occurs. Specifically, the CPU 51 first selects a color conversion matrix (color conversion matrix in the LUT) that minimizes the error, and also selects another color conversion matrix. Specifically, the CPU 51 performs a color conversion matrix (hereinafter, also referred to as “first color conversion matrix”) that performs color conversion that minimizes an error, and a color conversion value that has at least the same hue as the input image data. A color conversion matrix (hereinafter, also referred to as “second color conversion matrix”) that performs conversion so as to obtain the above is selected.

そして、CPU51は、選定された色変換行列を組み合わせることによって、新たな色変換行列を作成する。具体的には、CPU51は、色変換に不具合が生じた色が、理想の色変換値に変換されるように重み付けを行う。そして、CPU51は、新たに作成された色変換行列を用いて、新たなLUTを作成する。CPU51は、このように作成されたLUTをデータd52として出力する。このようにして出力された色変換行列は前述した画像処理部10内のテーブル格納メモリ15に記憶され、色変換回路12が、記憶された色変換行列に基づいて色変換を行う。   Then, the CPU 51 creates a new color conversion matrix by combining the selected color conversion matrices. Specifically, the CPU 51 performs weighting so that a color having a problem in color conversion is converted into an ideal color conversion value. Then, the CPU 51 creates a new LUT using the newly created color conversion matrix. The CPU 51 outputs the LUT created in this way as data d52. The color conversion matrix output in this way is stored in the table storage memory 15 in the image processing unit 10 described above, and the color conversion circuit 12 performs color conversion based on the stored color conversion matrix.

ROM53には色変換行列選定プログラム及び色変換行列作成プログラムが記憶されており、CPU51は、ROM53に記憶されたこれらのプログラムを読み出して実行する。これにより、色変換行列作成装置50は、色変換行列選定手段50a及び色変換行列作成手段50bとして機能する。   The ROM 53 stores a color conversion matrix selection program and a color conversion matrix creation program, and the CPU 51 reads and executes these programs stored in the ROM 53. Thereby, the color conversion matrix creation device 50 functions as the color conversion matrix selection means 50a and the color conversion matrix creation means 50b.

なお、色変換行列作成装置50内に記憶された色変換行列選定プログラム及び色変換行列作成プログラムを実行することによって色変換行列を作成することに限定はされない。他の例では、コンピュータが、記録媒体(光ディスクなど)に記録された色変換行列選定プログラム及び色変換行列作成プログラムを読み出すことによって、色変換行列選定手段及び色変換行列作成手段として機能して、色変換行列を作成することができる。   Note that the present invention is not limited to creating a color conversion matrix by executing a color conversion matrix selection program and a color conversion matrix creation program stored in the color conversion matrix creation device 50. In another example, the computer functions as a color conversion matrix selection unit and a color conversion matrix generation unit by reading a color conversion matrix selection program and a color conversion matrix generation program recorded on a recording medium (such as an optical disk), A color conversion matrix can be created.

(色変換行列作成処理)
図13は、上記した色変換行列作成装置50が行う色変換行列作成処理を示すフローチャートである。
(Color conversion matrix creation process)
FIG. 13 is a flowchart showing color conversion matrix creation processing performed by the color conversion matrix creation device 50 described above.

まず、ステップS701では、色変換行列作成装置50は、前述した色変換処理(図5、図7、及び図9に示した処理)を実行することによって、入力された画像データに対して用いる色変換行列を求め、求められた色変換行列を用いてLUTを作成する。色変換行列作成装置50は、入力された画像データが色再現領域の外側に位置する場合、入力された画像データとその色変換値との誤差が最小になるような色変換行列を求める。そして、処理はステップS702に進む。   First, in step S701, the color conversion matrix creation device 50 executes the color conversion processing described above (the processing shown in FIGS. 5, 7, and 9), thereby using the color used for the input image data. A conversion matrix is obtained, and an LUT is created using the obtained color conversion matrix. When the input image data is located outside the color reproduction area, the color conversion matrix creation device 50 obtains a color conversion matrix that minimizes an error between the input image data and its color conversion value. Then, the process proceeds to step S702.

ステップS702では、色変換行列作成装置50は、調整が必要な色が使用している色変換行列を選定すると共に、この色の周辺の色変換行列も選定する。色変換行列作成装置50は、まず、色変換によって色相が変わってしまったり、階調性が悪くなってしまった色に用いている色変換行列を選定する。ここで選定された色変換行列は、誤差が最小になる色変換行列であり、第1の色変換行列に対応する。次に、色変換行列作成装置50は、入力された画像データと少なくとも色相が同じ色変換値が得られるような変換を行う第2の色変換行列を選定する。以上の処理が終了すると、処理はステップS703に進む。   In step S702, the color conversion matrix creation device 50 selects a color conversion matrix used by a color that needs to be adjusted, and also selects a color conversion matrix around this color. First, the color conversion matrix creation device 50 selects a color conversion matrix used for a color whose hue has changed due to color conversion or whose gradation has deteriorated. The color conversion matrix selected here is a color conversion matrix that minimizes the error, and corresponds to the first color conversion matrix. Next, the color conversion matrix creation device 50 selects a second color conversion matrix that performs conversion such that a color conversion value having at least the same hue as the input image data is obtained. When the above process ends, the process proceeds to step S703.

ステップS703では、色変換行列作成装置50は、選定された色変換行列を組み合わせることによって色変換行列を作成する。この場合、色変換行列作成装置50は、色変換に不具合が生じた色が理想の色変換値に変換されるように、第1の色変換行列と第2の色変換行列とを重み付けして色変換行列を作成する。以上の処理が終了すると、処理はステップS704に進む。   In step S703, the color conversion matrix creation device 50 creates a color conversion matrix by combining the selected color conversion matrices. In this case, the color conversion matrix creation device 50 weights the first color conversion matrix and the second color conversion matrix so that the color that has failed in the color conversion is converted into an ideal color conversion value. Create a color transformation matrix. When the above process ends, the process proceeds to step S704.

ステップS704では、色変換行列作成装置50は、ステップS703で新たに作成された色変換行列を用いて、新たなLUTを作成する。そして処理は当該フローを抜ける。   In step S704, the color conversion matrix creation device 50 creates a new LUT using the color conversion matrix newly created in step S703. Then, the process exits the flow.

図14は、高彩度の緑及び中間調の緑に対して、第1の色変換行列と第2の色変換行列を用いて色変換した場合の状況を具体的に説明するための図である。   FIG. 14 is a diagram for specifically explaining the situation when color conversion is performed on the high-saturation green and the halftone green using the first color conversion matrix and the second color conversion matrix.

符号201aで示す点(黒丸)は、AdobeRGBの高彩度の緑の入力値を示している。このような入力に対して、誤差が最小となる第1の色変換行列を用いて色変換を行った場合、符号201bで示す色変換値(ハッチングされた丸)が得られる。この場合、誤差が最小となる色変換行列に対応する領域は、前述した図3に示す領域M5(G=C)である。一方、符号202aで示す点(黒丸)は、AdobeRGBの中間調の緑の入力値を示している。このような入力に対して、誤差が最小となる第1の色変換行列を用いて色変換を行った場合、符号202bで示す色変換値(ハッチングされた丸)が得られる。この場合、誤差が最小となる色変換行列に対応する領域は、前述した図3に示す領域M2(R=0)である。このように、高彩度の緑及び中間調の緑は、第1の色変換行列を用いて色変換を行うと、入力の色相とは異なる色相で再現されることがわかる。また、階調性に関しても、本来ならば色相は変化せずに彩度と明度が上昇するような色再現が行なわれるべきだが、高彩度の緑と中間調の緑で色相が変わり彩度の差もそれほどないため、階調性が悪くなるといえる。   A dot (black circle) indicated by reference numeral 201a indicates a high-saturated green input value of AdobeRGB. When color conversion is performed on such an input using the first color conversion matrix that minimizes the error, a color conversion value (hatched circle) indicated by reference numeral 201b is obtained. In this case, the region corresponding to the color conversion matrix having the smallest error is the region M5 (G = C) shown in FIG. On the other hand, a dot (black circle) indicated by reference numeral 202a indicates a halftone green input value of AdobeRGB. When color conversion is performed on such input using the first color conversion matrix that minimizes the error, a color conversion value (hatched circle) indicated by reference numeral 202b is obtained. In this case, the region corresponding to the color conversion matrix having the smallest error is the region M2 (R = 0) shown in FIG. Thus, it can be seen that high-saturation green and halftone green are reproduced with a hue different from the input hue when color conversion is performed using the first color conversion matrix. Also, with regard to gradation, it should be reproduced so that the saturation and brightness increase without changing the hue, but the hue changes between high-saturation green and half-tone green and the difference in saturation. Therefore, it can be said that the gradation becomes worse.

ここで、色相が同じになるような第2の色変換行列を用いて色変換を行う、言い換えると、色変換行列に対応する領域を変更する。具体的には、高彩度の緑に対して、領域M5から領域M2に変更して色変換を行うと、符号201cで示す色変換値(白丸)が得られる。これにより、高彩度の緑は、色変換によって明度が著しく落ちることがわかる。一方、中間調の緑に対して、領域M2から領域M5に変更して色変換を行うと、符号202cで示す色変換値(白丸)が得られる。これにより、中間調の緑は、AdobeRGBの緑の色相と異なる色相で再現されていることがわかる。以上より、領域ごとに使用している色変換行列のみを用いた色変換によっては、違和感のない色を再現することができないといえる。   Here, the color conversion is performed using the second color conversion matrix having the same hue, in other words, the region corresponding to the color conversion matrix is changed. Specifically, when color conversion is performed by changing the region M5 to the region M2 for green with high saturation, a color conversion value (white circle) indicated by reference numeral 201c is obtained. As a result, it can be seen that the lightness of the high-saturation green is significantly reduced by color conversion. On the other hand, when color conversion is performed on the halftone green by changing from the region M2 to the region M5, a color conversion value (white circle) indicated by reference numeral 202c is obtained. Accordingly, it can be seen that halftone green is reproduced with a hue different from the green hue of AdobeRGB. From the above, it can be said that a color without a sense of incongruity cannot be reproduced by color conversion using only the color conversion matrix used for each region.

したがって、本実施形態では、領域ごとに使用している色変換行列を重み付けて組み合わせることによって色変換行列を作成する。この場合、重み付けの度合いによって階調性・色相・色再現領域の大きさなどが変化するので、これらを考慮して重み付けを行って色変換行列を作成する。例えば、色変換行列作成装置50は、高彩度の緑に対しては、緑の色度に依存して再現されて黄緑になっているため、色変換値が黄緑の色相から緑の色相に少し変化するような色変換行列を作成することができる。具体的には、領域M2に対応する色変換行列と、中間調の緑で使用した色変換行列(領域M5に対応する色変換行列)との重み付けによって、色変換行列は作成される。この場合、色変換行列作成装置50は、領域M2に対応する色変換行列の重みよりも、領域M5に対応する色変換行列の重みを大きくして、色変換行列を作成することができる。一方、中間調の緑に対しては、色変換行列作成装置50は、領域M5に対応する色変換行列と、高彩度の緑で使用していた変換行列(領域M2に対応する色変換行列)との重み付けによって、色変換行列を作成する。この場合には、色変換行列作成装置50は、領域M5に対応する色変換行列の重みを、領域M2に対応する色変換行列の重みよりも大きくして、色変換行列を作成することができる。   Therefore, in this embodiment, the color conversion matrix is created by weighting and combining the color conversion matrices used for each region. In this case, since gradation, hue, size of color reproduction region, and the like vary depending on the degree of weighting, weight conversion is performed in consideration of these, and a color conversion matrix is created. For example, the color conversion matrix creation device 50 reproduces yellowish green depending on the chromaticity of green for high saturation green, so that the color conversion value is changed from a yellowish green hue to a green hue. A color conversion matrix that changes slightly can be created. Specifically, the color conversion matrix is created by weighting the color conversion matrix corresponding to the area M2 and the color conversion matrix used for the halftone green (color conversion matrix corresponding to the area M5). In this case, the color conversion matrix creation device 50 can create a color conversion matrix by making the weight of the color conversion matrix corresponding to the region M5 larger than the weight of the color conversion matrix corresponding to the region M2. On the other hand, for halftone green, the color conversion matrix creation device 50 uses a color conversion matrix corresponding to the region M5 and a conversion matrix (color conversion matrix corresponding to the region M2) used in green with high saturation. A color conversion matrix is created by weighting. In this case, the color conversion matrix creation device 50 can create the color conversion matrix by making the weight of the color conversion matrix corresponding to the region M5 larger than the weight of the color conversion matrix corresponding to the region M2. .

[実施例]
以下で、本発明に係る実施例について具体的に説明する。
[Example]
Examples according to the present invention will be specifically described below.

(測色)
本実施例に係る表示パネル23が用いる4つの色RGBCのXYZ値を測定すると、以下のようになる。なお、白(W)は、RGBの色度を加算した値となる。
(Colorimetry)
Measurement of the XYZ values of the four colors RGBC used by the display panel 23 according to the present embodiment is as follows. White (W) is a value obtained by adding the chromaticities of RGB.

赤(R)=(0.3750,0.1925,0.0122)
緑(G)=(0.3112,0.5472,0.0183)
青(B)=(0.1736,0.0793,0.9616)
シアン(C)=(0.0424,0.1810,0.0561)
白(W)=(0.9021,1.0000,1.0482)
ここで、全点灯時(白)の輝度(Y)を「100」として正規化した値が三刺激値となる。この三刺激値から変換行列を作成する。式(5)は、RGBCが入力された時に三刺激値への変換を行う変換行列である。
Red (R) = (0.3750,0.1925,0.0122)
Green (G) = (0.3112,0.5472,0.0183)
Blue (B) = (0.1736, 0.0793, 0.9616)
Cyan (C) = (0.0424,0.1810,0.0561)
White (W) = (0.9021,1.0000,1.0482)
Here, a value obtained by normalizing the luminance (Y) when fully lit (white) as “100” is the tristimulus value. A transformation matrix is created from these tristimulus values. Expression (5) is a conversion matrix that performs conversion to tristimulus values when RGBC is input.

Figure 2007235664
(色度)
以下の数式(5−1)、式(5−2)によって、色度であるxとyを計算する。
Figure 2007235664
(Chromaticity)
The chromaticity x and y are calculated by the following formulas (5-1) and (5-2).

x=X/(X+Y+Z) 式(5−1)
y=Y/(X+Y+Z) 式(5−2)
これにより、RGBCの色度は、以下のようになる。
x = X / (X + Y + Z) Formula (5-1)
y = Y / (X + Y + Z) Formula (5-2)
Thereby, the chromaticity of RGBC is as follows.

赤(R)=(0.647,0.332)
緑(G)=(0.355,0.624)
青(B)=(0.143,0.065)
シアン(C)=(0.152,0.645)
白(W)=(0.306,0.339)
図15は、本実施例に係る表示パネル23の色度をプロットしたxy色度図である。黒で塗りつぶされた四角形はRGBCの色度を示し、白抜きの四角形が白(W)の色度を示す。RGBCの色度を示す点を結ぶことによって得られる、一点鎖線で表された四角形210は、xy色度図で見たときの色再現領域を示す。破線で表された三角形211はAdobeRGBを示し、実線で表された三角形212がsRGBの色再現領域を示す。
Red (R) = (0.647, 0.332)
Green (G) = (0.355,0.624)
Blue (B) = (0.143,0.065)
Cyan (C) = (0.152,0.645)
White (W) = (0.306, 0.339)
FIG. 15 is an xy chromaticity diagram in which the chromaticity of the display panel 23 according to this embodiment is plotted. A square filled with black indicates RGBC chromaticity, and a white square indicates white (W) chromaticity. A quadrangle 210 represented by an alternate long and short dash line obtained by connecting points indicating RGBC chromaticity represents a color reproduction region when viewed in an xy chromaticity diagram. A triangle 211 represented by a broken line represents AdobeRGB, and a triangle 212 represented by a solid line represents an sRGB color reproduction region.

(領域分け)
次に、XYZ空間上に色の三刺激値XYZを用いて、本実施例に係る表示パネル23の色再現領域を表現する。黒(正規化しているため「X=Y=Z=0」となる)から各色の三刺激値XYZまでを、各色ベクトルとする。黒から白の三刺激値XYZまで、各色のベクトルを組み合わせて色再現領域が最大の体積となるように色再現領域を構成する。これにより、前述した図2に示した色再現領域が得られる。
(Division)
Next, the color reproduction region of the display panel 23 according to the present embodiment is expressed using the color tristimulus values XYZ in the XYZ space. The color vectors from black (because of normalization, “X = Y = Z = 0”) to tristimulus values XYZ for each color are used as each color vector. The color reproduction area is configured so that the color reproduction area has the maximum volume by combining vectors of each color from black to white tristimulus values XYZ. Thereby, the color reproduction region shown in FIG. 2 is obtained.

色再現領域は、4色であるため、4つのベクトル(4つの要素)で表現される。入力のXYZ値をRGBCの値で表そうとすると複数の組み合わせができるが、XYZを1つの組み合わせに決定するためにRGBCを3つの要素にする。この場合、色再現領域を複数の領域に分ける。領域分けは、4つの要素のうち1つが「0」、又は4つの要素のうち2つが同じ値になるように行う。このように領域分けを行うと、3つの要素で構成される8つの領域が得られる。具体的には、前述した図3に示した領域M0〜M7が得られる。   Since the color reproduction area has four colors, it is expressed by four vectors (four elements). If an input XYZ value is expressed as an RGBC value, a plurality of combinations can be made. In order to determine XYZ as one combination, RGBC is made up of three elements. In this case, the color reproduction area is divided into a plurality of areas. The area division is performed so that one of the four elements is “0” or two of the four elements have the same value. By dividing the area in this way, eight areas composed of three elements are obtained. Specifically, the above-described regions M0 to M7 shown in FIG. 3 are obtained.

(色変換行列)
次に、各領域に対して用いる色変換行列を設定する。基本的には、式(5)の変換行列を用いて領域毎にRGBCに対応するXYZの点をいくつか計算することによって、XYZからRGBCへの色変換行列を近似値で求めることができる。式(6)は、求める色変換行列Mを示している。
(Color conversion matrix)
Next, a color conversion matrix used for each region is set. Basically, by calculating several XYZ points corresponding to RGBC for each region using the conversion matrix of Expression (5), the color conversion matrix from XYZ to RGBC can be obtained as an approximate value. Expression (6) shows the color conversion matrix M to be obtained.

Figure 2007235664
まず、「C=0」の領域M0(図3(a)参照)に対して設定する色変換行列を求める。ここで、領域M0の頂点を入力値として使用して、RGBCの値からXYZへの出力値を計算する。具体的には、使用する頂点は、原点(0 0 0 0)、Rのベクトルの大きさが1となる点(1 0 0 0)、RとGのベクトルが大きさ1で足し合わされている点(1 1 0 0)、及びRとBのベクトルが大きさ1で足しあわされている点(1 0 1 0)の4点である。これらを式(5)に代入すると、以下の式(7)〜式(10)が得られる。
Figure 2007235664
First, a color conversion matrix to be set for the region M0 (see FIG. 3A) of “C = 0” is obtained. Here, the output value from the RGBC value to XYZ is calculated using the vertex of the region M0 as the input value. Specifically, the vertex used is the origin (0 0 0 0), the point where the magnitude of the R vector is 1 (1 0 0 0), and the R and G vectors are added together with the magnitude 1. There are four points: a point (1 1 0 0) and a point (1 0 1 0) in which the vectors of R and B are added by a magnitude of 1. By substituting these into equation (5), the following equations (7) to (10) are obtained.

Figure 2007235664
Figure 2007235664

Figure 2007235664
Figure 2007235664

Figure 2007235664
Figure 2007235664

Figure 2007235664
領域M0に対して用いる色変換行列をMとすると、式(6)の変換式は、数式(11)のように表現される。
Figure 2007235664
When the color conversion matrix used for the area M0 and M 0, the conversion formula of the formula (6) is expressed as Equation (11).

Figure 2007235664
式(7)〜式(10)に示したRGBCの入力を1つの行列にまとめた行列をMRGBC0とすると、式(12)が得られる。そして、これに対応する出力XYZをMXYZ0とすると、式(13)が得られる。
Figure 2007235664
When a matrix in which RGBC inputs shown in Expression (7) to Expression (10) are combined into one matrix is M RGBC0 , Expression (12) is obtained. Then, assuming that the output XYZ corresponding to this is MXYZ0 , Expression (13) is obtained.

Figure 2007235664
Figure 2007235664

Figure 2007235664
このとき、MとMRGBCとMXYZ0は、以下の式(14)で示す関係を満たす。
Figure 2007235664
In this case, M 0 and M RGBC and M XYZ0 satisfy the relationship expressed by the following equation (14).

Figure 2007235664
この式(14)に式(12)及び式(13)を代入すると、式(15)で示す色変換行列Mが得られる。
Figure 2007235664
By substituting Equation (12) and Equation (13) into Equation (14), a color conversion matrix M 0 represented by Equation (15) is obtained.

Figure 2007235664
次に、同様の手順により、領域M1〜M7に対して設定する色変換行列M〜Mを求める。
Figure 2007235664
Next, color conversion matrices M 1 to M 7 to be set for the regions M1 to M7 are obtained by the same procedure.

領域M1においては、入力として用いる行列をMRGBC1は式(16)で表され、これを用いることによって式(17)で示す色変換行列Mが得られる。 In the region M1, M RGBC1 the matrix used as an input is represented by the formula (16), color conversion matrix M 1 represented by the formula (17) are obtained by using this.

Figure 2007235664
Figure 2007235664

Figure 2007235664
領域M2においては、入力として用いる行列をMRGBC2は式(18)で表され、これを用いることによって式(19)で示す色変換行列Mが得られる。
Figure 2007235664
In the region M2, M RGBC2 the matrix used as an input is represented by the formula (18), color conversion matrix M 2 represented by the formula (19) are obtained by using this.

Figure 2007235664
Figure 2007235664

Figure 2007235664
領域M3においては、入力として用いる行列をMRGBC3は式(20)で表され、これを用いることによって式(21)で示す色変換行列Mが得られる。
Figure 2007235664
In the region M3, M RGBC3 the matrix used as an input is represented by the formula (20), a color conversion matrix M 3 according to formula (21) obtained by using this.

Figure 2007235664
Figure 2007235664

Figure 2007235664
領域M4においては、入力として用いる行列をMRGBC4は式(22)で表され、これを用いることによって式(23)で示す色変換行列Mが得られる。
Figure 2007235664
In the region M4, M RGBC4 the matrix used as an input is represented by the formula (22), color conversion matrix M 4 shown in equation (23) are obtained by using this.

Figure 2007235664
Figure 2007235664

Figure 2007235664
領域M5においては、入力として用いる行列をMRGBC5は式(24)で表され、これを用いることによって式(25)で示す色変換行列Mが得られる。
Figure 2007235664
In the region M5, M RGBC5 the matrix used as an input is represented by the formula (24), a color conversion matrix M 5 represented by the formula (25) by using this obtained.

Figure 2007235664
Figure 2007235664

Figure 2007235664
領域M6においては、入力として用いる行列をMRGBC6は式(26)で表され、これを用いることによって式(27)で示す色変換行列Mが得られる。
Figure 2007235664
In the region M6, M RGBC6 the matrix used as an input is represented by the formula (26), color conversion matrix M 6 represented by the formula (27) are obtained by using this.

Figure 2007235664
Figure 2007235664

Figure 2007235664
領域M7においては、入力として用いる行列をMRGBC7は式(28)で表され、これを用いることによって式(29)で示す色変換行列Mが得られる。
Figure 2007235664
In the region M7, M RGBC7 the matrix used as an input is represented by the formula (28), color conversion matrix M 7 according to formula (29) are obtained by using this.

Figure 2007235664
Figure 2007235664

Figure 2007235664
(色変換)
色変換は、入力値が領域分けした複数の領域M0〜M7の中のどの領域に存在しているかによって、それぞれ対応する色変換行列を選択することによって行う。ここで、色再現領域の外側に入力値がある場合には、領域の選択条件は「どの領域に存在しているか」ではなく「どの領域での誤差が少ないか」となる。即ち、入力値と色変換値との誤差が一番小さい色変換行列を選択する。色変換は前述した色変換行列M〜Mを使用し、RGBCの値(大きさ1のベクトルでの計算値)はデータの範囲外(範囲:0〜1)でもそのまま保持する。ただし、データ範囲外の値は表示パネル23では再現できないため、値の切り捨てを行うことによって再現する。
Figure 2007235664
(Color conversion)
The color conversion is performed by selecting a corresponding color conversion matrix depending on which region among the plurality of regions M0 to M7 into which the input value is divided. Here, when there is an input value outside the color reproduction region, the region selection condition is not “in which region exists” but “in which region the error is small”. That is, the color conversion matrix having the smallest error between the input value and the color conversion value is selected. The color conversion uses the above-described color conversion matrices M 0 to M 7 , and RGBC values (calculated values with a vector of size 1) are held as they are even outside the data range (range: 0 to 1). However, since values outside the data range cannot be reproduced on the display panel 23, they are reproduced by truncating the values.

(調整)
色再現領域の外側に入力値がある場合には、上記した方法で作成された色変換行列によって色変換を行うと、入力値と色変換値との色相が異なって再現されたり、階調性が悪くなるなどの色の違和感が生じる可能性がある。したがって、本実施例では、このような違和感の発生が抑制されるように、新たな色変換行列を作成することによって色変換の調整を行う。
(Adjustment)
If there is an input value outside the color reproduction area, if the color conversion is performed using the color conversion matrix created by the above method, the hue of the input value and the color conversion value will be reproduced differently, There is a possibility that a sense of incongruity of colors such as worsening may occur. Therefore, in this embodiment, the color conversion is adjusted by creating a new color conversion matrix so that the occurrence of such a sense of incongruity is suppressed.

基本的には、色再現領域の外側に位置する入力値に対しては、領域M0〜M7毎の色変換行列M〜M(第1の色変換行列)が選定されるが、本実施例では、第1の色変換行列の他に、第2の色変換行列も選定する。第1の色変換行列は、入力値と色変換値との誤差が最小となるような変換を行う色変換行列であり、第2の色変換行列は、入力値が少なくとも色相が同じになる色変換値が得られるような色変換行列である。 Basically, for input values located outside the color reproduction area, color conversion matrices M 0 to M 7 (first color conversion matrix) for each of the areas M0 to M7 are selected. In the example, in addition to the first color conversion matrix, a second color conversion matrix is also selected. The first color conversion matrix is a color conversion matrix that performs conversion so that the error between the input value and the color conversion value is minimized, and the second color conversion matrix is a color that has at least the same hue as the input value. It is a color conversion matrix from which conversion values can be obtained.

このように色変換行列が選定された後、色変換に不具合が生じた色が理想の色変換値に変換されるように、第1の色変換行列と第2の色変換行列とを重み付けることによって、新たな色変換行列を作成する。この場合、重みは、それぞれの行列に対して係数として乗算する。なお、この重み付けの割合を調整することで各色に適した色変換行列を作成することができる。   After the color conversion matrix is selected in this way, the first color conversion matrix and the second color conversion matrix are weighted so that the color having a problem in color conversion is converted into an ideal color conversion value. Thus, a new color conversion matrix is created. In this case, the weight is multiplied as a coefficient for each matrix. A color conversion matrix suitable for each color can be created by adjusting the weighting ratio.

一例として、色変換行列Mと色変換行列Mとを重み付けする場合を考える。ここで、色変換行列Mに対して用いる重み付け係数を「ω2」とし、色変換行列Mに対して用いる重み付け係数を「ω5」とすると、重み付けの度合いは「M:M=ω2:ω5」と表現することができる。 As an example, consider a case where weighting the color conversion matrix M 2 and the color conversion matrix M 5. Here, the weighting coefficients used for the color conversion matrix M 2 is ".omega.2", when the weighting coefficients used for the color conversion matrix M 5 and "ω5", the degree of weighting "M 2: M 5 = ω2 : Ω5 ”.

色変換行列Mと色変換行列Mとを重み付けした後の色変換行列M25は、以下のようにして求めることができる。 The color conversion matrix M 25 after weighting the color conversion matrix M 2 and the color conversion matrix M 5 can be obtained as follows.

入力として用いる行列をMRGBC25とし、これに対応する出力XYZをMXYZ25とすると、式(30)が得られる。なお、式(30)中のMRGBC2、RGBC5は式(18)及び式(24)で示した通りである。 When the matrix used as input is M RGBC25 and the corresponding output XYZ is MXYZ25 , Expression (30) is obtained. Note that M RGBC2 and M RGBC5 in Expression (30) are as shown in Expression (18) and Expression (24).

Figure 2007235664
ここで、上記したMXYZ25とMRGBC25を前述した式(14)に代入することによって、重み付け後の色変換行列M25は、式(31)で示すように表現される。
Figure 2007235664
Here, by substituting the equation (14) described above and M XYZ25 and M RGBC25 described above, color conversion matrix M 25 after weighting is expressed as shown in equation (31).

Figure 2007235664
(1)高彩度の緑の場合
以下では、高彩度の緑を調整する場合を説明する。
Figure 2007235664
(1) Case of High Saturation Green Hereinafter, a case of adjusting high saturation green will be described.

前述したように、高彩度の緑は、異なる色相に変換され、黒から緑への階調性が悪くなる傾向にある。したがって、このような不具合の発生を防止するために、新たな色変換行列を作成することによって、色変換の調整を行う。具体的には、誤差が最小になるような色変換を行う第1の色変換行列と、色相が同一になるような色変換を行う第2の色変換行列とを選定し、選定された色変換行列を組み合わせる。この場合、第1の色変換行列として領域M5に対応する色変換行列Mを選定し、第2の色変換行列として領域M2に対応する色変換行列Mを選定する。なお、第2の色変換行列として選定された色変換行列Mは、中間階調の緑を色変換する場合に、第1の色変換行列として選定される色変換行列である。 As described above, high-saturation green is converted to a different hue, and the gradation from black to green tends to deteriorate. Therefore, in order to prevent the occurrence of such a problem, the color conversion is adjusted by creating a new color conversion matrix. Specifically, a first color conversion matrix that performs color conversion so as to minimize the error and a second color conversion matrix that performs color conversion so that the hue is the same are selected, and the selected color is selected. Combine transformation matrices. In this case, the color conversion matrix M 5 corresponding to the region M5 as the first color conversion matrix selected, selects a color conversion matrix M 2 corresponding to the region M2 as the second color conversion matrix. The color conversion matrix M 2, which was selected as the second color conversion matrix in the case of color conversion green halftone a color conversion matrix is selected as the first color conversion matrix.

ここで、高彩度の緑の一例として、三刺激値(X,Y,Z)が(0.1856,0.6274,0.0707)である入力値を考える。これをLに値を変換する。(Xn,Yn,Zn)=(0.9505,1.0000,1.0891)とすると、「X/X」、「Y/Y」、及び「Z/Z」が全て「0.008856」よりも大きい場合、以下の式(32)によって、Lが得られる。 Here, as an example of high saturation green, an input value having tristimulus values (X, Y, Z) of (0.1856, 0.6274, 0.0707) is considered. The value is converted into L * a * b * . If (Xn, Yn, Zn) = (0.9505,1.0000,1.0891), then when “X / X n ”, “Y / Y n ”, and “Z / Z n ” are all greater than “0.008856”, L * a * b * is obtained by the equation (32).

Figure 2007235664
上記した入力値を式(32)に代入することにより、(L,a,b)=(83.30,-137.97,90.84)が得られる。
Figure 2007235664
By substituting the above input value into the equation (32), (L * , a * , b * ) = (83.30, −137.97, 90.84) is obtained.

なお、XYZを各領域の色変換行列を使用してRGBCに変換するが、RGBCからXYZ、及びXYZからRGBCへのそれぞれの計算は、白色のゲイン調整を行う。   Note that XYZ is converted to RGBC using the color conversion matrix of each region, but each calculation from RGBC to XYZ and from XYZ to RGBC performs white gain adjustment.

(a)色変換行列Mのみを使用した場合
次に、高彩度の緑に対して色変換行列Mのみを用いて色変換を行った場合について説明する。この場合には、誤差が最小になる第1の色変換行列(色変換行列M)のみを用い、第2の色変換行列を用いないで色変換を行う。言い換えると、色変換行列Mと色変換行列Mとの重み付けの度合いを「ω2:ω5=0:1」とする。
(A) When using only the color conversion matrix M 5 will now be described a case of performing color conversion using only the color conversion matrix M 5 with respect to the green high saturation. In this case, only the first color conversion matrix (color conversion matrix M 5 ) that minimizes the error is used, and color conversion is performed without using the second color conversion matrix. In other words, the degree of weighting of the color conversion matrix M 5 and the color conversion matrix M 2 the "ω2: 1: ω5 = 0".

色変換行列Mを用いて色変換を行った場合、色変換値(R,G,B,C)=(−0.3946,0.9046,0.0033,0.9046)が得られる。この場合、0以下の値は切り捨てられて「0」にされる。よって、色変換値(R,G,B,C)は、このような切り捨ての実行により、(0.0000,0.9046,0.0033,0.9046)となる。これを三刺激値(X,Y,Z)に変換すると、(0.3448,0.7091,0.0759)となる。そして、この三刺激値(X,Y,Z)をLに値を変換すると、式(32)を用いることによって、(L,a,b)=(87.44,-89.27,96.06)が得られる。この場合、色差ΔE94、明度差ΔL、彩度差ΔC、及び色相角差Δhは以下のようになる。 When performing color conversion using the color conversion matrix M 5, the color conversion values (R, G, B, C ) = (- 0.3946,0.9046,0.0033,0.9046) is obtained. In this case, values less than or equal to 0 are rounded down to “0”. Therefore, the color conversion values (R, G, B, C) become (0.0000, 0.9046, 0.0033, 0.9046) by performing such truncation. When this is converted into tristimulus values (X, Y, Z), (0.3448, 0.7091, 0.0759) is obtained. When the tristimulus values (X, Y, Z) are converted into L * a * b * , by using the equation (32), (L * , a * , b * ) = (87.44, − 89.27,96.06) is obtained. In this case, the color difference ΔE94, the lightness difference ΔL, the saturation difference ΔC, and the hue angle difference Δh are as follows.

色差;ΔE94=11.66
明度差;ΔL=4.14
彩度差;ΔC=−34.06
色相角差;Δh=−13.74
以上より、色変換行列Mのみを用いて色変換を行った場合には、入力とは異なる色相に色変換されてしまうことがわかる。これは、「R」の負の情報が切り捨てられたためと考えられる。
Color difference; ΔE94 = 11.66
Lightness difference; ΔL = 4.14
Saturation difference; ΔC = −34.06
Hue angle difference; Δh = −13.74
Thus, when performing color conversion using only the color conversion matrix M 5 is seen to become a color conversion to a different hue as the input. This is considered because the negative information of “R” was truncated.

(b)色変換行列M、及び色変換行列Mを使用した場合
次に、高彩度の緑に対して色変換行列M、及び色変換行列Mを用いて色変換を行った場合について説明する。この場合には、誤差が最小になる第1の色変換行列(色変換行列M)と、色相が同一になる第2の色変換行列(色変換行列M)とを用いる。
(B) When the color conversion matrix M 5 and the color conversion matrix M 2 are used Next, when color conversion is performed on the high-saturation green using the color conversion matrix M 5 and the color conversion matrix M 2 explain. In this case, a first color conversion matrix (color conversion matrix M 5 ) that minimizes the error and a second color conversion matrix (color conversion matrix M 2 ) that have the same hue are used.

ここでは、色変換行列Mと色変換行列Mとの重み付けの度合いを「ω2:ω5=1:1」とした例について説明する。この場合、入力として用いる行列をMRGBC25は式(33)で表される。 Here, the degree of weighting of the color conversion matrix M 5 and the color conversion matrix M 2 "ω2: ω5 = 1: 1" and the example will be described. In this case, a matrix used as an input M RGBC25 is expressed by Expression (33).

Figure 2007235664
また、MRGBC25に対応するMXYZ25は、式(34)となる。
Figure 2007235664
Further, M XYZ25 corresponding to M RGBC25 is represented by Expression (34).

Figure 2007235664
これにより、上記した式(31)にMRGBC25、MXYZ25を代入することによって、式(35)に示す色変換行列M25が得られる。
Figure 2007235664
Thus, by substituting M RGBC25, M XYZ25 the above formula (31), color conversion matrix M 25 shown in equation (35) is obtained.

Figure 2007235664
この色変換行列M25を用いて色変換を行った場合、色変換値(R,G,B,C)=(−0.3614,0.8506,−0.0037,1.0354)が得られる。この場合、0以下の値は切り捨てられて「0」にされ、1以上の値は切り捨てられて「1」にされる。よって、色変換値(R,G,B,C)は、このような切り捨ての実行により、(0.0000,0.8506,0.0000,1.0000)となる。これを三刺激値(X,Y,Z)に変換すると、(0.3305,0.6956,0.0771)となる。そして、この三刺激値(X,Y,Z)をLに値を変換すると、式(32)を用いることによって、(L,a,b)=(86.78,−91.44,94.47)が得られる。この場合、色差ΔE94、明度差ΔL、彩度差ΔC、及び色相角差Δhは以下のようになる。
Figure 2007235664
When performing color conversion using the color conversion matrix M 25, the color conversion values (R, G, B, C ) = (- 0.3614,0.8506, -0.0037,1.0354) is obtained. In this case, values less than or equal to 0 are rounded down to “0”, and values greater than or equal to 1 are rounded down to “1”. Therefore, the color conversion values (R, G, B, C) become (0.0000, 0.8506, 0.0000, 1.000) by performing such truncation. When this is converted into tristimulus values (X, Y, Z), (0.3305, 0.6956, 0.0771) is obtained. Then, when the tristimulus values (X, Y, Z) are converted into L * a * b * , by using the equation (32), (L * , a * , b * ) = (86.78, − 91.44, 94.47) is obtained. In this case, the color difference ΔE94, the lightness difference ΔL, the saturation difference ΔC, and the hue angle difference Δh are as follows.

色差;ΔE94=10.69
明度差;ΔL=3.48
彩度差;ΔC=−33.72
色相角差;Δh=−12.57
以上より、色変換行列M、及び色変換行列Mを用いて色変換を行った場合、色差、明度差、及び色相差が小さくなることがわかる。即ち、高彩度の緑が適切に色変換されていることがわかる。
Color difference; ΔE94 = 10.69
Lightness difference; ΔL = 3.48
Saturation difference; ΔC = −33.72
Hue angle difference; Δh = -12.57
From the above, it can be seen that when color conversion is performed using the color conversion matrix M 5 and the color conversion matrix M 2 , the color difference, brightness difference, and hue difference are reduced. That is, it can be seen that high-saturation green is appropriately color-converted.

(2)中間調の緑の場合
以下では、中間調の緑を調整する場合を説明する。
(2) In the case of halftone green In the following, a case where halftone green is adjusted will be described.

前述したように、中間調の緑も、色相や明度が変わったり階調性が悪くなる傾向にあるため、色変換の調整を行う。したがって、このような不具合の発生を防止するために、新たな色変換行列を作成することによって、色変換の調整を行う。具体的には、誤差が最小になるような色変換を行う第1の色変換行列と、色相が同一になるような色変換を行う第2の色変換行列とを選定し、選定された色変換行列を組み合わせる。この場合、第1の色変換行列として領域M2に対応する色変換行列Mを選定し、第2の色変換行列として領域M5に対応する色変換行列Mを選定する。なお、第2の色変換行列として選定された色変換行列Mは、高彩度の緑を色変換する場合に、第1の色変換行列として選定される色変換行列である。 As described above, halftone green also has a tendency to change hue and brightness or to deteriorate gradation, and therefore, color conversion is adjusted. Therefore, in order to prevent the occurrence of such a problem, the color conversion is adjusted by creating a new color conversion matrix. Specifically, a first color conversion matrix that performs color conversion so as to minimize the error and a second color conversion matrix that performs color conversion so that the hue is the same are selected, and the selected color is selected. Combine transformation matrices. In this case, it selects a color conversion matrix M 2 corresponding to the region M2 as the first color conversion matrix, to select a color conversion matrix M 5 corresponding to the region M5 as the second color conversion matrix. The color conversion matrix M 5, which is selected as the second color conversion matrix in the case of color conversion green high saturation, a color conversion matrix is selected as the first color conversion matrix.

ここで、中間調の緑の一例として、三刺激値(X,Y,Z)が(0.0928,0.3137,0.0353)である入力値を考える。これをLに値を変換すると、前述した式(32)より、(L,a,b)=(62.82,−109.51,72.10)となる。 Here, as an example of halftone green, an input value having tristimulus values (X, Y, Z) of (0.0928, 0.3137, 0.0353) is considered. When this value is converted to L * a * b * , (L * , a * , b * ) = (62.82, −109.51, 72.10) from the above-described equation (32).

なお、XYZを各領域の色変換行列を使用してRGBCに変換するが、RGBCからXYZ、及びXYZからRGBCへのそれぞれの計算は、白色のゲイン調整を行う。   Note that XYZ is converted to RGBC using the color conversion matrix of each region, but each calculation from RGBC to XYZ and from XYZ to RGBC performs white gain adjustment.

(a)色変換行列Mのみを使用した場合
次に、中間調の緑に対して色変換行列Mのみを用いて色変換を行った場合について説明する。この場合には、誤差が最小になる第1の色変換行列(色変換行列M)のみを用い、第2の色変換行列を用いないで色変換を行う。言い換えると、色変換行列Mと色変換行列Mとの重み付けの度合いを「ω2:ω5=1:0」とする。
(A) When Only Color Conversion Matrix M 2 is Used Next, a case where color conversion is performed on halftone green using only the color conversion matrix M 2 will be described. In this case, only the first color conversion matrix (color conversion matrix M 2 ) that minimizes the error is used, and color conversion is performed without using the second color conversion matrix. In other words, the degree of weighting of the color conversion matrix M 2 and the color conversion matrix M 5 and "ω2: 0: ω5 = 1".

色変換行列Mを用いて色変換を行った場合、色変換値(R,G,B,C)=(0.0000,0.1320,−0.0401,1.2289)が得られる。この場合、0以下の値は切り捨てられて「0」にされ、1以上の値は切り捨てられて「1」にされる。よって、色変換値(R,G,B,C)は、このような切り捨ての実行により、(0.0000,0.1320,0.0000,1.0000)にされる。これを三刺激値(X,Y,Z)に変換すると、(0.0898,0.2725,0.0630)となる。そして、この三刺激値(X,Y,Z)をLに値を変換すると、式(32)を用いることによって、(L,a,b)=(59.21,−96.42,52.33)が得られる。この場合、色差ΔE94、明度差ΔL、彩度差ΔC、及び色相角差Δhは以下のようになる。 When performing color conversion using the color conversion matrix M 2, the color conversion values (R, G, B, C ) = (0.0000,0.1320, -0.0401,1.2289) is obtained. In this case, values less than or equal to 0 are rounded down to “0”, and values greater than or equal to 1 are rounded down to “1”. Therefore, the color conversion values (R, G, B, C) are set to (0.0000, 0.1320, 0.0000, 1.000) by executing such truncation. When this is converted into tristimulus values (X, Y, Z), (0.0898, 0.2725, 0.0630) is obtained. Then, when this tristimulus value (X, Y, Z) is converted into L * a * b * , by using the equation (32), (L * , a * , b * ) = (59.21, − 96.42,52.33) is obtained. In this case, the color difference ΔE94, the lightness difference ΔL, the saturation difference ΔC, and the hue angle difference Δh are as follows.

色差;ΔE94=11.66
明度差;ΔL=4.14
彩度差;ΔC=−34.06
色相角差;Δh=−13.74
以上より、色変換行列Mのみを用いて色変換を行った場合には、明度が下がると共に、高彩度の緑に対して色相が異なるので階調性が悪くなることがわかる。これは、「C」の1以上の情報が切り捨てられたためと考えられる。
Color difference; ΔE94 = 11.66
Lightness difference; ΔL = 4.14
Saturation difference; ΔC = −34.06
Hue angle difference; Δh = −13.74
Thus, when performing color conversion using only the color conversion matrix M 2, together with the lightness is lowered, it can be seen that the gradation is deteriorated because different hue against green high saturation. This is considered because one or more pieces of information of “C” have been truncated.

(b)色変換行列M、及び色変換行列Mを使用した場合
次に、中間長の緑に対して色変換行列M、及び色変換行列Mを用いて色変換を行った場合について説明する。この場合には、誤差が最小になる第1の色変換行列(色変換行列M)と、色相が同一になる第2の色変換行列(色変換行列M)とを用いる。
(B) When the color conversion matrix M 2 and the color conversion matrix M 5 are used Next, when the color conversion is performed on the intermediate green using the color conversion matrix M 2 and the color conversion matrix M 5 Will be described. In this case, a first color conversion matrix (color conversion matrix M 2 ) that minimizes the error and a second color conversion matrix (color conversion matrix M 5 ) that have the same hue are used.

ここでは、色変換行列Mと色変換行列Mとの重み付けの度合いを「ω2:ω5=1:0.2」とした例について説明する。この場合、入力として用いる行列をMRGBC25は式(36)で表される。 Here, the color conversion matrix M 5 and the color conversion matrix M and the degree of weighting of the 2 "ω2: ω5 = 1: 0.2" and the example will be described. In this case, a matrix used as an input M RGBC25 is expressed by Expression (36).

Figure 2007235664
また、MRGBC25に対応するMXYZ25は、式(37)となる。
Figure 2007235664
Further, M XYZ25 corresponding to M RGBC25 is expressed by Expression (37).

Figure 2007235664
これにより、上記した式(31)にMRGBC25、MXYZ25を代入することによって、式(38)に示す色変換行列M25が得られる。
Figure 2007235664
Thus, by substituting M RGBC25, M XYZ25 the above formula (31), color conversion matrix M 25 shown in equation (38) is obtained.

Figure 2007235664
この色変換行列M25を用いて色変換を行った場合、色変換値(R,G,B,C)=(−0.0949,0.2860,−0.0200,0.8555)が得られる。この場合、0以下の値は切り捨てられて「0」にされる。よって、色変換値(R,G,B,C)は、このような切り捨ての実行により、(0.0000,0.2860,0.0000,0.8555)にされる。これを三刺激値(X,Y,Z)に変換すると、(0.1348,0.3350,0.0573)となる。そして、この三刺激値(X,Y,Z)をLに値を変換すると、式(32)を用いることによって、(L,a,b)=(64.57,−86.53,63.97)が得られる。この場合、色差ΔE94、明度差ΔL、彩度差ΔC、及び色相角差Δhは以下のようになる。
Figure 2007235664
When performing color conversion using the color conversion matrix M 25, the color conversion values (R, G, B, C ) = (- 0.0949,0.2860, -0.0200,0.8555) is obtained. In this case, values less than or equal to 0 are rounded down to “0”. Therefore, the color conversion values (R, G, B, C) are set to (0.0000, 0.2860, 0.0000, 0.8555) by executing such truncation. When this is converted into tristimulus values (X, Y, Z), (0.1348, 0.3350, 0.0573) is obtained. When the tristimulus values (X, Y, Z) are converted into L * a * b * , by using the equation (32), (L * , a * , b * ) = (64.57, − 86.53, 63.97) is obtained. In this case, the color difference ΔE94, the lightness difference ΔL, the saturation difference ΔC, and the hue angle difference Δh are as follows.

色差;ΔE94=4.41
明度差;ΔL=1.75
彩度差;ΔC=−23.50
色相角差;Δh=−3.12
以上より、色変換行列M、及び色変換行列Mを用いて色変換を行った場合、色差、明度差、及び色相差が小さくなることがわかる。即ち、中間調の緑が適切に色変換されていることがわかる。
Color difference; ΔE94 = 4.41
Lightness difference; ΔL = 1.75
Saturation difference; ΔC = −23.50
Hue angle difference; Δh = −3.12
From the above, it can be seen that when color conversion is performed using the color conversion matrix M 5 and the color conversion matrix M 2 , the color difference, brightness difference, and hue difference are reduced. That is, it can be seen that halftone green is appropriately color-converted.

[変形例]
上記では、色変換行列を調整する際に2つの色変換行列を選定し、色変換行列を作成する実施例を示したが、2つ以上の色変換行列を選定し、これらに基づいて新たな色変換行列を作成することも可能である。
[Modification]
In the above, the embodiment in which two color conversion matrices are selected when adjusting the color conversion matrix and the color conversion matrix is generated has been described. However, two or more color conversion matrices are selected, and a new It is also possible to create a color conversion matrix.

更に、上記では、中間調の緑と高彩度の緑に対して用いる色変換行列を調整する実施形態を示したが、緑以外の色において、色変換行列を用いた色変換によって不具合が生じた場合にも、同様の方法によって色変換行列を調整することができる。   Furthermore, in the above, the embodiment has been described in which the color conversion matrix used for the halftone green and the high saturation green is adjusted. However, in the case of a color other than green, a problem occurs due to the color conversion using the color conversion matrix. In addition, the color conversion matrix can be adjusted by a similar method.

[他の実施例]
上記の説明では、複数の色(着色領域)としてRGBCを挙げて説明したが、本発明の適用はこれには限定されず、他の4色の着色領域により1画素を構成した場合にも前述したような色変換を行うことができる。
[Other embodiments]
In the above description, RGBC has been described as a plurality of colors (colored areas). However, the application of the present invention is not limited to this, and the above description is also applied to a case where one pixel is configured by other four colored areas. Color conversion as described above can be performed.

この場合、4色の着色領域は、波長に応じて色相が変化する可視光領域(380〜780nm)のうち、青系の色相の着色領域(「第1着色領域」とも呼ぶ。)、赤系の色相の着色領域(「第2着色領域」とも呼ぶ。)と、青から黄までの色相の中で選択された2種の色相の着色領域(「第3着色領域」、「第4着色領域」とも呼ぶ。)からなる。ここで「系」との語を用いているが、例えば青系であれば純粋の青の色相に限定されるものでなく、青紫や青緑等を含むものである。赤系の色相であれば、赤に限定されるものでなく橙を含む。また、これら着色領域は単一の着色層で構成されても良いし、複数の異なる色相の着色層を重ねて構成されても良い。また、これら着色領域は色相で述べているが、当該色相は、彩度、明度を適宜変更し、色を設定し得るものである。   In this case, the four-color colored region is a blue-colored colored region (also referred to as a “first colored region”) or a red-based color in a visible light region (380 to 780 nm) whose hue changes according to the wavelength. Colored areas (also referred to as “second colored areas”) and two colored areas selected from hues from blue to yellow (“third colored areas”, “fourth colored areas”) "). Here, the term “system” is used. For example, if it is a blue system, the color is not limited to a pure blue hue, and includes a blue-violet color, a blue-green color, and the like. If it is a red hue, it is not limited to red but includes orange. These colored regions may be composed of a single colored layer, or may be composed of a plurality of colored layers having different hues. In addition, although these colored regions are described in terms of hue, the hue can be set by changing the saturation and lightness as appropriate.

具体的な色相の範囲は、
・青系の色相の着色領域は、青紫から青緑であり、より好ましくは藍から青である。
・赤系の色相の着色領域は、橙から赤である。
・青から黄までの色相で選択される一方の着色領域は、青から緑であり、より好ましくは青緑から緑である。
・青から黄までの色相で選択される他方の着色領域は、緑から橙であり、より好ましくは緑から黄である。もしくは緑から黄緑である。
The specific hue range is
-The colored region of the blue hue is from violet to blue-green, more preferably from indigo to blue.
-The colored region of red hue is from orange to red.
-One coloring area | region selected by the hue from blue to yellow is blue to green, More preferably, it is blue green to green.
-The other coloring area | region selected by the hue from blue to yellow is green to orange, More preferably, it is green to yellow. Or it is green to yellowish green.

ここで、各着色領域は、同じ色相を用いることはない。例えば、青から黄までの色相で選択される2つの着色領域で緑系の色相を用いる場合は、他方は一方の緑に対して青系もしくは黄緑系の色相を用いる。   Here, the same hue is not used for each colored region. For example, when a green hue is used in two colored regions selected from hues of blue to yellow, the other uses a blue or yellowish green hue for one green.

これにより、従来のRGBの着色領域よりも広範囲の色再現性を実現することができる。   Thereby, a wider range of color reproducibility than the conventional RGB colored region can be realized.

また、上記では4色の着色領域による広範囲の色再現性を色相で述べたが、他の具体的な例として、以下に、着色領域を透過した光の波長で表現すると以下のようになる。
・青系の着色領域は、該領域を透過した光の波長のピークが415〜500nmにある着色領域、好ましくは、435〜485nmにある着色領域である。
・赤系の着色領域は、該領域を透過した光の波長のピークが600nm以上にある着色領域で、好ましくは、605nm以上にある着色領域である。
・青から黄までの色相で選択される一方の着色領域は、該領域を透過した光の波長のピークが485〜535nmにある着色領域で、好ましくは、495〜520nmにある着色領域である。
・青から黄までの色相で選択される他方の着色領域は、該領域を透過した光の波長のピークが500〜590nmにある着色領域、好ましくは510〜585nmにある着色領域、もしくは530〜565nmにある着色領域である。
In the above, a wide range of color reproducibility by the colored areas of four colors has been described in terms of hue, but as another specific example, the following is expressed in terms of the wavelength of light transmitted through the colored areas.
The blue colored region is a colored region having a peak of the wavelength of light transmitted through the region at 415 to 500 nm, and preferably a colored region at 435 to 485 nm.
The red colored region is a colored region having a wavelength peak of light transmitted through the region of 600 nm or more, and preferably a colored region of 605 nm or more.
One colored region selected with a hue from blue to yellow is a colored region having a wavelength peak of light transmitted through the region of 485 to 535 nm, and preferably a colored region of 495 to 520 nm.
-The other colored region selected with a hue from blue to yellow is a colored region having a wavelength peak of light transmitted through the region of 500 to 590 nm, preferably a colored region of 510 to 585 nm, or 530 to 565 nm. This is a colored region.

なお、これら波長は、透過表示の場合は、照明装置からの照明光がカラーフィルタを通して得られた数値である。反射表示の場合は、外光を反射して得られた数値である。   In the case of transmissive display, these wavelengths are numerical values obtained by illuminating light from the illumination device through the color filter. In the case of reflective display, the value is obtained by reflecting external light.

さらに、他の具体的な例として、4色の着色領域をx、y色度図で表現すると以下のようになる。
・青系の着色領域は、x≦0.151、y≦0.200にある着色領域であり、好ましくは、0.134≦x≦0.151、0.034≦y≦0.200にある着色領域である。
・赤系の着色領域は、0.520≦x、y≦0.360にある着色領域であり、好ましくは、0.550≦x≦0.690、0.210≦y≦0.360にある着色領域である。
・青から黄までの色相で選択される一方の着色領域は、x≦0.200、0.210≦yにある着色領域であり、好ましくは、0.080≦x≦0.200、0.210≦y≦0.759にある着色領域である。
・青から黄までの色相で選択される他方の着色領域は、0.257≦x、0.450≦yにある着色領域であり、好ましくは、0.257≦x≦0.520、0.450≦y≦0.720にある着色領域である。
Furthermore, as another specific example, when a colored region of four colors is expressed by an x, y chromaticity diagram, it is as follows.
The blue colored region is a colored region where x ≦ 0.151 and y ≦ 0.200, preferably a colored region where 0.134 ≦ x ≦ 0.151 and 0.034 ≦ y ≦ 0.200.
The red colored region is a colored region satisfying 0.520 ≦ x and y ≦ 0.360, and preferably a colored region satisfying 0.550 ≦ x ≦ 0.690 and 0.210 ≦ y ≦ 0.360.
-One of the colored areas selected in hues from blue to yellow is a colored area where x ≦ 0.200 and 0.210 ≦ y, preferably a colored area where 0.080 ≦ x ≦ 0.200 and 0.210 ≦ y ≦ 0.759 is there.
-The other colored region selected with a hue from blue to yellow is a colored region in the range of 0.257 ≦ x, 0.450 ≦ y, preferably a colored region in the range of 0.257 ≦ x ≦ 0.520, 0.450 ≦ y ≦ 0.720 is there.

なお、これらのx、y色度図は、透過表示の場合は、照明装置からの照明光がカラーフィルタを通して得られた数値である。反射表示の場合は、外光を反射して得られた数値である。   Note that these x and y chromaticity diagrams are numerical values obtained by illuminating light from the illumination device through the color filter in the case of transmissive display. In the case of reflective display, the value is obtained by reflecting external light.

これら4色の着色領域は、サブ画素に透過領域と反射領域を備えた場合、透過領域及び反射領域も上述した範囲で適用することができるものである。   These four colored areas can be applied within the above-described range when the sub-pixel includes a transmission area and a reflection area.

なお、本例における4色の着色領域を用いた場合、バックライトにはRGBの光源としてLED、蛍光管、有機ELなどを用いても良い。または白色光源を用いても良い。なお、白色光源は青の発光体とYAG蛍光体により生成される白色光源でもよい。   Note that when the four colored regions in this example are used, an LED, a fluorescent tube, an organic EL, or the like may be used as the RGB light source for the backlight. Alternatively, a white light source may be used. The white light source may be a white light source generated by a blue light emitter and a YAG phosphor.

但し、RGB光源としては、以下のものが好ましい。
・Bは波長のピークが435nm〜485nmにあるもの
・Gは波長のピークが520nm〜545nmにあるもの
・Rは波長のピークが610nm〜650nmにあるもの
そして、RGB光源の波長によって、上記CFを適切に選定すればより広範囲の色再現性を得ることができる。また、波長が例えば、450nmと565nmにピークがくるような、複数のピークを持つ光源を用いても良い。
However, the following are preferable as the RGB light source.
-B has a wavelength peak between 435 nm and 485 nm.-G has a wavelength peak between 520 nm and 545 nm.-R has a wavelength peak between 610 nm and 650 nm. If selected appropriately, a wider range of color reproducibility can be obtained. Moreover, you may use the light source which has a some peak so that a wavelength may come to a peak at 450 nm and 565 nm, for example.

上記の4色の着色領域の構成の例としては、具体的には以下のものがあげられる。
・色相が、赤、青、緑、シアン(青緑)の着色領域
・色相が、赤、青、緑、黄の着色領域
・色相が、赤、青、深緑、黄の着色領域
・色相が、赤、青、エメラルドグリーン、黄緑の着色領域
・色相が、赤、青、エメラルドグリーン、黄の着色領域
・色相が、赤、青、深緑、黄緑の着色領域
・色相が、赤、青緑、深緑、黄緑の着色領域
Specific examples of the configuration of the above four colored regions include the following.
・ Colored areas of red, blue, green, cyan (blue green) ・ Colored areas of red, blue, green, and yellow ・ Colored areas of red, blue, dark green, and yellow ・ Hue Red, blue, emerald green, yellow-green colored areas / hues are red, blue, emerald green, yellow colored areas / hues are red, blue, dark green, yellow-green colored areas / hues are red, blue-green , Dark green, yellow-green colored area

本発明の実施形態に係る画像表示装置の概略構成を示すブロック図である。1 is a block diagram illustrating a schematic configuration of an image display device according to an embodiment of the present invention. 色変換を具体的に説明するための図である。It is a figure for demonstrating color conversion concretely. 色再現領域を示す多面体を分割した四角錐を示す図である。It is a figure which shows the quadrangular pyramid which divided | segmented the polyhedron which shows a color reproduction area | region. R2、G2、B2、C2の算出方法を説明するための図である。It is a figure for demonstrating the calculation method of R2, G2, B2, C2. 色変換値計算処理を示すフローチャートである。It is a flowchart which shows a color conversion value calculation process. 色域外計算処理を説明するための図である。It is a figure for demonstrating out-of-gamut calculation processing. 色域外計算処理を示すフローチャートである。It is a flowchart which shows a gamut calculation process. 出力値計算処理を説明するための図である。It is a figure for demonstrating output value calculation processing. 出力値計算処理を示すフローチャートである。It is a flowchart which shows an output value calculation process. xy色度図の一例を示す図である。It is a figure which shows an example of xy chromaticity diagram. Lab空間でAdobeRGBの色再現領域と4色の色再現領域とを示した図である。It is the figure which showed the color reproduction area of AdobeRGB and the color reproduction area of 4 colors in Lab space. 色変換行列作成装置の概略構成を示した図である。It is the figure which showed schematic structure of the color conversion matrix production apparatus. 色変換行列作成処理を示すフローチャートである。It is a flowchart which shows a color conversion matrix preparation process. 第1の色変換行列と第2の色変換行列を用いて色変換した場合の状況を説明するための図である。It is a figure for demonstrating the condition at the time of performing color conversion using the 1st color conversion matrix and the 2nd color conversion matrix. 実施例に係る表示パネルの色度をプロットしたxy色度図を示す。The xy chromaticity diagram which plotted the chromaticity of the display panel which concerns on an Example is shown.

符号の説明Explanation of symbols

10 画像処理部、 12 色変換回路、 15 テーブル格納メモリ、 16 γ補正回路、 20 表示部、 23 表示パネル、 50 色変換行列作成装置、 100 画像表示装置   DESCRIPTION OF SYMBOLS 10 Image processing part, 12 color conversion circuit, 15 Table storage memory, 16 gamma correction circuit, 20 Display part, 23 Display panel, 50 color conversion matrix preparation apparatus, 100 Image display apparatus

Claims (7)

入力された画像データを、画像を表示する表示装置が表示可能な色へと色変換するための色変換行列を作成する色変換行列作成装置であって、
色空間において、前記入力された画像データに対応する色が前記表示装置の表示可能な色再現領域の外側に位置する場合、当該画像データに対して用いる複数の色変換行列を選定する色変換行列選定手段と、
前記色変換行列選定手段が選定した複数の色変換行列を組み合わせて、色変換行列を作成する色変換行列作成手段と、を備えることを特徴とする色変換行列作成装置。
A color conversion matrix creation device that creates a color conversion matrix for color-converting input image data into a color that can be displayed by a display device that displays an image,
In a color space, when a color corresponding to the input image data is located outside a color reproduction region that can be displayed by the display device, a color conversion matrix that selects a plurality of color conversion matrices to be used for the image data Selection means,
A color conversion matrix creation device comprising: a color conversion matrix creation unit that creates a color conversion matrix by combining a plurality of color conversion matrices selected by the color conversion matrix selection unit.
前記色変換行列選定手段は、
前記入力された画像データに対応する色の値と、当該入力された画像データを色変換して得られる色変換値との誤差が最小となるような色変換をするために用いる第1の色変換行列と、
前記入力された画像データに対応する色の値と少なくとも色相が同じ色変換値が得られるような色変換をするために用いる第2の色変換行列と、を選定することを特徴とする請求項1に記載の色変換行列作成装置。
The color conversion matrix selection means includes:
The first color used for color conversion that minimizes the error between the color value corresponding to the input image data and the color conversion value obtained by color conversion of the input image data Transformation matrix and
The second color conversion matrix used for performing color conversion so as to obtain a color conversion value having at least the same hue as a color value corresponding to the input image data is selected. The color conversion matrix creation device according to 1.
前記色変換行列作成手段は、前記複数の色変換行列を重み付けて組み合わせることによって、前記色変換行列を作成することを特徴とする請求項1又は2に記載の色変換行列作成装置。   3. The color conversion matrix creation device according to claim 1, wherein the color conversion matrix creation unit creates the color conversion matrix by weighting and combining the plurality of color conversion matrices. 前記色変換行列選定手段は、高彩度の緑及び中間調の緑に対応するそれぞれのデータが前記画像データとして入力された場合に、前記複数の色変換行列を選定し、
前記色変換行列作成手段は、前記高彩度の緑及び前記中間調の緑の各々に対して、前記複数の色変換行列を組み合わせた色変換行列を作成することを特徴とする請求項1乃至3のいずれか一項に記載の色変換行列作成装置。
The color conversion matrix selection means selects the plurality of color conversion matrices when data corresponding to high saturation green and halftone green is input as the image data,
4. The color conversion matrix creation unit creates a color conversion matrix obtained by combining the plurality of color conversion matrices for each of the high saturation green and the halftone green. The color conversion matrix creation device according to any one of the above.
請求項1乃至4のいずれか一項に記載の色変換行列作成装置によって作成された前記色変換行列をテーブルとして記憶する記憶手段と、
前記記憶手段に記憶されたテーブルを用いて、入力される画像データを、前記表示装置が用いる複数の色へと色変換する色変換手段と、を備えることを特徴とする画像処理装置。
Storage means for storing the color conversion matrix created by the color conversion matrix creation device according to any one of claims 1 to 4 as a table;
An image processing apparatus comprising: color conversion means for color-converting input image data into a plurality of colors used by the display device using a table stored in the storage means.
入力された画像データを、画像を表示する表示装置が表示可能な色へと色変換するための色変換行列を作成する色変換行列作成方法であって、
色空間において、前記入力された画像データに対応する色が前記表示装置の表示可能な色再現領域の外側に位置する場合、当該画像データに対して用いる複数の色変換行列を選定する色変換行列選定工程と、
前記色変換行列選定工程で選定された複数の色変換行列を組み合わせて、色変換行列を作成する色変換行列作成工程と、を備えることを特徴とする色変換行列作成方法。
A color conversion matrix creating method for creating a color conversion matrix for color-converting input image data into a color that can be displayed by a display device that displays an image,
In a color space, when a color corresponding to the input image data is located outside a color reproduction region that can be displayed by the display device, a color conversion matrix that selects a plurality of color conversion matrices to be used for the image data A selection process;
A color conversion matrix creation method comprising: a color conversion matrix creation step of creating a color conversion matrix by combining a plurality of color conversion matrices selected in the color conversion matrix selection step.
入力された画像データを、画像を表示する表示装置が表示可能な色へと色変換するための色変換行列が作成されるようにコンピュータを機能させる色変換行列作成プログラムであって、
色空間において、前記入力された画像データに対応する色が前記表示装置の表示可能な色再現領域の外側に位置する場合、当該画像データに対して用いる複数の色変換行列を選定する色変換行列選定手段、
前記色変換行列選定手段が選定した複数の色変換行列を組み合わせて、色変換行列を作成する色変換行列作成手段、として前記コンピュータを機能させることを特徴とする色変換行列作成プログラム。
A color conversion matrix creation program for causing a computer to function so as to create a color conversion matrix for color conversion of input image data into a color that can be displayed by a display device that displays an image,
In a color space, when a color corresponding to the input image data is located outside a color reproduction region that can be displayed by the display device, a color conversion matrix that selects a plurality of color conversion matrices to be used for the image data Selection means,
A color conversion matrix creation program for causing the computer to function as color conversion matrix creation means for creating a color conversion matrix by combining a plurality of color conversion matrices selected by the color conversion matrix selection means.
JP2006055875A 2006-03-02 2006-03-02 Color conversion matrix generating device, color conversion matrix generating method, color conversion matrix generating program, and image processing apparatus Withdrawn JP2007235664A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006055875A JP2007235664A (en) 2006-03-02 2006-03-02 Color conversion matrix generating device, color conversion matrix generating method, color conversion matrix generating program, and image processing apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006055875A JP2007235664A (en) 2006-03-02 2006-03-02 Color conversion matrix generating device, color conversion matrix generating method, color conversion matrix generating program, and image processing apparatus

Publications (1)

Publication Number Publication Date
JP2007235664A true JP2007235664A (en) 2007-09-13

Family

ID=38555776

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006055875A Withdrawn JP2007235664A (en) 2006-03-02 2006-03-02 Color conversion matrix generating device, color conversion matrix generating method, color conversion matrix generating program, and image processing apparatus

Country Status (1)

Country Link
JP (1) JP2007235664A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0638032A (en) * 1992-07-15 1994-02-10 Fuji Xerox Co Ltd Method for processing information and device therefor
JPH1169189A (en) * 1997-08-18 1999-03-09 Ricoh Co Ltd Color correction device
JP2002262120A (en) * 2001-02-28 2002-09-13 Ricoh Co Ltd Image processor, image processing method, color conversion table generating method and recording medium
JP2003125226A (en) * 2001-10-18 2003-04-25 Seiko Epson Corp Color conversion method, color converter, and color conversion processing program
JP2004297383A (en) * 2003-03-26 2004-10-21 Seiko Epson Corp Color reproduction adjustment in output image

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0638032A (en) * 1992-07-15 1994-02-10 Fuji Xerox Co Ltd Method for processing information and device therefor
JPH1169189A (en) * 1997-08-18 1999-03-09 Ricoh Co Ltd Color correction device
JP2002262120A (en) * 2001-02-28 2002-09-13 Ricoh Co Ltd Image processor, image processing method, color conversion table generating method and recording medium
JP2003125226A (en) * 2001-10-18 2003-04-25 Seiko Epson Corp Color conversion method, color converter, and color conversion processing program
JP2004297383A (en) * 2003-03-26 2004-10-21 Seiko Epson Corp Color reproduction adjustment in output image

Similar Documents

Publication Publication Date Title
KR101786161B1 (en) Method for producing a color image and imaging device employing same
JP4364281B2 (en) Display device
JP4241902B2 (en) Color image display device and color conversion device
US7301543B2 (en) Systems and methods for selecting a white point for image displays
JP5031097B2 (en) Multi-primary color display device
JP4845825B2 (en) Multicolor display device
JP5478826B2 (en) Display device
JP4311411B2 (en) Color conversion table generation device, display device, color conversion table generation method, and display device manufacturing method
JP5427246B2 (en) Multi-primary color display device
WO2005111980A1 (en) Display device
JP2008096548A (en) Display device
JP2009500654A (en) Method and apparatus for converting signals for driving a display, and display using the method and apparatus
JP2011154374A (en) Color display device and method for enhancing attribute
KR20150110507A (en) Method for producing a color image and imaging device employing same
US11223745B2 (en) Device and method for controlling color gamut, and display device including the device
KR20110081546A (en) Apparatus and method of processing signals
US7719715B2 (en) Tone characteristics-conversion determining apparatus, tone characteristics-conversion determining method, tone characteristics-conversion determining program, image processing apparatus, and image display apparatus
KR20160041923A (en) Signal generating device, signal generating program, signal generating method, and image display device
KR100832285B1 (en) Color conversion apparatus, method, and program, image processing apparatus, and image display apparatus
JP4752444B2 (en) Color conversion apparatus, color conversion method, color conversion program, image processing apparatus, and image display apparatus
JP2012230262A (en) Image display device and method of controlling the same
JP2007235664A (en) Color conversion matrix generating device, color conversion matrix generating method, color conversion matrix generating program, and image processing apparatus
JP4682794B2 (en) Color conversion apparatus, color conversion method, color conversion program, image processing apparatus, and image display apparatus
Dutta Color Primary Correction of Image and Video Between Different Source and Destination Color Spaces
JP2010057193A (en) Video display

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20080827

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20100422

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100427

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100624

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20101026

A761 Written withdrawal of application

Free format text: JAPANESE INTERMEDIATE CODE: A761

Effective date: 20101224