JP2007124243A - Color conversion method - Google Patents

Color conversion method Download PDF

Info

Publication number
JP2007124243A
JP2007124243A JP2005313160A JP2005313160A JP2007124243A JP 2007124243 A JP2007124243 A JP 2007124243A JP 2005313160 A JP2005313160 A JP 2005313160A JP 2005313160 A JP2005313160 A JP 2005313160A JP 2007124243 A JP2007124243 A JP 2007124243A
Authority
JP
Japan
Prior art keywords
color
data
space
adjustment
color space
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
JP2005313160A
Other languages
Japanese (ja)
Inventor
Takatsune Akaishi
貴恒 赤石
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP2005313160A priority Critical patent/JP2007124243A/en
Publication of JP2007124243A publication Critical patent/JP2007124243A/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 create a color conversion table with a decreased creation man-hours wherein the physical appearance is the same in a shared region between the sRGB and the extended color space, the color conversion table being used to convert data in the sRGB and the extended color space into data in a color space of an output device. <P>SOLUTION: The data in the sRGB and the extended color space are once converted into data independently of the device, and colors are adjusted by using a plurality of shared parameters in a color space independently of the device. <P>COPYRIGHT: (C)2007,JPO&INPIT

Description

本発明は複数の異なる色空間の画像データを任意の画像出力デバイスの色空間に変換する色変換方法に関する。   The present invention relates to a color conversion method for converting image data of a plurality of different color spaces into a color space of an arbitrary image output device.

近年、デジタルカメラなどの画像データの入力デバイスの高性能化が進み、それらの入力デバイスから出力される画像データが多様化してきた。従来は、最も一般的であるsRGBと呼ばれるRGB色空間のデータだけであったが、近年はAdobeRGBなどの拡張色空間にも対応したものが多くなってきた。   In recent years, image data input devices such as digital cameras have been improved in performance, and image data output from these input devices has been diversified. Conventionally, only data in the RGB color space called sRGB, which is the most common, has been used, but in recent years, there are many that support extended color spaces such as AdobeRGB.

カラープリンタのプリンタドライバでは、従来、入力画像データのRGBデータは、色空間sRGBで表現されたものであることを前提として設計されていた。従って、各プリンタメーカは、入力データがsRGBであることを前提にして、各出力デバイスで最適な出力となるように、または、どの出力デバイスでも見た目の印象がほぼ同じになるように設計している。   Conventionally, a printer driver of a color printer has been designed on the assumption that the RGB data of the input image data is expressed in the color space sRGB. Therefore, on the assumption that the input data is sRGB, each printer manufacturer is designed so that each output device has an optimum output, or the output impression is almost the same on any output device. Yes.

例えば、特許文献1では、各デバイスの色再現範囲の違いによらず、複数のデバイス間で共通の色再現を実現する方法が提案されている。また、特許文献2にも、複数のデバイス間で共通の色再現を実現する方法として、入力信号の色再現域をより狭いデバイスの色再現域にマッピングする場合、色再現域外の色の階調性を保存しながらマッピングする方法が提案されている。
特開2004−153336号公報 特開2003−153020号公報
For example, Patent Document 1 proposes a method for realizing common color reproduction among a plurality of devices regardless of the difference in the color reproduction range of each device. Also, in Patent Document 2, as a method for realizing common color reproduction among a plurality of devices, when the color reproduction range of an input signal is mapped to the color reproduction range of a narrower device, the gradation of colors outside the color reproduction range is also disclosed. A method of mapping while preserving sex has been proposed.
JP 2004-153336 A JP2003-153020A

しかしながら上記従来例では、プリンタドライバは入力デバイスのデータとして、sRGB空間により表現されたデータを前提として設計されている。即ち、入力データ(sRGB)→出力データ(デバイスRGB)、或いは入力データ(sRGB)→出力(デバイスCMYK)の色変換テーブルを予め用意しておき、随時、その色変換テーブルを使ってプリントを行なうようになっていた。   However, in the above conventional example, the printer driver is designed on the assumption that the data of the input device is expressed in the sRGB space. That is, a color conversion table of input data (sRGB) → output data (device RGB) or input data (sRGB) → output (device CMYK) is prepared in advance, and printing is performed using the color conversion table as needed. It was like that.

これらの色変換テーブルは、出力デバイス毎、記録媒体毎、記録モード毎に用意されるものである。通常、これらの色変換テーブルは、その出力デバイスで最適な出力となるように非常に細かな部分までチューニングされている。また、それぞれの色変換テーブルで見た目の印象がほぼ同じになるようにチューニングされている。   These color conversion tables are prepared for each output device, each recording medium, and each recording mode. Normally, these color conversion tables are tuned to a very fine part so as to obtain an optimum output by the output device. The color conversion tables are tuned so that the visual impression is almost the same.

このような構成において、入力データがsRGBデータではなく、例えば、AdobeRGBのような拡張色空間のデータである場合には、従来のRGBとは異なる別の色変換テーブルを用意する必要がある。従来のやり方では、この拡張色空間用の色変換テーブルを作成する場合には、sRGBの色変換テーブルの作成と同様に、細かなチューニングを必要とするため、sRGBの場合と併せて2倍の手間が掛かることになる。   In such a configuration, when the input data is not sRGB data but data in an extended color space such as Adobe RGB, for example, it is necessary to prepare another color conversion table different from conventional RGB. In the conventional method, when the color conversion table for the extended color space is created, fine tuning is required in the same manner as the creation of the sRGB color conversion table. It will take time.

本発明は上記従来例に鑑みてなされたもので、sRGBと拡張色空間の色変換テーブルを作成する際に、両色空間の共通領域では見た目の印象がほぼ同じとなるような色変換テーブルを簡単に作成する色変換方法を提供することを目的としている。   The present invention has been made in view of the above-described conventional example, and when creating a color conversion table for sRGB and an extended color space, a color conversion table that makes the visual impression almost the same in the common area of both color spaces. The object is to provide a color conversion method that can be easily created.

上記目的を達成するため本発明の色変換方法は以下の構成からなる。   In order to achieve the above object, the color conversion method of the present invention comprises the following arrangement.

即ち、第一の入力色空間のデータと第二の入力色空間のデータとを任意の出力デバイスの色空間に変換する色変換方法であって、前記第一の入力色空間のデータをデバイス非依存の色空間のデータに変換する第一の色空間変換工程と、前記第二の入力色空間のデータを前記デバイス非依存の色空間のデータに変換する第二の色空間変換工程と、前記デバイス非依存の色空間のデータに対して複数のバラメータによって変換を行い、色調整を行なう色調整工程と、前記色調整工程において色調整されたデータを前記出力デバイスの色再現範囲に合わせてガマットマッピングを行なうガマットマッピング工程と、前記ガマットマッピングされたデータに対応する前記出力デバイス固有のデータを算出する工程とを有し、前記第一及び第二の色空間変換工程における変換は、前記第一の入力色空間と前記第二の入力色空間の共通領域において共通した色再現となるような変換であり、前記色調整工程において使われる前記複数のパラメータは、前記第一の入力色空間と前記第二の入力色空間で共通したパラメータであることを特徴とする。   That is, a color conversion method for converting data of a first input color space and data of a second input color space into a color space of an arbitrary output device, wherein the first input color space data is converted to a device non-device. A first color space conversion step for converting to data in a dependent color space; a second color space conversion step for converting data in the second input color space into data in a device-independent color space; A color adjustment step in which data in a device-independent color space is converted by a plurality of parameters and color adjustment is performed, and data adjusted in the color adjustment step is gamut matched to the color reproduction range of the output device. A gamut mapping step of performing mapping, and a step of calculating data specific to the output device corresponding to the gamut-mapped data, and the first and second color spaces The conversion in the conversion step is conversion that results in a common color reproduction in a common area of the first input color space and the second input color space, and the plurality of parameters used in the color adjustment step are: The parameters are common to the first input color space and the second input color space.

なお、前記第一の入力色空間と前記第二の入力色空間のデータはRGBデータであることを特徴とする。   The data of the first input color space and the second input color space is RGB data.

また、前記第一の入力色空間と前記第二の入力色空間のRGBCMYの色相は、ほぼ同じ色相であることを特徴とする。   Further, the RGBCMY hues of the first input color space and the second input color space are substantially the same hue.

さらに、前記デバイス非依存の色空間はL*a*b*空間であることを特徴とする。   Furthermore, the device-independent color space is an L * a * b * space.

前記色調整工程において使用される前記複数のパラメータには、(1)黒、白の色調整後のL*a*b*値、(2)L*a*b*空間における45°刻みの各色相方向の拡大・縮小率、(3)入力色空間のRGB値で、RGBCMYの代表色の位置に対応する前記デバイス非依存のデータの変化量ΔL*C*h、(4)グレイラインの目標色度a*、及びb*、(5)肌色領域のa*方向、b*方向の拡大・縮小率、(6)全体のシフト量ΔL*a*b*が含まれる。   The plurality of parameters used in the color adjustment step include (1) L * a * b * value after black and white color adjustment, and (2) 45 ° increments in the L * a * b * space. (3) The amount of change ΔL * C * h of the device-independent data corresponding to the position of the representative color of RGBCMY with the RGB values of the input color space, and (4) the target of the gray line Chromaticity a * and b *, (5) enlargement / reduction ratio in the a * direction and b * direction of the flesh color region, and (6) the total shift amount ΔL * a * b *.

そして、前記色調整工程では、(1)黒、白の色調整後のL*a*b*値のパラメータによる明度方向の色調整、(2)L*a*b*空間における45°刻みの色相方向の拡大・縮小、(3)RGBCMYの代表色位置の明度、彩度、色相調整、(4)グレイラインの色度調整、(5)肌色領域の色調整、(6)全体のシフトの順に、色調整を行なうことを特徴とする。   In the color adjustment step, (1) color adjustment in the brightness direction by the L * a * b * value parameter after black and white color adjustment, and (2) 45 ° increments in the L * a * b * space. (3) Lightness, saturation, hue adjustment of RGBCMY representative color position, (4) Gray line chromaticity adjustment, (5) Skin color area color adjustment, (6) Overall shift The color adjustment is performed in order.

また、前記L*a*b*空間における45°刻みの色相方向の拡大・縮小では、45°刻みに指定されている拡大・縮小率から、全色相の拡大・縮小率を補間計算により算出し、各色相で連続したつながりを持つように拡大・縮小されることを特徴とする。   In the enlargement / reduction in the hue direction in increments of 45 ° in the L * a * b * space, the enlargement / reduction rate of all hues is calculated by interpolation calculation from the enlargement / reduction rate specified in 45 ° increments. It is characterized by being enlarged / reduced so as to have a continuous connection in each hue.

またさらに、前記RGBCMYの代表色位置の明度、彩度、色相調整では、代表色以外のデータに対して、代表色との相対的な位置関係により、明度、彩度、色相の調整量を補間計算により算出し、すべての領域において連続したつながりを持つように明度、彩度、色相が調整されることを特徴とする。   Further, in the brightness, saturation, and hue adjustment of the RGBCMY representative color position, the brightness, saturation, and hue adjustment amounts are interpolated based on the relative positional relationship with the representative color for data other than the representative color. It is calculated by calculation, and the brightness, saturation, and hue are adjusted so as to have a continuous connection in all regions.

またさらに、前記肌色領域の色調整では、a*>0、かつ、b*>0、かつ、C*=(a*×a*+b*×b*)1/2)<45の領域を肌色領域とみなし、その肌色領域に位置するデータのa*,、b*値に対して、a*方向、b*方向に拡大・縮小をおこなうことを特徴とする。   Furthermore, in the color adjustment of the flesh color region, the region of a *> 0, b *> 0, and C * = (a * × a * + b * × b *) 1/2) <45 is flesh colored. It is regarded as an area, and the a * and b * values of data located in the skin color area are enlarged / reduced in the a * direction and the b * direction.

本発明によれば、第一及び第二の入力色空間のデータを任意の出力デバイスの色空間データに変換する際、各入力色空間のデータを一旦、デバイス非依存のデータに変換し、そのデータに対して共通のパラメータを使って色調整して色変換テーブルを作成する。   According to the present invention, when converting the data of the first and second input color spaces into the color space data of an arbitrary output device, the data of each input color space is once converted into device-independent data, A color conversion table is created by adjusting colors using common parameters for data.

これにより、第一及び第二の入力色空間の共通領域では、見た目の印象がほぼ同じような色再現を実現することができるという効果がある。   Thereby, in the common area of the first and second input color spaces, there is an effect that it is possible to realize color reproduction with substantially the same visual impression.

また、第一及び第二の入力色空間で共通のパラメータを使って色調整を行なうので、どちらか一方の入力色空間でチューニングを行なうだけでよく両方の入力色空間でチューニングする必要がないという利点もある。   In addition, since color adjustment is performed using common parameters in the first and second input color spaces, it is only necessary to tune in one of the input color spaces, and there is no need to tune in both input color spaces. There are also advantages.

以下添付図面を参照して本発明の好適な実施例について、さらに具体的かつ詳細に説明する。   Hereinafter, preferred embodiments of the present invention will be described more specifically and in detail with reference to the accompanying drawings.

この実施例では、入力データとしてRGBデータを対象とするカラープリンタの色変換テーブルを作成する場合において、第一の入力色空間としてsRGB、第二の入力色空間としてAdobeRGBを想定した場合を例に説明する。   In this embodiment, when creating a color conversion table for a color printer that targets RGB data as input data, sRGB is assumed as the first input color space, and AdobeRGB is assumed as the second input color space. explain.

なお、対象とするカラープリンタは、例えば、シアン(C)、マゼンタ(M)、イエロ(Y)、ブラック(K)の4色のインクを吐出して記録を行なうインクジェットプリンタとする。   The target color printer is, for example, an inkjet printer that performs recording by ejecting ink of four colors of cyan (C), magenta (M), yellow (Y), and black (K).

図1はこのインクジェットプリンタで記録を行なうために実行する画像処理を示す図である。   FIG. 1 is a diagram showing image processing executed for recording with this ink jet printer.

この画像処理は、インクジェットプリンタを接続するホストコンピュータのプリンタドライバで実行されても良いし、或いはRGBデータを直接入力可能なインクジェットプリンタ内部のMPUで実行されても良い。   This image processing may be executed by a printer driver of a host computer connected to the ink jet printer, or may be executed by an MPU inside the ink jet printer capable of directly inputting RGB data.

図1において、10は入力画像データを表し、RGB画像データとする。入力画像データのRGBデータは、まず、入力ガンマ処理部11によりR’G’B’に変換される。入力ガンマ処理は、プリンタドライバにおけるユーザによる色調整の処理、例えば、明るさ、カラーバランス、コントラストなどの処理が行なわれる場合に使用される1次元ルックアップテーブルによる処理である。   In FIG. 1, 10 represents input image data, which is RGB image data. The RGB data of the input image data is first converted to R′G′B ′ by the input gamma processing unit 11. The input gamma processing is processing by a one-dimensional lookup table used when color adjustment processing by the user in the printer driver, for example, processing such as brightness, color balance, and contrast is performed.

入力ガンマ処理後のデータR’G’B’は、次に、色変換処理12によりR”G”B”に変換される。この色変換処理は、入力画像のRGB空間のデータから、対象カラープリンタ固有のデバイスRGB空間のデータへマッピングを行なうための3次元ルックアップテーブルによる処理である。通常、この色変換処理によって、プリンタの色作りが行なわれている。   The data R′G′B ′ after the input gamma processing is then converted to R ″ G ″ B ″ by the color conversion processing 12. This color conversion processing is performed by converting the RGB color data of the input image into the target color. This is a process using a three-dimensional lookup table for mapping to data in the device RGB space unique to the printer.Normally, the color of the printer is created by this color conversion process.

色変換処理後のデータR”G”B”は、次に、インク色分解処理13によりCMYKのインク色データに変換される。このインク色分解処理では、対象カラープリンタ固有のデバイスRGB空間のデータが、そのプリンタにおける色再現域が最大となるようにインク分解されている3次元ルックアップテーブルによって行なわれる。インク色分解処理後のデータCMYKは、次に、出力ガンマ処理14によりC’M’Y’K’に変換される。出力ガンマ処理は、各インクの出力特性を調整するために行なわれる処理である。出力ガンマ処理後のC’M’Y’K’は、次に、ハーフトーン処理15によりC”M”Y”K”のN値化されたデータに変換されインクジェットプリンタで記録される。   The data R "G" B "after the color conversion processing is then converted into CMYK ink color data by the ink color separation processing 13. In this ink color separation processing, data in the device RGB space unique to the target color printer. The data CMYK after the ink color separation processing is then subjected to C′M ′ by the output gamma processing 14 after the ink color separation processing is performed so as to maximize the color gamut in the printer. The output gamma processing is performed to adjust the output characteristics of each ink, and C′M′Y′K ′ after the output gamma processing is a halftone. By processing 15, it is converted into N-valued data of C "M" Y "K" and recorded by an ink jet printer.

この実施例で作成する色変換テーブルは、図1に示した色変換処理12で用いられる3次元ルックアップテーブルのことである。   The color conversion table created in this embodiment is a three-dimensional lookup table used in the color conversion process 12 shown in FIG.

図2はこの実施例の色変換テーブル作成方法の概要を表すブロック図である。   FIG. 2 is a block diagram showing an outline of the color conversion table creation method of this embodiment.

図2において、20はsRGBデータ、ここではsRGB用色変換テーブル(3次元ルックアップテーブル)の格子点データを表している。   In FIG. 2, reference numeral 20 denotes sRGB data, here, grid point data of an sRGB color conversion table (three-dimensional lookup table).

図3はsRGB用色変換テーブルを示す図である。   FIG. 3 shows an sRGB color conversion table.

図3に示すように、R、G、B夫々の軸をN区分したN3個の格子点データにより色変換テーブルは構成される。このテーブルは各格子点RGB値に対応する出力デバイスRGB値が格納されるような変換テーブルである。 As shown in FIG. 3, the color conversion table is composed of N 3 grid point data obtained by dividing the R, G, and B axes into N sections. This table is a conversion table in which output device RGB values corresponding to each grid point RGB value are stored.

図2に戻って説明を続けると、sRGBデータ20はsRGB→L*a*b*変換部22に入力され、L*a*b*データ(L1a1b1)に変換される。sRGB→L*a*b*変換部22では、一般のsRGB−L*a*b*の関係式より一意に変換が行なわれる。デバイス非依存のデータ(L1a1b1)は色調整部24に入力される。一方、21はAdobeRGBデータ、ここではAdobeRGB用色変換テーブル(3次元ルックアップテーブル)の格子点データを表している。   Returning to FIG. 2 and continuing the description, the sRGB data 20 is input to the sRGB → L * a * b * conversion unit 22 and converted into L * a * b * data (L1a1b1). In the sRGB → L * a * b * conversion unit 22, the conversion is performed uniquely from the general relational expression of sRGB-L * a * b *. The device-independent data (L1a1b1) is input to the color adjustment unit 24. On the other hand, 21 represents AdobeRGB data, here, grid point data of the color conversion table for AdobeRGB (three-dimensional lookup table).

AdobeRGBデータ21は、AdobeRGB→L*a*b*変換部23に入力され、L*a*b*データ(L2a2b2)に変換される。AdobeRGB→L*a*b*変換部23では、AdobeRGB−L*a*b*の関係式より一意に変換が行なわれる。デバイス非依存のデータ(L2a2b2)は、色調整部24に入力される。   The AdobeRGB data 21 is input to the AdobeRGB → L * a * b * conversion unit 23 and converted into L * a * b * data (L2a2b2). In the AdobeRGB → L * a * b * conversion unit 23, the conversion is performed uniquely from the relational expression of AdobeRGB-L * a * b *. The device-independent data (L2a2b2) is input to the color adjustment unit 24.

色調整部24では、共通パラメータ格納部25に格納されている共通パラメータに従って、色調整が行なわれる。色調整部24で行なわれる色調整の方法、および共通パラメータ格納部25に格納されているパラメータについては、後で詳細に説明する。   The color adjustment unit 24 performs color adjustment according to the common parameters stored in the common parameter storage unit 25. The color adjustment method performed by the color adjustment unit 24 and the parameters stored in the common parameter storage unit 25 will be described in detail later.

色調整部24によって色調整されたデバイス非依存のデータ(L1’a1’b1’)および(L2’a2’b2’)は、ガマットマッピング部26に入力される。ガマットマッピング部26では、色調整されたsRGB、AdobeRGBそれぞれのデータを出力デバイスの色再現域にマッピングする。   The device independent data (L1′a1′b1 ′) and (L2′a2′b2 ′) color-adjusted by the color adjustment unit 24 are input to the gamut mapping unit 26. The gamut mapping unit 26 maps the color-adjusted sRGB and AdobeRGB data to the color gamut of the output device.

このとき、sRGBとAdobeRGBの共通領域では、見た目の印象がほぼ同じになるようにマッピングするようにする。ガマットマッピングされたデバイス非依存の(L1”a1”b1”)および(L2”a2”b2”)は、デバイスRGB算出部27に入力される。ここでは、入力された(L1”a1”b1”)および(L2”a2”b2”)に対応するデバイスRGBが算出される。(L1”a1”b1”)に対応するデバイスRGBは、sRGBデータ用色変換テーブル28として出力される。また、(L2”a2”b2”)に対応するデバイスRGBは、AdobeRGBデータ用色変換テーブル29として出力される。   At this time, in the common region of sRGB and AdobeRGB, mapping is performed so that the visual impression is almost the same. The device-independent (L1 ″ a1 ″ b1 ″) and (L2 ″ a2 ″ b2 ″) that are gamut mapped are input to the device RGB calculation unit 27. Here, the device RGB corresponding to the input (L1 ″ a1 ″ b1 ″) and (L2 ″ a2 ″ b2 ″) is calculated. The device RGB corresponding to (L1 ″ a1 ″ b1 ″) is output as the color conversion table for sRGB data 28. The device RGB corresponding to (L2 ″ a2 ″ b2 ″) is the color conversion table for AdobeRGB data. 29 is output.

次に、色調整部24で行なわれる色調整について詳細に説明する。   Next, the color adjustment performed by the color adjustment unit 24 will be described in detail.

まず、共通パラメータ格納部に格納されているパラメータを説明する。   First, parameters stored in the common parameter storage unit will be described.

格納されているパラメータは以下の6個である。即ち、
(1)出力デバイスの黒、白のL*a*b*値
(2)L*a*b*空間における45°刻みの色相方向の拡大・縮小率
(3)PrimaryColor(原色)の変化量ΔL、ΔC、Δh
(4)グレイライン目標色度a*、b*
(5)肌色領域のa*方向、b*方向の拡大・縮小率
(6)全体一律のシフト量ΔL、Δa、Δb
である。
The following six parameters are stored. That is,
(1) Black and white L * a * b * values of the output device (2) Hue direction enlargement / reduction ratio in 45 ° increments in L * a * b * space (3) Primary color (primary color) change ΔL , ΔC, Δh
(4) Gray line target chromaticity a *, b *
(5) Enlargement / reduction ratio of skin color area in a * direction and b * direction (6) Uniform shift amounts ΔL, Δa, Δb
It is.

