JP5043512B2 - Color processing apparatus and method - Google Patents

Color processing apparatus and method Download PDF

Info

Publication number
JP5043512B2
JP5043512B2 JP2007140560A JP2007140560A JP5043512B2 JP 5043512 B2 JP5043512 B2 JP 5043512B2 JP 2007140560 A JP2007140560 A JP 2007140560A JP 2007140560 A JP2007140560 A JP 2007140560A JP 5043512 B2 JP5043512 B2 JP 5043512B2
Authority
JP
Japan
Prior art keywords
color
dst
primaries
src
gbd
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.)
Expired - Fee Related
Application number
JP2007140560A
Other languages
Japanese (ja)
Other versions
JP2008294927A (en
Inventor
秀恭 鈴木
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 JP2007140560A priority Critical patent/JP5043512B2/en
Publication of JP2008294927A publication Critical patent/JP2008294927A/en
Application granted granted Critical
Publication of JP5043512B2 publication Critical patent/JP5043512B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

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

Description

本発明は、カラーマッチング処理を行うものに関する。   The present invention relates to a device that performs color matching processing.

ディスプレイやプリンタといった入出力のデバイスのもつ特性を最大限活用するために、デバイスの特性を生かしつつ、デバイス間で色の見えを管理する、カラーマネジメントシステムが存在している。このカラーマネージメントシステムでは、入出力デバイスの色再現範囲(色域情報)や、Red, Green, Blue, Cyan, Magenta, Yellow, White, Blackといったプライマリカラー情報(基準色)、デバイスのグレー特性情報等を手がかりに適切な色域変換処理を行う。   In order to make maximum use of the characteristics of input / output devices such as displays and printers, there is a color management system that manages the appearance of colors between devices while taking advantage of the characteristics of the devices. In this color management system, color reproduction range (color gamut information) of input / output devices, primary color information (reference colors) such as Red, Green, Blue, Cyan, Magenta, Yellow, White, Black, device gray characteristic information, etc. Appropriate color gamut conversion processing is performed using this as a clue.

このようなカラーマネジメントシステムにおいては、複数の色域変換処理ソフトウェアモジュールが用意され、用途など(例えば、写真出力、グラフィックスデータ出力、文字出力)に応じて、ユーザが選択できるように構成されている。   In such a color management system, a plurality of color gamut conversion processing software modules are prepared, and are configured to be selectable by the user according to usage (for example, photo output, graphics data output, character output). Yes.

ところで、デバイスの色域情報等は、当該デバイスに添付されインストールされたソフトウェアモジュール(ドライバ)に添付されている場合もあれば、ユーザがソフトウェアアプリケーションを用いて作成する場合もある。要するに色域変換処理ソフトウェアモジュールの外部で定義され、色域変換処理ソフトウェアモジュールは与えられたデバイス色域情報に従って色域変換処理を行うことになる。   By the way, the color gamut information and the like of a device may be attached to a software module (driver) attached and installed to the device, or may be created by a user using a software application. In short, it is defined outside the color gamut conversion processing software module, and the color gamut conversion processing software module performs the color gamut conversion processing according to the given device color gamut information.

一方、特許文献1によれば、色域変換ソフトウェアモジュールにおいて写像される作業色空間の形状に起因して生じる、色再現の不都合を回避して良好な色再現を可能とするために、プリンタの色再現範囲の色を総て含むように3つの原色の色を(色度図上で)決定することで、(色度図上で)十分に広い作業色空間を規定することができる。
特開2006−303711号公報
On the other hand, according to Patent Document 1, in order to avoid the inconvenience of color reproduction caused by the shape of the working color space mapped by the color gamut conversion software module, and to enable good color reproduction, By determining the three primary colors (on the chromaticity diagram) so as to include all the colors in the color reproduction range, a sufficiently wide working color space can be defined (on the chromaticity diagram).
JP 2006-303711 A

ここで問題となるのは、入出力デバイスの色域情報や基準色、グレー特性情報の間の整合関係が、常に色域変換処理が想定している整合関係を満たしているとは限らないことにある。   The problem here is that the consistency between the color gamut information, reference color, and gray characteristic information of the input / output devices does not always satisfy the consistency expected by the color gamut conversion process. It is in.

例えば、出力デバイスの基準色が、何らかの障害によって、入力デバイスの基準色が入力デバイスの色域内部や外部に配置されていたることがあり得る。この場合、色域変換処理のアルゴリズムによっては、マッピング結果が破綻してしまう。   For example, the reference color of the output device may be arranged inside or outside the color gamut of the input device due to some failure. In this case, depending on the color gamut conversion processing algorithm, the mapping result may fail.

入力デバイスの基準色Red(赤),Green(緑),Blue(青),Cyan(シアン),Magenta(マゼンタ),Yellow(黄色),White(白),Black(黒)を、出力デバイスの基準色Red,Green,Blue,Cyan,Magenta,Yellow,White,Blackにマッピングする色域変換処理のアルゴリズムが知られている。このアルゴリズムは、基準色以外の色に関しては基準色のマッピング結果を補間する。このようなアルゴリズムにおいて、基準色において整合関係を満たしていない場合は、基準色自体のマッピングと、補間計算による基準色近傍のマッピングの間に食い違いが発生するなどして、全体としてマッピングが破綻してしまう場合があった。   Input device reference colors Red (red), Green (green), Blue (blue), Cyan (cyan), Magenta (magenta), Yellow (yellow), White (white), Black (black) A color gamut conversion algorithm that maps to the colors Red, Green, Blue, Cyan, Magenta, Yellow, White, and Black is known. This algorithm interpolates the mapping result of the reference color for colors other than the reference color. In such an algorithm, if the matching relationship is not satisfied in the reference color, there is a discrepancy between the mapping of the reference color itself and the mapping of the vicinity of the reference color by interpolation calculation, and the mapping fails as a whole. There was a case.

更に、入力デバイスの基準色を出力デバイスの基準色にマッピングしない色域変換処理のアルゴリズムの場合であっても、デバイスの基準色を用いてなんらかの処理を行う場合には、同様にマッピング結果が破綻する場合があった。   Furthermore, even in the case of a gamut conversion algorithm that does not map the input device reference color to the output device reference color, if any processing is performed using the device reference color, the mapping result is similarly broken. There was a case.

一方、既述の特開2006−303711による技術は、基準色(文中では原色)が作業色空間を規定する場合における当該基準色の選び方である。そして、本願のように十分に広く定義された作業色空間にマッピングされたデバイスの色域の外に基準色が存在しているといった、入出力デバイスの特性情報の非整合への対処を考慮したものではない。   On the other hand, the technique disclosed in Japanese Patent Laid-Open No. 2006-303711 is a method of selecting a reference color when the reference color (primary color in the sentence) defines a work color space. Considering the handling of inconsistencies in input / output device characteristic information such as the presence of a reference color outside the device color gamut mapped to a sufficiently wide working color space as in the present application It is not a thing.

本発明は、上述の課題を解決するために、デバイスにおける基準色を取得する取得手段と、前記取得手段によって取得された一つ以上の基準色が、前記デバイスの色再現範囲の表面に存在しているか否かを、前記デバイスの色再現範囲の表面を表す幾何情報に基づき判定する判定手段と、前記判定手段によって、前記基準色が表面に存在していないと判定された場合に、該基準色を前記デバイスの色再現範囲の表面に位置する色に再配置する再配置手段とを有することを特徴とする。 In order to solve the above-described problem, the present invention provides an acquisition unit that acquires a reference color in a device, and one or more reference colors acquired by the acquisition unit exist on the surface of the color reproduction range of the device. Determining means based on geometric information representing the surface of the color reproduction range of the device, and when the reference means determines that the reference color does not exist on the surface , the reference Rearrangement means for rearranging colors to colors located on the surface of the color reproduction range of the device.

本発明によって、入出力デバイス色域情報で与えられた情報の整合が取れていない場合であっても、好ましい色域変換処理を実現可能とするか、ないしは色域変換処理が破綻することを抑制することができる。   According to the present invention, even when the information given by the input / output device color gamut information is not consistent, a preferable color gamut conversion process can be realized or the color gamut conversion process is prevented from failing. can do.

(実施例1)
以下、実施形態の一例としての画像処理装置を、図面を参照して詳細に説明する。
Example 1
Hereinafter, an image processing apparatus as an example of an embodiment will be described in detail with reference to the drawings.

図1は、本実施例で用いるシステム構成の一例であり、sRGB色空間で表現されたデジタルデータをプリンタなどの出力デバイスにカラーマッチング色処理を行いながら出力するシステムである。本実施例で用いるシステムは、コンピュータとその周辺機器で構成することができる。   FIG. 1 shows an example of a system configuration used in this embodiment, which is a system that outputs digital data expressed in an sRGB color space to an output device such as a printer while performing color matching color processing. The system used in this embodiment can be composed of a computer and its peripheral devices.

CPU101は、中央処理装置である。ROM102は読み出し専用メモリであり、ランダムアクセスメモリRAM103とともに、バス104を介してCPU101に接続されている。CPU101は、ROM102ないしRAM103に格納されたプログラムを直接実行することができる。またバス104には、入力インターフェース105、HDDインターフェース107、ビデオインターフェース109、出力インターフェース111も接続されている。バス104は、その一部ないし全部が、イーサネット(登録商標)などの高速ネットワークデバイスや、PCIなどの周辺機器用インターフェースで構成されていてもよい。キーボードやマウス、デジカメ、スキャナなどの入力デバイス106は、入力インターフェース105を経由することで、CPU101から情報の読み込みが可能である。このとき、例えばデジカメのモデル名や色情報といった、デジカメ固有のデバイス情報も読み取り可能である。   The CPU 101 is a central processing unit. The ROM 102 is a read-only memory, and is connected to the CPU 101 via the bus 104 together with the random access memory RAM 103. The CPU 101 can directly execute a program stored in the ROM 102 or the RAM 103. An input interface 105, HDD interface 107, video interface 109, and output interface 111 are also connected to the bus 104. A part or all of the bus 104 may be configured by a high-speed network device such as Ethernet (registered trademark) or a peripheral device interface such as PCI. An input device 106 such as a keyboard, a mouse, a digital camera, or a scanner can read information from the CPU 101 via the input interface 105. At this time, device information unique to the digital camera, such as a digital camera model name and color information, can also be read.

ハードディスクデバイスや光ディスクデバイスなどの記憶媒体であるHDD108は、HDDインターフェース107を経由することで読み書き可能である。HDD108上に格納されたデータは、適当な手段を用いることで、RAM103上に展開することができる。同様に、適当な手段を用いることで、RAM103上に展開されているデータを、HDD108に保存可能である。CPU101は、上記のごとくRAM103上に展開されたHDD108に格納されたデータをプログラムとみなし、実行することも可能である。なお、該ROM102、RAM103、HDD108は、電話線やイーサネット(登録商標)などのネットワークで共有された装置であってもよい。本実施例においては、それらを特には区別しない。   The HDD 108, which is a storage medium such as a hard disk device or an optical disk device, can be read and written via the HDD interface 107. Data stored on the HDD 108 can be expanded on the RAM 103 by using an appropriate means. Similarly, the data developed on the RAM 103 can be stored in the HDD 108 by using an appropriate means. The CPU 101 can also execute the data stored in the HDD 108 expanded on the RAM 103 as described above as a program. The ROM 102, RAM 103, and HDD 108 may be devices shared by a network such as a telephone line or Ethernet (registered trademark). In the present embodiment, they are not particularly distinguished.

モニタ110上には、CPU101にビデオインターフェース109を操作させることで、任意の文字ないし画像を表示させることが可能である。プリンタやプロッタといった出力デバイス112は、出力インターフェース111を経由することで情報を送付することが可能である。入力デバイス106の場合同様に、CPU101は、出力インターフェース111を経由することで、出力デバイス112のモデル名や色域情報などの、プリンタ固有のデバイス情報を読み取ることも可能である。また、入力デバイス106や出力デバイス112は、ネットワーク共有されていてもよい。   Arbitrary characters or images can be displayed on the monitor 110 by causing the CPU 101 to operate the video interface 109. An output device 112 such as a printer or a plotter can send information via the output interface 111. Similarly to the case of the input device 106, the CPU 101 can also read device information unique to the printer such as the model name and color gamut information of the output device 112 via the output interface 111. Further, the input device 106 and the output device 112 may be shared over a network.

図2は、本実施例の全体図である。   FIG. 2 is an overall view of this embodiment.

図2において、制御部201は、後述する記憶部202に格納された各種情報を元に、入力変換部203、順変換部204、色域変換部205、逆変換部206、出力変換部207を制御することで、画像処理装置全体の一連の挙動を決定する。なお該制御部201は、ROM102やHDD108に格納されたソフトウェアモジュールの形態をとる場合が大半であり、適宜RAM101を使用するなどして処理を遂行することになるが、本実施例においてはその実施形態に関してこれ以上言及しない。記憶部202は、一時的ないし永続的に保存される前述ソフトウェアモジュールや各種情報の格納場所であって、実体はROM102、HDD108、RAM101の一部ないし全部である。格納される各種情報には、後述する色域変換部205で使用するSRC_RAW_PRIMARIES,DST_RAW_PRIMARIES,SRC_RAW_GBD,DST_RAW_GBD,SRC_GRAY,DST_GRAYを少なくとも含む。   In FIG. 2, the control unit 201 includes an input conversion unit 203, a forward conversion unit 204, a color gamut conversion unit 205, an inverse conversion unit 206, and an output conversion unit 207 based on various types of information stored in a storage unit 202 described later. By controlling, a series of behaviors of the entire image processing apparatus is determined. In most cases, the control unit 201 takes the form of a software module stored in the ROM 102 or the HDD 108, and performs processing using the RAM 101 as appropriate. No further mention will be made regarding the form. The storage unit 202 is a storage location for the software module and various information stored temporarily or permanently, and the entity is a part or all of the ROM 102, HDD 108, and RAM 101. The various information stored includes at least SRC_RAW_PRIMARIES, DST_RAW_PRIMARIES, SRC_RAW_GBD, DST_RAW_GBD, SRC_GRAY, and DST_GRAY used in the color gamut conversion unit 205 described later.

入力変換部203は、前述制御部201からの指示や白色点基準、入力プロファイルなどのパラメータに応じて、入力デバイスに依存した入力画像データを、入力側の環境光の白色点基準に基づくデバイスに依存しない色空間(例えばXYZデータ)に変換する変換機能である。処理に必要なパラメータは、前述制御部201から渡される。   The input conversion unit 203 converts the input image data depending on the input device into a device based on the white point reference of the ambient light on the input side in accordance with the parameters from the control unit 201, the white point reference, the input profile, and the like. This is a conversion function for converting into an independent color space (for example, XYZ data). Parameters necessary for processing are passed from the control unit 201 described above.

順変換部204は、前述入力変換部203から得られる色情報を、人間の色知覚空間JChやQMhへ変換するための色知覚モデルの順変換部(CAM)であり、CIECAM97sやCIECAM02等が広く知られている。順変換部204は前述入力変換部203同様変換機能であり、処理に必要なパラメータは、前述制御部201から渡される。詳細は、CIECAM97sやCIECAM02等を参照のこと
色域変換部205は、前述順変換部204から送付された色情報に対して、色域変換処理を行う変換処理部である。入出力デバイスの色域情報や基準色、グレー特性といった、色域変換処理に必要なパラメータは前述記憶部202に格納され、前述制御部201から渡される。色域変換処理には、環境光の基準白色に相対的な色知覚空間で行うに適した色域変換処理(例えばPerceptual、Relative Colorimetric、Saturation)や、照度レベルによって大きさの変化する絶対的な色知覚空間で行うに適した色域変換処理(例えばAbsolute Colorimetric)が含まれる。色域変換部205の動作の詳細は、後述する。
The forward conversion unit 204 is a color perception model forward conversion unit (CAM) for converting the color information obtained from the input conversion unit 203 into the human color perception space JCh or QMh. Are known. The forward conversion unit 204 has a conversion function similar to the input conversion unit 203, and parameters necessary for the processing are passed from the control unit 201. For details, refer to CIECAM97s, CIECAM02, etc. The color gamut conversion unit 205 is a conversion processing unit that performs color gamut conversion processing on the color information sent from the forward conversion unit 204. Parameters necessary for color gamut conversion processing, such as color gamut information, reference colors, and gray characteristics of input / output devices, are stored in the storage unit 202 and passed from the control unit 201. The color gamut conversion process includes a color gamut conversion process (for example, Perceptual, Relative Colorimetric, and Saturation) suitable for performing in a color perception space relative to the reference white color of ambient light, and an absolute value whose size varies depending on the illuminance level. A color gamut conversion process (for example, Absolute Colorimetric) suitable for performing in the color perception space is included. Details of the operation of the color gamut conversion unit 205 will be described later.

逆変換部206は前述順変換部204の逆変換を行う変換機能であり、色域変換部205の処理結果を、出力側の環境光の白色点基準に基づくデバイスに依存しない色空間上の色情報へ変換するための変換機能である。本変換部の処理結果である色情報は、後述出力変換部211に送られる。処理に必要なパラメータは、前述制御部201から渡される。詳細は、順変換部204同様、CIECAM97sやCIECAM02等を参照のこと。   The inverse conversion unit 206 is a conversion function that performs the reverse conversion of the above-described forward conversion unit 204, and the processing result of the color gamut conversion unit 205 is a color in a color space that does not depend on a device based on the white point criterion of the ambient light on the output side. This is a conversion function for converting to information. The color information that is the processing result of the conversion unit is sent to the output conversion unit 211 described later. Parameters necessary for processing are passed from the control unit 201 described above. For details, refer to CIECAM97s, CIECAM02, etc., like the forward conversion unit 204.

出力変換部207は、前述逆変換部206から送られてきた、出力側の環境光の白色点基準に基づくデバイスに依存しない色空間上の色情報を、出力デバイスに依存したCMYK色空間のごとき色空間上の色情報に変換機能を用いて変換する。処理に必要なパラメータは、前述制御部201から渡される。   The output conversion unit 207 transmits the color information on the device-independent color space based on the white point criterion of the ambient light on the output side sent from the inverse conversion unit 206 to the CMYK color space depending on the output device. Convert the color information in the color space using the conversion function. Parameters necessary for processing are passed from the control unit 201 described above.

ドライバ208は、出力デバイスを動作させるために必要なソフトウェアモジュールである。   The driver 208 is a software module necessary for operating the output device.

図3は、本実施例で用いる色域変換部205の処理内容を示すフローである。   FIG. 3 is a flowchart showing the processing contents of the color gamut conversion unit 205 used in this embodiment.

本色域変換機能においては、前述順変換部204からの入力が入力デバイスの基準色であった場合、間違いなく出力デバイスの対応した基準色にマッピングするために、入力が入力デバイスの基準色か否かで場合わけを行っている。これは、計算誤差の蓄積によって、入力デバイスの基準色が出力デバイスの対応する基準色にマッピングされない場合があるのを回避するための工夫の一つである。   In this color gamut conversion function, if the input from the forward conversion unit 204 is the reference color of the input device, whether or not the input is the reference color of the input device in order to map to the reference color corresponding to the output device without fail. There is a case. This is one of the ideas for avoiding the case where the reference color of the input device is not mapped to the corresponding reference color of the output device due to accumulation of calculation errors.

S301において、SRC_RAW_PRIMARIES,DST_RAW_PRIMARIES,SRC_RAW_GBD,DST_RAW_GBD,SRC_GRAY,DST_GRAYを記憶部202から読み込み、取得する。   In S301, SRC_RAW_PRIMARIES, DST_RAW_PRIMARIES, SRC_RAW_GBD, DST_RAW_GBD, SRC_GRAY, and DST_GRAY are read from the storage unit 202 and acquired.

図4に、入力デバイス基準色情報SRC_RAW_PRIMARIES,出力デバイス基準色情報DST_RAW_PRIMARIESの一例を示す。   FIG. 4 shows an example of the input device reference color information SRC_RAW_PRIMARIES and the output device reference color information DST_RAW_PRIMARIES.

本実施例におけるSRC_RAW_PRIMARIES,SRC_RAW_PRIMARIESは、各々のデバイスの基準色を、Red,Yellow,Green,Cyan,Blue,Magenta,White,Blackの順に格納した配列である。個々の色情報は、一つの明度値(J)と二つの色度値(a,b)からなる、3次元の直交座標系で記述されるとする。   SRC_RAW_PRIMARIES and SRC_RAW_PRIMARIES in this embodiment are arrays in which the reference colors of the respective devices are stored in the order of Red, Yellow, Green, Cyan, Blue, Magenta, White, and Black. It is assumed that each color information is described in a three-dimensional orthogonal coordinate system including one lightness value (J) and two chromaticity values (a, b).

図5に、入力デバイス色域情報SRC_RAW_GBD,出力デバイス色域情報DST_RAW_GBDの一例を示す。   FIG. 5 shows an example of input device color gamut information SRC_RAW_GBD and output device color gamut information DST_RAW_GBD.

SRC_RAW_GBD,DST_RAW_GBDは、デバイスの色域表面を構成する色情報の集合であり、本実施例においては、同様に図5で示したとおり、三角形の平面素片で構成された閉空間をなしていると認識する。   SRC_RAW_GBD and DST_RAW_GBD are collections of color information constituting the surface of the color gamut of the device. In this embodiment, as shown in FIG. 5, similarly, a closed space composed of triangular plane segments is formed. Recognize.

図6に、入力デバイスグレー特性情報SRC_GRAY、出力デバイスグレー特性情報DST_GRAYの一例を示す。   FIG. 6 shows an example of input device gray characteristic information SRC_GRAY and output device gray characteristic information DST_GRAY.

SRC_GRAY,DST_GRAYは、図6で示したように、デバイスのグレー特性を2色以上のグレー軸上の色で記述する情報である。   SRC_GRAY and DST_GRAY are information describing the gray characteristics of a device with two or more colors on the gray axis, as shown in FIG.

S302で、SRC_RAW_PRIMARIES,DST_RAW_PRIMARIESの、SRC_GRAYによる無彩色軸変換処理を,DST_RAW_GBD,DST_RAW_GBDのDST_GRAYによる無彩色軸変換処理を行う。無彩色軸変換処理の詳細は後述する。   In S302, an achromatic color axis conversion process by SRC_GRAY of SRC_RAW_PRIMARIES and DST_RAW_PRIMARIES and an achromatic color axis conversion process by DST_GRAY of DST_RAW_GBD and DST_RAW_GBD are performed. Details of the achromatic color axis conversion process will be described later.

S303において、SRC_PRIMARIES、DST_PRIMARIES、SRC_GBD、DST_GBDに関しては、ここで直交座標系(J,a,b)から、極座標系(J,C,h)に変換しておく。変換式は、例えば図7で示した式である。   In S303, SRC_PRIMARIES, DST_PRIMARIES, SRC_GBD, and DST_GBD are converted from the orthogonal coordinate system (J, a, b) to the polar coordinate system (J, C, h). The conversion formula is, for example, the formula shown in FIG.

S304で、SRC_PRIMARIESとDST_PRIMARIESの再配置を行う基準色再配置処理である。詳細は後述する。   In S304, reference color rearrangement processing is performed for rearranging SRC_PRIMARIES and DST_PRIMARIES. Details will be described later.

S305で、SRC_PRIMARIESから明度レンジ情報SRC_RANGEを、DST_PRIMARIESから明度レンジ情報DST_RANGEを計算する。本色域変換処理では、明度レンジは入力と出力各々に関する最小明度と最大明度からなり、SRC_GRAYとDST_GRAYの最大明度と最小明度が各々代入される。   In S305, brightness range information SRC_RANGE is calculated from SRC_PRIMARIES, and brightness range information DST_RANGE is calculated from DST_PRIMARIES. In this color gamut conversion process, the lightness range is composed of the minimum lightness and the maximum lightness for each of the input and output, and the maximum lightness and the minimum lightness of SRC_GRAY and DST_GRAY are respectively substituted.

S306で、色が入力されるのを待ち、入力され次第pInに格納してS307に遷移する。pInは、本実施例においては、明度値Jと、二つの色度値a,bからなるとする。   In step S306, the system waits for a color to be input, and stores it in pIn as soon as it is input, and proceeds to step S307. In this embodiment, pIn is composed of a lightness value J and two chromaticity values a and b.

S307で、pInに関して、S302同様の手順でpInのSRC_GRAYによる無彩色軸変換処理を行い、結果をp1に格納する。   In step S307, with respect to pIn, an achromatic color axis conversion process using SRC_GRAY of pIn is performed in the same manner as in S302, and the result is stored in p1.

S308で、p1を極座標系に変換しp2に格納する。変換式は図7に示した通りとする。   In S308, p1 is converted into a polar coordinate system and stored in p2. The conversion formula is as shown in FIG.

S309で、p2と等しい色がSRC_PRIMARIES上に存在している場合、当該インデックスをpCurrentに格納した上で、S315に遷移する。さもなければS310に遷移する。   In S309, when a color equal to p2 exists on SRC_PRIMARIES, the index is stored in pCurrent, and then the process proceeds to S315. Otherwise, the process proceeds to S310.

S309において、p2と等しい色がSRC_PRIMARIES上に存在していなかった場合、S310において、時計回りにSRC_PRIMARIES[pPrev]、p2、SRC_PRIMARIES[pNext]に並ぶpPrev,pNextを検索し決定する。そして、SRC_PRIMARIES[pPrev]とp1の色相差を計算しdPrevに、p1とSRC_PRIMARIES[pNext]の色相差を計算してdNextに格納する。
S311において、時計回りにDST_PRIMARIES[pPrev]とDST_PRIMARIES[pNext]の間にあって、dPrevとdNextの比率を保存する色相角を求め、p3.hに格納する。
In S309, if a color equal to p2 does not exist on SRC_PRIMARIES, in S310, pPrev and pNext aligned in SRC_PRIMARIES [pPrev], p2, SRC_PRIMARIES [pNext] are searched and determined. Then, the hue difference between SRC_PRIMARIES [pPrev] and p1 is calculated, and the hue difference between p1 and SRC_PRIMARIES [pNext] is calculated and stored in dNext.
In S311, a hue angle that is between DST_PRIMARIES [pPrev] and DST_PRIMARIES [pNext] and stores the ratio of dPrev and dNext is obtained in a clockwise direction, and p3. Store in h.

S312で、色相角p2.hにおけるSRC_GBDの最大彩度点を計算してsrcCuspに格納するとともに、色相角p3.hにおけるDST_GBDの最大彩度点を計算してdstCuspに格納する。最大彩度点を求める方法は、SRC_GBDやDST_GBD等のデバイス色域情報から、着目する色相に関する等色相面を切り出し、一番彩度の高い点をもって最大彩度点とする方法が広く用いられるが、詳細に関してはこれ以上詳説しない。   In S312, the hue angle p2. The maximum saturation point of SRC_GBD at h is calculated and stored in srcCusp, and the hue angle p3. The maximum saturation point of DST_GBD at h is calculated and stored in dstCusp. As a method for obtaining the maximum saturation point, a method is widely used in which an equal hue plane relating to a hue of interest is cut out from device color gamut information such as SRC_GBD and DST_GBD, and the point with the highest saturation is set as the maximum saturation point. The details are not detailed any further.

S313において、明度を計算し、p3.Jに格納する。例えば、以下のごとき計算を行う:
1)p2.J>srcCusp.Jの場合
p3.J=(DST_RANGE.JMaxdstCusp.J)/(SRC_RANGE.JMaxsrcCusp.J)*(p2.JsrcCusp.J)+DST_RANGE.JMin
2)p2.J==srcCusp.Jの場合
p3.J=dstCusp.J
3)p2.J<srcCusp.Jの場合
p3.J=(dstCusp.JDST_RANGE.JMin)/(srcCusp.JSRC_RANGE.JMin)*(srcCusp.JDST_RANGE.JMin)+DST_RANGE.JMin
S314で、最大彩度点における彩度srcCusp.C,dstCusp.Cの比率に応じて彩度圧縮を行い、p3.Cに格納した後、S316に遷移する。
In S313, the brightness is calculated, and p3. Store in J. For example, do the following calculations:
1) p2. J> srcCusp. In the case of J, p3. J = (DST_RANGE.JMaxdstCusp.J) / (SRC_RANGE.JMaxsrcCusp.J) * (p2.JsrcCusp.J) + DST_RANGE. JMin
2) p2. J == srcCusp. In the case of J, p3. J = dstCasp. J
3) p2. J <srcCusp. In the case of J, p3. J = (dstCusp.JDST_RANGE.JMin) / (srcCusp.JSRC_RANGE.JMin) * (srcCusp.JDST_RANGE.JMin) + DST_RANGE. JMin
In S314, the saturation srcCusp. C, dstCusp. Saturation compression is performed according to the ratio of C, and p3. After storing in C, the process proceeds to S316.

