JP2010087693A - Apparatus, method and program for image processing - Google Patents
Apparatus, method and program for image processing Download PDFInfo
- Publication number
- JP2010087693A JP2010087693A JP2008252615A JP2008252615A JP2010087693A JP 2010087693 A JP2010087693 A JP 2010087693A JP 2008252615 A JP2008252615 A JP 2008252615A JP 2008252615 A JP2008252615 A JP 2008252615A JP 2010087693 A JP2010087693 A JP 2010087693A
- Authority
- JP
- Japan
- Prior art keywords
- color
- compression
- point
- reproduction range
- output device
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Landscapes
- Image Processing (AREA)
- Facsimile Image Signal Circuits (AREA)
- Color Image Communication Systems (AREA)
Abstract
Description
本発明は、画像処理装置、画像処理方法、及び画像処理プログラムに関するものである。 The present invention relates to an image processing apparatus, an image processing method, and an image processing program.
色を表現するデバイスとしては、ディスプレイ(例えば、液晶表示装置)やプリンタなど、種々のデバイスが存在する。一般的に、異なるデバイスでは、再現可能な色域(色再現範囲)も異なる。そのため、ディスプレイに表示される画像をプリンタから出力した場合に、ディスプレイ及びプリンタの色再現範囲の差異により出力される色(目に見える色)に差異が生じる。 Various devices such as a display (for example, a liquid crystal display device) and a printer exist as devices that express colors. Generally, different devices have different reproducible color gamuts (color reproduction ranges). Therefore, when the image displayed on the display is output from the printer, the output color (visible color) is different due to the difference in the color reproduction range between the display and the printer.
従来、異なるデバイス間での出力色の差異を補正するために、カラーマッチング処理が行われる。一般的なカラーマッチング処理としては、出力デバイスの色再現可能範囲から外れる入力デバイスの色を、出力デバイスの色再現可能範囲に圧縮するガマット圧縮が挙げられる。 Conventionally, color matching processing is performed to correct a difference in output color between different devices. General color matching processing includes gamut compression that compresses the color of an input device that is out of the color reproducible range of the output device into the color reproducible range of the output device.
特許文献1には、被変換色と同一色相を有する入力色空間の最大彩度点と出力デバイスの最大彩度点を導出し、被変換色と入力デバイスの第1のアンカーポイント(収斂点)を結ぶ線分と入力空間の色域の最外郭とが交差する第1の外郭点を導出し、その第1の外郭点を出力デバイスの色域の最外郭上の点にマッピングすることにより第2の外郭点を導出し、第1のアンカーポイントと第1の外郭点を結ぶ線分上の点を出力デバイスの第2のアンカーポイントと第2の外郭点を結ぶ線分上の点へマッピングする規則に基づいて被変換色を出力デバイスの色域内部の色に変換する(即ち、ガマット圧縮する)色変換処理方法が記載されている。
上述の特許文献1に記載される色変換処理方法は、入力デバイスの最大彩度点が出力デバイスの最大彩度点にマッピングされることになるので、色の濁りや最大彩度点近傍のグラデーションの歪みを防止することができる。
In the color conversion processing method described in
しかしながら、かかる色変換処理方法は、出力デバイスの色再現範囲の外郭に抉れ部分がある場合や、色相の変化に対して彩度の変位量が大きい箇所がある場合には、明度や彩度や階調性が損なわれるという問題点があった。 However, such a color conversion processing method can be used for lightness and saturation when there is a drooping part in the outline of the color reproduction range of the output device, or when there is a part where the displacement of saturation is large relative to the change in hue. In addition, there is a problem that the gradation is impaired.
本発明は、上述した問題点を解決するためになされたものであり、明度、彩度、及び階調性が極端に損なわれることのないガマット圧縮を行い得る画像処理装置、画像処理方法、及び画像処理プログラムを提供することを目的としている。 The present invention has been made to solve the above-described problems, and is an image processing apparatus, an image processing method, and an image processing apparatus capable of performing gamut compression without significantly impairing lightness, saturation, and gradation. The object is to provide an image processing program.
この目的を達成するために、請求項1記載の画像処理装置は、入力カラーデータが示す第1の色再現範囲内の色を、出力デバイスに依存する第2の色再現範囲の色に変換する色変換手段を備えたものであって、前記色変換手段は、前記入力カラーデータが示す色が前記第2の色再現範囲から外れている場合に、該前記第2の色再現範囲から外れている色を圧縮元とし、該圧縮元の色を、第1の圧縮条件によって前記第2の色再現範囲内の色に圧縮したときの第1圧縮点と、前記第1の圧縮条件とは異なる第2の圧縮条件によって前記第2の色再現範囲内の色に圧縮したときの第2圧縮点とを算出する第1色圧縮手段と、前記圧縮元の色と前記第1色圧縮手段により得られた前記第1圧縮点の色及び前記第2圧縮点の色との色空間上における位置関係に基づき、前記第1圧縮点に対応する出力デバイスの色及び前記第2圧縮点に対応する前記出力デバイスの色の各々に対する重み付け係数を算出する重み付け係数算出手段と、前記重み付け係数算出手段により算出された重み付け係数により各々重み付けした前記第1圧縮点に対応する出力デバイスの色及び前記第2圧縮点に対応する出力デバイスの色を用いて、変換後の前記出力デバイスの色に対応する第3の圧縮点を算出する第2色圧縮手段とを含んで構成される。
In order to achieve this object, the image processing apparatus according to
請求項2記載の画像処理装置は、請求項1記載の画像処理装置において、前記第1の圧縮条件は、前記入力カラーデータが示す色と第2の色再現範囲内の色との色差を最小にすることであり、前記第2の圧縮条件は、色空間における無彩色軸上の点を圧縮の収斂点として用いることである。
The image processing device according to
請求項3記載の画像処理装置は、請求項1又は2に記載の画像処理装置において、前記第2の色再現範囲の表面に位置する複数の色のそれぞれについて、該色を示す色空間上の座標と、該色に対応する極座標とを対応付けた色再現範囲表面情報を記憶する記憶手段を備え、前記第1色圧縮手段は、前記記憶手段に記憶される前記色再現範囲表面情報を用いて、前記第1圧縮点及び前記第2圧縮点を算出する。
The image processing device according to
請求項4記載の画像処理方法は、入力カラーデータが示す第1の色再現範囲内の色を、出力デバイスに依存する第2の色再現範囲の色に変換する色変換工程を含む方法であって、前記色変換工程は、前記入力カラーデータが示す色が前記第2の色再現範囲から外れている場合に、該前記第2の色再現範囲から外れている色を圧縮元とし、該圧縮元の色を、第1の圧縮条件によって前記第2の色再現範囲内の色に圧縮したときの第1圧縮点と、前記第1の圧縮条件とは異なる第2の圧縮条件によって前記第2の色再現範囲内の色に圧縮したときの第2圧縮点とを算出する第1色圧縮工程と、前記圧縮元の色と前記第1色圧縮工程により得られた前記第1圧縮点に対応する出力デバイスの色と前記第2圧縮点の色との色空間上における位置関係に基づき、前記第1圧縮点の色及び前記第2圧縮点に対応する前記出力デバイスの色の各々に対する重み付け係数を算出する重み付け係数算出工程と、前記重み付け係数算出工程により算出された重み付け係数により重み付けした前記第1圧縮点に対応する出力デバイスの色及び前記第2圧縮点対応する出力デバイスの色を用いて、変換後の前記出力デバイスの色に対応する第3の圧縮点を算出する第2色圧縮工程とを含んで構成される。 The image processing method according to claim 4 is a method including a color conversion step of converting a color within a first color reproduction range indicated by input color data into a color within a second color reproduction range depending on an output device. In the color conversion step, when a color indicated by the input color data is out of the second color reproduction range, a color out of the second color reproduction range is used as a compression source, and the compression is performed. A first compression point when the original color is compressed into a color within the second color reproduction range by the first compression condition, and the second compression condition by a second compression condition different from the first compression condition. Corresponding to a first color compression step for calculating a second compression point when compressed to a color within the color reproduction range, the original color and the first compression point obtained by the first color compression step The positional relationship in the color space between the color of the output device and the color of the second compression point A weighting coefficient calculating step for calculating a weighting coefficient for each of the color of the first compression point and the color of the output device corresponding to the second compression point; and weighting by the weighting coefficient calculated by the weighting coefficient calculation step A second compression point corresponding to the color of the output device after conversion is calculated using the color of the output device corresponding to the first compression point and the color of the output device corresponding to the second compression point. And a color compression process.
請求項5記載の画像処理プログラムは、入力カラーデータが示す第1の色再現範囲内の色を、出力デバイスに依存する第2の色再現範囲の色に変換する色変換処理を画像処理装置に実行させるためのプログラムであって、前記色変換処理は、前記入力カラーデータが示す色が前記第2の色再現範囲から外れている場合に、該前記第2の色再現範囲から外れている色を圧縮元とし、該圧縮元の色を、第1の圧縮条件によって前記第2の色再現範囲内の色に圧縮したときの第1圧縮点と、前記第1の圧縮条件とは異なる第2の圧縮条件によって前記第2の色再現範囲内の色に圧縮したときの第2圧縮点とを算出する第1色圧縮ステップと、前記圧縮元の色と前記第1色圧縮ステップにより得られた前記第1圧縮点の色及び前記第2圧縮点の色との色空間上における位置関係に基づき、前記第1圧縮点に対応する出力デバイスの色及び前記第2圧縮点に対応する出力デバイスの色の各々に対する重み付け係数を算出する重み付け係数算出ステップと、前記重み付け係数算出ステップにより算出された重み付け係数により重み付けした前記第1圧縮点に対応する出力デバイスの色及び前記第2圧縮点に対応する出力デバイスの色を用いて、変換後の前記出力デバイスの色に対応する第3の圧縮点を算出する第2色圧縮ステップとを含んで構成される。
An image processing program according to
請求項1記載の画像処理装置によれば、異なる2種類の圧縮条件による圧縮によって得られた点(第1圧縮点及び第2圧縮点)に基づいて、変換後の出力デバイスの色に対応する圧縮点(第3圧縮点)を得るので、各圧縮条件による圧縮の欠点を補うことができ、圧縮に伴う明度や彩度や階調性への悪影響を抑制することができる。また、異なる2種類の圧縮条件による圧縮に基づき第3の圧縮点を得るので、出力デバイスの色再現範囲の外郭の形状(例えば、尖った部分や抉れた部分)が原因で、1の圧縮条件による圧縮を行った場合に生じ易い階調崩れを改善することができる。よって、ガマット圧縮によって明度、彩度、及び階調性が極端に損なわれることを防止することができるという効果がある。
According to the image processing apparatus of
また、圧縮元の色、第1圧縮点の色、及び第2圧縮点の色との色空間上における位置関係に基づいて重み付け係数を算出し、算出された重み付け係数を用いて第3圧縮点を得るので、第1圧縮点及び第2圧縮点の特性を、圧縮元に対するこれらの圧縮点(第1圧縮点及び第2圧縮点)位置関係を反映させた第3圧縮点を得ることができるという効果がある。 Also, a weighting coefficient is calculated based on the positional relationship in the color space with the color of the compression source, the color of the first compression point, and the color of the second compression point, and the third compression point is calculated using the calculated weighting coefficient. Therefore, it is possible to obtain a third compression point in which the characteristics of the first compression point and the second compression point reflect the positional relationship of these compression points (first compression point and second compression point) with respect to the compression source. There is an effect.
請求項2記載の画像処理装置によれば、請求項1記載の画像処理装置の奏する効果に加えて、次の効果を奏する。入力カラーデータが示す色と第2の色再現範囲内の色との色差を最小にする圧縮条件(第1の圧縮条件)による圧縮と、色空間上における無彩色軸上の点を圧縮の収斂点として用いる圧縮条件(第2の圧縮条件)による圧縮とを、それぞれ、第1圧縮点及び第2圧縮点を得るための圧縮とする。よって、圧縮元との色差を最小にする圧縮と、色空間上における無彩色軸上の点を収斂点とする圧縮とが、それぞれの圧縮により生じ得る欠点を互いに補うこととなり、ガマット圧縮によって明度、彩度、及び階調性が極端に損なわれることを防止することができるという効果がある。 According to the image processing device of the second aspect, in addition to the effect produced by the image processing device according to the first aspect, the following effect can be obtained. Compression based on the compression condition (first compression condition) that minimizes the color difference between the color indicated by the input color data and the color within the second color reproduction range, and compression of points on the achromatic color axis in the color space. The compression based on the compression condition (second compression condition) used as a point is the compression for obtaining the first compression point and the second compression point, respectively. Therefore, the compression that minimizes the color difference from the compression source and the compression that uses the point on the achromatic color axis in the color space as the convergence point make up for each other's disadvantages that can be caused by each compression. Further, there is an effect that it is possible to prevent the saturation and gradation from being extremely impaired.
請求項3記載の画像処理装置によれば、請求項1又は2に記載の画像装置の奏する効果に加えて、次の効果を奏する。出力デバイスの色再現範囲(第2の色再現範囲)の表面に位置する複数の色のそれぞれについて、該色を示す色空間上の座標と、該色に対応する極座標とを対応付けた色再現範囲表面情報が記憶手段に記憶されているので、第1圧縮点及び第2圧縮点を算出する際の処理を効率化できるという効果がある。 According to the image processing device of the third aspect, in addition to the effect produced by the image device according to the first or second aspect, the following effect is obtained. For each of a plurality of colors located on the surface of the color reproduction range (second color reproduction range) of the output device, color reproduction that associates coordinates in the color space indicating the color with polar coordinates corresponding to the color Since the range surface information is stored in the storage unit, there is an effect that the processing when calculating the first compression point and the second compression point can be made efficient.
請求項4記載の画像処理方法によれば、請求項1記載の画像処理装置と同様の効果を奏することができる。 According to the image processing method of the fourth aspect, the same effect as that of the image processing apparatus according to the first aspect can be obtained.
請求項5記載の画像処理プログラムによれば、請求項1記載の画像処理装置と同様の効果を奏することができる。 According to the image processing program of the fifth aspect, the same effect as that of the image processing apparatus according to the first aspect can be obtained.
以下、本発明の好ましい実施形態について、添付図面を参照して説明する。図1は、本発明の一実施形態における画像処理装置としてのプリンタ1の電気的構成を示すブロック図である。
Hereinafter, preferred embodiments of the present invention will be described with reference to the accompanying drawings. FIG. 1 is a block diagram showing an electrical configuration of a
図1に示すように、プリンタ1は、パーソナルコンピュータ(以下「PC」と称する)2から入力された画像データを所定の印刷媒体に印刷することができるように構成されている。詳細は後述するが、本実施形態のプリンタ1は、PC2から入力されたカラー画像データを、プリンタ1の色域(色再現範囲)内のカラー画像データに変換する機能を有している。
As shown in FIG. 1, the
プリンタ1は、CPU11と、ROM12と、RAM13と、フラッシュメモリ14と、印刷ヘッドなどから構成され、印刷媒体(例えば、紙媒体など)への印刷を行う印刷部15と、各種データを入力するように設定したり、印刷媒体を選択する等の操作をユーザが入力可能なユーザ操作部を有する操作パネル16とを備えている。
The
また、プリンタ1は、ケーブル5を介してPC2と接続可能なインターフェイス(I/F)17を備えている。よって、プリンタ1は、ケーブル5及びI/F17を介して、PC20に記憶されていた画像データを得る(プリンタ1内に入力する)ことができる。
The
CPU11は、プリンタ1全体を制御する演算処理装置であり、ROM12には、このCPU11により実行される各種の制御プログラムや、その実行の際に参照される固定値データが格納されている。ROM12には、制御プログラムとして画像処理プログラム12aが記憶されている。画像処理プログラム12aは、後述する図3から図5に示すフローチャートの処理を実行するプログラムである。
The
また、ROM12には、出力RGB→Lab変換テーブル12bと、出力Lab→RGB変換テーブル12cとが格納されている。
The
出力RGB→Lab変換テーブル12bは、プリンタ1におけるデバイス値(RGB値)を均等色空間の値(L*a*b*値(以下、「Lab値」と称する))に変換するテーブルであり、入力値である(R、G,B)の各軸について、0から255の範囲を等分割(例えば、9分割)し、その分割点を通るグリッドの各交点に出力値を記憶したものである。
The output RGB → Lab conversion table 12b is a table for converting device values (RGB values) in the
この出力RGB→Lab変換テーブル12bは、公知の方法により作成される。具体的には、グリッドの各交点にあたるRGB値を入力し、そのときにプリンタ1が記録用紙に形成したパッチの色を測色計により測色してLab値を求めることによって作成される。
The output RGB → Lab conversion table 12b is created by a known method. Specifically, an RGB value corresponding to each intersection of the grid is input, and the color of the patch formed on the recording paper by the
出力Lab→RGB変換テーブル12cは、Lab値をプリンタ1のRGB値に変換するテーブルである。出力Lab→RGB変換テーブル12cの作成方法もまた公知であり、RGB→Lab色変換を行った後、L*、a*、及びb*の各値をそれぞれ変化させた場合の、対応するRGB値を求めることによって作成される。
The output Lab → RGB conversion table 12 c is a table for converting Lab values into RGB values of the
RAM13は、CPU11において制御プログラムを実行する際に必要な各種レジスタ群などが設定されたワーキングエリアや、処理中のデータを一時的に格納するテンポラリエリア等を有しランダムにアクセスできる書き換え可能なメモリである。このRAM13は、入力画像データメモリ13aと、入力RGB→Labメモリ13bと、出力画像データメモリ13cとを有している。入力画像データメモリ13aは、PC2から入力されたカラー画像データ(RGBデータ)を格納する領域である。
The
入力RGB→Labメモリ13bは、入力画像データに埋め込まれていた入力デバイス側のRGB→Lab変換テーブル(図示せず)を格納する領域である。本実施形態では、PC2のディスプレイ(図示せず)が入力デバイスとなるので、入力RGB→Labメモリ13bに格納されるRGB→Lab変換テーブルは、PC2のディスプレイにおけるRGB値をLab値に変換するテーブルである。なお、入力デバイス側のRGB→Lab変換テーブルは、上述した出力RGB→Lab変換テーブル12bと同様に作成される。
The input RGB →
出力画像データメモリ13cは、入力画像データメモリ13aに格納された入力画像データに対し、後述する色変換処理(図4参照)を施した結果として得られた出力画像データ(CMYKデータ)を格納する領域である。 The output image data memory 13c stores output image data (CMYK data) obtained as a result of performing color conversion processing (see FIG. 4) described later on the input image data stored in the input image data memory 13a. It is an area.
フラッシュメモリ14は、書き換え可能な不揮発性のメモリであり、出力色域表面値テーブルメモリ14aを有している。出力色域表面値テーブルメモリ14aは、後述する出力色域表面値テーブル作成処理(図3参照)により作成された出力色域表面値テーブル140(図2参照)を格納する領域である。
The
この出力色域地表面値テーブル140は、出力デバイスであるプリンタ1の色域(色再現範囲)の表面(外郭)に位置する各色について、均等色空間の値(本実施形態では、Lab値)と、均等色空間における色相−彩度平面(本実施形態では、L*a*b*表色系色空間を用いているので、a*−b*平面)の直交座標を極座標に変換した場合における仰角θ及び偏角φの値と、デバイス値であるRGB値とを対応付けたテーブルである。なお、図2は、出力色域表面値テーブル140の内容を示す模式図である。
The output color gamut ground surface value table 140 is a uniform color space value (Lab value in the present embodiment) for each color located on the surface (outside) of the color gamut (color reproduction range) of the
ここで、図3を参照して、出力色域地表面値テーブル140の作成方法について説明する。図3は、出力色域表面値テーブル作成処理を示すフローチャートである。この出力色域表面値テーブル作成処理は、プリンタ1のCPU11により実行される処理であり、プリンタ1の出荷前に行われる。
Here, a method of creating the output color gamut surface value table 140 will be described with reference to FIG. FIG. 3 is a flowchart showing an output color gamut surface value table creation process. This output color gamut surface value table creation process is a process executed by the
出力色域表面値テーブル作成処理が起動されると、まず、出力RGB→Lab変換テーブル12bの表面グリッドを補間により細分する(S21)。表面グリッドを細分化することにより、出力色域地表面値テーブル140の情報量を増やすことができる。 When the output color gamut surface value table creation process is started, first, the surface grid of the output RGB → Lab conversion table 12b is subdivided by interpolation (S21). By subdividing the surface grid, the amount of information in the output color gamut surface value table 140 can be increased.
なお、表面グリッドを細分化する場合、白点である(R,G,B)=(255,255,255)及び黒点である(R,G,B)=(0,0,0)に近いほど細かく分割することが好ましい。L*a*b*表色系色空間を極座標展開した場合、白点及び黒点に近い領域ほど対応点(即ち、(L,θ,φ))がまばらになるので、白点及び黒点の近傍をより細かく分割することにより、対応点を増やすことができるので、均等色空間の表面をより正確に表現することができる。 When the surface grid is subdivided, it is close to (R, G, B) = (255, 255, 255) which is a white spot and (R, G, B) = (0, 0, 0) which is a black spot. It is preferable to divide as finely as possible. When the L * a * b * color system color space is expanded in polar coordinates, the corresponding points (that is, (L, θ, φ)) become sparser in the region closer to the white point and black point, so the vicinity of the white point and black point Since the number of corresponding points can be increased by more finely dividing, the surface of the uniform color space can be expressed more accurately.
また、出力RGB→Lab変換テーブル12bの表面グリッドを補間により細分する場合には、白点及び黒点から離れるほど分割間隔を広くすることが好ましい。白点及び黒点から離れるほど対応点が密になるので、白点及び黒点から離れるほど広い間隔とすることにより、対応点を平均的に配置することができる。 Further, when the surface grid of the output RGB → Lab conversion table 12b is subdivided by interpolation, it is preferable to increase the division interval as the distance from the white point and black point increases. Since the corresponding points become denser as they move away from the white point and the black point, the corresponding points can be arranged on an average by making the interval wider as they move away from the white point and the black point.
S21の処理後、出力RGB→Lab変換テーブル12bに基づき、補間により細分化された表面グリッドに位置するRGB値(Ro,Go,Bo)に対応するLab値(Lo,ao,bo)を得た後、式[1]を用いて、極座標系における仰角θo及び偏角φoの値を求める(S22)。なお、本実施例では、収斂点を無彩色軸上の点、Lの範囲(0〜100)の中心(L=50)、としたので、式[1]のθo の分子はLo−50となっている。 After the processing of S21, Lab values (L o , a o , corresponding to RGB values (R o , G o , B o ) located on the surface grid subdivided by interpolation based on the output RGB → Lab conversion table 12b. After obtaining b o ), the values of elevation angle θ o and declination angle φ o in the polar coordinate system are obtained using equation [1] (S22). In this example, since the convergence point is a point on the achromatic color axis and the center (L = 50) of the L range (0 to 100), the numerator of θ o in the formula [1] is L o −. 50.
S22の処理後、得られた仰角θo及び偏角φoの値と、対応するLab値(Lo,ao,bo)及びRGB値(Ro,Go,Bo)とを、出力色域地表面値テーブル140に登録し(S23)、表面グリッド(補間により細分化された表面グリッド)上の全データに対し、処理が終了したかを確認する(S24)。 After the processing of S22, the obtained values of elevation angle θ o and declination angle φ o , corresponding Lab values (L o , a o , b o ), and RGB values (R o , G o , B o ), It is registered in the output color gamut ground surface value table 140 (S23), and it is confirmed whether processing has been completed for all data on the surface grid (surface grid subdivided by interpolation) (S24).
S24の処理により確認した結果、処理が未だ終了していなければ(S24:No)、S22の処理へ移行し、S22,S23の処理を繰り返し実行する。一方で、S24の処理により確認した結果、補間により細分化された表面グリッド上の全データに対して処理が終了している場合には(S24:Yes)、出力色域表面値テーブル作成処理を終了する。 As a result of checking in the process of S24, if the process is not yet completed (S24: No), the process proceeds to S22, and the processes of S22 and S23 are repeatedly executed. On the other hand, as a result of the confirmation in the processing of S24, when the processing is completed for all the data on the surface grid subdivided by interpolation (S24: Yes), the output color gamut surface value table creation processing is performed. finish.
次に、図4を参照して、本実施形態のプリンタ1が、PC2から入力されたカラー画像データを、プリンタ1の色域内のカラー画像データに変換する色変換処理について説明する。
Next, a color conversion process in which the
図4は、プリンタ1のCPU11により実行される色変換処理を示すフローチャートである。この色変換処理は、PC2から印刷すべきカラー画像データ(入力画像データ)が入力されると起動する処理である。
FIG. 4 is a flowchart showing color conversion processing executed by the
図4に示すように、この色変換処理では、まず、PC2からの入力時にRAM13内の入力画像データメモリ13aに格納された入力画像データを読み出す(S1)。次いで、入力画像データの入力時に入力RGB→Labメモリ13bに格納されたRGB→Lab変換テーブル(図示せず)に基づき、入力画像データに含まれる1画素のRGB値(Ri,Gi,Bi)を、Lab値(Li,ai,bi)に変換する(S2)。
As shown in FIG. 4, in this color conversion process, first, input image data stored in the input image data memory 13a in the
S2の処理後、出力色域表面値テーブル140に基づき、変換されたLab値(Li,ai,bi)が、プリンタ1の色域(色再現範囲)内の値であるかを確認する(S3)。ここで、Lab値(Li,ai,bi)が、プリンタ1の色域内の値であれば(S3:Yes)、出力Lab→RGB変換テーブル12cに基づいて、Lab値(Li,ai,bi)をRGB値(R0,G0,B0)に変換し(S4)、S5の処理へ移行する。 After the process of S2, based on the output color gamut surface value table 140, it is confirmed whether the converted Lab values (L i , a i , b i ) are values within the color gamut (color reproduction range) of the printer 1 (S3). Here, Lab values (L i, a i, b i) is, if the value of the color gamut of the printer 1 (S3: Yes), on the basis of the output Lab → RGB conversion table 12c, Lab values (L i, a i , b i ) are converted into RGB values (R 0 , G 0 , B 0 ) (S4), and the process proceeds to S5.
一方、S3の処理により確認した結果、Lab値(Li,ai,bi)が、プリンタ1の色域から外れる値であれば(S3:No)、Lab値(Li,ai,bi)がプリンタ1の色域内の値となるよう圧縮を行うガマット圧縮処理を実行し(S7)、S5の処理へ移行する。なお、このガマット圧縮処理(S7)の詳細な処理については、図5を参照して後述する。 On the other hand, if the Lab value (L i , a i , b i ) is a value out of the color gamut of the printer 1 (S3: No) as a result of confirmation in the process of S3, the Lab value (L i , a i , A gamut compression process is performed to perform compression so that b i ) is a value within the color gamut of the printer 1 (S7), and the process proceeds to S5. Details of the gamut compression process (S7) will be described later with reference to FIG.
S5では、S4又はS7の処理により得られたRGB値(R0,G0,B0)を、変換テーブル(図示せず)を用いてCMYK値に変換する(S5)。S5の処理により得られたCMYK値は出力画像データメモリ13cに格納される。 In S5, the RGB values (R 0 , G 0 , B 0 ) obtained by the processing in S4 or S7 are converted into CMYK values using a conversion table (not shown) (S5). The CMYK value obtained by the process of S5 is stored in the output image data memory 13c.
S5の処理後、入力画像データにおける全データ(全画素)に対し、処理が終了したかを確認し(S6)、未だ終了していなければ、S2の処理へ移行し、次の画素に対する色変換を行う。一方、S6の処理により確認した結果、入力画像データにおける全データに対して処理が終了していれば(S6:Yes)、この色変換処理を終了する。この色変換処理の実行により、入力デバイスの色域内の色を有する入力画像データは、プリンタ1の色域内の色を有する出力画像データに変換される。
After the process of S5, it is confirmed whether or not the process has been completed for all data (all pixels) in the input image data (S6). If not completed yet, the process proceeds to the process of S2, and color conversion for the next pixel is performed. I do. On the other hand, as a result of checking in the process of S6, if the process has been completed for all data in the input image data (S6: Yes), this color conversion process is terminated. By executing this color conversion process, input image data having a color within the color gamut of the input device is converted into output image data having a color within the color gamut of the
次に、図5を参照して、上述したガマット圧縮処理(S7)について説明する。図5は、色変換処理(図4参照)の中で実行されるガマット圧縮処理(S7)を示すフローチャートである。 Next, the gamut compression process (S7) described above will be described with reference to FIG. FIG. 5 is a flowchart showing the gamut compression process (S7) executed in the color conversion process (see FIG. 4).
図5に示すように、ガマット圧縮処理(S7)では、まず、式[2]を用いて、S2の処理により変換されたLab値(Li,ai,bi)から、L*a*b*表色系色空間の極座標系における仰角θi及び偏角φiの値を求める(S11)。なお、本実施例では、収斂点を無彩色軸上の点、Lの範囲(0〜100)の中心(L=50)、としたので、式[2]のθiの分子はLi−50となっている。 As shown in FIG. 5, in the gamut compression process (S7), first, using the formula [2], from the Lab values (L i , a i , b i ) converted by the process of S2, L * a * The values of elevation angle θ i and declination angle φ i in the polar coordinate system of the b * color system color space are obtained (S11). In this example, since the convergence point is the point on the achromatic color axis and the center (L = 50) of the range (0 to 100) of L, the numerator of θ i in the formula [2] is L i −. 50.
S11の処理後、式[3]に基づき、出力色域表面値テーブル140の中から、S11の処理によって得られた仰角θi及び偏角φiの値に対して、最も近い仰角θo及び偏角φoの値を求め(S12)、出力色域表面値テーブル140に基づいて、S12の処理によって得られた仰角θo及び偏角φoの値から、第1のLab値(Lo1,ao1,bo1)及び第1のRGB値(Ro1,Go1,Bo1)を求める(S13)。 After the process of S11, the closest elevation angle θ o and the values of the elevation angle θ i and the deflection angle φ i obtained by the process of S11 from the output color gamut surface value table 140 based on the equation [3], and The value of the deflection angle φ o is obtained (S12), and based on the output color gamut surface value table 140, the first Lab value (L o1) is calculated from the elevation angle θ o and the deflection angle φ o obtained by the processing of S12. , A o1 , b o1 ) and the first RGB value (R o1 , G o1 , B o1 ) are obtained (S13).
S13の処理により得られた第1のLab値(Lo1,ao1,bo1)は、S2の処理により変換されたLab値(Li,ai,bi)に対し、実施例では均等色空間における無彩色軸上の点、Lab値(50,0,0)を収斂点とする圧縮を行ったときの圧縮点である。 The first Lab values (L o1 , a o1 , b o1 ) obtained by the process of S13 are equal to the Lab values (L i , a i , b i ) converted by the process of S2 in the embodiment. This is a compression point when compression is performed with a point on the achromatic color axis in the color space and a Lab value (50, 0, 0) as the convergence point.
S13の処理後、式[4]に基づき、出力色域表面値テーブル140の中から、S2の処理により変換されたLab値(Li,ai,bi)と最も色差が小さくなる第2のLab値(Lo2,ao2,bo2)及び第2のRGB値(Ro2,Go2,Bo2)を求める(S14)。 After the processing of S13, the second color difference from the Lab values (L i , a i , b i ) converted by the processing of S2 is the smallest from the output color gamut surface value table 140 based on Expression [4]. Lab values (L o2 , a o2 , b o2 ) and second RGB values (R o2 , G o2 , B o2 ) are obtained (S14).
なお、式[4]において、定数kは0から0.5までの値である。この定数kの値が、0に近い程、彩度に重み付けがされ、0.5に近い程、明度に重み付けがされる。この定数kの値は、予めプリンタ1に記憶されている値である。なお、定数kの値を、ユーザが変更できる構成であってもよい。
In equation [4], the constant k is a value from 0 to 0.5. As the value of the constant k is closer to 0, the saturation is weighted, and as the value of the constant k is closer to 0.5, the lightness is weighted. The value of the constant k is a value stored in the
S14の処理後、第1のLab値(Lo1,ao1,bo1)、第1のRGB値(Ro1,Go1,Bo1)、第2のLab値(Lo2,ao2,bo2)、及び第2のRGB値(Ro2,Go2,Bo2)から、式[5]、式[6]、式[7]を用いて、プリンタ1により出力される色を示すRGB値(R0,G0,B0)に変換し(S15)、ガマット圧縮処理(S7)を終了する。 After the processing of S14, the first Lab value (L o1 , a o1 , b o1 ), the first RGB value (R o1 , G o1 , B o1 ), the second Lab value (L o2 , a o2 , b o2 ) and the second RGB value (R o2 , G o2 , B o2 ), using the formula [5], the formula [6], and the formula [7], the RGB value indicating the color output by the printer 1 (R 0 , G 0 , B 0 ) are converted (S15), and the gamut compression process (S7) is terminated.
式[5]により得られるΔE1は、均等色空間上における、S2の処理により変換された(即ち、圧縮元の)Lab値(Li,ai,bi)と第1のLab値(Lo1,ao1,bo1)との色差であり、式[6]により得られるΔE2は、均等色空間上における、圧縮元のLab値(Li,ai,bi)と第2のLab値(Lo2,ao2,bo2)との色差である。 ΔE 1 obtained by the equation [5] is converted into the Lab value (ie, the compression source) Lab value (L i , a i , b i ) and the first Lab value (in the uniform color space). L o1 , a o1 , b o1 ), and ΔE 2 obtained by equation [6] is the original Lab value (L i , a i , b i ) and second value in the uniform color space. The color difference from the Lab value (L o2 , a o2 , b o2 ).
式[7]によれば、均等色空間における圧縮元との色差に応じて、第1のRGB値及び第2のRGB値に乗算される重み付け係数が変化し、得られるRGB値(R0,G0,B0)が変化する。 According to the equation [7], the weighting coefficient multiplied by the first RGB value and the second RGB value changes according to the color difference from the compression source in the uniform color space, and the obtained RGB value (R 0 , G 0 , B 0 ) changes.
式[7]によれば、均等色空間において圧縮元との色差がより小さくなる、即ち、ΔEn(n=1又は2)の値がより小さくなるnを有する第nのRGB値の方が、他方のRGB値より大きな重み付けがされる。従って、プリンタ1により出力される色を示すRGB値(R0,G0,B0)は、異なる2種類のガマット圧縮による2つの圧縮点のうち、より圧縮元の(即ち、入力画像データの)RGB値(Ri,Gi,Bi)に近い圧縮点の特性が反映された値となる。
According to Equation [7], the color difference from the compression source becomes smaller in the uniform color space, that is, the nth RGB value having n with a smaller value of ΔE n (n = 1 or 2). The weighting is greater than the other RGB value. Therefore, the RGB value (R 0 , G 0 , B 0 ) indicating the color output by the
なお、本実施形態では、第2のRGB値が、均等色空間における色差を最小とする圧縮によって得られた圧縮点に対応する値であるので、均等色空間における無彩色軸上の点を収斂点とする圧縮により得られた圧縮点に対応する第1のRGB値に比べてより大きな重み付けがされる。よって、入力画像データの色信号(Ri,Gi,Bi)と圧縮後のプリンタ1の色信号(R0,G0,B0)との色差が大きくなり、彩度及び明度が損なわれることを抑制できる。
In the present embodiment, since the second RGB value is a value corresponding to a compression point obtained by compression that minimizes the color difference in the uniform color space, the points on the achromatic color axis in the uniform color space are converged. A larger weight is given compared to the first RGB value corresponding to the compression point obtained by compression as a point. Therefore, the color difference between the color signal (R i , G i , B i ) of the input image data and the color signal (R 0 , G 0 , B 0 ) of the
ここで、図6は、上述のガマット圧縮処理による圧縮結果を示す模式図である。図6(a)は、L*a*b*表色系色空間における、所定の色相での明度(L)−彩度(C)平面における圧縮結果を示す模式図であり、図6(b)は、L*a*b*表色系色空間における、所定の明度(L)でのa−b平面における圧縮結果を示す模式図である。図6(a)及び図6(b)において、実線Giは入力色域の境界線であり、点線Goは出力色域の境界線である。 Here, FIG. 6 is a schematic diagram showing a compression result by the above-described gamut compression processing. FIG. 6A is a schematic diagram showing a compression result in a lightness (L) -saturation (C) plane at a predetermined hue in the L * a * b * color system color space. ) Is a schematic diagram showing a compression result on the ab plane at a predetermined lightness (L) in the L * a * b * color system color space. In FIGS. 6A and 6B, the solid line Gi is the boundary line of the input color gamut, and the dotted line Go is the boundary line of the output color gamut.
本実施形態のプリンタ1によれば、図6(a)及び図6(b)に示すように、出力色域から外れる入力画像データの色Aは、無彩色軸上の収斂点を、Lの範囲(0〜100)の中心点(L=50)とする圧縮を行ったときの第1の圧縮点P1aと色差最小となる圧縮を行ったときの第2の圧縮点P1bとを、それぞれ、ガマット圧縮処理(図6参照)におけるS13及びS14の処理によって得た後、S15の処理により式[5]から式[7]を用いることにより、色A’が最終的な圧縮点として得られる。
According to the
よって、Lの範囲(0〜100)の中心点(L=50)を収斂点とする圧縮により得られた第1の圧縮点P1aは、圧縮元の色Aとの色差が大きい色となるが、色差最小となる圧縮を行ったときの第2の圧縮点P1bを考慮することにより、圧縮元との色差をより小さくすることができ、より圧縮元の色に近付けることができる。 Therefore, the first compression point P1a obtained by compression with the central point (L = 50) in the L range (0 to 100) as the convergence point is a color having a large color difference from the compression source color A. Considering the second compression point P1b when the compression that minimizes the color difference is performed, the color difference from the compression source can be made smaller and closer to the compression source color.
さらに、本実施形態によれば、色A’を得る際に、圧縮元との色差がより小さい第2の圧縮点P1bに対し、より大きな重み付け係数が乗算されることになるので、好適に圧縮元との色差をより小さくすることができる。 Furthermore, according to the present embodiment, when the color A ′ is obtained, the second compression point P1b having a smaller color difference from the compression source is multiplied by a larger weighting coefficient, so that the compression is preferably performed. The color difference from the original can be made smaller.
また、圧縮元との色差を最小にする圧縮により得られた第2の圧縮点P1bは、他の圧縮元による圧縮点が集中し易い出力色域の尖った部分SH1の近傍に位置するが、第1の圧縮点P1aを考慮することにより、尖った部分SH1へ集中する圧縮点を分散させることができ、圧縮により階調性が損なわれることを防止することができる。 In addition, the second compression point P1b obtained by the compression that minimizes the color difference from the compression source is located in the vicinity of the sharp portion SH1 of the output color gamut where the compression points due to other compression sources tend to concentrate. By considering the first compression point P1a, the compression points concentrated on the pointed portion SH1 can be dispersed, and the gradation can be prevented from being lost due to the compression.
また、図6(a)に示すように、出力色域の抉れ部分SH2の近傍に位置する入力画像データの色Bは、圧縮元との色差を最小にする圧縮により得られた第2の圧縮点P2bを最終的な圧縮点とすると、抉れ部分SH2の底付近に位置する圧縮点がなくなるため、階調崩れが生じる。 Further, as shown in FIG. 6A, the color B of the input image data located in the vicinity of the blurred portion SH2 of the output color gamut is the second obtained by the compression that minimizes the color difference from the compression source. Assuming that the compression point P2b is the final compression point, there is no compression point located near the bottom of the squeezed portion SH2, and gradation collapse occurs.
しかし、本実施形態のプリンタ1によれば、Lの範囲(0〜100)の中心点(L=50)を収斂点とする圧縮によって得られた第1の圧縮点P2aを考慮し、色B’を最終的な圧縮点とするので、抉れ部分SH2の底方向に圧縮点が割り振られることになるため、縮元との色差を最小にする圧縮に起因する階調崩れを抑制することができる。
However, according to the
なお、色差が最小となる圧縮点が2つ以上存在する場合には、上述した式[4]における定数kの値に応じて、即ち、明度に重みをおくか彩度に重みをおくかに応じて、1の圧縮点が選択できるに構成されているものとする。このようにすることにより、色差が最小となる圧縮点が2つ以上存在する場合であっても、上述したガマット圧縮処理(図5参照)により圧縮点を求めることができる。 When there are two or more compression points at which the color difference is minimum, according to the value of the constant k in the above equation [4], that is, whether the lightness is weighted or the chroma is weighted. Accordingly, it is assumed that one compression point can be selected. Thus, even when there are two or more compression points at which the color difference is minimum, the compression point can be obtained by the above-described gamut compression processing (see FIG. 5).
以上、説明した通り、本実施形態のプリンタ1によれば、均等色空間上における圧縮元との色差を最小にする圧縮と無彩色軸上の点(本実施形態では、点Lの範囲(0〜100)の中心点(L=50))を収斂点とする圧縮という、異なる2種類の圧縮条件によって得られた圧縮点に基づき、最終的な出力デバイス(プリンタ1)の色に対応する圧縮点を得るので、各圧縮条件による圧縮の欠点が補われ、ガマット圧縮によって明度や彩度や階調性が極端に損なわれることを防止することができる。
As described above, according to the
また、出力色域の表面(外郭)に尖っている部分や抉れ部分があっても、異なる2種類の圧縮条件によって得られた圧縮点を用いたことによって、1の圧縮条件による圧縮を行った場合に生じ易かった階調崩れを改善することができる。 In addition, even if there is a pointed part or a squeezed part on the surface (outside) of the output color gamut, compression is performed under one compression condition by using compression points obtained by two different compression conditions. This can improve the gradation loss that was likely to occur when
また、圧縮元のLab値と、無彩色軸上の点を収斂点とする圧縮により得られた第1のLab値と、圧縮元との色差を最小にする圧縮により得られた第2のLab値との、色空間上における位置関係に基づいて得られた重み係数を用いて、最終的な圧縮点を得るので、圧縮元の色、無彩色軸上の点を収斂点とする圧縮により得られた圧縮点の色、及び、圧縮元との色差を最小にする圧縮により得られた圧縮点の色との色空間上の位置関係を反映させた最終的な圧縮点を得ることができる。 Also, the Lab value of the compression source, the first Lab value obtained by the compression with the point on the achromatic color axis as the convergence point, and the second Lab obtained by the compression that minimizes the color difference from the compression source. The final compression point is obtained using the weighting coefficient obtained based on the positional relationship between the value and the color space, and is obtained by compression with the original color and the point on the achromatic color axis as the convergence point. It is possible to obtain the final compression point reflecting the positional relationship in the color space with the color of the compression point obtained and the color of the compression point obtained by the compression that minimizes the color difference from the compression source.
特に、本実施形態では、圧縮元のLab値との色差がより小さくなる圧縮点に対する重み付けを大きくするように構成されているので、圧縮元の色と最終的な圧縮点との色差が大きく異なることが抑制される。 In particular, the present embodiment is configured to increase the weighting for the compression point where the color difference from the compression source Lab value is smaller, so the color difference between the compression source color and the final compression point is greatly different. It is suppressed.
また、本実施形態のプリンタ1によれば、プリンタ1の出力色域の色空間の表面の値を出力色域表面値テーブル140として有しているので、圧縮元との色差を最小にする圧縮による圧縮点、及び、無彩色軸上の点を収斂点とする圧縮による圧縮点を効率的に求めることができる。
Further, according to the
以上実施形態に基づき本発明を説明したが、本発明は上記実施形態に何ら限定されるものでなく、本発明の趣旨を逸脱しない範囲内で種々の改良変形が可能であることは容易に推察できるものである。 Although the present invention has been described based on the above embodiments, the present invention is not limited to the above embodiments, and various modifications can be easily made without departing from the spirit of the present invention. It can be done.
例えば、上記実施形態では、図4の色変換処理及び図5のガマット圧縮処理を、プリンタ1により実行される処理として説明したが、プリンタ1以外の画像出力装置(例えば、液晶表示装置など)や、プリンタサーバや、パーソナルコンピュータなどが実行する処理としてもよい。
For example, in the above embodiment, the color conversion process of FIG. 4 and the gamut compression process of FIG. 5 have been described as processes executed by the
また、上記実施形態では、Lab値(50,0,0)を収斂点とする圧縮により第1の圧縮点を得る構成としたが、Lab値(50,0,0)に限らず、無彩色軸上の点を収斂点とする圧縮であれば、同様の効果を得ることができる。 In the above-described embodiment, the first compression point is obtained by compression using the Lab value (50, 0, 0) as the convergence point. However, the first compression point is not limited to the Lab value (50, 0, 0). A similar effect can be obtained if compression is performed with a point on the axis as the convergence point.
また、上記実施形態では、均等色空間として、L*a*b*表色系色空間を用いたが、Luv色空間など、他の均等色空間を適用してもよい。 In the above embodiment, the L * a * b * color system color space is used as the uniform color space, but other uniform color spaces such as a Luv color space may be applied.
また、上記実施形態では、ガマット圧縮処理(図5参照)において、RGB値を用いた処理を行ったが、CMYK値を用いてもよい。このとき、出力色域表面値テーブル140は、RGB値に換えて、CMYK値を用いて作成する。 Moreover, in the said embodiment, although the process using RGB value was performed in the gamut compression process (refer FIG. 5), you may use a CMYK value. At this time, the output color gamut surface value table 140 is created using CMYK values instead of RGB values.
また、上記実施形態では、出力色域表面値テーブル140を、プリンタ1の出荷前に実行される出力色域表面値テーブル作成処理(図3参照)により作成する構成としたが、ユーザが所定の指示を行う毎に、出力色域表面値テーブル作成処理を実行して出力色域表面値テーブル140を作成する構成としてもよい。
In the above embodiment, the output color gamut surface value table 140 is created by the output color gamut surface value table creation process (see FIG. 3) executed before shipment of the
また、上記実施形態では、入力画像データに入力デバイスのプロファイル(上記実施形態では、RGB→Lab変換テーブル)が埋め込まれているものとして説明したが、入力デバイス毎にプロファイルをフラッシュメモリ14に予め格納しておく構成としてもよい。
In the above embodiment, the input device profile (in the above embodiment, the RGB → Lab conversion table) is described as being embedded in the input image data. However, the profile is stored in advance in the
1 プリンタ(出力デバイスの一例、画像処理装置の一例)
14a 出力色域表面値テーブルメモリ(記憶手段の一例)
140 出力色域表面値テーブル(色再現範囲表面情報の一例)
S7 色変換手段の一例、色変換工程の一例、色変換ステップの一例
S13 第1色圧縮手段の一部の一例、第1色圧縮工程の一部の一例、第1色圧縮ステップの一部の一例
S14 第1色圧縮手段の一例、第1色圧縮工程の一部の一例、第1色圧縮ステップの一部の一例
S15 重み付け係数算出手段の一例、第2色圧縮手段の一例、重み付け係数算出工程の一例、第2色圧縮工程の一例、重み付け係数算出ステップの一例、第2色圧縮ステップの一例
1 Printer (an example of an output device, an example of an image processing apparatus)
14a Output color gamut surface value table memory (an example of storage means)
140 Output color gamut surface value table (example of color reproduction range surface information)
S7 An example of color conversion means, an example of a color conversion process, an example of a color conversion step S13 An example of a part of the first color compression means, an example of a part of the first color compression process, a part of the first color compression step Example S14 Example of first color compression unit, example of part of first color compression process, example of part of first color compression step S15 example of weighting coefficient calculation unit, example of second color compression unit, calculation of weighting coefficient Example of process, example of second color compression process, example of weighting coefficient calculation step, example of second color compression step
Claims (5)
前記色変換手段は、
前記入力カラーデータが示す色が前記第2の色再現範囲から外れている場合に、該前記第2の色再現範囲から外れている色を圧縮元とし、該圧縮元の色を、第1の圧縮条件によって前記第2の色再現範囲内の色に圧縮したときの第1圧縮点と、前記第1の圧縮条件とは異なる第2の圧縮条件によって前記第2の色再現範囲内の色に圧縮したときの第2圧縮点とを算出する第1色圧縮手段と、
前記圧縮元の色と前記第1色圧縮手段により得られた前記第1圧縮点の色及び前記第2圧縮点の色との色空間上における位置関係に基づき、前記第1圧縮点に対応する出力デバイスの色及び前記第2圧縮点に対応する前記出力デバイスの色の各々に対する重み付け係数を算出する重み付け係数算出手段と、
前記重み付け係数算出手段により算出された重み付け係数により各々重み付けした前記第1圧縮点に対応する出力デバイスの色及び前記第2圧縮点に対応する出力デバイスの色を用いて、変換後の前記出力デバイスの色に対応する第3の圧縮点を算出する第2色圧縮手段とを含んで構成されることを特徴とする画像処理装置。 An image processing apparatus comprising color conversion means for converting a color within a first color reproduction range indicated by input color data into a color within a second color reproduction range depending on an output device,
The color conversion means includes
When the color indicated by the input color data is out of the second color reproduction range, the color out of the second color reproduction range is set as the compression source, and the color of the compression source is set as the first color. A first compression point when compressed to a color within the second color reproduction range according to the compression condition, and a color within the second color reproduction range according to a second compression condition different from the first compression condition. First color compression means for calculating a second compression point when compressed;
Corresponding to the first compression point based on the positional relationship in the color space between the color of the compression source and the color of the first compression point and the color of the second compression point obtained by the first color compression means. Weighting coefficient calculating means for calculating a weighting coefficient for each of the color of the output device and the color of the output device corresponding to the second compression point;
The output device after conversion using the color of the output device corresponding to the first compression point and the color of the output device corresponding to the second compression point each weighted by the weighting coefficient calculated by the weighting coefficient calculation means And a second color compression means for calculating a third compression point corresponding to each color.
前記第2の圧縮条件は、色空間における無彩色軸上の点を圧縮の収斂点として用いることであることを特徴とする請求項1記載の画像処理装置。 The first compression condition is to minimize a color difference between a color indicated by the input color data and a color within a second color reproduction range;
The image processing apparatus according to claim 1, wherein the second compression condition is to use a point on an achromatic color axis in a color space as a convergence point of compression.
前記第1色圧縮手段は、前記記憶手段に記憶される前記色再現範囲表面情報を用いて、前記第1圧縮点及び前記第2圧縮点を算出することを特徴とする請求項1又は2に記載の画像処理装置。 For each of a plurality of colors located on the surface of the second color reproduction range, a memory for storing color reproduction range surface information in which coordinates on the color space indicating the color and polar coordinates corresponding to the color are associated with each other With means,
3. The first color compression unit calculates the first compression point and the second compression point using the color reproduction range surface information stored in the storage unit. The image processing apparatus described.
前記色変換工程は、
前記入力カラーデータが示す色が前記第2の色再現範囲から外れている場合に、該前記第2の色再現範囲から外れている色を圧縮元とし、該圧縮元の色を、第1の圧縮条件によって前記第2の色再現範囲内の色に圧縮したときの第1圧縮点と、前記第1の圧縮条件とは異なる第2の圧縮条件によって前記第2の色再現範囲内の色に圧縮したときの第2圧縮点とを算出する第1色圧縮工程と、
前記圧縮元の色と前記第1色圧縮工程により得られた前記第1圧縮点に対応する出力デバイスの色と前記第2圧縮点の色との色空間上における位置関係に基づき、前記第1圧縮点の色及び前記第2圧縮点に対応する前記出力デバイスの色の各々に対する重み付け係数を算出する重み付け係数算出工程と、
前記重み付け係数算出工程により算出された重み付け係数により重み付けした前記第1圧縮点に対応する出力デバイスの色及び前記第2圧縮点対応する出力デバイスの色を用いて、変換後の前記出力デバイスの色に対応する第3の圧縮点を算出する第2色圧縮工程とを含んで構成されることを特徴とする画像処理方法。 An image processing method including a color conversion step of converting a color in a first color reproduction range indicated by input color data into a color in a second color reproduction range depending on an output device,
The color conversion step includes
When the color indicated by the input color data is out of the second color reproduction range, the color out of the second color reproduction range is set as the compression source, and the color of the compression source is set as the first color. A first compression point when compressed to a color within the second color reproduction range according to the compression condition, and a color within the second color reproduction range according to a second compression condition different from the first compression condition. A first color compression step of calculating a second compression point when compressed;
Based on the positional relationship in the color space between the color of the compression source, the color of the output device corresponding to the first compression point obtained by the first color compression step, and the color of the second compression point, the first A weighting coefficient calculating step of calculating a weighting coefficient for each of the color of the compression point and the color of the output device corresponding to the second compression point;
The color of the output device after conversion using the color of the output device corresponding to the first compression point and the color of the output device corresponding to the second compression point weighted by the weighting coefficient calculated in the weighting coefficient calculation step And a second color compression step of calculating a third compression point corresponding to the image processing method.
前記色変換処理は、
前記入力カラーデータが示す色が前記第2の色再現範囲から外れている場合に、該前記第2の色再現範囲から外れている色を圧縮元とし、該圧縮元の色を、第1の圧縮条件によって前記第2の色再現範囲内の色に圧縮したときの第1圧縮点と、前記第1の圧縮条件とは異なる第2の圧縮条件によって前記第2の色再現範囲内の色に圧縮したときの第2圧縮点とを算出する第1色圧縮ステップと、
前記圧縮元の色と前記第1色圧縮ステップにより得られた前記第1圧縮点の色及び前記第2圧縮点の色との色空間上における位置関係に基づき、前記第1圧縮点に対応する出力デバイスの色及び前記第2圧縮点に対応する出力デバイスの色の各々に対する重み付け係数を算出する重み付け係数算出ステップと、
前記重み付け係数算出ステップにより算出された重み付け係数により重み付けした前記第1圧縮点に対応する出力デバイスの色及び前記第2圧縮点に対応する出力デバイスの色を用いて、変換後の前記出力デバイスの色に対応する第3の圧縮点を算出する第2色圧縮ステップとを含んで構成されることを特徴とする画像処理プログラム。
An image processing program for causing an image processing apparatus to execute a color conversion process for converting a color in a first color reproduction range indicated by input color data into a color in a second color reproduction range depending on an output device. ,
The color conversion process
When the color indicated by the input color data is out of the second color reproduction range, the color out of the second color reproduction range is set as the compression source, and the color of the compression source is set as the first color. A first compression point when compressed to a color within the second color reproduction range according to the compression condition, and a color within the second color reproduction range according to a second compression condition different from the first compression condition. A first color compression step for calculating a second compression point when compressed;
Corresponding to the first compression point based on the positional relationship in the color space between the color of the compression source and the color of the first compression point and the color of the second compression point obtained by the first color compression step. A weighting coefficient calculating step for calculating a weighting coefficient for each of the color of the output device and the color of the output device corresponding to the second compression point;
Using the color of the output device corresponding to the first compression point and the color of the output device corresponding to the second compression point weighted by the weighting factor calculated in the weighting factor calculation step, An image processing program comprising: a second color compression step for calculating a third compression point corresponding to a color.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2008252615A JP2010087693A (en) | 2008-09-30 | 2008-09-30 | Apparatus, method and program for image processing |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2008252615A JP2010087693A (en) | 2008-09-30 | 2008-09-30 | Apparatus, method and program for image processing |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2010087693A true JP2010087693A (en) | 2010-04-15 |
Family
ID=42251228
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2008252615A Pending JP2010087693A (en) | 2008-09-30 | 2008-09-30 | Apparatus, method and program for image processing |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2010087693A (en) |
-
2008
- 2008-09-30 JP JP2008252615A patent/JP2010087693A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4389976B2 (en) | Image processing apparatus and image processing program | |
JP5067276B2 (en) | Color conversion method, color conversion table generated by the color conversion method, image processing apparatus, and color conversion program | |
US7755795B2 (en) | Color conversion method and profile generation method | |
JP5630115B2 (en) | Color processing apparatus and program | |
US10097732B2 (en) | Color conversion method, non-transitory recording medium storing computer readable program, and image processing apparatus | |
JP2006340105A (en) | Image processing method, profile generating method, and image processing apparatus | |
JP2009260473A (en) | Color processing method and apparatus, program, and recording medium | |
JP5257158B2 (en) | Color conversion apparatus, color conversion method and program | |
JP2008123291A (en) | Color processing apparatus and program | |
WO2013133335A1 (en) | Color reproduction method, color reproduction system, color reproduction program, and color reproduction device | |
JP2008177783A (en) | Color conversion device and program | |
JP2010016533A (en) | Image processor, image processing method and image processing program | |
JP5206428B2 (en) | Color processing apparatus and program | |
JP2010087693A (en) | Apparatus, method and program for image processing | |
JP2011205467A (en) | Color processing apparatus, and program | |
JP4848903B2 (en) | Color processing apparatus, color processing method, and program | |
JP2017135683A (en) | Generation device, and computer program | |
US20100195125A1 (en) | Image conversion device, image conversion method, and conversion program | |
JP4930503B2 (en) | Image processing apparatus and image processing program | |
JP2005210225A (en) | Image processor and image processing method | |
JP2011024031A (en) | Color processing apparatus and program | |
JP2008153992A (en) | Color gamut generating device, color gamut generating method and color gamut generating program | |
JP2008160298A (en) | Color gamut generator, color gamut generation method, color gamut generation program and color converter | |
JP2005197953A (en) | Image processor, image forming apparatus, method for generating printer profile, computer program, and recording medium | |
JP2009272832A (en) | Image processing apparatus, method, and program |