JP2011087018A - Color processor, and method therefor - Google Patents

Color processor, and method therefor Download PDF

Info

Publication number
JP2011087018A
JP2011087018A JP2009236688A JP2009236688A JP2011087018A JP 2011087018 A JP2011087018 A JP 2011087018A JP 2009236688 A JP2009236688 A JP 2009236688A JP 2009236688 A JP2009236688 A JP 2009236688A JP 2011087018 A JP2011087018 A JP 2011087018A
Authority
JP
Japan
Prior art keywords
color
image
light source
observation light
article
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
JP2009236688A
Other languages
Japanese (ja)
Inventor
Takahiro Suzuki
隆広 鈴木
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 JP2009236688A priority Critical patent/JP2011087018A/en
Publication of JP2011087018A publication Critical patent/JP2011087018A/en
Withdrawn legal-status Critical Current

Links

Images

Landscapes

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

Abstract

<P>PROBLEM TO BE SOLVED: To generate an image under an arbitrary observation light source of an article represented as a color-adjusted image. <P>SOLUTION: The image and the observation light source are set (S11), the color of the image is adjusted (S13-S15), the spectral data of the article represented as the color-adjusted image are calculated (S17, S18), and the image of the article is generated on the basis of the calculated spectral data and the set observation light source (S19, S20). <P>COPYRIGHT: (C)2011,JPO&INPIT

Description

本発明は、観察光源下における物品の知覚色を推定する色処理に関する。   The present invention relates to color processing for estimating the perceived color of an article under an observation light source.

商品のデザインは、コンピュータ機器(PC)上で稼働するコンピュータグラフィクス(CG)ソフトウェアを用いて行われる。そして、デザインした商品の色に対応する材料や塗料が選定される。商品が特定の光源で観察されるものではない点を考慮すると、分光的なカラーデザインが必要になる。しかし、分光分布に基づきカラーデザインを行うのは困難であり、一般には、sRGBやCIELABの色空間と特定の光源を組み合わせたカラーデザインが行われている。   Product design is performed using computer graphics (CG) software running on computer equipment (PC). Then, a material or paint corresponding to the color of the designed product is selected. Considering that the product is not observed with a specific light source, a spectroscopic color design is required. However, it is difficult to perform color design based on the spectral distribution. Generally, color design combining sRGB or CIELAB color spaces and specific light sources is performed.

特定の光源下でデザインしたRGB値やLab値に対応する材料や塗料を選定した場合、光源が異なれば、想定とは異なる色として知覚される。これを回避するために、複数の光源下における知覚色を考慮してカラーデザインを行うことも可能であるが、複数の光源下におけるRGB値やLab値に対応する材料や塗料び選定は困難である。   When materials or paints corresponding to RGB values or Lab values designed under a specific light source are selected, if the light source is different, it is perceived as a color different from the assumed color. In order to avoid this, it is possible to design the color in consideration of perceived colors under multiple light sources, but it is difficult to select materials and paints corresponding to RGB values and Lab values under multiple light sources. is there.

特許文献1は、分光反射率画像を一旦CIELAB空間に変換、CIELAB空間上でレタッチし、分光反射率に逆変換する技術を開示する。ただし、分光反射率への逆変換は、三次元(XYZ値)から一次元(分光値)への変換であり、一意に解が定まらない。そこで、特許文献1は、レタッチ前の原画像の分光反射率に近い値を逆変換の解として出力する。   Patent Document 1 discloses a technique for once converting a spectral reflectance image into a CIELAB space, retouching it in the CIELAB space, and inversely transforming it into a spectral reflectance. However, the inverse conversion to the spectral reflectance is a conversion from three dimensions (XYZ values) to one dimension (spectral values), and the solution is not uniquely determined. Therefore, Patent Document 1 outputs a value close to the spectral reflectance of the original image before retouching as a solution for inverse transformation.

しかし、特許文献1が開示する技術は、他の光源下における知覚色を保証することはできない。また、入力画像として分光反射率画像を必要とするため、既存の商品の色の調整には使えるとしても、商品のデザインを最初から行う場合には適用することができない。   However, the technique disclosed in Patent Document 1 cannot guarantee the perceived color under other light sources. In addition, since a spectral reflectance image is required as an input image, even if it can be used to adjust the color of an existing product, it cannot be applied when designing a product from the beginning.

特開2004-005566号公報JP 2004-005566 A

本発明は、色が調整された画像が表す物品の任意の観察光源下における画像を生成することを目的とする。   An object of the present invention is to generate an image under an arbitrary observation light source of an article represented by a color-adjusted image.

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

本発明にかかる色処理は、画像および観察光源を設定し、前記画像の色を調整し、前記色が調整された画像が表す物品の分光データを算出し、前記算出した分光データと前記設定した観察光源に基づき前記物品の画像を生成することを特徴とする。   The color processing according to the present invention sets an image and an observation light source, adjusts the color of the image, calculates spectral data of an article represented by the color-adjusted image, and sets the calculated spectral data and the setting An image of the article is generated based on an observation light source.

本発明によれば、色が調整された画像が表す物品の任意の観察光源下における画像を生成することができる。   According to the present invention, it is possible to generate an image under an arbitrary observation light source of the article represented by the color-adjusted image.

実施例1の色処理装置の構成例を示すブロック図。1 is a block diagram illustrating a configuration example of a color processing apparatus according to Embodiment 1. FIG. 色処理装置が実行する色処理の一例を示すフローチャート。6 is a flowchart illustrating an example of color processing executed by the color processing apparatus. UI部に表示されるUIの一例を示す図。The figure which shows an example of UI displayed on a UI part. 分光反射率の表示例を示す図。The figure which shows the example of a display of a spectral reflectance. 分光反射率の他の表示例を示す図。The figure which shows the other example of a display of a spectral reflectance. 分光推定部の処理を説明するフローチャート。The flowchart explaining the process of a spectrum estimation part. 色値再計算部の処理を説明するフローチャート。The flowchart explaining the process of a color value recalculation part. 実施例2の色処理装置の構成例を示すブロック図。FIG. 3 is a block diagram illustrating a configuration example of a color processing apparatus according to a second embodiment. 分光推定部の処理を説明するフローチャート。The flowchart explaining the process of a spectrum estimation part. 対応表保持部が保持するテーブルの一例を示す図。The figure which shows an example of the table which a correspondence table holding part hold | maintains.

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

[装置の構成]
図1のブロック図により実施例1の色処理装置11の構成例を説明する。
[Device configuration]
A configuration example of the color processing apparatus 11 according to the first embodiment will be described with reference to the block diagram of FIG.

UI部101は、ユーザが画像ファイルや観察光源を指定(または選択)し、画像の色を調整したりするためのユーザインタフェイス(UI)の表示部である。画像入力部102は、ユーザが指定する画像ファイルを入力するインタフェイスである。画像入力部102は、例えばシリアルバスインタフェイスやネットワークインタフェイスであり、シリアルバスやネットワークに接続された画像入力デバイス、画像記憶デバイス、記憶メディアなどからユーザが指定する画像フィアルを入力する。あるいは、画像入力部102は、カードリーダライタであり、カードリーダライタに挿入されたメモリカードからユーザが指定する画像フィアルを入力する。   The UI unit 101 is a user interface (UI) display unit that allows the user to specify (or select) an image file or an observation light source and adjust the color of the image. The image input unit 102 is an interface for inputting an image file designated by the user. The image input unit 102 is, for example, a serial bus interface or a network interface, and inputs an image file designated by the user from an image input device, an image storage device, a storage medium, or the like connected to the serial bus or the network. Alternatively, the image input unit 102 is a card reader / writer, and inputs an image file designated by the user from a memory card inserted into the card reader / writer.

光源情報記憶部103は、各種の観察光源の光源情報を記憶し、ユーザが指定する観察光源に対応する光源情報を出力する。色調整部105は、ユーザが設定した調整値を取得する。分光推定部106は、調整値に対応する分光反射率を推定する。表示部104は、分光推定部106が推定した分光反射率を表示する。色値再計算部107は、分光推定部106が推定した分光反射率から色値を再計算する。   The light source information storage unit 103 stores light source information of various observation light sources, and outputs light source information corresponding to the observation light sources specified by the user. The color adjustment unit 105 acquires an adjustment value set by the user. The spectral estimation unit 106 estimates the spectral reflectance corresponding to the adjustment value. The display unit 104 displays the spectral reflectance estimated by the spectral estimation unit 106. The color value recalculator 107 recalculates the color value from the spectral reflectance estimated by the spectral estimator 106.

マトリクス保持部108は、分光推定部106が色値から分光反射率を推定するためのマトリクスを保持する不揮発性メモリである。バッファメモリ109は、処理途中の演算結果を一時保存する例えばRAMのようなメモリである。また、上記の各構成は、システムバス110を介して相互に接続されている。   The matrix holding unit 108 is a non-volatile memory that holds a matrix for the spectral estimation unit 106 to estimate the spectral reflectance from the color value. The buffer memory 109 is a memory such as a RAM that temporarily stores calculation results during processing. The above-described components are connected to each other via a system bus 110.

[色処理]
図2のフローチャートにより色処理装置11が実行する色処理の一例を説明する。
[Color processing]
An example of color processing executed by the color processing apparatus 11 will be described with reference to the flowchart of FIG.

色処理装置11は、UI部101に、ユーザが画像ファイルや観察光源を指定したり、画像の色調整を行うためのUIを表示する(S11)。UI部101によって画像ファイルと光源が指示され、「画像表示」ボタン1003が押されると(S12)、色処理装置11は、画像入力部102によって画像ファイルを入力する(S13)。そして、指定された光源の光源情報を光源情報記憶部103から読み出して(S14)、画像ファイルの原画像に光源に対応した色変換を施した画像をUIに表示する(S15)。   The color processing apparatus 11 displays on the UI unit 101 a UI for the user to specify an image file and an observation light source and to perform color adjustment of the image (S11). When an image file and a light source are instructed by the UI unit 101 and the “image display” button 1003 is pressed (S12), the color processing apparatus 11 inputs the image file by the image input unit 102 (S13). Then, the light source information of the designated light source is read from the light source information storage unit 103 (S14), and an image obtained by performing color conversion corresponding to the light source on the original image of the image file is displayed on the UI (S15).

図3によりUI部101に表示されるUIの一例を説明するが、光源として代表的な蛍光灯光源である高演色3000K、三波長5000K、普通形6500Kの三種類が選択された例を示している。   An example of the UI displayed on the UI unit 101 will be described with reference to FIG. 3, and an example in which three types of high color rendering 3000K, three wavelengths 5000K, and ordinary 6500K, which are typical fluorescent light sources, are selected as light sources is shown. Yes.

画像ファイル名入力部1001は、ユーザが色調整する前の原画像、例えば商品(物品)の設計画像(または撮影画像)のファイル名の入力(または選択)欄である。観察光源選択部1002は、色調整対象の物品の観察光源を選択するためのチェックボックスを備え、複数の光源を選択可能である。「画像表示」ボタン1003は、画像入力部102が入力した画像ファイルが示す画像を、選択した観察光源の数分、表示させるためのボタンである。   The image file name input unit 1001 is a field for inputting (or selecting) a file name of an original image before the user performs color adjustment, for example, a design image (or photographed image) of a product (article). The observation light source selection unit 1002 includes a check box for selecting an observation light source of the color adjustment target article, and can select a plurality of light sources. An “image display” button 1003 is a button for displaying the image indicated by the image file input by the image input unit 102 by the number of selected observation light sources.

「画像表示」ボタン1003が押されると、色処理装置11は、選択された観察光源の数分の、光源に対応した色変換を原画像に施した画像を画像表示部1004に表示する。ユーザは、画像表示部1004それぞれに備わるRGB値の各スライダ(画像調整部1005)を操作して、原画像のRGB値それぞれを例えば-50〜+50%の間で任意に調整することができる。R値を+10%にするとは、原画像のある画素の画素値、例えばRGB=(80, 50, 40)を(88, 50, 40)に変更することを意味する。なお、変更後の値が0未満または255超になる場合は、0または255に制限される。   When an “image display” button 1003 is pressed, the color processing apparatus 11 displays on the image display unit 1004 an image obtained by performing color conversion corresponding to the light source on the original image for the number of selected observation light sources. The user can arbitrarily adjust each RGB value of the original image, for example, between −50% and + 50% by operating each slider (image adjustment unit 1005) of the RGB value provided in each of the image display units 1004. . Setting the R value to + 10% means changing a pixel value of a certain pixel of the original image, for example, RGB = (80, 50, 40) to (88, 50, 40). If the value after change is less than 0 or greater than 255, it is limited to 0 or 255.

「分光推定」ボタン1006は、色調整後の画像の分光反射率の推定を指示するためのボタンである。「分光推定」ボタン1006が押されると、詳細は後述するが、推定された分光反射率に基づき各観察光源に応じた色値が再計算され、再表示部1007に色調整後の物品の画像が表示される。   A “spectral estimation” button 1006 is a button for instructing estimation of spectral reflectance of an image after color adjustment. When the “spectral estimation” button 1006 is pressed, the color value corresponding to each observation light source is recalculated based on the estimated spectral reflectance, and the image of the article after color adjustment is displayed in the redisplay unit 1007, as will be described in detail later. Is displayed.

ユーザは、画像表示部1004に表示された色調整前の画像と再表示部1007に表示された色調整後の画像の比較、並びに、再表示部1007に表示された色調整後の画像同士の比較により、期待どおりの色か否か、適切な色か否かなどを判定する。色調整後の物品の画像の色が期待どおりではない、または、適切ではない場合、ユーザは「再調整」ボタン1008を押して色の再調整を指示する。また、色調整後の物品の画像の色が期待どおりであり、適切な場合、ユーザは「出力」ボタン1009を押して、推定された分光反射率の出力を指示する。   The user compares the image before color adjustment displayed on the image display unit 1004 with the image after color adjustment displayed on the redisplay unit 1007, and compares the images after color adjustment displayed on the redisplay unit 1007. By comparison, it is determined whether or not the color is as expected or appropriate. If the color of the image of the article after color adjustment is not as expected or appropriate, the user presses the “Readjust” button 1008 to instruct the color readjustment. In addition, when the color of the image of the article after color adjustment is as expected and appropriate, the user presses an “output” button 1009 to instruct the output of the estimated spectral reflectance.

色処理装置11は、「分光推定」ボタン1006が押されると(S16)、色調整部105により各観察光源に対する調整値に基づき原画像のRGB値を調整する(S17)。そして、分光推定部106により、詳細は後述するが、調整後の画像が示す物品の分光反射率を推定する(S18)。そして、色値再計算部107により、詳細は後述するが、推定した分光反射率と各観察光源の光源情報に基づき各観察光源下の色値を計算する(S19)。そして、再計算した色値に基づき、再表示部1007に色調整後の画像を表示する(S20)。   When the “spectral estimation” button 1006 is pressed (S16), the color processing apparatus 11 adjusts the RGB value of the original image based on the adjustment value for each observation light source by the color adjustment unit 105 (S17). Then, as will be described in detail later, the spectral estimation unit 106 estimates the spectral reflectance of the article indicated by the adjusted image (S18). Then, the color value recalculation unit 107 calculates the color value under each observation light source based on the estimated spectral reflectance and the light source information of each observation light source, as will be described in detail later (S19). Then, based on the recalculated color value, the image after color adjustment is displayed on the redisplay unit 1007 (S20).

次に、色処理装置11は、「再調整」ボタン1008が押されたか否かの判定(S21)、「出力」ボタン1009が押されたか否かの判定(S22)を繰り返す。「再調整」ボタン1008が押されると処理をステップS17に戻し、「出力」ボタン1009が押されると、表示部104により、推定した分光反射率を表示する(S23)。   Next, the color processing apparatus 11 repeats the determination whether the “readjustment” button 1008 has been pressed (S21) and the determination whether the “output” button 1009 has been pressed (S22). When the “readjustment” button 1008 is pressed, the process returns to step S17, and when the “output” button 1009 is pressed, the estimated spectral reflectance is displayed on the display unit 104 (S23).

分光反射率の表示は、画像の予め定められた領域の分光反射率の平均値を、例えば、図4に示すようにグラフ表示してもよいし、図5に示すように各波長に対する反射率としてリストしてもよい。また、表示形態は、モニタ表示またはプリンタによる印刷でもよいし、データファイルとして記録媒体などに保存してもよい。また、分光反射率の表示対象領域を再表示部1007に示し、図には示さないポインティングデバイスによって表示対象領域を移動できるようにしてもよい。この場合、色処理装置11は、表示対象領域の移動にともない表示部104の表示を更新する。   For the spectral reflectance display, the average value of the spectral reflectance of a predetermined region of the image may be displayed in a graph as shown in FIG. 4, for example, or the reflectance for each wavelength as shown in FIG. May be listed as The display form may be a monitor display or printing by a printer, or may be stored as a data file on a recording medium. Further, the display area of the spectral reflectance may be displayed on the re-display unit 1007 so that the display area can be moved by a pointing device not shown in the drawing. In this case, the color processing apparatus 11 updates the display on the display unit 104 as the display target area moves.

[分光推定部]
図6のフローチャートにより分光推定部106の処理を説明する。
[Spectral Estimator]
The processing of the spectral estimation unit 106 will be described with reference to the flowchart of FIG.

分光推定部106は、バッファメモリ109に格納された調整後の画像と観察光源の光源情報を取得し(S81)、取得した画像のRGB値をCIEXYZ値に変換する(S82)。RGB値がIEC61966-2-1で規定されるsRGB色空間の色値であるとすると、下式の変換マトリクスを用いてXYZ値に変換する。
┌ ┐ ┌ ┐┌ ┐
│X│ │0.4124 0.3576 0.1805││R│
│Y│=│0.2126 0.7152 0.0722││G│ …(1)
│Z│ │0.0193 0.1192 0.9505││B│
└ ┘ └ ┘└ ┘
The spectral estimation unit 106 acquires the adjusted image and the light source information of the observation light source stored in the buffer memory 109 (S81), and converts the RGB value of the acquired image into a CIEXYZ value (S82). If the RGB value is a color value in the sRGB color space defined by IEC61966-2-1, it is converted into an XYZ value using the following conversion matrix.
┌ ┐ ┌ ┐┌ ┐
│X│ │0.4124 0.3576 0.1805││R│
│Y│ = │0.2126 0.7152 0.0722││G│… (1)
│Z│ │0.0193 0.1192 0.9505││B│
└ ┘ └ ┘└ ┘

次に、分光推定部106は、マトリクス保持部108から、指定された観察光源の組み合わせに対応する変換マトリクスGを取得する(S83)。変換マトリクスGは、複数光源下のXYZ値から分光反射率を推定するマトリクスである。図3に一例を示すUIのように、複数種類の光源から観察光源を複数選択することができる。マトリクス保持部108には、複数種類の光源の任意の組み合わせそれぞれに対応する変換マトリクスGを保持する。例えば、観察光源として高演色3000K、三波長5000K、普通形6500Kが指定された場合、当該三種の光源の組み合わせに対応する変換マトリクスGが取得される。本実施例における変換マトリクスGを下式に示す。
┌ ┐
│g1,1 … g1,9
│g2,1 … g2,9
G =│ : : : │ …(2)
│g35,1 … g35,9
│g36,1 … g36,9
└ ┘
Next, the spectral estimation unit 106 acquires a conversion matrix G corresponding to the designated combination of observation light sources from the matrix holding unit 108 (S83). The conversion matrix G is a matrix for estimating the spectral reflectance from the XYZ values under a plurality of light sources. As in the UI shown in FIG. 3 as an example, a plurality of observation light sources can be selected from a plurality of types of light sources. The matrix holding unit 108 holds a conversion matrix G corresponding to each arbitrary combination of a plurality of types of light sources. For example, when high color rendering 3000K, three wavelengths 5000K, and normal 6500K are designated as the observation light source, a conversion matrix G corresponding to the combination of the three types of light sources is acquired. The conversion matrix G in the present embodiment is shown in the following equation.
┌ ┐
│g 1,1 … g 1,9
│g 2,1 … g 2,9
G = │::: │… (2)
│g 35,1 ... g 35,9
│g 36,1 … g 36,9
└ ┘

変換マトリクスGの作成方法は後述するが、式(2)に一例を示すように、三種類の光源に対応する変換マトリクスGは、三種類の光源下におけるXYZ値を可視範囲(380〜730nm)の10nmピッチの分光反射率に変換する36×9のマトリクスである。なお、光源の種類が二つの場合は36×6、五つの場合は36×15のマトリクスになる。   The creation method of the conversion matrix G will be described later. As shown in an example in the equation (2), the conversion matrix G corresponding to the three types of light sources can display the XYZ values under the three types of light sources in the visible range (380 to 730 nm). This is a 36 × 9 matrix that converts to a spectral reflectance of 10 nm pitch. When there are two types of light sources, the matrix is 36 × 6, and when there are five types, the matrix is 36 × 15.

分光推定部106は、下式に示すように、取得した変換マトリクスGを用いてXYZ値を分光反射率に変換し(S84)、分光反射率をバッファメモリ109に保存する(S85)。   As shown in the following equation, the spectral estimation unit 106 converts the XYZ values into spectral reflectances using the acquired conversion matrix G (S84), and stores the spectral reflectances in the buffer memory 109 (S85).

色変換後の画像の全画素についてRGB値からXYZ値への変換、XYZ値から分光反射率への変換を行えば、分光反射率で表される画像を得ることができる。しかし、原画像のサイズが大きい場合、全画素の分光反射率を計算するのは演算負荷、メモリの使用量が増大する。その場合、原画像の縮小画像を作成して、画像表示部1004に縮小画像を表示し、縮小画像の一画素ごとに分光反射率を計算して再表示部1007の色調整後の画像を表示すれば、演算負荷、メモリ使用量を抑制することができる。
┌ ┐ ┌ ┐
│r380│ │Xbb│
│r390│ │Ybb│
│r400│ │Zbb│
│ : │ │Xtb│
│r550│ = G│Ytb│ …(3)
│ : │ │Ztb│
│r710│ │Xn│
│r720│ │Yn│
│r730│ │Zn│
└ ┘ └ ┘
ここで、(Xbb, Ybb, Zbb)は高演色形蛍光灯光源下のXYZ値、
(Xtb, Ytb, Ztb)は三波長形蛍光灯光源下のXYZ値、
(Xn, Yn, Zn)は普通形蛍光灯光源下のXYZ値。
If all the pixels of the image after color conversion are converted from RGB values to XYZ values, and from XYZ values to spectral reflectances, an image represented by spectral reflectances can be obtained. However, when the size of the original image is large, calculating the spectral reflectance of all pixels increases the calculation load and the amount of memory used. In that case, create a reduced image of the original image, display the reduced image on the image display unit 1004, calculate the spectral reflectance for each pixel of the reduced image, and display the image after color adjustment of the redisplay unit 1007 By doing so, it is possible to reduce the computation load and the memory usage.
┌ ┐ ┌ ┐
│r 380 │ │Xbb│
│r 390 │ │Ybb│
│r 400 │ │Zbb│
│ │ │ │Xtb│
│r 550 │ = G│Ytb│… (3)
│ : │ │Ztb│
│r 710 │ │Xn│
│r 720 │ │Yn│
│r 730 │ │Zn│
└ ┘ └ ┘
Where (Xbb, Ybb, Zbb) is the XYZ value under the high color rendering fluorescent light source,
(Xtb, Ytb, Ztb) is the XYZ value under the three-wavelength fluorescent light source,
(Xn, Yn, Zn) is the XYZ value under a normal fluorescent light source.

●変換マトリクスの作成方法
次に、CIXYZ値から分光反射率を推定するための変換マトリクスGの作成方法を説明する。
Method for Creating Conversion Matrix Next, a method for creating the conversion matrix G for estimating the spectral reflectance from the CIXYZ values will be described.

まず、複数の材料(塗料や染料)に対する分光反射率R(λ)を測定または取得する。そして、上記の観察光源の組み合わせに対応する変換マトリクスGを作成する場合は、高演色3000K、三波長5000K、普通形6500Kそれぞれの光源におけるXYZ値を下式により算出する。
X = k∫R(λ)S(λ)x(λ)dλ
Y = k∫R(λ)S(λ)y(λ)dλ …(4)
Z = k∫R(λ)S(λ)z(λ)dλ
ここで、S(λ)は光源の分光放射輝度、
x(λ)y(λ)z(λ)はCIE等色関数、
積分範囲は380〜730mm。
First, the spectral reflectance R (λ) for a plurality of materials (paints and dyes) is measured or acquired. Then, when creating the conversion matrix G corresponding to the combination of the above-mentioned observation light sources, the XYZ values for the light sources of the high color rendering 3000K, the three wavelengths 5000K, and the normal 6500K are calculated by the following equations.
X = k∫R (λ) S (λ) x (λ) dλ
Y = k∫R (λ) S (λ) y (λ) dλ (4)
Z = k∫R (λ) S (λ) z (λ) dλ
Where S (λ) is the spectral radiance of the light source,
x (λ) y (λ) z (λ) is the CIE color matching function,
The integration range is 380-730mm.

複数の材料の分光反射率R(λ)、複数光源下におけるXYZ値、変換マトリクスGの関係は、材料の数がnとすると下式で表すことができる。
o = Gv …(5)
ここで、
┌ ┐
│o380,1 … g380,n
│g390,1 … g390,n
o =│ : : : │
│g720,1 … g720,n
│g730,1 … g730,n
└ ┘
┌ ┐
│Xbb,1 … Xbb,n
│Ybb,1 … Ybb,n
│zbb,1 … zbb,n
│Xtb,1 … Xtb,n
v =│Ytb,1 … Ytb,n
│ztb,1 … ztb,n
│Xn,1 … Xn,n
│Yn,1 … Yn,n
│Zn,1 … Zn,n
└ ┘
The relationship among the spectral reflectances R (λ) of a plurality of materials, the XYZ values under a plurality of light sources, and the conversion matrix G can be expressed by the following equation when the number of materials is n.
o = Gv (5)
here,
┌ ┐
│o 380,1 ... g 380, n
│g 390,1 … g 390, n
o = │::: │
│g 720,1 … g 720, n
│g 730,1 … g 730, n
└ ┘
┌ ┐
│X bb, 1 … X bb, n
│Y bb, 1 … Y bb, n
│z bb, 1 … z bb, n
│X tb, 1 … X tb, n
v = │Y tb, 1 … Y tb, n
│z tb, 1 … z tb, n
│X n, 1 … X n, n
│Y n, 1 … Y n, n
│Z n, 1 … Z n, n
└ ┘

従って、変換マトリクスGは、例えば、最小自乗法を用いて下式により求めることができる。なお、マトリクスGを求める方法として、例えば、ニュートン法やDLS (dumped least square)法などを用いてもよい。
G = ovT(vvT)-1 …(6)
ここで、Tは転置行列を表す。
Therefore, the conversion matrix G can be obtained by the following equation using, for example, the least square method. As a method for obtaining the matrix G, for example, a Newton method or a DLS (dumped least square) method may be used.
G = ov T (vv T ) -1 … (6)
Here, T represents a transposed matrix.

このようにして作成した光源の任意の組み合わせに対応する変換マトリクスGをマトリクス保持部108に保存する。   The conversion matrix G corresponding to any combination of the light sources created in this way is stored in the matrix holding unit 108.

[色値再計算部]
図7のフローチャートにより色値再計算部107の処理を説明する。
[Color value recalculation section]
The processing of the color value recalculation unit 107 will be described with reference to the flowchart of FIG.

色値再計算部107は、バッファメモリ109から、観察光源の光源情報を取得し(S91)、推定された分光反射率を取得する(S92)。そして、光源情報に基づき分光反射率から各画素のXYZ値を算出して、指定された光源下のXYZ画像を生成する(S93)。XYZ値の算出には、上述した式(4)を用いる。   The color value recalculation unit 107 acquires the light source information of the observation light source from the buffer memory 109 (S91), and acquires the estimated spectral reflectance (S92). Then, the XYZ values of each pixel are calculated from the spectral reflectance based on the light source information, and an XYZ image under the designated light source is generated (S93). For the calculation of the XYZ values, the above-described equation (4) is used.

次に、色値再計算部107は、下式により、XYZ画像をRGB画像に変換し(S94)、指定された光源に対応するRGB画像をバッファメモリ109に保存する(S95)。
┌ ┐ ┌ ┐┌ ┐
│R│ │ 3.2406 -1.5372 -0.4986││X│
│G│=│-0.9689 1.8758 0.0415││Y│ …(7)
│B│ │ 0.0557 -0.2040 1.0570││Z│
└ ┘ └ ┘└ ┘
Next, the color value recalculation unit 107 converts the XYZ image into an RGB image using the following equation (S94), and stores the RGB image corresponding to the designated light source in the buffer memory 109 (S95).
┌ ┐ ┌ ┐┌ ┐
│R│ │ 3.2406 -1.5372 -0.4986││X│
│G│ = │-0.9689 1.8758 0.0415││Y│… (7)
│B│ │ 0.0557 -0.2040 1.0570││Z│
└ ┘ └ ┘└ ┘

このように、色調整後の画像に対応する物品の分光反射率を推定し、指定の光源下における色調整前の画像と色調整後の画像を並べて表示する。ユーザは、両画像を参照して、指定の光源下における色調整後の物品の知覚色が期待どおりか否か、適切か否かを容易に判断することができる。   Thus, the spectral reflectance of the article corresponding to the image after color adjustment is estimated, and the image before color adjustment and the image after color adjustment under a designated light source are displayed side by side. The user can easily determine whether the perceived color of the article after color adjustment under a designated light source is as expected or appropriate by referring to both images.

さらに、複数の観察光源下における色調整前後の物品の画像を並べて表示する。ユーザは、複数の観察光源下において、色調整前後の物品の色がどのように知覚されるかを把握することができ、物品の色が期待どおりか否か、適切か否かを容易に判断することができる。   Further, images of articles before and after color adjustment under a plurality of observation light sources are displayed side by side. The user can grasp how the color of the article before and after color adjustment is perceived under a plurality of observation light sources, and easily determine whether the color of the article is as expected or appropriate. can do.

また、色調整後の分光反射率を表示するので、ユーザは、その分光反射率に合った材料を適切に選択することができる。つまり、CGなどによりデザインした色に対する材料の選定に有用である。   Further, since the spectral reflectance after color adjustment is displayed, the user can appropriately select a material suitable for the spectral reflectance. In other words, it is useful for selecting materials for colors designed by CG.

以下、本発明にかかる実施例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.

図8のブロック図により実施例2の色処理装置11の構成例を説明する。実施例2の色処理装置11は、実施例1の色処理装置11のマトリクス保持部108の代わりに対応表保持部111を備える。対応表保持部111は、所定の観察光源下におけるRGB値に対応する分光反射率をテーブルとして保持する。また、実施例2の色処理装置11は、分光推定部106による色調整後の画像が示す物品の分光反射率の推定(S18)が異なる点で、実施例1の動作と異なる。   A configuration example of the color processing apparatus 11 according to the second embodiment will be described with reference to the block diagram of FIG. The color processing apparatus 11 according to the second embodiment includes a correspondence table holding unit 111 instead of the matrix holding unit 108 of the color processing apparatus 11 according to the first embodiment. The correspondence table holding unit 111 holds spectral reflectances corresponding to RGB values under a predetermined observation light source as a table. The color processing apparatus 11 of the second embodiment is different from the operation of the first embodiment in that the spectral reflectance estimation (S18) of the article indicated by the image after color adjustment by the spectral estimation unit 106 is different.

図9のフローチャートにより分光推定部106の処理を説明する。分光推定部106は、バッファメモリ109に格納された調整後の画像と観察光源の光源情報を取得し(S281)、取得した画像のRGB値をXYZ値に変換する(S282)。RGB値がIEC61966-2-1で規定されるsRGB色空間の色値であるとすると、式(1)の変換マトリクスを用いてXYZ値に変換する。   The processing of the spectral estimation unit 106 will be described with reference to the flowchart of FIG. The spectral estimation unit 106 acquires the adjusted image and the light source information of the observation light source stored in the buffer memory 109 (S281), and converts the RGB value of the acquired image into an XYZ value (S282). If the RGB value is a color value in the sRGB color space defined by IEC61966-2-1, it is converted into an XYZ value using the conversion matrix of Equation (1).

次に、分光推定部106は、対応表保持部111が保持するテーブルから、指定された観察光源下のXYZ値に対応する分光反射率を参照し(S283)、分光反射率同士を比較して、互いに形状が近い分光反射率を観察光源ごとに選択する(S284)。   Next, the spectral estimation unit 106 refers to the spectral reflectance corresponding to the XYZ value under the designated observation light source from the table held by the correspondence table holding unit 111 (S283), and compares the spectral reflectances. Then, spectral reflectances whose shapes are close to each other are selected for each observation light source (S284).

図10により対応表保持部111が保持するテーブルの一例を説明する。テーブルには、所定の観察光源下のXYZ値に対応する複数の材料の分光反射率が記録されている。なお、任意の分光反射率を、式(4)によってXYZ値に変換することでテーブルを作成することができる。例えば、各観察光源下のXYZ値に対応する10種類の材料の分光反射率がテーブルに記録されているとする。分光推定部106は、指定の観察光源において、XYZ値に対する分光反射率が描く曲線(材料の分光反射率特性)の形状を参照して、互いに形状が近い分光反射率特性を観察光源ごとに選択する。なお、形状の判定は、例えば、分光的なユークリッド距離によって判定すればよい。   An example of a table held by the correspondence table holding unit 111 will be described with reference to FIG. In the table, spectral reflectances of a plurality of materials corresponding to XYZ values under a predetermined observation light source are recorded. A table can be created by converting an arbitrary spectral reflectance into an XYZ value according to the equation (4). For example, it is assumed that the spectral reflectances of 10 types of materials corresponding to the XYZ values under each observation light source are recorded in the table. Spectral estimator 106 selects the spectral reflectance characteristics that are close to each other for each observation light source by referring to the shape of the curve (spectral reflectance characteristics of the material) drawn by the spectral reflectance relative to the XYZ values for the specified observation light source. To do. Note that the shape may be determined by, for example, a spectral Euclidean distance.

次に、分光推定部106は、観察光源ごとに選択した分光反射率特性を平均化する(S285)。例えば波長ごとの分光反射率に平均値を計算する。そして、平均化した分光反射率をバッファメモリ109に保存する(S286)。   Next, the spectral estimation unit 106 averages the spectral reflectance characteristics selected for each observation light source (S285). For example, an average value is calculated for the spectral reflectance for each wavelength. Then, the averaged spectral reflectance is stored in the buffer memory 109 (S286).

色変換後の画像の全画素についてRGB値からXYZ値への変換、XYZ値に基づく分光反射率の推定を行えば、分光反射率で表される画像を得ることができる。しかし、実施例1と同様に、原画像のサイズが大きい場合、全画素の分光反射率を計算するのは演算負荷、メモリの使用量が増大する。その場合、原画像の縮小画像を作成して、画像表示部1004に縮小画像を表示し、縮小画像の一画素ごとに分光反射率を計算して再表示部1007の色調整後の画像を表示すれば、演算負荷、メモリ使用量を抑制することができる。   If conversion of RGB values to XYZ values and estimation of spectral reflectance based on XYZ values are performed for all pixels of the image after color conversion, an image represented by spectral reflectance can be obtained. However, as in the first embodiment, when the size of the original image is large, calculating the spectral reflectance of all the pixels increases the calculation load and the memory usage. In that case, create a reduced image of the original image, display the reduced image on the image display unit 1004, calculate the spectral reflectance for each pixel of the reduced image, and display the image after color adjustment of the redisplay unit 1007 By doing so, it is possible to reduce the computation load and the memory usage.

このように、予め、所定の観察光源下のXYZ値と、複数の材料の分光反射率特性の対応関係を保持することで、所定の観察光源下のXYZ値から、当該XYZ値に対応する分光反射率を推定して、色調整後の画像が示す物品の分光反射率を推定することができる。   In this way, by maintaining the correspondence relationship between the XYZ values under a predetermined observation light source and the spectral reflectance characteristics of a plurality of materials in advance, the spectral corresponding to the XYZ value can be obtained from the XYZ values under the predetermined observation light source. By estimating the reflectance, the spectral reflectance of the article indicated by the color-adjusted image can be estimated.

[変形例]
上記の実施例において、一例としてsRGBの画像データを説明した。しかし、画像データはsRGBに限定されるものではなく、例えば、AdobeRGBなど他のRGB空間のデータでもよい。さらに、RGB空間ではなく、CIELAB、CIECAM97、CIECAM02などのカラーアピアランス空間のデータでもよい。
[Modification]
In the above embodiment, sRGB image data has been described as an example. However, the image data is not limited to sRGB, and may be data in other RGB spaces such as AdobeRGB. Furthermore, data of color appearance space such as CIELAB, CIECAM97, and CIECAM02 may be used instead of the RGB space.

また、上記の実施例において、CIE三刺激値(XYZ値)から分光反射率を算出する例を説明した。しかし、例えばRGB値を直接分光反射率に変換してもよい。また、CIELAB、CIECAM97、CIECAM02などのカラーアピアランス空間を使用してもよい。その場合、実施例1における変換マトリクスや実施例2におけるテーブルは、使用する色空間用のものを使用または作成すればよい。   In the above-described embodiment, the example in which the spectral reflectance is calculated from the CIE tristimulus values (XYZ values) has been described. However, for example, RGB values may be directly converted into spectral reflectance. Further, color appearance spaces such as CIELAB, CIECAM97, and CIECAM02 may be used. In that case, the conversion matrix in the first embodiment and the table in the second embodiment may be used or created for the color space to be used.

また、上記の実施例において、観察光源下の原画像に対して、ユーザが色調整を行う例を説明した。しかし、例えば、予め色調整された観察光源下の画像を入力してもよい。また、画像ではなく、RGB値を入力するだけでも構わない。   In the above-described embodiment, an example in which the user performs color adjustment on the original image under the observation light source has been described. However, for example, an image under an observation light source that has been color-adjusted in advance may be input. Also, it is possible to input only RGB values instead of images.

また、実施例1において、XYZ値を分光反射率へ変換する変換マトリクスGをマトリクス保持部108に保持する例を説明した。しかし、例えば、ユーザが指定した観察光源に応じて、分光推定部106が、動的に変換マトリクスGを生成してもよい。この場合、各観察光源の分光放射輝度と、変換マトリクスGを作成するための学習データである複数の分光反射率を別途保持する。   Further, in the first embodiment, the example in which the conversion matrix G for converting the XYZ values into the spectral reflectance is held in the matrix holding unit 108 has been described. However, for example, the spectral estimation unit 106 may dynamically generate the conversion matrix G according to the observation light source designated by the user. In this case, the spectral radiance of each observation light source and a plurality of spectral reflectances which are learning data for creating the conversion matrix G are separately held.

また、上記の実施例において、分光反射率を、可視範囲380〜730nmを10nm単位でサンプリングした36次元のデータとして説明したが、例えば、波長範囲を380〜780nmとしてもよい。また、サンプリング間隔も10nmではなく5nmや1nmでもよい。   In the above embodiment, the spectral reflectance is described as 36-dimensional data obtained by sampling the visible range of 380 to 730 nm in units of 10 nm. However, for example, the wavelength range may be set to 380 to 780 nm. Also, the sampling interval may be 5 nm or 1 nm instead of 10 nm.

また、上記の実施例において、分光反射率を推定する例を説明した。しかし、推定対象は、分光反射率のような分光データに限らず、例えば、分光透過率や分光放射輝度のような分光データでもよい。   In the above-described embodiment, an example in which the spectral reflectance is estimated has been described. However, the estimation target is not limited to spectral data such as spectral reflectance, but may be spectral data such as spectral transmittance and spectral radiance, for example.

また、上記の実施例において、一例として九種類の観察光源を説明した。しかし、これらは光源の代表例であり、観察光源は当該九種類に限られるわけではない。例えば、色温度をさらに細分化して選択可能にしてもよいし、同じ波形タイプの光源であっても例えばD50と、F8蛍光灯のようにさらに細分化して構わない。   In the above-described embodiment, nine types of observation light sources have been described as an example. However, these are representative examples of light sources, and the observation light sources are not limited to the nine types. For example, the color temperature may be further subdivided so that it can be selected, or even light sources of the same waveform type may be further subdivided, for example, D50 and F8 fluorescent lamps.

また、実施例2において、テーブルを用いてXYZ値を分光反射率に変換する例を説明した。このテーブルには、すべてのXYZ値に対応する分光反射率を記録する必要はなく、所定間隔でサンプリングしたXYZ値に対応する分光反射率を記録し、未記録のXYZ値に対応する分光反射率は補間演算によって求めてもよい。   In the second embodiment, the example in which the XYZ values are converted into the spectral reflectance using the table has been described. It is not necessary to record the spectral reflectance corresponding to all the XYZ values in this table, the spectral reflectance corresponding to the XYZ values sampled at a predetermined interval is recorded, and the spectral reflectance corresponding to the unrecorded XYZ values. May be obtained by interpolation calculation.

また、上記の実施例において、推定した分光反射率から色値を再計算し、再表示部1007に画像を表示する例を説明した。しかし、例えば、再計算した色値をそのまま数値表示してもよいし、原画像色値と再計算した色値の差分を表示してもよい。   Further, in the above-described embodiment, an example in which the color value is recalculated from the estimated spectral reflectance and an image is displayed on the redisplay unit 1007 has been described. However, for example, the recalculated color value may be displayed as a numerical value as it is, or the difference between the original image color value and the recalculated color value may be displayed.

[その他の実施例]
また、本発明は、以下の処理を実行することによっても実現される。即ち、上述した実施形態の機能を実現するソフトウェア(プログラム)を、ネットワーク又は各種記憶媒体を介してシステム或いは装置に供給し、そのシステムあるいは装置のコンピュータ(又はCPUやMPU等)がプログラムを読み出して実行する処理である。
[Other Examples]
The present invention can also be realized by executing the following processing. That is, software (program) that realizes the functions of the above-described embodiments is supplied to a system or apparatus via a network or various storage media, and a computer (or CPU, MPU, etc.) of the system or apparatus reads the program. It is a process to be executed.

Claims (8)

画像および観察光源を設定する設定手段と、
前記画像の色を調整するための調整手段と、
前記色が調整された画像が表す物品の分光データを算出する算出手段と、
前記算出した分光データと前記設定した観察光源に基づき前記物品の画像を生成する生成手段とを有することを特徴とする色処理装置。
Setting means for setting an image and an observation light source;
Adjusting means for adjusting the color of the image;
Calculating means for calculating spectroscopic data of an article represented by the color-adjusted image;
A color processing apparatus comprising: a generating unit configured to generate an image of the article based on the calculated spectral data and the set observation light source.
前記生成手段は、前記分光データから前記観察光源の下の物品の知覚色を計算して前記物品の画像を生成することを特徴とする請求項1に記載された色処理装置。   2. The color processing apparatus according to claim 1, wherein the generation unit generates an image of the article by calculating a perceived color of the article under the observation light source from the spectral data. さらに、前記物品の画像の所定の領域の分光データを表示する表示手段を有することを特徴とする請求項1に記載された色処理装置。   2. The color processing apparatus according to claim 1, further comprising display means for displaying spectral data of a predetermined region of the image of the article. 前記設定手段は複数の観察光源の設定が可能であり、前記調整手段は観察光源ごとに色の調整が可能であり、前記算出手段は複数の観察光源の組み合わせに対応する変換マトリクスを用いて前記分光データを算出することを特徴とする請求項1に記載の色処理装置。   The setting means can set a plurality of observation light sources, the adjustment means can adjust the color for each observation light source, and the calculation means uses the conversion matrix corresponding to a combination of the plurality of observation light sources. 2. The color processing apparatus according to claim 1, wherein spectral data is calculated. 前記設定手段は複数の観察光源の設定が可能であり、前記調整手段は観察光源ごとに色の調整が可能であり、前記算出手段は複数の観察光源それぞれの下の色値に対応する分光データを示すテーブルを用いて前記分光データを算出することを特徴とする請求項1に記載の色処理装置。   The setting means can set a plurality of observation light sources, the adjustment means can adjust the color for each observation light source, and the calculation means can perform spectral data corresponding to a color value under each of the plurality of observation light sources. The color processing apparatus according to claim 1, wherein the spectral data is calculated using a table indicating 画像および観察光源を設定する設定ステップと、
前記画像の色を調整するための調整ステップと、
前記色が調整された画像が表す物品の分光データを算出する算出ステップと、
前記算出した分光データと前記設定した観察光源に基づき前記物品の画像を生成する生成ステップとを有することを特徴とする色処理方法。
A setting step for setting an image and an observation light source;
An adjustment step for adjusting the color of the image;
A calculation step of calculating spectral data of the article represented by the color-adjusted image;
A color processing method comprising: a generation step of generating an image of the article based on the calculated spectral data and the set observation light source.
コンピュータ装置を制御して、請求項1から請求項5の何れか一項に記載された色処理装置の各手段として機能させることを特徴とするプログラム。   6. A non-transitory computer-readable storage medium storing a program for controlling a computer device to function as each unit of the color processing device according to claim 1. 請求項7に記載されたプログラムが記録されたことを特徴とするコンピュータが読み取り可能な記録媒体。   8. A computer-readable recording medium on which the program according to claim 7 is recorded.
JP2009236688A 2009-10-13 2009-10-13 Color processor, and method therefor Withdrawn JP2011087018A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009236688A JP2011087018A (en) 2009-10-13 2009-10-13 Color processor, and method therefor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009236688A JP2011087018A (en) 2009-10-13 2009-10-13 Color processor, and method therefor

Publications (1)

Publication Number Publication Date
JP2011087018A true JP2011087018A (en) 2011-04-28

Family

ID=44079666

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009236688A Withdrawn JP2011087018A (en) 2009-10-13 2009-10-13 Color processor, and method therefor

Country Status (1)

Country Link
JP (1) JP2011087018A (en)

Similar Documents

Publication Publication Date Title
JP5188082B2 (en) Method, apparatus and program for creating color conversion definition for image output device
JP2007081586A (en) Image processing unit and image processing method, program thereof, and recording medium
JP2006229452A (en) Method for color processing
KR101314230B1 (en) Image processing apparatus and image processing method thereof
JP2014165656A (en) Color profile generation device, image processing apparatus, image processing system, color profile generation method and program
KR100834766B1 (en) Color management apparatus and method for the same
JP2008278054A (en) Color processing apparatus and its method
JP3805247B2 (en) Image processing apparatus and method
JP4910557B2 (en) Color conversion apparatus, color conversion method, color conversion program, color conversion coefficient creation apparatus, color conversion coefficient creation method, and color conversion coefficient creation program
CN103377640B (en) For regulating method and the computing equipment of dynamic range in cone space model
JP2008271303A (en) Color processing method and apparatus
US20100157334A1 (en) Image processing apparatus, image processing system, image processing method, and medium storing program
JP2004120566A (en) Information processing method
US8081833B2 (en) Color processing apparatus and method to convert spectral information
JP7347165B2 (en) Image display device and image display method
JP4985162B2 (en) Color gamut generation device, color gamut generation program, and color conversion device
JP2011087018A (en) Color processor, and method therefor
JP2009147632A (en) Image processing apparatus and method, program, and recording medium
JP5849549B2 (en) Color processing apparatus and program
JP6053392B2 (en) Color processing apparatus and method
JP4472594B2 (en) Image data color conversion apparatus, color conversion method, and color conversion program
JP2003274202A (en) Method and device for producing color signal conversion table, and method and device for image processing
JP2017017589A (en) Image processing device, image processing method and program
JP2019146019A (en) Profile creation device, profile creation method, and recording medium
JP4472595B2 (en) Image data color conversion apparatus, color conversion method, and color conversion program

Legal Events

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

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20130108