(2)の45°刻みの色相方向とは、図4に示すように、L*a*b*空間のa*−b*平面のa*>0、b=0の線上を0°とし、0°、45°、90°、135°、180°、225°、270°、315°の8つの色相方向のことをいう。   As shown in FIG. 4, the hue direction in increments of 45 ° in (2) is 0 ° on the line a *> 0 and b = 0 in the a * -b * plane of the L * a * b * space. The eight hue directions are 0 °, 45 °, 90 °, 135 °, 180 °, 225 °, 270 °, and 315 °.

また、(3)のPrimaryColorとは、1画素データのビット数を“8”とした場合、以下の6つのRGB値に対応する色のことを指す。即ち、
(ア)Red(赤) :(R,G,B)=(255, 0, 0)
(イ)Green(緑) :(R,G,B)=( 0, 255, 0)
(ウ)Blue(青) :(R,G,B)=( 0, 0, 255)
(エ)Cyan(シアン) :(R,G,B)=( 0, 255, 255)
(オ)Magenta(マゼンタ) :(R,G,B)=(255, 0, 255)
(カ)Yellow(イエロ) :(R,G,B)=(255, 255, 0)
図5は色調整部24で行なわれる色調整処理を示すフローチャートである。
Further, (3) PrimaryColor indicates a color corresponding to the following six RGB values when the number of bits of one pixel data is “8”. That is,
(A) Red (red): (R, G, B) = (255, 0, 0)
(I) Green: (R, G, B) = (0, 255, 0)
(C) Blue (blue): (R, G, B) = (0, 0, 255)
(D) Cyan: (R, G, B) = (0, 255, 255)
(E) Magenta: (R, G, B) = (255, 0, 255)
(F) Yellow: (R, G, B) = (255, 255, 0)
FIG. 5 is a flowchart showing color adjustment processing performed by the color adjustment unit 24.

ステップS501は入力されたデバイス非依存のデータ(L*a*b*)に対して、出力デバイスの黒と白の(L*a*b*)のL*値によって圧縮・伸張を行なうステップである。例えば、このステップでは、入力されたデータのL*値を、出力デバイスの黒と白のL*値の間に線形に圧縮・伸張を行なう。   In step S501, the input device-independent data (L * a * b *) is compressed / decompressed according to the L * value of black and white (L * a * b *) of the output device. is there. For example, in this step, the L * value of the input data is linearly compressed / expanded between the black and white L * values of the output device.

ステップS502は45°刻みの色相方向の拡大・縮小を行なうステップである。このステップでは、まず、0°から359°までの1°刻みの拡大・縮小率テーブルを用意する。そして、0°、45°、90°、135°、180°、225°、270°、315°に位置する拡大・縮小率テーブルのテーブル値に共通パラメータ格納部25に格納している45°刻みの拡大・縮小率のパラメータを設定する。そして、45°刻み以外の拡大・縮小率テーブルのテーブル値には、補間計算によりテーブル値を求める。このようにして求めた拡大・縮小率テーブルに従って、入力される全ての(L*a*b*)に対して拡大・縮小を行なう。このとき、L*値はそのままとし、a*、b*値に対してのみ拡大・縮小を行なうものとする。   Step S502 is a step of performing enlargement / reduction in the hue direction in increments of 45 °. In this step, first, an enlargement / reduction ratio table in increments of 1 ° from 0 ° to 359 ° is prepared. Then, 45 ° increments stored in the common parameter storage unit 25 in the table values of the enlargement / reduction ratio table located at 0 °, 45 °, 90 °, 135 °, 180 °, 225 °, 270 °, 315 ° Set the parameter of the enlargement / reduction ratio. Then, for the table values of the enlargement / reduction ratio table other than 45 ° increments, a table value is obtained by interpolation calculation. In accordance with the enlargement / reduction ratio table obtained in this way, all input (L * a * b *) are enlarged / reduced. At this time, the L * value is left as it is, and only the a * and b * values are enlarged / reduced.

ステップS503はPrimaryColorの色相(Δh)、明度(ΔL)、彩度(ΔC)を調整するステップである。   Step S503 is a step of adjusting the hue (Δh), lightness (ΔL), and saturation (ΔC) of PrimaryColor.

このステップでは、まず色相を調整する。   In this step, the hue is first adjusted.

色相の0°から359°までの1°刻みの色相変化量テーブルを用意しておき、PrimaryColor6色が位置する色相角(X°)の位置に共通パラメータ格納部25に格納しているパラメータ(Δh)を設定する。PrimaryColor以外のテーブル値に関しては、補間計算により算出し、色相変化量テーブルを作成する。この色相変化量テーブルに従って、入力される全てのL*a*b*に対して色相の調整を行なう。このときも、L*値はそのままとし、a*、b*値に対してのみ変換を行なうものとする。   A hue change amount table in increments of 1 ° from 0 ° to 359 ° of hue is prepared, and the parameter (Δh) stored in the common parameter storage unit 25 at the position of the hue angle (X °) where the six primary colors are located. ) Is set. Table values other than PrimaryColor are calculated by interpolation calculation to create a hue change amount table. According to this hue change amount table, the hue is adjusted for all input L * a * b *. Also at this time, the L * value is left as it is, and conversion is performed only for the a * and b * values.

次に、明度を調整する。   Next, the brightness is adjusted.

