JP2002223367A - Method and device for processing picture - Google Patents

Method and device for processing picture

Info

Publication number
JP2002223367A
JP2002223367A JP2001020689A JP2001020689A JP2002223367A JP 2002223367 A JP2002223367 A JP 2002223367A JP 2001020689 A JP2001020689 A JP 2001020689A JP 2001020689 A JP2001020689 A JP 2001020689A JP 2002223367 A JP2002223367 A JP 2002223367A
Authority
JP
Japan
Prior art keywords
conversion
color
image data
rgb
image processing
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
JP2001020689A
Other languages
Japanese (ja)
Inventor
Takatsune Akaishi
貴恒 赤石
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Canon Inc
Original Assignee
Canon Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Canon Inc filed Critical Canon Inc
Priority to JP2001020689A priority Critical patent/JP2002223367A/en
Publication of JP2002223367A publication Critical patent/JP2002223367A/en
Withdrawn legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide a picture processing method and a picture processor for setting a color reproduction characteristic in the neighborhood of a gray axis and reproducing a color which is provided with the color reproduction characteristic closer to that in the neighborhood of the gray axis in the silver salt photography. SOLUTION: When color matching with a printer is applied for RGB-type picture data, a gray mode selected by a user is judged from a plurality of color reproduction modes being different in color reproduction in the neighborhood of the gray axis in a step S101, a one-dimensional LUT based on the gray mode is generated in steps S102-104, the RGB-type picture data are converted into RGB-type picture data based on 1DLUT in a step S108 and, then, the RGB-type picture data are converted into picture data corresponding to the ink colors of the printer based on prescribed 3DLUT in steps S109 and S110.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は画像処理方法及び画
像処理装置に関し、RGB形式の画像データに対するカラ
ーマッチングを施す画像処理方法及び画像処理装置に関
する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing method and an image processing apparatus, and more particularly to an image processing method and an image processing apparatus for performing color matching on RGB format image data.

【0002】[0002]

【従来の技術】特にOSとしてWindows(登録商
標)98を採用したコンピュータにおいては、接続され
たモニタとプリンタ等の複数のデバイス間における色再
現を一致させるカラーマッチング処理として、米ヒュー
レットパッカード社と米マイクロソフト社によって提唱
されたsRGB色空間(以下、単にsRGBと称する)を基準と
している。sRGBを基準とするカラーマッチングにおいて
は、ユーザがプロファイルや各種設定を行なう必要がな
いため、色処理に精通していないユーザであっても、適
切なカラーマッチング結果が得られる。
2. Description of the Related Art In particular, in a computer employing Windows (registered trademark) 98 as an OS, Hewlett-Packard Company, a US company, and a US company, perform color matching processing for matching color reproduction between a plurality of devices such as a connected monitor and a printer. It is based on the sRGB color space (hereinafter simply referred to as sRGB) proposed by Microsoft Corporation. In color matching based on sRGB, a user does not need to make profiles and various settings, so that even a user who is not familiar with color processing can obtain an appropriate color matching result.

【0003】従って、近年の多くの画像入力機器は、sR
GBを基準としたカラーマッチングを実現するために、デ
フォルトでsRGBかそれに近いモニタを意識した画像設計
が行なわれている。例えば、多くのプリンタドライバは
sRGBモニタ(あるいはそれに近いモニタ特性)をターゲッ
トとした色設計がなされており、従って、機種毎の色再
現結果が類似してきている。このような色再現結果の特
徴としては、sRGBはD65光源を白色基準として設計され
た色空間であるため、グレー軸の色味が少し青寄りにな
ることである。
Accordingly, many image input devices in recent years are sR
In order to realize color matching based on GB, image design is performed by default for sRGB or similar monitors. For example, many printer drivers
A color design targeting an sRGB monitor (or a monitor characteristic close thereto) has been made, and therefore, the color reproduction results for each model are similar. As a feature of such a color reproduction result, since sRGB is a color space designed using a D65 light source as a white reference, the color of the gray axis is slightly bluer.

【0004】ここで、従来のインクジェットプリンタ用
のプリンタドライバにおいて行なわれている色処理につ
いて、簡単に説明する。
Here, the color processing performed in a conventional printer driver for an ink jet printer will be briefly described.

【0005】基準色空間であるsRGBに変換されている入
力画像データは、sRGB上のデータからデバイスRGB色空
間上のデータへの、3次元ルックアップテーブル(以
下、3DLUTと称する)に基づく変換処理(前段処理と称
する)と、デバイスRGB色空間上のデータからインク色
データへの、他の3DLUTに基づく変換処理(後段処理と
称する)が施された後、インクジェットプリンタへ送ら
れる。なお、前段処理と後段処理において使用される3D
LUTはそれぞれ、出力するメディア(紙、フィルム等)
毎、及び印字モード毎に、用意する必要がある。
[0005] Input image data converted to sRGB, which is a reference color space, is converted from data on sRGB to data on a device RGB color space based on a three-dimensional lookup table (hereinafter referred to as 3DLUT). When the process (referred to as a pre-stage process) is performed, a conversion process (referred to as a post-stage process) from the data in the device RGB color space to the ink color data based on another 3DLUT is performed, and then sent to the inkjet printer. Note that 3D used in pre-processing and post-processing
LUT is the output media (paper, film, etc.)
It must be prepared for each printing mode and printing mode.

【0006】上記インクジェットプリンタに限らず、近
年は高画質出力を可能とするプリンタが普及しており、
銀塩写真に代えて写真画像をプリントする機会が増えつ
つある。しかしながら上述したように、このような高画
質プリンタにおいては、sRGBモードの色再現がD65光源
を白色基準として設計されているため、グレー軸の色味
が少し青寄りになって再現される。従って、銀塩写真な
どで基準とされるような、グレー軸の色再現がD65光源
を白色基準とした場合よりも多少赤味を帯びたものとは
ならない。
[0006] Not only the above-mentioned ink-jet printers but also printers capable of outputting high-quality images have become widespread in recent years.
Opportunities to print photographic images instead of silver halide photographs are increasing. However, as described above, in such a high-quality printer, since the color reproduction in the sRGB mode is designed with the D65 light source as the white reference, the color on the gray axis is reproduced with a slight blue shift. Therefore, the color reproduction of the gray axis, which is used as a reference in silver halide photography, is not reddish to some extent than when the D65 light source is used as a white reference.

【0007】そこで、高画質プリンタにおいて銀塩写真
特有の少し赤みを帯びたグレー色を表現しようとするの
であれば、銀塩写真で基準とされるような光源(D55〜D6
5)を白色基準として設計した色空間専用の3DLUTを、前
段及び後段処理のそれぞれにおいてデフォルトのsRGBモ
ードとは別に用意する必要がある。
Therefore, if a high-quality printer intends to express a slightly reddish gray color peculiar to a silver halide photograph, a light source (D55 to D6) as a standard in the silver halide photograph is used.
It is necessary to prepare a 3DLUT dedicated to the color space designed based on 5) as a white reference separately from the default sRGB mode in each of the pre-stage and post-stage processing.

【0008】また、上記銀塩写真特有の色再現を行なう
他の方法として、sRGB画像データに対して、フォン・ク
ライス(Von Kreis)の色順応予測式に基づく色変換処
理を行なう方法がある。以下に、該色順応予測式を示す
As another method for performing color reproduction unique to silver halide photography, there is a method of performing color conversion processing on sRGB image data based on a von Kreis color adaptation prediction formula. The chromatic adaptation prediction formula is shown below.

【0009】[0009]

【数2】 ここで変換前の白色の三刺激値をX,Y,Z、そのときのR
GB値をR0,G0,B0とし、変換後の白色の三刺激値をX',
Y',Z'、そのときのRGB値をR1,G1,B1とする。
(Equation 2) Here, the tristimulus values of white before conversion are X, Y, Z, and R at that time.
The GB values are R 0 , G 0 , and B 0 , and the converted white tristimulus values are X ′,
Y ′, Z ′, and the RGB values at that time are R 1 , G 1 , and B 1 .

【0010】但し、ここでRGB値とXYZ値は、以下に示す
変換式により互換される。なお、下式において(M)は変
換行列、(M)-1はその逆行列であり、その要素は3つの基
本原色の色度座標から定まる。
Here, the RGB values and the XYZ values are interchangeable by the following conversion formula. In the following equation, (M) is a transformation matrix, and (M) -1 is its inverse matrix, and its elements are determined from the chromaticity coordinates of the three basic primary colors.

【0011】[0011]

【数3】 (Equation 3)