一方、S310でp2と等しい色がSRC_PRIMARIES上に存在していた場合、S315において、p3にDST_PRIMARIES[pCurrent]を格納し、S316に遷移する。   On the other hand, if a color equal to p2 exists on SRC_PRIMARIES in S310, DST_PRIMARIES [pCurrent] is stored in p3 in S315, and the process proceeds to S316.

S316で、p3を直交座標系に変換してp4に格納する。変換式は、例えば図8で示したようになる。   In S316, p3 is converted into an orthogonal coordinate system and stored in p4. The conversion formula is as shown in FIG. 8, for example.

S317で、p4に対して、DST_GRAYによる逆無彩色軸変換処理を行い、pOutに格納する。逆無彩色軸変換処理の内容に関しても後述する。   In S317, reverse achromatic color axis conversion processing by DST_GRAY is performed on p4, and stored in pOut. The contents of the reverse achromatic color axis conversion process will also be described later.

最後にS318でpOutを出力した後、S306に戻る。   Finally, after pOut is output in S318, the process returns to S306.

次に、S302,S307,S317で行っている、グレー特性情報GRAYによる色pColorの無彩色軸変換処理の詳細を、図9に示したフローを用いて説明する。   Next, details of the achromatic color axis conversion process of the color pColor based on the gray characteristic information GRAY performed in S302, S307, and S317 will be described using the flow shown in FIG.

図9は、S302,S306で言及した、グレー特性情報GRAYによる色pColorの無彩色軸変換処理を説明したフローである。本フローによる処理では、pColorは、一つの明度値Jと二つの色度値a,bを持つことを前提としている。   FIG. 9 is a flowchart illustrating the achromatic color axis conversion process of the color pColor based on the gray characteristic information GRAY referred to in S302 and S306. In the processing according to this flow, it is assumed that pColor has one lightness value J and two chromaticity values a and b.

S901において、pColorと同一明度(pColor.J)をもったGRAY上の点を、適当に内挿・外挿を行うことで決定し、pGrayに格納する。内挿・外挿の手段に関しては、広く行われている技術であるので、これ以上は言及しない。   In S901, a point on GRAY having the same brightness (pColor.J) as pColor is determined by appropriate interpolation and extrapolation, and stored in pGray. The interpolation / extrapolation means is a widely used technique and will not be discussed further.

S902において、pColorから、色度(a,b)を差し引き、結果をpOutに格納して無彩色軸変換処理を終了する。   In step S902, the chromaticity (a, b) is subtracted from pColor, the result is stored in pOut, and the achromatic color axis conversion process is terminated.

次に、S317で言及したグレー特性情報GRAYによる色pColorの逆無彩色軸変換処理の詳細を、図10に示したフローを用いて説明する。   Next, details of the reverse achromatic color axis conversion processing of the color pColor based on the gray characteristic information GRAY referred to in S317 will be described using the flow shown in FIG.