色相の0°から359°までの1°刻みの明度変化量テーブルを用意しておき、色相調整後のPrimaryColor6色が位置する色相角(X°)の位置に共通パラメータ格納部25に格納しているパラメータ(ΔL)を設定する。PrimaryColor以外のテーブル値に関しては、補間計算により算出し、明度変化量テーブルを作成する。この明度変化量テーブルに従って色相調整後のL*a*b*データに対して明度の調整を行なう。このとき、a*、b*値はそのままとし、L*値のみ調整を行なうものとする。明度変化量は、指定の色相角の最大彩度において明度変化量テーブルの値の変化をするものとし、彩度が低くなるに従って、変化量も小さくなるように明度を調整する。   A brightness change amount table in increments of 1 ° from 0 ° to 359 ° of hue is prepared and stored in the common parameter storage unit 25 at the position of the hue angle (X °) where the six primary colors after hue adjustment are located. Parameter (ΔL) is set. Table values other than PrimaryColor are calculated by interpolation calculation to create a brightness change amount table. The brightness is adjusted for the L * a * b * data after the hue adjustment according to the brightness change amount table. At this time, the a * and b * values are left as they are, and only the L * value is adjusted. The lightness change amount changes the value of the lightness change amount table at the maximum saturation of the specified hue angle, and the lightness is adjusted so that the change amount decreases as the saturation decreases.

最後に、彩度を調整する。   Finally, adjust the saturation.

色相の0°から359°までの1°刻みの彩度変化量テーブルを用意しておき、明度調整後のPrimaryColor6色が位置する色相角(X°)の位置に共通パラメータ格納部25に格納しているパラメータ(ΔC)を設定する。PrimaryColor以外のテーブル値に関しては、補間計算により算出し、彩度変化量テーブルを作成する。この彩度変化量テーブルに従って明度調整後のL*a*b*データに対して明度の調整を行なう。このとき、L*値はそのままとし、a*、b*値に対してのみ調整を行なう。彩度変化量は、指定の色相角の最大彩度において彩度変化量テーブルの値の変化を行なうものとし、彩度が低くなるに従って、変化量も小さくなるように彩度を調整する。   A saturation change amount table in increments of 1 ° from 0 ° to 359 ° of hue is prepared, and stored in the common parameter storage unit 25 at the position of the hue angle (X °) where the six primary colors after brightness adjustment are located. Parameter (ΔC) is set. Table values other than PrimaryColor are calculated by interpolation calculation to create a saturation change amount table. The brightness is adjusted for the L * a * b * data after the brightness adjustment according to the saturation change amount table. At this time, the L * value is left as it is, and only the a * and b * values are adjusted. As the saturation change amount, the value of the saturation change table is changed at the maximum saturation of the specified hue angle, and the saturation is adjusted so that the change amount becomes smaller as the saturation becomes lower.

ステップS504はグレイラインを調整するステップである。ステップS503から出力された(L*a*b*)データに対して、黒、白を出力デバイスの黒、白の(L*a*b*)値に変換する。そして、中間調のグレイラインのa*、b*値が、共通パラメータ格納部25に格納されている目標グレイ色度a*、b*値になるように調整する。このときも、L*値はそのままとし、a*、b*値に対してのみ調整を行なう。また、黒、グレイ、白が連続的につながるように調整を行なう。   Step S504 is a step of adjusting the gray line. For the (L * a * b *) data output from step S503, black and white are converted to the black and white (L * a * b *) values of the output device. Then, adjustment is performed so that the a * and b * values of the halftone gray line become the target gray chromaticity values a * and b * stored in the common parameter storage unit 25. Also at this time, the L * value is left as it is, and adjustment is performed only for the a * and b * values. In addition, adjustment is performed so that black, gray, and white are continuously connected.

ステップS505は肌色領域の調整を行なうステップである。ステップS504から出力されたL*a*b*データに対して、a*>0、かつ、b*>0、かつ、C*=(a*×a*+b*×b*)1/2<45の領域を肌色領域とみなす。そして、その肌色領域に位置するデータのa*、b*値に対して、a*方向、b*方向に拡大・縮小を行なって調整を行なう。肌色領域の黄色味を調整したい場合は、b*方向の拡大・縮小率を調整し、肌色領域の赤味を調整したい場合は、a*方向の拡大・縮小率を調整する。   Step S505 is a step of adjusting the skin color area. For the L * a * b * data output from step S504, a *> 0, b *> 0, and C * = (a * × a * + b * × b *) 1/2 < The 45 area is regarded as a skin color area. Then, the a * and b * values of the data located in the skin color area are adjusted by enlarging and reducing in the a * direction and the b * direction. If you want to adjust the yellowness of the skin color area, adjust the enlargement / reduction ratio in the b * direction. If you want to adjust the redness of the skin color area, adjust the enlargement / reduction ratio in the a * direction.

ステップS506は全体一律にシフトするステップである。共通パラメータ格納部25に格納されているパラメータ(ΔL、Δa、Δb)に従って、ステップS505から出力された全てのL*a*b*データに対して変換を行なう。   Step S506 is a step that shifts uniformly. In accordance with the parameters (ΔL, Δa, Δb) stored in the common parameter storage unit 25, all the L * a * b * data output from step S505 are converted.

以上のステップにより色調整が行なわれる。   Color adjustment is performed by the above steps.

なお、共通パラメータ格納部25に格納されるパラメータは、sRGB、或いはAdobeRGBのどちらかのデータを使って、入念にチューニングされたパラメータを格納するものとする。   Note that the parameters stored in the common parameter storage unit 25 are parameters that are carefully tuned using either sRGB or AdobeRGB data.

以上説明した実施例に従えば、両色空間の共通領域では見た目の印象がほぼ同じとなるようなカラープリンタのsRGB用とAdobeRGB用の色変換テーブルを簡単に作成することができる。   According to the embodiment described above, it is possible to easily create color conversion tables for sRGB and AdobeRGB for a color printer that have substantially the same visual impression in the common area of both color spaces.

カラープリンタにおける画像処理を示すフローチャートである。3 is a flowchart illustrating image processing in a color printer. 色変換テーブル作成方法の概要を表す図である。It is a figure showing the outline | summary of the color conversion table preparation method. 色変換テーブル(3次元ルックアップテーブル)を表すである。It represents a color conversion table (three-dimensional lookup table). 45°刻みの色相方向を示す図である。It is a figure which shows the hue direction of a 45 degree unit. 色調整処理を示すフローチャートである。It is a flowchart which shows a color adjustment process.

符号の説明Explanation of symbols

10 入力画像データ
11 入力ガンマ処理部
12 色変換処理部
13 インク色分解処理部
14 出力ガンマ処理部
15 ハーフトーン処理部
20 sRGBデータ
21 AdobeRGBデータ
22 sRGB→L*a*b*変換部
23 AdobeRGB→L*a*b*変換部
24 色調整部
25 共通パラメータ格納部
26 ガマットマッピング部
27 デバイスRGB算出部
28 sRGB用色変換テーブル
29 AdobeRGB用色変換テーブル
10 Input Image Data 11 Input Gamma Processing Unit 12 Color Conversion Processing Unit 13 Ink Color Separation Processing Unit 14 Output Gamma Processing Unit 15 Halftone Processing Unit 20 sRGB Data 21 AdobeRGB Data 22 sRGB → L * a * b * Conversion Unit 23 AdobeRGB → L * a * b * conversion unit 24 color adjustment unit 25 common parameter storage unit 26 gamut mapping unit 27 device RGB calculation unit 28 sRGB color conversion table 29 AdobeRGB color conversion table

Claims (9)

第一の入力色空間のデータと第二の入力色空間のデータとを任意の出力デバイスの色空間に変換する色変換方法であって、
前記第一の入力色空間のデータをデバイス非依存の色空間のデータに変換する第一の色空間変換工程と、
前記第二の入力色空間のデータを前記デバイス非依存の色空間のデータに変換する第二の色空間変換工程と
前記デバイス非依存の色空間のデータに対して複数のバラメータによって変換を行い、色調整を行なう色調整工程と、
前記色調整工程において色調整されたデータを前記出力デバイスの色再現範囲に合わせてガマットマッピングを行なうガマットマッピング工程と、
前記ガマットマッピングされたデータに対応する前記出力デバイス固有のデータを算出する工程とを有し、
前記第一及び第二の色空間変換工程における変換は、前記第一の入力色空間と前記第二の入力色空間の共通領域において共通した色再現となるような変換であり、
前記色調整工程において使われる前記複数のパラメータは、前記第一の入力色空間と前記第二の入力色空間で共通したパラメータであることを特徴とする色変換方法。
A color conversion method for converting data of a first input color space and data of a second input color space into a color space of an arbitrary output device,
A first color space conversion step of converting the data of the first input color space into data of a device-independent color space;
A second color space conversion step of converting the data of the second input color space into data of the device-independent color space, and converting the data of the device-independent color space by a plurality of parameters, A color adjustment process for color adjustment;
A gamut mapping step for performing gamut mapping in accordance with the color reproduction range of the output device with the data color-adjusted in the color adjustment step;
Calculating data specific to the output device corresponding to the gamut-mapped data,
The conversion in the first and second color space conversion steps is conversion that results in a common color reproduction in a common area of the first input color space and the second input color space.
The color conversion method, wherein the plurality of parameters used in the color adjustment step are parameters common to the first input color space and the second input color space.
前記第一の入力色空間と前記第二の入力色空間のデータはRGBデータであることを特徴とする請求項1に記載の色変換方法。   The color conversion method according to claim 1, wherein the data of the first input color space and the second input color space is RGB data. 前記第一の入力色空間と前記第二の入力色空間のRGBCMYの色相は、ほぼ同じ色相であることを特徴とする請求項1又は2記載の色変換方法。   3. The color conversion method according to claim 1, wherein RGBCMY hues of the first input color space and the second input color space are substantially the same hue. 前記デバイス非依存の色空間はL*a*b*空間であることを特徴とする請求項1に記載の色変換方法。   The color conversion method according to claim 1, wherein the device-independent color space is an L * a * b * space. 前記色調整工程において使用される前記複数のパラメータには、
黒、白の色調整後のL*a*b*値と、
L*a*b*空間における45°刻みの各色相方向の拡大・縮小率と、
入力色空間のRGB値で、RGBCMYの代表色の位置に対応する前記デバイス非依存のデータの変化量ΔL*C*hと、
グレイラインの目標色度a*、及びb*と、
肌色領域のa*方向、b*方向の拡大・縮小率と、
全体のシフト量ΔL*a*b*と、
が含まれることを特徴とする請求項1に記載の色変換方法。
The plurality of parameters used in the color adjustment step include
L * a * b * values after color adjustment of black and white,
The enlargement / reduction ratio in each hue direction in 45 ° increments in L * a * b * space,
The device-independent data change amount ΔL * C * h corresponding to the position of the RGBCMY representative color in the RGB value of the input color space;
Gray line target chromaticity a * and b *,
The enlargement / reduction ratio in the a * direction and b * direction of the skin color area,
Overall shift amount ΔL * a * b *,
The color conversion method according to claim 1, further comprising:
前記色調整工程では、
前記黒、白の色調整後のL*a*b*値のパラメータによる明度方向の色調整、
L*a*b*空間における45°刻みの色相方向の拡大・縮小、
RGBCMYの代表色位置の明度、彩度、色相調整、
前記グレイラインの色度調整、
肌色領域の色調整、及び
全体のシフト、
の順に、色調整を行なうことを特徴とする請求項5に記載の色変換方法。
In the color adjustment step,
Color adjustment in the lightness direction by the L * a * b * value parameter after the black and white color adjustment,
Expansion / reduction of hue direction in 45 ° increments in L * a * b * space,
RGBCMY representative color position brightness, saturation, hue adjustment,
Chromaticity adjustment of the gray line,
Skin color area color adjustment and overall shift,
The color conversion method according to claim 5, wherein color adjustment is performed in the order of.
前記L*a*b*空間における45°刻みの色相方向の拡大・縮小では、45°刻みに指定されている拡大・縮小率から、全色相の拡大・縮小率を補間計算により算出し、各色相で連続したつながりを持つように拡大・縮小されることを特徴とする請求項5に記載の色変換方法。   In the enlargement / reduction in the hue direction in 45 ° increments in the L * a * b * space, the enlargement / reduction rate of all hues is calculated by interpolation calculation from the enlargement / reduction rate specified in 45 ° increments. 6. The color conversion method according to claim 5, wherein the color conversion method is performed so as to be expanded or reduced so as to have a continuous connection in hue. 前記RGBCMYの代表色位置の明度、彩度、色相調整では、代表色以外のデータに対して、代表色との相対的な位置関係により、明度、彩度、色相の調整量を補間計算により算出し、すべての領域において連続したつながりを持つように明度、彩度、色相が調整されることを特徴とする請求項6に記載の色変換方法。   In the RGBCMY representative color position brightness, saturation, and hue adjustment, the lightness, saturation, and hue adjustment amounts are calculated by interpolation calculation based on the relative positional relationship with the representative color for data other than the representative color. The color conversion method according to claim 6, wherein brightness, saturation, and hue are adjusted so as to have continuous connections in all regions. 前記肌色領域の色調整では、
a*>0、かつ、b*>0、かつ、
C*=(a*×a*+b*×b*)1/2)<45の領域を肌色領域とみなし、
該肌色領域に位置するデータのa*,、b*値に対して、a*方向、b*方向に拡大・縮小をおこなうことを特徴とする請求項6記載の色変換方法。
In the color adjustment of the skin color area,
a *> 0, b *> 0, and
C * = (a * × a * + b * × b *) 1/2) <45 is regarded as a skin color region,
7. The color conversion method according to claim 6, wherein the a * and b * values of the data located in the skin color area are enlarged / reduced in the a * direction and the b * direction.
JP2005313160A 2005-10-27 2005-10-27 Color conversion method Withdrawn JP2007124243A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005313160A JP2007124243A (en) 2005-10-27 2005-10-27 Color conversion method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005313160A JP2007124243A (en) 2005-10-27 2005-10-27 Color conversion method

Publications (1)

Publication Number Publication Date
JP2007124243A true JP2007124243A (en) 2007-05-17

Family

ID=38147601

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005313160A Withdrawn JP2007124243A (en) 2005-10-27 2005-10-27 Color conversion method

Country Status (1)

Country Link
JP (1) JP2007124243A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009010893A (en) * 2007-06-29 2009-01-15 Canon Inc Image processing method and image processor
JP2009170999A (en) * 2008-01-11 2009-07-30 Sharp Corp Display device
JP2010114748A (en) * 2008-11-07 2010-05-20 Ricoh Co Ltd Image processor, image processing method, program and recording medium
CN104144332A (en) * 2013-05-09 2014-11-12 华硕电脑股份有限公司 Image color adjusting method and electronic device using the same
JP2014220815A (en) * 2013-05-09 2014-11-20 華碩電腦股▲ふん▼有限公司ASUSTeK COMPUTER INC. Image color adjusting method and electronic device using the same

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009010893A (en) * 2007-06-29 2009-01-15 Canon Inc Image processing method and image processor
US8503775B2 (en) 2007-06-29 2013-08-06 Canon Kabushiki Kaisha Image processing method and image processing apparatus
JP2009170999A (en) * 2008-01-11 2009-07-30 Sharp Corp Display device
JP2010114748A (en) * 2008-11-07 2010-05-20 Ricoh Co Ltd Image processor, image processing method, program and recording medium
CN104144332A (en) * 2013-05-09 2014-11-12 华硕电脑股份有限公司 Image color adjusting method and electronic device using the same
JP2014220815A (en) * 2013-05-09 2014-11-20 華碩電腦股▲ふん▼有限公司ASUSTeK COMPUTER INC. Image color adjusting method and electronic device using the same

Similar Documents

Publication Publication Date Title
US7403205B2 (en) Fast primary mapping and gamut adaptation to construct three dimensional lookup tables
EP1909486B1 (en) Method and apparatus for performing gamut mapping between heterogeneous devices
US8045222B2 (en) Image processing method, image processing apparatus, computer program product, and recording medium for image processing
JP4308392B2 (en) Digital image processing method and mapping method
JP4565642B2 (en) Image processing method and image processing apparatus
JPH11341296A (en) Color area conversion method and color area converter
US20060244983A1 (en) Fast color mapping using primary adjustment with gamut adaptation
US8477366B2 (en) Apparatus, method and medium outputting wide gamut space image
JP2007110724A (en) Method and apparatus for converting input color space into cmyk color space
JP2007124243A (en) Color conversion method
JP5117140B2 (en) Image forming apparatus, color data conversion method, and color data conversion program
JP2012253774A (en) Color printing method and color printing system
JP2001036757A5 (en)
US20080049275A1 (en) Image adjusting device
JP4411961B2 (en) Image processing apparatus, image processing method, and image processing program
JP2005191808A (en) Image processing apparatus, image processing method, and image processing program
JP2006238025A (en) Image processor and method for color transformation
JP2005184601A (en) Apparatus, method and program for image processing
JP4051919B2 (en) Color image signal processing apparatus, color image signal processing method, and color image signal processing program
JP2000184221A (en) Image processor and image processing method
JP2007243957A (en) System, method and program for extracting gray information from color image data
JP4081773B2 (en) Color printing system and color printer
JP4569484B2 (en) Image processing device
JP4023188B2 (en) Color image processing apparatus, color image processing method, and color image processing program
JP6665559B2 (en) Calculation device and computer program

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20090106