【0012】すなわち、色順応予測式に基づく色変換
は、以下の手順によって実行される。まず、RGB値からX
YZ値への変換式に基づき、入力されたsRGBデータを一旦
XYZの三刺激値データに変換し、このXYZデータに対して
色順応予測式(1)を適用することによって、X'Y'Z'が得
られる。次に、得られたX'Y'Z'データに対してXYZ値か
らRGB値への変換を施すことによって、色補正後のRGB値
が得られる。この補正後のRGB値によれば、sRGBモード
における前段及び後段処理用に用意された、デフォルト
の3DLUTによる変換処理を施すことが可能となるため、
該3DLUTによる変換後にプリントを行なえば、銀塩写真
特有の多少赤味がかったグレー軸の色再現が可能とな
る。
That is, the color conversion based on the chromatic adaptation prediction formula is executed by the following procedure. First, X from RGB value
Based on the conversion formula to YZ value, input sRGB data is temporarily
X′Y′Z ′ is obtained by converting the data into XYZ tristimulus value data and applying the chromatic adaptation prediction formula (1) to the XYZ data. Next, the obtained X'Y'Z 'data is subjected to conversion from XYZ values to RGB values to obtain RGB values after color correction. According to the corrected RGB values, it is possible to perform a conversion process using a default 3DLUT prepared for the preceding and subsequent processes in the sRGB mode.
If printing is performed after the conversion by the 3DLUT, color reproduction of a somewhat reddish gray axis unique to silver halide photography can be achieved.

【0013】[0013]

【発明が解決しようとする課題】しかしながら、上記従
来のプリンタドライバにおいては、例えば、「写真」、
「グラフィック」、「グレースケール」等、画像全体の
色味が異なるような色モードを選択することは可能であ
ったが、例えば「写真」モード選択時において更に、グ
レー軸およびその周辺の色再現特性についての選択又は
設定を可能とするような、ハイエンドユーザ向けの機能
はなかった。すなわち、グレー軸付近の色再現は少し青
寄りに設定されており、銀塩写真特有のD65光源よりも
多少赤みを帯びたグレー軸の色を表現する機能はなかっ
た。
However, in the above-mentioned conventional printer driver, for example, "photograph"
Although it was possible to select a color mode such as "Graphic" or "Grayscale" that makes the color of the entire image different, for example, when the "Photo" mode is selected, the color reproduction of the gray axis and its surroundings is further performed. There were no features for high-end users that allowed selection or setting of characteristics. That is, the color reproduction near the gray axis was set slightly closer to blue, and there was no function of expressing the color of the gray axis slightly reddish than the D65 light source unique to silver halide photography.

【0014】また、上述したような赤みを帯びたグレー
軸の色再現を実現するために、入力画像に対して色順応
予測式に基づく変換を行なうことが考えられるが、この
場合には、黒色から中間調のグレー軸およびその周辺に
関しては適切な色変換が行なわれるが、白色部分につい
ては、本来存在しない色が付されてしまうという問題が
あった。つまり、sRGBデータにおける白色(8ビットデー
タでR=255,G=255,B=255)を上記方法で変換した場合、例
えばR=255,G=253,B=238のようなデータに変換されて
しまい、本来無地であるはずの領域に対して、少なから
ず着色がなされてしまう。
In order to realize the color reproduction of the reddish gray axis as described above, it is conceivable to perform conversion based on a chromatic adaptation prediction formula on the input image. Therefore, appropriate color conversion is performed for the gray axis of the halftone and its surroundings, but there is a problem that a color that does not exist originally is added to the white portion. That is, when white (8-bit data, R = 255, G = 255, B = 255) in sRGB data is converted by the above method, it is converted into data such as R = 255, G = 253, B = 238. As a result, the area that is supposed to be plain is colored a little.

【0015】また、このような色順応予測式に基づく変
換方法によれば、RGBデータを一旦XYZデータに変換して
から、式(1)に基づく変換を行なって再度RGBデータに戻
すため、演算量が多く、長大な処理時間を要してしまう
という問題があった。
According to the conversion method based on such a chromatic adaptation prediction formula, the RGB data is once converted into XYZ data, and then the conversion based on the formula (1) is performed and the RGB data is returned to the RGB data again. There is a problem that the amount is large and a long processing time is required.

【0016】本発明は上記問題を解決するためになされ
たものであり、グレー軸付近の色再現特性を設定可能と
する画像処理方法及び画像処理装置を提供することを目
的とする。
SUMMARY OF THE INVENTION The present invention has been made to solve the above-mentioned problem, and has as its object to provide an image processing method and an image processing apparatus capable of setting a color reproduction characteristic near a gray axis.

【0017】また、銀塩写真におけるグレー軸付近の色
再現特性により近い色再現を可能とする画像処理方法及
び画像処理装置を提供することを目的とする。
It is another object of the present invention to provide an image processing method and an image processing apparatus capable of reproducing colors closer to the color reproduction characteristics near the gray axis in silver halide photography.

【0018】[0018]

【課題を解決するための手段】上記問題を解決するため
の一手段として、本発明の画像処理方法は以下の工程を
備える。
As one means for solving the above problem, the image processing method of the present invention comprises the following steps.

【0019】即ち、RGB形式の画像データに対してタ
ーゲットデバイスとのカラーマッチングを施す画像処理
方法であって、グレー軸付近の色再現が異なる複数の色
再現モードから1つをグレーモードとして選択するモー
ド選択工程と、前記画像データに対して、前記グレーモ
ードに応じた色再現がなされるような色変換を施す色変
換工程と、を有することを特徴とする。
That is, this is an image processing method for performing color matching on image data in RGB format with a target device, and selects one of a plurality of color reproduction modes having different color reproduction near the gray axis as a gray mode. A mode selection step; and a color conversion step of performing a color conversion on the image data so as to reproduce colors according to the gray mode.

【0020】例えば、前記色変換工程においては、前記
RGB形式の画像データに対して前記グレーモードに基
づく変換を施してRGB形式の画像データを出力する第
1の変換工程と、該第1の変換工程において出力された
RGB形式の画像データに対して変換を施して前記ター
ゲットデバイスに依存する色空間の画像データに変換す
る第2の変換工程と、を有することを特徴とする。
For example, in the color conversion step, a first conversion step of performing a conversion based on the gray mode on the RGB image data to output RGB image data; A second conversion step of converting the RGB format image data output in the step into image data in a color space dependent on the target device.

【0021】更に、前記グレーモードに基づいてRGB
毎の1次元変換テーブルを作成するテーブル作成工程を
有し、前記第1の変換工程においては、前記1次元変換
テーブルに基づく変換を行なうことを特徴とする。
Further, based on the gray mode, RGB
The method further comprises a table creation step of creating a one-dimensional conversion table for each, and in the first conversion step, conversion based on the one-dimensional conversion table is performed.

【0022】または、更に、前記グレーモードに基づい
て、前記RGB形式の画像データの画素毎にマスキング
行列を算出する行列算出工程を有し、前記第1の変換工
程においては、前記マスキング行列に基づく変換を行な
うことを特徴とする。
Alternatively, the method further comprises a matrix calculation step of calculating a masking matrix for each pixel of the RGB format image data based on the gray mode, and the first conversion step is based on the masking matrix. The conversion is performed.

【0023】[0023]

【発明の実施の形態】以下、本発明に係る一実施形態に
ついて、図面を参照して詳細に説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment according to the present invention will be described below in detail with reference to the drawings.

【0024】<第1実施形態>本実施形態は、本発明を
インクジェットプリンタに適用した例について説明す
る。本実施形態のインクジェットプリンタは、紙、フィ
ルム等の各種記録媒体への印刷が可能であり、シアン,
マゼンタ,イエロー,ブラック,淡シアン,淡マゼンタ
の6色のインクにより画像を形成する。
<First Embodiment> In this embodiment, an example in which the present invention is applied to an ink jet printer will be described. The ink jet printer of the present embodiment can print on various recording media such as paper and film, and can print cyan,
An image is formed with six color inks of magenta, yellow, black, light cyan, and light magenta.

【0025】図1は、本実施形態において特にカラーマ
ッチングを実現するための、画像処理システムのブロッ
ク構成を示す図である。同図に示すシステムにおいて
は、ホストコンピュータ(以降、PC)100にインクジ
ェットプリンタ(以降、プリンタ)200とモニタ300が接
続されており、PC100内の画像メモリ120にsRGB形式で
格納された画像データが、モニタ300上に表示され、か
つ、後述する色変換部130を介してプリンタ200で印刷出
力される。
FIG. 1 is a diagram showing a block configuration of an image processing system for realizing color matching particularly in the present embodiment. In the system shown in FIG. 1, an ink-jet printer (hereinafter, printer) 200 and a monitor 300 are connected to a host computer (hereinafter, PC) 100, and image data stored in the image memory 120 in the PC 100 is stored in sRGB format. Are displayed on the monitor 300 and printed out by the printer 200 via the color conversion unit 130 described later.

【0026】PC100上の不図示のアプリケーションに
おいてプリンタ200へのプリント命令が発生すると、該
当するプリンタのプリンタドライバ(不図示)が起動さ
れる。そしてプリンタドライバの設定画面により、ユー
ザが操作部110を介して各種設定を行なった後、該画面
上で再度プリント命令が発生すると、アプリケーション
でプリント対象とした、例えば画像メモリ120に格納さ
れたRGB形式の画像データに対して処理が開始される。
そして、該RGB画像データが色変換部120によって6色の
インク色に対応するデータに展開された後にプリンタ20
0へ転送され、印刷が行われる。すなわち、色変換部120
において実行される色変換処理は、不図示のプリンタド
ライバによって制御される。
When a print command to the printer 200 is generated in an application (not shown) on the PC 100, a printer driver (not shown) of the printer is started. Then, after the user makes various settings via the operation unit 110 using the setting screen of the printer driver, when a print command is generated again on the screen, when a print command is issued again by the application, for example, the RGB data stored in the image memory 120 is stored. Processing is started for image data of the format.
After the RGB image data is expanded by the color conversion unit 120 into data corresponding to the six ink colors, the printer 20
Transferred to 0 and printing is performed. That is, the color conversion unit 120
Is controlled by a printer driver (not shown).

【0027】本実施形態のプリンタドライバにおいて
は、グレー軸およびその周辺の色再現モード(以下、グ
レーモード)として、sRGBモードと銀塩写真調モードが
存在し、ユーザはそのいずれかを設定画面より選択する
ことができる。sRGBモードは、sRGBモニタ(あるいはそ
れに近いモニタ特性)をターゲットとして色再現が設計
されたモードであり、グレー軸についてはD65光源下で
の色度座標にマッチングされるように設定され、少し青
よりに再現されることを特徴とする。一方、銀塩写真調
モードは、銀塩写真の色再現をターゲットとして色再現
が設計されたモードであり、グレー軸についてはD55〜D
65光源下での色度座標にマッチングされるように設定さ
れ、D65光源下で設定された色再現よりも多少赤みを帯
びた色再現がなれることを特徴とする。
In the printer driver of the present embodiment, there are an sRGB mode and a silver halide photographic mode as a color reproduction mode (hereinafter referred to as a gray mode) around the gray axis and the user selects one of them from a setting screen. You can choose. The sRGB mode is a mode in which color reproduction is designed with the sRGB monitor (or a monitor characteristic close to it) as the target.The gray axis is set to match the chromaticity coordinates under the D65 light source, and slightly It is characterized by being reproduced. On the other hand, the silver halide photographic mode is a mode in which color reproduction is designed with the color reproduction of silver halide photographs as a target.
It is set so as to be matched to the chromaticity coordinates under 65 light sources, and is characterized in that color reproduction with a slightly reddish color can be obtained compared to the color reproduction set under D65 light source.

【0028】なお、本実施形態における操作部110は、
マウス等のポインティングデバイスやキーボードであ
り、例えばプリンタドライバの設定画面においてユーザ
がラジオボタン等を適宜選択することにより、上記グレ
ーモードの選択が行なわれる。グレーモードはデフォル
トとしては例えば、sRGBモードが設定されている。
The operation unit 110 in this embodiment is
The gray mode is selected by a user selecting a radio button or the like as appropriate on a printer driver setting screen, for example, a pointing device such as a mouse or a keyboard. In the gray mode, for example, an sRGB mode is set as a default.

【0029】色変換部130において、1DLUT作成部131
は、操作部110を介して選択されたグレーモードに基づ
いて後述する1次元ルックアップテーブル(1DLUT)を
作成する。そして1DLUT変換部132は、上記作成された1D
LUTに基づき、入力されるsRGBの画像データを同色空間
上で変換する。該変換後のsRGBデータに対して、前段処
理部133でデバイスRGBへの変換を行い、ついで後段処理
部134でインク色に対応するデータへの変換を行なうこ
とによって、本実施形態におけるカラーマッチング処理
がなされる。なお、前段及び後段処理部133及び134にお
いては、従来と同様の3DLUTによる変換が行なわれる。
In the color conversion unit 130, a 1DLUT creation unit 131
Creates a one-dimensional lookup table (1DLUT), which will be described later, based on the gray mode selected via the operation unit 110. Then, the 1DLUT conversion unit 132 converts the 1D
The input sRGB image data is converted on the same color space based on the LUT. The pre-processing unit 133 converts the converted sRGB data into device RGB, and the post-processing unit 134 converts the data into data corresponding to the ink color. Is made. It should be noted that in the pre-stage and post-stage processing units 133 and 134, the same 3DLUT conversion as in the past is performed.

【0030】本実施形態においては、上記グレーモード
を設定可能とすること、及び、1DLUT変換部132における
変換によって銀塩写真調のグレー色再現を可能とするこ
とを、特徴とする。
The present embodiment is characterized in that the gray mode can be set, and that the 1DLUT conversion unit 132 can reproduce a silver halide photographic gray color.

【0031】以下、本実施形態の色変換部130における
色変換処理について、詳細に説明する。図2は、本実施
形態のプリンタドライバにおいて行なわれる色処理を示
すフローチャートである。ここでは、入力される画像デ
ータは既にsRGB色空間上に変換されて画像メモリ120に
格納されており、またユーザによってグレーモードが既
に選択されているとし、以下に各処理内容について説明
する。
Hereinafter, the color conversion processing in the color conversion section 130 of the present embodiment will be described in detail. FIG. 2 is a flowchart illustrating color processing performed in the printer driver according to the present embodiment. Here, it is assumed that the input image data has already been converted into the sRGB color space and stored in the image memory 120, and that the gray mode has already been selected by the user, and each processing content will be described below.

【0032】先ずステップS101において、ユーザが操作
部110を介して指定したグレーモードが、sRGBモードと
銀塩写真調モードのいずれであるかを判定する。sRGBモ
ードが選択された場合はステップS102へ進み、銀塩写真
調モードが選択された場合はステップS103へ進む。
First, in step S101, it is determined whether the gray mode specified by the user via the operation unit 110 is the sRGB mode or the silver halide photography mode. When the sRGB mode is selected, the process proceeds to step S102, and when the silver halide photo mode is selected, the process proceeds to step S103.

【0033】ステップS102では1DLUT作成部131におい
て、sRGBモードにおけるRGB各チャネル毎の1次元ルッ
クアップテーブル(以下、1DLUTと称する)を作成す
る。ここで、sRGBは一般的な基準色空間であるため、入
力値と出力値が同じになるようなリニアな1DLUTが作成
される。一方、ステップS103では、やはり1DLUT作成部1
31において、銀塩写真調モードにおけるRGB各チャネル
毎の1DLUTを作成する。具体的には、プリンタ200におけ
る印刷モードおよび記録媒体によって既定されているパ
ラメータに基づき、1DLUTが作成される。ここで作成さ
れた1DLUTに基づく変換により、銀塩写真調のグレー色
再現が可能となるのであるが、この作成方法については
後述する。
In step S102, the 1DLUT creation unit 131 creates a one-dimensional lookup table (hereinafter, referred to as 1DLUT) for each of the RGB channels in the sRGB mode. Here, since sRGB is a general reference color space, a linear 1DLUT whose input value and output value are the same is created. On the other hand, in step S103, the 1DLUT creation unit 1
At 31, a 1DLUT is created for each of the RGB channels in the silver halide photographic mode. Specifically, 1DLUT is created based on the print mode of the printer 200 and the parameters specified by the recording medium. The conversion based on the 1DLUT created here makes it possible to reproduce a silver halide photographic gray color. The creation method will be described later.

【0034】次にステップS104においては、ステップS1
02又はS103において、1DLUT作成部131で作成された1DLU
Tを1DLUT変換部132に設定する。すなわち、sRGBモード
選択時にはステップS102で作成された1DLUTが、銀塩写
真調モード選択時にはステップS103で作成された1DLUT
が、それぞれ1DLUT変換部132に設定される。
Next, in step S104, step S1
In 02 or S103, the 1DLU created by the 1DLUT creation unit 131
T is set in the 1DLUT conversion unit 132. That is, the 1DLUT created in step S102 when the sRGB mode is selected, and the 1DLUT created in step S103 when the silver halide photographic mode is selected.
Are set in the 1DLUT conversion unit 132, respectively.

【0035】以上で1DLUTの設定処理(ステップS101〜S
104)が終了し、次いで画像メモリ120に格納されている
sRGB画像データに対して色変換処理(ステップS108〜S1
10)が行なわれるが、ステップS105〜S107に示すように
該色変換処理は、画像データの全画素に対して逐一実行
される。
With the above, 1DLUT setting processing (steps S101 to S101)
104) is finished and then stored in the image memory 120
Color conversion processing for sRGB image data (steps S108 to S1
10) is performed, but the color conversion process is executed for every pixel of the image data one by one as shown in steps S105 to S107.

【0036】ステップS108では、1DLUTが設定された1DL
UT変換部132において、入力されたsRGB画像データに対
する変換処理が行なわれる。なお、sRGBモード選択時に
設定された1DLUTはリニアな特性を有するため、この変
換前後において画素値は変化しない。
In step S108, 1DL in which 1DLUT is set
The UT conversion unit 132 performs a conversion process on the input sRGB image data. Since the 1DLUT set when the sRGB mode is selected has a linear characteristic, the pixel value does not change before and after this conversion.

【0037】そしてステップS109では、ステップS108に
おいて変換されたsRGB色空間上の画像データを、3DLUT
に基づいてプリンタ200の固有の色空間(デバイスRGB)上
へ変換する。この3DLUTは、例えばRGBの各チャネルのデ
ータビット数が8ビットであれば、R,G,B各軸の0〜255
の範囲をNステップに刻んだ、N3個の代表点及びその
補正値を保持しているテーブルである。入力される画像
データの各画素のRGB値が、該3DLUTの代表点と同じ値で
あれば該代表点の補正値を変換後の値として出力し、代
表点以外であれば、その入力RGB値を取り囲む代表点に
基づく補間演算を行い、変換後の値として出力する。
In step S109, the image data in the sRGB color space converted in step S108 is
Is converted into a color space unique to the printer 200 (device RGB) based on the For example, if the number of data bits of each channel of RGB is 8 bits, this 3DLUT is 0 to 255 for each of R, G, B axes.
Is a table that holds N 3 representative points and their correction values obtained by engraving the range in N steps. If the RGB value of each pixel of the input image data is the same value as the representative point of the 3DLUT, the correction value of the representative point is output as a converted value. And performs an interpolation operation based on the representative points surrounding. And outputs the converted value.

【0038】ステップS110では、ステップS109で変換さ
れたデバイスRGBデータを、インク色に対応した色成分
データに変換する。この変換はステップS109と同様、3D
LUTに基づいて行なわれる。この3DLUTは、代表点毎に入
力RGB値に対応するインク色データ、すなわち本実施形
態においては、プリンタ200のインク色に対応する、シ
アン,マゼンタ,イエロー,ブラック,淡シアン,淡マ
ゼンタの6チャネル分のデータを保持している。この3DL
UTに基づいて変換されたインク色データがプリンタ200
へ転送され、記録媒体上に可視像が形成される。
In step S110, the device RGB data converted in step S109 is converted into color component data corresponding to the ink color. This conversion is performed in 3D as in step S109.
Performed based on LUT. The 3DLUT includes ink color data corresponding to input RGB values for each representative point, that is, in this embodiment, six channels of cyan, magenta, yellow, black, light cyan, and light magenta corresponding to the ink colors of the printer 200. Holds data for minutes. This 3DL
The ink color data converted based on UT is
And a visible image is formed on the recording medium.

【0039】上述したように、本実施形態においては、
1DLUT変換部132における変換、すなわち1DLUT作成部131
によって作成される1DLUTによって、銀塩写真調のグレ
ー色再現を可能とすることを特徴としている。以下、1D
LUT作成部131における、銀塩写真調モード選択時の1DLU
T作成方法(ステップS103)について、詳細に説明す
る。
As described above, in this embodiment,
Conversion in 1DLUT conversion section 132, that is, 1DLUT creation section 131
The feature is that 1DLUT created by this makes it possible to reproduce silver halide photographic gray color. Below, 1D
1DLU when silver halide photo mode is selected in the LUT creation unit 131
The T creation method (step S103) will be described in detail.

【0040】まず、上記従来例でも説明したように、フ
ォン・クライスの色順応予測式が下式(1)によって与え
られる。
First, as described in the above-mentioned conventional example, the von Kreis color adaptation prediction equation is given by the following equation (1).

【0041】[0041]

【数4】 (Equation 4)

【0042】これを用いることによって、RGB to RGBの
変換を行なう3×3の行列が以下のように求められる。
By using this, a 3 × 3 matrix for performing the RGB to RGB conversion is obtained as follows.

【0043】[0043]

【数5】 (Equation 5)

【0044】なお、(2)式においては、変換前の光源下
における白色のRGB値をR0,G0,B0とし、変換後の光源
下における白色のRGB値をR1,G1,B1とする。
In equation (2), the RGB values of the white color under the light source before the conversion are R 0 , G 0 , and B 0, and the RGB values of the white color under the light source after the conversion are R 1 , G 1 , and G 1 . B 1

【0045】ここで式(2)によれば、例えばRGB値がそれ
ぞれ8ビットデータであるとすると、入力RGB値が白(R=
255,G=255,B=255)の場合に、変換後の値が例えばR=2
55,G=253,B=238のようになってしまう。すなわち、上
記従来でも説明したように、このように単に色順応予測
式に基づく変換結果をプリンタで印刷出力した場合、本
来は何も印刷されないはずの白の領域に、何らかの色が
付されてしまうという問題があった。
According to equation (2), for example, if each of the RGB values is 8-bit data, the input RGB value becomes white (R =
255, G = 255, B = 255), the converted value is, for example, R = 2
55, G = 253, B = 238. That is, as described above in the related art, when the conversion result based on the chromatic adaptation prediction formula is simply printed out by a printer, some color is added to a white area where nothing should be printed originally. There was a problem.

【0046】そこで本実施形態においては、入力RGB値
が白(R=255,G=255,B=255)の場合には出力値も白(R=25
5,G=255,B=255)となるように、かつ階調性において急
激な変化が現れないように、上記(2)式に代わる変換式
を以下のように設定する。
Therefore, in the present embodiment, when the input RGB value is white (R = 255, G = 255, B = 255), the output value is also white (R = 25
5, G = 255, B = 255), and a conversion formula instead of the above formula (2) is set as follows so as to prevent a rapid change in gradation.

【0047】[0047]

【数6】 (Equation 6)

【0048】該(3)式においても、R0,G0,B0及びR1,G
1,B1は(2)式と同様に、それぞれ変換前及び変換後の光
源下における白色のRGB値を示す。また、αkは入力値k
(k=R,G,Bのいずれか)に基づき、以下のように変化
する。
In the equation (3), R 0 , G 0 , B 0 and R 1 , G
1, B 1, like (2), showing a white RGB values in the light source of a original and translated, respectively. Α k is the input value k
(K = R, G, or B), and changes as follows.

【0049】if (0≦k≦N) αk = 0; else αk = (k−N)/(255−N); (Nは0≦N<255の定数) なお、αkの値としては、RGBデータが各色8ビットであ
ればそれぞれの入力値0〜255対して 0≦αk≦1.0 とな
り、白色を示す入力値255の時にαk=1.0 となるような
ものであれば、どのような値であっても良い。
[0049] if (0 ≦ k ≦ N) α k = 0; else α k = (k-N) / (255-N); (N is a constant of 0 ≦ N <255) As the value of alpha k If RGB data is 8 bits for each color, then 0 ≦ α k ≦ 1.0 for each input value 0 to 255, and if the input value 255 indicates white, α k = 1.0. Such a value may be used.

【0050】(3)式によれば、R≦NかつG≦NかつB≦Nの
場合は、変換後のRGB値は(2)式と同様となり、入力値k
(R,G,Bのいずれか)がNより大きい場合、つまり白付
近のデータについては、その値が白(R=255,G=255,B=2
55)に近づくにつれて、変換時の変化量がより少なくな
る。また、入力RGB値が白(R=255,G=255,B=255)である
場合には、出力RGB値においても白(R=255,G=255,B=25
5)が維持される。
According to equation (3), when R ≦ N, G ≦ N and B ≦ N, the converted RGB values are the same as equation (2), and the input value k
If (R, G, or B) is larger than N, that is, for data near white, the value is white (R = 255, G = 255, B = 2
As the distance approaches 55), the amount of change during conversion becomes smaller. When the input RGB values are white (R = 255, G = 255, B = 255), the output RGB values are also white (R = 255, G = 255, B = 25).
5) is maintained.

【0051】また、(3)式における変換行列は対角成分
のみを有するため、RGBの各チャネルを独立とすること
ができ、各チャネルの1DLUTを生成することが容易に可
能となる。
Further, since the transformation matrix in equation (3) has only diagonal components, each of the RGB channels can be made independent, and it is easy to generate a 1DLUT for each channel.

【0052】以上説明したように、ステップS103におい
て銀塩写真調モードの1DLUTを作成する際に、(3)式に対
して、変換前の光源をsRGB色空間の光源であるD65光源
とし、変換後の光源をD55光源、定数Nを220に設定すれ
ば、以下のような光源色変換を行なう変換式が作成され
る。この変換式によるグラフを図3に示す。
As described above, when creating the 1DLUT in the silver halide photographic mode in step S103, the light source before the conversion is set to the D65 light source, which is the light source in the sRGB color space, according to the equation (3). If the latter light source is set to D55 light source and the constant N is set to 220, the following conversion formula for performing light source color conversion is created. FIG. 3 shows a graph based on this conversion formula.

【0053】 R_out = (1.104 − 0.104αR) × R_in G_out = (0.987 + 0.013αG) × G_in ・・・(4) B_out = (0.823 + 0.177αB) × B_in 図3からも分かるように上記変換式(4)で示される1DLUT
によれば、白(R=255,G=255,B=255)付近のデータにつ
いては、その値が白に近づくにつれて変化量が少なくな
り、また、白(R=255,G=255,B=255)データについては
変換後も白(R=255,G=255,B=255)が維持される。
[0053] R_out = (1.104 - 0.104α R) × R_in G_out = (0.987 + 0.013α G) × G_in ··· (4) B_out = (0.823 + 0.177α B) above, as can be seen from × B - IN Figure 3 1DLUT expressed by conversion formula (4)
According to the above, for data near white (R = 255, G = 255, B = 255), the change amount decreases as the value approaches white, and the value of white (R = 255, G = 255, B = 255) data (R = 255, G = 255, B = 255) is maintained after conversion.

【0054】尚、(4)式においては、プリンタにおける
印刷モード、または記録媒体に関わらず、銀塩写真調モ
ード時において同様の色再現を行なうために、印刷モー
ドと記録媒体によって、変換後の光源下における白色の
RGB値、及び定数Nを調整する必要がある。
In the expression (4), the same color reproduction is performed in the silver halide photographic tone mode regardless of the print mode of the printer or the recording medium. White under the light source
It is necessary to adjust the RGB value and the constant N.

【0055】以上説明したように本実施形態によれば、
カラープリンタのグレー軸およびその周辺の色再現とし
て、sRGBモニタの色をカラーマッチング対象としてD65
光源の色度座標にマッチングするようにした、少し青寄
りのグレー色再現が行なわれるsRGBモードと、銀塩写真
で基準とされるような、D65光源よりも少し赤みを帯び
たグレー色再現が行なわれる銀塩写真調モードのいずれ
かを選択することが可能となる。
As described above, according to the present embodiment,
For color reproduction of the gray axis of a color printer and its surroundings, the color of the sRGB monitor
An sRGB mode that matches the chromaticity coordinates of the light source and reproduces a slightly bluer gray color, and a grayish color that is slightly redder than the D65 light source, such as the standard for silver halide photography, are used. It becomes possible to select one of the silver halide photographic tone modes to be performed.

【0056】また、銀塩写真調モード時において、銀塩
写真モード専用の色変換テーブル(3DLUT)を用意するこ
となく、sRGBモードにおける色変換テーブル(前段及び
後段処理部133,134における3DLUT)をそのまま用い、そ
の前処理として1DLUT変換部132において、入力される画
像データに対して周知の色順応予測式を適用して作成し
たRGBチャネル毎の1DLUT変換処理を施すことにより、銀
塩写真調のグレー色再現を簡易に実現できる。
In the silver halide photography mode, a color conversion table (3DLUT in the first and second processing units 133 and 134) in the sRGB mode is prepared without preparing a color conversion table (3DLUT) dedicated to the silver halide photography mode. As it is, the 1DLUT conversion unit 132 performs 1DLUT conversion processing for each of the RGB channels created by applying a well-known chromatic adaptation prediction formula to the input image data as preprocessing, thereby obtaining a silver halide photographic tone. Gray color reproduction can be easily realized.

【0057】本実施形態の銀塩写真調モードにおけるグ
レー色再現によれば、ハイライト付近の画像データにつ
いて、その階調性を保ちつつ、入力データが白であれば
出力データも白となるような変換が行なわれる。従っ
て、白地に何らかの着色がなされてプリントされてしま
うという問題が解消される。
According to the gray color reproduction in the silver halide photographic tone mode of the present embodiment, the output data becomes white if the input data is white while maintaining the gradation of the image data near the highlight. Conversion is performed. Therefore, the problem that the white background is printed with some coloring is solved.

【0058】また、前処理として1DLUTによる変換を行
なうため、3DLUTによる変換に比べて処理時間が短縮さ
れる。
Further, since the conversion using the 1DLUT is performed as the pre-processing, the processing time is reduced as compared with the conversion using the 3DLUT.

【0059】<第2実施形態>以下、本発明に係る第2
実施形態について説明する。
<Second Embodiment> Hereinafter, a second embodiment according to the present invention will be described.
An embodiment will be described.

【0060】第2実施形態において特にカラーマッチン
グを実現するためのシステム構成を、図4に示す。図4
において、上述した第1実施形態で示した図1と同様の
構成には同一番号を付し、説明を省略する。第1実施形
態においては、カラーマッチング対象となる画像データ
に対して、まず1DLUTによる変換を施す例について説明
したが、第2実施形態においては、該1DLUTに代えてマ
スキング行列演算を行なうことを特徴とする。具体的に
は、行列算出部141においてグレーモード及び入力画像
データのRGB値に基づいてマスキング行列を算出し、マ
スキング部142においては該入力画像データに対して該
マスキング行列に基づくマスキング処理を施す。
FIG. 4 shows a system configuration for realizing color matching in the second embodiment. FIG.
In the figure, the same components as those in FIG. 1 shown in the above-described first embodiment are denoted by the same reference numerals, and description thereof will be omitted. In the first embodiment, an example is described in which image data to be subjected to color matching is first converted using a 1DLUT. However, the second embodiment is characterized in that a masking matrix operation is performed instead of the 1DLUT. And Specifically, the matrix calculation unit 141 calculates a masking matrix based on the gray mode and the RGB values of the input image data, and the masking unit 142 performs a masking process on the input image data based on the masking matrix.

【0061】以下、第2実施形態の色変換部140におけ
る色変換処理について、詳細に説明する。図5は、第2
実施形態のプリンタドライバにおいて行なわれる色処理
を示すフローチャートである。第2実施形態において
も、入力される画像データは既にsRGB色空間上に変換さ
れて画像メモリ120に格納されており、またユーザによ
ってグレーモードが既に選択されているとし、以下に各
処理内容について説明する。
Hereinafter, the color conversion processing in the color conversion section 140 of the second embodiment will be described in detail. FIG.
6 is a flowchart illustrating color processing performed in the printer driver according to the embodiment. Also in the second embodiment, it is assumed that the input image data has already been converted into the sRGB color space and stored in the image memory 120, and that the gray mode has already been selected by the user. explain.

【0062】先ずステップS201において、ユーザが操作
部110を介して指定したグレーモードが、sRGBモードと
銀塩写真調モードのいずれであるかを判定し、銀塩写真
調モードである場合のみ、ステップS202〜S206の処理が
実行される。すなわち、銀塩写真調モード時には入力さ
れる画素毎に、ステップS205で行列算出部141において
マスキング行列が算出され、ステップS206でマスキング
部142において該マスキング行列を入力RGB値に乗じるこ
とによって、マスキング変換処理が施される。このマス
キング行列の算出処理については、その詳細を後述す
る。なお、操作部110よりsRGBモードが選択されていた
場合には、行列算出部141は動作せず、マスキング部142
は入力されるsRGBデータをスルーで出力するか、または
実質的にスルーとなるようなマスキング行列をデフォル
トとして備えておき、該デフォルトの行列に基づくマス
キング変換を施す。
First, in step S201, it is determined whether the gray mode specified by the user via the operation unit 110 is the sRGB mode or the silver halide photograph mode, and the step is performed only when the gray mode is the silver halide photograph mode. The processing of S202 to S206 is executed. That is, in the silver halide photographic mode, for each input pixel, a masking matrix is calculated in the matrix calculating unit 141 in step S205, and the masking matrix is multiplied by the input RGB value in the masking unit 142 in step S206 to perform masking conversion. Processing is performed. Details of the masking matrix calculation processing will be described later. When the sRGB mode is selected from the operation unit 110, the matrix calculation unit 141 does not operate, and the masking unit 142
Outputs the input sRGB data through, or prepares a masking matrix that is substantially through as default, and performs masking conversion based on the default matrix.

【0063】一方、sRGBモードが選択された場合、また
は銀塩写真調モード時に上記マスキング処理が全画素に
ついて終了した場合には、次にステップS207〜S211にお
いて、カラーマッチングの前段及び後段処理が行なわれ
る。即ち、入力されるsRGB色空間上の画像データについ
て画素毎に、ステップS210において上述した第1実施形
態と同様の前段処理用3DLUTに基づいてプリンタ200の固
有の色空間(デバイスRGB)上へ変換する。その後ステッ
プS211において該デバイスRGBデータを、上述した第1
実施形態と同様の後段処理用3DLUTに基づいて、インク
色に対応した色成分データに変換し、プリンタ200へ転
送する。
On the other hand, when the sRGB mode is selected, or when the above-described masking processing is completed for all pixels in the silver halide photographic mode, the first and second steps of color matching are performed in steps S207 to S211. It is. That is, in step S210, the input image data in the sRGB color space is converted into a color space (device RGB) unique to the printer 200 based on the pre-processing 3DLUT similar to the first embodiment described above in step S210. I do. Then, in step S211, the device RGB data is stored in the first
Based on the 3DLUT for post-processing similar to the embodiment, the data is converted into color component data corresponding to the ink color and transferred to the printer 200.

【0064】上述したように第2実施形態においては、
マスキング部142におけるマスキング変換処理によって
銀塩写真調のグレー色再現を可能とすることを特徴とし
ており、すなわち、行列算出部141によって作成される
マスキング行列によって、グレー色再現性が左右され
る。以下、行列算出部141におけるマスキング行列算出
方法(ステップS205)について、詳細に説明する。
As described above, in the second embodiment,
The feature is that the masking conversion processing in the masking unit 142 enables the reproduction of a silver halide photographic gray color. That is, the gray color reproducibility depends on the masking matrix created by the matrix calculation unit 141. Hereinafter, the masking matrix calculation method (step S205) in the matrix calculation unit 141 will be described in detail.

【0065】第1実施形態と同様に、フォン・クライス
の色順応予測式(1)に基づき、RGB to RGBの変換用の3×
3行列が式(2)のように得られるが、この変換式(2)によ
れば、入力RGB値が白(R=255,G=255,B=255)であって
も、変換後には白とはならないという問題がある。そこ
で第2実施形態においては、入力RGB値が白である場合
には出力値も同様の白となるように、かつ階調性におい
て急激な変化が現れないように、上記(2)式に代わる変
換式を以下のように設定する。
As in the first embodiment, based on the von Kleis chromatic adaptation prediction formula (1), 3 ×
Although three matrices are obtained as shown in equation (2), according to this conversion equation (2), even if the input RGB value is white (R = 255, G = 255, B = 255), There is a problem that it does not become white. Therefore, in the second embodiment, when the input RGB value is white, the expression (2) is replaced so that the output value becomes the same white, and a rapid change in gradation does not appear. Set the conversion formula as follows.

【0066】[0066]

【数7】 (Equation 7)

【0067】該(5)式において、R0,G0,B0及びR1
G1,B1は(2)式と同様に、それぞれ変換前及び変換後の
光源下における白色のRGB値を示す。
In the equation (5), R 0 , G 0 , B 0 and R 1 ,
G 1 and B 1 indicate the RGB values of white under the light source before and after the conversion, respectively, as in Equation (2).

【0068】また、a,b,c,d,e,fは、以下の関係を
満たす定数である。
Further, a, b, c, d, e, and f are constants satisfying the following relationship.

【0069】R1/R0 + a + b = 1.0 G1/G0 + c + d = 1.0 B1/B0 + e + f = 1.0 また、αkは入力値k(k=R,G,Bのいずれか)に基づ
き、以下のように変化する。
R 1 / R 0 + a + b = 1.0 G 1 / G 0 + c + d = 1.0 B 1 / B 0 + e + f = 1.0 Further, α k is an input value k (k = R, G , B), it changes as follows.

【0070】if (0≦k≦N) αk = 0; else αk = (k−N)/(255−N); (Nは0≦N<255の定数) なお、αkの値としては、RGBデータが各色8ビットであ
ればそれぞれの入力値0〜255対して 0≦αk≦1.0 とな
り、白色を示す入力値255の時にαk=1.0 となるような
ものであれば、どのような値であっても良い。すなわ
ち、ある閾値を境として白色に近い入力RGB値に対して
マスキング行列の値が変化すれば良い。
[0070] if (0 ≦ k ≦ N) α k = 0; else α k = (k-N) / (255-N); (N is a constant of 0 ≦ N <255) As the value of alpha k If RGB data is 8 bits for each color, then 0 ≦ α k ≦ 1.0 for each input value 0 to 255, and if the input value 255 indicates white, α k = 1.0. Such a value may be used. That is, the value of the masking matrix may be changed with respect to an input RGB value close to white at a certain threshold.

【0071】(5)式によれば、R≦NかつG≦NかつB≦Nの
場合は、変換後のRGB値は(2)式と同様となり、入力値k
(R,G,Bのいずれか)がNより大きい場合、つまり白付
近のデータについては、その値が白(R=255,G=255,B=2
55)に近づくにつれて、変換時の変化量がより少なくな
る。また、入力RGB値が白(R=255,G=255,B=255)である
場合には、出力RGB値においても白(R=255,G=255,B=25
5)が維持される。
According to equation (5), when R ≦ N, G ≦ N and B ≦ N, the RGB values after conversion are the same as equation (2), and the input value k
If (R, G, or B) is larger than N, that is, for data near white, the value is white (R = 255, G = 255, B = 2
As the distance approaches 55), the amount of change during conversion becomes smaller. When the input RGB values are white (R = 255, G = 255, B = 255), the output RGB values are also white (R = 255, G = 255, B = 25).
5) is maintained.

【0072】尚、(5)式においては、プリンタにおける
印刷モード、または記録媒体に関わらず、銀塩写真調モ
ード時において同様の色再現を行なうために、印刷モー
ドと記録媒体によって、変換後の光源下における白色の
RGB値、及び定数N,a,b,c,d,e,fを調整す
る必要がある。
In equation (5), regardless of the print mode of the printer or the recording medium, the same color reproduction is performed in the silver halide photographic tone mode. White under the light source
It is necessary to adjust RGB values and constants N, a, b, c, d, e, and f.

【0073】以上説明したように第2実施形態によれ
ば、銀塩写真調モード時において、銀塩写真モード専用
の色変換テーブル(3DLUT)を用意することなく、sRGBモ
ードにおける色変換テーブル(前段及び後段処理部133,
134における3DLUT)をそのまま用い、その前処理として
マスキング部142において、入力される画像データに対
して周知の色順応予測式を適用して作成したマスキング
行列によるマスキング変換処理を施すことにより、第1
実施形態と同様に銀塩写真調のグレー色再現を簡易に実
現できる。
As described above, according to the second embodiment, the color conversion table (3DLUT) dedicated to the silver halide photograph mode is not prepared in the silver halide photograph mode, and the color conversion table (previous stage) in the sRGB mode is prepared. And the post-processing unit 133,
The 3D LUT in 134 is used as it is, and the masking unit 142 performs a masking conversion process using a masking matrix created by applying a well-known chromatic adaptation prediction formula to the input image data as a pre-process, thereby obtaining a first process.
Similar to the embodiment, gray-scale reproduction of silver halide photographic tone can be easily realized.

【0074】尚、上述した第1及び第2実施形態におい
ては、インクジェットプリンタ200への画像出力を行な
う例について説明したが、プリンタドライバにおいてRG
B入力を可能とするプリンタであれば、レーザービーム
プリンタや昇華型プリンタ等、他の画像形成方式による
プリンタであっても構わない。
In the first and second embodiments described above, an example in which an image is output to the ink jet printer 200 has been described.
A printer using another image forming method, such as a laser beam printer or a sublimation printer, may be used as long as the printer enables B input.

【0075】[0075]

【他の実施の形態】なお、本発明は、複数の機器(例え
ばホストコンピュータ、インタフェイス機器、リーダ、
プリンタなど)から構成されるシステムに適用しても、
一つの機器からなる装置(例えば、複写機、ファクシミ
リ装置など)に適用しても良い。
[Other embodiments] The present invention relates to a plurality of devices (for example, a host computer, an interface device, a reader,
Printer, etc.)
The present invention may be applied to an apparatus including one device (for example, a copying machine, a facsimile machine, and the like).

【0076】また、本発明の目的は、前述した実施形態
の機能を実現するソフトウェアのプログラムコードを記
録した記憶媒体を、システムあるいは装置に供給し、そ
のシステムあるいは装置のコンピュータ(またはCPUまた
はMPU)が記憶媒体に格納されたプログラムコードを読み
出し実行することによっても達成されることは言うまで
もない。
Another object of the present invention is to provide a storage medium storing a program code of software for realizing the functions of the above-described embodiments to a system or an apparatus, and to provide a computer (or CPU or MPU) of the system or the apparatus. Can also be achieved by reading and executing the program code stored in the storage medium.

【0077】この場合、記憶媒体から読み出されたプロ
グラムコード自体が前述した実施形態の機能を実現する
ことになり、そのプログラムコードを記憶した記憶媒体
は本発明を構成することになる。
In this case, the program code itself read from the storage medium realizes the functions of the above-described embodiment, and the storage medium storing the program code constitutes the present invention.

【0078】プログラムコードを供給するための記憶媒
体としては、例えば、フロッピー(登録商標)ディス
ク、ハードディスク、光ディスク、光磁気ディスク、CD
-ROM、CD-R、磁気テープ、不揮発性のメモリカード、RO
Mなどを用いることが出来る。
As a storage medium for supplying the program code, for example, a floppy (registered trademark) disk, hard disk, optical disk, magneto-optical disk, CD
-ROM, CD-R, magnetic tape, nonvolatile memory card, RO
M or the like can be used.

【0079】また、コンピュータが読み出したプログラ
ムコードを実行することにより、前述した実施形態の機
能が実現されるだけでなく、そのプログラムコードの指
示に基づき、コンピュータ上で稼動しているOS(オペレ
ーティングシステム)などが実際の処理の一部を行い、
その処理によって前述した実施形態の機能が実現される
場合も含まれることは言うまでもない。
Further, when the computer executes the readout program code, not only the functions of the above-described embodiment are realized, but also the OS (Operating System) running on the computer based on the instruction of the program code. ) Do some of the actual processing,
It goes without saying that a case where the function of the above-described embodiment is realized by the processing is also included.

【0080】さらに、記憶媒体から読み出されたプログ
ラムコードが、コンピュータに挿入された機能拡張ボー
ドやコンピュータに接続された機能拡張ユニットに備わ
るメモリに書き込まれた後、そのプログラムコードの指
示に基づき、その機能拡張ボードや機能拡張ユニットに
備わるCPUなどが実際の処理の一部または全部を行い、
その処理によって前述した実施形態の機能が実現される
場合も含まれることは言うまでもない。
Further, after the program code read from the storage medium is written into a memory provided in a function expansion board inserted into the computer or a function expansion unit connected to the computer, based on the instruction of the program code, The CPU provided in the function expansion board or function expansion unit performs part or all of the actual processing,
It goes without saying that a case where the function of the above-described embodiment is realized by the processing is also included.

【0081】[0081]

【発明の効果】以上説明したように本発明によれば、グ
レー軸付近の色再現特性の設定が可能となる。
As described above, according to the present invention, it is possible to set the color reproduction characteristics near the gray axis.

【0082】また、銀塩写真におけるグレー軸付近の色
再現特性により近い色再現を、容易かつ高速に可能とす
る。
Further, color reproduction closer to the color reproduction characteristics near the gray axis in silver halide photography can be performed easily and at high speed.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明に係る一実施形態におけるシステム構成
を示すブロック図である。
FIG. 1 is a block diagram showing a system configuration according to an embodiment of the present invention.

【図2】本実施形態におけるプリンタドライバ内の色処
理を示すフローチャートである。
FIG. 2 is a flowchart illustrating color processing in a printer driver according to the embodiment.

【図3】本実施形態におけるRGB毎の1DLUTのグラフを示
す図である。
FIG. 3 is a diagram showing a graph of 1DLUT for each RGB in the embodiment.

【図4】第2実施形態におけるシステム構成を示すブロ
ック図である。
FIG. 4 is a block diagram illustrating a system configuration according to a second embodiment.

【図5】第2実施形態におけるプリンタドライバ内の色
処理を示すフローチャートである。
FIG. 5 is a flowchart illustrating color processing in a printer driver according to the second embodiment.

【符号の説明】[Explanation of symbols]

100 PC 110 操作部 120 画像メモリ 130 色変換部 131 1DLUT作成部 132 1DLUT変換部 133 前段処理部 134 後段処理部 140 色変換部 141 行列算出部 142 マスキング部 200 プリンタ 300 モニタ 100 PC 110 Operation unit 120 Image memory 130 Color conversion unit 131 1DLUT creation unit 132 1DLUT conversion unit 133 Pre-processing unit 134 Post-processing unit 140 Color conversion unit 141 Matrix calculation unit 142 Masking unit 200 Printer 300 Monitor

───────────────────────────────────────────────────── フロントページの続き Fターム(参考) 5B057 AA11 CA01 CA08 CA12 CA16 CB01 CB08 CB12 CB16 CC01 CE17 5C077 LL19 MP08 PP32 PP37 PQ08 PQ23 PQ25 TT05 5C079 HB01 LA31 LB02 LB04 MA05 MA11 NA03 NA11 NA27 PA03 ──────────────────────────────────────────────────続 き Continued on the front page F term (reference) 5B057 AA11 CA01 CA08 CA12 CA16 CB01 CB08 CB12 CB16 CC01 CE17 5C077 LL19 MP08 PP32 PP37 PQ08 PQ23 PQ25 TT05 5C079 HB01 LA31 LB02 LB04 MA05 MA11 NA03 NA11 NA27 PA03

Claims (19)