図10は、S317で言及したグレー特性情報GRAYによる色pColorの逆カイロプラクティ無彩色軸変換処理を説明したフローである。   FIG. 10 is a flowchart illustrating the inverse chiropractic achromatic color axis conversion processing of the color pColor based on the gray characteristic information GRAY referred to in S317.

S1001において、pColorと同一明度(pColor.J)をもったGRAY上の点を、適当に内挿・外挿を行うことで決定し、pGrayに格納する。   In S1001, a point on GRAY having the same brightness (pColor.J) as pColor is determined by appropriate interpolation and extrapolation, and stored in pGray.

S1002において、pGrayの色度を求め、各々a,bに格納する。   In S1002, the chromaticity of pGray is obtained and stored in a and b, respectively.

S1003において、pColorに、色度(a,b)を足しこみ、結果をpOutに格納して逆無彩色軸変換処理を終了する。   In step S1003, the chromaticity (a, b) is added to pColor, the result is stored in pOut, and the inverse achromatic color axis conversion process ends.

最後に、図3のS303で行っている、SRC_PRIMARIESとDST_PRIMARIESの再配置処理の詳細を、図11に示したフローを用いて説明する。   Finally, details of the SRC_PRIMARIES and DST_PRIMARIES rearrangement processing performed in S303 of FIG. 3 will be described using the flow shown in FIG.

図11は、S303で言及した、SRC_PRIMARIESとDST_PRIMARIESの再配置処理の一例を示す処理フローである。   FIG. 11 is a process flow showing an example of the rearrangement process of SRC_PRIMARIES and DST_PRIMARIES referred to in S303.

S1101において、SRC_PRIMARIES上の、WとBkを除いたRGBCMYに関して処理が終っているかチェックする。終了していればS1105に遷移し、処理残があればS1102に遷移する。   In S1101, it is checked whether the processing is finished for RGBCMY on SRC_PRIMARIES excluding W and Bk. If completed, the process proceeds to S1105, and if there is a process remaining, the process proceeds to S1102.

S1102においてSRC_PRIMARIESからRGBCMYのいずれかの基準色を取り出し、pColorに読み込む。   In S1102, one of RGBCMY reference colors is extracted from SRC_PRIMARIES and read into pColor.

S1103において、pColorがSRC_GBDの表面近傍に存在しているか否かがチェックされる。もしも表面近傍にあればS1101に戻り、近傍になければS1104に進む。ここで、色域を表す、SRC_GBDのごとき幾何情報から、ある色(点)が色域内にあるのか外にあるのか、といった判定を行う処理は、3次元グラフィックスなどの分野で広く行われている技術と同じであるので、ここではこれ以上詳説しない。   In S1103, it is checked whether or not pColor exists in the vicinity of the surface of SRC_GBD. If it is near the surface, the process returns to S1101, and if it is not close, the process proceeds to S1104. Here, processing for determining whether a certain color (point) is in or out of the color gamut from geometric information such as SRC_GBD representing the color gamut is widely performed in fields such as three-dimensional graphics. Since it is the same as the existing technology, no further details will be given here.

S1104において、pColorと同一色相をもったSRC_GBDの表面色のなかで、彩度値が最大となる点(最大彩度点)を探し、pColorにセットする。最大彩度点を算出する処理も広く行われていることであるので、ここではこれ以上詳説しない。   In S1104, a point having the maximum saturation value (maximum saturation point) is searched for among the surface colors of SRC_GBD having the same hue as that of pColor, and is set in pColor. Since the process of calculating the maximum saturation point is also widely performed, no further details will be given here.

S1105において、pColorをSRC_PRIMARIESに書き出してS1101に戻る。   In S1105, pColor is written in SRC_PRIMARIES, and the process returns to S1101.

S1101においてSRC_PRIMARIES上のRGBCMY全てに関して処理が終っていた場合、S1106以降で、DST_PRIMARIESに関しても同様の処理を行う。具体的には、S1106において、DST_PRIMARIES上のWとBkを除いたRGBCMY全てに関して処理が終っているかチェックする。終了していれば処理を終了し、処理残があればS1107に遷移する。   If the processing for all RGBCMY on SRC_PRIMARIES has been completed in S1101, the same processing is performed for DST_PRIMARIES in S1106 and thereafter. Specifically, in S1106, it is checked whether the processing has been completed for all RGBCMY except for W and Bk on DST_PRIMARIES. If completed, the process ends. If there is a process remaining, the process proceeds to S1107.

S1107においてSRC_PRIMARIESからRGBCMYのいずれかの基準色を取り出し、pColorに読み込む。   In S1107, one of RGBCMY reference colors is extracted from SRC_PRIMARIES and read into pColor.

S1108において、pColorがSRC_GBDの表面近傍に存在しているか否かがチェックされる。もしも表面近傍にあればS1106に戻り、近傍になければS1109に進む。   In S1108, it is checked whether or not pColor exists in the vicinity of the surface of SRC_GBD. If it is near the surface, the process returns to S1106, and if it is not near, the process proceeds to S1109.

S1109において、pColorと同一色相をもったDST_GBDの表面色のなかで、彩度値が最大となる点(最大彩度点)を探し、pColorにセットする。   In S1109, a point having the maximum saturation value (maximum saturation point) is searched for among the surface colors of DST_GBD having the same hue as pColor, and is set to pColor.

S1110において、pColorをDST_PRIMARIESに書き出してS1106に戻る。   In S1110, pColor is written to DST_PRIMARIES and the process returns to S1106.

図12〜図25を用いて、出力デバイスの基準色Blueが出力デバイスの色域外にあった場合に、出力デバイスの基準色Blueとして与えられた基本色を再配置することにより、入力デバイスの基準色Blueとその近傍色の色域変換結果の間に破綻が発生しないことを示す。   12 to 25, when the reference color Blue of the output device is out of the color gamut of the output device, the basic color given as the reference color Blue of the output device is rearranged to thereby determine the reference of the input device. This indicates that no failure occurs between the color Blue and the color gamut conversion result of the neighboring color.

図12は、本実施例を説明するために記憶部202上に用意された、色域変換部205で使用するSRC_RAW_PRIMARIES,DST_RAW_PRIMARIES,SRC_RAW_GBD,DST_RAW_GBD,SRC_GRAY,DST_GRAYである。   FIG. 12 shows SRC_RAW_PRIMARIES, DST_RAW_PRIMARIES, SRC_RAW_GBD, DST_RAW_GBD, SRC_GRAY, and DST_GRAY used in the color gamut conversion unit 205, which are prepared on the storage unit 202 to explain the present embodiment.

図13は、図12で示したデータセットが示す色域情報等の概略である。DST_PRIMARIES上の基準色Blueが、DST_GBDの外部にあることがわかる。   FIG. 13 is an outline of color gamut information and the like indicated by the data set shown in FIG. It can be seen that the reference color Blue on DST_PRIMARIES is outside DST_GBD.

以下、具体的なデータ例に基づいて、色域変換部205の動作を、S304の基準色再配置処理の有無による処理結果の差に着目して説明する。   Hereinafter, based on a specific data example, the operation of the color gamut conversion unit 205 will be described focusing on the difference in the processing result depending on the presence or absence of the reference color rearrangement processing in S304.

起動された色域変換部205は、S301において図12で示した情報を読み込み、S302においてSRC_GRAYとDST_GRAYとで無彩色軸変換処理され、S303で更に極座標変換されて図14の状態になる。   The activated color gamut conversion unit 205 reads the information shown in FIG. 12 in S301, performs achromatic color axis conversion processing with SRC_GRAY and DST_GRAY in S302, and further performs polar coordinate conversion in S303, resulting in the state of FIG.

図14においては、色域変換部205の内部状態とともに、前に位置する順変換部204が保持する色域変換部への入力データと、後に位置する逆変換部206が保持する色域変換部からの出力データに関しても記載されている。   In FIG. 14, together with the internal state of the color gamut conversion unit 205, the input data to the color gamut conversion unit held by the forward conversion unit 204 located in front and the color gamut conversion unit held by the reverse conversion unit 206 located later. The output data from is also described.

ここで、入力デバイスの色域情報SRC_GBDは基準色SRC_PRIMARIES上の全色で定義されている一方、出力デバイスの色域情報DST_GBDも基準色DST_PRIMARIES上の色で概ね構成されてはいるが、Blueのみ異なっていることに注意する。   Here, while the color gamut information SRC_GBD of the input device is defined by all colors on the reference color SRC_PRIMARIES, the color gamut information DST_GBD of the output device is generally composed of colors on the reference color DST_PRIMARIES, but only Blue Note that they are different.

