JP2009218780A - Image processing method, printer, color conversion device, and color conversion program - Google Patents

Image processing method, printer, color conversion device, and color conversion program Download PDF

Info

Publication number
JP2009218780A
JP2009218780A JP2008059300A JP2008059300A JP2009218780A JP 2009218780 A JP2009218780 A JP 2009218780A JP 2008059300 A JP2008059300 A JP 2008059300A JP 2008059300 A JP2008059300 A JP 2008059300A JP 2009218780 A JP2009218780 A JP 2009218780A
Authority
JP
Japan
Prior art keywords
color gamut
color
lightness
image
image device
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
JP2008059300A
Other languages
Japanese (ja)
Inventor
Takeshi Wada
健 和田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Seiko Epson Corp
Original Assignee
Seiko Epson Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2008059300A priority Critical patent/JP2009218780A/en
Publication of JP2009218780A publication Critical patent/JP2009218780A/en
Withdrawn legal-status Critical Current

Links

Landscapes

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

Abstract

<P>PROBLEM TO BE SOLVED: To associate color gamuts of image devices each other so that excellent color reproduction is performed while tone gradations are maintained when color conversion is performed based on the association. <P>SOLUTION: When there is an out-color-gamut area which is outside the color gamut of a second image device and in the color gamut of a first image device at a predetermined hue in a predetermined device independent color space, a peak value J<SB>0</SB>of a printer color gamut at the predetermined hue is detected. When a display color gamut is put close in shape to the printer color gamut, color conversion processing wherein saturation and lightness are mapped in the printer color gamut while both compressed is performed for a side of luminance higher than the peak value J<SB>0</SB>, and color conversion processing wherein saturation is compressed and mapped in the printer color gamut while luminance is held nearly constant is performed for a side of luminance lower than the peak value J<SB>0</SB>; and the correspondence between the display color gamut and printer color gamut is defined and image data of a display are converted into image data of a printer based upon the correspondence. <P>COPYRIGHT: (C)2009,JPO&INPIT

Description

本発明は、画像処理方法、プリンタ、色変換装置および色変換プログラムに関し、特に、第1の画像機器にて使用される第1画像データを第2の画像機器にて使用される第2カラー画像データに変換する画像処理方法、プリンタ、色変換装置および色変換プログラムに関する。   The present invention relates to an image processing method, a printer, a color conversion apparatus, and a color conversion program, and in particular, a second color image used in a second image device by using first image data used in the first image device. The present invention relates to an image processing method for converting data, a printer, a color conversion device, and a color conversion program.

ディスプレイやプリンタ等の画像機器は、表現可能な色の範囲(色域;Gamut)が各機体で異なっている。例えば、ディスプレイ色域で表現された画像データをプリンタ色域で表現するには、ディスプレイ色域のみで表現可能な色を歪めつつプリンタ色域内で表現可能な色に対応付ける(ガマットマッピングする)必要がある。この対応付けには、測色的、明度重視型、彩度重視型等があり、測色的であれば最近傍の色域表面に対応付けられるためオリジナル画像データを数値的に忠実に再現するし、明度重視型であれば階調性が維持されて知覚的に違和感の無い自然な対応付けが可能となり、彩度重視型であれば色再現が向上して見栄えする対応付けが可能となる。特許文献1〜3には各種ガマットマッピングの例について記載されている。
特開2002−118762号公報 特開2005−348053号公報 特開2002−314832号公報
Image devices such as displays and printers have different expressible color ranges (gamut) for each machine. For example, in order to represent image data expressed in the display color gamut in the printer color gamut, it is necessary to correlate colors that can be expressed only in the display color gamut with colors that can be expressed in the printer color gamut (gamut mapping). is there. This association includes a colorimetric type, a lightness-oriented type, and a saturation-oriented type. If the colorimetric type is used, the original image data is reproduced numerically and faithfully because it is associated with the nearest color gamut surface. However, if it is a lightness-oriented type, gradation can be maintained and a natural association without perceptual discomfort is possible, and if it is a saturation-oriented type, a color reproduction can be improved and an attractive association can be achieved. . Patent Documents 1 to 3 describe examples of various gamut mappings.
JP 2002-118762 A JP 2005-348053 A Japanese Patent Laid-Open No. 2002-314832

但し、彩度重視型では、明度重視型に比べて階調性が損なわれてしまう。また、明度重視型であっても、階調性の維持により知覚的に違和感を覚えにくいとはいえ、彩度方向に広い色域を持つ変換元色域を彩度方向に狭い色域しか持たない変換先色域に圧縮してしまうと、圧縮された領域の色が抜け落ちて色再現が悪くなってしまう。
本発明は前記課題に鑑みてなされたもので、画像機器間の色域を対応付けるにあたり、階調性を維持しつつ良好な色再現を行うことが可能な画像処理方法、プリンタ、色変換装置および色変換プログラムの提供を目的とする。
However, in the saturation-emphasized type, the gradation is impaired as compared with the lightness-oriented type. Even if it is a lightness-oriented type, it is difficult to perceive a sense of incongruity due to maintaining gradation, but it has a conversion source color gamut that has a wide color gamut in the saturation direction and a narrow color gamut in the saturation direction. If the image is compressed into a non-conversion destination color gamut, the color in the compressed area is lost and the color reproduction deteriorates.
The present invention has been made in view of the above problems, and in associating color gamuts between image devices, an image processing method, a printer, a color conversion apparatus, and a color processing method capable of performing good color reproduction while maintaining gradation The purpose is to provide a color conversion program.

前記課題を解決するために、本発明の画像処理方法は、第1の画像機器にて使用される第1画像データを第2の画像機器にて使用される第2画像データに変換する画像処理方法であって、検出工程と、色域変換工程と、色変換工程とを備える構成としてある。   In order to solve the above-described problems, an image processing method according to the present invention converts first image data used in a first image device into second image data used in a second image device. It is a method, Comprising: It is set as the structure provided with a detection process, a color gamut conversion process, and a color conversion process.

本発明の色域変換処理は、所定の機器独立色空間の所定色相において前記第2の画像機器の色域外であって前記第1の画像機器の色域内となる色域外領域が存在する場合に実行されるものであり、まずは前記検出工程において、前記所定色相における前記第2の画像機器の色域の最大彩度における明度を検出する。次に、前記色域変換工程において、該検出した明度を利用して、前記第1の画像機器の色域形状を前記第2の画像機器の色域形状に近づけるにあたり、前記検出工程において検出した明度よりも高明度側においては彩度と明度の双方を圧縮して前記第2の画像機器の色域内に写像させる色域変換処理と、前記検出工程において検出した明度よりも低明度側においては明度を略一定に保ち且つ彩度を圧縮して前記第2の画像機器の色域内に写像させる色域変換処理とを行って前記第1の画像機器の色域と前記第2の画像機器の色域との対応関係を規定することになる。そして、色域変換工程において規定した前記対応関係に基づいて、前記色変換工程において前記第1画像データを第2画像データに変換することになる。   The color gamut conversion processing of the present invention is performed when there is an out-of-gamut region outside the color gamut of the second image device and within the color gamut of the first image device in a predetermined hue of a predetermined device-independent color space. First, in the detection step, the lightness in the maximum saturation of the color gamut of the second image device in the predetermined hue is detected. Next, in the color gamut conversion step, the detected lightness is used to detect the color gamut shape of the first image device closer to the color gamut shape of the second image device. A color gamut conversion process for compressing both the saturation and lightness on the higher lightness side than the lightness and mapping it within the color gamut of the second image device, and on a lightness side lower than the lightness detected in the detection step The color gamut of the first image device and the color of the second image device are obtained by performing a color gamut conversion process for mapping light intensity within the color gamut of the second image device while maintaining lightness substantially constant. It defines the correspondence with the color gamut. Then, based on the correspondence defined in the color gamut conversion step, the first image data is converted into second image data in the color conversion step.

ここで、機器独立色空間としては種々の色空間を採用することが可能であり、LabやJab、XYZ等種々の絶対色空間を採用可能である。第1および第2の画像機器も特に限定されず、画像データを使用して所定の画像を扱う機器であれば良く、例えば、ディスプレイ,プリンタ,スキャナ,デジタルカメラ等種々の画像機器を採用可能である。むろん、機器が別体でなくてもよく、例えば、fax機は第1の画像機器としてのスキャナと第2の画像機器としてのプリンタとが一体になっていると言え、かかるfax機に本発明を適用することも可能である。また、上記処理は所定色相内で行われ積極的に色相を変更する処理を行っているわけではないが、処理を行う機器独立色空間の性質や空間の変換,画像機器の機体誤差等によって第2画像データと第1画像データとの色相が異なってしまうことを禁じるわけではない。積極的に色相を変更しなくても、色域変換処理を行う領域全体に渡って「0〜10度」程度の色相変化が生じることはある。尚、本発明における色域変換処理は単一の色域外領域に対して行うのみならず複数の色域外領域について行うことが可能である。   Here, various color spaces can be adopted as the device independent color space, and various absolute color spaces such as Lab, Jab, and XYZ can be adopted. The first and second image devices are not particularly limited, and may be any device that uses image data to handle a predetermined image. For example, various image devices such as a display, a printer, a scanner, and a digital camera can be employed. is there. Of course, the device does not have to be a separate body. For example, it can be said that a fax machine includes a scanner as a first image device and a printer as a second image device, and the present invention is applied to such a fax machine. It is also possible to apply. In addition, the above processing is performed within a predetermined hue and is not performed actively to change the hue. However, the processing may be changed depending on the nature of the device independent color space to be processed, the conversion of the space, the machine error of the imaging device, etc. It is not forbidden that the hues of the two image data and the first image data are different. Even if the hue is not changed actively, a hue change of about “0 to 10 degrees” may occur over the entire area where the gamut conversion process is performed. Note that the color gamut conversion processing according to the present invention can be performed not only for a single out-of-gamut region but also for a plurality of out-of-gamut regions.

以上の本発明の構成によれば、色域変換するにあたり前記検出工程において検出された前記明度を境に高明度側で彩度と明度の双方を圧縮しているため色表現が豊かになり、前記検出工程において検出された前記明度よりも低明度側で明度を維持しながら圧縮しているため階調性がよくなる。   According to the above configuration of the present invention, when color gamut conversion is performed, both color saturation and lightness are compressed on the high lightness side with the lightness detected in the detection step as a boundary. Since the compression is performed while maintaining the lightness on the lightness side lower than the lightness detected in the detection step, the gradation is improved.

また、所定色相角で切断した色域外殻の形状において、一般に明度が前記検出工程において検出された前記明度から離れるに従って彩度が徐々に低下する点を考慮した本発明の選択的な一側面として、前記色変換工程においては、前記検出工程において検出された前記明度よりも高明度側において前記第1の画像機器の色域形状を前記第2の画像機器の色域形状に近づけるにあたり、圧縮対象の明度が前記検出工程において検出された前記明度に近づくにつれて徐々に明度の圧縮率を減少させて前記第1の画像機器の色域内に写像させる色域変換処理を行う構成としてもよい。該構成によれば、検出工程において検出された明度から明度が上昇するにつれて明度の圧縮率が高くなるため、高明度域において色再現性が良好であるとともに低明度領域においては階調性が維持された色域変換処理が実現される。   In addition, as a selective aspect of the present invention, in consideration of the point that the saturation gradually decreases as the brightness departs from the brightness detected in the detection step in the shape of the color gamut shell cut at a predetermined hue angle. In the color conversion step, when the color gamut shape of the first image device is brought closer to the color gamut shape of the second image device on the lightness side higher than the lightness detected in the detection step, A color gamut conversion process may be performed in which the lightness compression rate is gradually decreased as the lightness approaches the lightness detected in the detection step so as to be mapped into the color gamut of the first image device. According to this configuration, since the lightness compression rate increases as the lightness rises from the lightness detected in the detection step, the color reproducibility is good in the high lightness region and the gradation is maintained in the low lightness region. The color gamut conversion process performed is realized.

また、前記検出工程において検出された前記明度を境として高明度側と低明度側とで異なる色域変換処理を行う点を考慮した本発明の選択的な一側面として、前記色域変換工程においては、前記第1の画像機器の色域形状を前記第2の画像機器の色域形状に近づけるにあたり、前記検出工程において検出された前記明度よりも高明度側における圧縮率と圧縮方向が、前記検出工程において検出された前記明度よりも低明度側における圧縮率と圧縮方向に、前記検出工程において検出された前記明度において一致するように圧縮して色域変換処理を行う構成としてもよい。該構成によれば、前記検出工程において検出された前記明度の前後で圧縮率と圧縮方向とが連続するため、前記検出工程において検出された前記明度付近の色変換が滑らかになる。また、前記検出工程において検出された前記明度における明度の逆転現象を防止できる。   In addition, as a selective aspect of the present invention considering that different color gamut conversion processing is performed on the high brightness side and the low brightness side with the brightness detected in the detection step as a boundary, in the color gamut conversion step, The compression ratio and the compression direction on the higher brightness side than the brightness detected in the detection step when the color gamut shape of the first image device approaches the color gamut shape of the second image device are The color gamut conversion processing may be performed by compressing the compression rate and the compression direction on the lower lightness side than the lightness detected in the detection step so as to match the lightness detected in the detection step. According to this configuration, since the compression rate and the compression direction are continuous before and after the lightness detected in the detection step, color conversion around the lightness detected in the detection step is smooth. In addition, it is possible to prevent a lightness inversion phenomenon in the lightness detected in the detection step.

また、前記検出工程において検出された前記明度より高明度側における圧縮方向についての本発明の選択的な一側面として、前記色域変換工程においては、前記検出工程において検出された前記明度よりも高明度側において前記第1の画像機器の色域形状を前記第2の画像機器の色域形状に近づけるにあたり、前記機器独立色空間の明度軸上の前記検出工程において検出された前記明度に向けて圧縮させるとともに、前記第2の画像機器の色域外殻からの距離に応じた圧縮率にて前記第1の画像機器の色域内に写像させる色域変換処理を行う構成としてもよい。該構成によれば、前記検出工程において検出された前記明度から明度が上昇するに伴って徐々に明度圧縮率が上昇し、彩度圧縮率が低下していく色域変換処理が実現される。   Further, as a selective aspect of the present invention regarding the compression direction on the higher lightness side than the lightness detected in the detection step, in the color gamut conversion step, the lightness higher than the lightness detected in the detection step. To bring the color gamut shape of the first image device closer to the color gamut shape of the second image device on the degree side, toward the lightness detected in the detection step on the lightness axis of the device independent color space. A configuration may be adopted in which a color gamut conversion process is performed in which the image is compressed and mapped into the color gamut of the first image device at a compression rate corresponding to the distance from the color gamut outer shell of the second image device. According to this configuration, color gamut conversion processing is realized in which the lightness compression rate gradually increases and the chroma compression rate decreases as the lightness increases from the lightness detected in the detection step.

また、色域外領域の圧縮先についての本発明の選択的な一側面として、前記色域変換工程においては、前記検出工程において検出された前記明度よりも高明度側において前記第1の画像機器の色域形状を前記第2の画像機器の色域形状に近づけるにあたり、前記色域外領域の圧縮先を前記第2の画像機器の外殻から所定範囲とし、前記色域外領域と前記所定範囲とを前記所定範囲に対して圧縮方向に規格化する色域変換処理を行う構成としてもよい。   In addition, as a selective aspect of the present invention regarding the compression destination of the out-of-gamut region, in the color gamut conversion step, the first image device may have a higher lightness side than the lightness detected in the detection step. In bringing the color gamut shape closer to the color gamut shape of the second image device, the compression destination of the out-of-gamut region is a predetermined range from the outer shell of the second image device, and the out-of-gamut region and the predetermined range are A color gamut conversion process that normalizes the predetermined range in the compression direction may be performed.

前述した画像処理方法は、他の方法の一環として実施されたり各工程に対応する手段を備えた画像処理装置として実現されたりする等の各種の態様を含む。また、本発明は前記画像処理装置を備える画像処理システム、前述した方法の構成に対応した機能をコンピュータに実現させるプログラム、該プログラムを記録したコンピュータ読み取り可能な記録媒体、等としても実現可能である。これら画像処理システム、画像処理装置、画像処理プログラム、該プログラムを記録した媒体、の発明も、前述した作用、効果を奏する。むろん、請求項2〜6に記載した構成も、前記システムや前記装置や前記プログラムや前記記録媒体に適用可能である。   The above-described image processing method includes various aspects such as being implemented as part of another method or being realized as an image processing apparatus having means corresponding to each process. The present invention can also be realized as an image processing system including the image processing apparatus, a program for causing a computer to implement functions corresponding to the above-described method configuration, a computer-readable recording medium storing the program, and the like. . The inventions of the image processing system, the image processing apparatus, the image processing program, and the medium on which the program is recorded also have the above-described operations and effects. Of course, the configurations described in claims 2 to 6 are also applicable to the system, the apparatus, the program, and the recording medium.

以下、下記の順序に従って本発明の実施形態を説明する。
(1)本発明の構成:
(2)印刷処理:
(3)LUT作成処理:
(4−1)色域変換処理:
(4−2)色域変換処理の変形例:
(5)黒点補正処理:
(6)色相間の尖頭値変動の平滑化処理:
(7)まとめ:
Hereinafter, embodiments of the present invention will be described in the following order.
(1) Configuration of the present invention:
(2) Printing process:
(3) LUT creation processing:
(4-1) Color gamut conversion processing:
(4-2) Modification of color gamut conversion process:
(5) Black spot correction processing:
(6) Smoothing processing of peak value fluctuation between hues:
(7) Summary:

(1)本発明の構成:
図1は本発明にかかる色変換プログラムを実行するコンピュータの概略ハードウェア構成を示しており、図2は当該色変換プログラムが同コンピュータのOS上に色変換モジュール21bとして実現された場合における概略構成図を示している。コンピュータ10は演算処理の中枢をなすCPU11を備えており、このCPU11はシステムバス14を介してワークエリアとして使用可能なRAM12やBIOSなどの記載されたROM13にアクセス可能となっている。システムバス14には不揮発性の記憶装置としてのハードディスクドライブ(HDD)15が接続されており、HDD15に記憶されたOS20やアプリケーションプログラム(APL)25等がRAM12に転送され、CPU11はROM13とRAM12に適宜アクセスしてソフトウェアを実行する。すなわち、RAM12を一時的なワークエリアとして種々のプログラムを実行する。
(1) Configuration of the present invention:
FIG. 1 shows a schematic hardware configuration of a computer that executes a color conversion program according to the present invention, and FIG. 2 shows a schematic configuration when the color conversion program is realized as a color conversion module 21b on the OS of the computer. The figure is shown. The computer 10 includes a CPU 11 serving as the center of arithmetic processing. The CPU 11 can access a ROM 13 including a RAM 12 and a BIOS that can be used as a work area via a system bus 14. A hard disk drive (HDD) 15 as a non-volatile storage device is connected to the system bus 14, and the OS 20, application program (APL) 25, etc. stored in the HDD 15 are transferred to the RAM 12, and the CPU 11 is transferred to the ROM 13 and RAM 12. Run the software with appropriate access. That is, various programs are executed using the RAM 12 as a temporary work area.

コンピュータ10にはキーボードやマウス等の操作用入力機器30や、表示機器としてのディスプレイ18も接続されている。さらに、印刷装置としてのプリンタ40とはプリンタI/O19bを介して接続が可能である。尚、本コンピュータ10の構成は簡略化して説明しているが、パーソナルコンピュータとして一般的な構成を有するものを採用することができる。むろん、本発明が適用されるコンピュータはパーソナルコンピュータに限定されるものではない。また、コンピュータ10とプリンタ40の接続インタフェースも上述のものに限る必要はなくシリアルインタフェースやSCSI,USB接続など種々の接続態様を採用可能であるし、今後開発されるいかなる接続態様であっても同様である。   An operation input device 30 such as a keyboard and a mouse and a display 18 as a display device are also connected to the computer 10. Further, it can be connected to a printer 40 as a printing apparatus via a printer I / O 19b. Although the configuration of the computer 10 has been described in a simplified manner, a computer having a general configuration can be employed as a personal computer. Of course, the computer to which the present invention is applied is not limited to a personal computer. Further, the connection interface between the computer 10 and the printer 40 need not be limited to the above-mentioned ones, and various connection modes such as a serial interface, SCSI, and USB connection can be adopted. It is.

本実施形態では各プログラムの類はHDD15に記憶されているが、記録媒体はこれに限定されるものではない。例えば、フレキシブルディスクであるとか、CD−ROMであってもよい。これらの記録媒体に記録されたプログラムはフレキシブルディスクドライブやCD−ROMドライブを介してコンピュータ10にて読み込まれ、HDD15にインストールされたり直接実行されたりする。そして、RAM12上に読み込まれてコンピュータを制御することになる。また、記録媒体はこれに限らず、光磁気ディスクなどであってもよい。また、半導体デバイスとしてフラッシュカードなどの不揮発性メモリなどを利用することも可能であるし、モデムや通信回線を介して外部のファイルサーバにアクセスしてダウンロードする場合には通信回線が伝送媒体となって本発明が利用される。   In the present embodiment, each program type is stored in the HDD 15, but the recording medium is not limited to this. For example, it may be a flexible disk or a CD-ROM. Programs recorded on these recording media are read by the computer 10 via a flexible disk drive or a CD-ROM drive, and installed in the HDD 15 or directly executed. Then, it is read onto the RAM 12 to control the computer. The recording medium is not limited to this, and may be a magneto-optical disk or the like. It is also possible to use a non-volatile memory such as a flash card as a semiconductor device. When accessing and downloading an external file server via a modem or communication line, the communication line becomes a transmission medium. The present invention is utilized.

一方、図2に示すように本実施形態にかかるコンピュータ10では、色域変換モジュール24とプリンタドライバ(PRTDRV)21と操作用入力機器ドライバ(DRV)22とディスプレイドライバ(DRV)23とがOS20に組み込まれている。ディスプレイDRV23はディスプレイ18における画像データ等の表示を制御するドライバであり、操作用入力機器DRV22は前記キーボードやマウスからのコード信号を受信して所定の入力操作を受け付けるドライバである。色域変換モジュール24は、異なるデバイスの色域(色再現域)の対応関係を作成するとともに、該対応関係に基づいて、一のデバイスの色域の色を、他のデバイスの色域の色に変換する。なお、この変換を行う際に色や階調の再現性も調整出来るようになっている(以下、色や階調の再現性の調整を、色域の調整と称する。)。またOS上ではAPL25が実行可能になっている。   On the other hand, as shown in FIG. 2, in the computer 10 according to the present embodiment, the color gamut conversion module 24, the printer driver (PRTDRV) 21, the operation input device driver (DRV) 22, and the display driver (DRV) 23 are included in the OS 20. It has been incorporated. The display DRV 23 is a driver that controls display of image data and the like on the display 18, and the operation input device DRV 22 is a driver that receives a code signal from the keyboard and mouse and receives a predetermined input operation. The color gamut conversion module 24 creates a correspondence relationship between the color gamuts (color reproduction gamuts) of different devices and, based on the correspondence relationship, changes the color gamut color of one device to the color gamut color of another device. Convert to Note that the color and gradation reproducibility can be adjusted when this conversion is performed (hereinafter, adjustment of color and gradation reproducibility is referred to as color gamut adjustment). In addition, the APL 25 can be executed on the OS.

APL25は、表示されたHDD15に記録された画像データ15aをRAM12に読み出してレタッチ等の処理を実行可能であり、ディスプレイDRV23はRAM12に読み出された画像データ15aに基づいてディスプレイ18上に画像を表示させる。利用者が操作用入力機器30を操作するとその操作内容が操作用入力機器DRV22を介して取得されて内容が解釈されるようになっており、APL25はその操作内容に応じて印刷実行やレタッチなど種々の処理を行う。   The APL 25 can read the image data 15a recorded on the displayed HDD 15 to the RAM 12 and execute processing such as retouching. The display DRV 23 can display an image on the display 18 based on the image data 15a read to the RAM 12. Display. When the user operates the operation input device 30, the operation content is acquired via the operation input device DRV 22 and the content is interpreted, and the APL 25 executes printing or retouching according to the operation content. Various processes are performed.

また、利用者は当該APL25の実行下において、操作用入力機器30を操作して設定処理を行うことにより、所定のデバイスにおいて形成される画像を再現して表示させる事が可能である。例えば、sRGB色空間で作成された画像データの表示を行うにあたり、ディスプレイの色域がsRGB色空間よりも狭い場合に、ディスプレイの色域からはみ出す部位がディスプレイ18の色域内にある所定の色で表現されるように色変換を行うように調整できる。すると画像データにおいて表現されている階調性や色彩がディスプレイ表示において維持されることになる。
また、この画像データの印刷結果をディスプレイ上に再現することも出来る。すなわち、ディスプレイ18の色域の中でプリンタ40の色域にて表現可能な色のみで表現されるように画像データの色変換を行うのである。無論、印刷結果を再現する際に、同時に画像データの階調性や色彩が維持されるような色変換を行ってもよい。さらに、このように調整して表示された印刷結果のカラー画像をプリンタ40にて印刷させてもよい。以下、色域変換モジュールにて実行される色域の調整の一例として、プリンタ40の印刷結果に調整を施しつつディスプレイ表示させる例について説明する。
In addition, the user can reproduce and display an image formed in a predetermined device by performing setting processing by operating the operation input device 30 under execution of the APL 25. For example, when displaying the image data created in the sRGB color space, when the display color gamut is narrower than the sRGB color space, the portion that protrudes from the display color gamut is a predetermined color within the color gamut of the display 18. It can be adjusted to perform color conversion as expressed. Then, the gradation and color expressed in the image data are maintained in the display display.
In addition, the print result of the image data can be reproduced on the display. That is, the color conversion of the image data is performed so that only the colors that can be expressed in the color gamut of the printer 40 in the color gamut of the display 18 are expressed. Of course, when reproducing the print result, color conversion may be performed so that the gradation and color of the image data are maintained at the same time. Furthermore, the color image of the print result that has been adjusted and displayed in this manner may be printed by the printer 40. Hereinafter, as an example of color gamut adjustment executed by the color gamut conversion module, an example in which display is performed while adjusting the print result of the printer 40 will be described.

図3は、色域調整の設定処理を行う画面の一例を示している。該設定処理においては、入力側と出力側の各デバイスに対し、所定の標準色空間(例えばsRGB色空間等)におけるデバイス色域を所定の機器独立色空間に変換するためのプロファイル(Device Model Profile: DMP)を選択する。そして、異なる色域の調整や変換の方式(Rendering Intent)を指定するプロファイル(Gamut Map Model Profile: GMMP)の選択を行う。
設定処理を行った後、色域の変換が指示されると色域変換モジュール24が起動され、設定されたDMPやGMMPを参照しつつ、入力側デバイスの色域を出力側デバイスの色域に変換するためのLUT15bを作成し、HDD15に記憶する。このLUT15bの作成については後述する。次に、利用者がマウスを操作してプリンタ40の印刷結果の表示を指示すると色域の調整指示がなされ、画像データ15aが色域変換モジュール24に受け渡される。画像データ15aが色域変換モジュール24に受け渡されると色変換処理が実行される。
FIG. 3 shows an example of a screen for performing color gamut adjustment setting processing. In the setting process, for each device on the input side and output side, a profile (Device Model Profile) for converting the device color gamut in a predetermined standard color space (for example, sRGB color space) into a predetermined device independent color space. : DMP). Then, a profile (Gamut Map Model Profile: GMMP) that specifies a different color gamut adjustment or conversion method (Rendering Intent) is selected.
After performing the setting process, when the conversion of the color gamut is instructed, the color gamut conversion module 24 is activated, and the color gamut of the input device is changed to the color gamut of the output device while referring to the set DMP and GMMP. An LUT 15b for conversion is created and stored in the HDD 15. The creation of the LUT 15b will be described later. Next, when the user operates the mouse to instruct the display of the print result of the printer 40, an instruction to adjust the color gamut is made, and the image data 15a is transferred to the color gamut conversion module 24. When the image data 15a is transferred to the color gamut conversion module 24, color conversion processing is executed.

ここで、図4を参照しつつ、色域変換モジュール24の構成を説明する。本実施形態の色域変換モジュール24は以下の各モジュールM1〜M4を備えている。XYZ値算出モジュールM1は入力側デバイスのDMPを参照しつつRGB値で表現された入力側デバイスの色域をCIE三刺激値XYZ値に変換する。XYZ値算出モジュールM2は出力側デバイスのDMPを参照しつつRGB値で表現された出力側デバイスの色域をCIE三刺激値XYZ値に変換する。CA変換モジュールM3はXYZ値算出モジュールM1,M2において算出されたXYZ値にカラーアピアランス(CA)変換式の順方向変換を行ってJ値を算出し、J色空間における入力デバイスの色域を確定する。色域マッピングモジュールM5はGMMPを参照しつつCA変換モジュールM3によって確定された入力側デバイスの色域を、同じくCA変換モジュールM3によって算出された出力側デバイスの色域へとマッピングする。CA変換モジュールM4は色域マッピングモジュールM5によって算出されたJ値にカラーアピアランス(CA)変換式の逆方向変換を行ってXYZ値を算出し、XYZ色空間における出力デバイスの色域を確定する。なお、各CA変換モジュールM3,M4の行うカラーアピアランス変換においては、入力もしくは出力デバイスに対して指定されたDMPに指定された観察条件(D55、D65等の光源情報)を考慮した変換が実行される。 Here, the configuration of the color gamut conversion module 24 will be described with reference to FIG. The color gamut conversion module 24 of this embodiment includes the following modules M1 to M4. The XYZ value calculation module M1 converts the color gamut of the input device expressed by RGB values into CIE tristimulus values XYZ values while referring to the DMP of the input device. The XYZ value calculation module M2 converts the color gamut of the output device expressed by RGB values into CIE tristimulus values XYZ values while referring to the DMP of the output device. CA conversion module M3 went forward conversion of the color appearance (CA) conversion formula into XYZ values calculated in XYZ value calculating module M1, M2 calculates the J * a * b * values, J * a * b * Determine the color gamut of the input device in the color space. The color gamut mapping module M5 maps the color gamut of the input device determined by the CA conversion module M3 with reference to the GMMP to the color gamut of the output device calculated by the CA conversion module M3. The CA conversion module M4 calculates the XYZ value by performing the reverse transformation of the color appearance (CA) conversion formula on the J * a * b * value calculated by the color gamut mapping module M5, and outputs the color of the output device in the XYZ color space. Determine the area. In the color appearance transformation performed by the respective CA conversion module M3, M4, conversion in consideration of the input or observation conditions specified in the specified DMP for the output device (D 55, D 65, etc. source information) Executed.

以上の各モジュールM1〜M4で利用されるプロファイルDMP1〜n、GMMP1〜nは、HDD15に記憶されている。各DMPにはsRGB色空間におけるデバイスの色再現域を測色値に変換するための対応関係および上述の観察条件が記述されており、GMMPには色域間を対応付ける変換式や条件式が記述されている。なお本実施形態においては、DMPに記述されているデバイスの色再現域をsRGB色空間における色再現範囲で記述してあるが、無論他の色空間で表現されていても構わない   The profiles DMP1 to n and GMMP1 to GMMPn used in the modules M1 to M4 are stored in the HDD 15. Each DMP describes the correspondence for converting the color gamut of the device in the sRGB color space to the colorimetric values and the above observation conditions, and GMMP describes the conversion formulas and conditional expressions for associating the color gamuts. Has been. In this embodiment, the device color reproduction gamut described in the DMP is described as a color reproduction range in the sRGB color space, but may of course be expressed in another color space.

DMPを利用して行われる色域の変換には、順方向変換(ICCプロファイルのAToB1Tagの処理に相当)と逆方向変換(ICCプロファイルのBToA1Tagnの処理に相当)がある。順方向変換はデバイス色からXYZ値への変換を行う順方向多次元LUTもしくは変換式で実現される。逆方向変換は、順方向変換の結果を利用して順方向多次元LUTの逆引きや回帰分析法による多項式パラメータの最適化等を行い、これにより作成されるXYZ値からデバイス色への変換を行う多次元LUTもしくは変換式で実現される。   The color gamut conversion performed using DMP includes forward conversion (corresponding to the AToB1Tag processing of the ICC profile) and backward conversion (corresponding to the BToA1Tagn processing of the ICC profile). The forward conversion is realized by a forward multidimensional LUT or a conversion formula for converting device colors into XYZ values. In reverse conversion, the result of forward conversion is used to reverse the forward multidimensional LUT, optimize the polynomial parameters by regression analysis, etc., and convert the generated XYZ values to device colors. This is realized by a multidimensional LUT or conversion formula to be performed.

カラーアピアランス変換では、XYZ値に対してCIECAM02等の色知覚モデルの順方向変換を適用してカラーアピアランス空間の色値を求める。このカラーアピアランス空間の色値(例えば、J値とする)は、概ねCIE三刺激値XYZから計算することができるようになっている。このJを利用することにより、より人間の視覚特性に適合した色域マッピングを行うことができる。カラーアピアランス空間の色値Jを得るための変換は、色順応変換、錐体応答変換、反対色応答変換により行われ、人間の視覚特性に近付くように変換される。色順応変換においては観察環境下の光源に対応した変換が行われる。なお、色知覚モデルとしてはCIECAM02、CIECAM97s等に限定される必要は無く、人間の色知覚パラメータJ(lightness), C(Chroma), Q(brightness), M(colorfulness), h(huequadrature又はhueangle), H(huequadrature又はhueangle)を予測できる色知覚モデルであれば、他の知覚モデルであっても構わない。 In the color appearance conversion, the forward direction conversion of a color perception model such as CIECAM02 is applied to the XYZ values to obtain the color values in the color appearance space. The color value of this color appearance space (for example, J * a * b * value) can be calculated from the CIE tristimulus values XYZ. By using this J * a * b * , it is possible to perform color gamut mapping more suitable for human visual characteristics. The conversion for obtaining the color value J * a * b * of the color appearance space is performed by chromatic adaptation conversion, cone response conversion, and opposite color response conversion, and is converted so as to approach human visual characteristics. In the chromatic adaptation conversion, conversion corresponding to the light source under the observation environment is performed. The color perception model need not be limited to CIECAM02, CIECAM97s, etc., and human color perception parameters J (lightness), C (Chroma), Q (brightness), M (colorfulness), h (huequadrature or hueangle) , H (huequadrature or hueangle) as long as it is a color perception model, other perception models may be used.

なお、本実施形態では、色域変換モジュール24はLUT15bを作成した上で、該LUT15bを参照しつつ色域変換処理を実行するものとして説明を行うが、無論、動的にLUTを作成する構成としても構わない。例えば、画像データ15aを構成する色座標の入力された順にLUTを作成しつつ、色調整が実行されてもよい。また、このようにして作成されたLUT15bをHDD15に記憶しておき、同一の色域間の色域変換処理が指示された場合は作成済みのLUTを参照して色変換処理を行う等、種々の構成が可能である。   In the present embodiment, the color gamut conversion module 24 creates the LUT 15b and then executes the color gamut conversion process while referring to the LUT 15b. Of course, the color gamut conversion module 24 dynamically creates the LUT. It does not matter. For example, the color adjustment may be performed while creating the LUT in the order in which the color coordinates constituting the image data 15a are input. Further, the LUT 15b created in this way is stored in the HDD 15, and when the gamut conversion processing between the same gamuts is instructed, the color conversion processing is performed by referring to the created LUT. Is possible.

(2)LUT作成処理:
図5は、LUT作成作業のフローチャートである。この作業においては多くの演算処理を必要とするので、コンピュータを使用して演算を実行するのが好ましい。本発明における色域変換処理は、所定の色相において色相を積極的に変化させること無く明度および彩度を変化させることによって行われている。すなわち、J色空間においてJ軸を通りJ軸に平行な平面において処理を行っている。また処理を行う領域は、変換先の色域(プリンタ色域)外であって変換元の色域(ディスプレイ色域)内となる領域が存在する所定の色相であって、本実施形態においては、黄相〜青相である。むろんこの処理領域はディスプレイ、プリンタの機種、プリンタで使用するメディア、プリンタで使用するインク種類等によって適宜変更される。
(2) LUT creation processing:
FIG. 5 is a flowchart of LUT creation work. Since this operation requires a lot of calculation processing, it is preferable to execute the calculation using a computer. The color gamut conversion processing in the present invention is performed by changing the lightness and saturation without positively changing the hue in a predetermined hue. That is, processing is performed on a plane that passes through the J axis and is parallel to the J axis in the J * a * b * color space. The area to be processed is a predetermined hue in which there is an area outside the conversion destination color gamut (printer color gamut) and within the conversion source color gamut (display color gamut). , Yellow phase to blue phase. Of course, this processing area is appropriately changed depending on the display, printer model, media used in the printer, ink type used in the printer, and the like.

本実施形態において作成されるLUTはRGB値とRGB値との対応関係であるが、カラーアピアランスを考慮するために機器独立色空間であるJab空間で処理を行う。まずステップS200にて、ディスプレイ18に対して選択されたDMP1を取得してディスプレイ18の色域を確定する。たとえばディスプレイ18がRGB各色256階調で表現されているのであれば、XYZ値算出モジュールM1が、各色256階調で全ての組合せを考慮しつつ公知の変換式でXYZ値に変換すればXYZ色空間におけるディスプレイ18の色域が確定する。このように変換されたXYZ値に対し、さらにCA変換モジュールM3が、DMP1に記載の観察条件を考慮したカラーアピアランス変換を行ってJ値を算出する。以上、ディスプレイ18のRGB値とJ値との対応関係を規定したLUTが第1色変換テーブルとなる。そして、J値を受け取った色域マッピングモジュールM5が、得られたJ値を包含する領域(例えば三次元凸包やポリゴン等)の作成を行って色域を確定する。色域は、得られたJ値を包含する三次元立体である。 The LUT created in the present embodiment is a correspondence relationship between RGB values and RGB values, but processing is performed in a Jab space, which is a device-independent color space, in order to consider color appearance. First, in step S200, the selected DMP1 for the display 18 is acquired to determine the color gamut of the display 18. For example, if the display 18 is expressed with 256 gradations for each color of RGB, the XYZ value calculation module M1 converts XYZ values into XYZ values using a known conversion formula while considering all combinations for each gradation of 256 colors. The color gamut of the display 18 in space is determined. The CA conversion module M3 further performs color appearance conversion in consideration of the observation conditions described in DMP1 with respect to the XYZ values converted in this way to calculate J * a * b * values. As described above, the LUT that defines the correspondence between the RGB values of the display 18 and the J * a * b * values is the first color conversion table. Then, J * a * b * gamut mapping module M5 which has received the value, the color gamut by performing the creation of a region encompassing the resulting J * a * b * values (for example, a three-dimensional convex hull and polygons, etc.) Confirm. The color gamut is a three-dimensional solid that encompasses the obtained J * a * b * values.

続いてステップS210では、プリンタ40に対して選択されたDMP2を取得して、プリンタ40の色域を確定する。プリンタ40のCMYK階調データが各色256階調で表現されているのであれば、これらの各階調で表現可能な色域がsRGB色空間のどの範囲に該当するかがDMP2に記載されており、XYZ値算出モジュールM2は、この範囲においてRGB各色256階調の組合せを考慮しつつ公知の変換式でXYZ値に変換すればXYZ色空間におけるプリンタ40の色域が確定する。さらにCA変換モジュールM3が、DMP2に記載された観察条件を考慮したカラーアピアランス変換をXYZ値に対して行ってJ値を算出する。以上、プリンタ40のRGB値とJ値との対応関係を規定したLUTが第2色変換テーブルとなる。そしてJ値を受け取った色域マッピングモジュールM5が、得られたJ値を包含する領域(例えば三次元凸包やポリゴン等)の作成を行って色域を確定する。 In step S210, the selected DMP2 is acquired for the printer 40, and the color gamut of the printer 40 is determined. If the CMYK gradation data of the printer 40 is expressed with 256 gradations for each color, DMP2 describes which range in the sRGB color space the color gamut that can be expressed with these gradations corresponds to. The XYZ value calculation module M2 determines the color gamut of the printer 40 in the XYZ color space if it is converted into XYZ values by a known conversion formula while considering the combination of 256 gradations of each RGB color in this range. Further, the CA conversion module M3 performs color appearance conversion in consideration of the observation conditions described in DMP2 with respect to the XYZ values to calculate J * a * b * values. The LUT that defines the correspondence between the RGB values of the printer 40 and the J * a * b * values is the second color conversion table. The J * a * b * gamut mapping module M5 which has received the value, the color gamut by performing the creation of the resulting J * a * b * including the value area (for example, a three-dimensional convex hull and polygons, etc.) Determine.

以上のように、ディスプレイ18およびプリンタ40の色域を確定した後、ステップS220にて色域変換処理を行ってJ色空間においてディスプレイ色域をプリンタ色域内にマッピングする。本願における色域変換処理においては、高明度においては彩度と明度の双方を変化させ、低明度においては明度を維持しつつ彩度を変化させるマッピングを行っている。従って、ディスプレイの色をプリンタの色域にて再現するにあたり、高明度においては高彩度の色再現が良好になり見栄えがよくなり、低明度においては暗部の階調表現がよくなる。この色域変換処理については後述する。 As described above, after determining the color gamuts of the display 18 and the printer 40, color gamut conversion processing is performed in step S220 to map the display color gamut in the printer color gamut in the J * a * b * color space. In the color gamut conversion process in the present application, mapping is performed in which both saturation and brightness are changed at high brightness, and saturation is changed while maintaining brightness at low brightness. Therefore, when reproducing the color of the display in the color gamut of the printer, color reproduction with high saturation is good at high lightness and looks good, and gradation expression in the dark part is good at low lightness. This color gamut conversion process will be described later.

以上の変換によりディスプレイ色域とプリンタ色域との対応関係が規定されたことになるので、ステップS230においては色変換時の補間演算に必要な代表点を抽出してLUT15bを作成する。すなわち、前記第1色変換テーブルに基づいてディスプレイ18のRGB値をXYZ値に変換し、該XYZ値に色域変換処理を行ってプリンタ40の色再現域内に変換し、変換されたXYZ値を前記第2色変換テーブルに基づく逆引きによりプリンタ40のRGB値に変換して、sRGB色空間においてディスプレイ18のRGB値をプリンタ40のRGB値に対応付けるLUT15bを作成する。なお、色変換処理後のXYZ値は、第2色変換テーブルに記載されている点とは限らないため、近い値のXYZ値を第2色変換テーブルから探索し、色変換処理後のXYZ値を囲む数点のXYZ値を特定して、特定されたXYZ値に対応するRGB値から補間演算することにより、色変換処理後のXYZ値に対応するRGB値を決定することになる。   Since the correspondence between the display color gamut and the printer color gamut is defined by the above conversion, in step S230, representative points necessary for the interpolation calculation at the time of color conversion are extracted to create the LUT 15b. That is, the RGB values of the display 18 are converted into XYZ values based on the first color conversion table, the color gamut conversion processing is performed on the XYZ values, and the converted XYZ values are converted into the color reproduction gamut of the printer 40. By converting the RGB values of the printer 40 by reverse lookup based on the second color conversion table, an LUT 15b that associates the RGB values of the display 18 with the RGB values of the printer 40 in the sRGB color space is created. Since the XYZ values after the color conversion process are not necessarily the points described in the second color conversion table, the XYZ values after the color conversion process are searched from the second color conversion table for a close XYZ value. By specifying the XYZ values at several points surrounding the image and performing interpolation calculation from the RGB values corresponding to the specified XYZ values, the RGB values corresponding to the XYZ values after the color conversion process are determined.

ただし、RGB値を決定するまでに変換処理や演算が行われるため、決定されたRGB値がsRGB色空間におけるプリンタ色域から外れてしまう可能性もある。そこでステップS240においては、ディスプレイ18色域を包含する領域(例えば三次元凸包やポリゴン等)の作成を行ってsRGB色空間における色域を確定し、後述の色域内外判定処理を行うことになる。この結果生成されたsRGB色空間におけるプリンタの色域は、sRGB色空間におけるディスプレイの色域と一対一の対応関係にある。以上のようにして作成されたLUT15bを参照して画像データ15aを変換することにより、プリンタ40の色再現範囲に色変換された画像をディスプレイ18上に再現できる。   However, since conversion processing and calculation are performed before the RGB value is determined, the determined RGB value may be out of the printer color gamut in the sRGB color space. Therefore, in step S240, an area including the display 18 color gamut (for example, a three-dimensional convex hull or a polygon) is created to determine the color gamut in the sRGB color space, and a color gamut inside / outside determination process described later is performed. Become. The printer color gamut in the sRGB color space generated as a result has a one-to-one correspondence with the display color gamut in the sRGB color space. By converting the image data 15a with reference to the LUT 15b created as described above, an image color-converted into the color reproduction range of the printer 40 can be reproduced on the display 18.

なお、前述のDMPやGMMPは必要に応じて追加したり変更したりすることが可能であり、ディスプレイ18やプリンタ40の機種変更、プリンタ40で使用するインク種類やメディア種類の変更などに容易に対応することが出来る。   The above-mentioned DMP and GMMP can be added or changed as necessary, and it is easy to change the model of the display 18 or the printer 40, change the ink type or media type used in the printer 40, etc. Can respond.

(3)印刷処理:
ここで、図6のフローチャートを参照しつつLUT15bを利用した印刷処理について以下に説明する。PRTDRV21が印刷実行指示を受け取ると、ステップS100において画像データ取得モジュール21aはRAM12に格納された画像Aの画像データ15aを取得する。すると、ステップS110にて色変換モジュール21bが起動され、画像データ15aの各ドットのRGBデータがCMYKデータに変換される。このとき、色変換モジュール21bは、LUT15bとLUT15cを参照して補間演算によってCMYKデータを生成する。このLUT15bは後述の色域変換処理を行って作成されたものである。従って、LUT15bはディスプレイ18の所定の色をプリンタ40にて階調性を維持しつつ色再現性の高い色に対応づけるテーブルとなっている。LUT15cはsRGB値をCMYK値に変換するLUTである。なお、本実施形態においては、色域変換モジュール24が予めLUT15bを作成しており、この作成済みのLUT15bを色変換モジュール21bが取得して利用する構成として記載してあるが、無論、色変換モジュール21bの求めに応じて色域変換モジュール24がLUT15bを作成して色変換モジュール21bに供給する構成としても構わない。
(3) Printing process:
Here, the printing process using the LUT 15b will be described below with reference to the flowchart of FIG. When the PRTDRV 21 receives the print execution instruction, the image data acquisition module 21a acquires the image data 15a of the image A stored in the RAM 12 in step S100. In step S110, the color conversion module 21b is activated, and the RGB data of each dot in the image data 15a is converted into CMYK data. At this time, the color conversion module 21b generates CMYK data by interpolation with reference to the LUT 15b and the LUT 15c. The LUT 15b is created by performing a color gamut conversion process described later. Accordingly, the LUT 15b is a table that associates a predetermined color of the display 18 with a color having high color reproducibility while maintaining gradation in the printer 40. The LUT 15c is an LUT that converts sRGB values into CMYK values. In the present embodiment, the color gamut conversion module 24 creates the LUT 15b in advance, and the created LUT 15b is acquired and used by the color conversion module 21b. The color gamut conversion module 24 may create the LUT 15b and supply it to the color conversion module 21b in response to the request of the module 21b.

色変換モジュール21bが色変換を行ってCMYKの階調データを生成すると、ステップS120にて当該CMYKの階調データは前記ハーフトーン処理モジュール21cに受け渡される。ハーフトーン処理モジュール21cは、各ドットのCMYK階調値を変換してインク滴の記録密度で表現するためのハーフトーン処理を行うモジュールであり、変換後の記録密度でインクを付着させるためのヘッド駆動データを生成する。そして、ステップS140にてプリンタI/O19bを介して当該生成した印刷データを出力する。印刷データ生成モジュール21dはヘッド駆動データを受け取って、プリンタ40で使用される順番に並べ替える。すなわち、プリンタ40においてはインク吐出デバイスとして図示しない吐出ノズルアレイが搭載されており、当該ノズルアレイでは副走査方向に複数の吐出ノズルが並設されるため、副走査方向に数ドット分間離れたデータが同時に使用される。   When the color conversion module 21b performs color conversion to generate CMYK gradation data, the CMYK gradation data is transferred to the halftone processing module 21c in step S120. The halftone processing module 21c is a module that performs a halftone process for converting the CMYK gradation value of each dot and expressing it with the recording density of the ink droplets, and a head for attaching ink at the converted recording density. Generate drive data. In step S140, the generated print data is output via the printer I / O 19b. The print data generation module 21d receives the head drive data and rearranges them in the order used by the printer 40. That is, in the printer 40, an ejection nozzle array (not shown) is mounted as an ink ejection device, and in the nozzle array, a plurality of ejection nozzles are arranged in parallel in the sub-scanning direction, and therefore data separated by several dots in the sub-scanning direction. Are used simultaneously.

そこで、主走査方向に並ぶデータのうち同時に使用されるべきものがプリンタ40にて同時にバッファリングされるように順番に並べ替えるラスタライズを行う。このラスタライズの後、画像の解像度などの所定の情報を付加して印刷データを生成し、前記USBI/F13を介してプリンタ40に出力する。プリンタ40においては当該印刷データに基づいて前記ディスプレイ18に表示された画像を印刷する。ステップS150では、画像データ15aの全ラスタに関して上述の色変換処理等を行ったか否かを判別し、全ラスタに関して終了したと判別されるまでステップS100以降の処理を繰り返す。   Therefore, rasterization is performed in which data arranged in the main scanning direction is rearranged in order so that data to be used at the same time is buffered by the printer 40 at the same time. After the rasterization, print data is generated by adding predetermined information such as the resolution of the image, and is output to the printer 40 via the USB I / F 13. The printer 40 prints the image displayed on the display 18 based on the print data. In step S150, it is determined whether or not the above-described color conversion processing has been performed for all the rasters of the image data 15a, and the processes in and after step S100 are repeated until it is determined that the processing has been completed for all the rasters.

(4−1)色域変換処理:
次に、前記ステップS220における色域変換処理を詳細に説明する。図7はディスプレイの色域とプリンタの色域とをJab空間における所定の色相角θにて切断した状態を示す模式図である。なお同図において横軸は彩度C(=(a+b1/2)、縦軸は明度Jである。本実施形態においては、色域変換処理にあたりディスプレイ色域のうちプリンタ色域の外部および外殻付近の領域を、プリンタ色域の外殻付近にマッピングする。なお、ディスプレイ色域のうちプリンタ色域の外殻付近を除いた内部の領域については、同一座標値にマッピングすることになる。
(4-1) Color gamut conversion processing:
Next, the color gamut conversion process in step S220 will be described in detail. FIG. 7 is a schematic diagram showing a state where the display color gamut and the printer color gamut are cut at a predetermined hue angle θ in the Jab space. In the figure, the horizontal axis represents saturation C (= (a 2 + b 2 ) 1/2 ), and the vertical axis represents lightness J. In the present embodiment, in the color gamut conversion process, areas outside the printer color gamut and near the outer shell in the display color gamut are mapped near the outer shell of the printer color gamut. It should be noted that the internal area of the display color gamut excluding the vicinity of the outer shell of the printer color gamut is mapped to the same coordinate value.

本実施形態における色域変換処理では、各色相角で切断したプリンタ色域において最大彩度Cmaxを示す座標(Cmax,J)の明度Jを境に、高明度側と低明度側とで異なるマッピングアルゴリズムを採用する。以下、(Cmax,J)を尖頭(cusp)と呼び、尖頭の明度を尖頭値と呼ぶことにする。図8は本実施形態における圧縮アルゴリズムを説明する図である。本実施形態の圧縮アルゴリズムは、尖頭値よりも高明度側においては、例えばSGCK(Sigmoidal Gaussian Cusp Knee)のように明度維持を重視しつつも彩度と明度の双方を圧縮するアルゴリズム(第1圧縮アルゴリズム)を採用するとともに、尖頭値よりも低明度側においては、例えばBasicPhoto((登録商標)Microsoft)のように明度を維持しつつ彩度を圧縮するアルゴリズム(第2圧縮アルゴリズム)を採用してある。以下の説明においてはSGCKとBasicPhotoを例にとって説明を行う。 In the color gamut conversion processing in the present embodiment, the boundary of lightness J 0 of the coordinate indicating the maximum chroma C max in the printer gamut cut at each hue angle (C max, J 0), the high brightness side and the low brightness side Different mapping algorithms are adopted. Hereinafter, (C max , J 0 ) is referred to as a peak (cusp), and the brightness of the peak is referred to as a peak value. FIG. 8 is a diagram for explaining a compression algorithm in the present embodiment. The compression algorithm of the present embodiment is an algorithm that compresses both saturation and lightness on the higher lightness side than the peak value while placing importance on maintaining the lightness, such as SGCK (Sigmoidal Gaussian Cusp Knee). Compression algorithm), and on the lower brightness side than the peak value, an algorithm (second compression algorithm) that compresses the saturation while maintaining the brightness, such as BasicPhoto (registered trademark Microsoft), is adopted. It is. In the following description, SGCK and BasicPhoto will be described as examples.

各圧縮アルゴリズムにおいては、まず、ディスプレイ色域がプリンタ色域の内部に収まっているか否かの内外判定が行われる。SGCKの内外判定では、(0,J)と判定対象の色点(C,J)とを結ぶ直線とディスプレイ色域の外殻との交点(C,J)が、プリンタ色域内であるか否かの判定を行う。一方、BasicPhotoの内外判定では、判定対象の色点(C’,J’)を含む直線J=J’とディスプレイ色域の外殻との交点(C’,J’)が、プリンタ色域内であるか否かの判定を行う。ここで、SGCKにおいて交点(C,J)を内外判定の判定対象とし、BasicPhotoにおいて交点(C’,J’)を内外判定の判定対象としている理由は、SGCKの圧縮方向が(0,J)方向でありBasicPhotoの圧縮方向がJ=J’方向だからである。なお、他の圧縮アルゴリズムであれば判定対象色点から圧縮方向に延びる直線とディスプレイ色域外殻との交点の内外判定を行うことになる。この内外判定において交点がプリンタ色域内と判定された色点については、座標値を変更することなくマッピングされる。 In each compression algorithm, first, whether the display color gamut is within the printer color gamut is determined. In the SGCK inside / outside determination, the intersection (C I , J I ) between the straight line connecting (0, J 0 ) and the color point (C, J) to be determined and the outer shell of the display color gamut is within the printer color gamut. It is determined whether or not there is. On the other hand, in the basic photo inside / outside determination, the intersection (C I ', J') between the straight line J = J 'including the color point (C', J ') to be determined and the outer shell of the display color gamut is within the printer color gamut. It is determined whether or not. Here, in SGCK, the intersection (C I , J I ) is the determination target for the inside / outside determination, and in Basic Photo, the intersection (C I ′, J ′) is the determination target for the inside / outside determination, because the SGCK compression direction is (0 , J 0 ) direction and the compression direction of BasicPhoto is the J = J ′ direction. For other compression algorithms, the inside / outside determination of the intersection of the straight line extending in the compression direction from the determination target color point and the display color gamut outer shell is performed. Color points for which the intersection point is determined to be within the printer color gamut in this inside / outside determination are mapped without changing the coordinate values.

一方、内外判定において交点(C,J)や交点(C’,J’)がプリンタ色域外と判定された色点については、圧縮対象の色点であるか否かを判定するための圧縮対象判定が行われる。圧縮対象判定は、処理対象の色点がプリンタ色域における所定の非圧縮領域P1の内部であるか否かを判定することによって行われる。本実施形態における非圧縮領域P1は、プリンタ色域を彩度方向に90%に圧縮した領域であり、該非圧縮領域P1内の彩度はプリンタ色域外殻における彩度の90%以下である。この非圧縮領域P1に位置するディスプレイ色域は、圧縮されずにプリンタ色域の同一の座標値にマッピングされる。これに対し、非圧縮領域P1の外部にはみ出しているディスプレイ色域は、線型圧縮されて圧縮領域P2に対応付けられる。圧縮領域P2は、プリンタ色域の外殻付近に設定される領域であり、本実施形態においては、非圧縮領域P1を除いた残りのプリンタ色域が該当する。 On the other hand, in order to determine whether or not the intersection (C I , J I ) or the intersection (C I ′, J ′) in the inside / outside determination is out of the printer color gamut is a color point to be compressed. The compression target determination is performed. The compression target determination is performed by determining whether or not the color point to be processed is inside a predetermined uncompressed region P1 in the printer color gamut. The uncompressed area P1 in this embodiment is an area in which the printer color gamut is compressed to 90% in the saturation direction, and the saturation in the uncompressed area P1 is 90% or less of the saturation in the printer color gamut outer shell. The display color gamut located in the uncompressed area P1 is mapped to the same coordinate value of the printer color gamut without being compressed. On the other hand, the display color gamut that protrudes outside the uncompressed area P1 is linearly compressed and associated with the compressed area P2. The compression area P2 is an area set in the vicinity of the outer shell of the printer color gamut, and in this embodiment, the remaining printer color gamut excluding the non-compression area P1 corresponds to the compression area P2.

なお、本実施形態では非圧縮領域P1をプリンタ色域の90%として記載してあるが、無論このパーセンテージに限るものではなく、0より大きく100未満の任意のパーセンテージを適宜採用可能である。また、必ずしも全明度域に亘って同一のパーセンテージで規定する必要もなく、非圧縮領域P1としては、プリンタ色域の外殻を含みつつプリンタ色域内部に広がる領域であれば、各明度における非圧縮領域P1のサイズを変えて様々な範囲を設定可能である。   In the present embodiment, the non-compressed area P1 is described as 90% of the printer color gamut. However, the present invention is not limited to this percentage, and any percentage greater than 0 and less than 100 can be adopted as appropriate. Further, it is not always necessary to specify the same percentage over the entire lightness range, and the non-compressed region P1 is a non-compressed region P1 as long as it is a region that includes the outer shell of the printer color gamut and extends inside the printer color gamut. Various ranges can be set by changing the size of the compression region P1.

圧縮対象判定が終了すると、第1圧縮アルゴリズムにおいては、圧縮対象と判定された色点に対し、図8に示すような線型的なマッピングが行われる。図8は第1圧縮アルゴリズムを説明する図である。同図に示すマッピングは、例えば下記(1)式により表すことが出来る。

ここで、(C,J)は圧縮前の色点の座標であり、(Cnew,Jnew)は圧縮後の色点の座標である。また、(0,J)と色点(C,J)とを結ぶ直線上において、(0,J)から色点までの距離をD、(0,J)から非圧縮領域P1の外殻までの距離をD、(0,J)からディスプレイ色域の外殻までの距離をD、(0,J)からプリンタ色域の外殻までの距離をDとしてある。
When the compression target determination is completed, in the first compression algorithm, linear mapping as shown in FIG. 8 is performed on the color point determined as the compression target. FIG. 8 is a diagram for explaining the first compression algorithm. The mapping shown in the figure can be expressed by, for example, the following formula (1).

Here, (C, J) is the coordinate of the color point before compression, and (C new , J new ) is the coordinate of the color point after compression. In addition, on the straight line connecting (0, J 0 ) and the color point (C, J), the distance from (0, J 0 ) to the color point is set to D 1 , (0, J 0 ) to the uncompressed region P 1. D 2 the distance to the outer shell of, as (0, J 0) distance from to the outer shell of the display color gamut of D 3, (0, J 0 ) D 4 the distance to the outer shell of the printer gamut from is there.

すなわち、前記式(1)では、非圧縮領域P1の外殻から色点までの距離(C−D)に対し、非圧縮領域P1の外殻からディスプレイ色域の外殻までの距離(D−D)と非圧縮領域P1の外殻からプリンタ色域の外殻までの距離(D−D)の比を乗ずることにより、非圧縮領域P1の外殻とディスプレイ色域の外殻との間における色点の位置関係を、非圧縮領域P1の外殻とプリンタ色域の外殻との間に規格化して再現してある。以上の圧縮により、プリンタ色域外の色点のうち尖頭値よりも高明度の色点は、明度と彩度とを圧縮されてプリンタ色域内部の圧縮領域P2にマッピングされることになる。なお、式(1)の圧縮アルゴリズムは一例であり、線形的なマッピングに限らず非線形的なアルゴリズムでマッピングしても無論構わない。 That is, in the above formula (1), the distance from the outer shell of the non-compressed region P1 to the outer shell of the display color gamut (C 1 -D 2 ) D 3 -D 2 ) and the ratio of the distance (D 4 -D 2 ) from the outer shell of the non-compressed region P1 to the outer shell of the printer color gamut, so that the outer shell of the non-compressed region P1 and the display color gamut The positional relationship of the color point between the outer shell and the outer shell of the non-compressed region P1 is normalized and reproduced between the outer shell of the printer color gamut. As a result of the above compression, the color point having a lightness higher than the peak value among the color points outside the printer color gamut is mapped to the compression region P2 inside the printer color gamut by compressing the lightness and the saturation. In addition, the compression algorithm of Formula (1) is an example, and it does not matter even if it maps not only with linear mapping but with a nonlinear algorithm.

一方、第2圧縮アルゴリズムにおいては、圧縮対象と判定された色点に対し、図9に示すようにな線形的なマッピングが行われる。図9は第2圧縮アルゴリズムを説明する図である。同図に示すマッピングは、例えば下記(2)式により表すことができる。

ここで、(C,J)は圧縮前の色点の座標、(Cnew,Jnew)は圧縮後の色点の座標である。また、明度Jにおける非圧縮領域P1の外殻の彩度をC、明度Jにおけるプリンタ色域の外殻の彩度をC、明度Jにおけるディスプレイ色域の外殻の彩度をCとしてある。前記式(2)では、非圧縮領域P1の外殻から色点までの距離(C−C)に対し、非圧縮領域P1の外殻からディスプレイ色域の外殻までの距離(C−C)と非圧縮領域P1の外殻からプリンタ色域の外殻までの距離(C−C)の比を乗ずることにより、非圧縮領域P1の外殻とディスプレイ色域の外殻との間における色点の位置関係を、非圧縮領域P1の外殻とプリンタ色域の外殻との間に規格化して再現してある。以上の圧縮により、プリンタ色域外の色点のうち尖頭値よりも低明度の色点は、明度を維持しつつ彩度を圧縮されてプリンタ色域内の圧縮領域P2にマッピングされることになる。なお、式(2)の圧縮アルゴリズムは一例であり、線形的なマッピングに限らず非線形的なアルゴリズムでマッピングしても無論構わない。
On the other hand, in the second compression algorithm, linear mapping as shown in FIG. 9 is performed on the color points determined to be compressed. FIG. 9 is a diagram for explaining the second compression algorithm. The mapping shown in the figure can be expressed by the following equation (2), for example.

Here, (C, J) is the coordinate of the color point before compression, and (C new , J new ) is the coordinate of the color point after compression. Further, the saturation of the outer shell of the uncompressed region P1 at lightness J is C 1 , the saturation of the outer shell of the printer color gamut at lightness J is C 2 , and the saturation of the outer shell of the display color gamut at lightness J is C 3. It is as. In the equation (2), the distance (C 3 − from the outer shell of the non-compressed region P1 to the outer shell of the display color gamut with respect to the distance (C−C 1 ) from the outer shell of the non-compressed region P1 to the color point. the C 1) and multiplying the ratio of the distance from the outer shell of the uncompressed region P1 to the outer shell of the printer gamut (C 2 -C 1), the outer shell and the outer shell of the display color gamut of the uncompressed region P1 The positional relationship between the color points is normalized and reproduced between the outer shell of the non-compressed region P1 and the outer shell of the printer color gamut. As a result of the above compression, among the color points outside the printer color gamut, color points having a lightness lower than the peak value are mapped to the compression region P2 within the printer color gamut by compressing the saturation while maintaining the lightness. . In addition, the compression algorithm of Formula (2) is an example, and it does not matter even if it maps not only with linear mapping but with a nonlinear algorithm.

以上説明した第1圧縮アルゴリズムにおいては、尖頭値から離れるほど明度の圧縮度合が高まり、尖頭値に近づくほど明度の圧縮度合が低くなり、尖頭値Jにおいては明度の圧縮率が0となる。もちろん、第2圧縮アルゴリズムにおいては、明度の大小に関わらず明度が維持されている。すなわち、尖頭値においては、第1圧縮アルゴリズムの圧縮率と圧縮方向は、第2圧縮アルゴリズムの圧縮率と圧縮方向に一致することになる。従って、尖頭値を挟んで異なる圧縮アルゴリズムを採用しながらも、マッピング後の色点間で尖頭値における連続性が確保されるし、尖頭値付近における明度の逆転も防止されることになる。明度の逆転を防止することにより、彩度よりも明度に対して感度が高い人間の目に対し、自然な印象を与える印刷結果を実現する色域変換が実現可能となる。 Or more at the first compression algorithm described, as increased compression degree of brightness away from the peak value, the compression degree of brightness closer to the peak value is low, the brightness of the compression ratio in the peak J 0 0 It becomes. Of course, in the second compression algorithm, the lightness is maintained regardless of the lightness. That is, at the peak value, the compression rate and the compression direction of the first compression algorithm coincide with the compression rate and the compression direction of the second compression algorithm. Therefore, while adopting different compression algorithms across the peak value, continuity in the peak value is ensured between the mapped color points, and brightness reversal in the vicinity of the peak value is also prevented. Become. By preventing the reversal of lightness, it is possible to realize color gamut conversion that realizes a print result that gives a natural impression to human eyes that are more sensitive to lightness than saturation.

図10は、以上説明した尖頭値を境に圧縮アルゴリズムを使い分けることによる作用効果を説明する図である。同図は緑色の階調性を示す図であり、上下に緑色の明度を連続的に変化させた画像データを各圧縮アルゴリズムでマッピングして印刷してある。図10(a)は全明度域に亘ってBasicPhotoでマッピングした場合の印刷結果、図10(b)は全明度域に亘ってSGCKでマッピングした場合の印刷結果、図10(c)は本願の圧縮アルゴリズムでマッピングした場合の印刷結果、をそれぞれ示している。BasicPhotoでマッピングした図10(a)の印刷結果では上部の高階調で階調表現が乏しくなっており、SGCKでマッピングした図10(b)の印刷結果では、暗部に明度が大きく変わる箇所があるために暗部の階調性が悪く、黒潰れが発生している。これに対し、本実施形態の色域変換処理を行ってマッピングした図10(c)では高彩度において階調表現が豊かであり、暗部において階調性が維持されていることが分かる。   FIG. 10 is a diagram for explaining the operational effect by using different compression algorithms with the above-described peak value as a boundary. This figure shows the gradation of green, and image data in which the brightness of green is continuously changed up and down is mapped and printed by each compression algorithm. FIG. 10A shows a printing result when mapping with BasicPhoto over the entire brightness range, FIG. 10B shows a printing result when mapping with SGCK over the entire brightness range, and FIG. Print results when mapping is performed using a compression algorithm are shown. In the printing result of FIG. 10A mapped with BasicPhoto, the gradation expression is poor at the upper high gradation, and in the printing result of FIG. 10B mapped with SGCK, there is a place where the brightness changes greatly in the dark part. For this reason, the gradation of the dark portion is poor and black crushing occurs. On the other hand, in FIG. 10C mapped by performing the color gamut conversion processing of the present embodiment, it can be seen that the gradation expression is rich in high saturation and the gradation is maintained in the dark portion.

図11は、前記式(1)(2)を使用して行う色域変換処理のフローチャートである。同図において、まず、ステップS300で処理対象の色相角θを決定し、ステップS305で該色相角θにおける初期座標(C,J)を決定する。そしてステップS310にて色相角θにおけるプリンタ色域の尖頭値Jを取得し、ステップS315において、初期座標の色点に対しプリンタ色域の内外判定を行う。内外判定の結果、プリンタ色域の内部と判定されると、ステップS320にて(C,J)と同一の座標値を有するプリンタ色域の色点にマッピングする。一方、プリンタ色域の外部と判定されると、ステップS310で取得した尖頭値に基づいてステップS325にて何れの圧縮アルゴリズムを使用するかを決定する。そして決定された圧縮アルゴリズムに従ってステップS330で圧縮先の座標(Cnew,Jnew)を決定し、この座標にマッピングする。 FIG. 11 is a flowchart of the color gamut conversion process performed using the equations (1) and (2). In the figure, first, the hue angle θ to be processed is determined in step S300, and initial coordinates (C, J) at the hue angle θ are determined in step S305. And it obtains the peak value J 0 of the printer gamut in the hue angle θ at step S310, the in step S315, performs outside judgment of the printer gamut to the color point of the initial coordinate. As a result of the inside / outside determination, if the inside of the printer color gamut is determined, the color is mapped to the color point of the printer color gamut having the same coordinate value as (C, J) in step S320. On the other hand, if it is determined that it is outside the printer color gamut, it is determined which compression algorithm to use in step S325 based on the peak value acquired in step S310. In step S330, the coordinates (C new , J new ) of the compression destination are determined according to the determined compression algorithm, and mapped to these coordinates.

このようにしてステップS315,S330にて座標(C,J)のマッピングが完了すると、ステップS335にて全座標に対する(Cnew,Jnew)の演算が終了したか否かを判断する。ここで、本色域変換処理はLUTを作成するための一過程としての処理であることから、全座標について演算が終了したか否か判別すると言っても、当該LUTを作成するために必要十分な座標に対する演算が終了したか否を判別すれば十分であり、整数座標値のみに対して演算したり、Jab空間で所定ピッチの格子点を考えてこの格子点についてのみ演算するようにすること等種々の態様を採用可能である。 In this way, when the mapping of the coordinates (C, J) is completed in steps S315 and S330, it is determined in step S335 whether or not the calculation of (C new , J new ) for all coordinates has been completed. Here, since this color gamut conversion process is a process as a process for creating an LUT, even if it is determined whether or not the calculation has been completed for all coordinates, it is necessary and sufficient to create the LUT. It is sufficient to determine whether or not the calculation for the coordinates has been completed. For example, the calculation is performed only on the integer coordinate value, or the calculation is performed only on the lattice point in consideration of the lattice point having a predetermined pitch in the Jab space. Various modes can be adopted.

ステップS335にて全座標について演算が終了したと判別されないときには、ステップS345にて次の演算候補座標(C,L)をセットし、ステップS315以降の処理を繰り返す。ステップS335にて全座標について演算が終了したと判別したときには、ステップS340にて全色相について色域変換処理が終了したか否かを判別し、全色相について色域変換処理が終了したと判別されるまでステップS300以降の処理を繰り返す。   If it is not determined in step S335 that the calculation has been completed for all coordinates, the next calculation candidate coordinate (C, L) is set in step S345, and the processes in and after step S315 are repeated. If it is determined in step S335 that the calculation has been completed for all coordinates, it is determined in step S340 whether or not the gamut conversion processing has been completed for all hues, and it is determined that the gamut conversion processing has been completed for all hues. Steps S300 and after are repeated until

なお、本発明の色域変換処理は、前述のような静的なLUTを作成する場合のみならず、入力されたsRGB値に対するマッピング先を動的算出して生成する場合にも適用可能である。LUT作成のように各色相角の色点を連続して処理する場合は、前述したフローチャートのようにステップS320の色域内外判定の前にステップS310の尖頭値の決定を行う方が処理効率がよいが、動的なマッピング処理において入力される色点の色相角がランダムに変化する場合は、ステップS320の色域内外判定の後にステップS310の尖頭値の決定を行う方が処理効率がよくなる。   Note that the color gamut conversion processing of the present invention is applicable not only when creating a static LUT as described above, but also when dynamically creating a mapping destination for an input sRGB value. . When continuously processing the color points of each hue angle as in the LUT creation, it is more efficient to determine the peak value in step S310 before the color gamut inside / outside determination in step S320 as in the flowchart described above. However, when the hue angle of the color point input in the dynamic mapping process changes randomly, it is more efficient to perform the peak value determination in step S310 after the color gamut inside / outside determination in step S320. Get better.

ところで、前述した実施形態ではプリンタ色域の尖頭値Jを境界として、高明度側においては第1の圧縮アルゴリズムにて色域変換を実行し、低明度側においては第2の圧縮アルゴリズムで色域変換を実行しているが、尖頭値をよりも明度が高いか低いかで圧縮アルゴリズムを切換える以外にも、例えば、外殻形状の類似度合に応じて圧縮アルゴリズムを切換えて選択してもよい。例えば、上に凸の外殻形状を有する色域を下に凸の外殻形状を有する色域に対してマッピングすると、明度や彩度の変化が強調されて急峻になり、特に階調性に大きく影響する。このような事情に鑑みて、外殻形状の膨らみ方向が異なる場合は、階調性を維持する明度維持型の圧縮アルゴリズムを採用し、外殻形状の膨らみ方向が一致する場合は、明度と彩度とを圧縮する圧縮アルゴリズムを採用する。すると色域形状に合わせて階調性の維持が適切に行われることになる。 Incidentally, as a boundary the peak value J 0 of the printer gamut in the embodiment described above, the high brightness side executes the color gamut conversion at a first compression algorithm, the low-brightness side in the second compression algorithm Although color gamut conversion is performed, in addition to switching the compression algorithm depending on whether the peak value is higher or lower than the peak value, for example, by switching the compression algorithm according to the similarity of the outer shell shape Also good. For example, if a color gamut having an upwardly convex outer shell shape is mapped to a color gamut having a downwardly convex outer shell shape, changes in lightness and saturation are emphasized, resulting in a sharp gradation. A big influence. In view of these circumstances, a brightness maintaining compression algorithm that maintains gradation is used when the bulge direction of the outer shell shape is different. Adopt a compression algorithm to compress the degree. Then, the gradation is appropriately maintained according to the color gamut shape.

(4−2)色域変換処理の変形例:
次に前述した色域変換処理の変形例について説明する。該変形例においてはプリンタ色域とディスプレイ色域との色域形状の相似度合に応じて、前述の実施形態のように尖頭値で圧縮アルゴリズムを切換えるか圧縮アルゴリズムの切換えを行わずに全明度域に亘って明度維持型の圧縮アルゴリズムを適用するかを選択する。相似度合の判断には、プリンタ色域の尖頭値Lcuspとディスプレイ色域の尖頭値Lcusp’の位置関係を利用する。すなわち、プリンタ色域とディスプレイ色域とで尖頭値が近い場合は色域形状が相似すると見做し、ディスプレイ色域においてプリンタ色域外の色点をプリンタ色域内にマッピングするにあたり、全明度域に渡って明度を略維持したマッピングを行うのである。このようにプリンタ色域の尖頭値とディスプレイ色域の尖頭値の関係に基づいて圧縮アルゴリズムの切り替えることによって、マッピング後の階調性がより適切に維持されることになる。
(4-2) Modification of color gamut conversion process:
Next, a modification of the above-described color gamut conversion process will be described. In this modification, according to the degree of similarity of the color gamut shape between the printer color gamut and the display color gamut, the entire lightness is switched without switching the compression algorithm with the peak value or switching the compression algorithm as in the above-described embodiment. Select whether to apply a lightness-maintaining compression algorithm over a range. The determination of the similarity degree, utilizing the positional relationship between the peak value L cusp 'of peak L cusp and the display color gamut of the printer gamut. In other words, when the peak values are close to each other between the printer gamut and the display gamut, the gamut shapes are considered to be similar, and in mapping the color points outside the printer gamut in the display gamut into the printer gamut, The mapping is performed while maintaining the lightness substantially. Thus, by switching the compression algorithm based on the relationship between the peak value of the printer color gamut and the peak value of the display color gamut, the gradation after mapping is more appropriately maintained.

図12はディスプレイの色域Jabとプリンタの色域PとをJab空間におけるab平面で切断した状態を示している。なお、(a)は緑の色相角にて切断した状態であり、(b)はマゼンタの色相角にて切断した状態であり、(c)は青の色相角にて切断した状態である。同図において横軸は彩度C、縦軸は明度Jである。プリンタ色域の各色相における尖頭値は、尖頭値の存在する明度が色相角毎に異なっており、緑においては高明度に存在し、マゼンタにおいては中明度に存在し、青においては低明度に存在する。従って、尖頭値Jと尖頭値J’の値が近い色域間のマッピングであれば、全明度域に亘って明度維持型の圧縮アルゴリズムで色域変換処理を行っても階調性が十分に維持されるが、尖頭値Jと尖頭値J’の値が離れている色域間のマッピングであれば、彩度の移動に加えて明度のシフトを行った方が色再現の観点において好ましい。 FIG. 12 shows a state in which the display color gamut Jab and the printer color gamut P are cut along the ab plane in the Jab space. (A) is a state cut at a green hue angle, (b) is a state cut at a magenta hue angle, and (c) is a state cut at a blue hue angle. In the figure, the horizontal axis represents saturation C, and the vertical axis represents lightness J. The peak value in each hue of the printer gamut has a different brightness value for each hue angle, with high brightness in green, medium brightness in magenta, and low in blue. Present in lightness. Therefore, if mapping between color gamuts where the peak value J 0 and the peak value J 0 ′ are close to each other, even if the color gamut conversion processing is performed with the lightness maintaining compression algorithm over the entire lightness range, If the mapping is between color gamuts where the peak value J 0 and the peak value J 0 ′ are separated, the brightness is shifted in addition to the saturation shift. Is preferable from the viewpoint of color reproduction.

図13は本変形例の色域変換処理における圧縮アルゴリズムの切り替え方を説明する図である。同図に示すように、本変形例の色域変換処理においては、まず各色域の尖頭値に基づいて圧縮アルゴリズムの切り替えの要否を以下の式(3)によって判定する。

ここでJはプリンタ色域の尖頭値、Jはディスプレイ色域の尖頭値、Jはプリンタ色域(ディスプレイ色域)の白点、である。この式(3)によれば、白点と尖頭値Jの間隔の半分を閾値Jthとして、尖頭値間の差分Jsubと閾値Jthとの大小関係に基づいて圧縮アルゴリズムの切換えを行うか否かが判断される。すなわち尖頭値間の差分が前記閾値よりも大きい(Jsub>Jth)場合は、プリンタ色域とディスプレイ色域の形状が非相似であると判断し、前述した実施形態と同様に尖頭値Jを境にして第1圧縮アルゴリズムと第2圧縮アルゴリズムとを切換えて色域変換処理を行う。一方、尖頭値間の差分が該閾値以下(Jsub≦Jth)場合は、プリンタ色域とディスプレイ色域の形状が相似していると判断し、例えば全明度域に亘って明度を維持しつつ彩度を圧縮する第2圧縮アルゴリズムで色域変換処理を実行する。
FIG. 13 is a diagram for explaining how to switch the compression algorithm in the color gamut conversion processing of the present modification. As shown in the figure, in the color gamut conversion process of the present modification, first, the necessity of switching the compression algorithm is determined based on the peak value of each color gamut using the following equation (3).

Here J 0 is the peak value of the printer gamut, J 1 is the peak value of the display color gamut, J w white point of the printer gamut (display color gamut), a. According to this equation (3), half of the white point interval of peak J 0 as a threshold J th, compression algorithms based on the magnitude relation between the difference J sub and the threshold J th between peak switching It is determined whether or not to perform. That is, when the difference between the peak values is larger than the threshold value (J sub > J th ), it is determined that the printer color gamut and the display color gamut are not similar, and the peak is the same as in the above-described embodiment. performing color gamut conversion processing is switched to a first compression algorithm to a value J 0 at the boundary with the second compression algorithm. On the other hand, if the difference between the peak values is less than or equal to the threshold value (J sub ≦ J th ), it is determined that the printer color gamut and the display color gamut are similar, and for example, the lightness is maintained over the entire lightness range. In addition, the color gamut conversion process is executed by the second compression algorithm for compressing the saturation.

また、前述した実施形態における第1圧縮アルゴリズムの圧縮方向は、処理対象の色点(C,J)からプリンタ色域の尖頭値(0,J0p)に向かう方向であったが、本変形例においては、この方向に尖頭値間の差分Jthに応じた変更を加えてもよい。具体的には、下記式(4)のように、差分Jthに応じた角度を加味した圧縮方向とすることが考えられる。

ここで、ベクトルnは色点(C,L)からプリンタ色域の尖頭値(0,L)に向かうベクトルであり、ベクトルnはディスプレイの尖頭値(0,L)からプリンタ色域の尖頭値(0,L’)に向かうベクトルであり、ncompは差分Lthに応じた角度を加味した圧縮方向を表すベクトルである。この式(4)により、ベクトルnに対しベクトルnに所定の係数αを乗じて加えたncomp方向が決定され、このncomp方向に圧縮することにより圧縮における明度圧縮度合に尖頭値間の差が反映されることになる。すなわち、尖頭値間の距離が拡がるほど明度の圧縮度合が増加し、尖頭値間の距離が縮まるほど明度の圧縮度合が低下するマッピングが行える。なお、本変形例においてもプリンタ色域の尖頭値Lにおいて明度圧縮率が0になり、尖頭値Lにおける圧縮方向と圧縮率との連続性が保たれるのは前述した実施形態と同様である。
The compression direction of the first compression algorithm in the embodiment described above is the direction from the color point (C, J) to be processed toward the peak value (0, J 0p ) of the printer color gamut. In the example, a change corresponding to the difference J th between the peak values may be added in this direction. Specifically, it is conceivable to set the compression direction in consideration of the angle according to the difference J th as shown in the following formula (4).

Here, the vector n 1 is a vector from the color point (C, L) to the peak value (0, L 0 ) of the printer color gamut, and the vector n 2 is from the peak value (0, L 0 ) of the display. A vector toward the peak value (0, L 0 ′) of the printer color gamut, and n comp is a vector representing a compression direction in consideration of an angle corresponding to the difference L th . By this equation (4), the n comp direction obtained by multiplying the vector n 1 by multiplying the vector n 2 by a predetermined coefficient α is determined, and by compressing in the n comp direction, the peak value of the lightness compression degree in the compression is determined. The difference between them will be reflected. That is, mapping can be performed in which the degree of lightness compression increases as the distance between peak values increases, and the degree of lightness compression decreases as the distance between peak values decreases. The embodiments lightness compression ratio in the peak value L 0 of the printer gamut in the present modification becomes 0, the continuity with the compression direction and the compression ratio in peak L 0 is maintained in the aforementioned It is the same.

図14は、前記式(3)に基づいてマッピングアルゴリズムの選択を行いつつ色域変換処理を行うフローチャートである。処理が開始されると、まず、ステップS400で処理対象となる色点の存在する色相角θを決定し、ステップS405で該色相角θにおける初期座標(C,J)を決定する。そしてステップS410にて色相角θにおけるプリンタ色域の尖頭値Jを取得し、ステップS415において、初期座標の色点に対しプリンタ色域の内外判定を行う。内外判定の結果、プリンタ色域の内部と判定されると、ステップS420にて(C,J)と同一の座標値を有するプリンタ色域の色点にマッピングする。一方、プリンタ色域の外部と判定されると、ステップS425にて色相角θにおけるプリンタ色域の尖頭値Jおよびディスプレイの尖頭値J’を決定し、これら尖頭値間の差分Jsubと閾値Jthとを比較する。比較の結果が差分LsubがLthよりも小さいときはステップS430にてアルゴリズムを切換えないと判断してステップS435に進んで圧縮アルゴリズムの切換えを行わずに明度を維持するアルゴリズムのみを使用してマッピングを行うことを決定する。一方、比較の結果が差分LsubがLthよりも大きいと判断された場合は、ステップS440に進んで圧縮アルゴリズムを切換えつつマッピングを行うことを決定する。そして決定された方式にてマッピングを行う。そして決定された圧縮アルゴリズムに従ってステップS345で圧縮先の座標(Cnew,Jnew)を決定し、この座標にマッピングする。 FIG. 14 is a flowchart for performing a color gamut conversion process while selecting a mapping algorithm based on the equation (3). When the process is started, first, a hue angle θ at which a color point to be processed exists is determined in step S400, and initial coordinates (C, J) at the hue angle θ are determined in step S405. And it obtains the peak value J 0 of the printer gamut in the hue angle θ at step S410, in step S415, performs outside judgment of the printer gamut to the color point of the initial coordinate. As a result of the inside / outside determination, if the inside of the printer color gamut is determined, the color is mapped to the color point of the printer color gamut having the same coordinate value as (C, J) in step S420. On the other hand, if it is determined that it is outside the printer color gamut, the peak value J 0 of the printer color gamut and the peak value J 0 ′ of the display at the hue angle θ are determined in step S425, and the difference between these peak values. J sub is compared with the threshold value J th . If the difference L sub is smaller than L th as a result of the comparison, it is determined in step S430 that the algorithm is not switched, and the process proceeds to step S435, where only the algorithm that maintains the lightness without switching the compression algorithm is used. Decide to do the mapping. On the other hand, when it is determined that the difference L sub is larger than L th as a result of the comparison, the process proceeds to step S440, and it is determined to perform mapping while switching the compression algorithm. Then, mapping is performed using the determined method. Then, in accordance with the determined compression algorithm, the coordinates (C new , J new ) of the compression destination are determined in step S345 and mapped to these coordinates.

このようにしてステップS420、S445にて座標(C,J)のマッピングが完了すると、ステップS450にて全座標に対する(Cnew,Jnew)の演算が終了したか否かを判断する。ステップS450にて全座標について演算が終了したと判別されないときには、ステップS455にて次の演算候補座標(C,L)をセットし、ステップS415以降の処理を繰り返す。ステップS450にて全座標について演算が終了したと判別したときには、ステップS460にて全色相について色域変換処理が終了したか否かを判別し、全色相について色域変換処理が終了したと判別されるまでステップS400以降の処理を繰り返す。 When the mapping of the coordinates (C, J) is completed in steps S420 and S445 in this way, it is determined in step S450 whether or not the calculation of (C new , J new ) for all the coordinates has been completed. If it is not determined in step S450 that the calculation has been completed for all coordinates, the next calculation candidate coordinates (C, L) are set in step S455, and the processes in and after step S415 are repeated. If it is determined in step S450 that the calculation has been completed for all coordinates, it is determined in step S460 whether or not the gamut conversion processing has been completed for all hues, and it is determined that the gamut conversion processing has been completed for all hues. Step S400 and subsequent steps are repeated until

(5)黒点補正処理:
以上説明した色域変換処理においては、ディスプレイ色域とプリンタ色域とで明度範囲が略一致、すなわち黒点が略一致している例について説明を行ってきた。しかしながら一般にディスプレイと比較した場合のプリンタは黒の再現能力が低く、両デバイスの色域の白点を一致させると暗部でディスプレイ色域の方が広くなり黒点が一致しない。黒点が一致しないと、ディスプレイ色域の暗部における複数階調値がプリンタ色域の黒点にマッピングされてしまい、色域変換処理における暗部の階調性を低下させ、色つぶれが発生する。そこで、前記SGCK等のマッピングアルゴリズムにおいては、暗部の階調性を維持するために、マッピングを行うにあたり予めS字カーブ等で黒点補正処理を行い、マッピングを行う色域間の黒点を一致させることが行われている。
(5) Black spot correction processing:
In the color gamut conversion processing described above, an example has been described in which the brightness range is substantially the same in the display color gamut and the printer color gamut, that is, the black dots are substantially the same. However, in general, a printer compared with a display has a low black reproduction capability, and when the white points of the color gamuts of both devices are matched, the display color gamut becomes wider in the dark part and the black dots do not match. If the black dots do not match, a plurality of gradation values in the dark portion of the display color gamut are mapped to the black dots in the printer color gamut, reducing the gradation of the dark portion in the color gamut conversion process and causing color collapse. Therefore, in the mapping algorithm such as SGCK, in order to maintain the darkness of the dark portion, black point correction processing is performed in advance with an S-shaped curve or the like before mapping to match the black points between the color gamuts to be mapped. Has been done.

ここで前記SGCKのS字カーブを用いた黒点補正処理について簡単に説明を行う。SGCKのS字カーブ補正は下記式(5)を用いて行われる。
上記式(5)において、Jは入力された色点の明度、JはJをシグモイド関数等を用いてS字カーブ補正した明度、pは入力色点の彩度に依存する重み係数、Jは黒点補正後の明度、である。Jでは、図15のようにプリンタ色域の外殻がディスプレイ色域の内部にある部位についてはシグモイド関数にてS字カーブ補正され、プリンタ色域の外殻がディスプレイ色域の外部にある部位については線型補正されている。Jはpに応じてJとJとを線型結合したものであり、pによって彩度が考慮されている。すなわち、低彩度領域におけるJには、Jの影響が強く現れて図16のように全明度域に渡って階調性が十分に再現されるが、彩度が高まるにつれてJにおけるJの影響が強くなり、図17のようにS字カーブ補正後も出力機器色域から低明度側にはみ出した位置にマッピングされる部位が残ってしまう。
Here, the black point correction process using the S-curve of SGCK will be briefly described. SGCK S-curve correction is performed using the following equation (5).
In the above formula (5), J O is the lightness of the color point that is input, the weight J S lightness that S-curve correction using a sigmoid function like the J O, the p c which depends on the saturation of the input color point The coefficient, JR, is the brightness after black point correction. In JS , as shown in FIG. 15, the portion where the outer shell of the printer color gamut is inside the display color gamut is S-curve corrected by the sigmoid function, and the outer shell of the printer color gamut is outside the display color gamut. The part is linearly corrected. J R is obtained by linear combination of the J O and J S in accordance with the p c, saturation by p c is considered. That is, in the JR in the low saturation region, the effect of JS appears strongly, and the gradation is sufficiently reproduced over the entire brightness region as shown in FIG. 16, but in the JR as the saturation increases. effect of J O becomes stronger, it leaves a site even after S-curve correction are mapped from the output device gamut in position outside the low brightness side as shown in FIG. 17.

そこで、本実施形態においては、概略、ディスプレイ色域をSGCKのS字カーブにて補正した後の領域のうち、プリンタ色域の黒点よりも低明度側に補正されてしまう領域について、プリンタ色域の暗部の所定領域に対して線型圧縮する。すなわちSGCKのS字カーブで補正した後も階調の潰れている暗部を、プリンタ色域の黒点よりも高明度側にシフトして、ディスプレイ色域の暗部の階調性を適切に再現する補正を行う。無論、該補正も、SGCKのように暗部以外の中明度域、高明度域には影響が及ばないようにしてある。なお、本実施形態ではSGCKの黒点補正処理を補完する黒点補正処理として説明を行うが、本発明の黒点補正処理はSGCKのように彩度依存型の黒点補正を行うものを補完するために行う場合に限るものではなく、色域変換処理に先立って色域間の黒点を一致させるための処理として普遍的に利用可能であることはいうまでもない。   Therefore, in the present embodiment, the printer color gamut is roughly the region after the display color gamut is corrected by the SGCK S-curve, which is corrected to a lower lightness side than the black spot of the printer color gamut. The linear compression is applied to a predetermined area in the dark part. That is, after correcting with the SGCK S-curve, the dark part where the gradation is crushed is shifted to a higher lightness side than the black point of the printer color gamut, and the correction is performed to appropriately reproduce the gradation of the dark part of the display color gamut. I do. Of course, this correction is also made so as not to affect the medium brightness area and the high brightness area other than the dark part like SGCK. Although the present embodiment will be described as a black point correction process that complements the SGCK black point correction process, the black point correction process of the present invention is performed to complement a saturation-dependent black point correction process such as SGCK. Needless to say, the present invention is not limited to this case, and it is needless to say that it can be universally used as a process for matching the black dots between the color gamuts prior to the color gamut conversion process.

図18は本実施形態の概念を説明する図である。同図に示すように、本発明の黒点補正では、SGCKのS字カーブ補正後の明度に対し、ディスプレイ色域の黒点をプリンタ色域の黒点に一致させるとともに、ディスプレイ色域の全明度範囲に亘って黒点を上回る明度が出力されるように補正し、出力がプリンタ色域の黒点を下回る部位を高明度側に修正する。   FIG. 18 is a diagram for explaining the concept of the present embodiment. As shown in the figure, in the black point correction of the present invention, the black point of the display color gamut is matched with the black point of the printer color gamut with respect to the lightness after the S-curve correction of SGCK, and the entire lightness range of the display color gamut is obtained. Then, the lightness exceeding the black point is corrected so as to be output, and the portion where the output is lower than the black point of the printer color gamut is corrected to the high lightness side.

プリンタ色域の黒点よりも低明度側に広がる所定領域を、黒点よりも高明度側の所定領域に対し対応付けるだけでも黒点補正自体は実現されるが、所定領域内にも階調性の維持が重要な部位とそうでない部位とが存在する。そこで本実施形態においては、ディスプレイ色域の暗部に、圧縮率と圧縮先が各々異なる3つの領域を設定する。圧縮率は各領域で一定であり、各領域は圧縮先に対して線型圧縮される。領域は階調性の重要度に応じて設定されており、階調性が重要な領域については圧縮率を低めつつ圧縮先の領域を広めに確保し、重要度の低い領域については圧縮率を高めつつ圧縮先の領域も狭目に確保する。無論、領域設定を行わずに非線形圧縮によって階調性の重要度合に応じた圧縮率や圧縮先を設定してもよいし、領域設定しつつ各領域で圧縮率の異なる非線型圧縮を行っても構わない。   The black spot correction itself can be achieved by simply associating the predetermined area that extends to the low brightness side of the printer color gamut with the predetermined area on the high brightness side of the black spot, but the gradation is maintained within the predetermined area. There are important and non-critical sites. Therefore, in the present embodiment, three regions having different compression rates and compression destinations are set in the dark portion of the display color gamut. The compression rate is constant in each region, and each region is linearly compressed with respect to the compression destination. The areas are set according to the importance of gradation, and for areas where gradation is important, the compression rate is lowered while securing a wider compression destination area, and for areas with low importance, the compression ratio is reduced. While compressing, the area of the compression destination is secured narrowly. Of course, you may set the compression rate and compression destination according to the importance level of gradation by nonlinear compression without setting the region, or perform non-linear compression with different compression rate in each region while setting the region. It doesn't matter.

以下、図19を参照してこの黒点補正処理の詳細を説明する。まず領域設定の手順について説明を行う。領域設定においては、まず明度軸上におけるプリンタ色域の黒点JDBと、S字カーブ補正後のディスプレイ色域の黒点JSBとが確定される。この黒点JSBは前記式(5)によって求められる彩度依存性のある値であり、彩度上昇に伴って低下する明度を表す軌跡Tとして表すことができる。次に、求めた黒点JDBの軌跡Tにディスプレイ色域の尖頭値Jを考慮した係数αを乗じて、尖頭値を考慮した軌跡Tを算出する。軌跡Tと尖頭値Jを考慮した係数αは、下記式(6)で決定される。

次に、プリンタ色域の黒点(J=JDB)の直線を線対称の軸として、下記式(7)により軌跡Tを線対称移動させた軌跡Tを決定する。

以上決定された軌跡Tよりも低明度側が第1領域Aとなる。なお本実施形態の黒点補正対象となる色点は、実際には、SGCKの黒点補正により第1領域AのTとTに挟まれる領域にのみ存在する。また、軌跡TとJ=JDBに囲まれた領域が第2領域Aとなり、軌跡TとJ=JDBとに囲まれた領域が第3領域Aとなる。
The details of this black point correction processing will be described below with reference to FIG. First, the region setting procedure will be described. In the area setting, first, the black point J DB of the printer color gamut on the lightness axis and the black point J SB of the display color gamut after the S-curve correction are determined. This black point J SB is a saturation-dependent value obtained by the above equation (5), and can be represented as a locus T 1 representing the lightness that decreases as the saturation increases. Then, by multiplying the coefficient considering the peak value J 1 of the display gamut in the trajectory T 1 of the obtained black point J DB alpha, calculates the trajectory T 2 in consideration of the peak value. The coefficient α considering the locus T 2 and the peak value J 1 is determined by the following equation (6).

Next, as an axis of the straight line of symmetry of the black point of the printer gamut (J = J DB), to determine the trajectory T 3 with the trajectory T 2 is moved line-symmetrically by the following equation (7).

Low brightness side is the first region A 1 than the trajectory T 2 determined above. Note that the color point that is the black point correction target of the present embodiment actually exists only in the region sandwiched between T 1 and T 2 of the first region A 1 by the SGCK black point correction. Further, the trajectory T 2 and J = J DB in a region surrounded by the second region A 2, and the trajectory T 3 and J = J DB and the region surrounded by the third region A 3.

以上の領域形成における軌跡Tと軌跡Tを形成において、尖頭値を考慮することにより、プリンタ色域の尖頭値Jを含む領域が、本実施形態における黒点補正の圧縮対象とならないように調整される。すなわち、ディスプレイ色域の尖頭値Jが高明度に存在する場合は、軌跡Tがより高明度側に設定され、ディスプレイ色域の尖頭値Jが低明度に存在する場合は、軌跡Tがより低明度側に設定される。結果として、尖頭値Jの明度が高いほど第3領域Aが広がるとともに尖頭値Jの明度が低いほど第2領域Aが狭まり、尖頭値Jが黒点補正の圧縮で変動することを防止しつつ、暗部の階調性を最大限に維持する黒点補正を可能にする領域設定が可能となる。 In forming the track T 2 and track T 3 in the above area forming, by considering the peak value, a region including the peak value J 1 of the printer gamut, not a compressed black point correction in the present embodiment To be adjusted. That is, when the peak value J 1 of the display gamut are present in high lightness, trajectory T 3 is set to a higher brightness side, if the peak value J 1 of the display gamut are present in low lightness, trajectory T 3 is set to a lower brightness side. As a result, the peak value J as the brightness of one lower second region A 3 narrowing with brightness peak value J 1 spreads the higher third region A 3, the compression of the peak value J 1 is black point compensation It is possible to set an area that enables black point correction to maintain the gradation of the dark part to the maximum while preventing the fluctuation.

次に、各領域の圧縮先となる領域について、図20〜図22を参照して説明する。図20は、第1領域Aの圧縮先を説明する図、図21は第2領域Aの圧縮先を説明する図、図22は第3領域Aの圧縮先を説明する図である。まず、図20に示すように、第1領域Aは一律にプリンタ色域の黒点JDBに補正される。次に、図21に示すように、第2領域Aは、圧縮率0.75で線型圧縮されつつ、第3領域Aの低明度側75%の領域Bに向けて補正される。この第2領域Aの補正式は下記式(8)で表される。

前記式(8)において、Joutは本実施形態の黒点補正後の明度であり、T(C)は黒点補正対象となる色点の彩度Cにおける軌跡Tの明度である。そして、第3領域Aは、図22に示すように圧縮率0.25で線型圧縮されつつ、第3領域Aの高明度側25%の領域Bに向けて補正される。この第3領域Aの補正式は下記式(9)で表される。

前記式(9)において、Joutは本実施形態の黒点補正後の明度であり、T(C)は黒点補正対象となる色点の彩度Cにおける軌跡Tの明度である。
Next, a region serving as a compression destination of each region will be described with reference to FIGS. Figure 20 is a diagram for explaining a first area A 1 of the compression target, Figure 21 is the figure, FIG. 22 for explaining the compression target second area A 2 is a diagram for explaining a compression destination of the third region A 3 . First, as shown in FIG. 20, the first area A 1 is corrected to black point J DB printer gamut uniformly. Next, as shown in FIG. 21, the second area A 2 is corrected toward the area B 2 on the low brightness side 75% of the third area A 3 while being linearly compressed at a compression rate of 0.75. Correction formula of the second region A 2 is represented by the following formula (8).

In the above equation (8), J out is the lightness after the black point correction of this embodiment, and T 1 (C) is the lightness of the locus T 1 in the saturation C of the color point to be black point corrected. Then, the third area A 3 is corrected toward the area B 3 on the high brightness side 25% of the third area A 3 while being linearly compressed at a compression rate of 0.25 as shown in FIG. Correction equation of the third region A 3 is represented by the following formula (9).

In Expression (9), J out is the lightness after the black point correction of the present embodiment, and T 2 (C) is the lightness of the locus T 2 in the saturation C of the color point that is the black point correction target.

以上のように設定された領域A〜Aを利用して行われる黒点補正について、図23を参照しつつ説明する。図23は黒点補正処理のフローチャートである。処理が開始されると、ステップS500においてSGCKのS字カーブ補正を実行する。次に、ステップS505に進み、プリンタ色域の黒点JDBと、入力された色点(J,C)に対応する彩度における黒点JSBとを決定する。次にステップS510において黒点JDBと黒点JSBとを比較する。該比較の結果、黒点JDBが黒点JSBよりも大きい場合はステップS515に進んで本実施形態の黒点補正を行わずに前記式(5)のS字カーブ補正を行った明度Joutを出力する。一方、黒点JDBが黒点JSBよりも小さい場合は、ステップS520に進んで軌跡Tを決定するとともに、前述の式(6)、式(7)によって軌跡Tと軌跡Tを決定する。そしてステップS525において、処理対象となる色点を式(5)でS字カーブ補正した座標値(J,C)と黒点LSBの軌跡Tとを比較する。該比較の結果、座標値が軌跡T以下の場合はステップS530にてプリンタ色域の黒点JDBをJoutとして出力する。一方、座標値(J,C)が軌跡Tよりも大きい場合はステップS535にて座標値(J,C)とプリンタ色域の黒点JDBとの比較を行う。該比較の結果、(J,C)が黒点JDB以下の場合は、ステップS540にて式(8)により圧縮率0.75で圧縮しつつ領域Bに変換した明度Joutを出力する。一方、座標値(J,C)が黒点JDBよりも大きい場合は、ステップS545にて座標値(J,C)と軌跡T3とを比較する。該比較の結果、座標値(J,C)が軌跡T以下の場合は、ステップS550にて式(9)により圧縮率0.25で圧縮しつつ領域Bに変換した明度Joutを出力する。一方、座標値(J,C)が軌跡T3を超える場合は、黒点補正の必要が無いので、ステップS555に進んでそのままの値をJoutとして出力する。以上の黒点補正が終了すると、黒点補正後の色点(Jout,C)を前述の色域変換処理にてプリンタ色域にマッピングすることになる。 Black point correction performed using the areas A 1 to A 3 set as described above will be described with reference to FIG. FIG. 23 is a flowchart of the black point correction process. When the process is started, S-curve correction of SGCK is executed in step S500. Then, in step S505, it determines the black point J DB printer gamut, the input color point (J, C) and black point J SB in saturation corresponding to. Then compares the black point J DB and black point J SB in step S510. As a result of the comparison, if the black point J DB is larger than the black point J SB , the process proceeds to step S515, and the brightness J out obtained by performing the S-curve correction of the equation (5) without performing the black point correction of this embodiment is output. To do. On the other hand, if the black point J DB is less than the black point J SB is configured to determine a trajectory T 1 proceeds to step S520, the above equation (6), determines the trajectory T 2 and track T 3 by the equation (7) . In step S525, the coordinate value (J R , C) obtained by correcting the color point to be processed with the S-curve correction using equation (5) is compared with the locus T 1 of the black point L SB . Result of the comparison, the coordinate value in the case of the trajectory T 1 below and outputs the black point J DB of the printer gamut in step S530 as a J out. On the other hand, if the coordinate values (J R, C) is greater than the trajectory T 1 performs the comparison between the black point J DB coordinate values (J R, C) a printer gamut in step S535. If (J R , C) is equal to or less than the black spot J DB as a result of the comparison, the brightness J out converted into the region B 2 while being compressed at the compression rate of 0.75 according to the equation (8) in step S540 is output. . On the other hand, if the coordinate values (J R, C) is larger than the black dots J DB coordinate values at step S545 (J R, C) and is compared with the trajectory T3. As a result of the comparison, if the coordinate value (J R , C) is equal to or smaller than the trajectory T 3, the lightness J out converted into the region B 3 while being compressed at the compression rate 0.25 according to the equation (9) in step S550 Output. On the other hand, if the coordinate value (J R , C) exceeds the trajectory T3, there is no need for black point correction, so the process proceeds to step S555, and the value is output as J out . When the above black point correction is completed, the color point (J out , C) after the black point correction is mapped to the printer color gamut by the above-described color gamut conversion processing.

なお、以上本実施形態においてはSGCKのS字カーブによる黒点補正処理後の明度を補正する例について説明を行ったが、本発明の黒点補正は暗部において入力機器の色域よりも出力機器の色域が狭い場合であればどのような色域変換処理にも適用可能である。   In the present embodiment, the example of correcting the brightness after the black point correction process using the SGCK S-curve has been described. However, the black point correction according to the present invention is performed in the color of the output device in the dark portion rather than the color gamut of the input device. If the gamut is narrow, the present invention can be applied to any color gamut conversion processing.

(6)色相間の尖頭値変動の平滑化処理:
以上の色域変換処理や黒点補正処理においては、プリンタ色域やディスプレイ色域の尖頭値を利用した処理を行っている。この尖頭値についてプリンタ色域の各色相における尖頭値をプロットしたグラフが図24である。同図においては、色相角が約110°、130°、260°に小刻みに振幅の起こる箇所が観察される。小刻みな振幅が発生する箇所では、前述の色域変換処理や黒点補正処理を行った際に、その振幅の前後で明度の逆転が発生し、擬似輪郭が起きる可能性がある。このような擬似輪郭の発生を防止するために、色相間の階調を平滑化しておくことが好ましい。以下、擬似輪郭の発生防止のための色相間の尖頭値変動を平滑化する処理について説明を行う。
(6) Smoothing processing of peak value fluctuation between hues:
In the above color gamut conversion processing and black point correction processing, processing using the peak values of the printer color gamut and display color gamut is performed. FIG. 24 is a graph in which the peak value in each hue of the printer color gamut is plotted with respect to the peak value. In the figure, portions where the amplitude occurs in small increments are observed at hue angles of about 110 °, 130 °, and 260 °. In a portion where a small amplitude is generated, when the above-described color gamut conversion processing or black point correction processing is performed, inversion of brightness occurs before and after the amplitude, and a pseudo contour may occur. In order to prevent the occurrence of such a pseudo contour, it is preferable to smooth the gradation between hues. Hereinafter, processing for smoothing peak value fluctuations between hues for preventing the occurrence of pseudo contour will be described.

本実施形態の色相間の尖頭値変動の平滑化においては、最大彩度をとる色相の尖頭値を平滑化のための基準点として使用して平滑化を行う。一般にプライマリカラーは色表現能力が高いため最大彩度を取りやすい。そこでまずは平滑化の基準点としてプリンタ色域におけるプライマリカラー(本実施形態においては、加法混色と減法混色の一次色としてRGBCMYを想定してある。)の尖頭値を採用し、下記式(10)を用いて隣接プライマリカラーの尖頭値間を平滑化する。

ここで、L(θ)は所定色相θ(θ?θ?θ)における尖頭値、L0Mはマゼンタの色相θにおける尖頭値、L0Bは青の色相θにおける尖頭値、Rateは隣接するプライマリカラーの尖頭値間を線型補間する係数、である。なお、前記式(10)には青〜マゼンタの色相角を平滑化する式を例示してあるが、他のプライマリカラー間の尖頭値についても同様の式で平滑化できる。図25は前記図24のグラフをプライマリカラーの尖頭値を利用して近似したグラフである。小刻みに振幅していた箇所が平滑化されたことが見て取れる。このように既定のプライマリカラーの尖頭値間を補間すると、尖頭値の算出処理や補間処理が非常に簡易になる。
In the smoothing of the peak value variation between hues in the present embodiment, the peak value of the hue having the maximum saturation is used as a reference point for smoothing. In general, the primary color has a high color expression capability, so it is easy to obtain the maximum saturation. Therefore, first, the peak value of the primary color in the printer color gamut (in this embodiment, RGBCMY is assumed as the primary color of the additive color mixture and subtractive color mixture) is adopted as a smoothing reference point. ) To smooth the peak values between adjacent primary colors.

Here, L 0 (θ) is a peak value in a predetermined hue θ (θ B ? Θ? Θ M ), L 0M is a peak value in a magenta hue θ M , and L 0B is a peak value in a blue hue θ B. The value Rate is a coefficient for linear interpolation between the peak values of adjacent primary colors. In addition, although the formula for smoothing the hue angle of blue to magenta is illustrated in the formula (10), the peak value between other primary colors can be smoothed by the same formula. FIG. 25 is a graph obtained by approximating the graph of FIG. 24 using the peak value of the primary color. It can be seen that the portion that was oscillating in small increments was smoothed. If interpolation is performed between the peak values of the default primary color in this way, peak value calculation processing and interpolation processing become very simple.

ところで、例えばJCh色空間のように、プライマリカラーが最大彩度をとらない場合もある。このような場合は、まず、最大彩度となる基準点の検出を行う。すなわち、プライマリカラーに代えて、尖頭値の傾きが大きく変動する色相の尖頭値を基準点としてする。すなわち、色相の変化に対する尖頭値Jの変化度合いが大きく変動する色相角θ(以下、勾配変動点Iと称する。)を複数ポイント検出する。そして、各勾配変動点Iにおける尖頭値L(I)の間を所定の補間式で補間することにより、色相の変化に対する尖頭値Lの変化を平滑化する。 By the way, there is a case where the primary color does not take the maximum saturation, for example, as in the JCh color space. In such a case, first, a reference point having the maximum saturation is detected. That is, instead of the primary color, the peak value of a hue whose inclination of the peak value greatly varies is used as a reference point. That is, the hue angle θ that the degree of change in peak J 0 to the change in hue varies greatly (hereinafter, referred to as the slope change point I.) To a plurality of points detected. Then, by interpolating between the peak values L 0 (I) at each gradient fluctuation point I with a predetermined interpolation formula, the change in the peak value L 0 with respect to the change in hue is smoothed.

勾配変動点Iを検出するために、まず色相角θを所定量ずつ変化させつつプリンタ色域を所定色相角で切断した色域の尖頭値Jを順に求め、色相の対する尖頭値Jの変動データを取得する。次に所定の色相範囲Rを設定し、取得した変動データの所定の色相範囲Rを所定の色相範囲R内における尖頭値Jの傾きの変化度合を、所定の色相範囲Rを所定量ずつシフトさせつつ全色相に亘って算出する。このとき設定される所定の色相範囲Rの最小値は、前述した小刻みな振幅よりも広く設定される必要がある。そして、変動の大きい順に例えば12ポイントの色相角θ〜θ12を選択し、色相角の昇順に勾配変動点I〜I12として設定する。より具体的な勾配変動点の検出の仕方としては、図24のa,b,c等のように該勾配変動点の前後で傾きの符号が変化するような点であってもよいし、図24のdのように傾きの符号自体は変化しないが傾きが比較的大きく変化する点、等が可能である。実際には、以上の勾配変動点に設定されやすい部位は、極値や変曲点であることが多い。 In order to detect the gradient fluctuation point I, first, the peak value J 0 of the color gamut obtained by cutting the printer color gamut at a predetermined hue angle is sequentially obtained while changing the hue angle θ by a predetermined amount, and the peak value J for the hue is obtained. 0 fluctuation data is acquired. Then setting a predetermined hue range R, the degree of change of the slope of the peak value J 0 at a predetermined hue range R within a predetermined hue range R of the acquired variation data, by a predetermined amount a predetermined hue range R Calculation is performed over the entire hue while shifting. The minimum value of the predetermined hue range R set at this time needs to be set wider than the small amplitude described above. Then, for example, twelve hue angles θ 1 to θ 12 are selected in descending order of variation, and set as gradient variation points I 1 to I 12 in ascending order of hue angles. As a more specific method of detecting the gradient variation point, a point where the sign of the gradient changes before and after the gradient variation point, such as a, b, and c in FIG. It is possible that the inclination sign itself does not change as in 24d, but the inclination changes relatively large. In practice, the portion that is likely to be set at the above-described gradient variation point is often an extreme value or an inflection point.

そして決定された勾配変動点の尖頭値間を以下の補間式(11)にて補間する。

前記式(11)では、θ?θ?θn+1のJ(θ)を求めることができる。ここで、J(I)は勾配変動点Iにおける尖頭値、J(θ)は色相角θにおける尖頭値、Rate’は隣接する基準点の尖頭値間を線型補間する係数である。以上の式(11)によれば、各勾配変動点の尖頭値の間の尖頭値が平滑化され、小刻みな振幅を解消できる。なお、基準点の尖頭値間の補間は、線型補間に限るものではなく、例えば3次補間などの高次の補間を利用しても構わない。
Then, the peak value of the determined gradient change point is interpolated by the following interpolation formula (11).

In the equation (11), J 0 (θ) of θ n ? Θ? Θ n + 1 can be obtained. Here, J 0 (I n) is the peak value of the gradient change point I n, J 0 (θ) is the peak value of the hue angle theta, Rate 'is linear interpolation between peak values of adjacent reference points It is a coefficient. According to the above equation (11), the peak value between the peak values of each gradient fluctuation point is smoothed, and the amplitude can be eliminated in small increments. The interpolation between the peak values of the reference points is not limited to linear interpolation, and high-order interpolation such as cubic interpolation may be used.

図26は色相間の尖頭値変動を平滑化する処理の流れを示すフローチャートである。本実施形態においては、ステップS600にて各色相角における尖頭値を色相角を所定角置きに取得する。ステップS605では、取得された尖頭値の色相変化に対する傾きを検出し、傾きの変動が大きい色相角θ〜θ12を色相角の昇順に勾配変動点I〜I12に決定する。そしてステップS610にて勾配変動点I〜I12における尖頭値L(I)〜L(I12)を式(11)で線型補間する。以上のようにして求めた各色相の尖頭値を使用して前述の色域変換処理や黒点補正処理を行えば、各色相間でマッピングベクトル方向を安定して色相変化に対する尖頭値変化に起因した小刻みな振幅が抑制され、擬似輪郭が発生しなくなる。 FIG. 26 is a flowchart showing the flow of processing for smoothing peak value fluctuations between hues. In the present embodiment, in step S600, the peak value at each hue angle is obtained for every hue angle. In step S605, the inclination of the acquired peak value with respect to the hue change is detected, and the hue angles θ 1 to θ 12 having a large inclination change are determined as the gradient change points I 1 to I 12 in ascending order of the hue angle. In step S610, the peak values L (I 1 ) to L (I 12 ) at the gradient fluctuation points I 1 to I 12 are linearly interpolated using the equation (11). If the above-described color gamut conversion processing or black point correction processing is performed using the peak value of each hue obtained as described above, the mapping vector direction is stabilized between the hues, resulting from the peak value change with respect to the hue change. Thus, the small amplitude is suppressed, and the pseudo contour is not generated.

さらに、色相間の尖頭値変動を平滑化するにあたり、前述したプライマリカラー6色に加えて各プライマリカラーの中間値を基準点に追加したり、検出された勾配変動点Iの間に基準点を複数追加したりすると、補間された尖頭値の実際の尖頭値に対する近似精度の向上が期待できる。また、前述した勾配変動点Iの決定方法として、例えば傾きが正負で変化する部位のみを勾配変動点Iとして採用しても構わない。傾きの符号が変化しない場合は、補間などで近似が可能であり、実際の尖頭値と大幅なズレは発生しないと想定されるからである。また、補間には、尖頭値間の線型補間のみならず、各尖頭値を3次補間式などで非線形的に近似した補間を行っても無論構わない。3次補間を用いると、基準点における尖頭値の変動が緩やかな場合に、近似精度が向上する。   Further, in smoothing the peak value fluctuation between hues, in addition to the six primary colors described above, an intermediate value of each primary color is added to the reference point, or a reference point between the detected gradient change points I is added. If a plurality of values are added, the accuracy of approximation of the interpolated peak value to the actual peak value can be expected. Further, as a method of determining the gradient fluctuation point I described above, for example, only a portion where the gradient changes positively or negatively may be adopted as the gradient fluctuation point I. This is because when the sign of the slope does not change, approximation can be performed by interpolation or the like, and it is assumed that there is no significant deviation from the actual peak value. Of course, the interpolation is not limited to linear interpolation between peak values, but it is of course possible to perform interpolation in which each peak value is approximated nonlinearly by a cubic interpolation equation or the like. When cubic interpolation is used, approximation accuracy is improved when the fluctuation of the peak value at the reference point is moderate.

さらにプライマリカラーが勾配変動点であるか否かが不明な場合に好適な変形例として、前述した実施形態を組合せても良い。すなわち、プライマリカラーRGBCMYを仮の勾配変動点として設定しつつ、該プライマリカラーを略中心とする所定の色相範囲Rに含まれる各色相の尖頭値Jを順次取得し、取得した変動データにおける傾きの変動度合を算出する。この変動度合が所定の基準を超えていればプライマリカラーRGBCMYを真の勾配変動点として採用するのである。一方、変動度合が所定の基準を超えていない場合は、真の勾配変動点が他に存在する可能性があるため、前述の尖頭値の傾きが大きく変動する色相の探索を実行するのである。このようにプライマリカラーが勾配変動点になりやすいという前提に立ちつつも、プライマリカラーが本当に勾配変動点であるかを確認する処理を行うことにより、確実に真の勾配変動点を採用できる。さらに、プライマリカラーが勾配変動点であるか否かを判断する際に、各プライマリカラーの所定の色相範囲Rのみを確認対象とすることで演算量を最小限に抑えることができる。一般にプライマリカラーが勾配変動点であることが多いことを前提に、いわば、プライマリカラーが勾配変動点でない場合を例外処理とするのである。 Furthermore, the above-described embodiments may be combined as a suitable modification when it is unclear whether the primary color is a gradient change point. That is, while setting the primary color RGBCMY as a temporary gradient change point, the peak value J 0 of each hue included in the predetermined hue range R substantially centered on the primary color is sequentially obtained, and the obtained fluctuation data The degree of inclination variation is calculated. If the degree of change exceeds a predetermined reference, the primary color RGBCMY is adopted as the true gradient change point. On the other hand, if the degree of variation does not exceed a predetermined standard, there is a possibility that another true gradient variation point may exist, so the search for the hue in which the inclination of the peak value varies greatly is performed. . In this way, it is possible to reliably adopt the true gradient change point by performing the process of confirming whether the primary color is really the gradient change point, while assuming that the primary color is likely to be the gradient change point. Furthermore, when determining whether or not the primary color is a gradient change point, the amount of calculation can be minimized by making only the predetermined hue range R of each primary color a check target. In general, assuming that the primary color is often a gradient change point, the case where the primary color is not a gradient change point is an exception process.

前述した色相間の尖頭値を平滑化する処理は、ガマットに凹凸のあるプリンタ色域、特にフォトマット紙等の色域に適用すると好ましいが、無論、ディスプレイの色域に適用しても構わない。特に勾配変動点とプライマリカラーとが一致するのであれば、各色相角の尖頭値を逐次算出するのではなく、該色相階調平滑化処理にて各色相角の尖頭値を予測して処理速度を向上させることも可能である。   The above-described processing for smoothing the peak value between hues is preferably applied to a printer color gamut having uneven gamuts, particularly a color gamut such as photomat paper, but of course may be applied to the display color gamut. Absent. In particular, if the gradient change point and the primary color match, instead of sequentially calculating the peak value of each hue angle, the peak value of each hue angle is predicted by the hue gradation smoothing process. It is also possible to improve the processing speed.

(7)まとめ:
以上説明したように、本実施形態においては、所定の機器独立色空間の所定色相において前記第2の画像機器の色域外であって前記第1の画像機器の色域内となる色域外領域が存在する場合に、所定色相におけるプリンタ色域の尖頭値Jを検出し、ディスプレイ色域をプリンタ色域の形状に近づけるにあたり、尖頭値Jよりも高明度側においては彩度と明度の双方を圧縮しつつプリンタ色域内に写像させる色変換処理を行い、尖頭値Jよりも低明度側においては明度を略一定に保ちつつ彩度を圧縮してプリンタ色域内に写像させる色域変換処理を行ってディスプレイ色域とプリンタ色域との対応関係を規定し、この対応関係に基づいてディスプレイの画像データをプリンタの画像データに変換する。よって、画像機器間の色域を対応付けるにあたり、階調性を維持しつつ良好な色再現を行うことが可能となる。
(7) Summary:
As described above, in the present embodiment, there is an out-of-gamut region outside the color gamut of the second image device and within the color gamut of the first image device in a predetermined hue of a predetermined device-independent color space. when detects a peak value J 0 of the printer gamut in a predetermined color, when brought close to the display gamut to the shape of the printer gamut, saturation and lightness in peak J higher brightness side than 0 A color gamut in which both are compressed and mapped into the printer color gamut, and on the lower brightness side than the peak value J 0, the saturation is compressed while keeping the brightness substantially constant. A conversion process is performed to define a correspondence relationship between the display color gamut and the printer color gamut, and display image data is converted into printer image data based on the correspondence relationship. Therefore, in associating the color gamuts between the image devices, it is possible to perform good color reproduction while maintaining gradation.

なお、本発明は上述した実施形態や変形例に限られず、上述した実施形態および変形例の中で開示した各構成を相互に置換したり組合せを変更したりした構成、公知技術並びに上述した実施形態および変形例の中で開示した各構成を相互に置換したり組合せを変更したりした構成、等も含まれる。   Note that the present invention is not limited to the above-described embodiments and modifications, and the configurations disclosed in the above-described embodiments and modifications are mutually replaced, the combinations are changed, the known technology, and the above-described implementations. Configurations in which the configurations disclosed in the embodiments and modifications are replaced with each other or combinations are also included.

本発明にかかる色変換プログラムを実行するコンピュータの概略ハードウェア構成を示すブロック図である。It is a block diagram which shows the schematic hardware constitutions of the computer which executes the color conversion program concerning this invention. 色変換プログラムが同コンピュータのOS上に色変換モジュールとして実現された場合における概略構成を示すブロック図である。It is a block diagram which shows schematic structure in case a color conversion program is implement | achieved as a color conversion module on OS of the computer. 色域調整の設定処理を行う画面の一例である。It is an example of the screen which performs the setting process of color gamut adjustment. 色変換モジュールの概念図である。It is a conceptual diagram of a color conversion module. LUT作成作業のフローチャートである。It is a flowchart of LUT creation work. 印刷処理を示すフローチャートである。It is a flowchart which shows a printing process. ディスプレイの色域とプリンタの色域とをJab空間における所定の色相角θにて切断した状態を示す模式図である。FIG. 4 is a schematic diagram illustrating a state where a display color gamut and a printer color gamut are cut at a predetermined hue angle θ in a Jab space. 第1圧縮アルゴリズムを説明する図である。It is a figure explaining a 1st compression algorithm. 第2圧縮アルゴリズムを説明する図である。It is a figure explaining a 2nd compression algorithm. 尖頭値を境に圧縮アルゴリズムを使い分けることによる作用効果を説明する図である。It is a figure explaining the effect by using properly a compression algorithm on the boundary of a peak value. 色域変換処理のフローチャートである。It is a flowchart of a color gamut conversion process. ディスプレイの色域Jabとプリンタの色域PとをJab空間におけるab平面で切断した状態を示している。A state in which the display color gamut Jab and the printer color gamut P are cut along the ab plane in the Jab space is shown. 色域変換処理における圧縮アルゴリズムの切り替え方を説明する図である。It is a figure explaining the switching method of the compression algorithm in a color gamut conversion process. マッピングアルゴリズムの選択を行いつつ色域変換処理を行うフローチャートである。It is a flowchart which performs a color gamut conversion process, selecting a mapping algorithm. SGCKのS字カーブ補正を説明する図である。It is a figure explaining S-curve correction of SGCK. 低彩度領域におけるSGCKのS字カーブ補正を説明する図である。It is a figure explaining S-curve correction of SGCK in a low saturation area. 高彩度領域におけるSGCKのS字カーブ補正を説明する図である。It is a figure explaining S-curve correction of SGCK in a high saturation area. 本実施形態にかかる黒点補正処理の概念を説明する図である。It is a figure explaining the concept of the black point correction process concerning this embodiment. 本実施形態にかかる黒点補正処理における領域設定を説明する図である。It is a figure explaining the area | region setting in the black point correction process concerning this embodiment. 本実施形態にかかる黒点補正処理における圧縮元と圧縮先の領域を説明する図である。It is a figure explaining the area | region of the compression origin and compression destination in the black point correction process concerning this embodiment. 本実施形態にかかる黒点補正処理における圧縮元と圧縮先の領域を説明する図であるIt is a figure explaining the area | region of the compression source and compression destination in the black point correction process concerning this embodiment. 本実施形態にかかる黒点補正処理における圧縮元と圧縮先の領域を説明する図であるIt is a figure explaining the area | region of the compression source and compression destination in the black point correction process concerning this embodiment. 本実施形態にかかる黒点補正処理のフローチャートである。It is a flowchart of the black point correction process concerning this embodiment. プリンタ色域の各色相における尖頭値をプロットしたグラフである。It is the graph which plotted the peak value in each hue of a printer color gamut. プライマリカラーの尖頭値を利用して近似したグラフである。It is the graph approximated using the peak value of the primary color. 色相間の尖頭値変動を平滑化する処理のフローチャートである。It is a flowchart of the process which smoothes the peak value fluctuation | variation between hues.

符号の説明Explanation of symbols

10…コンピュータ、11…CPU、12…RAM、13…ROM、14…システムバス、15…ハードディスクドライブ(HDD)、15a…画像データ、15b…ルックアップテーブル(LUT)、18…ディスプレイ、19b…プリンタI/O、20…OS、21…プリンタドライバ(PRTDRV)、21a…画像データ取得モジュール、21b…色変換モジュール、21c…ハーフトーン処理モジュール、21d…印刷データ生成モジュール、22…操作用入力機器ドライバ(DRV)、23…ディスプレイドライバ(DRV)、24…色域変換モジュール、25…アプリケーションプログラム(APL)、30…操作用入力機器、40…プリンタ DESCRIPTION OF SYMBOLS 10 ... Computer, 11 ... CPU, 12 ... RAM, 13 ... ROM, 14 ... System bus, 15 ... Hard disk drive (HDD), 15a ... Image data, 15b ... Look-up table (LUT), 18 ... Display, 19b ... Printer I / O, 20 ... OS, 21 ... Printer driver (PRTDRV), 21a ... Image data acquisition module, 21b ... Color conversion module, 21c ... Halftone processing module, 21d ... Print data generation module, 22 ... Input device driver for operation (DRV), 23 ... Display driver (DRV), 24 ... Color gamut conversion module, 25 ... Application program (APL), 30 ... Input device for operation, 40 ... Printer

Claims (8)

第1の画像機器にて使用される第1画像データを第2の画像機器にて使用される第2画像データに変換する画像処理方法であって、
所定の機器独立色空間の所定色相において前記第2の画像機器の色域外であって前記第1の画像機器の色域内となる色域外領域が存在する場合に、
前記所定色相における前記第2の画像機器の色域の最大彩度における明度を検出する検出工程と、
前記第2の画像機器の色域形状に基づいて前記第1の画像機器の色域形状を圧縮するにあたり、前記検出工程において検出された前記明度よりも高明度側においては彩度と明度の双方を圧縮して前記第2の画像機器の色域内に写像させる色域変換処理と、前記検出工程において検出された前記明度よりも低明度側においては明度を略一定に保ち彩度を圧縮して前記第2の画像機器の色域内に写像させる色域変換処理とを行って前記第1の画像機器の色域と前記第2の画像機器の色域との対応関係を規定する色域変換工程と、
前記対応関係に基づいて前記第1画像データを第2画像データに変換する色変換工程と、
を備えることを特徴とする画像処理方法。
An image processing method for converting first image data used in a first image device into second image data used in a second image device,
When there is an out-of-gamut region outside the color gamut of the second image device and within the color gamut of the first image device in a predetermined hue of a predetermined device-independent color space,
A detection step of detecting brightness at a maximum saturation of a color gamut of the second image device in the predetermined hue;
In compressing the color gamut shape of the first image device based on the color gamut shape of the second image device, both the saturation and the lightness are higher on the lightness side than the lightness detected in the detection step. A color gamut conversion process for compressing the image into the color gamut of the second image device, and compressing the saturation while maintaining the lightness substantially constant on the lightness side lower than the lightness detected in the detection step. A color gamut conversion step of defining a correspondence relationship between the color gamut of the first image device and the color gamut of the second image device by performing a color gamut conversion process for mapping within the color gamut of the second image device. When,
A color conversion step of converting the first image data into second image data based on the correspondence relationship;
An image processing method comprising:
前記色域変換工程においては、前記検出工程において検出された前記明度よりも高明度側において前記第1の画像機器の色域形状を前記第2の画像機器の色域形状に近づけるにあたり、圧縮対象の明度が前記検出工程において検出された前記明度に近づくにつれて徐々に明度の圧縮率を減少させて前記第1の画像機器の色域内に写像させる色域変換処理を行う請求項1に記載の画像処理方法。   In the color gamut conversion step, a compression target is used to bring the color gamut shape of the first image device closer to the color gamut shape of the second image device on the lightness side higher than the lightness detected in the detection step. 2. The image according to claim 1, wherein a color gamut conversion process is performed in which the lightness compression rate is gradually reduced as the lightness of the first image device approaches the lightness detected in the detection step so as to be mapped into the color gamut of the first image device. Processing method. 前記色域変換工程においては、前記第1の画像機器の色域形状を前記第2の画像機器の色域形状に近づけるにあたり、前記検出工程において検出された前記明度よりも高明度側における圧縮率と圧縮方向が、前記検出工程において検出された前記明度よりも低明度側における圧縮率と圧縮方向に、前記検出工程において検出された前記明度において一致するように圧縮して色域変換処理を行う請求項1又は請求項2に記載の画像処理方法。   In the color gamut conversion step, the compression rate on the higher lightness side than the lightness detected in the detection step in bringing the color gamut shape of the first image device closer to the color gamut shape of the second image device. Gamut conversion processing is performed by compressing so that the compression direction matches the compression rate and the compression direction on the lightness side lower than the lightness detected in the detection step at the lightness detected in the detection step. The image processing method according to claim 1 or 2. 前記色域変換工程においては、前記検出工程において検出された前記明度よりも高明度側において前記第1の画像機器の色域形状を前記第2の画像機器の色域形状に近づけるにあたり、前記機器独立色空間の明度軸上の前記検出工程において検出された前記明度に向けて圧縮させ、前記第2の画像機器の色域外殻からの距離に応じた圧縮率にて前記第1の画像機器の色域内に写像させる色域変換処理を行う請求項1〜請求項3の何れか一項に記載の画像処理方法。   In the color gamut conversion step, in bringing the color gamut shape of the first image device closer to the color gamut shape of the second image device on the lightness side higher than the lightness detected in the detection step, the device The first image device is compressed toward the lightness detected in the detection step on the lightness axis of the independent color space, and compressed at a compression ratio according to the distance from the color gamut outer shell of the second image device. The image processing method according to any one of claims 1 to 3, wherein a color gamut conversion process for mapping in the color gamut is performed. 前記色域変換工程においては、前記検出工程において検出された前記明度よりも高明度側において前記第1の画像機器の色域形状を前記第2の画像機器の色域形状に近づけるにあたり、前記色域外領域の圧縮先を前記第2の画像機器の外殻から所定範囲とし、前記色域外領域と前記所定範囲とを前記所定範囲に対して圧縮方向に規格化する色域変換処理を行う請求項1〜請求項4の何れか一項に記載の画像処理方法。   In the color gamut conversion step, the color gamut of the first image device is brought closer to the color gamut shape of the second image device on the lightness side higher than the lightness detected in the detection step. A color gamut conversion process is performed in which a compression destination of an out-of-gamut region is set to a predetermined range from an outer shell of the second image device, and the out-of-gamut region and the predetermined range are normalized in a compression direction with respect to the predetermined range. The image processing method as described in any one of Claims 1-4. 前記第2の画像機器が前記第1画像データを入力されるプリンタであり、
前記請求項1〜請求項5の何れか1項に記載の色域変換工程において規定される対応関係に基づいて作成された色変換テーブルを備え、該色変換テーブルに基づいて色変換を行うことを特徴とするプリンタ。
The second image device is a printer to which the first image data is input;
A color conversion table created based on the correspondence defined in the color gamut conversion step according to any one of claims 1 to 5 is provided, and color conversion is performed based on the color conversion table. Printer characterized by.
第1の画像機器にて使用される第1画像データを第2の画像機器にて使用される第2画像データに変換する画像処理装置であって、
所定の機器独立色空間の所定色相において前記第2の画像機器の色域外であって前記第1の画像機器の色域内となる色域外領域が存在する場合に、
前記所定色相における前記第2の画像機器の色域の最大彩度における明度を検出する検出手段と、
前記第2の画像機器の色域形状に基づいて前記第1の画像機器の色域形状を圧縮するにあたり、前記検出手段によって検出された前記明度よりも高明度側においては彩度と明度の双方を圧縮して前記第2の画像機器の色域内に写像させる色域変換処理と、前記検出手段によって検出された前記明度よりも低明度側においては明度を略一定に保ち彩度を圧縮して前記第2の画像機器の色域内に写像させる色域変換処理とを行って前記第1の画像機器の色域と前記第2の画像機器の色域との対応関係を規定する色域変換手段と、
前記対応関係に基づいて前記第1画像データを第2画像データに変換する色変換手段と、
を備えることを特徴とする画像処理装置。
An image processing apparatus for converting first image data used in a first image device into second image data used in a second image device,
When there is an out-of-gamut region outside the color gamut of the second image device and within the color gamut of the first image device in a predetermined hue of a predetermined device-independent color space,
Detecting means for detecting lightness in the maximum saturation of the color gamut of the second image device in the predetermined hue;
When compressing the color gamut shape of the first image device based on the color gamut shape of the second image device, both the saturation and the lightness are higher on the lightness side than the lightness detected by the detection means. Gamut conversion processing for compressing the image and mapping it within the color gamut of the second image device, and compressing the saturation while maintaining the lightness substantially constant on the lightness side lower than the lightness detected by the detection means Color gamut conversion means for defining a correspondence relationship between the color gamut of the first image device and the color gamut of the second image device by performing a color gamut conversion process for mapping within the color gamut of the second image device. When,
Color conversion means for converting the first image data into second image data based on the correspondence relationship;
An image processing apparatus comprising:
第1の画像機器にて使用される第1画像データを第2の画像機器にて使用される第2画像データに変換する機能をコンピュータに実現させる画像処理プログラムであって、
所定の機器独立色空間の所定色相において前記第2の画像機器の色域外であって前記第1の画像機器の色域内となる色域外領域が存在する場合に、
前記所定色相における前記第2の画像機器の色域の最大彩度における明度を検出する検出機能と、
前記第2の画像機器の色域形状に基づいて前記第1の画像機器の色域形状を圧縮するにあたり、前記検出機能によって検出された前記明度よりも高明度側においては彩度と明度の双方を圧縮して前記第2の画像機器の色域内に写像させる色域変換処理と、前記検出機能によって検出された前記明度よりも低明度側においては明度を略一定に保ち彩度を圧縮して前記第2の画像機器の色域内に写像させる色域変換処理とを行って前記第1の画像機器の色域と前記第2の画像機器の色域との対応関係を規定する色域変換機能と、
前記対応関係に基づいて前記第1画像データを第2画像データに変換する色変換機能と、
をコンピュータに実現させることを特徴とする画像処理プログラム。
An image processing program for causing a computer to realize a function of converting first image data used in a first image device into second image data used in a second image device,
When there is an out-of-gamut region outside the color gamut of the second image device and within the color gamut of the first image device in a predetermined hue of a predetermined device-independent color space,
A detection function for detecting lightness in the maximum saturation of the color gamut of the second image device in the predetermined hue;
In compressing the color gamut shape of the first image device based on the color gamut shape of the second image device, both saturation and lightness are higher on the lightness side than the lightness detected by the detection function. Gamut conversion processing for compressing the image and mapping it within the color gamut of the second image device, and compressing the saturation while maintaining the lightness substantially constant on the lightness side lower than the lightness detected by the detection function A color gamut conversion function for defining a correspondence relationship between the color gamut of the first image device and the color gamut of the second image device by performing a color gamut conversion process for mapping within the color gamut of the second image device. When,
A color conversion function for converting the first image data into second image data based on the correspondence relationship;
An image processing program for causing a computer to realize the above.
JP2008059300A 2008-03-10 2008-03-10 Image processing method, printer, color conversion device, and color conversion program Withdrawn JP2009218780A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008059300A JP2009218780A (en) 2008-03-10 2008-03-10 Image processing method, printer, color conversion device, and color conversion program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008059300A JP2009218780A (en) 2008-03-10 2008-03-10 Image processing method, printer, color conversion device, and color conversion program

Publications (1)

Publication Number Publication Date
JP2009218780A true JP2009218780A (en) 2009-09-24

Family

ID=41190236

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008059300A Withdrawn JP2009218780A (en) 2008-03-10 2008-03-10 Image processing method, printer, color conversion device, and color conversion program

Country Status (1)

Country Link
JP (1) JP2009218780A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015111779A (en) * 2013-12-06 2015-06-18 三星ディスプレイ株式會社Samsung Display Co.,Ltd. Image processing apparatus, image processing method and computer program
CN105991899A (en) * 2015-03-19 2016-10-05 富士施乐株式会社 Color conversion information generating apparatus and method
CN106488078A (en) * 2015-08-24 2017-03-08 佳能株式会社 Image processing equipment and image processing method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07107306A (en) * 1993-09-29 1995-04-21 Canon Inc Picture processing method and device
JP2000287096A (en) * 1999-03-31 2000-10-13 Sanyo Electric Co Ltd Gamut compression method in color printer and color reproduction processing unit using the same
JP2000324350A (en) * 1999-05-13 2000-11-24 Matsushita Electric Ind Co Ltd Color converter
JP2003153018A (en) * 2001-11-09 2003-05-23 Fuji Xerox Co Ltd Apparatus and method of processing color image signal, and color image signal processing program

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07107306A (en) * 1993-09-29 1995-04-21 Canon Inc Picture processing method and device
JP2000287096A (en) * 1999-03-31 2000-10-13 Sanyo Electric Co Ltd Gamut compression method in color printer and color reproduction processing unit using the same
JP2000324350A (en) * 1999-05-13 2000-11-24 Matsushita Electric Ind Co Ltd Color converter
JP2003153018A (en) * 2001-11-09 2003-05-23 Fuji Xerox Co Ltd Apparatus and method of processing color image signal, and color image signal processing program

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015111779A (en) * 2013-12-06 2015-06-18 三星ディスプレイ株式會社Samsung Display Co.,Ltd. Image processing apparatus, image processing method and computer program
US9478046B2 (en) 2013-12-06 2016-10-25 Samsung Display Co., Ltd. Image processing circuit and image processing method
CN105991899A (en) * 2015-03-19 2016-10-05 富士施乐株式会社 Color conversion information generating apparatus and method
CN105991899B (en) * 2015-03-19 2018-12-18 富士施乐株式会社 Color transitional information generating device and method
CN106488078A (en) * 2015-08-24 2017-03-08 佳能株式会社 Image processing equipment and image processing method

Similar Documents

Publication Publication Date Title
JP5067276B2 (en) Color conversion method, color conversion table generated by the color conversion method, image processing apparatus, and color conversion program
JP4223708B2 (en) Medium recording color conversion program, color conversion program, color conversion table creation method, color conversion device, and color conversion method
JP4771538B2 (en) Color conversion table generation method, color conversion table, and color conversion table generation apparatus
JP4996338B2 (en) Color processing method and color processing apparatus
US20070030499A1 (en) Color processing method and apparatus
JP2002359749A (en) Medium for recording color transformation program, color transformation program, method for generating color transformation table, medium for recording color transformation table data, color transformation device, color transformation method and color transformation table
JP2005253072A5 (en)
JP2005253072A (en) System and method for gamut mapping control
JP2006068982A (en) Image processor, image processing method and printer driver
JP2005348053A (en) Color conversion device; method, device, and program for print control unit; method, device, and program for generating color conversion data; and recording medium on which color conversion data is recorded
JP2006262238A (en) Image processing method, image processor and image processing program
JP5882763B2 (en) Image processing apparatus and profile creation method
JP2008147937A (en) Image processor and image processing method
JP2009218780A (en) Image processing method, printer, color conversion device, and color conversion program
JP2005295153A (en) Color conversion device and its method
JP4983658B2 (en) Image processing method, image processing apparatus, and image processing program
JP2009219062A (en) Image processing method, printer, image processor and image processing program
JP4321586B2 (en) Color conversion condition setting method for image forming apparatus, image forming apparatus, and program
JP4023417B2 (en) Image processing using LUT
US8792135B2 (en) Image processing device, computer program product including image processing program embodied on computer readable medium, and image forming apparatus
JP2007251619A (en) Apparatus, method and program for image processing
JP2009219060A (en) Image processing method, image processor and image processing program
JP2009219064A (en) Image processing method, image processor, printer, and image processing program
JP2009017473A (en) Color gamut generation device, color gamut generation method, color gamut generation program, and color conversion unit
JP2007195015A (en) Color conversion apparatus, method, and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20110218

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20120314

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20120327

A761 Written withdrawal of application

Free format text: JAPANESE INTERMEDIATE CODE: A761

Effective date: 20120509