【特許請求の範囲】[Claims] 【請求項1】 RGB形式の画像データに対してターゲ
ットデバイスとのカラーマッチングを施す画像処理方法
であって、 グレー軸付近の色再現が異なる複数の色再現モードから
1つをグレーモードとして選択するモード選択工程と、 前記画像データに対して、前記グレーモードに応じた色
再現がなされるような色変換を施す色変換工程と、を有
することを特徴とする画像処理方法。
1. An image processing method for performing color matching of image data in RGB format with a target device, wherein one of a plurality of color reproduction modes having different color reproduction near a gray axis is selected as a gray mode. An image processing method, comprising: a mode selection step; and a color conversion step of performing color conversion on the image data so that color reproduction according to the gray mode is performed.
【請求項2】 前記色変換工程においては、 前記RGB形式の画像データに対して前記グレーモード
に基づく変換を施してRGB形式の画像データを出力す
る第1の変換工程と、 該第1の変換工程において出力されたRGB形式の画像
データに対して変換を施して前記ターゲットデバイスに
依存する色空間の画像データに変換する第2の変換工程
と、を有することを特徴とする請求項1記載の画像処理
方法。
2. In the color conversion step, a first conversion step of performing conversion based on the gray mode on the RGB image data and outputting RGB format image data; 2. The method according to claim 1, further comprising the step of: performing a conversion on the image data in RGB format output in the step to convert the image data into image data in a color space dependent on the target device. Image processing method.
【請求項3】 更に、前記グレーモードに基づいてRG
B毎の1次元変換テーブルを作成するテーブル作成工程
を有し、 前記第1の変換工程においては、前記1次元変換テーブ
ルに基づく変換を行なうことを特徴とする請求項2記載
の画像処理方法。
3. The image processing apparatus according to claim 1, further comprising:
3. The image processing method according to claim 2, further comprising a table creation step of creating a one-dimensional conversion table for each B, wherein in the first conversion step, conversion based on the one-dimensional conversion table is performed.
【請求項4】 前記テーブル作成工程においては、光源
色変換を行なうための1次元ルックアップテーブルを作
成することを特徴とする請求項3記載の画像処理方法。
4. The image processing method according to claim 3, wherein in the table creation step, a one-dimensional lookup table for performing light source color conversion is created.
【請求項5】 前記テーブル作成工程においては、前記
1次元ルックアップテーブルを下式に基づいて算出する
ことを特徴とする請求項4記載の画像処理方法。 R_out = (R1/R0−(R1/R0-1)×αR)×R_in G_out = (G1/G0−(G1/G0-1)×αG)×G_in B_out = (B1/B0−(B1/B0-1)×αB)×B_in ここで、 R_in,G_in,B_in はテーブルへの入力RGB値、 R_out,G_out,B_out はテーブルの出力RGB値、 R0,G0,B0 は基準光源下での白色のRGB値、 R1,G1,B1 は該グレーモードにおけるターゲット光源
下での白色のRGB値、 αk は入力値k(k=R,G,Bのいずれか)に基づいて変換
する連続関数f(k)であり、以下の条件を満たす。 0 ≦ f(k) ≦ 1.0,f(2n−1) = 1.0 ただし、0 ≦ k ≦ 2n−1、nはデータビット数を示す。
5. The image processing method according to claim 4, wherein in the table creation step, the one-dimensional look-up table is calculated based on the following equation. R_out = (R 1 / R 0 − (R 1 / R 0 -1) × α R ) × R_in G_out = (G 1 / G 0 − (G 1 / G 0 -1) × α G ) × G_in B_out = (B 1 / B 0 − (B 1 / B 0 -1) × α B ) × B_in where R_in, G_in, and B_in are input RGB values to the table, R_out, G_out, and B_out are output RGB values of the table, R 0 , G 0 , B 0 are the RGB values of the white color under the reference light source, R 1 , G 1 , B 1 are the RGB values of the white color under the target light source in the gray mode, and α k is the input value k (k = R, G, or B), and satisfies the following condition. 0 ≦ f (k) ≦ 1.0, f (2 n− 1) = 1.0 where 0 ≦ k ≦ 2 n− 1, n indicates the number of data bits.
【請求項6】 更に、前記グレーモードに基づいて、前
記RGB形式の画像データの画素毎にマスキング行列を
算出する行列算出工程を有し、 前記第1の変換工程においては、前記マスキング行列に
基づく変換を行なうことを特徴とする請求項2記載の画
像処理方法。
6. A matrix calculating step of calculating a masking matrix for each pixel of the RGB format image data based on the gray mode, wherein the first converting step is based on the masking matrix. 3. The image processing method according to claim 2, wherein the conversion is performed.
【請求項7】 前記行列算出工程においては、光源色変
換を行なうためのマスキング行列を算出することを特徴
とする請求項6記載の画像処理方法。
7. The image processing method according to claim 6, wherein in the matrix calculation step, a masking matrix for performing light source color conversion is calculated.
【請求項8】 前記行列算出工程においては、前記マス
キング行列を下式に基づいて算出することを特徴とする
請求項7記載の画像処理方法。 【数1】 ここで、 R_in,G_in,B_in は入力RGB値、 R_out,G_out,B_out は出力RGB値、 R0,G0,B0 は基準光源下での白色のRGB値、 R1,G1,B1 は該グレーモードにおけるターゲット光源
下での白色のRGB値、 a,b,c,d,e,fは、以下の関係を満たす定数、 R1/R0 + a + b = 1.0 G1/G0 + c + d = 1.0 B1/B0 + e + f = 1.0 αk は入力値k(k=R,G,Bのいずれか)に基づいて変換
する連続関数f(k)であり、以下の条件を満たす。 0 ≦ f(k) ≦ 1.0,f(2n−1) = 1.0 ただし、0 ≦ k ≦ 2n−1、nはデータビット数を示す。
8. The image processing method according to claim 7, wherein, in the matrix calculating step, the masking matrix is calculated based on the following equation. (Equation 1) Here, R_in, G_in, B_in are input RGB values, R_out, G_out, B_out are output RGB values, R 0 , G 0 , B 0 are white RGB values under a reference light source, R 1 , G 1 , B 1 Is the RGB value of white under the target light source in the gray mode, a, b, c, d, e, and f are constants satisfying the following relationship: R 1 / R 0 + a + b = 1.0 G 1 / G 0 + c + d = 1.0 B 1 / B 0 + e + f = 1.0 α k is a continuous function f (k) that is converted based on the input value k (k = R, G, or B), The following conditions are satisfied. 0 ≦ f (k) ≦ 1.0, f (2 n− 1) = 1.0 where 0 ≦ k ≦ 2 n− 1, n indicates the number of data bits.
【請求項9】 前記RGB形式の画像データは、sRG
B基準色空間上の画像データであることを特徴とする請
求項1記載の画像処理方法。
9. The image data of the RGB format is sRG
2. The image processing method according to claim 1, wherein the image data is image data on a B reference color space.
【請求項10】 前記第2の変換工程は、 前記RGB形式の画像データに変換を施して前記ターゲ
ットデバイスに依存するRGB色空間上の画像データを
生成する前段処理工程と、 該RGB色空間上の画像データに対して変換を施して前
記ターゲットデバイスに依存する色空間の画像データを
生成する後段処理工程と、を有することを特徴とする請
求項2記載の画像処理方法。
10. The second conversion step includes: a pre-processing step of converting image data in the RGB format to generate image data in an RGB color space dependent on the target device; 3. The image processing method according to claim 2, further comprising: performing a conversion process on the image data to generate image data in a color space dependent on the target device.
【請求項11】 前記前段処理工程及び後段処理工程に
おいては、互いに異なる3次元ルックアップテーブルに
基づく変換を行なうことを特徴とする請求項10記載の
画像処理方法。
11. The image processing method according to claim 10, wherein in the pre-processing step and the post-processing step, conversion based on mutually different three-dimensional lookup tables is performed.
【請求項12】 RGB形式の画像データに対して、接
続されたターゲットデバイスとのカラーマッチングを施
す画像処理装置であって、 グレー軸付近の色再現が異なる複数の色再現モードから
1つをグレーモードとして選択するモード選択手段と、 前記画像データに対して、前記グレーモードに応じた色
再現がなされるような色変換を施す色変換手段と、を有
することを特徴とする画像処理装置。
12. An image processing apparatus for performing color matching on image data in RGB format with a connected target device, wherein one of a plurality of color reproduction modes having different color reproductions near a gray axis is grayed out. An image processing apparatus comprising: a mode selection unit that selects a mode; and a color conversion unit that performs color conversion on the image data so that color reproduction according to the gray mode is performed.
【請求項13】 前記色変換手段は、 前記RGB形式の画像データに対して前記グレーモード
に基づく変換を施してRGB形式の画像データを出力す
る第1の変換手段と、 該第1の変換手段より出力されたRGB形式の画像デー
タに対して変換を施して前記ターゲットデバイスに依存
する色空間の画像データに変換する第2の変換手段と、
を有することを特徴とする請求項12記載の画像処理装
置。
13. The first conversion unit, wherein the color conversion unit performs conversion based on the gray mode on the RGB format image data and outputs RGB format image data. Second conversion means for converting the output RGB image data into image data in a color space dependent on the target device,
13. The image processing apparatus according to claim 12, comprising:
【請求項14】 更に、前記グレーモードに基づいてR
GB毎の1次元変換テーブルを作成するテーブル作成手
段を有し、 前記第1の変換手段は、前記1次元変換テーブルに基づ
く変換を行なうことを特徴とする請求項13記載の画像
処理装置。
14. The image processing apparatus according to claim 1, further comprising:
14. The image processing apparatus according to claim 13, further comprising table creation means for creating a one-dimensional conversion table for each GB, wherein the first conversion means performs conversion based on the one-dimensional conversion table.
【請求項15】 更に、前記グレーモードに基づいて、
前記RGB形式の画像データの画素毎にマスキング行列
を算出する行列算出手段を有し、 前記第1の変換手段は、前記マスキング行列に基づく変
換を行なうことを特徴とする請求項13記載の画像処理
装置。
15. Further, based on the gray mode,
14. The image processing apparatus according to claim 13, further comprising: a matrix calculating unit that calculates a masking matrix for each pixel of the image data in the RGB format, wherein the first converting unit performs conversion based on the masking matrix. apparatus.
【請求項16】 画像処理装置とターゲットデバイスと
を接続した画像処理システムにおいて、RGB形式の画
像データについてのカラーマッチングを実行するため
に、 グレー軸付近の色再現が異なる複数の色再現モードから
1つをグレーモードとして選択するモード選択手段と、 前記画像データに対して、前記グレーモードに応じた色
再現がなされるような色変換を施す色変換手段と、を有
することを特徴とする画像処理システム。
16. In an image processing system in which an image processing apparatus and a target device are connected, in order to execute color matching on image data in RGB format, one of a plurality of color reproduction modes having different color reproductions near a gray axis is used. Image processing comprising: mode selection means for selecting one of the image data as a gray mode; and color conversion means for performing color conversion on the image data so as to reproduce color according to the gray mode. system.
【請求項17】 前記色変換手段は、 前記RGB形式の画像データに対して前記グレーモード
に基づく変換を施してRGB形式の画像データを出力す
る第1の変換手段と、 該第1の変換手段より出力されたRGB形式の画像デー
タに対して変換を施して前記ターゲットデバイスに依存
する色空間の画像データに変換する第2の変換手段と、
を有することを特徴とする請求項16記載の画像処理シ
ステム。
17. The first conversion unit, wherein the color conversion unit performs conversion based on the gray mode on the RGB format image data to output RGB format image data, and the first conversion unit. Second conversion means for converting the output RGB image data into image data in a color space dependent on the target device,
17. The image processing system according to claim 16, comprising:
【請求項18】 コンピュータ上で実行されることによ
って、請求項1乃至11に記載の画像処理方法を実現す
るコードを有するプログラム。
18. A program having a code for executing the image processing method according to claim 1 when executed on a computer.
【請求項19】 請求項18記載のプログラムを記録し
た記録媒体。
19. A recording medium on which the program according to claim 18 is recorded.
JP2001020689A 2001-01-29 2001-01-29 Method and device for processing picture Withdrawn JP2002223367A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001020689A JP2002223367A (en) 2001-01-29 2001-01-29 Method and device for processing picture

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001020689A JP2002223367A (en) 2001-01-29 2001-01-29 Method and device for processing picture

Publications (1)

Publication Number Publication Date
JP2002223367A true JP2002223367A (en) 2002-08-09

Family

ID=18886361

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001020689A Withdrawn JP2002223367A (en) 2001-01-29 2001-01-29 Method and device for processing picture

Country Status (1)

Country Link
JP (1) JP2002223367A (en)

Similar Documents

Publication Publication Date Title
US6814420B2 (en) Image processing method and apparatus, storage medium and program
JP4771538B2 (en) Color conversion table generation method, color conversion table, and color conversion table generation apparatus
JP4217398B2 (en) Image data processing method, image data processing apparatus, storage medium, and program
US7864362B2 (en) Color image and monochrome image imaging process
EP1156668B1 (en) Black generation for color management system
US20010035989A1 (en) Method, apparatus and recording medium for color correction
JP2002016939A (en) Method and apparatus for processing image as well as recording medium
JP2009154365A (en) Image processing apparatus, image processing method, image processing program and recording medium
JP2003338938A (en) Method, apparatus and program for image processing
JP4646567B2 (en) Color conversion table creation method and image processing apparatus
JP2003110859A (en) Image processing method, image processor, storage medium and program thereof
JP2008147937A (en) Image processor and image processing method
JP2003334934A (en) Device and method for controlling forming of image, and image forming control program
US7619774B2 (en) Image data transfer from application to printer driver process sections and processing for selected kind of printing
JP2001186368A (en) Method and device for converting color space coordinate, method and device for generating chrominance signal conversion table and memory medium
JP2002015314A (en) Image outputting method, device, and storage medium
JP2002223367A (en) Method and device for processing picture
JP3833170B2 (en) Gray line setting method, image processing apparatus and image processing method
JP2007013377A (en) Image processing method, image processing device, and program
JP2011239428A (en) Image processing device and its data conversion method
JP4100959B2 (en) Image forming method, image forming program, and image forming control apparatus
JP2007038578A (en) Apparatus and method of image processing
JP2002190959A (en) Image processor, image processing method and recording medium
JP2021180377A (en) Image processing device, control method of the same, and program
JP2009141903A (en) Method of processing color and image processing unit

Legal Events

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

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20080401