更に、DST_PRIMARIES[Blue]とDST_GBD[4]は色相が等しい一方で、彩度は明らかにDST_PRIMARIES[Blue]が小さい。即ち、DST_PRIMARIES[Blue]は明らかにDST_GBDの内側に位置している。   Furthermore, while DST_PRIMARIES [Blue] and DST_GBD [4] have the same hue, the saturation is clearly smaller in DST_PRIMARIES [Blue]. That is, DST_PRIMARIES [Blue] is clearly located inside DST_GBD.

まず、S304における基準色再配置処理として、何もしない場合を図14〜図20を用いて示す。   First, as reference color rearrangement processing in S304, a case where nothing is performed will be described with reference to FIGS.

この場合、図14の状態から、S304の基準色再配置処理においては特に何も行われず、S305において明度レンジの算出がなされ、S306において入力待ちの状態となって、図15の状態になる。   In this case, nothing is performed in the reference color rearrangement process of S304 from the state of FIG. 14, the lightness range is calculated in S305, the state of waiting for input in S306, and the state of FIG. 15 is obtained.

図15の状態から、S306において順変換部204のINに格納された0番目の色である(21,−19,−89)が色域変換部205に与えられ、S307において無彩色軸変換処理が行われ、S308において極座標変換が行われて、図16の状態になる。   From the state of FIG. 15, (21, −19, −89), which is the 0th color stored in IN of the forward conversion unit 204 in S306, is given to the color gamut conversion unit 205, and achromatic color axis conversion processing is performed in S307. In step S308, polar coordinate conversion is performed, and the state shown in FIG. 16 is obtained.

図16の状態から、S309において、p2がSRC_PRIMARIES上に存在しているかがチェックされ、今回はSRC_PRIMARIES[Blue]と等しいのでS315に進む。   From the state of FIG. 16, in S309, it is checked whether p2 exists on SRC_PRIMARIES. Since this time is equal to SRC_PRIMARIES [Blue], the process proceeds to S315.

S315において、p2は出力デバイスのBlueの基準色にマッピングされる。よって、p3にはDST_PRIMARIES[Blue]の値が格納される。S316において直交座標変換を行って結果をp4に書き出し、S317で逆無彩色軸変換処理を行ってpOutに格納する。S318でpOutに格納された変換結果を逆変換部206に出力してS306に戻った状態が図17である。   In S315, p2 is mapped to the blue reference color of the output device. Therefore, the value of DST_PRIMARIES [Blue] is stored in p3. In S316, orthogonal coordinate transformation is performed and the result is written to p4. In S317, inverse achromatic color axis transformation processing is performed and stored in pOut. FIG. 17 shows a state in which the conversion result stored in pOut in S318 is output to the inverse conversion unit 206 and the process returns to S306.

図17の状態から、S306において順変換部204のINに格納された1番目の色である(21,−18,−88)が色域変換部205に与えられ、S307において無彩色軸変換処理が行われ、S308において極座標変換が行われて、図18の状態になる。   From the state of FIG. 17, (21, -18, -88) which is the first color stored in IN of the forward conversion unit 204 in S306 is given to the color gamut conversion unit 205, and achromatic color axis conversion processing is performed in S307. In step S308, polar coordinate conversion is performed, and the state shown in FIG. 18 is obtained.

図18の状態から、S309において、p2がSRC_PRIMARIES上に存在しているかがチェックされ、今回は一致する色がSRC_PRIMARIES上に存在しないので、S310に遷移する。   From the state of FIG. 18, in S309, it is checked whether p2 exists on SRC_PRIMARIES. Since there is no matching color on SRC_PRIMARIES this time, the process proceeds to S310.

S310において、p2の色相角からpPrevがBlue、pNextがMagentaであることが判り、
dPrev=258.7−258.2=0.5、
dNext=330.6−258.7=71.9
であることが判る。
In S310, it can be seen from the hue angle of p2 that pPrev is Blue and pNext is Magenta.
dPrev = 258.7-258.2 = 0.5,
dNext = 330.6-258.7 = 71.9
It turns out that it is.

S311において、
DST_PRIMARIES[Blue]=291.4,
DST_PRIMARIES[Magenta]=359.4
であるから、内分比率を保存するように色相を計算すると、
p3.h=291.4+(359.4−291.4)*0.5/(71.9+0.5)=291.9
となる。
In S311,
DST_PRIMARIES [Blue] = 291.4,
DST_PRIMARIES [Magenta] = 359.4
So if you calculate the hue to preserve the internal ratio,
p3. h = 291.4 + (359.4-291.4) * 0.5 / (71.9 + 0.5) = 291.9
It becomes.

ついで、S312において、入力デバイスでの色相角p2.h=258.7度とSRC_GBDとから、最大彩度点srcCuspを、出力デバイスでの色相角p3.h=291.9度とDST_GBDとから、最大彩度点dstCuspを求める。   In step S312, the hue angle p2. From h = 258.7 degrees and SRC_GBD, the maximum saturation point srcCusp is determined as the hue angle p3. The maximum saturation point dstCusp is obtained from h = 291.9 degrees and DST_GBD.

本実施例においては、図13からも明らかなように、当該色相における入力デバイスの最大彩度点は、SRC_GBD[4]〜SRC_GBD[5]上に存在する。同様に出力デバイスの最大彩度点はDST_GBD[4]〜DST_GBD[5]上に存在する。srcCuspはSRC_GBD[4]とSRC_GBD[5]を色相角に応じて線形補間する一方、dstCuspはDST_GBD[4]とDST_GBD[5]を色相角に応じて線形補間することで求めることが可能である。よって、srcCusp=(21.2,90.8,258.7)、dstCusp=(13.2,79.6,291.9)(ともにJCh値)となる。計算経過は省略する。   In this embodiment, as is clear from FIG. 13, the maximum saturation point of the input device in the hue exists on SRC_GBD [4] to SRC_GBD [5]. Similarly, the maximum saturation point of the output device exists on DST_GBD [4] to DST_GBD [5]. srcCusp can be obtained by linearly interpolating SRC_GBD [4] and SRC_GBD [5] according to the hue angle, while dstCusp can be obtained by linearly interpolating DST_GBD [4] and DST_GBD [5] according to the hue angle. . Therefore, srcCusp = (21.2, 90.8, 258.7) and dstCusp = (13.2, 79.6, 291.9) (both are JCh values). The calculation process is omitted.

ついでS313において、srcCusp,dstCuspの明度値とp2.Jとから明度圧縮を行う。ここで、srcCusp.J>p2.Jより、
p3.J=(13.2−6)/(21.2−0)*(21−0)+6=13.1
となる。
In step S313, the brightness values of srcCusp and dstCusp are set to p2. Lightness compression is performed from J. Here, srcCusp. J> p2. From J,
p3. J = (13.2-6) / (21.2-0) * (21-0) + 6 = 13.1
It becomes.

ついでS314において、srcCusp.C,dstCusp.Cの比率を用いて彩度が決定される。具体的にはp3.C=p2.C/srcCusp.C*dstCusp.C=89.5/90.8*79.6=78.5となり、図19の状態になる。   Subsequently, in S314, srcCusp. C, dstCusp. The saturation is determined using the ratio of C. Specifically, p3. C = p2. C / srcCusp. C * dstCusp. C = 89.5 / 90.8 * 79.6 = 78.5, which is the state shown in FIG.

図19の状態から、S316でp3を直交座標変換してp4に格納し、S317でp4を逆カイロプラクティック変換してpOutに書き出し、S318でpOutを逆変換部206に書き出すと、図20の状態となる。   From the state of FIG. 19, when p3 is subjected to orthogonal coordinate transformation in S316 and stored in p4, p4 is subjected to inverse chiropractic transformation and written to pOut in S317, and pOut is written to the inverse transformation unit 206 in S318. It becomes.

一方、図14からS304において基準色再配置を行った場合を、図14と図21〜図24を用いて、以下に示す。   On the other hand, the case where the reference color rearrangement is performed in FIGS. 14 to S304 will be described below with reference to FIGS. 14 and 21 to 24. FIG.

既述の通り、図14において、DST_PRIMARIES[Blue]はDST_GBDの内側に位置しており、かつDST_PRIMARIES[Blue]はDST_GBD[4]より彩度が低いのみで、明度と色相に関しては等しい。   As described above, in FIG. 14, DST_PRIMARIES [Blue] is located inside DST_GBD, and DST_PRIMARIES [Blue] is only lower in saturation than DST_GBD [4], and is equal in terms of brightness and hue.

基準色再配置処理S304の詳細は、既述の通り図11に示したフローで定義された通りである。図14に示したSRC_PRIMARIESとDST_PRIMARIESの場合は、DST_PRIMARIES[Blue]のみ再配置が必要なのは明らかであって、その再配置先はDST_GBD[4]と等しくなる(S1108〜S1110)。   The details of the reference color rearrangement process S304 are as defined in the flow shown in FIG. 11 as described above. In the case of SRC_PRIMARIES and DST_PRIMARIES shown in FIG. 14, it is clear that only DST_PRIMARIES [Blue] needs to be relocated, and the relocation destination is equal to DST_GBD [4] (S1108 to S1110).

以上より、図14において基準色再配置処理を行うと、DST_PRIMARIES[Blue]の値は、DST_GBD[4]と等しくなり、結果図21の状態になる。   As described above, when the reference color rearrangement process is performed in FIG. 14, the value of DST_PRIMARIES [Blue] becomes equal to DST_GBD [4], resulting in the state of FIG.

図21の状態から、S306において順変換部204のINに格納された0番目の色である(21,−19,−89)が色域変換部205に与えられ、S307において無彩色軸変換処理が行われ、S308において極座標変換が行われて、図22の状態になる。   From the state of FIG. 21, the 0th color (21, −19, −89) stored in the IN of the forward conversion unit 204 in S306 is given to the color gamut conversion unit 205, and in step S307, the achromatic color axis conversion process is performed. In step S308, polar coordinate conversion is performed, and the state shown in FIG. 22 is obtained.

図22の状態から、S309において、p2がSRC_PRIMARIES上に存在しているかがチェックされ、今回はSRC_PRIMARIES[Blue]と等しいのでS315に進む。   From the state of FIG. 22, it is checked in S309 whether p2 exists on SRC_PRIMARIES. Since this time is equal to SRC_PRIMARIES [Blue], the process proceeds to S315.

S315において、p2は出力デバイスのBlueの基準色にマッピングされる。よって、p3にはDST_PRIMARIES[Blue]の値が格納され、ついでS316において直交座標変換を行って結果をp4に書き出し、S317で逆無彩色軸変換処理を行ってpOutに格納する。S318でpOutに格納された変換結果を逆変換部206に出力してS306に戻った状態が図23である。   In S315, p2 is mapped to the blue reference color of the output device. Therefore, the value of DST_PRIMARIES [Blue] is stored in p3, and then the orthogonal coordinate transformation is performed in S316 and the result is written in p4. In S317, the inverse achromatic color axis transformation process is performed and stored in pOut. FIG. 23 shows a state where the conversion result stored in pOut in S318 is output to the inverse conversion unit 206 and the process returns to S306.

図23の状態からS306において順変換部204のINに格納された1番目の色である(21,−18,−88)が色域変換部205に与えられた結果、図24の状態となる。   23, the first color (21, −18, −88) stored in IN of the forward conversion unit 204 in S306 is given to the color gamut conversion unit 205, resulting in the state of FIG. .

入力が(21,−18,−88)の際の処理の詳細は、基準色再配置処理の有無によって変化しないので、ここでは繰り返さない。   Details of the processing when the input is (21, -18, -88) do not change depending on the presence or absence of the reference color rearrangement processing, and thus will not be repeated here.

図25は、図14〜図24からデータを抜粋してまとめた表である。   FIG. 25 is a table summarizing the data extracted from FIGS.

図25より、基準色再配置処理S304を行わない場合に発生していた彩度の階調反転が、基準色再配置処理S304を行うことで発生しなくなっていることがわかる。   From FIG. 25, it can be seen that the gradation gradation inversion that occurs when the reference color rearrangement process S304 is not performed does not occur when the reference color rearrangement process S304 is performed.

本実施例においては、基準色のなかでも特に有彩色であるRGBCMYに着目したが、グレー軸などの無彩色と基準色のうちのBkとWに関する整合がとれない場合、即ち、グレー軸上に基準色のBkやWが位置しない場合、BkやW近傍でグラデーションが破綻する場合があった。   In this embodiment, attention is paid particularly to RGBCMY which is a chromatic color among the reference colors. However, when the achromatic color such as the gray axis and Bk and W of the reference colors cannot be matched, that is, on the gray axis. When the reference colors Bk and W are not located, the gradation sometimes fails near Bk and W.

この場合、グレー軸の最明部をWに合わせる(基準色のWで置き換える)、最暗部をBkに合わせる(基準色のBkで置き換える)、ないしは基準色であるBkとWをグレー軸上に移動させる、といった整合処理を行うことで、破綻を防ぐことができる。   In this case, the brightest part of the gray axis is matched with W (replaced with the reference color W), the darkest part is matched with Bk (replaced with the reference color Bk), or the reference colors Bk and W are placed on the gray axis. The failure can be prevented by performing the matching process such as moving.

また、基準色再配置処理の際に、取り立てて色空間をCIECAM02から変換して別の色空間で行うことはなかったが、基準色再配置処理の際に別の色空間(例えばマンセル表色系等)に変換し、再配置した結果を再度CIECAM02に逆変換した場合も、同様の効果がある。   In addition, in the reference color rearrangement process, the color space was not changed and converted from CIECAM02 and performed in another color space, but another color space (for example, the Munsell color specification) The same effect is obtained when the rearranged result is converted back to CIECAM02 again.

システム構成の一例を示す図である。It is a figure which shows an example of a system configuration. 全体構成の概念図である。It is a conceptual diagram of the whole structure. 色域変換部205の処理内容を示すフローである。5 is a flow showing processing contents of a color gamut conversion unit 205. 入力デバイス基準色情報SRC_RAW_PRIMARIES,出力デバイス基準色情報DST_RAW_PRIMARIESの一例である。It is an example of input device reference color information SRC_RAW_PRIMARIES and output device reference color information DST_RAW_PRIMARIES. 入力デバイス色域情報SRC_RAW_GBD,出力デバイス色域情報DST_RAW_GBDの一例である。It is an example of input device color gamut information SRC_RAW_GBD and output device color gamut information DST_RAW_GBD. 入力デバイスグレー特性情報SRC_GRAY、出力デバイスグレー特性情報DST_GRAYの一例である。It is an example of input device gray characteristic information SRC_GRAY and output device gray characteristic information DST_GRAY. 直交座標系(J,a,b)を極座標系(J,C,h)に変換する式である。This is an expression for converting the orthogonal coordinate system (J, a, b) to the polar coordinate system (J, C, h). 極座標系(J,C,h)を直交座標系(J,a,b)に変換する式である。This is an expression for converting the polar coordinate system (J, C, h) to the orthogonal coordinate system (J, a, b). グレー特性情報GRAYによる色pColorの無彩色軸変換処理のフローである。It is a flow of an achromatic color axis conversion process of the color pColor based on the gray characteristic information GRAY. グレー特性情報GRAYによる色pColorの逆無彩色軸変換処理のフローである。It is the flow of the reverse achromatic color axis conversion process of the color pColor by the gray characteristic information GRAY. SRC_PRIMARIESとDST_PRIMARIESの再配置処理の一例を示す処理フローである。It is a processing flow which shows an example of the rearrangement process of SRC_PRIMARIES and DST_PRIMARIES. SRC_RAW_PRIMARIES,DST_RAW_PRIMARIES,SRC_RAW_GBD,DST_RAW_GBD,SRC_GRAY,DST_GRAYの一例である。This is an example of SRC_RAW_PRIMARIES, DST_RAW_PRIMARIES, SRC_RAW_GBD, DST_RAW_GBD, SRC_GRAY, DST_GRAY. 図12で示したデータセットが示す色域情報等の概略である。13 is an outline of color gamut information and the like indicated by the data set shown in FIG. 12. 色域変換部205の内部状態の一例を示す図である。3 is a diagram illustrating an example of an internal state of a color gamut conversion unit 205. FIG. 色域変換部205の内部状態の一例を示す図である。3 is a diagram illustrating an example of an internal state of a color gamut conversion unit 205. FIG. 色域変換部205の内部状態の一例を示す図である。3 is a diagram illustrating an example of an internal state of a color gamut conversion unit 205. FIG. 色域変換部205の内部状態の一例を示す図である。3 is a diagram illustrating an example of an internal state of a color gamut conversion unit 205. FIG. 色域変換部205の内部状態の一例を示す図である。3 is a diagram illustrating an example of an internal state of a color gamut conversion unit 205. FIG. 色域変換部205の内部状態の一例を示す図である。3 is a diagram illustrating an example of an internal state of a color gamut conversion unit 205. FIG. 色域変換部205の内部状態の一例を示す図である。3 is a diagram illustrating an example of an internal state of a color gamut conversion unit 205. FIG. 色域変換部205の内部状態の一例を示す図である。3 is a diagram illustrating an example of an internal state of a color gamut conversion unit 205. FIG. 色域変換部205の内部状態の一例を示す図である。3 is a diagram illustrating an example of an internal state of a color gamut conversion unit 205. FIG. 色域変換部205の内部状態の一例を示す図である。3 is a diagram illustrating an example of an internal state of a color gamut conversion unit 205. FIG. 色域変換部205の内部状態の一例を示す図である。3 is a diagram illustrating an example of an internal state of a color gamut conversion unit 205. FIG. 図14〜図24からデータを抜粋してまとめた表である。It is the table | surface which extracted and summarized the data from FIGS.

