JP4996320B2 - Color processing apparatus and method - Google Patents

Color processing apparatus and method Download PDF

Info

Publication number
JP4996320B2
JP4996320B2 JP2007117625A JP2007117625A JP4996320B2 JP 4996320 B2 JP4996320 B2 JP 4996320B2 JP 2007117625 A JP2007117625 A JP 2007117625A JP 2007117625 A JP2007117625 A JP 2007117625A JP 4996320 B2 JP4996320 B2 JP 4996320B2
Authority
JP
Japan
Prior art keywords
color
white
value
data
color gamut
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2007117625A
Other languages
Japanese (ja)
Other versions
JP2008278057A (en
Inventor
慶 玉川
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Canon Inc
Original Assignee
Canon Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Canon Inc filed Critical Canon Inc
Priority to JP2007117625A priority Critical patent/JP4996320B2/en
Publication of JP2008278057A publication Critical patent/JP2008278057A/en
Application granted granted Critical
Publication of JP4996320B2 publication Critical patent/JP4996320B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

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

Description

本発明は、色域マッピングを行う色処理に関する。   The present invention relates to color processing that performs color gamut mapping.

ディジタルカメラやスキャナなどの入力機器で取得した画像をプリントする機会が増えた。入力機器は、一旦、当該機器に依存するRGB色空間(以下、デバイスRGB色空間)のデータとして画像を取得し、デバイスRGB色空間のデータを標準的な色空間であるsRGBやAdobeRGBなどの色空間のデータに変換してメモリに保存する。   Opportunities for printing images acquired with input devices such as digital cameras and scanners have increased. The input device once acquires an image as data in an RGB color space (hereinafter referred to as device RGB color space) depending on the device, and the device RGB color space data is a standard color space such as sRGB or AdobeRGB. Convert to spatial data and save in memory.

図1はsRGB色空間の色再現範囲(色域)を示すxy色度図である。点線で示す三角形領域RsはsRGBの色域を、実線で示す馬蹄形領域Rvは人間の可視領域を、破線で示す領域Rpは一般的なプリンタの色域をそれぞれ示している。図1に示すように、sRGB色空間の色域(以下、sRGB色域)とプリンタの色域は形状、面積が異なる。この色域の違いを吸収するには、sRGB色空間の画像(以下、sRGB画像)をプリンタで印刷する場合、sRGB画像の色値をプリンタの色値に対応付ける色域マッピングを行う必要がある。   FIG. 1 is an xy chromaticity diagram showing the color reproduction range (color gamut) of the sRGB color space. A triangular area Rs indicated by a dotted line indicates an sRGB color gamut, a horseshoe-shaped area Rv indicated by a solid line indicates a human visible area, and an area Rp indicated by a broken line indicates a color gamut of a general printer. As shown in FIG. 1, the color gamut of the sRGB color space (hereinafter referred to as sRGB color gamut) and the printer color gamut are different in shape and area. In order to absorb this difference in color gamut, when an image in the sRGB color space (hereinafter referred to as sRGB image) is printed by a printer, it is necessary to perform color gamut mapping that associates the color value of the sRGB image with the color value of the printer.

図2は一般的な色域マッピングを示すフローチャートである。なお、以下では入力画像の色空間(以下、入力色空間)としてsRGB色空間を例に説明する。   FIG. 2 is a flowchart showing general color gamut mapping. Hereinafter, an sRGB color space will be described as an example of the color space of the input image (hereinafter referred to as the input color space).

まず、sRGB画像の画素値RGBに対応する色知覚空間の色値を算出する(S41)。色知覚空間としては例えばCIELAB、CIELUV、CIECAM02などがあるが、以下では、色知覚空間としてCIELABを、色値としてLab値を説明する。   First, the color value of the color perception space corresponding to the pixel value RGB of the sRGB image is calculated (S41). Examples of the color perception space include CIELAB, CIELUV, and CIECAM02. Hereinafter, CIELAB will be described as the color perception space, and Lab values will be described as color values.

次に、色知覚空間上で、Lab値をプリンタなどの出力機器の色域(以下、出力色域)に収めるような変換をLab値に施す(S42)。この変換、言い換えれば、入力機器の色値(以下、入力色値)を出力機器の色値(以下、出力色値)に対応付ける処理を色域マッピングと呼ぶ。   Next, conversion is performed on the Lab value so that the Lab value falls within the color gamut of an output device such as a printer (hereinafter, output color gamut) in the color perception space (S42). This conversion, in other words, the process of associating the color value of the input device (hereinafter referred to as input color value) with the color value of the output device (hereinafter referred to as output color value) is called color gamut mapping.

そして、マッピング後のLab値を出力機器のデバイス色空間のRGB値(以下、デバイスRGB値)に変換する(S43)。   Then, the mapped Lab value is converted into an RGB value in the device color space of the output device (hereinafter, device RGB value) (S43).

出力機器のデバイスRGB値に変換された画像を印刷した場合、色域マッピングの方法によっては、入力機器における白の色値が出力機器における白の色値(紙白)で再現されない場合がある。言い換えれば、入力画像の白が、印刷物においては記録紙にインクやトナーが載った状態で再現される場合がある。入力画像の白に着色すると、色かぶりとして知覚されるため、画像の印象が悪くなる。これを防ぐため、一般に、画像処理の際に入力画像の白を紙白で再現するための処理を行う。   When an image converted to the device RGB value of the output device is printed, the white color value in the input device may not be reproduced as the white color value (paper white) in the output device depending on the color gamut mapping method. In other words, the white of the input image may be reproduced in a printed matter with ink or toner on the recording paper. If the input image is colored white, it is perceived as a color cast, which makes the image look bad. In order to prevent this, generally, processing for reproducing white of an input image with paper white is performed during image processing.

入力画像の白を紙白で再現するには、入力機器と出力機器の白を一致させる必要がある。そのための処理として、特許文献1は、機器の白と黒を結ぶグレイラインを明度軸に一致させるために、明度ごとにグレイラインを平行移動する方法を記載する。   In order to reproduce the white of the input image with paper white, it is necessary to match the white of the input device and the output device. As a process for that purpose, Patent Document 1 describes a method of translating a gray line for each lightness in order to make the gray line connecting white and black of the device coincide with the lightness axis.

図3は明度ごとにグレイラインを平行移動した場合の出力色域の変化を示す図である。点Pは移動前のグレイラインと等明度平面の交点を示し、点P'は移動後のグレイラインと等明度平面の交点を示す。実線Goutはグレイラインを移動する前の等明度平面における出力色域を示し、破線G'outはグレイラインを移動した後の等明度平面における出力色域を示す。このすように、出力色域は点Pの移動に伴い、点Pと同じ移動量だけ平行移動される。   FIG. 3 is a diagram showing changes in the output color gamut when the gray line is translated for each lightness. Point P indicates the intersection of the gray line before movement and the iso-lightness plane, and point P ′ indicates the intersection of the gray line after movement and the iso-lightness plane. A solid line Gout indicates an output color gamut on the iso-lightness plane before moving the gray line, and a broken line G′out indicates an output color gamut on the iso-lightness plane after moving the gray line. As described above, the output color gamut is translated by the same amount of movement as the point P as the point P moves.

上記のグレイラインの移動によれば、入力機器の白、出力機器の白、焦点が同一線分(移動後のグレイライン)上に存在する。従って、出力色域に設定した焦点に向けて、出力色域外の色をマッピングする焦点方式の色域マッピングを行えば、入力機器の白は焦点に向かってマッピングされて出力機器の白に一致し、入力機器の白を紙白などで再現することができる。なお、焦点(収束点)は、例えばグレイライン上の点Lab=(50, 0, 0)などに設定される。   According to the movement of the gray line, the white of the input device, the white of the output device, and the focal point exist on the same line segment (the gray line after the movement). Therefore, if focus type color gamut mapping is performed to map the color outside the output color gamut toward the focus set in the output color gamut, the white of the input device is mapped toward the focus and matches the white of the output device. The white of the input device can be reproduced with white paper. The focal point (convergence point) is set to a point Lab = (50, 0, 0) on the gray line, for example.

また、特許文献2は、入出力機器の白を一致させる手法として、機器のグレイラインを明度軸に一致させるために、色域を回転させる方法を開示する。   Patent Document 2 discloses a method of rotating a color gamut in order to match the gray line of the device with the brightness axis as a method of matching the white of the input / output device.

図4は色域の回転により入出力機器の白を一致させる手法を説明する図である。点線Ginはある色相における入力機器の色域、実線Goutは当該色相における出力機器の色域、破線G'outは出力色域Goutを、入出力機器の白が一致するように回転した色域を示す。   FIG. 4 is a diagram for explaining a technique for matching the white of the input / output device by rotating the color gamut. The dotted line Gin is the color gamut of the input device in a certain hue, the solid line Gout is the color gamut of the output device in that hue, the broken line G'out is the output color gamut Gout, and the color gamut rotated so that the white of the input / output device matches. Show.

上記の色域の回転によれば、特許文献1の技術と同様に、入力機器の白、出力機器の白、焦点が同一線分(回転後のグレイライン)上に存在する。従って、焦点方式の色域マッピングを行えば、入力機器の白は焦点に向かってマッピングされて出力機器の白に一致し、入力機器の白を紙白などで再現することができる。   According to the rotation of the color gamut, as in the technique of Patent Document 1, the white of the input device, the white of the output device, and the focal point exist on the same line segment (the rotated gray line). Therefore, if the color gamut mapping of the focus method is performed, the white of the input device is mapped toward the focus and matches the white of the output device, and the white of the input device can be reproduced with paper white or the like.

しかし、グレイラインの平行移動や色域の回転は、平行移動や回転によって色知覚空間の色値がずれるため、色域マッピングを行うと白以外の色の再現性が悪化する問題がある。   However, the parallel movement of the gray line and the rotation of the color gamut cause the color value of the color perception space to be shifted due to the parallel movement and rotation, and therefore there is a problem that the reproducibility of colors other than white deteriorates when the color gamut mapping is performed.

図5はグレイラインの平行移動における色の再現性悪化を説明する図である。図5において、等明度平面上の点P、P0、P1の平行移動後の点はP'、P'0、P'1である。図5に示すように、グレイラインを平行移動した場合、入力機器の白を含む無彩色は、出力機器の無彩色によって再現され、再現性が向上する。しかし、点P0やP1などの有彩色は、平行移動により、本来の色度とは異なる色度点P'0やP'1にマッピングされることになる。   FIG. 5 is a diagram for explaining deterioration of color reproducibility due to parallel movement of gray lines. In FIG. 5, the points P, P0, P1 on the iso-lightness plane after translation are P ′, P′0, P′1. As shown in FIG. 5, when the gray line is translated, the achromatic color including white of the input device is reproduced by the achromatic color of the output device, and the reproducibility is improved. However, chromatic colors such as points P0 and P1 are mapped to chromaticity points P′0 and P′1 different from the original chromaticity by translation.

図6は色域の回転における色の再現性の悪化を説明する図である。図6において、等色相面上の点P0、P1は回転後の点はP'0、P'1である。図6に示すように、色域を回転した場合、無彩色の再現性は向上するが、点P0やP1などの有彩色は、回転により、本来とは異なる明度、彩度をもつ点P'0やP'1にマッピングされることになる。   FIG. 6 is a diagram for explaining deterioration of color reproducibility during rotation of the color gamut. In FIG. 6, points P0 and P1 on the equi-hue surface are points after rotation P′0 and P′1. As shown in FIG. 6, when the color gamut is rotated, the reproducibility of the achromatic color is improved, but the chromatic colors such as the points P0 and P1 have a lightness and saturation different from the original due to the rotation. It will be mapped to 0 or P'1.

特開2001-326826号公報Japanese Patent Laid-Open No. 2001-326826 特開2002-016816号公報JP 2002-016816 JP

本発明は、色域マッピングにおける無彩色の再現性を向上するとともに、有彩色の再現性の悪化を防ぐことを目的とする。   It is an object of the present invention to improve achromatic color reproducibility in color gamut mapping and prevent deterioration of chromatic color reproducibility.

本発明は、前記の目的を達成する一手段として、以下の構成を備える。   The present invention has the following configuration as one means for achieving the above object.

本発明にかかる色処理は、画像出力機器によって出力される画像を観察する際の観察光源の光源データ、および、前記画像出力機器の入力データの範囲を格子状に分割した各格子点に対応し、前記画像出力機器の出力色域の色値を示す色域データを入力し、前記光源データが示す白色点と前記色域データが示す白色に基づき、前記色域データの格子点ごとに基準白色を計算し、前記格子点ごとの基準白色を用いて、前記格子点に対応する色値から色知覚空間の色値を計算し、前記計算された色知覚空間の色値に基づき、色域マッピングを行うことを特徴とする。 The color processing according to the present invention corresponds to light source data of an observation light source when observing an image output by an image output device , and each lattice point obtained by dividing the range of input data of the image output device into a lattice shape. The color gamut data indicating the color value of the output color gamut of the image output device is input, and based on the white point indicated by the light source data and the white color indicated by the color gamut data, a reference white color for each grid point of the color gamut data And calculating a color value of a color perception space from a color value corresponding to the grid point using a reference white color for each grid point , and color gamut mapping based on the calculated color value of the color perception space It is characterized by performing.

本発明によれば、色域マッピングにおける無彩色の再現性を向上するとともに、有彩色の再現性の悪化を防ぐことができる。   According to the present invention, it is possible to improve achromatic color reproducibility in color gamut mapping and to prevent deterioration of chromatic color reproducibility.

以下、本発明にかかる実施例の色処理を図面を参照して詳細に説明する。   Hereinafter, color processing according to an embodiment of the present invention will be described in detail with reference to the drawings.

[装置の構成]
図7は実施例の色処理装置10の構成例を示すブロック図である。
[Device configuration]
FIG. 7 is a block diagram illustrating a configuration example of the color processing apparatus 10 according to the embodiment.

入力部101は、画像データ、出力色域を示すデータ(以下、出力色域データ)、観察光源を示すデータ(以下、光源データ)を、画像入力機器11や記憶装置12などから入力する。出力部106は、デバイス色空間の色値を示す画像データを、画像出力機器13や記憶装置14に出力する。入力部101および出力部106は、例えばUSBやIEEE1394などのシリアルバスインタフェイスを備え、色処理装置10はシリアルバスケーブルを介して画像入力機器11、画像出力機器13、記憶装置12、14に接続する。   The input unit 101 inputs image data, data indicating an output color gamut (hereinafter referred to as output color gamut data), and data indicating an observation light source (hereinafter referred to as light source data) from the image input device 11, the storage device 12, or the like. The output unit 106 outputs image data indicating the color value of the device color space to the image output device 13 or the storage device 14. The input unit 101 and the output unit 106 include a serial bus interface such as USB or IEEE1394, and the color processing device 10 is connected to the image input device 11, the image output device 13, and the storage devices 12 and 14 via a serial bus cable. To do.

画像データ保持部107は、入力部101が入力した画像データおよびを保持する。色域データ保持部108は、入力部101が入力した色域データを保持する。光源データ保持部109は、入力部101が入力した光源データを保持する。また、バッファメモリ110は、処理途中の各種データを一時的に保持するワークメモリである。これら保持部107〜109およびバッファメモリ110は、例えばRAMやハードディスク(HD)などのメモリの所定領域に割り当てられる。   The image data holding unit 107 holds the image data input by the input unit 101. The gamut data holding unit 108 holds the gamut data input by the input unit 101. The light source data holding unit 109 holds the light source data input by the input unit 101. The buffer memory 110 is a work memory that temporarily holds various data being processed. The holding units 107 to 109 and the buffer memory 110 are allocated to predetermined areas of a memory such as a RAM or a hard disk (HD).

基準白色算出部102は、詳細は後述するが、色域データ保持部108が保持する出力色域データおよび光源データ保持部109が保持する光源データに基づき、デバイスRGB値の格子点ごとに基準白色を算出する。色知覚空間値算出部103は、格子点ごとの基準白色を用いて、色域データ保持部108が保持する出力色域データから、デバイスRGB値の各格子点の色知覚空間の色値(例えばLab値)を算出する。   The reference white calculation unit 102, which will be described in detail later, is based on the output color gamut data held by the color gamut data holding unit 108 and the light source data held by the light source data holding unit 109, for each grid point of the device RGB value. Is calculated. The color perception space value calculation unit 103 uses the reference white color for each grid point and outputs the color value of the color perception space of each grid point of the device RGB value from the output color gamut data held by the color gamut data holding unit 108 (for example, (Lab value) is calculated.

色域マッピング部104は、デバイスRGB値の各格子点のLab値に基づき、画像データ保持部107が保持する入力画像データの色値を出力色域に色域マッピングする。デバイス色値算出部105は、色域マッピングされた色値に対応するデバイス色空間の色値(例えばデバイスRGB値)を算出し、画像データ保持部107に格納する。デバイス色値算出部105は、デバイス色値とLab値の関係を表すルックアップテーブル(LUT)と四面体補間や立方体補間などの補間演算、あるいは、デバイス色値とLab値に変換する変換マトリクスなどを用いて、デバイス色値を計算する。   The color gamut mapping unit 104 performs color gamut mapping of the color value of the input image data held by the image data holding unit 107 to the output color gamut based on the Lab value of each grid point of the device RGB value. The device color value calculation unit 105 calculates a color value (for example, a device RGB value) of the device color space corresponding to the color value that has been color gamut mapped, and stores it in the image data holding unit 107. The device color value calculation unit 105 includes a lookup table (LUT) that represents the relationship between the device color value and the Lab value, an interpolation operation such as tetrahedral interpolation or cube interpolation, or a conversion matrix that converts the device color value to the Lab value. Is used to calculate the device color value.

UI部112は、図示しない操作パネル、モニタとキーボードやマウスの組み合わせを介して、ユーザにユーザインタフェイスを提供する。   The UI unit 112 provides a user interface to the user through a combination of an operation panel (not shown), a monitor, a keyboard, and a mouse.

なお、上記の各構成は、システムバス111を介して相互に接続されている。また、入力部101および出力部106は、ネットワークインタフェイスまたはメモリカードリーダライタを備えてもよい。その場合、色処理装置10は、ネットワークまたはメモリカードを介して、画像入力機器11、画像出力機器13、記憶装置12、14に接続する。   Note that the above-described components are connected to each other via a system bus 111. Further, the input unit 101 and the output unit 106 may include a network interface or a memory card reader / writer. In this case, the color processing device 10 is connected to the image input device 11, the image output device 13, and the storage devices 12 and 14 via a network or a memory card.

[色処理]
図8は色処理装置10の動作を説明するフローチャートである。
[Color processing]
FIG. 8 is a flowchart for explaining the operation of the color processing apparatus 10.

まず、入力部101により、UI部112によってユーザ指示された、色処理に必要な画像データ、出力色域データ、光源データを画像入力機器11や記憶装置12から入力し、それぞれ対応する保持部107〜109に格納する(S11)。なお、入力部101の具体的な処理は後述する。   First, image data necessary for color processing, output color gamut data, and light source data, which are instructed by the UI unit 112 by the input unit 101, are input from the image input device 11 and the storage device 12, and the corresponding holding units 107 are respectively input. To 109 (S11). Specific processing of the input unit 101 will be described later.

図9は画像データ保持部107が格納する画像データの形式例を示す図である。画像データ保持部107は、RGB色成分それぞれの値を一組とする、画像サイズ分の画素データをビットマップ形式でメモリに記憶する。例えば、画像入力機器11からJPEG形式の画像データ(以下、JPEGデータ)が入力される場合、入力部101は、JPEGデータを復号し、YCbCr→RGB変換したビットマップ形式の画像データを画像データ保持部107に格納する。   FIG. 9 is a diagram showing a format example of image data stored in the image data holding unit 107. As shown in FIG. The image data holding unit 107 stores pixel data for an image size in a memory in a bitmap format, each set of RGB color component values. For example, when JPEG image data (hereinafter referred to as JPEG data) is input from the image input device 11, the input unit 101 decodes the JPEG data and holds the image data in the bitmap format obtained by YCbCr → RGB conversion. Stored in the unit 107.

図10は色域データ保持部108が格納する出力色域データの形式例を示す図である。出力色域データは、デバイスRGB値とXYZ値の対が記述されたテーブル形式をもつ。なお、8ビットデータの場合、R=G=B=255におけるXYZ値は紙白に相当する。例えば、プリンタの出力色域データは、一般に、次のように作成する。   FIG. 10 is a diagram illustrating a format example of output gamut data stored in the gamut data holding unit 108. The output color gamut data has a table format in which pairs of device RGB values and XYZ values are described. In the case of 8-bit data, the XYZ value at R = G = B = 255 corresponds to paper white. For example, printer output color gamut data is generally created as follows.

まず、RGB値それぞれの範囲(0〜255)を9または17スライスなどに格子分割する。そして、各格子点の座標に相当するRGB値をプリンタに入力して、所定の記録紙にRGB値に対応する複数の色票を印刷する。次に、色票をそれぞれ測色してXYZ値を取得する。このようにして、デバイスRGB値とXYZ値の対応関係を取得して、図10に示す出力色域データを作成する。従って、色票を印刷した記録紙の紙白はR=G=B=255に対応するXYZ値として表現される。なお、入力される出力色域データがデータ圧縮されている場合、入力部101は、出力色域データをデータ伸長し、伸長結果のテーブルを色域データ保持部108に格納する。   First, the range of RGB values (0 to 255) is divided into 9 or 17 slices. Then, RGB values corresponding to the coordinates of each grid point are input to the printer, and a plurality of color charts corresponding to the RGB values are printed on a predetermined recording sheet. Next, each color chart is measured to obtain XYZ values. In this way, the correspondence between the device RGB value and the XYZ value is acquired, and output color gamut data shown in FIG. 10 is created. Accordingly, the paper white of the recording paper on which the color chart is printed is expressed as an XYZ value corresponding to R = G = B = 255. If the input output color gamut data is compressed, the input unit 101 decompresses the output color gamut data and stores the decompressed result table in the color gamut data holding unit 108.

また、光源データ保持部109が格納する光源データは、例えば画像の観察環境における照明光や周囲光などを含む環境光の白色点のXYZ値、強度などを含む。   The light source data stored in the light source data holding unit 109 includes, for example, the XYZ value and intensity of the white point of ambient light including illumination light and ambient light in the image observation environment.

次に、詳細は後述するが、基準白色算出部102により、色域データ保持部108が保持する出力色域データおよび光源データ保持部109が保持する光源データに基づき基準白色を算出する(S12)。そして、色知覚空間値算出部103により、基準白色を用いて、画像データ保持部107が保持する入力画像データの各画素のLab値を算出する(S13)。   Next, as described in detail later, the reference white calculation unit 102 calculates the reference white color based on the output color gamut data held by the color gamut data holding unit 108 and the light source data held by the light source data holding unit 109 (S12). . Then, the color perception space value calculation unit 103 calculates the Lab value of each pixel of the input image data held by the image data holding unit 107 using the reference white color (S13).

次に、詳細は後述するが、色域マッピング部104により、色域データ保持部108が保持する出力色域データを参照して、画像データの各画素のLab値を色域マッピングする(S14)。そして、デバイス色値算出部105により、色域マッピングしたLab値に対応するデバイスRGB値を算出して画像データ保持部107に格納する(S15)。   Next, as will be described in detail later, the gamut mapping unit 104 refers to the output gamut data held by the gamut data holding unit 108, and gamut maps the Lab value of each pixel of the image data (S14). . Then, the device color value calculation unit 105 calculates a device RGB value corresponding to the Lab value subjected to color gamut mapping and stores it in the image data holding unit 107 (S15).

入力画像データに対する上記処理が終了すると、画像データ保持部107に出力画像データ(デバイスRGB値)が格納される。そこで、出力部106により、出力画像データを、UI部112によってユーザ指示された、画像出力機器13または記憶装置14に出力する(S16)。   When the above processing for the input image data is completed, the output image data (device RGB value) is stored in the image data holding unit 107. Therefore, the output unit 106 outputs the output image data to the image output device 13 or the storage device 14 instructed by the UI unit 112 (S16).

なお、色処理装置10に接続された入出力機器がそれぞれ一台の場合、入力部101による画像データ、出力色域データおよび光源データの入力、並びに、出力部106による画像データの出力は必ずしもユーザ指示を必要としない。この場合、色処理装置10は、入力機器が出力するデータを入力し、色処理した画像データを出力機器に出力すればよい。   When there is one input / output device connected to the color processing apparatus 10, image data, output color gamut data, and light source data are input by the input unit 101, and image data is not necessarily output by the output unit 106. Does not require instructions. In this case, the color processing apparatus 10 may input data output from the input device and output the color processed image data to the output device.

●入力部
図11は入力部101の処理(S11)の詳細を示すフローチャートである。
Input Section FIG. 11 is a flowchart showing details of the process (S11) of the input section 101.

入力部101は、カウンタiを1に初期化し(S101)、入力画像データのi番目の画素データを画像データ保持部107の所定領域に格納する(S102)。そして、カウンタiをインクリメントし(S103)、入力画像データの全画素データを入力したか否かを判定する(S104)。未入力の画像データがある場合は、処理をステップS102へ戻す。なお、画素の順番は、例えばラスタスキャン順とする。   The input unit 101 initializes the counter i to 1 (S101), and stores the i-th pixel data of the input image data in a predetermined area of the image data holding unit 107 (S102). Then, the counter i is incremented (S103), and it is determined whether or not all pixel data of the input image data has been input (S104). If there is uninput image data, the process returns to step S102. Note that the pixel order is, for example, raster scan order.

入力画像データの全画素データを入力すると、入力部101は、カウンタiを再び1に初期化し(S105)、出力色域データのi番目の格子点(格子点番号=i)のRGB値とXYZ値を色域データ保持部108の所定領域に格納する(S106)。そして、カウンタiをインクリメントし(S107)、出力色域データの全格子点のデータを入力したか否かを判定する(S108)。未入力の格子点データがある場合は、処理をステップS106に戻す。   When all the pixel data of the input image data is input, the input unit 101 initializes the counter i to 1 again (S105), and the RGB value and XYZ of the i-th grid point (grid point number = i) of the output color gamut data The value is stored in a predetermined area of the color gamut data holding unit 108 (S106). Then, the counter i is incremented (S107), and it is determined whether or not the data of all grid points of the output color gamut data have been input (S108). If there is uninput grid point data, the process returns to step S106.

出力色域データの全格子点のデータを入力すると、入力部101は、光源データを光源データ保持部109の所定領域に格納する(S109)。   When the data of all grid points of the output color gamut data is input, the input unit 101 stores the light source data in a predetermined area of the light source data holding unit 109 (S109).

●基準白色算出部
図12は基準白色算出部102の処理(S12)の詳細を示すフローチャートである。
Reference White Calculation Unit FIG. 12 is a flowchart showing details of the process (S12) of the reference white calculation unit 102.

基準白色算出部102は、色域データ保持部108が保持する出力色域データから紙白(R=G=B=255)のXYZ値を取得する(S201)。勿論、出力色域データがRGB値(0, 0, 0)から(255, 255, 255)の順に並んでいる場合は、テーブルの最下行のXYZ値を取得することで、紙白のXYZ値を取得してもよい。   The reference white calculation unit 102 acquires the XYZ value of paper white (R = G = B = 255) from the output color gamut data held by the color gamut data holding unit 108 (S201). Of course, when the output color gamut data is arranged in the order of RGB values (0, 0, 0) to (255, 255, 255), the XYZ value of paper white can be obtained by obtaining the XYZ value of the bottom row of the table. May be obtained.

次に、基準白色算出部102は、式(1)によって、紙白のXYZ値XwpYwpZwpからxy値xwpywpを計算する(S202)。
xwp = Xwp/(Xwp + Ywp + Zwp)
ywp = Ywp/(Xwp + Ywp + Zwp) …(1)
Next, the reference white calculation unit 102 calculates the xy value x wp y wp from the XYZ value X wp Y wp Z wp of the paper white according to the equation (1) (S202).
x wp = X wp / (X wp + Y wp + Z wp )
y wp = Y wp / (X wp + Y wp + Z wp )… (1)

次に、基準白色算出部102は、光源データ保持部109が保持する光源データから光源の白色点のXYZ値XwsYwsZwsを取得し(S203)、式(1)によって、光源の白色点のxy値xwsywsを計算する(S204)。 Next, the reference white calculation unit 102 obtains the XYZ value X ws Y ws Z ws of the white point of the light source from the light source data held by the light source data holding unit 109 (S203), The xy value x ws y ws of the point is calculated (S204).

次に、基準白色算出部102は、Y値の閾値Ythを設定する(S205)。閾値Ythは、詳細は後述するが、基準白色と、光源の白色点および出力機器の白色(例えば紙白)の依存の程度を調整するための重みである。基準白色算出部102は、閾値Ythとして、UI部112によってユーザが入力するか、既定値を設定する。ここでは例えばYth=70に設定することにする。そして、カウンタiを1に初期化する(S206)。   Next, the reference white calculation unit 102 sets a threshold Yth for the Y value (S205). Although details will be described later, the threshold value Yth is a weight for adjusting the degree of dependence of the reference white color, the white point of the light source, and the white color (for example, paper white) of the output device. The reference white calculation unit 102 inputs the threshold value Yth by the user through the UI unit 112 or sets a default value. Here, for example, Yth = 70 is set. Then, the counter i is initialized to 1 (S206).

次に、基準白色算出部102は、紙白のxy値、光源の白色点のxy値、閾値Yth、および、出力色域データのi番目の格子点のY値を用いて、基準白色のXYZ値を計算する(S207)。基準白色のXYZ値XwrYwrZwrは、線形補間によって計算した基準白色のxy値xwrywrをXYZ値に変換することで計算する。式(2)は、基準白色のxy値xwrywrを計算する式である。
xwr = (n×xwp + m×xws )/(m + n)
ywr = (n×ywp + m×yws )/(m + n) …(2)
ここで、m = Ywp - Y (m≧0)
n = Y - Yth (n≧ 0)
Next, the reference white calculation unit 102 uses the xy value of the paper white, the xy value of the white point of the light source, the threshold value Yth, and the Y value of the i-th grid point of the output color gamut data to generate XYZ of the reference white The value is calculated (S207). Reference white of XYZ values X wr Y wr Z wr is calculated by converting the reference white of xy values x wr y wr calculated by linear interpolation into XYZ values. Expression (2) is an expression for calculating the xy value x wr y wr of the reference white.
x wr = ( n × x wp + m × x ws ) / (m + n)
y wr = ( n × y wp + m × y ws ) / (m + n)… (2)
Where m = Y wp -Y (m ≧ 0)
n = Y-Yth (n≥ 0)

つまり、格子点のY値がYth以下(Y≦Yth)の場合はn=0になり、基準白色は光源の白色点のXYZ値に依存する値になる。また、格子点のY値がYthを超える(Y>Yth)の場合はn>0になり、基準白色は光源の白色点と紙白の間の値になる。つまり、閾値Ythは、基準白色が、光源の白色点および出力機器の白色(例えば紙白)に依存する程度を調整する、加重平均の重みとして機能する。また、xy値をXYZ値に変換するには式(3)を用いる。
X = Y×x/y
Y = y …(3)
Z = Y×(1.0 - x - y)/y
That is, when the Y value of the lattice point is Yth or less (Y ≦ Yth), n = 0, and the reference white value depends on the XYZ value of the white point of the light source. When the Y value of the grid point exceeds Yth (Y> Yth), n> 0, and the reference white is a value between the white point of the light source and the paper white. That is, the threshold value Yth functions as a weighted average weight that adjusts the degree to which the reference white color depends on the white point of the light source and the white color of the output device (for example, paper white). Also, Equation (3) is used to convert xy values into XYZ values.
X = Y × x / y
Y = y (3)
Z = Y × (1.0-x-y) / y

次に基準白色算出部102は、i番目の格子点の基準白色(XYZ値)をバッファメモリ110に格納し(S208)、カウンタiをインクリメントする(S209)。そして、全格子点に対応する基準白色を算出したか否かを判定し(S210)、未了の場合は処理をステップS207に戻して、全格子点に対応する基準白色を算出するまでステップS207〜S210を繰り返す。   Next, the reference white calculation unit 102 stores the reference white (XYZ value) of the i-th lattice point in the buffer memory 110 (S208), and increments the counter i (S209). Then, it is determined whether or not the reference white corresponding to all the grid points has been calculated (S210), and if not completed, the process returns to step S207 until the reference white corresponding to all the grid points is calculated. Repeat ~ S210.

このように、基準白色算出部102は、出力色域データの各格子点のY値に対応する基準白色を、xy色度平面における紙白のxy値、光源の白色点のxy値、閾値Yth(重み)に基づき、線形補間(加重平均演算)によって計算する。   Thus, the reference white calculation unit 102 calculates the reference white corresponding to the Y value of each grid point of the output color gamut data, the xy value of paper white in the xy chromaticity plane, the xy value of the white point of the light source, and the threshold value Yth. Based on (weight), calculation is performed by linear interpolation (weighted average calculation).

●色知覚空間値算出部
図13は色知覚空間値算出部103の処理(S13)の詳細を示すフローチャートである。
Color Perception Space Value Calculation Unit FIG. 13 is a flowchart showing details of the process (S13) of the color perception space value calculation unit 103.

色知覚空間値算出部103は、カウンタiを1に初期化し(S301)、バッファメモリ110に格納されたi番目の格子点の基準白色を取得し(S302)、取得した基準白色を用いて、i番目の格子点のXYZ値に対応するLab値を計算する(S303)。   The color perception space value calculation unit 103 initializes the counter i to 1 (S301), acquires the reference white of the i-th grid point stored in the buffer memory 110 (S302), and uses the acquired reference white, Lab values corresponding to the XYZ values of the i-th lattice point are calculated (S303).

格子点のXYZ値に対応するLab値の計算は、色域データ保持部108から当該格子点のXYZ値を取得する。そして、式(4)によってLab値を計算する。
Y/Yn > 0.008856の場合
L* = 116(Y/Yn)1/3 - 16
Y/Yn ≦ 0.008856の場合
L* = 903.29(Y/Yn)
a* = 500{f(X/Xn) - f(Y/Yn)} …(4)
b* = 200(f(Y/Yn) - f(Z/Zn)}
ここで、X/Xn > 0.008856の場合 f(X/Xn) = (X/Xn)1/3
X/Xn ≦ 0.008856の場合 f(X/Xn) = 7.78(X/Xn) + 16/116
Y/Yn > 0.008856の場合 f(Y/Yn) = (Y/Yn)1/3
Y/Yn ≦ 0.008856の場合 f(Y/Yn) = 7.78(Y/Yn) + 16/116
Z/Zn > 0.008856の場合 f(Z/Zn) = (Z/Zn)1/3
Z/Zn ≦ 0.008856の場合 f(Z/zn) = 7.78(Z/Zn) + 16/116
XnYnZnは基準白色のXYZ値
In calculating the Lab value corresponding to the XYZ value of the grid point, the XYZ value of the grid point is acquired from the color gamut data holding unit 108. Then, the Lab value is calculated by Equation (4).
When Y / Yn> 0.008856
L * = 116 (Y / Yn) 1 /3-16
When Y / Yn ≤ 0.008856
L * = 903.29 (Y / Yn)
a * = 500 {f (X / Xn)-f (Y / Yn)}… (4)
b * = 200 (f (Y / Yn)-f (Z / Zn)}
Here, when X / Xn> 0.008856, f (X / Xn) = (X / Xn) 1/3
When X / Xn ≤ 0.008856 f (X / Xn) = 7.78 (X / Xn) + 16/116
When Y / Yn> 0.008856 f (Y / Yn) = (Y / Yn) 1/3
When Y / Yn ≤ 0.008856 f (Y / Yn) = 7.78 (Y / Yn) + 16/116
When Z / Zn> 0.008856 f (Z / Zn) = (Z / Zn) 1/3
When Z / Zn ≤ 0.008856 f (Z / zn) = 7.78 (Z / Zn) + 16/116
XnYnZn is the XYZ value of the reference white

次に、色知覚空間値算出部103は、計算した格子点のLab値をバッファメモリ110に格納し(S304)、カウンタiをインクリメントする(S305)。そして、全格子点のLab値を算出したか否かを判定し(S306)、未了の場合は処理をステップS302へ戻し、全格子点のLab値を算出するまで、ステップS302〜S305の処理を繰り返す。   Next, the color perception space value calculation unit 103 stores the calculated Lab values of the grid points in the buffer memory 110 (S304), and increments the counter i (S305). Then, it is determined whether or not Lab values of all grid points have been calculated (S306), and if not completed, the process returns to Step S302, and the processes of Steps S302 to S305 are performed until Lab values of all grid points are calculated. repeat.

このように、色知覚空間値算出部103では、格子点ごとに計算した基準白色を用いて、格子点の色知覚空間値を計算する。   As described above, the color perception space value calculation unit 103 calculates the color perception space value of the lattice point using the reference white color calculated for each lattice point.

●色域マッピング部
図14は色域マッピング部104の処理(S14)の詳細を示すフローチャートである。
Color Gamut Mapping Unit FIG. 14 is a flowchart showing details of the processing (S14) of the color gamut mapping unit 104.

色域マッピング部104は、カウンタiを1に初期化し(S401)、画像データ保持部107が格納する入力画像データのi番目の画素データ(RGB値)に対応するLab値を計算する(S402)。つまり、i番目の画素データのRGB値を取得し、RGB値をXYZ値に変換する。例えば、画像データがIEC61966-2-1が規定するsRGB色空間で表現される場合、式(5)によってRGB値をXYZ値に変換する。
┌ ┐ ┌ ┐┌ ┐
│X│ │0.4124 0.3576 0.1805││R"│
│Y│=│0.2126 0.7152 0.0722││G"│ …(5)
│Z│ │0.0193 0.1192 0.9505││B"│
└ ┘ └ ┘└ ┘
ここで、R' = R/255
G' = G/255
B' = B/255
R'、G'、B' ≦ 0.04045の場合
R" = R'/12.92
G" = G'/12.92
B" = B'/12.92
R'、G'、B' > 0.04045の場合
R" = {(R' + 0.055)/1.055}2.4
G" = {(G' + 0.055)/1.055}2.4
B" = {(B' + 0.055)/1.055}2.4
The gamut mapping unit 104 initializes the counter i to 1 (S401), and calculates the Lab value corresponding to the i-th pixel data (RGB value) of the input image data stored in the image data holding unit 107 (S402). . That is, the RGB value of the i-th pixel data is acquired, and the RGB value is converted into an XYZ value. For example, when the image data is expressed in the sRGB color space defined by IEC61966-2-1, the RGB value is converted into an XYZ value by Expression (5).
┌ ┐ ┌ ┐┌ ┐
│X│ │0.4124 0.3576 0.1805││R''│
│Y│ = │0.2126 0.7152 0.0722││G''│… (5)
│Z│ │0.0193 0.1192 0.9505││B''│
└ ┘ └ ┘└ ┘
Where R '= R / 255
G '= G / 255
B '= B / 255
When R ', G', B '≤ 0.04045
R "= R '/ 12.92
G "= G '/ 12.92
B "= B '/ 12.92
When R ', G', B '> 0.04045
R "= {(R '+ 0.055) /1.055} 2.4
G "= {(G '+ 0.055) /1.055} 2.4
B "= {(B '+ 0.055) /1.055} 2.4

そして、式(5)で計算したXYZ値から、式(4)を用いて、Lab値を算出する。Lab値を計算する際の白色点には基準光源D65のXYZ値を用いるか、入力画像データのヘッダに記述された色温度または白色点のXYZ値を使用すればよい。   Then, the Lab value is calculated from the XYZ value calculated by Expression (5) using Expression (4). The XYZ value of the reference light source D65 may be used for the white point when calculating the Lab value, or the color temperature described in the header of the input image data or the XYZ value of the white point may be used.

次に、色域マッピング部104は、i番目の画素データのLab値(以下、入力色)が出力色域内に存在するか否かを内外判定する(S403)。色域の内外判定は、焦点方式の色域マッピングにおける焦点から入力色に延伸した直線と出力色域の境界面との交点を囲む境界面の格子点によって判定する。   Next, the color gamut mapping unit 104 determines whether or not the Lab value of the i-th pixel data (hereinafter, input color) exists in the output color gamut (S403). The inside / outside determination of the color gamut is determined by the grid points on the boundary surface surrounding the intersection of the straight line extending from the focal point to the input color and the boundary surface of the output color gamut in the focus type color gamut mapping.

図15は色域の内外判定を説明する図である。図15に示す点Aは出力色域のグレイライン上(例えば、Lab=(50, 0, 0))の焦点である。点Pは入力色を示す。点B、C、Dは、焦点Aから点Pに延伸した直線と出力色域の境界面との交点を囲む境界面の格子点である。このとき、ベクトルAPは式(6)によって表すことができる。
↑AP = s↑AB + t↑AC + u↑AD …(6)
ただし、↑APは点Aから点Pに向かうベクトルを表す
FIG. 15 is a diagram for explaining inside / outside determination of a color gamut. A point A shown in FIG. 15 is a focal point on the gray line of the output color gamut (for example, Lab = (50, 0, 0)). Point P indicates the input color. Points B, C, and D are lattice points on the boundary surface that surround the intersection of the straight line extending from the focal point A to the point P and the boundary surface of the output color gamut. At this time, the vector AP can be expressed by Equation (6).
↑ AP = s ↑ AB + t ↑ AC + u ↑ AD… (6)
Where ↑ AP represents a vector from point A to point P

式(6)の係数s、t、uは、任意の点XのLab値を(Lx, ax, bx)と表すと、式(7)によって計算することができる。
┌ ┐ ┌ ┐-1┌ ┐
│s│ │LB-LA LC-LA LP-LA│ │LP-LA
│t│=│aB-aA aC-aA aP-aA│ │aP-aA│ …(7)
│u│ │bB-bA bC-bA bP-bA│ │bP-bA
└ ┘ └ ┘ └ ┘
The coefficients s, t, and u in Equation (6) can be calculated by Equation (7) when the Lab value at an arbitrary point X is expressed as (Lx, ax, bx).
┐ ┐ ┌ ┐-1┌ ┐
│s│ │L B -L A L C -L A L P -L A │ │L P -L A
│t│ = │a B -a A a C -a A a P -a A │ │a P -a A │… (7)
│u│ │b B -b A b C -b A b P -b A │ │b P -b A
└ ┘ └ ┘ └ ┘

点Pが四面体ABCDの内部に存在すれば式(8)が成り立つ。
s + t + u ≦ 1、0 ≦ s, t, u …(8)
If the point P exists inside the tetrahedron ABCD, the equation (8) is established.
s + t + u ≤ 1, 0 ≤ s, t, u (8)

つまり、色域マッピング部104は、式(8)が成り立つ格子点B、C、Dが存在すれば、入力色Pは出力色域内に存在すると判定する。また、式(8)が成り立つ格子点B、C、Dが存在しない場合、入力色Pは出力色域外に存在すると判定する。そして、入力色Pが出力色域内に存在すれば処理をステップS406に進める。   That is, the color gamut mapping unit 104 determines that the input color P exists in the output color gamut if there are grid points B, C, and D that satisfy Equation (8). Further, when there are no grid points B, C, and D that satisfy Expression (8), it is determined that the input color P exists outside the output color gamut. If the input color P exists in the output color gamut, the process proceeds to step S406.

入力色Pが出力色域外に存在する場合、色域マッピング部104は、ベクトルAPと出力色域の境界面の交点(図15に示す点Pi)を計算し(S404)、入力色PのLab値を交点PiのLab値に置き換える(S405)。つまり、出力色域外の入力色Pを出力色域の境界面の交点Piにマッピングする。   When the input color P exists outside the output color gamut, the color gamut mapping unit 104 calculates the intersection (point Pi shown in FIG. 15) of the boundary surface between the vector AP and the output color gamut (S404), and the Lab of the input color P The value is replaced with the Lab value of the intersection Pi (S405). That is, the input color P outside the output color gamut is mapped to the intersection Pi of the boundary surface of the output color gamut.

次に、色域マッピング部104は、カウンタiをインクリメントし(S406)、入力画像データの全画素データを処理したか否かを判定する(S407)。そして、未処理の画素データが有る場合は処理をステップS402に戻し、全画素データの処理が終了するまでステップS402からS407を繰り返す。   Next, the color gamut mapping unit 104 increments the counter i (S406), and determines whether all pixel data of the input image data has been processed (S407). If there is unprocessed pixel data, the process returns to step S402, and steps S402 to S407 are repeated until the processing of all pixel data is completed.

このように、色域マッピング部104は、出力色域内の入力色Pはその色値を維持し、出力色域外の入力色Pは、ベクトルAPと出力色域の境界面の交点Piにマッピングすることで、入力画像データの色値を出力色域へ色域マッピングする。   Thus, the color gamut mapping unit 104 maintains the color value of the input color P in the output color gamut, and maps the input color P outside the output color gamut to the intersection Pi of the boundary surface between the vector AP and the output color gamut. As a result, the color value of the input image data is mapped to the output color gamut.

このように、色処理装置10は、出力色域データの格子点ごとに基準白色を設定する。そして、当該基準白色を用いて算出した出力色域の格子点に対応する色知覚空間の色値に基づき、入力画像データの色知覚空間の色値を色域マッピングする。従って、入力機器の白と出力機器の白(紙白)を一致させて無彩色の再現性を向上するとともに、有彩色の再現性の悪化を防ぐことができる。   As described above, the color processing apparatus 10 sets the reference white color for each grid point of the output color gamut data. Then, based on the color values of the color perception space corresponding to the grid points of the output color gamut calculated using the reference white color, the color values of the color perception space of the input image data are color gamut mapped. Therefore, the white of the input device and the white of the output device (paper white) can be matched to improve the achromatic color reproducibility and prevent the deterioration of the chromatic color reproducibility.

以下、本発明にかかる実施例2の色処理を説明する。なお、実施例2において、実施例1と略同様の構成については、同一符号を付して、その詳細説明を省略する。   The color processing according to the second embodiment of the present invention will be described below. Note that the same reference numerals in the second embodiment denote the same parts as in the first embodiment, and a detailed description thereof will be omitted.

図16は実施例2の色処理装置10の動作を説明するフローチャートである。   FIG. 16 is a flowchart for explaining the operation of the color processing apparatus 10 according to the second embodiment.

実施例1と同様に、入力部101により、UI部112によってユーザ指示された、色処理に必要な画像データ、出力色域データ、光源データを画像入力機器11や記憶装置12から入力し、それぞれ対応する保持部107〜109に格納する(S11)。   As in the first embodiment, the input unit 101 inputs image data, output color gamut data, and light source data necessary for color processing, which are instructed by the UI unit 112, from the image input device 11 or the storage device 12, respectively. The data are stored in the corresponding holding units 107 to 109 (S11).

次に、色知覚空間値算出部103により、色域データ保持部108が保持する出力色域データのXYZ値をLab値に変換し、出力色域の境界面のLab値を取得する(S21)。そして、デバイス色値算出部105により、出力色域の境界面のLab値をUI部112に接続されたモニタのデバイスRGB値に変換する(S22)。そして、UI部112により、ある色相における出力色域の断面をモニタに表示する(S23)。   Next, the color perception space value calculation unit 103 converts the XYZ values of the output gamut data held by the gamut data holding unit 108 into Lab values, and acquires the Lab value of the boundary surface of the output gamut (S21). . Then, the device color value calculation unit 105 converts the Lab value on the boundary surface of the output color gamut into the device RGB value of the monitor connected to the UI unit 112 (S22). Then, the UI unit 112 displays a cross section of the output color gamut in a certain hue on the monitor (S23).

図17はユーザインタフェイス200の一例を示す図である。ユーザは、画像データ設定部201のテキストボックスにファイル名を入力するか、参照ボタンを押すと表示される図示しないファイル選択ダイアログによって入力画像データを設定する。また、ユーザは、出力色域設定部202のテキストボックスにファイル名を入力するか、参照ボタンを押すと表示される図示しないファイル選択ダイアログによって出力色域データを設定する。   FIG. 17 is a diagram illustrating an example of the user interface 200. The user inputs the file name in the text box of the image data setting unit 201 or sets the input image data by a file selection dialog (not shown) displayed when the browse button is pressed. In addition, when the user inputs a file name in the text box of the output color gamut setting unit 202 or presses a browse button, the user sets output color gamut data by a file selection dialog (not shown).

ユーザは、Y閾値設定部203のテキストボックスに数値を入力するか、テキストボックスに表示された数値をスピンボタンで調整するかして、閾値Ythを設定する。また、ユーザは、出力先設定部204のテキストボックスに画像データの出力先を特定するデバイス名、パス名、アドレスを入力するか、参照ボタンを押すと表示される図示しないファイル選択ダイアログによって画像データの出力先である出力機器を設定する。   The user sets the threshold value Yth by inputting a numerical value in the text box of the Y threshold value setting unit 203 or adjusting the numerical value displayed in the text box with a spin button. In addition, the user inputs a device name, a path name, and an address for specifying the output destination of the image data in the text box of the output destination setting unit 204 or presses a browse button, and the image data is displayed by a file selection dialog (not shown). Set the output device that is the output destination.

出力色域表示部207には、出力色域データが表す出力色域のある色相断面が表示される。   The output color gamut display unit 207 displays a hue section having an output color gamut represented by the output color gamut data.

UI部112は、「更新」ボタン205が押されたか否かを判定し(S25)、押された場合はY閾値設定部203に設定された閾値Ythを基準白色算出部102に供給し、出力色域の各格子点の基準白色を算出させる(S26)。続いて、色知覚空間値算出部103は、出力色域の格子点の基準白色を用いて、出力色域の境界面のLab値を算出する(S27)。この後、処理はステップS21へ戻り、UI部112は、出力色域の表示を更新する。   The UI unit 112 determines whether or not the “update” button 205 has been pressed (S25), and if pressed, supplies the threshold Yth set in the Y threshold setting unit 203 to the reference white color calculation unit 102 for output. The reference white of each grid point in the color gamut is calculated (S26). Subsequently, the color perception space value calculation unit 103 calculates the Lab value of the boundary surface of the output color gamut using the reference white of the grid point of the output color gamut (S27). Thereafter, the process returns to step S21, and the UI unit 112 updates the display of the output color gamut.

また、UI部201は、「決定」ボタンが押されたか否かを判定し(S24)、押された場合は処理をステップS12へ進める。ステップS12以降の処理は、図8に示す実施例1の処理と同様であるから、その詳細説明を省略する。   Further, the UI unit 201 determines whether or not the “OK” button has been pressed (S24). If the button has been pressed, the process proceeds to step S12. Since the process after step S12 is the same as the process of Example 1 shown in FIG. 8, the detailed description is abbreviate | omitted.

このように、ユーザは、Y閾値設定部203により閾値Ythを調整して、出力色域表示部207の表示により好ましい出力色域が得られるか否かを確認することができる。   Thus, the user can confirm whether or not a preferable output color gamut can be obtained by the display of the output color gamut display unit 207 by adjusting the threshold Yth by the Y threshold value setting unit 203.

以下、本発明にかかる実施例3の色処理を説明する。なお、実施例3において、実施例1、2と略同様の構成については、同一符号を付して、その詳細説明を省略する。   Hereinafter, color processing according to the third embodiment of the present invention will be described. Note that the same reference numerals in the third embodiment denote the same parts as in the first and second embodiments, and a detailed description thereof will be omitted.

図18は実施例3の色処理装置10の構成例を示すブロック図である。図7に示す構成に加えて、入力部101が入力した黒体放射軌跡データを保持する黒体放射軌跡保持部113を備える。黒体放射軌跡保持部113は、他の保持部と同様に、例えばRAMやハードディスク(HD)などのメモリの所定領域に割り当てられる。   FIG. 18 is a block diagram illustrating a configuration example of the color processing apparatus 10 according to the third embodiment. In addition to the configuration shown in FIG. 7, a black body radiation locus holding unit 113 that retains the black body radiation locus data input by the input unit 101 is provided. The black body radiation locus holding unit 113 is allocated to a predetermined area of a memory such as a RAM or a hard disk (HD), for example, like the other holding units.

図19は色処理装置10の動作を説明するフローチャートである。図8に示す動作と異なるのはステップS11'とS12'の処理である。つまり、入力部101により、UI部112によってユーザ指示された、色処理に必要な画像、出力色域、光源、黒体放射軌跡の各データを画像入力機器11や記憶装置12から入力し、それぞれ対応する保持部107〜109、113に格納する(S11')。なお、黒体放射軌跡保持部113は、一次元のLUT形式で黒体放射軌跡データを保持する。そして、基準白色算出部102により、黒体放射軌跡データを使用して基準白色を計算する(S12')。   FIG. 19 is a flowchart for explaining the operation of the color processing apparatus 10. What differs from the operation shown in FIG. 8 is the processing of steps S11 ′ and S12 ′. That is, the input unit 101 inputs data necessary for color processing, the output color gamut, the light source, and the black body radiation locus from the image input device 11 and the storage device 12, which are instructed by the UI unit 112, respectively. The data are stored in the corresponding holding units 107 to 109 and 113 (S11 ′). Note that the blackbody radiation locus holding unit 113 retains the blackbody radiation locus data in a one-dimensional LUT format. Then, the reference white calculation unit 102 calculates the reference white using the black body radiation locus data (S12 ′).

図20は基準白色算出部102の処理(S12')の詳細を示すフローチャートである。   FIG. 20 is a flowchart showing details of the process (S12 ′) of the reference white calculation unit 102.

図12示すステップS201〜S204と同様の処理を実行した後、基準白色算出部102により、紙白のxy値xwpywpと最短距離になる黒体放射軌跡上の点のxy値を計算する(S211)。さらに、光源の白色点のxy値xwsywsと最短距離になる黒体放射軌跡上の点のxy値を計算する(S212)。そして、紙白のxy値および光源の白色点のxy値を黒体放射軌跡上のxy値で置き換える(S213)。 After executing the same processing as steps S201 to S204 shown in FIG. 12, the reference white calculation unit 102 calculates the xy value of the point on the black body radiation locus that has the shortest distance from the xy value x wp y wp of the paper white. (S211). Further, the xy value of the point on the black body radiation locus that is the shortest distance from the xy value x ws y ws of the white point of the light source is calculated (S212). Then, the xy value of the paper white and the xy value of the white point of the light source are replaced with the xy value on the black body radiation locus (S213).

ステップS207における、各格子点の基準白色の算出は、黒体放射軌跡上の二点、つまり黒体放射軌跡上の紙白のxy値、黒体放射軌跡上の光源の白色点のxy値を用いることになる。従って、基準白色算出部102が計算する基準白色は、黒体放射軌跡に沿ったLab値、言い換えれば、人間の視覚特性に合った色知覚空間の色値になる。   In step S207, the reference white of each grid point is calculated by calculating two points on the blackbody radiation locus, that is, the xy value of the paper white on the blackbody radiation locus, and the xy value of the white point of the light source on the blackbody radiation locus. Will be used. Accordingly, the reference white calculated by the reference white calculation unit 102 is an Lab value along the black body radiation locus, in other words, a color value in a color perception space that matches human visual characteristics.

[変形例]
上記の実施例においては、CIELab空間を用いる例を説明したが、CIELuv、CIECAM02、CIECAM97sなどの色知覚空間であってもよい。
[Modification]
In the above embodiment, the example using the CIELab space has been described. However, a color perception space such as CIELuv, CIECAM02, CIECAM97s may be used.

また、上記の実施例において、基準白色算出部102は、線形補間を用いて、紙白や光源の白色点など複数の白色から基準白色を求める例を説明したが、非線形補間を用いてもよい。また、xy色度値を用いて基準白色を求める例を説明したが、uv色度値を用いてもよい。また、紙白や光源の白色点を用いる例を説明したが、部分順応白色や人間が純白と感じる絶対白色などを用いてもよい。   In the above-described embodiment, the example in which the reference white calculation unit 102 obtains the reference white from a plurality of whites such as paper white and the white point of the light source using linear interpolation has been described. However, nonlinear interpolation may be used. . Moreover, although the example which calculates | requires reference | standard white using xy chromaticity value was demonstrated, you may use uv chromaticity value. Moreover, although the example using paper white or the white point of a light source was demonstrated, you may use partially white adaptation, the absolute white which a human feels pure white, etc.

また、上記の実施例において、色域マッピング部104は、出力色域内の入力色はその色値を保ち、出力色域外の入力色は焦点に向かって出力色域の境界面にマッピングする例を説明した。しかし、出力色域外の入力色は明度を保って出力色域の境界面にマッピングしてもよい。また、入力色のマッピング前後におけるCIELab空間の三次元距離が最小になるように、つまり、出力色域の境界面の最短距離の点に入力色をマッピングしてもよい。また、出力色域内の入力色も完全に保つ必要はなく、出力色域内外ともに、好ましい色にマッピングしてもよい。また、sRGB空間の色値とデバイスRGB空間の色値を対応付ける変換マトリクスを用いたマスキング手法を用いてもよい。   In the above embodiment, the color gamut mapping unit 104 maintains the color value of the input color in the output color gamut, and maps the input color outside the output color gamut to the boundary surface of the output color gamut toward the focal point. explained. However, the input color outside the output color gamut may be mapped to the boundary surface of the output color gamut while maintaining the lightness. Further, the input color may be mapped so that the three-dimensional distance in the CIELab space before and after the mapping of the input color is minimized, that is, at the shortest distance point on the boundary surface of the output color gamut. Also, the input color within the output color gamut need not be kept completely, and may be mapped to a preferable color both inside and outside the output color gamut. Further, a masking technique using a conversion matrix that associates color values in the sRGB space with color values in the device RGB space may be used.

また、上記の実施例において、基準白色算出部102は、出力色域データの各格子点のY値に応じて基準白色を算出する例を説明した。しかし、入力色域についても同様の処理を行ってもよい。   Further, in the above-described embodiment, the example in which the reference white calculation unit 102 calculates the reference white according to the Y value of each grid point of the output color gamut data has been described. However, the same processing may be performed for the input color gamut.

[他の実施例]
なお、本発明は、複数の機器(例えばコンピュータ、インタフェイス機器、リーダ、プリンタなど)から構成されるシステムに適用しても、一つの機器からなる装置(例えば、複写機、ファクシミリ装置、制御装置など)に適用してもよい。
[Other embodiments]
Note that the present invention can be applied to a system composed of a plurality of devices (for example, a computer, an interface device, a reader, a printer, etc.), or a device (for example, a copier, a facsimile machine, a control device) composed of a single device. Etc.).

また、本発明の目的は、上記実施例の機能を実現するコンピュータプログラムを記録した記憶媒体をシステムまたは装置に供給し、そのシステムまたは装置のコンピュータ(CPUやMPU)が前記コンピュータプログラムを実行することでも達成される。この場合、記憶媒体から読み出されたソフトウェア自体が上記実施例の機能を実現することになり、そのコンピュータプログラムと、そのコンピュータプログラムを記憶する、コンピュータが読み取り可能な記憶媒体は本発明を構成する。   Another object of the present invention is to supply a storage medium storing a computer program for realizing the functions of the above-described embodiments to a system or apparatus, and the computer (CPU or MPU) of the system or apparatus executes the computer program. But it is achieved. In this case, the software read from the storage medium itself realizes the functions of the above embodiments, and the computer program and the computer-readable storage medium storing the computer program constitute the present invention. .

また、前記コンピュータプログラムの実行により上記機能が実現されるだけではない。つまり、そのコンピュータプログラムの指示により、コンピュータ上で稼働するオペレーティングシステム(OS)および/または第一、第二、第三、…のプログラムなどが実際の処理の一部または全部を行い、それによって上記機能が実現される場合も含む。   Further, the above functions are not only realized by the execution of the computer program. That is, according to the instruction of the computer program, the operating system (OS) running on the computer and / or the first, second, third,... This includes cases where functions are realized.

また、前記コンピュータプログラムがコンピュータに接続された機能拡張カードやユニットなどのデバイスのメモリに書き込まれていてもよい。つまり、そのコンピュータプログラムの指示により、第一、第二、第三、…のデバイスのCPUなどが実際の処理の一部または全部を行い、それによって上記機能が実現される場合も含む。   The computer program may be written in a memory of a device such as a function expansion card or unit connected to the computer. That is, the case where the CPU or the like of the first, second, third,... Device performs part or all of the actual processing according to the instruction of the computer program, thereby realizing the above functions.

本発明を前記記憶媒体に適用する場合、その記憶媒体には、先に説明したフローチャートに対応または関連するコンピュータプログラムが格納される。   When the present invention is applied to the storage medium, the storage medium stores a computer program corresponding to or related to the flowchart described above.

sRGB色空間の色再現範囲(色域)を示すxy色度図、xy chromaticity diagram showing the color reproduction range (color gamut) of the sRGB color space, 一般的な色域マッピングを示すフローチャート、Flowchart showing general color gamut mapping; 明度ごとにグレイラインを平行移動した場合の出力色域の変化を示す図、The figure which shows the change of the output color gamut when the gray line is moved in parallel for each brightness. 色域の回転により入出力機器の白を一致させる手法を説明する図、The figure explaining the method of matching the white of the input / output device by rotating the color gamut グレイラインの平行移動における色の再現性悪化を説明する図、The figure explaining the reproducibility deterioration of the color in the parallel movement of the gray line, 色域の回転における色の再現性の悪化を説明する図、The figure explaining the deterioration of the reproducibility of the color in the rotation of the color gamut, 実施例の色処理装置の構成例を示すブロック図、A block diagram showing a configuration example of a color processing apparatus of an embodiment, 色処理装置の動作を説明するフローチャート、A flowchart for explaining the operation of the color processing apparatus; 画像データ保持部が格納する画像データの形式例を示す図、The figure which shows the example of a format of the image data which an image data holding part stores, 色域データ保持部が格納する出力色域データの形式例を示す図、The figure which shows the example of a format of the output gamut data which a gamut data holding part stores. 入力部の処理の詳細を示すフローチャート、A flowchart showing details of processing of the input unit; 基準白色算出部の処理の詳細を示すフローチャート、A flowchart showing details of processing of the reference white calculation unit, 色知覚空間値算出部の処理の詳細を示すフローチャート、A flowchart showing details of processing of a color perception space value calculation unit; 色域マッピング部の処理の詳細を示すフローチャート、A flowchart showing details of processing of the color gamut mapping unit; 色域の内外判定を説明する図、The figure explaining the inside / outside judgment of a color gamut, 実施例2の色処理装置の動作を説明するフローチャート、Flowchart for explaining the operation of the color processing apparatus of Example 2, ユーザインタフェイスの一例を示す図、The figure which shows an example of the user interface, 実施例3の色処理装置の構成例を示すブロック図、Block diagram showing a configuration example of a color processing apparatus of Example 3, 色処理装置の動作を説明するフローチャート、A flowchart for explaining the operation of the color processing apparatus; 基準白色算出部の処理の詳細を示すフローチャートである。It is a flowchart which shows the detail of a process of a reference | standard white calculation part.

Claims (8)

画像出力機器によって出力される画像を観察する際の観察光源の光源データ、および、前記画像出力機器の入力データの範囲を格子状に分割した各格子点に対応し、前記画像出力機器の出力色域の色値を示す色域データを入力する入力手段と、
前記光源データが示す白色点と前記色域データが示す白色に基づき、前記色域データの格子点ごとに基準白色を計算する白色算出手段と、
前記格子点ごとの基準白色を用いて、前記格子点に対応する色値から色知覚空間の色値を計算する色値算出手段と、
前記色値算出手段が計算した色知覚空間の色値に基づき、色域マッピングを行うマッピング手段とを有することを特徴とする色処理装置。
Corresponding to the light source data of the observation light source when observing the image output by the image output device , and each grid point obtained by dividing the range of the input data of the image output device into a grid shape, the output color of the image output device Input means for inputting color gamut data indicating the color value of the color gamut;
Based on the white point indicated by the light source data and the white color indicated by the color gamut data, white calculation means for calculating a reference white for each grid point of the color gamut data;
A color value calculation means for calculating a color value of a color perception space from a color value corresponding to the grid point using a reference white color for each grid point;
A color processing apparatus comprising: mapping means for performing color gamut mapping based on the color value of the color perception space calculated by the color value calculation means.
前記色域データが示す白色は紙白であることを特徴とする請求項1に記載された色処理装置。 2. The color processing apparatus according to claim 1, wherein the white color indicated by the color gamut data is paper white. 前記白色算出手段は、前記白色点の色値と前記紙白の色値を色度値に変換し、前記白色点の色度値と前記紙白の色度値を加重平均した色度値から前記基準白色を計算することを特徴とする請求項2に記載された色処理装置。   The white calculation means converts the color value of the white point and the color value of the paper white into a chromaticity value, and calculates a chromaticity value obtained by weighted averaging the chromaticity value of the white point and the chromaticity value of the paper white. 3. The color processing apparatus according to claim 2, wherein the reference white is calculated. 前記白色算出手段は、前記白色点の色値と前記紙白の色値を色度値に変換し、前記白色点の色度値と前記紙白の色度値から最短距離にある黒体放射軌跡上の二点の色度値を加重平均した色度値から前記基準白色を計算することを特徴とする請求項2に記載された色処理装置。   The white calculation means converts the color value of the white point and the color value of the paper white into a chromaticity value, and emits a black body radiation at a shortest distance from the chromaticity value of the white point and the chromaticity value of the paper white. 3. The color processing apparatus according to claim 2, wherein the reference white color is calculated from a chromaticity value obtained by weighted averaging of chromaticity values at two points on the locus. さらに、前記加重平均の重みを設定する設定手段を有することを特徴とする請求項3または請求項4に記載された色処理装置。   5. The color processing apparatus according to claim 3, further comprising setting means for setting a weight of the weighted average. さらに、前記加重平均の重みが更新された場合に、前記色値算出手段が計算した色知覚空間の色値に基づく色域を表示する表示手段を有することを特徴とする請求項5に記載された色処理装置。   6. The display device according to claim 5, further comprising display means for displaying a color gamut based on a color value of the color perception space calculated by the color value calculation means when the weighted average weight is updated. Color processing device. 画像出力機器によって出力される画像を観察する際の観察光源の光源データ、および、前記画像出力機器の入力データの範囲を格子状に分割した各格子点に対応し、前記画像出力機器の出力色域の色値を示す色域データを入力し、
前記光源データが示す白色点と前記色域データが示す白色に基づき、前記色域データの格子点ごとに基準白色を計算し、
前記格子点ごとの基準白色を用いて、前記格子点に対応する色値から色知覚空間の色値を計算し、
前記計算された色知覚空間の色値に基づき、色域マッピングを行うことを特徴とする色処理方法。
Corresponding to the light source data of the observation light source when observing the image output by the image output device , and each grid point obtained by dividing the range of the input data of the image output device into a grid shape, the output color of the image output device Enter the color gamut data indicating the color value of the gamut,
Based on the white point indicated by the light source data and the white color indicated by the gamut data, a reference white is calculated for each grid point of the gamut data,
Using the reference white color for each grid point , the color value of the color perception space is calculated from the color value corresponding to the grid point,
A color processing method comprising performing color gamut mapping based on the calculated color value of the color perception space.
コンピュータを請求項1から請求項6の何れか一項に記載された色処理装置の各手段として機能させるためのプログラム。 A program for causing a computer to function as each unit of the color processing device according to any one of claims 1 to 6.
JP2007117625A 2007-04-26 2007-04-26 Color processing apparatus and method Expired - Fee Related JP4996320B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007117625A JP4996320B2 (en) 2007-04-26 2007-04-26 Color processing apparatus and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007117625A JP4996320B2 (en) 2007-04-26 2007-04-26 Color processing apparatus and method

Publications (2)

Publication Number Publication Date
JP2008278057A JP2008278057A (en) 2008-11-13
JP4996320B2 true JP4996320B2 (en) 2012-08-08

Family

ID=40055517

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007117625A Expired - Fee Related JP4996320B2 (en) 2007-04-26 2007-04-26 Color processing apparatus and method

Country Status (1)

Country Link
JP (1) JP4996320B2 (en)

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3412996B2 (en) * 1995-12-28 2003-06-03 キヤノン株式会社 Image processing apparatus and method
JP3740223B2 (en) * 1996-09-17 2006-02-01 キヤノン株式会社 Image processing apparatus and method
JP4255526B2 (en) * 1997-11-06 2009-04-15 ソニー株式会社 Image processing apparatus and method, and transmission medium
JP2004200938A (en) * 2002-12-17 2004-07-15 Canon Inc Image processor and image processing method
JP2007074299A (en) * 2005-09-06 2007-03-22 Sony Corp Method, device, and program for image processing, as well as imaging apparatus, imaging method, and imaging program
JP2007329770A (en) * 2006-06-08 2007-12-20 Canon Inc Apparatus and method for processing image

Also Published As

Publication number Publication date
JP2008278057A (en) 2008-11-13

Similar Documents

Publication Publication Date Title
JP4757078B2 (en) Color processing method and apparatus
JP2008028679A (en) Color conversion table, and method and device for generating the same
US20030053088A1 (en) Image processing apparatus, image processing method, and storage medium
JP2007274584A (en) Color processing method and device thereof
JP2007074414A (en) Color processing method and its device
JP2008141237A (en) Color processing apparatus and its method
JP5025323B2 (en) Color processing apparatus and method
JP5709062B2 (en) Image processing device
JP2008118447A (en) Image forming apparatus, image forming method, and its program
JP4996320B2 (en) Color processing apparatus and method
JP4321586B2 (en) Color conversion condition setting method for image forming apparatus, image forming apparatus, and program
JP2006173825A (en) Image processing apparatus and method thereof
JP2011205467A (en) Color processing apparatus, and program
JP2010050832A (en) Device and method for processing image, program, and recording medium
JP5206428B2 (en) Color processing apparatus and program
JP2006254369A (en) Color processing method and device thereof
JP2008236083A (en) Image processor, color conversion method, color conversion table preparation method, program and storage medium
JP5112234B2 (en) Image processing apparatus, image processing method, program, and recording medium
JP5078719B2 (en) Color processing apparatus and method
JP2005094565A (en) Image processor and image forming apparatus
JP4721419B2 (en) Image processing apparatus, control method therefor, and computer program
JP5093133B2 (en) Color conversion apparatus, color conversion method, and color conversion program
JP2023007803A (en) Information processing device, information processing method and program
JP4970419B2 (en) Image processing device
JP2005130274A (en) Image processing apparatus and method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20100426

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20110920

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20110926

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20111124

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20120413

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20120511

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

Free format text: PAYMENT UNTIL: 20150518

Year of fee payment: 3

R151 Written notification of patent or utility model registration

Ref document number: 4996320

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

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

Free format text: PAYMENT UNTIL: 20150518

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees