JP2013121155A - Image processing device - Google Patents

Image processing device Download PDF

Info

Publication number
JP2013121155A
JP2013121155A JP2011269533A JP2011269533A JP2013121155A JP 2013121155 A JP2013121155 A JP 2013121155A JP 2011269533 A JP2011269533 A JP 2011269533A JP 2011269533 A JP2011269533 A JP 2011269533A JP 2013121155 A JP2013121155 A JP 2013121155A
Authority
JP
Japan
Prior art keywords
color
value
input
interpolation calculation
reference grid
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.)
Pending
Application number
JP2011269533A
Other languages
Japanese (ja)
Inventor
Seito Kobayashi
聖人 小林
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 JP2011269533A priority Critical patent/JP2013121155A/en
Publication of JP2013121155A publication Critical patent/JP2013121155A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To resolve a problem that a desired value cannot be obtained in the case that a reference lattice point is outside a color gamut of a color space in interpolation calculation using an LUT.SOLUTION: Interpolation calculation is performed, and it is determined whether or not a reference lattice point of a color conversion table used in the interpolation calculation is outside a color gamut. The number of the reference lattice points determined to be inside the color gamut is counted, and it is determined whether or not an input value is present on a line connecting between the reference lattice points. Depending on each determination result, a value of the reference lattice point closest to the input value is acquired, the input value is moved onto the line connecting between the reference lattice points, and two-lattice point interpolation calculation of performing interpolation calculation at two reference lattice points and two-lattice point interpolation calculation in the case that the input value is present on the line are performed. Each result and the input value are compared with each other to select and output a result with the smallest color difference.

Description

本発明は、色変換を行うための画像処理装置及び画像処理方法に関し、特に色変換テーブルを用いて処理を行う技術に関する。   The present invention relates to an image processing apparatus and an image processing method for performing color conversion, and more particularly to a technique for performing processing using a color conversion table.

カラー画像信号に対する処理として、色変換処理がある。例えばsRGBデータ等の入力デバイスに依存する入力データは、入力プロファイルによりデバイスに依存しない色空間(例えばXYZ等)データに変換される。出力デバイスの色再現範囲外の色は出力デバイスにより表現することができないため、そのすべての色が出力デバイスの色再現範囲内に収まるように、デバイスに依存しない色空間のデータに変換された入力データに色空間圧縮が施される。そして、色空間圧縮が施された後、入力データはデバイスに依存しない色空間から出力デバイスに依存する色空間(例えばCMYKデータ)へ変換される。入力デバイスとしては、例えば、スキャナやデジタルカメラ、ディスプレイなどが用いられる。出力デバイスとしては、例えば、プリンタなどが用いられる。入出力プロファイルとしてInternationalColor Consortium(ICC)によって規定されるプロファイル(ICCプロファイル)が用いられるのが一般的である。   There is a color conversion process as a process for a color image signal. For example, input data depending on the input device such as sRGB data is converted into device-independent color space (for example, XYZ) data by the input profile. Since colors outside the color gamut of the output device cannot be represented by the output device, the input converted to device-independent color space data so that all the colors fall within the color gamut of the output device. Color space compression is applied to the data. After color space compression is performed, the input data is converted from a device-independent color space to a color space (for example, CMYK data) that depends on the output device. As an input device, for example, a scanner, a digital camera, a display, or the like is used. For example, a printer is used as the output device. As an input / output profile, a profile (ICC profile) defined by International Color Consortium (ICC) is generally used.

ICCプロファイルには、デバイスに依存した色空間とデバイスに依存しない色空間(ProfileConnection Space(PCS))との相互関係をマトリクスやLUT(LookupTable)で定義したデータが格納されている。LUTとは、特定の間隔で区切られた入力データに対応した出力データを示すテーブルであり(テーブルを構成する各点を格子点と呼ぶ)、演算式では表せない非線形な特性を表現することが可能である。このICCプロファイルの普及により、異なる入出力デバイス間の容易なカラーマッチングが実現されることとなった。   The ICC profile stores data in which a mutual relationship between a device-dependent color space and a device-independent color space (ProfileConnection Space (PCS)) is defined by a matrix or LUT (Lookup Table). The LUT is a table indicating output data corresponding to input data divided at specific intervals (each point constituting the table is called a grid point), and expresses a nonlinear characteristic that cannot be expressed by an arithmetic expression. Is possible. With the widespread use of this ICC profile, easy color matching between different input / output devices has been realized.

一方、カラー画像信号に対して色変換を行う場合、一般的には3次元の演算が必要になる。また、例えば上述のマトリクス変換のような色空間に対して一律な変換では良好な色変換を行うことができない場合が多い。そのため、LUTを用いた変換を行っている。色変換を行う場合には、このようなLUTに対してカラー画像信号を入力し、対応する出力カラー画像信号を得ることになる。入力されるカラー画像信号の取り得る全ての値に対応して出力カラー画像信号がLUTに格納されていれば正確に色変換を行うことができる。しかし、カラー画像信号の取り得る値の組み合わせは膨大であり、対応する出力カラー画像信号の値を格納するためには莫大なメモリ容量が必要となる。そのため、通常用いるLUTでは、入力されるカラー画像信号の取り得る色空間を複数に分割し、分割した色空間の格子点においてのみ出力カラー画像信号を格納する。   On the other hand, when color conversion is performed on a color image signal, a three-dimensional calculation is generally required. In many cases, satisfactory color conversion cannot be performed by uniform conversion with respect to a color space such as the matrix conversion described above. Therefore, conversion using LUT is performed. When performing color conversion, a color image signal is input to such an LUT, and a corresponding output color image signal is obtained. If the output color image signal is stored in the LUT corresponding to all possible values of the input color image signal, color conversion can be performed accurately. However, the number of combinations of values that the color image signal can take is enormous, and an enormous memory capacity is required to store the corresponding value of the output color image signal. For this reason, in a normally used LUT, the color space that can be taken by the input color image signal is divided into a plurality of colors, and the output color image signal is stored only at the grid points of the divided color space.

それ以外のカラー画像信号が入力された場合には近傍の格子点データから補間などによって出力カラー画像信号の値を得ている。出力カラー画像信号の値をLUTを用いて得る方法の一つとして、カラー画像信号が入力されたとき、近傍の格子点(8点)のデータを用いて補間演算を行う方法がある。例えば、デバイス非依存色空間からデバイス依存色空間に色変換を行う場合を考える。入力されたデバイス非依存色空間の値の近傍8点の格子点が持つデバイス非依存色空間−デバイス依存色空間の対応値から補間演算を行う。   When other color image signals are input, the value of the output color image signal is obtained from neighboring grid point data by interpolation or the like. As one method for obtaining the value of the output color image signal using the LUT, there is a method of performing interpolation calculation using data of neighboring grid points (eight points) when the color image signal is input. For example, consider a case where color conversion is performed from a device-independent color space to a device-dependent color space. Interpolation is performed from the corresponding values of the device-independent color space-device-dependent color space of the eight lattice points in the vicinity of the input device-independent color space value.

しかし入力値がデバイス依存色空間の色域の外郭付近である場合、参照する格子点がデバイス依存色空間の色域外である可能性がある。LUTとしては、それぞれの格子点には色変換後のカラー画像信号が対応付ける必要があり、色域外の格子点についても色域内の出力カラー画像信号の値が格納される。そのため、色域外郭付近の色変換では、上記対応付けによって格子点の値が変化するため、所望の色変換結果が得られないといった現象が発生していた。この問題を解決するため、特許文献1のように、デバイス依存色空間の色域外に位置する格子点が、デバイス依存色空間の色域内に位置するようにデバイス依存色空間を広げるという技術がある。   However, when the input value is near the outline of the color gamut of the device-dependent color space, there is a possibility that the grid point to be referenced is outside the color gamut of the device-dependent color space. As the LUT, it is necessary to associate the color image signal after color conversion with each grid point, and the value of the output color image signal in the color gamut is stored for grid points outside the color gamut. For this reason, in the color conversion near the color gamut outline, the value of the grid point changes due to the association, and a phenomenon that a desired color conversion result cannot be obtained has occurred. In order to solve this problem, as in Patent Document 1, there is a technique of expanding the device-dependent color space so that lattice points located outside the device-dependent color space are located within the device-dependent color space. .

特開2002−152539号公報JP 2002-152539 A

しかしながら、特許文献1の方法はデバイス依存色空間からデバイス非依存色空間への色変換時に有効な技術である。基本的に、デバイス依存色空間よりデバイス非依存色空間の方が色域が広い。そのため、デバイス非依存色空間からデバイス依存色空間の変換においては、入力値がデバイス依存色空間の色域外に来ることもあり、デバイス依存色空間を広げても参照格子点が色域内に収まらず、所望の色変換結果が得られない可能性がある。   However, the method of Patent Document 1 is an effective technique for color conversion from a device-dependent color space to a device-independent color space. Basically, the device-independent color space has a wider color gamut than the device-dependent color space. Therefore, when converting from a device-independent color space to a device-dependent color space, the input value may be outside the color gamut of the device-dependent color space, and even if the device-dependent color space is expanded, the reference grid points do not fall within the color gamut. There is a possibility that a desired color conversion result cannot be obtained.

色変換テーブルを取得する色変換テーブル取得手段(S401)と、補間演算を行う補間演算手段(S402)と、補間演算で用いる色変換テーブルの参照格子点が色域の外にあるかを判定する色域内外判定手段(S403)と、前記色域内外判定手段(S403)において色域内側と判定された参照格子点を数える格子点数判定手段(S404)と、参照格子点間を結ぶ線上に入力値が存在するかを判定する線上判定手段(S405)と、入力値と一番近い参照格子点の値を取得する格子点値取得手段(S406)と、参照格子点間を結ぶ線上に入力値を移動する入力値移動手段(S407)と、2点の参照格子点で補間演算を行う2格子点補間演算手段(S408,S410)と、入力値と出力値で色差が一番小さい結果を選択する最小色差選択手段(S409)を備えた画像処理装置。   A color conversion table acquisition unit (S401) that acquires a color conversion table, an interpolation calculation unit (S402) that performs an interpolation calculation, and whether a reference grid point of the color conversion table used in the interpolation calculation is outside the color gamut Input on the line connecting the reference grid points with the color gamut inside / outside determination means (S403), the grid point number determination means (S404) for counting the reference grid points determined to be inside the color gamut in the color gamut inside / outside determination means (S403) Line determination means (S405) for determining whether a value exists, grid point value acquisition means (S406) for acquiring a reference grid point value closest to the input value, and an input value on a line connecting the reference grid points Select the result with the smallest color difference between the input value and the output value, and the input value moving means (S407) that moves the image, the 2-grid interpolation method (S408, S410) that performs the interpolation operation with the two reference grid points An image processing apparatus provided with minimum color difference selection means (S409).

従来の技術に対して本技術は、入力値が色域外郭付近である場合に、複数の方法で色変換を行い、その色変換結果の内、色差の小さい結果を採用する。そのため、入力色空間やLUTの構成に関わらず、入力値が入力色空間の色域外郭付近であっても、変換後の値を所望の値に近づけることができる。   In contrast to the conventional technique, this technique performs color conversion by a plurality of methods when an input value is in the vicinity of the color gamut outline, and adopts a result with a small color difference among the color conversion results. Therefore, regardless of the input color space or the configuration of the LUT, even if the input value is near the color gamut outline of the input color space, the converted value can be brought close to a desired value.

本発明におけるPCとプリンタの連結を示す図である。It is a figure which shows connection of PC and a printer in this invention. 本発明における画像処理装置の構成を示す図である。It is a figure which shows the structure of the image processing apparatus in this invention. 本発明における色変換時のデータの流れを示す図である。It is a figure which shows the data flow at the time of the color conversion in this invention. 本発明における色変換処理の流れを示す図である。It is a figure which shows the flow of the color conversion process in this invention. 本発明におけるLUTを構成する立方体の例を示す図である。It is a figure which shows the example of the cube which comprises LUT in this invention.

以下、本発明を実施するための最良の形態について図面を用いて説明する。   The best mode for carrying out the present invention will be described below with reference to the drawings.

[実施例1]
本実施例では画像処理装置でLUTを用いて色変換を行う際に、色域の外郭付近で行う色変換方法について説明する。図1はPC110と画像処理装置111がネットワーク112を介して接続されている構成を示すものである。PC110と画像処理装置111がネットワーク112を介して接続されることで、画像データや処理命令などの信号を送受信できるようになる。
[Example 1]
In this embodiment, a color conversion method performed near the outline of a color gamut when performing color conversion using an LUT in an image processing apparatus will be described. FIG. 1 shows a configuration in which a PC 110 and an image processing apparatus 111 are connected via a network 112. By connecting the PC 110 and the image processing apparatus 111 via the network 112, signals such as image data and processing commands can be transmitted and received.

図2は画像処理装置111の構成図である。画像処理装置111はUI部201、プリント部202、記憶部203、コントローラ部204から構成される。UI部201はユーザからの入力を受け付けるためのインタフェースであり、またユーザへの指示などを示す表示装置でもある。コントローラ部204は画像処理部205で構成される。画像処理部205は受信した画像データなどに対して画像処理を行う。記憶部203はコントローラ部204で処理されたデータやコントローラ部204が受け取ったデータ等を保存する。コントローラ部204と接続されたプリント部202はシアン・マゼンタ・イエロー・ブラック等の有色トナーを用いて紙上に出力データを形成する。プリント部202は紙の給紙を行い出力データを形成した紙を排紙する。   FIG. 2 is a configuration diagram of the image processing apparatus 111. The image processing apparatus 111 includes a UI unit 201, a print unit 202, a storage unit 203, and a controller unit 204. The UI unit 201 is an interface for receiving input from the user, and is also a display device that indicates an instruction to the user. The controller unit 204 includes an image processing unit 205. The image processing unit 205 performs image processing on the received image data and the like. The storage unit 203 stores data processed by the controller unit 204, data received by the controller unit 204, and the like. The printing unit 202 connected to the controller unit 204 forms output data on paper using colored toners such as cyan, magenta, yellow, and black. The printing unit 202 feeds paper and discharges the paper on which output data is formed.

ここで、本発明における色変換を行う画像処理部205のデータの流れについて図3を用いて説明する。画像処理部205はデータ受信部301でPC110から送られる画像データ等を受信し、ソースプロファイル処理部302へ送信する。画像処理部205はソースプロファイル処理部302でソースプロファイルを参照して入力データをデバイス依存色空間からデバイス非依存色空間に変換する。例として、図3では入力sRGB(R、G、B)をL*a*b*に変換している。sRGBは国際電気標準会議 (IEC) が定めた国際標準規格であり、一般的なモニタ、デジタルカメラなどではこの規格に準拠している。L*a*b*とは、CIE(国際照明委員会)が1976年に定めた均等色空間のひとつである。明度(Lightness、L軸)、緑/赤(a軸)、青/イエロー(b軸)の3要素で構成され、色を表現できる領域が広く、異なるシステム間で色を扱いやすいカラーモデルである。   Here, the data flow of the image processing unit 205 that performs color conversion in the present invention will be described with reference to FIG. The image processing unit 205 receives image data and the like sent from the PC 110 by the data receiving unit 301 and transmits the image data to the source profile processing unit 302. The image processing unit 205 refers to the source profile in the source profile processing unit 302 and converts the input data from the device-dependent color space to the device-independent color space. As an example, in FIG. 3, the input sRGB (R, G, B) is converted to L * a * b *. sRGB is an international standard established by the International Electrotechnical Commission (IEC), and general monitors, digital cameras, etc. comply with this standard. L * a * b * is one of the uniform color spaces established in 1976 by the International Commission on Illumination (CIE). It is a color model that consists of three elements of lightness (Lightness, L axis), green / red (a axis), and blue / yellow (b axis), and has a wide range of color representation, making it easy to handle colors between different systems. .

本実施例において、ソースプロファイルはデバイス依存色空間からデバイス非依存色空間へ色変換を行うための演算マトリクスやLUTが格納されているICCプロファイルを指す。変換したデータをデスティネーションプロファイル処理部303へ送信する。画像処理部205はデスティネーションプロファイル処理部303でデスティネーションプロファイルを参照して入力データをデバイス非依存色空間からデバイス依存色空間に変換する。例として、図3では入力L*a*b*をdevRGB(R’、G’、B’)に変換している。devRGBは本発明においてはプリンタに依存した色空間をRGBで表現したものとする。本実施例において、デスティネーションプロファイルはデバイス非依存色空間からデバイス依存色空間へ色変換を行うための演算マトリクスやLUTが格納されているICCプロファイルを指す。変換したデータを後段処理部304へ送信する。画像処理部205は後段処理部304で入力データをプリント部202で扱えるCMYKデータに変換し、データ送信部305へ送信する。画像処理部205はデータ送信部305で入力データをプリント部202へ送信する。   In the present embodiment, the source profile refers to an ICC profile in which an arithmetic matrix and LUT for performing color conversion from a device-dependent color space to a device-independent color space are stored. The converted data is transmitted to the destination profile processing unit 303. The image processing unit 205 refers to the destination profile in the destination profile processing unit 303 and converts the input data from the device-independent color space to the device-dependent color space. As an example, in FIG. 3, the input L * a * b * is converted into devRGB (R ′, G ′, B ′). In the present invention, devRGB represents a printer-dependent color space expressed in RGB. In the present embodiment, the destination profile refers to an ICC profile in which a calculation matrix and LUT for performing color conversion from a device-independent color space to a device-dependent color space are stored. The converted data is transmitted to the post-processing unit 304. The image processing unit 205 converts the input data into CMYK data that can be handled by the printing unit 202 in the subsequent processing unit 304 and transmits the CMYK data to the data transmission unit 305. The image processing unit 205 transmits the input data to the printing unit 202 by the data transmission unit 305.

続いて、画像処理部205における色変換処理の流れを図4を用いて説明する。画像処理部205はS401において、PC110のHDD(図示しない)や記憶部203に保存されているICCプロファイル等に格納されているLUTを取得する。どのLUTを取得するかはユーザの指示によるが、ここではL*a*b*をdevRGBに変換するLUT(図3の303のデスティネーションプロファイルに格納されたLUT)を取得し変換を行うこととする。続いて画像処理部205はS402において、入力データに対して、取得したLUTを用いて補間演算を行う。   Next, the flow of color conversion processing in the image processing unit 205 will be described with reference to FIG. In step S401, the image processing unit 205 acquires a LUT stored in an HDD (not shown) of the PC 110, an ICC profile stored in the storage unit 203, or the like. Which LUT is to be acquired depends on the user's instruction. Here, the LUT that converts L * a * b * to devRGB (LUT stored in the destination profile 303 in FIG. 3) is acquired and converted. To do. In step S402, the image processing unit 205 performs an interpolation operation on the input data using the acquired LUT.

補間演算は様々な方法が提案されているが、ここでは基本となる入力データとその近傍8点の格子点間の距離に応じた加重平均を取る補間演算法を用いて説明する。図5はテーブルに格納している各格子点中の、ある1立方体内の各頂点(A〜H)を基に入力点(I)を補間する方法を示したものである。テーブル内には、この各頂点の変換情報が格納されていて、その変換をfとおくと(テーブルに格納されているA〜Hの各情報をf(A)〜f(H)とする。)、変換後のIの値g(I)は以下の式1で計算される(ここでは、格子点間の距離を1と考える)。   Various methods of interpolation calculation have been proposed. Here, description will be made using an interpolation calculation method that takes a weighted average according to the distance between basic input data and eight neighboring lattice points. FIG. 5 shows a method of interpolating the input point (I) based on each vertex (A to H) in a certain cube among the lattice points stored in the table. The conversion information of each vertex is stored in the table, and when the conversion is set to f (each information of A to H stored in the table is set to f (A) to f (H). ) After conversion, the value g (I) of I is calculated by the following equation 1 (here, the distance between lattice points is considered to be 1).

g(I)=(1−x)(1−y)(1−z)f(A)+x(1−y)(1−z)f(B)+(1−x)(1−y)zf(C)+x(1−y)zf(D)+(1−x)y(1−z)f(E)+xy(1−z)f(F)+(1−x)yzf(G)+xyzf(H)・・・式1
補間演算後、画像処理部205はS403において補間演算時に参照した格子点が出力色空間(ここではdevRGB)の色域外にあるかを判定する。色域内外判定はどのような技術を用いても構わない。全ての参照格子点が色域内にあれば、画像処理部205はS411においてそのままS402の補間演算結果を出力する。一つでも色域外となる参照格子点があれば、画像処理部205はS404において、色域内に2つ以上の参照格子点があるか判定する。色域内に2つ以上の参照格子点があれば、画像処理部205はS405において、色域内にある参照格子点の内2点を結ぶ線分上に入力データがあるかを判定する。線分上に入力データがあるかの判定は点と線の位置関係を求めるような公知の技術を用いればいいが、例えば参照格子点2点を通る直線を表す式にデータを入力した場合に、式が成り立てば線分上にあると判定できる。
g (I) = (1-x) (1-y) (1-z) f (A) + x (1-y) (1-z) f (B) + (1-x) (1-y) zf (C) + x (1-y) zf (D) + (1-x) y (1-z) f (E) + xy (1-z) f (F) + (1-x) yzf (G) + Xyzf (H) Equation 1
After the interpolation calculation, the image processing unit 205 determines in S403 whether the grid point referred to during the interpolation calculation is outside the color gamut of the output color space (here, devRGB). Any technique may be used for the color gamut inside / outside determination. If all the reference grid points are in the color gamut, the image processing unit 205 outputs the interpolation calculation result of S402 as it is in S411. If there is at least one reference grid point that is out of the color gamut, the image processing unit 205 determines in step S404 whether there are two or more reference grid points in the color gamut. If there are two or more reference grid points in the color gamut, the image processing unit 205 determines in step S405 whether there is input data on a line segment connecting two of the reference grid points in the color gamut. To determine whether there is input data on the line segment, a known technique such as obtaining the positional relationship between the point and the line may be used. For example, when data is input to an expression representing a straight line passing through two reference grid points If the equation holds, it can be determined that it is on the line segment.

例としてL*a*b*色空間において、S(0,0,0)、E(10,0,0)という2つの参照格子点を通る直線はL*=c(cは定数)、a*=b*=0であり、入力データがI(5,0,0)の場合は式が成り立ち、参照格子点2点を結ぶ線上にあると判定できる。S(0,0,0)、E(10,10,0)の場合はS,Eを通る直線はL*=a*、b*=0で表されるので入力データがI(5,5,0)の場合は式が成り立ち、参照格子点2点を結ぶ線上にあると判定できる。S(0,0,0)、E(10,10,10)の場合はS,Eを通る直線はL*/10=a*/10=b*/10で表されるので入力データがI(5,5,5)の場合は式が成り立ち、参照格子点2点を結ぶ線上にあると判定できる。線分上に入力データがあれば、画像処理部205はS410において、S405の判定で用いた2点の参照格子点を用いて補間演算を行う。2点の補間演算は式2を用いる。   For example, in the L * a * b * color space, a straight line passing through two reference grid points S (0,0,0) and E (10,0,0) is L * = c (c is a constant), a When * = b * = 0 and the input data is I (5,0,0), the equation is established, and it can be determined that the input data is on a line connecting two reference grid points. In the case of S (0,0,0) and E (10,10,0), the straight line passing through S and E is expressed as L * = a * and b * = 0, so the input data is I (5,5 , 0), it can be determined that the expression is satisfied and the line is on the line connecting the two reference grid points. In the case of S (0,0,0) and E (10,10,10), the straight line passing through S and E is expressed as L * / 10 = a * / 10 = b * / 10, so the input data is I In the case of (5,5,5), the equation is established, and it can be determined that it is on a line connecting two reference grid points. If there is input data on the line segment, the image processing unit 205 performs an interpolation operation in step S410 using the two reference grid points used in the determination in step S405. Equation 2 is used for the two-point interpolation calculation.

g(In)=Sn+((In-Sn)×(En-Sn)/(g(En)-g(Sn)))
ただしg(Sn)=g(En)の場合はg(In)=g(Sn) ・・・式2
参照格子点2点の入力値をそれぞれSn、Enとし、入力データをInとしている。nは要素数であり、例えばL*a*b*=(100、50、50)であればS0=100、S1=50、S2=50などとなる。g()は各入力値の変換後の値を表している。例えば入力色空間がL*a*b*で参照格子点をそれぞれS=(0,0,0)、E=(0,0,50)で、そのまま値を出力するLUTであればg(S)=(0,0,0)、g(E)=(0,0,50)となる。
g (In) = Sn + ((In-Sn) * (En-Sn) / (g (En) -g (Sn)))
However, when g (Sn) = g (En), g (In) = g (Sn) (2)
The input values of the two reference grid points are Sn and En, respectively, and the input data is In. n is the number of elements. For example, if L * a * b * = (100, 50, 50), S0 = 100, S1 = 50, S2 = 50, and the like. g () represents a value after conversion of each input value. For example, if the input color space is L * a * b * and the reference grid points are S = (0,0,0) and E = (0,0,50) respectively, and the LUT outputs the value as it is, g (S ) = (0,0,0), g (E) = (0,0,50).

I=(0,0,25)の変換後の値g(I)を求めると、g(S0)=g(E0)およびg(S1)=g(E1)であるため、g(I0)=0、g(I1)=0となる。g(I2)=0+((25-0)×(50-0)/(50-0))=25となり、g(I)=(0,0,25)と変換後の値が求まる。2点の補間演算後、画像処理部205はS411において補間演算結果を出力する。S405において、線分上に入力データがないと判断された場合、画像処理部205はS407において2点の参照格子点を結ぶ線分上で値が存在する位置に入力データを移動する。つまり、例えばL*a*b*色空間内であれば、L*a*b*色空間としてとり得る値であるL*は0〜100、a*およびb*は-128〜127の範囲で、値が整数となる位置に移動する。移動は線分上に点(入力データ)を一致させる方法であればどのような技術を用いても良いが、L*a*b*色空間内で色差が最小になる点に移動するなど、移動距離が最小になるようにする。画像処理部205はS408において、S407で移動した入力データに対して、2点の参照格子点を用いて補間演算を行う。補間演算はS410と同じ方法を用いる。   When the converted value g (I) of I = (0,0,25) is obtained, since g (S0) = g (E0) and g (S1) = g (E1), g (I0) = 0, g (I1) = 0. g (I2) = 0 + ((25-0) × (50-0) / (50-0)) = 25, and g (I) = (0,0,25) and the converted value are obtained. After two points of interpolation calculation, the image processing unit 205 outputs the interpolation calculation result in S411. If it is determined in S405 that there is no input data on the line segment, the image processing unit 205 moves the input data to a position where a value exists on the line segment connecting the two reference grid points in S407. That is, for example, within the L * a * b * color space, L *, which is a value that can be taken as the L * a * b * color space, is in the range of 0 to 100, and a * and b * are in the range of −128 to 127. , Move to a position where the value is an integer. Any technique can be used as long as the point (input data) is matched on the line segment, but it moves to the point where the color difference is minimized in the L * a * b * color space. Try to minimize the distance traveled. In step S408, the image processing unit 205 performs an interpolation operation on the input data moved in step S407 using two reference grid points. Interpolation calculation uses the same method as in S410.

ここで説明はS404に戻るが、S404において参照格子点数が2つ未満である場合は、画像処理部205はS406において入力データに一番近い参照格子点を抽出し、変換後の値を取得する。参照格子点の抽出は、色空間圧縮が行われる色空間内において入力データと参照格子点の距離を算出し、距離が一番小さいものを選択する。例えばL*a*b*色空間内であれば、式3で距離(色差)を求めることができる。   Here, the description returns to S404. However, if the number of reference grid points is less than 2 in S404, the image processing unit 205 extracts the reference grid point closest to the input data in S406, and acquires the converted value. . The reference grid point is extracted by calculating the distance between the input data and the reference grid point in the color space where color space compression is performed, and selecting the one having the smallest distance. For example, if it is in the L * a * b * color space, the distance (color difference) can be obtained by Equation 3.

dE=√(dL×dL+da×da+db×db) ・・・式3
dEが色差、dLがL*の差、daがa*の差、dbがb*の差である。L*a*b*色空間に限らず、色空間内の距離を求める方法は様々あり、どのような方法を用いても構わない。続いて画像処理部205はS409において、S402とS406およびS408で求めた値の内、入力データと一番距離(色差)の小さいものを選択する。例えばL*a*b*からdevRGBに色変換を行う場合、LUTを逆算しdebRGBからL*a*b*の値をそれぞれのステップ(S402、S406、S408)で求める。求めた値と色変換前の入力データをそれぞれ式3を用いて比較し、一番色差の小さいものを選択する。そして画像処理部205はS411において補間演算結果を出力する。
dE = √ (dL × dL + da × da + db × db) Equation 3
dE is the color difference, dL is the difference in L *, da is the difference in a *, and db is the difference in b *. There are various methods for obtaining the distance in the color space, not limited to the L * a * b * color space, and any method may be used. Subsequently, in S409, the image processing unit 205 selects one having the smallest distance (color difference) from the input data among the values obtained in S402, S406, and S408. For example, when color conversion from L * a * b * to devRGB is performed, the LUT is calculated backward and the values of debRGB to L * a * b * are obtained in each step (S402, S406, S408). The calculated value is compared with the input data before color conversion using Equation 3, and the one with the smallest color difference is selected. In step S411, the image processing unit 205 outputs the interpolation calculation result.

以上のように処理を行うことにより、通常の補間演算の結果だけでなく、複数の演算結果の中から一番色差の小さいものを選択できるようになる。そのため、LUTを用いた補間演算において、参照格子点が色空間の色域外となる場合に、所望の値が得られないという問題に対し、所望の値に近づけることができるようになる。   By performing the processing as described above, it is possible to select not only the result of the normal interpolation calculation but also the one with the smallest color difference from the plurality of calculation results. For this reason, in the interpolation calculation using the LUT, when the reference grid point is out of the color gamut of the color space, it becomes possible to approach the desired value against the problem that the desired value cannot be obtained.

110 PC
111 画像処理装置
112 ネットワーク
110 pcs
111 Image processing apparatus 112 Network

Claims (3)

色変換テーブルを取得する色変換テーブル取得手段(S401)と、補間演算を行う補間演算手段(S402)と、補間演算で用いる色変換テーブルの参照格子点が色域の外にあるかを判定する色域内外判定手段(S403)と、前記色域内外判定手段(S403)において色域内側と判定された参照格子点を数える格子点数判定手段(S404)と、参照格子点間を結ぶ線上に入力値が存在するかを判定する線上判定手段(S405)と、入力値と一番近い参照格子点の値を取得する格子点値取得手段(S406)と、参照格子点間を結ぶ線上に入力値を移動する入力値移動手段(S407)と、2点の参照格子点で補間演算を行う2格子点補間演算手段(S408,S410)と、入力値と出力値で色差が一番小さい結果を選択する最小色差選択手段(S409)を備えた画像処理装置。 A color conversion table acquisition unit (S401) that acquires a color conversion table, an interpolation calculation unit (S402) that performs an interpolation calculation, and whether a reference grid point of the color conversion table used in the interpolation calculation is outside the color gamut Input on the line connecting the reference grid points with the color gamut inside / outside determination means (S403), the grid point number determination means (S404) for counting the reference grid points determined to be inside the color gamut in the color gamut inside / outside determination means (S403) Line determination means (S405) for determining whether a value exists, grid point value acquisition means (S406) for acquiring a reference grid point value closest to the input value, and an input value on a line connecting the reference grid points Select the result with the smallest color difference between the input value and the output value, and the input value moving means (S407) that moves the image, the 2-grid interpolation method (S408, S410) that performs the interpolation operation with the two reference grid points An image processing apparatus provided with minimum color difference selection means (S409). 前記補間演算手段(S402)は色変換テーブルに入力された値の近傍8点の格子点を用いて、重み付け加算平均を取ることで出力値を求めることを特徴とする請求項1に記載の画像処理装置。 The image according to claim 1, wherein the interpolation calculation means (S402) obtains an output value by taking a weighted addition average using eight lattice points in the vicinity of the value input to the color conversion table. Processing equipment. 前記2格子点補間演算手段(S408,S410)は、2点の格子点の変換前の値と変換前の入力値の比を元に重み付けを行い、格子点の変換後の値にその重みを足し合わせることで出力値を求めることを特徴とする請求項1に記載の画像処理装置。
The two-lattice point interpolation calculation means (S408, S410) performs weighting based on the ratio between the value before conversion of the two lattice points and the input value before conversion, and assigns the weight to the value after conversion of the lattice points. The image processing apparatus according to claim 1, wherein an output value is obtained by adding together.
JP2011269533A 2011-12-09 2011-12-09 Image processing device Pending JP2013121155A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011269533A JP2013121155A (en) 2011-12-09 2011-12-09 Image processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011269533A JP2013121155A (en) 2011-12-09 2011-12-09 Image processing device

Publications (1)

Publication Number Publication Date
JP2013121155A true JP2013121155A (en) 2013-06-17

Family

ID=48773588

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011269533A Pending JP2013121155A (en) 2011-12-09 2011-12-09 Image processing device

Country Status (1)

Country Link
JP (1) JP2013121155A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016039417A (en) * 2014-08-05 2016-03-22 株式会社リコー Image processing apparatus, image forming apparatus, image processing method, and program for the same
JP2016146600A (en) * 2015-02-09 2016-08-12 コニカミノルタ株式会社 Color conversion method, program, and image processing apparatus

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016039417A (en) * 2014-08-05 2016-03-22 株式会社リコー Image processing apparatus, image forming apparatus, image processing method, and program for the same
JP2016146600A (en) * 2015-02-09 2016-08-12 コニカミノルタ株式会社 Color conversion method, program, and image processing apparatus

Similar Documents

Publication Publication Date Title
KR101166388B1 (en) Color space conversion apparatus and control method for thereof
EP1526711A1 (en) method of converting color data
JP4116028B2 (en) Color gamut boundary detection apparatus, color gamut boundary detection method, and color gamut mapping method
JP4130744B2 (en) Image processing apparatus and image processing method
JP5728244B2 (en) Image processing apparatus and image processing method
US8204304B2 (en) Color gamut mapping by forming curved cross-sectional surfaces
JP2011254350A (en) Image processing device, image processing method, and program for executing image processing method
EP3213501A1 (en) Configuring an imaging system
JP2013021679A (en) Color processing apparatus and method therefor
JP2008148275A (en) Color processing apparatus and program
US8885932B2 (en) Image processing apparatus and profile generation method
JP2013121155A (en) Image processing device
JP2010153945A (en) Color correction coefficient generation device and program
JP2019071537A (en) Image processing device, control method of the same, and program
US9019294B2 (en) Color processing apparatus and method thereof
JP5693192B2 (en) Color processing apparatus, color processing method, program, and storage medium
JP5665442B2 (en) Color processing apparatus and color processing method
JP4613940B2 (en) Color signal conversion apparatus, image forming apparatus, and program
KR101765472B1 (en) Color processing apparatus and color processing method
CN100450144C (en) Color managing method for pixel capable of transforming different color domain
JP5790151B2 (en) Color conversion table creation method, creation apparatus, and computer program
JP2009071715A (en) Color gamut generating method, color gamut generating device, program, and storage medium
US10477038B2 (en) Image processing apparatus, image processing system, and recording medium
JP2005119189A (en) Image processor and method of processing image
JP3514898B2 (en) Color conversion device and color conversion method