Claims (6)

デバイスにおける基準色を取得する取得手段と、
前記取得手段によって取得された一つ以上の基準色が、前記デバイスの色再現範囲の表面に存在しているか否かを、前記デバイスの色再現範囲の表面を表す幾何情報に基づき判定する判定手段と、
前記判定手段によって、前記基準色が前記表面に存在していないと判定された場合に、該基準色を前記デバイスの色再現範囲の表面に位置する色に再配置する再配置手段と
を有することを特徴とする色処理装置。
An acquisition means for acquiring a reference color in the device;
A determination unit that determines whether one or more reference colors acquired by the acquisition unit exist on the surface of the color reproduction range of the device based on geometric information representing the surface of the color reproduction range of the device. When,
By the determination unit, when the reference color is determined not to be present in the surface, to have a relocation means for relocating the reference color to a color that are located on the surface of the color reproduction range of the device A color processing apparatus.
前記基準色とは、赤、緑、青、シアン、マゼンタ、黄色、白、黒の一部ないし全部を含むことを特徴とする請求項1記載の色処理装置。   2. The color processing apparatus according to claim 1, wherein the reference color includes a part or all of red, green, blue, cyan, magenta, yellow, white, and black. 前記再配置手段は、前記基準色が有彩色である場合、該特徴色と同一色相を有する色に、該基準色を再配置することを特徴とする請求項1又は請求項2のいずれかに記載の色処理装置。 The rearrangement unit, when the reference color is a chromatic color, the color having the characteristic color in the same hue, in any one of claims 1 or claim 2, characterized in that repositioning said reference color The color processing apparatus as described. 前記再配置手段は、前記色再現範囲の当該色相における最大彩度点のに、前記基準色を再配置することを特徴とする請求項記載の色処理装置。 The color processing apparatus according to claim 3 , wherein the rearrangement unit rearranges the reference color to the color of the maximum saturation point in the hue of the color reproduction range. 請求項1乃至のいずれかの色処理装置をコンピュータを用いて実現するために、コンピュータが読み取り可能に記憶媒体に記憶したプログラム。 One of the color processing apparatus according to claim 1 to 4 in order to realize using a computer, program the computer is stored in capable storage medium read. デバイスにおける基準色を取得し、
前記取得手段によって取得された一つ以上の基準色が、前記デバイスの色再現範囲の表面に存在しているか否かを、前記デバイスの色再現範囲の表面を表す幾何情報に基づき判定し、
前記判定手段によって、前記基準色が前記表面に存在していないと判定された場合に、該基準色を前記デバイスの色再現範囲の表面に位置する色に再配置する
ことを有することを特徴とする色処理方法。
Get the reference color on the device
Determining whether one or more reference colors acquired by the acquisition means are present on the surface of the color reproduction range of the device based on geometric information representing the surface of the color reproduction range of the device ;
When the determination unit determines that the reference color does not exist on the surface , the reference color is rearranged to a color located on the surface of the color reproduction range of the device, Color processing method.
JP2007140560A 2007-05-28 2007-05-28 Color processing apparatus and method Expired - Fee Related JP5043512B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007140560A JP5043512B2 (en) 2007-05-28 2007-05-28 Color processing apparatus and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007140560A JP5043512B2 (en) 2007-05-28 2007-05-28 Color processing apparatus and method

Publications (2)

Publication Number Publication Date
JP2008294927A JP2008294927A (en) 2008-12-04
JP5043512B2 true JP5043512B2 (en) 2012-10-10

Family

ID=40169184

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007140560A Expired - Fee Related JP5043512B2 (en) 2007-05-28 2007-05-28 Color processing apparatus and method

Country Status (1)

Country Link
JP (1) JP5043512B2 (en)

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003244455A (en) * 2002-02-13 2003-08-29 Canon Inc Image processor, image processing method, storage medium, and program
JP4189169B2 (en) * 2002-05-15 2008-12-03 富士フイルム株式会社 Color conversion definition correcting device and color conversion definition correcting program
JP2006013608A (en) * 2004-06-22 2006-01-12 Fuji Photo Film Co Ltd Color transformation definition correcting device and program

Also Published As

Publication number Publication date
JP2008294927A (en) 2008-12-04

Similar Documents

Publication Publication Date Title
JP3902816B2 (en) Color image processing apparatus and method
RU2664334C1 (en) Cartridge for printing device with memory device containing compressed multidimensional color tables
US7636468B2 (en) System for customer and automatic color management using policy controls
JP4771538B2 (en) Color conversion table generation method, color conversion table, and color conversion table generation apparatus
US8204304B2 (en) Color gamut mapping by forming curved cross-sectional surfaces
JP4757078B2 (en) Color processing method and apparatus
JP6156401B2 (en) Color conversion method, program, and image processing apparatus
US7843606B2 (en) Color converter, color converting method, and computer readable medium
JP2008141237A (en) Color processing apparatus and its method
JP2002304621A (en) High-speed interpolation of large color look-up table
WO2009094154A1 (en) Gamut mapping in spectral space based on an objective function
US20080204832A1 (en) Constructing a color transform using a neural network for colors outside the spectrum locus
KR20050109663A (en) Method and apparatus for creating profile
JPH11196285A (en) Image processing method, device and recording medium
US8593693B2 (en) Outputting gray color values in color-managed CMYK to CMYK color conversions based on input gray color values
JP5043512B2 (en) Color processing apparatus and method
JP2006222959A (en) Method and system for color gamut adjustment
JP5457123B2 (en) Method for generating LUT, method for reading luminance value from LUT, program and apparatus
GB2426657A (en) Colour space conversion
JP4863498B2 (en) Color processing apparatus and method
JP2007336539A (en) System and method for generating bi-chromatic image data
US20080192269A1 (en) Gamut mapping for printer color rendering
US20090268255A1 (en) System and method for color space transformation employing three dimensional linear interpolations
JP6740729B2 (en) Data conversion device, data conversion method, and data conversion program
JP2006215808A (en) Color conversion method, color conversion device, program and recording medium

Legal Events

Date Code Title Description
RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20100201

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20100527

RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20100630

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20111215

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20120110

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20120309

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20120612

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20120712

R151 Written notification of patent or utility model registration

Ref document number: 5043512

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

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

Free format text: PAYMENT UNTIL: 20150720

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees