JP3866129B2 - Color conversion definition creation method, color conversion definition creation device, and color conversion definition creation program - Google Patents

Color conversion definition creation method, color conversion definition creation device, and color conversion definition creation program Download PDF

Info

Publication number
JP3866129B2
JP3866129B2 JP2002082374A JP2002082374A JP3866129B2 JP 3866129 B2 JP3866129 B2 JP 3866129B2 JP 2002082374 A JP2002082374 A JP 2002082374A JP 2002082374 A JP2002082374 A JP 2002082374A JP 3866129 B2 JP3866129 B2 JP 3866129B2
Authority
JP
Japan
Prior art keywords
color
coordinate
space
color reproduction
color space
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2002082374A
Other languages
Japanese (ja)
Other versions
JP2003283859A (en
Inventor
高宏 岡本
Original Assignee
富士フイルムホールディングス株式会社
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 富士フイルムホールディングス株式会社 filed Critical 富士フイルムホールディングス株式会社
Priority to JP2002082374A priority Critical patent/JP3866129B2/en
Publication of JP2003283859A publication Critical patent/JP2003283859A/en
Application granted granted Critical
Publication of JP3866129B2 publication Critical patent/JP3866129B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Description

【0001】
【発明の属する技術分野】
本発明は、画像を入力して画像データを得る入力デバイスにより得られた画像データを、画像データに基づいて画像を出力する出力デバイスで画像出力した場合に好適な色調子が得られるように色変換を行なう基になる色変換定義を作成する色変換定義作成方法、色変換定義作成装置、および好適な色調子が得られる色変換定義を作成する色変換定義作成プログラムに関する。
【0002】
【従来の技術】
例えば、記録された画像を読み取って画像データを得るカラースキャナや、固体撮像素子上に被写体の画像を結像して読み取ることにより画像データを得るDSC(ディジタルスチールカメラ)等、画像を入力して画像データを得る、様々なタイプの入力デバイスが知られている。これらの入力デバイスでは、画像データは、例えばR(レッド)、G(グリーン)、B(ブルー)の3色についてそれぞれ例えば0〜255等の決まった範囲のデータで表わされ、一旦入力デバイスを用いて画像データに変換すると、その画像データによって表わされる画像は、そのR、G、Bからなる色空間内の、その入力デバイスに依存した色再現領域内の色に制限される。
【0003】
また、画像データに基づいて画像を出力する出力デバイスについても、例えば、印画紙上をレーザ光で露光してその印画紙を現像することにより印画紙上に画像を記録する写真プリンタ、電子写真方式やインクジェット方式などの方式で用紙上に画像を記録するプリンタ、輪転機を回して多量の印刷物を作成する印刷機、画像データに基づいて表示画面上に画像を表示するCRTディスプレイやプラズマディスプレイ等の画像表示装置等、様々なタイプの出力デバイスが知られているが、これらの出力デバイスについても上述の入力デバイスと同様、各出力デバイスに応じた色再現領域が存在する。すなわち、出力デバイスは、例えばR、G、B3色を表現する画像データやC(シアン)、M(マゼンタ)、Y(イエロー)、K(墨)の4色を表現する画像データに基づいて様々な色を表現することができるが、その表現できる色は、出力デバイス色空間(例えばRGB空間、CMYK空間等)のある色再現領域内(例えばR、G、Bそれぞれについて0〜255の範囲の数値で表わされる色再現領域内等)に制限される。このような入力デバイスや出力デバイスにおける色再現領域はカラーガマット(Color Gamut)と称される。
【0004】
また、例えばある1つの画像データ(例えば(R、G、B)=(50,100,200)を表わす画像データ)であってもその画像データに基づいて得られる画像の色は出力デバイスの種類により異なる。この点は入力デバイスと出力デバイスとの間でも同様であり、ある入力デバイスで得られた(R、G、B)=(50,100,200)の画像データをそのまま用いてある出力デバイスで画像を出力しても、入力デバイスで入力される元になった画像の色と出力デバイスで出力された画像の色は一般には一致しない。したがって、ある入力デバイスで画像を読み取って画像データを得、その画像データを基にして、ある出力デバイスで元の画像を再現しようとしたとき、入力デバイスで得られた画像データをそのまま出力デバイスに送るのではなく、その間で画像データを変換する必要がある。ここでは画像の色に着目しており、この画像データの変換を色変換(ガマットマッピング(Gamut Mapping))と称する。
【0005】
上述したように、色再現領域は各デバイスによって異なるとともに、数値上同一の画像データであっても各デバイスにおいて表現される色はそれぞれに異なっている。そこで、色変換(ガマットマッピング)を行なうにあたっては、デバイスには依存しない共通色空間(Device Independent Dataの空間)、例えばL***色空間等を中間に置き、入力デバイスで得られた入力デバイスに依存した色空間上の画像データを共通色空間上の画像データに変換してその共通色空間上でガマットマッピングを行ない、そのガマットマッピングを行なった後の画像データを、出力デバイスに依存した色空間上の画像データに変換するという手法が採用されている(例えば特開昭60−105376号公報、特開昭61−288662号公報、特開平4−196675号公報参照)。
【0006】
このように、従来は共通色空間上でガマットマッピングが行なわれているが、この共通色空間でのガマットマッピングは、例えばL***色空間上ではL*軸、a*軸、b*軸の3軸からなる3次元空間上でのマッピングであり、自由度が大きく、如何ようにもマッピングを行なうことが可能であるが、その反面、自由度が大き過ぎ、マッピングのための調整パラメータの設定が困難であって、結果として、マッピング後の画像に調子の不連続性(調子のジャンプや階調のつながり悪さ)を来たす可能性が高く、また不自然な印象を与える画像となってしまうことも多い。
【0007】
一方、最終的に必要な画像データは出力デバイスに依存した色空間(出力色空間)における画像データであることから、出力色空間上の画像データに変換し、その出力色空間(例えばRGB空間)上で、R、G、Bそれぞれについて例えば0〜255の範囲から食み出たデータを、負のデータについては0に、255を越えるデータについては255にクリップすることによりR、G、Bそれぞれのデータを0〜255の範囲内に圧縮する、といった手法が提案されている(特開平2−214266号公報(CMY空間で圧縮)、特開平4−334267号公報(濃度で圧縮))。これは、単純な手法ではあるが、いわば出力色空間でのガマットマッピングの一例に相当する。
【0008】
この出力色空間上でガマットマッピングを行なうと、出力色空間は、例えばRGB等、人間の色の感覚に合った色空間であるため、共通色空間でガマットマッピングを行なった場合に生じやすい調子の不連続性や不自然な印象の画像となってしまうという不都合を避けることができる。
【0009】
しかしながら、出力色空間でのマッピングは、その出力色空間を規定する、例えばR,G,Bの3軸それぞれについて独立に1次元的にマッピングを行なうのが基本であるため、自由度が低く、上述したように、R,G,Bそれぞれについて例えば0〜255の範囲から食み出たデータを単純に0又は255にクリップして色再現領域(ガマット)の境界(R,G,Bそれぞれについて0〜255の数値の立方体の表面)にマッピングする程度の手法にとどまっており、特に色再現領域(カラーガマット)の境界近傍については1つのデバイスの色再現領域から別のデバイスの色再現領域に精度良く写像することが難しいという問題がある。
【0010】
【発明が解決しようとする課題】
このような背景の下で、入力デバイスに依存した入力RGB色空間における、その入力デバイスの色再現領域の境界表面と出力デバイスに依存した出力RGB色空間における、その出力デバイスの色再現領域の表面に相互に対応する点を求めることによりマッピングの方向を決め、実際のマッピングはデバイス非依存の、例えばL***色空間で行なうというマッピング法が提案されている(特開2001−103329号公報参照)。
【0011】
このマッピング法によれば、デバイスに依存した、人間の感覚に適合した色空間でマッピングの方向を定めるものであるため、マッピング特性の調整が容易であり、しかも、実際のマッピングはデバイス非依存の共通色空間で行なうため、デバイスの色再現領域の境界近傍を含め高精度なマッピングを行なうことができる。
【0012】
しかし、上記のマッピング法を採用することができるのは、入力デバイスにより読み取られる画像上に表現することが可能な色の領域が、その入力デバイスに依存した色空間(上記の例にいう入力RGB色空間)の、その入力デバイスの色再現領域(例えば、R,G,Bのいずれについても0〜255の数値を持つ立方体領域)に一致する場合に限られる。
【0013】
これに対し、例えば多数のカラーパッチを配列したカラーチャートをリバーサルフィルム上に形成し、このリバーサルフィルム上に形成されたカラーチャートをカラースキャナで読み取って、上記の特開2001−103329号公報に開示されたマッピング法に従ってマッピングを行なうことを考えたとき、そのリバーサルフィルム上のカラーチャートをカラースキャナで読み取ったときの、そのカラースキャナに依存した色空間(例えば入力RGB色空間)上における、そのカラーチャート上に表現された色が占める領域は、一般的には、そのカラースキャナの色再現領域である、R,G,Bのいずれもが0〜255の範囲内の値をとる立方体領域全域には広がらず、その立方体領域の中の一部領域を占めるに過ぎない。しかも、同一のカラーチャートであっても、カラースキャナの種類が異なるなど、そのカラーチャートを読み取る入力デバイスが異なれば、その入力デバイスに依存した色空間における、そのカラーチャート上に表現された色が占める領域の広がりや形状が異なることになる。
【0014】
このように、入力デバイスにより読み取られる画像上に表現することが可能な色の領域がその入力デバイスに依存した色空間におけるその入力デバイスの色再現領域全域には広がっておらずその一部領域にのみ広がっている場合は、上記の特開2001−103329号公報に提案されたマッピング法を採用してもそのマッピング法の優れた性能が十分には発揮されず、また、同一のカラーチャートであってもカラースキャナの種類等によりそのカラーチャート上に表現された色が占める領域が異なることから、カラースキャナの種類により上記のマッピング法の効果の程度が異なるという問題がある。
【0015】
本発明は、上記事情に鑑み、リバーサルフィルム等の画像記録媒体上に表現することが可能な色の領域の広がりが入力デバイスの色再現領域の一部領域にとどまる場合や、入力デバイスによってその一部領域の広さや形状が異なる場合であっても、人間の色の感覚に適合した、かつ高精度な色変換を行なう色変換定義を作成することのできる色変換定義作成方法、色変換定義作成装置、および、コンピュータをそのような色変換定義作成装置として動作させることのできる色変換定義作成プログラムを提供することを目的とする。
【0016】
【課題を解決するための手段】
上記目的を達成する本発明の色変換定義作成方法は、画像記録媒体上に記録された画像を入力デバイスで読み取って得た入力画像データを、画像データに基づいて画像を出力する出力デバイスに適合した出力画像データに変換するための色変換定義を作成する色変換定義作成方法において、
上記画像記録媒体上に表現することが可能な色の領域を表わす第1の色再現領域を内包するとともにその第1の色再現領域の表面に沿って広がる複数の平面で形成された多面体形状の第2の色再現領域を決定する色再現領域決定過程と、
上記第2の色再現領域全域が、入力デバイスに依存した第1の色空間におけるその入力デバイスの第3の色再現領域全域に対応づけられるように、第2の色再現領域の各点に各座標を割り当てて第2の色空間を形成することにより、その第2の色空間の座標と、デバイス非依存の共通色空間の座標との間の対応関係を決定する座標対応付過程と、
共通色空間における第2の色再現領域内の座標を、画像データに基づく画像を出力する出力デバイスに依存した第3の色空間におけるその出力デバイスの第4の色再現領域をその出力デバイスのプロファイルに従って共通色空間に写像したときの、その共通色空間における第4の色再現領域内の座標に変換するためのその共通色空間上でのマッピング定義を作成するマッピング定義作成過程と、
上記第1の色空間上の第1の座標を上記第2の色空間上の第2の座標に変換しその第2の座標を上記共通色空間上の第3の座標に変換しその第3の座標を上記マッピング定義に従ってその共通色空間上の第4の座標に変換しその第4の座標を上記第3の色空間上の第5の座標に変換したときと同一の変換を行なうための、第1の座標と第5の座標との間の色変換定義を作成する色変換定義作成過程とを有することを特徴とする。
【0017】
本発明の色変換定義作成方法では、リバーサルフィルム等の画像記録媒体上に表現することが可能な色の領域を表わす第1の色再現領域を多面体で取り囲んだ多面体形状の第2の色再現領域を決定し、入力デバイスに依存した第1の色空間におけるその第2の色再現領域全域がその入力デバイスの色再現領域である第3の色再現領域(例えば入力RGB色空間におけるR,G,B=0〜255の立方体形状の色再現領域)の全域に対応づけられるようにマッピングを行なう。これにより、画像記録媒体上に表現することが可能な色の領域が、第3の色再現領域(入力デバイスの色再現領域である、例えばR,G,B=0〜255の立方体領域)の全域に広げられる。
【0018】
本発明の色変換定義作成方法は、このようなマッピングを行なった上で、後は、例えば特開2001−103329号公報にて提案されたマッピング法を採用して、共通色空間におけるマッピング定義を作成する。こうすることにより、画像記録媒体上に表現することが可能な色の領域が本来は入力デバイスの色再現領域(第3の色再現領域)のうちの一部の領域のみに広がり、あるいはその広がりの程度や広がりの形状が入力デバイス等により異なる場合であっても、常に安定的に高精度な色変換定義を作成することができる。
【0019】
ここで、本発明の色変換定義作成方法において、上記色再現領域決定過程は、上記共通色空間において多面体形状となる第2の色再現領域を決定する過程であることが好ましい。
【0020】
第1の色再現領域を多面体形状の第2の色再現領域で囲うにあたっては、入力デバイスに依存した第1の色空間上で行なってもよいが、その場合、画像記録媒体(画像記録媒体上のカラーチャート)が同一であっても、入力デバイスにより第1の色再現領域が異なり、入力デバイスが異なるごとに第2の色再現領域をあらたに決定し直す必要を生じる場合がある。
【0021】
これに対し、共通色空間上で、第1の色再現領域を多面体形状の第2の色再現領域で囲うことにより、画像記録媒体(画像記録媒体上のカラーチャート)が同一であれば、入力デバイスの影響を受けずに、第2の色再現領域を決定することができる。
【0022】
また、上記本発明の色変換定義作成方法において、上記色再現領域決定過程は、白、黒、レッド、グリーン、ブルー、シアン、マゼンタ、およびイエローを表わす各点を各頂点とする12面体形状の第2の色再現領域を決定する過程であることが好ましい。
【0023】
上記の12面体で囲うことにより、第1の色再現領域に極めて近い形状の第2の色再現領域を決定することができる。ただし、本発明においては第2の色再現領域は12面体である必要はなく、第1の色再現領域の形状にもよるが、その第1の色再現領域を6面体で囲い、6面体形状の第2の色再現領域を決定してもよい。
【0024】
ここで、上記本発明の色変換定義作成方法において、上記マッピング定義作成過程は、共通色空間における第2の色再現領域内の第1の座標点に対応する、その共通色空間における第4の色再現領域内の第2の座標点を求めるにあたり、
上記第1の座標点に基づいて、共通色空間における第2の色再現領域に第1の基準座標点を求め、
上記第2の色空間および上記第3の色空間のうちの少なくとも一方の色空間における座標操作を含む第1のアルゴリズムに基づいて、上記第1の基準座標点に対応する第2の基準座標点を、その共通色空間における第4の色再現領域に求め、
上記第1の基準座標点と上記第2の基準座標点との差分を表わす基本差分ベクトルを用いた第2のアルゴリズムに基づいて、上記第1の座標点に対応する上記第2の座標点を求める第1過程を含むものであることが好ましい。
【0025】
この場合、上記の座標対応付過程を置いたことで特開2001−103329号公報で提案されていたマッピング法の欠点が解消されたことと相俟って、高精度な色変換定義が作成される。
【0026】
また、上記本発明の色変換定義作成方法は、上記マッピング定義作成過程が、第1の座標点に基づいて、第1の基準座標点を、共通色空間における第2の色再現領域の境界上に求めるものであり、
上記第1のアルゴリズムに基づいて、第2の基準座標点を、共通色空間における第4の色再現領域の境界上に求めるものであることが好ましい。
【0027】
第1の基準座標点、第2の基準座標点を、共通色空間における、それぞれ第2の色再現領域、第4の色再現領域の各境界上に求めることにより、容易に、色変換の方向の指針となる基本差分ベクトルを求めることができる。
【0028】
この場合において、上記マッピング定義作成過程における上記第1過程が、
共通色空間における第2の色再現領域とその共通色空間における第4の色再現領域との共通領域内の所定の座標変換基準座標点と上記第1の座標点とを結ぶ直線と、その共通色空間における第2の色再現領域の境界との交点を上記第1の基準座標点として求め、
その第1の基準座標点が、共通色空間における第4の色再現領域から外れた座標点であった場合に、その第1の基準座標点を第3の色空間に写像して第3の色空間における第4の色再現領域の境界上にマッピングし、その境界上へのマッピングにより得られた座標点を共通色空間に写像することにより、その写像により共通色空間上に求められた、共通色空間における第4の色再現領域の境界上の座標点を上記第2の基準座標点として求め、
上記座標変換基準座標点と上記第2の基準座標点とを結ぶ直線と、上記第1の座標点を通り上記基本差分ベクトルの方向と平行に引いた直線との交点を、その第1の座標点に対応する第2の座標点として求めるものであってもよい。
【0029】
また、上記マッピング定義作成過程における上記第1過程は、
共通色空間における上記第2の色再現領域とその共通色空間における第4の色再現領域との共通領域内の所定の座標変換基準座標点と上記第1の座標点とを結ぶ直線と、その共通色空間における第2の色再現領域の境界との交点を上記第1の基準座標点として求め、
その第1の基準座標点が、共通色空間における上記第4の色再現領域内の座標点であった場合に、その共通色空間における第4の色再現領域の境界のうちの、その共通色空間における第2の色再現領域から外れた部分の座標点を第2の色空間に写像してその第2の色空間における第2の色再現領域の境界上にマッピングし、その境界上へのマッピングにより得られた座標点を共通色空間に写像することによりその共通色空間に座標点を求める座標変換プロセスを経ることにより、第1の基準座標点に一致あるいは所定の判定基準に照らして第1の基準座標点に近接した座標点を求め、その座標点に対応する、上記座標変換プロセスを経る前の、共通色空間における上記第4の色再現領域の境界上の座標点を第2の基準座標点として求め、
上記座標変換基準座標点と上記第2の基準座標点とを結ぶ直線と、上記第1の座標点を通り上記基本差分ベクトルの方向と平行に引いた直線との交点を、その第1の座標点に対応する第2の座標点として求めるものであってもよい。
【0030】
あるいは、上記マッピング定義作成過程における上記第1過程が、
共通色空間における上記第2の色再現領域とその共通色空間における上記第4の色再現領域との共通領域内の所定の座標変換基準座標点と上記第1の座標点とを結ぶ直線と、その共通色空間における第2の色再現領域の境界との交点を第1の基準座標点として求め、
上記第1の基準座標点が、共通色空間における第4の色再現領域内の座標点であった場合に、上記直線と、その共通色空間における第4の色再現領域の境界との交点を第3の基準座標点として求め、その第3の基準座標点を第2の色空間に写像して第2の色空間における第2の色再現領域の境界上にマッピングし、その境界上へのマッピングにより得られた座標点を共通色空間に写像することにより、その共通色空間における上記第2の色再現領域の境界上に第4の基準座標点を求め、上記第1の基準座標点を通る、第3の基準座標点と第4の基準座標点とを結ぶ直線と平行な直線と、共通色空間における上記第4の色再現領域の境界との交点を上記第2の基準座標点として求め、
上記座標変換基準座標点と上記第2の基準座標点とを結ぶ直線と、上記第1の座標点を通り上記基本差分ベクトルの方向と平行に引いた直線との交点を、その第1の座標点に対応する第2の座標点として求めるものであってもよい。
【0031】
さらには、上記マッピング定義作成過程における上記第1過程は、
共通色空間における第2の色再現領域とその共通色空間における第4の色再現領域との共通領域内の所定の座標変換基準座標点と上記第1の座標点とを結ぶ直線と、その共通色空間における第2の色再現領域の境界との交点を第1の基準座標点として求め、
上記第1の基準座標点を第2の色空間に写像して第2の色空間上の座標点を求め、その第2の色空間上の座標点の座標値に対応した座標値を持つ第3の色空間上の座標点を求め、その第3の色空間上の座標点を共通色空間に写像することにより、その写像により共通色空間上に求められた、共通色空間における第4の色再現領域の境界上の座標点を上記第2の基準座標点として求め、
上記座標変換基準座標点と上記第2の基準座標点と結ぶ直線と、上記第1の座標点を通り上記基本差ベクトルの方向と平行に引いた直線との交点を、上記第1の座標点に対応する第2の座標点として求めるものであってもよい。
【0032】
ここで、第1の座標点に対応する第2の座標点を求める上記の各種の態様において、上記マッピング定義作成過程における上記第1過程が、上記第2の座標点を求めるにあたり、座標変換基準座標点と第2の基準座標点とを結ぶ直線と、上記第1の座標点を通り基本差分ベクトルの方向と平行に引いた直線との交点を求めることに代え、座標変換基準座標点と第1の基準座標点とを結ぶ直線とその座標変換基準座標点を含む所定領域の境界との交点を通るとともに第2の基準座標点を通る直線と、上記第1の座標点を通り基本差ベクトルの方向と平行に引いた直線との交点を、その第1の座標点に対応する第2の座標点として求めるものであってもよい。
【0033】
こうすることにより、座標変換基準座標点のまわりに、マッピングされずれにそのままの色が保存される領域を確保することができる。
【0034】
また、第1の座標点に対応する第2の座標点を求める上記の各種の態様において、上記マッピング定義作成過程における上記第1過程が、座標変換基準座標点と上記第1の座標点とを結ぶ直線と、共通色空間における第4の色再現領域の境界との交点からなる第3の基準座標点を求め、第1の基準座標点と第2の基準座標点との差分を表わす基準差分ベクトルに代えて、第1の基準座標点を通り、その第1の基準座標点と第2の基準座標点との差分を表わす第1の差分ベクトルの方向と、第1の基準座標点と第3の基準座標点との差分を表わす第2の差分ベクトルの方向とに基づいて求められた方向に引いた直線と、その共通色空間における第4の色再現領域の境界との交点を第5の基準座標点としたときに、第1の基準座標点と第5の基準座標点との差分を表わすベクトルを基準差分ベクトルとするものであってもよい。
【0035】
こうすることにより、マッピングの方向をかなり自由に調整することができる。
【0036】
さらに、第1の座標点に対応する第2の座標点を求める上記の各種の態様において、上記マッピング定義作成過程における上記第1過程は、座標変換基準座標点として、共通色空間のグレー軸上の点を選択したものであることが好ましい。
【0037】
座標変換基準座標点は、マッピングされずにそのままの色が保存される。したがってこの座標変換基準座標点をグレー軸上にとることによりグレーバランスを保存することができる。
【0038】
また、上記本発明の色変換定義作成方法において、
上記マッピング定義作成過程が、上記第1過程の前段に、共通色空間における第2の色再現領域の白の座標点を、共通色空間における第4の色再現領域の白の座標点に一致させるように変換する順応変換アルゴリズムを用いて、共通色空間における第2の色再現領域内の座標点を変換する第2過程を有し、
上記マッピング定義作成過程における上記第1過程が、上記第2過程を経ることにより得られた座標点を変換対象とし、その変換対象の座標点を、共通色空間における上記第2の色再現領域に代わりその第2の色再現領域がさらに順応変換アルゴリズムを用いて変換されてなる新たな第2の色再現領域を採用して、変換するものであることが好ましい。
【0039】
この場合に、上記マッピング定義作成過程における上記第2過程が、順応変換アルゴリズムとして、共通色空間における第2の色再現領域の白の座標点を、共通色空間における第4の色再現領域の白の座標点に一致させるとともに、共通色空間における第2の色再現領域の黒の座標点を、共通色空間における第4の色再現領域の黒の座標点に一致させるように変換する順応変換アルゴリズムを用いて、共通色空間における第2の色再現領域の座標点を変換する過程であることがさらに好ましい。
【0040】
このように、第2の色再現領域の白(あるいは白と黒)を、第4の色再現領域の白(あるいは白と黒)に一致させた後上記第1過程を実行することによって、一層高精度な、共通色空間上でのマッピング定義を作成することができ、ひいては一層高精度な、入力画像データと出力画像データとの間の色変換定義を作成することができる。
【0041】
また、上記目的を達成する本発明の色変換定義作成装置は、
画像記録媒体上に記録された画像を入力デバイスで読み取って得た入力画像データを、画像データに基づいて画像を出力する出力デバイスに適合した出力画像データに変換するための色変換定義を作成する色変換定義作成装置において、
画像記録媒体上に表現することが可能な色の領域を表わす第1の色再現領域を内包するとともにその第1の色再現領域の表面に沿って広がる複数の平面で形成された多面体形状の第2の色再現領域を決定する色再現領域決定部と、
上記第2の色再現領域全域が、入力デバイスに依存した第1の色空間におけるその入力デバイスの第3の色再現領域全域に対応づけられるように、第2の色再現領域の各点に各座標を割り当てて第2の色空間を形成することにより、その第2の色空間の座標と、デバイス非依存の共通色空間の座標との間の対応関係を決定する座標対応付部と、
共通色空間における第2の色再現領域内の座標を、画像データに基づく画像を出力する出力デバイスに依存した第3の色空間におけるその出力デバイスの第4の色再現領域をその出力デバイスのプロファイルに従って共通色空間に写像したときの、その共通色空間における第4の色再現領域内の座標に変換するためのその共通色空間上でのマッピング定義を作成するマッピング定義作成部と、
上記第1の色空間上の第1の座標を上記第2の色空間上の第2の座標に変換しその第2の座標を上記共通色空間上の第3の座標に変換しその第3の座標を上記マッピング定義に従ってその共通色空間上の第4の座標に変換しその第4の座標を上記第3の色空間上の第5の座標に変換したときと同一の変換を行なうための、第1の座標と第5の座標との間の色変換定義を作成する色変換定義作成部とを備えたことを特徴とする。
【0042】
尚、本発明の色変換定義作成装置には、前述の本発明の色変換定義作成方法における全ての態様に相当する各種の態様全てが含まれる。
【0043】
さらに、本発明の色変換定義作成プログラムは、コンピュータ内で実行され、そのコンピュータを、画像記録媒体上に記録された画像を入力デバイスで読み取って得た入力画像データを、画像データに基づいて画像を出力する出力デバイスに適合した出力画像データに変換するための色変換定義を作成する色変換定義作成装置として作動させる色変換定義作成プログラムであって、
画像記憶媒体上に表現することが可能な色の領域を表わす第1の色再現領域を内包するとともにその第1の色再現領域の表面に沿って広がる複数の平面で形成された多面体形状の第2の色再現領域を決定する色再現領域決定部と、
上記第2の色再現領域全域が、入力デバイスに依存した第1の色空間におけるその入力デバイスの第3の色再現領域全域に対応づけられるように、第2の色再現領域の各点に各座標を割り当てて第2の色空間を形成することにより、その第2の色空間の座標と、デバイス非依存の共通色空間の座標との間の対応関係を決定する座標対応付部と、
共通色空間における第2の色再現領域内の座標を、画像データに基づく画像を出力する出力デバイスに依存した第3の色空間におけるその出力デバイスの第4の色再現領域をその出力デバイスのプロファイルに従って共通色空間に写像したときの、その共通色空間における第4の色再現領域内の座標に変換するためのその共通色空間上でのマッピング定義を作成するマッピング定義作成部と、
上記第1の色空間上の第1の座標を上記第2の色空間上の第2の座標に変換しその第2の座標を上記共通色空間上の第3の座標に変換しその第3の座標を上記マッピング定義に従ってその共通色空間上の第4の座標に変換しその第4の座標を上記第3の色空間上の第5の座標に変換したときと同一の変換を行なうための、第1の座標と第5の座標との間の色変換定義を作成する色変換定義作成部とを有することを特徴とする。
【0044】
尚、本発明の色変換定義作成プログラムにおいても、前述の本発明の色変換定義作成方法における全ての態様に相当する各種の態様全てが含まれる。
【0045】
【発明の実施の形態】
以下、本発明の実施形態について説明する。
【0046】
図1は、本発明の一実施形態が適用された画像入力−色変換−画像出力システムの全体構成図である。
【0047】
ここには、カラースキャナ10が示されており、そのカラースキャナ10では、カラーリバーサルフィルム上に記録された原稿画像11が読み取られてRGB3色の画像データが生成される。このRGBの画像データはパーソナルコンピュータ20に入力される。このパーソナルコンピュータ20では、カラースキャナ10で得られた画像データが、後述するカラープリンタ30に適した画像出力用のRGB3色の画像データに変換される。この画像出力用の画像データは、カラープリンタ30に入力され、そのカラープリンタ30では、入力された画像データに基づくプリント出力が行なわれて、プリント画像31が形成される。
【0048】
ここで、このパーソナルコンピュータ20は、本発明にいう色変換定義作成装置の一実施形態を兼ねており、このパーソナルコンピュータ20では、あらかじめ色変換定義が作成され、カラースキャナ10で得られた画像データをカラープリンタ30用の画像データに変換する際は、その作成された色変換定義が参照される。この色変換定義、およびその作成方法については後述するが、その色変換定義を作成するにあたっては、カラーリバーサルフィルム上に記録された多数の色パッチが配列されたカラーチャート11aがカラースキャナ10により読み取られる。
【0049】
この図1に示すシステムでは画像データに基づく画像を出力する出力デバイスの一例としてカラープリンタ30を示したが、このカラープリンタ30は、電子写真方式のカラープリンタであってもよく、インクジェット方式のカラープリンタであってもよく、変調されたレーザ光で印画紙を露光してその印画紙を現像する方式のプリンタであってもよく、そのプリント方式の如何を問うものではない。また、出力デバイスとしては、プリンタに限定されるものではなく、印刷機であってもよく、あるいは表示画面上に画像を表示するCRTディスプレイ装置、プラズマディスプレイ装置等の画像表示装置であってもよい。
【0050】
ここで、この図1に示すシステムにおける、本発明の一実施形態としての特徴は、パーソナルコンピュータ20の内部で実行される処理内容にあり、以下、このパーソナルコンピュータ20について説明する。
【0051】
図2は、図1に1つのブロックで示すパーソナルコンピュータ20の外観斜視図、図3は、そのパーソナルコンピュータ20のハードウェア構成図である。
【0052】
このパーソナルコンピュータ20は、外観構成上、本体装置21、その本体装置21からの指示に応じて表示画面22a上に画像を表示する画像表示装置22、本体装置21に、キー操作に応じた各種の情報を入力するキーボード23、および、表示画面22a上の任意の位置を指定することにより、その位置に表示された、例えばアイコン等に応じた指示を入力するマウス24を備えている。この本体装置21は、外観上、フレキシブルディスクを装填するためのフレキシブルディスク装填口21a、およびCD−ROMを装填するためのCD−ROM装填口21bを有する。
【0053】
本体装置21の内部には、図3に示すように、各種プログラムを実行するCPU211、ハードディスク装置213に格納されたプログラムが読み出されCPU211での実行のために展開される主メモリ212、各種プログラムやデータ等が保存されたハードディスク装置213、フレキシブルディスク100が装填されその装填されたフレキシブルディスク100をアクセスするFDドライブ214、CD−ROM110が装填され、その装填されたCD−ROM110をアクセスするCD−ROMドライブ215、カラースキャナ10(図1参照)と接続され、カラースキャナ10から画像データを受け取る入力インタフェース216、カラープリンタ30(図1参照)と接続され、カラープリンタ30に画像データを送る出力インタフェース217が内蔵されており、これらの各種要素と、さらに図2にも示す画像表示装置22、キーボード23、マウス24は、バス25を介して相互に接続されている。
【0054】
ここで、CD−ROM110には、このパーソナルコンピュータ20を色変換定義作成装置として動作させるための色変換定義作成プログラムが記憶されており、そのCD−ROM110はCD−ROMドライブ215に装填され、そのCD−ROM110に記憶された色変換定義作成プログラムがこのパーソナルコンピュータ20にアップロードされてハードディスク装置213に記憶される。
【0055】
次に、コンピュータ20にアップロードにされた色変換定義作成プログラムによる色変換定義の作成方法について説明するが、ここでは、先ず、従来の一般的な色変換の手法について説明する。
【0056】
図4は、入力プロファイルの概念図である。
【0057】
入力プロファイルがカラースキャナ10のメーカ等から入手できる時は、入力プロファイルを新たに作成することは不要であるが、ここではその入力プロファイルの作成方法の概要について説明する。
【0058】
図1に示す原稿画像11に代えて多数の色パッチからなるカラーパッチ画像11aを用意し、そのカラーパッチ画像11aをカラースキャナ10で読み取って各色パッチごとの、入力RGB空間(本発明にいう第1の色空間の一例)上の色データを得るとともに、そのカラーパッチ画像を測色計11aで測色して、各色パッチについて、例えば、共通色空間の一例であるL***空間上の座標点を表わす色データを得る。尚、共通色空間に関する詳細説明は後に譲る。
【0059】
このようにして、入力RGB色空間上の座標点とL***色空間上の座標点との対応が定義された入力プロファイルが得られる。この入力プロファイルは、カラースキャナ10の種類や、さらに一般的には入力デバイスの種類によってそれぞれ異なる、入力デバイスに依存したプロファイルである。
【0060】
図5は、出力プロファイルの概念図である。
【0061】
カラープリンタに対応する出力プロファイルはそのカラープリンタのメーカから提供されることもあり、プリント出力しようとするカラープリンタに対応する出力プロファイルを入手することが出来れば出力プロファイルの作成は不要であるが、ここでは、その出力プロファイルを新たに作成するとした場合の作成方法の概要について説明する。
【0062】
図1に示すパーソナルコンピュータ20から、RGB3色の画像データとして、R,G,Bそれぞれの値を順次変化させた画像データを発生し、そのようにして発生させた画像データに基づくカラーパッチ画像をカラープリンタ30でプリント出力する。図1に示すプリント画像31は、カラーパッチ画像を表わしている画像ではないが、このプリント画像31に代えてカラーパッチ画像をプリント出力したものとし、そのカラーパッチ画像を構成する各カラーパッチを測色計で測定する。こうすることにより、RGB3色の色空間(本発明にいう第3の色空間の一例)上の座標値と共通色空間(ここではL***色空間)上の座標値との対応関係をあらわす出力プロファイルが構築される。
【0063】
この出力プロファイルは、出力デバイスに応じてそれぞれ異なる、出力デバイスに依存したプロファイルである。
【0064】
図6は、入力プロファイルと出力プロファイルとの双方からなる色変換アルゴリズムを示す概念図である。
【0065】
図4と図5を参照して説明した入力プロファイルと出力プロファイルを図1に示すパーソナルコンピュータ20に記憶しておき、カラースキャナ10で得られたRGBの画像データを、図6に示すように、入力プロファイルにより一旦L***色空間上の画像データに変換し、そのL***色空間上の画像データを、出力プロファイルによりRGBの画像データに変換してカラープリンタに伝える。こうすることにより、カラープリンタ30では、原稿画像11の色表現を再現したプリント画像31を得ることができる。
【0066】
ただし、このような単純な色変換アルゴリズムの場合、以下に説明するように、カラースキャナ10の色再現領域(カラーガマット)とカラープリンタ30の色再現領域(カラーガマット)とが一般的には一致しないという問題、および、図1に示すカラーチャート11aをカラースキャナ10で読み取って得た、そのカラーチャート11aの色再現領域がカラースキャナ10の色再現領域に一致しないという問題がある。
【0067】
以下では、これらの2つの問題について順次説明する。
【0068】
ここでは先ず、カラースキャナ10の色再現領域とカラープリンタ30の色再現領域とが一致しないという問題について説明する。
【0069】
図7は、カラースキャナ10とカラープリンタ30の色再現領域の模式図である。
【0070】
図7(A)は、入力側の色空間である入力RGB空間を示したものであるが、この図7(A)には、図示の簡単のためR−G平面が示されている。図7(B),図7(C)も同様であり、図7(B)は共通色空間の1つであるL***空間のL*−a*平面について示されており、図7(C)は出力側の色空間である出力RGB空間のR−G平面について示されている。
【0071】
カラースキャナ10は、原稿画像11を、R,G,Bそれぞれについて0〜255の値の数値を表わす画像データに変換するものとし、この場合、図7(A)に示す矩形領域がカラースキャナ10の色再現領域101となる。
【0072】
ここで、図4を参照して作成した入力プロファイルを用いて、図7(A)に示す、カラースキャナ10の色再現領域101を、L***空間に写像すると、そのカラースキャナ10の色再現領域は領域102のように表わされ、その色再現領域102を、さらに、図5を参照して説明した出力プロファイルを用いて出力側の色空間である出力RGB空間に写像すると、そのカラースキャナ10の色再現領域は、図7(C)に示す領域103に示すように表わされる。
【0073】
これに対し、図1に示すカラープリンタ30の色再現領域303は、図7(C)の出力RGB空間上で、R,G,Bともに0〜255の数値範囲で示される立方体領域(図7(C)ではR−G平面上の矩形領域)である。すなわち、原稿画像11をカラースキャナ10で読み取って入力RGB空間上の画像データに変換し、その画像データをL***空間を経由して出力RGB空間上の画像データに変換すると、カラープリンタ30で表現することのできる色(画像データ上でRGBともに0〜255の範囲)を超えた値、例えば図7(C)に例示するような(R,G)=(110,290)、あるいは、(R,G)=(−100,260)などの値に変換される場合がある。その場合、これらの画像データ、すなわち、カラープリンタ30の色再現領域から外れた画像データは、カラープリンタ30では出力できないため、従来は、前述した様に、それらの画像データをカラープリンタ30の色再現領域の境界に位置する画像データとなるようにクリップすることが提案されている。具体的には、(R,G)=(110,290)は、(R,G)=(110,255)に変更され、(R,G)=(−100,260)は(R,G)=(0,255)に変更されることになる。
【0074】
このような出力デバイスに依存した色空間におけるマッピングの場合、前述したように、マッピングの自由度が小さく、上記のような、出力デバイスの色再現領域から外れたデータを単純にクリップしてその色再現領域の境界に移動させるだけのマッピングが行なわれており、1つのデバイス(例えばカラースキャナ10)の色再現領域から別のデバイス(例えばカラープリンタ30)の色再現領域に写像するにあたり、特にそれらの色再現領域の境界近傍における写像の精度が大きく低下する場合がある。
【0075】
一方、図7(C)に0〜255の矩形領域で示されるカラープリンタ30の色再現領域303を出力プロファイルを用いてL***空間に写像すると、図7(B)に示す領域302のように表わされる。このL***空間に代表される共通色空間において、カラースキャナ10(入力デバイス)の色再現領域102内のデータをカラープリンタ30(出力デバイス)の色再現領域302内のデータに変換するための手法が従来いくつか提案されていることは前述した通りである。
【0076】
***空間における色変換(マッピング)では、カラープリンタ30で表現することのできる色再現領域を広く利用しようとしたとき、一般的には、図7(B)に破線の矢印で示すような、カラースキャナ10の色再現領域101とカラープリンタ30の色再現領域302との共通領域402から外れたデータをその共通領域402の内部にマッピングする‘圧縮’と、図7(B)に実線の矢印で示すように、その共通領域402内部のデータを、カラープリンタ30の色再現領域302の内部という条件を保った上で、その共通領域402の外部に広げる‘伸長’との双方が行なわれる。
【0077】
従来提案されているL***空間に代表される共通色空間でのマッピングは、マッピングの自由度が大き過ぎ、前述したように、調子が不連続となったり不自然な印象の画像となってしまう危険性が大きい。
【0078】
図7(B)のL***空間に写像されたカラープリンタ30の色再現領域302を図7(A)の入力RGB空間にさらに写像すると、カラースキャナ10の色再現領域である矩形の領域101からはみ出た部分のある、‘ひしゃげた’形の領域301のように表現される。
【0079】
次に、図1に示すカラーチャート11aをカラースキャナ10で読み取って得たときの、そのカラーチャート11aの色再現領域とカラースキャナ10の色再現領域が一致しないという問題について説明する。
【0080】
図8は、カラーチャートとカラースキャナの色再現領域の模式図である。図7と同様、ここでも図示の簡単のために、R−G平面が示されている。
【0081】
図8に破線で示した矩形の色再現領域101は、図7(A)の色再現領域101と同一のものであり、R,G,Bそれぞれについて0〜255の数値範囲で示される、立方体形状の、カラースキャナ10の色再現領域である。
【0082】
これに対し、図8に実線で示した色再現領域501は、カラーチャートの色再現領域である。このカラーチャートの色再現領域501は、カラースキャナの色再現領域101の一部の領域を占めているに過ぎない。
【0083】
本実施形態では、後述するようにして、人間の色の感覚に適合させつつ、図7(B)に破線の矢印で示すような、‘圧縮’と‘伸長’との双方のマッピングを行なうためのマッピング定義が作成されるが、図8に示すようにカラーチャートの色再現領域501がカラースキャナの色再現領域101と大きく異なっている場合、後述するマッピング法を採用しても高精度のマッピングを行なうマッピング定義を作成することは困難である。この問題を解決するために、カラーチャートの色再現領域501を外挿してカラースキャナの色再現領域101の全域にまで広げることも考えられるが、大幅に広げる必要がある場合などは、正確な外挿は困難であり、やはり高精度のマッピングを行なうマッピング定義を作成することは困難である。
【0084】
次に、共通色空間について説明する。この共通色空間については、L***色空間がその1つの例である旨説明したが、L***色空間である必要はなく、特定の入力デバイスあるいは特定の出力デバイスに依存しないように定義された色空間であればよい。例えばL***色空間のほか、XYZ色空間であってもよく、あるいはそれらの色空間に対し、色空間上の各座標点が1対1で対応づけられるように明確に定義された座標系であってもよい。そのような座標系の例としては、以下の様に定義された標準RGB信号などがある。
【0085】
【数1】

Figure 0003866129
【0086】
ここで、例えばRSRGBを8ビットで表現したものをR8bitで表記すると、
8bit=255×12.92RSRGB (0<RSRGB<0.00304)
8bit=255×1.055RSRGB (1.0/2.4) −0.055
(0.00304≦RSRGB≦1)
となる。GSRGB,BSRGBを8ビットで表現したG8bit,B8bitも同様に、それぞれGSRGB,BSRGBから変換することができる。
【0087】
もしくは、リバーサルフィルムのcmy濃度で定義される色空間を共通色空間として採用してもよい。共通色空間を定めると、その共通色空間における色再現領域が明確に定義される。
【0088】
次に、図1〜図3に示すコンピュータシステム20内で実行される色変換定義作成プログラムによる色変換定義作成方法について説明する。
【0089】
図9は、コンピュータシステム20内で実行される色変換定義作成プログラムによる色変換定義作成方法を示したフローチャートである。
【0090】
ここでは、色再現領域決定過程(ステップa1)、座標対応付過程(ステップa2)、マッピング定義作成過程(ステップa3)、および色変換定義作成過程(ステップa4)を経て色変換定義が作成される。マッピング定義作成過程(ステップa3)では、基本的には第1過程(ステップa32)が実行されるが、本実施形態では、一層高精度なマッピング定義が作成されるよう、その第1過程の前段に第2過程(ステップa31)が置かれている。
【0091】
以下、これらの各過程について順次説明する。
【0092】
先ず、図9のステップa1の色再現領域決定過程について説明する。
【0093】
このステップa1では、図1に示すカラーチャート画像11aがカラースキャナ10で読み取られ、図4を参照して説明したような、カラースキャナ10用の入力プロファイルが参照されて、そのカラースキャナ10に依存した入力RGB空間(本発明にいう第1の色空間の一例)における、そのカラーチャート画像11aの色再現領域(表現される色空間を問わず、そのカラーチャート画像11aの色再現領域は、本発明にいう第1の色再現領域の一例に対応する)が、デバイス非依存の共通色空間(例えばL***空間)に写像される。
【0094】
図10は、入力RGB空間における、カラースキャナの色再現領域101とカラーチャート画像の色再現領域501を示す図である。
【0095】
この図10は、図8と同じ内容をR,G,Bの3軸からなる立体として表現したものである。
【0096】
カラーチャート画像の色再現領域501の各頂点に付した、W,K,R,G,B,C,M,Yの各符号は、それぞれ、その符号が付された頂点が、そのカラーチャート画像の色再現領域501の、白、黒、レッド、グリーン、ブルー、シアン、マゼンタ、イエローの点であることを示している。
【0097】
また、図11は、図10に示す、カラーチャート画像の色再現領域501を、カラースキャナ10の入力プロファイルを参照してL***空間に写像したときの、そのL***空間におけるカラーチャート画像の色再現領域502(本発明にいう第1の色再現領域)と、その色再現領域502を内包するとともに、その色再現領域502の表面に沿って広がる複数平面で形成された多面体形状(ここでは12面体形状)の色再現領域602(本発明にいう第2の色再現領域の一例に相当する)を示した図である。L***空間自体は、図11に示す2つの色再現領域502,602よりも広く広がっている。
【0098】
図10に示すカラーチャート画像の色再現領域501をカラースキャナの入力プロファイルに従って図11に示すようにL***空間に写像した後、今度は、そのL***空間における、カラーチャート画像の色再現領域502が、12面体で取り囲まれる。
【0099】
色再現領域502を12面体で取り囲むにあたっては、その色再現領域502のW,K,R,G,B,C,M,Yの各頂点(図11では色再現領域501の各頂点に対する符号は省略)の近傍に、色再現領域502を内包するとともにその色再現領域502に近似した外形形状を有する12面体の各頂点W,K,R,G,B,C,M,Yを定め、これにより、図示の12面体形状の色再現領域602を定める。ここで、これらW,K,R,G,B,C,M,Yを頂点とする多面体が12面体であることを一例を挙げて説明すると、W,C,G,Yの4つの頂点は1つの平面上に位置するとは限らず、一般的には、CとYを結ぶ一点鎖線で示す線分も多面体の1つの辺を形成している。他の部分についても同様である。したがって、これらW,K,R,G,B,C,M,Yを頂点とする多面体は、一般的には12面体となる。以下では、このようにして求めた、L***空間上で12面体形状をなす色再現領域を、カラーチャート画像の色再現領域を再設定した色再現領域であることに鑑み、色空間の別を問わず、「再設定色再現領域」と称する。
【0100】
次に、図9のステップa2の座標対応付過程について説明する。
【0101】
上記のようにして、12面体のチャート内包色再現領域602を決定した後、そのチャート内包色再現領域602の全域を図10に破線で示すカラースキャナの色再現領域101の全域に対応づける。以下に、この対応付けのアルゴリズムの一例を示す。
【0102】
先ず、図11に示す12面体の色再現領域602の各頂点を、図10が示す立方体形状のカラーチャートの色再現領域の各頂点に対応づける。
【0103】
具体的には、図11に示す、色再現領域602の各頂点W,B,R,G,B,C,M,Yに、それぞれ、
W=(255,255,255)
B=(0,0,0)
R=(255,0,0)
G=(0,255,0)
B=(0,0,255)
C=(0,255,255)
M=(255,0,255)
Y=(255,255,0)
の数値(座標)を割り当てる。
【0104】
次に、その12面体の各辺の上の任意の点について、その辺の両端の頂点の座標から補間演算によりその任意の点の座標を求める。
【0105】
次に、その12面体を形成する各平面内の任意の点について座標を割り付ける。
【0106】
図12は、12面体を構成する任意の平面上の任意の点への座標の割付け方法の説明図である。
【0107】
ここでは、座標を求めようとする点aは、3つの頂点A,B,Cで規定される平面(平面ABC)上にあるものとし、点aの、L***空間におけるL*の座標を、L*(a)とする。
【0108】
ここで、先ず、L*=L*(a)の平面を考え、そのL*=L*(a)の平面と、3つの頂点A,B,Cで規定される平面の輪郭をなす辺との交点b,cを求める。交点bの座標は、頂点Aの座標と頂点Bの座標とを用いた補間演算により求められており、交点Cの座標は頂点Aの座標と頂点Cの座標とを用いた補間演算により求められている。
【0109】
そこで、ここでは交点bの座標と交点cの座標とを用いた補間演算により平面ABC上の任意の点aの座標が求められる。
【0110】
次に、L***空間内の任意の点の、図10のカラースキャナの色再現領域101に相当する座標が求められる。
【0111】
図13は、L***空間内の任意の点の座標の求め方の説明図である。
【0112】
この図13では、12面体の内側の点d1あるいは12面体の外側の点d2が座標を求めるべき点である。
【0113】
ここでは、L*軸のL*=50の点を原点とし、その原点と座標を求めようとしている点d1を結んで延長した直線、あるいは原点と座標を求めようとしている点d2を結んだ直線と、12面体の表面との交点aを求める。交点aの座標は、図12を参照して説明したようにして既に求められている。そこで、ここでは、原点の座標(L*,a*,b*)=(50,0,0)と、点aの座標とを用いて内挿することにより点d1の座標が求められ、原点の座標と点aの座標とを用いて外挿することにより点d2の座標が求められる。このようにして、図11の12面体形状の再設定色再現領域602の全域が、図10に示す、立方体形状のカラースキャナの色再現領域101に対応付けられるとともに、図11の12面体形状の再設定色再現領域602の内側のみでなく、外側についても、図10の立方体形状の色再現領域101の、それぞれ、内側、外側の各点に対応づけられる。
【0114】
尚、色再現領域の外部についても座標を割り当てるのは、ガマット変換の演算の際に色再現領域の外側の点の座標も必要となるからである。
【0115】
図11の12面体形状の再設定色再現領域602を図10の立方体形状の色再現領域101に割り当てたときの、図10の色再現領域101を規定する色空間を、本発明では第2の色空間と称している。この第2の色空間における色再現領域101は、その第2の色空間における再設定色再現領域である。
【0116】
次に、図9のステップa3のマッピング定義作成過程について説明する。
【0117】
以下に説明する、図9のステップa3のマッピング定義作成過程の説明では、図7(A)、図8、図10の色再現領域101は、本発明にいう第2の色空間の一例としての入力RGB空間における再設定色再現領域、すなわち、図9のステップa2の座標変換過程において図11の12面体形状の再設定色再現領域601が入力RGB空間に写像されたときの、その入力RGB空間における再設定色再現領域であるとして説明する。
【0118】
図14は、図9のステップa31で実行される、マッピング定義作成過程における第2過程の説明図であり、L***空間における再設定色再現領域およびカラープリンタ30の色再現領域を示している。
【0119】
ここでは、コンクリース変換(Von Kries変換)を応用した順応変換が行なわれる。すなわち、ここでは、再設定色再現領域の白(図11の頂点W)に相当する座標点W1と、再設定色再現領域の黒(図11の頂点K)に相当する座標点K1が、それぞれカラープリンタ30で出力されるプリント画像31の白(そのプリント画像の用紙の色)相当する座標点W3とそのカラープリンタ30で出力することのできる黒(例えばそのカラープリンタ31がR,G,B3色のインクで画像出力を行なうプリンタの場合、R,G,Bの各色のインクを最大量使って印刷した状態)に相当する座標点K3に一致するように座標変換が行なわれる。
【0120】
図14は、この座標変換過程を図示したものであり、先ず、図14(A)に示す、再設定色再現領域102aとカラープリンタの色再現領域302aを、図14(B)に示すように、各黒点K1,K3が原点O(理論上の黒点)に一致するように平行移動する。これにより、先ず、再設定色再現領域102bの黒点とカラープリンタの色再現領域302bの黒点とが一致する。
【0121】
次に、この平行移動後の、再設定色再現領域102bの白点W1が、平行移動後の、カラープリンタの色再現領域302bの白点W3に一致するように、すなわち図14(B)の直線L1が直線L3に一致するように、再設定色再現領域102b全体について回転及び伸縮を伴う座標変換が行なわれる。
【0122】
図14(C)は、この回転及び伸縮を伴う座標変換を行なった後の状態を示しており、再設定色再現領域は、図14(B)に示す色再現領域102bから図14(C)に示す色再現領域102cのように変換される。このとき、再設定色再現領域の白点W1は、カラープリンタの色再現領域の白点W3に一致する。
【0123】
その後、図14(D)に示すように、図14(C)に示すように白点,黒点がそれぞれ一致した、再設定色再現領域102cを、カラープリンタのもともとの色再現領域、すなわち図14(A)に示す、カラープリンタの色再現領域302aの白点W3,黒点B3に一致する位置まで平行移動する。
【0124】
こうすることにより、白点W1,黒点B1がカラープリンタの白点W3,黒点B3にそれぞれ一致した、再設定色再現領域102dを得ることができる。
【0125】
以上の操作を式で示すと、以下のようになる。図14は、L***空間における色再現領域を示したが、コンクリース変換やそのコンクリース変換を応用した上記の順応変換はXYZ空間で実行されることが多く、ここではXYZ空間を想定して説明する。このXYZ空間の各座標点はL***空間の各座標点に1対1に対応する共通色空間の1つである。
【0126】
図14(A)に示す再設定色再現領域102aの白点W1,黒点B1のXYZ座標をそれぞれ(LXW1,LYW1,LZW1),(LXB1,LYB1,LZB1)とし、図14(A)に示すカラープリンタの色再現領域302aの白点W3,黒点B3のXYZ座標をそれぞれ(LXW3,LYW3,LZW3),(LXB3,LYB3,LZB3)としたとき、図14(B)に示す各白点W1,W3に相当するXYZ座標(LXW1’,LYW1’,LZW1’),(LXW3’,LYW3’,LZW3’)を、各式
LXW1’=LXW1−LXB1
LYW1’=LYW1−LYB1
LZW1’=LZW1−LZB1 ……(1)
LXW3’=LXW3−LXB3
LYW3’=LYW3−LYB3
LZW3’=LZW3−LZB3 ……(2)
により求め、白点W1(LXW1’,LYW1’,LZW1’)が白点W3(LXW3’,LYW3’,LZW3’)に一致するように回転及び伸縮するためのコンクリース(Von Kries)マトリックスを作成する。
【0127】
ここでは、このコンクリースマトリックスを、
VK=[MTXVK] ……(3)
と表記する。このコンクリースマトリックスは3行×3列のマトリックスとなる。
【0128】
次に、XYZ空間における順応変換前の多数の座標点を代表させて(X,Y,Z)で表わすと、
この(X,Y,Z)が
X1=X−LXB1
Y1=Y−LYB1
Z1=Z−LZB1 ……(4)
により黒点補正(図14(B)参照)がなされ、次に
【0129】
【数2】
Figure 0003866129
【0130】
によりコンクリース変換が行なわれ(図14(C)参照)、次に
X’=X2−LXB3
Y’=Y2−LYB3
Z’=Z2−LZB3 ……(6)
により、黒点をカラープリンタの黒点に一致させるための補正(図14(D)参照)が行なわれる。
【0131】
以上の演算を全ての座標点について行なうことにより、L***空間で表わしたときの図14(A)に示す再設定色再現領域102aが、白点、黒点がカラープリンタの色再現領域302aの白点、黒点にそれぞれ一致した、図14(D)に示す色再現領域102dに変換される。
【0132】
上記の順応変換をXYZ空間で行なうと、順応変換前の黒点(図14(A)の黒点B1,B3)の座標(X,Y,Z)がほぼ(0,0,0)に近く、したがって黒点の補正は数値を僅かに変化させるだけであって、(1)式,(2)式に従って白点の座標を移動させてもその移動量は僅かで済み、XYZ空間内の広い領域を使って順応変化を行なうことができる点で有利であるが、この順応変化は、必ずしもXYZ空間で行なわなければならない訳でなく、L***空間で行なってもよく、あるいはその他の共通色空間で行なってもよい。
【0133】
また、ここでは、白点と黒点との双方をそれぞれ一致させる順応変換について説明したが、色変換の精度は多少落ちるものの、簡単的には、黒点は考慮せずに白点のみ一致させるように順応変換を行なってもよい。
【0134】
この白点のみ一致させる順応変換は、図14を参照して説明すると、図14(A)に示す直線L1’が直線L3’に一致するとともに白点W1が白点W3に一致するような座標変換をいい、数式的には、(1)式,(2)式のように黒点の座標を引き算することなく、白点W1(LXW1,LYW1,LZW1)が白点W3(LXW3,LYW3,LZW3)に一致するように回転及び伸縮するためのコンクリースマトリックスを求め、(4)式のように、黒点の座標を引き算することなく、そのコンクリースマトリックスを使って(X,Y,Z)をそのまま変換することを意味する。
【0135】
さらに、この順応変換は、例えばCRTディスプレイ表示画面上の‘白’はかなり青みかかった白であり、そのCRTディスプレイ表示画面に表示された画像をプリント出力する必要があるときのような、測色的にかなり離れた白を持つデバイス間での色変換の場合に必要となるが、図1に示すカラースキャナ10で読み取られる画像の白とカラープリンタ30で出力される画像の白がほぼ一致している場合、この順応変換、すなわち、図9のマッピング定義作成過程の第2過程(ステップa31)は省略してもかまわない。
【0136】
次に、図9に示すフローチャートのマッピング定義作成過程中の第1過程(ステップa32)について、いくつかの例を説明する。
【0137】
図15は、その第1過程における座標変換の第1例の説明図、図16は、その第1例のフローチャートである。図15には、L***空間内のうちのL*−a*平面について明示されているが、これは図示の便宜上のものであって、実際には、L***空間内で3次元的な座標変換が行なわれる。図15のみでなく、その後に説明する各種の例についても同様である。
【0138】
ここでは、先ず、座標変換の基準となる座標変換基準座標点cが設定される。この座標変換基準座標点cは、経験的にあるいは所定の設定基準に従ってある程度任意に設定されるが、L***空間における再設定色変換領域102とカラープリンタの色再現領域302との共通領域内に設定される。さらに、座標変換基準座標点cは、その共通領域内であって、さらに本実施形態ではL*軸(グレー軸)上に設定される。そうすることにより、以下の説明からわかるように、この座標変換基準座標点cは他の座標点にはマッピングされず、したがってグレーバランスを保ちやすいからである。ここでは例えば(L*,a*,b*)=(50,0,0)の点が座標変換基準座標点cとして設定される。
【0139】
尚、図9のフローチャートのマッピング定義作成過程(ステップa3)に図14を参照して説明したような順応変換(ステップa31)を含むときは、L***空間における再設定色再現領域102は、その順応変換後の色再現領域を指すものとする。
【0140】
ここでは、マッピングを行なう対象となるL***空間上の再設定色再現領域102内の座標点を第1の座標点tとする。
【0141】
ここで、座標変換基準座標点cと第1の座標点tとを結ぶ直線を考え、その直線と、再設定色再現領域102の境界との交点を求める(図16ステップb1)。ここではこの交点を第1の基準座標点aと呼ぶ。
【0142】
図16に示すフローチャートは、このようにして求めた第1の基準座標点aが、図15に示すように、L***空間に写像したカラープリンタの色再現領域302から外れている場合のフローチャートであり、この条件を満たすとき、さらに以下のように処理が進められる。
【0143】
上記のようにして求めた第1の基準座標点aについて、L***空間からカラープリンタ30に依存した出力RGB空間に写像する(図16ステップb2)。この出力RGB空間に写像された第1の基準座標点をP1とする。
【0144】
次に、出力RGB空間において、その第1の基準座標点P1の座標値をクリップすることにより、その出力RGB空間のカラープリンタ30の色再現領域の境界上にマッピングする(ステップb3)。このマッピングによりカラープリンタ30の色再現領域の境界上に得られた点P2を、今度はその出力RGB空間からL***空間に写像する(ステップb4)。このL***空間内に写像された座標点を第2の基準座標点bとする(図15参照)。
【0145】
次に、図15に示す第1の基準座標点aと第2の基準座標点bとの差分を表わす、第1の基準座標点aを始点とし、第2の基準座標点を終点とする基本差分ベクトルvを求め(ステップb5)、マッピングを行なおうとしている第1の座標点tを、その基本差分ベクトルvの方向と同一方向に、座標変換基準座標点cと第2の基準座標点bとを結ぶ直線上まで移動させ、その点を、第1の座標点tがマッピングされた第2の座標点sとする(ステップb6)。
【0146】
このような座標変換が、L***空間における再設定色再現領域102に含まれる座標点のうちの、ステップb1により求められた第1の基準座標点aが再設定色再現領域102の外にある全ての座標点について行なわれる(ステップ7)。
【0147】
このように、図15,図16を参照して説明した座標変換は、その座標変換の方向を決めるにあたっては、すなわち基本差分ベクトルvを求めるあたっては、出力RGB空間を使って、再設定色再現領域の境界上の第1の基準座標点aに対応する、カラープリンタの色再現領域の境界上の第2の基準座標点bを定めることにより行なわれ、実際のマッピングは、L***空間で行なわれる。
【0148】
すなわち、出力RGB空間(デバイス依存の色空間)という人間の色の感覚に合致した色空間で座標変換(マッピング)の方向が定められるため、調子の不連続性や不自然な画像となってしまう恐れが極めて小さく抑えられ、かつ、実際の座標変換は、L***空間(共通色空間)で行なわれるため、色彩上高精度の座標変換(マッピング)が行なわれる。
【0149】
尚、図15は、図示の都合上、2次元平面上で座標変換(マッピング)が行なわれるように描かれているが、実際には3次元的なマッピングが行なわれることは前述したとおりである。
【0150】
図17は、図15,図16を参照して説明した座標変換の変形例を示す図である。
【0151】
ここでは、座標変換基準座標点cを取り巻く領域Dが設定され、座標変換基準座標点cと第1の基準座標点aを結ぶ直線とその領域Dの境界との交点dを求め、第1の座標点tのマッピングにあたっては、その交点dと第2の基準座標点bとを結ぶ直線上の座標点sにマッピングされる。
【0152】
こうすることにより、領域Dという、座標が移動しない領域を設定することができる。前述したように、グレーバランスを保つためにはL*軸(グレー軸)については座標を移動させないことが好ましい旨説明したが、この図17に示すように領域Dを設定することにより座標を移動しない領域を任意に設定することができる。
【0153】
図18は、図9に示すフローチャートの第1過程における座標変換の第2例の説明図、図19は、その第2例のフローチャートである。
【0154】
ここでは、図15,図16を参照して説明した第1例と同様に、L*軸(グレー軸)上に座標変換の基準となる座標変換基準座標点cが設定される。
【0155】
この座標変換基準座標点cと、座標変換の対象としている第1の座標点tとを結ぶ直線を考え、その直線と、L***空間における再設定色再現領域102の境界との交点を求める。その交点を第1の基準座標点と呼ぶ。ここで、このL***空間に写像した再設定色再現領域102は、図9のフローチャートの第2過程(ステップa31)における順応変換が行なわれるときは、その順応変換後の再設定色再現領域を指すものであることは前述したとおりである。
【0156】
図18に示すフローチャートは、図16に示すフローチャートとは異なり、このようにして求めた第1の基準座標点aが、図18に示すように、L***空間に写像したカラープリンタの色再現領域302の内部に存在する場合のフローチャートであり、この条件を満たすときさらに以下のように処理が進められる。
【0157】
上記のようにして求めた、再設定色再現領域の境界上の第1の基準座標点aに対応する、カラープリンタの色再現領域の境界上の第2の基準座標点bを求める(ステップc2)。この第2の基準座標点bを求めるにあたっては、ここでは、図18に示すように、第1の基準座標点aがカラープリンタの色再現領域302の内部に存在するため、図15,図16を参照して説明した手法を使うことはできない。すなわち、第1の基準座標点aがカラープリンタの色再現領域302の外に存在する場合と同様にして、その第1の基準座標点aを出力RGB空間に写像しても、その写像された第1の基準座標点は出力RGB空間におけるカラープリンタの色再現領域の内部に位置することになり、前述したクリップの手法を使うことができないこととなってしまう。そこで、ここでは、以下のようにして、第2の基準座標点bが求められる。
【0158】
先ず、出力RGB空間におけるカラープリンタの色再現領域(ガマット)の境界上の全ての点(点P1で代表させる)について、出力RGB空間からL***空間に写像し(ステップc21)、さらにそのL***空間に写像された全ての点P2を入力RGB空間(上述したように、図9のステップa2の対応付過程で、再設定色再現領域がR,G,Bともb=0〜255の立方体形状の色再現領域に対応づけられた後の入力RGB空間(本発明にいう第2の色空間の一例)に写像する(ステップc22)。次いで、その出力RGB空間に写像された点P3のうちの、入力RGB空間上の再設定色再現領域から外れた点を、前述のように、例えばR,G,Bそれぞれについてマイナスの値を0に、255を越える値を255にクリップすることにより、その再設定色再現領域の境界上にマッピングする(ステップc23)。
【0159】
このようにして得られた、入力RGB空間に写像され、さらにクリップされた全ての点P4を、入力RGB空間からL***空間に写像する(ステップc24)。このようにしてL***空間に写像された点P5のうち、第1の基準座標点aに一致した、あるいは一致はしなくても最も近接した点P5’を見つけ、出力RGB空間の、カラープリンタの色再現領域の境界上の全ての点P1のうち、その点P5’を得る基になった点P1’を見つけ、その点P1’を第2の基準座標点bとする(ステップc25)。
【0160】
このような手順を踏むことにより、図18に示す基準座標点aに対応する第2の基準座標点bを求めることができる。
【0161】
尚、図19に示すフローチャートの場合、出力RGB空間におけるカラープリンタの色再現領域の境界上の全ての点P1について一律に入力RGB空間に写像したが、図18に示す、L***空間に写像したカラープリンタの色再現領域302の境界上の座標点のうち、L***空間に写像した再設定色再現領域102の色再現領域から食み出した部分の座標点のみ、入力RGB空間に写像すればよく、あるいはその食み出した部分のうち、推測等により第2の基準座標点bの座標位置をさらに絞り込むことができるときは、その絞り込まれた領域内の座標点のみ入力RGB空間に写像してクリップしてもよい。
【0162】
図19に示すステップc2において、第2の基準座標点bが検出されると、図16のフローチャートの場合と同様、図18に示すように、第1の基準座標点aから第2の基準座標点bに向かう基本差分ベクトルvが求められ(ステップc3)、さらに図15,図16の第1例の場合と同様にして、第1の座標点に対応する第2の座標点が求められる(ステップc4)。
【0163】
このような座標変換が、L***空間における再設定色再現領域102内の各座標点のうちの、ステップc1により求められた第1の基準座標点aがカラープリンタの色再現領域302の内部に存在する全ての座標点について行なわれる(ステップc5)。
【0164】
図20は、図18,図19を参照して説明した座標変換の第2例の変形例を示す図である。
【0165】
ここには、図17と同様、座標変換基準座標点cを取り巻く領域Dが設定され、座標変換基準座標点cと第1の基準座標点aとを結ぶ直線とその領域Dの境界との交点dが求められ、第1の座標点tは、その交点dと第2の基準座標点bとを結ぶ直線上の座標点sにマッピングされる。こうすることにより、座標を移動させない領域Dを設定することができる。
【0166】
図21は、図15,図16を参照して説明した‘圧縮’と図18,図19を参照して説明した‘伸長’とを組み合わせて行なったマッピングの効果説明図である。
【0167】
***空間上の再設定色再現領域102よりもL***空間上のカラープリンタの色再現領域302の方が広いラインLN1上の座標点は,カラープリンタの色再現領域302を最大限使うように伸長され、再設定色再現領域102の方が広いラインLN2上の各座標点は、カラープリンタ30の色再現領域302を最大限使うレベルまで圧縮される。これらの伸長、圧縮の方向は、デバイスに依存したRGB空間を利用して求めたものであるため、マッピングそのものはL***空間上で行なっても、調子の不連続や不自然な画像の発生が防止され、かつマッピングそのものはL***空間を行なうことから高精度のマッピングが行なわれている。また、再設定色再現領域102とカラープリンタの色再現領域302との広さが一致したラインLN3上の各座標点は移動せずにそのままの色が保たれることになる。
【0168】
尚、ここで行なわれるマッピングは、図21では図示の都合上L*−a*平面で行なわれるかのように描かれているが、3次元的に行なわれるものであることは前述した通りである。
【0169】
図22は、図9に示すフローチャートの第1過程における座標変換の第3例の説明図、図23は、その第3例のフローチャートである。ここで説明する第3例は、図17,図18を参照して説明した第2例の場合と同様、ステップd1で求められた第1の基準座標点a1が、L***空間に写像したカラープリンタの色再現領域302の内部に存在する場合の一例である。
【0170】
ここでも、前述の第1例および第2例と同様に、L*軸(グレー軸)上に座標変換の基準となる座標変換基準座標点cを設定し、その座標変換基準座標点cと座標変換の対象としている第1の座標点tとを結ぶ直線を考え、その直線と、L***空間における再設定色再現領域102の境界との交点を求め、その交点を第1の基準座標点a1とし、さらに、その直線と、L***空間に写像したカラープリンタの色再現領域302の境界との交点を求め、その交点を第3の基準座標点a2とする(ステップd1)。このL***空間における再設定色再現領域102は、図9のフローチャートの第2過程(ステップa31)における順応変換が行なわれるときは、その順応変換後の再設定色再現領域を指すものであることは、これまでの第1例、第2例の場合と同様である。
【0171】
次に、上記のようにして求めた第3の基準座標点a2をL***空間から入力RGB空間(本発明にいう第2の色空間の一例に相当する入力RGB空間)に写像し(ステップd2)、その入力RGB空間に写像した点P1をその入力RGB空間でクリップすることにより再設定色再現領域の境界上にマッピングし(ステップd3)、そのマッピングにより得られた点P2をL***空間にマッピングする(ステップd4)。このようにして得られたL***空間の、再設定色再現領域102の境界上の点を第4の基準座標点b2と呼ぶ。
【0172】
次に、第3の基準座標点a2から第4の基準座標点b2に向かう差分ベクトルv1を求め(ステップd5)、第1の基準座標点a1を通りその差分ベクトルv1と平行な直線を考えて、その直線と、L***空間上のカラープリンタの色再現領域302の境界との交点を第2の基準座標点b1とし、第1の基準座標点a1から第2の基準座標点b1に向かう基本差分ベクトルvを求める(ステップd6)。その後はこれまで説明した第1例、第2例と同様にして、第1の座標点tが、その第1の座標点tを基本差分ベクトルvと平行に移動し、座標変換基準座標点cと第2の基準座標点b1とを結んだ直線にぶつかった座標点(第2の座標点s)にマッピングされる(ステップd7)。
【0173】
このような座標変換が、L***空間上の再設定色再現領域内の座標点のうちの、ステップd1において、L***空間上のカラープリンタの色再現領域302の内部に位置する第1の基準座標点a1が求められる全ての座標点について行なわれる(ステップd8)。
【0174】
この図22,図23に示す第3例は、L***空間上の再設定色再現領域102とカラープリンタの色再現領域302が大きくずれているとき、すなわち、差分ベクトルv1と基本差分ベクトルvが大きく離れているときは誤差を持つが、それら2つのベクトルv1,vの距離が近く、それら2つのベクトルv1,vの間の誤差を無視できるときは、この第3例を採用することができ、図18,図19を参照して説明した第2例と比べ高速演算が可能となる。
【0175】
図24は、図22,図23を参照して説明した座標変換の第3例の変形例を示す図である。
【0176】
ここには、図17,図20と同様、座標変換基準座標点cを取り巻く領域Dが設定され、座標変換基準座標点cと第1の基準座標点a1とを結ぶ直線と、その領域Dの境界との交点dが求められ、第1の座標点tは、交点dと第2の基準座標点b1とを結ぶ直線上にマッピングされる。
【0177】
このようにして、座標移動が行なわれない領域Dを設定することができる。
【0178】
図25は、図9に示すフローチャートの第1過程における座標変換の第4例の説明図、図26はその第4例のフローチャートである。
【0179】
この第4例は、ステップe1で求められる第1の基準座標点aがL***空間に写像したカラープリンタの色再現領域302の内部に存在するか、あるいはその色再現領域302から外れているかを考慮することなく適用することができる方法である。
【0180】
ここでも、前述の第1例〜第3例と同様に、L*軸(グレー軸)上に座標変換基準座標点cを設定し、その座標変換基準座標点cと座標変換の対象としている第1の座標点tとを結ぶ直線を考え、その直線と、L***空間上の再設定色再現領域102の境界との交点を求め、その交点を第1の基準座標点aとする(ステップe1)。
【0181】
次に、この第1の基準座標点aを入力RGB空間に写像する(ステップe2)。
【0182】
次に、このようにして入力RGB空間に写像された入力RGB空間上の点P1の座標値に対応した座標値、典型的にはその点P1の座標値と同一の座標値を持つ、カラープリンタに依存した色空間である出力RGB空間上の座標点P2を求める(ステップe3)。具体例を示すと、図25に示す第1の基準座標点aを入力RGB空間に写像した点P1の座標値を(R,G,B)=(0,255,0)としたとき、同一の座標値(R,G,B)=(0,255,0)を持つ出力RGB空間上の点を点P2とする。
【0183】
次にその出力RGB空間上の点P2を出力RGB空間からL***空間に写像し、その写像された点を第2の基準座標点bとする(ステップe4)。
【0184】
第1の基準座標点aはL***空間上の再設定色再現領域102の境界上の点であるため、この第1の基準座標点aを入力RGB空間に写像しても、その入力RGB空間における再設定色再現領域の境界上の点(例えば上記の(R,G,B)=(0,255,0))となる。
【0185】
これをそのまま、出力RGB空間上の点とすると、出力RGB空間上では今度はカラープリンタの色再現領域の境界上の点となり、その点をL***空間に写像して求めた第2の基準座標点bも、そのL***空間上のカラープリンタの色再現領域302の境界上の点となる。
【0186】
このようにして求めた第1の基準座標点aから第2の基準座標点bに向かう基本差分ベクトルvを求め(ステップe5)、第1の座標点tを通り、基本差分ベクトルvと平行に引いた直線と、座標変換基準座標点cと第2の基準座標点bとを結ぶ直線との交点である第2の座標点sを求める(ステップe6)。
【0187】
上記の座標変換が、L***空間上の再設定色再現領域102の全域について順次行なわれる。
【0188】
図27は、図25,図26を参照して説明した座標変換の第3例の変形例を示す図である。
【0189】
ここには、図17,図20,図24の各例と同様、座標変換基準座標点cのまわりに領域Dが設定され、その領域D内はマッピングされないようにしている。領域D内がマッピングされないようにするための手法は、図17,図20,図24の各例の場合と同様であり、説明は省略する。
【0190】
図28は、図9に示すフローチャートの第1過程における座標変換の第5例の途中過程を示す図である。この図28のみを考えると、これは本発明の実施形態ではなく、それと対比されるべき比較例に相当する。
【0191】
ここでは、L*軸(グレー軸)上の座標変換基準座標点cと、座標変換の対象とされる第1の座標点tと結ぶ直線と、L***空間上の再設定色再現領域102との交点(第1の基準座標点a1)およびカラープリンタの色再現領域302との交点(第3の基準座標点a2)を求め、第1の基準座標点a1から第3の基準座標点a2に向かう差分ベクトルv2を求める。この差分ベクトルv2は、デバイス依存の色空間(入力RGB空間あるいは出力RGB空間)でのクリップ等のマッピングを経ることなく求められる差分ベクトルであり、このままでは本発明とは合致しない。
【0192】
この差分ベクトルv2を仮に本発明にいう基本差分ベクトルvと考え、座標変換基準座標点cと第1の基準座標点a1との間の距離ca1と、座標変換基準座標点cと第1の座標点tとの間の距離ctとの比率をct/ca1とし、差分ベクトルv2の長さを|v2|としたとき、第1の座標点tを、差分ベクトルv2と同一方向に、(ct/ca1)×|v2|だけ移動させ、その点を座標変換後の第2の座標点sとする。こうすることによっても一応マッピングは可能であるが、マッピングの方向(差分ベクトルv2の方向)は、人間の色の感覚にあったデバイス依存の色空間上で求めた方向ではなく、このマッピングの手法は、人間の色の感覚が無視されて機械的に定められた方向であり、前述したように調子の不連続が生じたり不自然な画像となる可能性が高い手法である。
【0193】
図29は、図9に示すフローチャートの第1過程における座標変換の第5例の説明図である。
【0194】
この図29において、第1の基準座標点a1,第3の基準座標点a2,差分ベクトルv2は、図28を参照して説明したものと同様である。また第2の基準座標点bは、前述の第1例〜第4例のいずれの手法で求めたものであってもよい。ここでは、第1の基準座標点a1から第2の基準座標点bに向かうベクトルを差分ベクトルv3と称する。
【0195】
この図29に示す例では、このようにして求めた2つの差分ベクトルv2,v3が方向に関し重み付け加算され、第1の基準座標点a1を通り、その重み付け加算により求められた方向に引いた直線と、L***空間上のカラープリンタの色再現領域302の境界との交点を第5の基準座標点eとして求め、第1の基準座標点a1から第5の基準座標点eに向かう差分ベクトルを基本差分ベクトルvとする。
【0196】
第1の座標点tをマッピングするにあたっては、座標変換基準座標点cと第5の基準座標点eとを結ぶ直線と、第1の座標点tを通り基本差分ベクトルvと平行に引いた直線との交点を、その第1の座標点tがマッピングされるべき第2の座標点sとする。
【0197】
ここで、2つの差分ベクトルv2,v3の方向に関する重み付け係数をオペレータにより任意に可変できるようにしておくことで、本発明の手法による座標変換をその重み付け分だけ加味させたマッピングが可能となる。
【0198】
次に、図9に戻り、色変換定義作成過程(ステップa4)について説明する。
【0199】
この色変換定義作成過程(ステップa4)では、これまでの各ステップa1〜a3の各過程での処理を踏まえ、図1のカラースキャナ10に依存した入力RGB空間(本発明にいう第1の色空間の一例)から、カラープリンタ30に依存した出力RGB空間(本発明にいう第3の色空間の一例)への色変換を定義した色変換定義が作成される。
【0200】
ここでは、先ず、図1のカラーチャート画像11aをカラースキャナ10で読み取ったときの、カラースキャナ10に依存する入力RGB空間(本発明にいう第1の色空間の一例)上の任意の座標(これを代表的に第1の座標と称する)を図9の座標対応付過程で対応づけられた座標の対応関係(すなわち、L***空間上で12面体形状を成す再設定色再現領域を入力RGB空間のR,G,Bともに0〜255の立方体形状の色再現領域に対応づけるという座標の対応関係)に従って入力RGB空間での新たな第2の座標に変換する。このようにして第2の座標に変換された後の入力RGB空間は、本発明にいう第2の色空間の一例に相当する。
【0201】
次に、この第2の色空間上の第2の座標をL***空間上の再設定色再現領域に依存した第3の座標に変換する。さらに、この第3の座標を、図9のマッピング定義作成過程で作成されたマッピング定義に従ってカラープリンタのL***空間における色再現領域に依存した、L***空間上の第4の座標に変換する。さらに、この第4の座標を、カラープリンタのプロファイルに従って出力RGB空間上の第5の座標に変換する。
【0202】
このような一連の座標変換の出発点となった、カラースキャナ10に依存する入力RGB空間(本発明にいう第1の色空間の一例)の第1の座標と出力RGB空間上の第5の座標とを対応づけることにより、図1に示す原稿画像11をカラースキャナ10で読み取って得た入力画像データを、カラープリンタ30に適合した出力画像データに変換するための色変換定義が作成される。
【0203】
図30は、本発明の色変換定義作成装置の一実施形態を含む色変換定義作成/色変換装置の機能ブロック図である。
【0204】
この図30に示す色変換定義作成/色変換装置は、図2,図3に示すパーソナルコンピュータ20と、そのパーソナルコンピュータで実行されるプログラムとの結合により実現される。
【0205】
この図30に示す色変換定義作成/色変換装置は、データ取得部310と、LUT作成/データ変換部320と、データ出力部330と、記憶部340と、指定部350とから構成されている。
【0206】
記憶部340には、複数種類の入力デバイスそれぞれに対応した複数種類の入力プロファイル341a,…,341mと、複数種類の出力デバイスそれぞれに対応した複数種類の出力プロファイル342a,…,342nと、複数種類の色変換定義343a,…,343pと、さらに、色変換定義作成プログラム344が記憶されている。
【0207】
入力プロファイル341a,…,341mのそれぞれは、各種の入力デバイスについて、基本的には図4を参照した作成方法により作成されたものである。尚、図1には、入力デバイスは一種類のカラースキャナ10のみ示されているが、図30の色変換定義作成/色変換装置には、汎用性を持たせるため、複数種類の入力デバイスそれぞれに対応する複数種類の入力プロファイルが用意されている。
【0208】
また、記憶部340に記憶された出力プロファイル342a,…,342nは、各種の出力デバイスについて、基本的には図5を参照して説明した作成方法により作成された出力プロファイルである。
【0209】
尚、入力プロファイルの場合と同様、図1には、出力デバイスとして一種類のカラープリンタ30のみ示されているが、図30の色変換定義作成/色変換装置は、出力デバイスに関しても汎用性を持たせるため、複数種類の出力デバイスそれぞれに対応する複数種類の出力プロファイルが用意されている。
【0210】
また、記憶部340に記憶された色変換定義343a,…,343pは、記憶部340に記憶された色変換定義作成プログラム344がLUT作成/データ変換部320に読み出されて実行されることにより、図9およびその後の各図を参照して説明したようにして作成されたものであり、各色変換定義は、各入力プロファイルと各出力プロファイルとの各組合せに対応している。ここではこれらの色変換定義341a,…,341pは、それぞれLUT(Look Up Table)の形式にまとめられている。
【0211】
なお、この記憶部340は、ハードウェア上は、図3に示すハードディスク装置213の内部に設定されている。
【0212】
指定部350では、入力デバイス、出力デバイス、および、色変換定義作成モードとデータ変換モードとの区別が指定される。この指定部350は、ハードウェア上は、図2,図3に示すキーボード23あるいはマウス24がその役割りを担っている。
【0213】
指定部350で、色変換定義作成モードが指定されるとともに、入力デバイスと出力デバイスが指定されると、記憶部340から色変換定義作成プログラム344がLUT作成/データ変換部32に読み出されて実行される。この色変換定義作成プログラム344は、図9を参照して説明した色再現領域決定過程(ステップa1)、座標対応付過程(ステップa2)、マッピング定義作成過程(ステップa3)(第2過程(ステップa31)および第1過程(ステップa32))、および色変換定義作成過程(ステップa4)のそれぞれに対応する処理を実行する、色再現領域決定部3441、座標対応付部3442、マッピング定義作成部3443(第2過程3443aおよび第1過程3443b)、および色変換定義作成部3444から構成されており、前述したアルゴリズムに基づき、指定された入力デバイス(ここでは、図1に示すカラースキャナ10とする)に応じた入力プロファイル(ここでは、入力プロファイル341aとする)と、指定された出力デバイス(ここでは図1に示すカラープリンタ30とする)に応じた出力プロファイル(ここでは出力プロファイル342aとする)が参照されると共に、カラースキャナ10で読み取られたカラーチャート画像の画像データが参照されて、それらカラースキャナ10とカラープリンタ30との組合せに適合した色変換定義(ここでは色変換定義341aとする)が作成される。この作成された色変換定義341aは記憶部340に記憶される。
【0214】
このとき、指定部350から、色変換定義作成のための各種のパラメータ、例えば、マッピング定義作成部の第2過程を実行するか省略するか、あるいはその第2過程を実行する場合に白点と黒点との双方をそれぞれ一致させるか白点のみを一致させるか、図15等に示す座標変換基準座標点cの座標値、図17等に示す領域Dを設定するか否か、領域Dを設定する場合のその領域の指定、色変換定義作成過程の第1過程として各種の例を示したが、それら各種の例のうちのいずれのアルゴリズムを選択するか、図29を参照して説明した重み付けの手法を採用する場合のその重み付け係数等を指定できるように構成し、様々なバリエーションの色変換定義を作成することができるようにすることが好ましい。
【0215】
また、指定部310からデータ変換モードが指定され、さらに入力デバイスおよび出力デバイスが指定されると(ここでは入力デバイス、出力デバイスとしてそれぞれ図1に示すカラースキャナ10、カラープリンタ30が指定されるものとする)、それら指定されたカラースキャナ10およびカラープリンタ30の組合せに適合した色変換定義341aが読み出されてLUT作成/データ変換部320に入力される。
【0216】
データ取得部310は、入力デバイスで得られた色データを受け取る役割りを担うものであり、ハードウェア上は、図3に示す入力インタフェース216がこれに相当する。
【0217】
また、データ出力部330は、定義作成データ変換部320で色変換された後の色データの出力を担うものであり、ハードウェア上は、図3に示す出力インタフェース217がこれに相当する。
【0218】
入力デバイス、例えば図1に示すカラースキャナ10で得られた画像データがデータ取得部310を経由してLUT作成/データ変換部320に入力されると、LUT作成/データ変換部320では、色変換定義343aによる画像データの変換が行なわれる。この変換後の画像データはデータ出力部330を経由して、出力デバイス、例えば図1に示すカラープリンタ30に向けて出力される。
【0219】
このLUT作成/データ変換部320による画像データの変換は、本発明に特有な色変換定義作成方法により作成された色変換定義が参照された変換であり、色調子の優れた出力画像を得ることができる。
【0220】
ここで、図30に示す色変換定義作成/色変換装置において、記憶部340に記憶された複数の出力プロファイル342a,…,342mのうちの1つとして、図2,図3に示す画像表示装置22に対応する出力プロファイルを用意しておき、LUT作成/データ変換部320で変換された後の画像データに基づく画像をその画像表示装置22の表示画面22a(図2参照)上に表示し、かつ、指定部350(キーボード23やマウス24)に、データ変換モードにおいても色変換定義を補正する機能を持たせ、表示画面上に表示された画像を見ながら、その画像がより好ましい色調子を持った画像となるように色変換定義を補正できるように構成してもよい。
【0221】
図31は、図30に示す色変換定義作成/色変換装置のLUT作成/データ変換部の機能ブロック図である。
【0222】
このLUT作成/データ変換部320は、LUT作成部321とデータ変換部322とから構成されている。さらにLUT作成部321は、色再現領域決定部3211と、座標対応付部3212と、マッピング定義作成部3213(第2過程3213aおよび第1過程3213b)と、色変換定義作成部3214とから構成されている。
【0223】
LUT作成部321は、色変換定義作成モードにおいて動作し、このLUT作成部321には、図30に示す指定部350で指定された入力プロファイルを持つカラースキャナで読み取られたカラーチャート画像を表わす画像データが入力されるとともに、そのLUT作成部321に、図30に示す色変換定義作成プログラム344が設定されて実行される。これにより、そのLUT作成部321の、色再現領域決定部3211、座標対応付部3212、マッピング定義作成部3213(第2過程3213aと第1過程3213b)、および色変換定義作成部214では、図9に示す色変換定義作成方法の、色再現領域決定過程(ステップa1)、座標対応付過程(ステップa2)、マッピング定義作成過程(ステップa3)(第2過程(ステップa31)と第1過程(ステップa32))、および色変換定義作成過程(ステップa4)に対応する各処理が実行され、LUT形式の色変換定義が作成される。この作成された色変換定義は、図30の記憶部340に記憶される。
【0224】
また、指定部350でデータ変換モードが指定されると、データ変換部322に、指定部350で指定された入力プロファイルと出力プロファイルとの組合せに応じた色変換定義が設定され、入力画像データがその設定された色変換定義に従って出力画像データに変換される。
【0225】
図32は、本発明の色変換定義作成プログラムのもう1つの実施形態を示す図である。
【0226】
図30を参照して、図30に示す色変換定義作成/色変換装置の記憶部340に本発明の一実施形態としての色変定義作成プログラムが記憶されている旨説明したが、この図32には、もう1つの例として、図3に示すCD−ROM110に、色変換定義作成プログラム344が記憶された例が示されている。このように、色変換定義作成プログラムを可搬型記憶媒体に記憶させて流通させてもよい。
【0227】
このような色変換定義作成プログラムを入手したユーザは、自分のパーソナルコンピュータにその入手した色変換定義作成プログラムをアップロードし、その色変換定義作成プログラムを使って、色調子の優れた色変換を行なうことのできる色変換定義を作成することができる。
【0228】
尚、ここで説明した実施形態はカラーチャート画像の色再現領域をL***空間上で12面体形状の色再現領域で囲う例であるが、12面体形状の色再現領域で囲うことに代え、図11に示す一点鎖線が多面体の辺とならないように、W,K,R,G,B,C,M,Yの各点を定めることにより6面体形状の色再現領域で囲ってもよい。また、カラーチャート画像の色再現領域を多面体形状の色再現領域で囲うにあたっては、L***空間等の共通色空間で囲うことに代え、カラースキャナに依存した入力色空間で多面体形状となるように囲ってもよい。
【0229】
【発明の効果】
以上説明したように、本発明によれば、画像記録媒体上に表現することが可能な色の領域の広さや形状にかかわらず、共通色空間でガマットマッピングを行なったときに生じ易い調子の不連続や不自然な画像となってしまうことが避けられた、かつ色調子の優れた再生画像を得ることのできる色変換定義を作成することができる。
【図面の簡単な説明】
【図1】本発明の一実施形態が適用された画像入力−色変換−画像出力システムの全体構成図である。
【図2】図1に1つのブロックで示すパーソナルコンピュータの外観斜視図である。
【図3】パーソナルコンピュータのハードウェア構成図である。
【図4】入力プロファイルの概念図である。
【図5】出力プロファイルの概念図である。
【図6】入力プロファイルと出力プロファイルとの双方からなる色変換アルゴリズムを示す概念図である。
【図7】カラースキャナとカラープリンタの色再現領域の模式図である。
【図8】カラーチャートとカラースキャナの色再現領域の模式図である。
【図9】コンピュータシステム内で実行される色変換定義作成プログラムによる色変換定義作成方法を示したフローチャートである。
【図10】入力RGB空間における、カラースキャナの色再現領域とカラーチャート画像の色再現領域501を示す図である。
【図11】L***空間におけるカラーチャート画像の色再現領域(本発明にいう第1の色再現領域)と、その色再現領域を内包する12面体形状の色再現領域(本発明にいう第2の色再現領域の一例に相当する)を示した図である。
【図12】12面体を構成する任意の平面上の任意の点への数値(座標)の割付け方法の説明図である。
【図13】L***空間内の任意の点の座標の求め方の説明図である。
【図14】マッピング定義作成過程の第2過程の説明図である。
【図15】第1過程における座標変換の第1例の説明図である。
【図16】その第1例のフローチャートである。
【図17】座標変換の第1例の変形例を示す図である。
【図18】第1過程における座標変換の第2例の説明図である。
【図19】座標変換の第2例のフローチャートである。
【図20】座標変換の第2例の変形例を示す図である。
【図21】‘圧縮’と‘伸長’とを組み合わせて行なったマッピングの効果説明図である。
【図22】第1過程における座標変換の第3例の説明図である。
【図23】座標変換の第3例のフローチャートである。
【図24】座標変換の第3例の変形例を示す図である。
【図25】第1過程における座標変換の第4例の説明図である。
【図26】座標変換の第4例のフローチャートである。
【図27】座標変換の第3例の変形例を示す図である。
【図28】第1過程における座標変換の第5例の途中過程を示す図である。
【図29】第1過程における座標変換の第5例の説明図である。
【図30】本発明の色変換定義作成装置の一実施形態を含む色変換定義作成/色変換装置の機能ブロック図である。
【図31】図30に示すLUT/データ変換部の機能ブロック図である。
【図32】色変換定義作成プログラムのもう1つの実施形態を示す図である。
【符号の説明】
10 カラースキャナ
11 原稿画像
11a カラーチャート画像
20 パーソナルコンピュータ
21 本体装置
22 画像表示装置
22a 表示画面
23 キーボード
24 マウス
25 バス
30 カラープリンタ
100 フレキシブルディスク
110 CD−ROM
211 CPU
212 主メモリ
213 ハードディスク装置
214 FDドライブ
215 CD−ROMドライブ
216 入力インタフェース
217 出力インタフェース
310 データ取得部
320 LUT作成/データ変換部
330 データ出力部
340 定義記憶部
341a,…,341m 入力プロファイル
342a,…,342n 出力プロファイル
343,343a,…,343p 色変換定義
344 色変換定義作成プログラム
350 指定部[0001]
BACKGROUND OF THE INVENTION
The present invention provides a color tone so that a suitable color tone can be obtained when image data obtained by an input device that obtains image data by inputting an image is output by an output device that outputs an image based on the image data. The present invention relates to a color conversion definition creating method for creating a color conversion definition to be a basis for conversion, a color conversion definition creating apparatus, and a color conversion definition creating program for creating a color conversion definition for obtaining a suitable color tone.
[0002]
[Prior art]
For example, a color scanner that reads recorded images to obtain image data, or a DSC (digital still camera) that obtains image data by forming an image of a subject on a solid-state imaging device and reading the image is input. Various types of input devices for obtaining image data are known. In these input devices, the image data is represented by data in a fixed range such as 0 to 255 for each of the three colors R (red), G (green), and B (blue). When converted to image data, the image represented by the image data is limited to colors in a color reproduction region depending on the input device in the color space composed of R, G, and B.
[0003]
Also for output devices that output images based on image data, for example, photographic printers, electrophotographic systems, and inkjets that record images on photographic paper by exposing the photographic paper with laser light and developing the photographic paper Image display such as a printer that records images on paper by a method, a printer that rotates a rotary press to create a large amount of printed matter, a CRT display that displays images on the display screen based on image data, a plasma display, etc. Various types of output devices such as apparatuses are known, and these output devices also have color reproduction regions corresponding to the respective output devices as in the case of the input devices described above. That is, the output device can be selected based on, for example, image data expressing three colors of R, G, and B and image data expressing four colors of C (cyan), M (magenta), Y (yellow), and K (black). The colors that can be expressed are within a range of 0 to 255 for each of the color reproduction regions (for example, R, G, and B) in the output device color space (for example, RGB space, CMYK space, etc.). It is limited to a color reproduction region expressed by a numerical value). A color reproduction region in such an input device or output device is called a color gamut.
[0004]
Further, for example, even when there is certain image data (for example, image data representing (R, G, B) = (50, 100, 200)), the color of the image obtained based on the image data is the type of the output device. Varies by This point is the same between the input device and the output device, and the image data of (R, G, B) = (50, 100, 200) obtained by a certain input device is used as it is. In general, the color of the original image input by the input device does not match the color of the image output by the output device. Therefore, when reading an image with a certain input device to obtain image data and trying to reproduce the original image with a certain output device based on that image data, the image data obtained with the input device is directly used as the output device. Instead of sending, it is necessary to convert the image data between them. Here, attention is paid to the color of the image, and the conversion of the image data is referred to as color conversion (Gamut Mapping).
[0005]
As described above, the color reproduction region varies depending on each device, and even if the image data is numerically the same, the color expressed in each device is different. Therefore, in performing color conversion (gamut mapping), a common color space (Device Independent Data space) that does not depend on a device, for example, L*a*b*Place the color space etc. in the middle, convert the image data on the color space depending on the input device obtained by the input device to the image data on the common color space, perform gamut mapping on the common color space, and the gamut A technique of converting image data after mapping into image data on a color space depending on the output device is employed (for example, Japanese Patent Laid-Open Nos. 60-105376 and 61-288862). JP-A-4-196675).
[0006]
As described above, gamut mapping is conventionally performed in a common color space, but gamut mapping in this common color space is, for example, L*a*b*L in color space*Axis, a*Axis, b*It is a mapping in a three-dimensional space consisting of three axes, and has a high degree of freedom and can be mapped in any way, but on the other hand, the degree of freedom is too large, and adjustment parameters for mapping Is difficult to set, and as a result, there is a high possibility that tone discontinuity (tone jumping or poor tone connection) will occur in the image after mapping, and the image will give an unnatural impression. It often ends up.
[0007]
On the other hand, since the finally required image data is image data in a color space (output color space) depending on the output device, it is converted into image data on the output color space, and the output color space (for example, RGB space) In the above, for each of R, G, and B, for example, data that protrudes from the range of 0 to 255 is clipped to 0 for negative data and to 255 for data that exceeds 255, respectively. Have been proposed (Japanese Patent Laid-Open No. 2-214266 (compressed in CMY space), Japanese Patent Laid-Open No. 4-334267 (compressed by density)). Although this is a simple technique, it corresponds to an example of gamut mapping in the output color space.
[0008]
When gamut mapping is performed on this output color space, the output color space is a color space that matches the human color sensation, such as RGB, and therefore, a tone that tends to occur when gamut mapping is performed in the common color space. It is possible to avoid inconveniences such as discontinuity and an unnatural impression.
[0009]
However, the mapping in the output color space is basically one-dimensional mapping independently for each of the three axes R, G, and B that defines the output color space. As described above, for each of R, G, and B, for example, data that protrudes from the range of 0 to 255 is simply clipped to 0 or 255, and the boundary (R, G, and B of each color reproduction region (gamut) is set. It is limited to the method of mapping to the surface of a cube having a numerical value of 0 to 255), and in particular, near the boundary of the color reproduction area (color gamut), the color reproduction area of one device is changed to the color reproduction area of another device. There is a problem that it is difficult to accurately map.
[0010]
[Problems to be solved by the invention]
Under such a background, the boundary surface of the color reproduction area of the input device in the input RGB color space depending on the input device and the surface of the color reproduction area of the output device in the output RGB color space depending on the output device The direction of mapping is determined by finding points corresponding to each other, and the actual mapping is device-independent, for example L*a*b*A mapping method of performing in a color space has been proposed (see Japanese Patent Laid-Open No. 2001-103329).
[0011]
According to this mapping method, the mapping direction is determined in a device-dependent color space suitable for human senses, so that the mapping characteristics can be easily adjusted, and the actual mapping is device-independent. Since it is performed in the common color space, high-accuracy mapping can be performed including the vicinity of the boundary of the device color reproduction region.
[0012]
However, the above mapping method can be adopted because the color area that can be expressed on the image read by the input device is a color space that depends on the input device (the input RGB in the above example). The color space is limited to the case where it matches the color reproduction area of the input device (for example, a cubic area having a value of 0 to 255 for any of R, G, and B).
[0013]
On the other hand, for example, a color chart in which a large number of color patches are arranged is formed on a reversal film, and the color chart formed on the reversal film is read by a color scanner, which is disclosed in the above Japanese Patent Laid-Open No. 2001-103329. When mapping is performed according to the mapping method, the color in the color space (for example, input RGB color space) depending on the color scanner when the color chart on the reversal film is read by the color scanner is used. The area occupied by the color represented on the chart is generally the entire color reproduction area of the color scanner, which is the entire cubic area where R, G, and B all take values in the range of 0 to 255. Does not spread and occupies only a part of the cubic region. Moreover, even if the color chart is the same, if the input device that reads the color chart is different, such as the type of the color scanner is different, the color represented on the color chart in the color space that depends on the input device is different. The spread and shape of the occupied area will be different.
[0014]
In this way, the color area that can be expressed on the image read by the input device does not spread over the entire color reproduction area of the input device in the color space depending on the input device, but in a partial area thereof. If the mapping method proposed in Japanese Patent Laid-Open No. 2001-103329 is adopted, the superior performance of the mapping method is not sufficiently exhibited, and the same color chart is used. However, since the area occupied by the color expressed on the color chart differs depending on the type of color scanner, etc., there is a problem that the degree of effect of the mapping method varies depending on the type of color scanner.
[0015]
In view of the above circumstances, the present invention is applicable to the case where the spread of a color area that can be expressed on an image recording medium such as a reversal film is limited to a part of the color reproduction area of the input device, or depending on the input device. Color conversion definition creation method and color conversion definition creation that can create color conversion definitions that perform high-accuracy color conversion that matches the human color sensation even when the area size and shape are different. It is an object of the present invention to provide a color conversion definition creating program capable of operating a device and a computer as such a color conversion definition creating device.
[0016]
[Means for Solving the Problems]
The color conversion definition creating method of the present invention that achieves the above object is adapted to an output device that outputs an image based on image data obtained by reading an image recorded on an image recording medium with an input device. In a color conversion definition creation method for creating a color conversion definition for converting to output image data,
A polyhedral shape formed of a plurality of planes including a first color reproduction area representing a color area that can be expressed on the image recording medium and extending along the surface of the first color reproduction area. A color reproduction region determination process for determining a second color reproduction region;
Each point of the second color reproduction region is assigned to each point of the second color reproduction region so that the entire second color reproduction region is associated with the entire third color reproduction region of the input device in the first color space depending on the input device. A coordinate association process for determining the correspondence between the coordinates of the second color space and the coordinates of the device independent common color space by assigning coordinates to form a second color space;
The coordinates in the second color reproduction area in the common color space are the profiles of the fourth color reproduction area of the output device in the third color space depending on the output device that outputs the image based on the image data. A mapping definition creation process for creating a mapping definition on the common color space for conversion to coordinates in the fourth color reproduction area in the common color space when mapped to the common color space according to
The first coordinate on the first color space is converted to the second coordinate on the second color space, and the second coordinate is converted to the third coordinate on the common color space. Is converted to the fourth coordinate on the common color space in accordance with the mapping definition, and the fourth coordinate is converted to the fifth coordinate on the third color space. And a color conversion definition creating process for creating a color conversion definition between the first coordinate and the fifth coordinate.
[0017]
In the color conversion definition creating method of the present invention, a polyhedral second color reproduction region in which a first color reproduction region representing a color region that can be expressed on an image recording medium such as a reversal film is surrounded by a polyhedron. And a third color reproduction region (for example, R, G, in the input RGB color space) in which the entire second color reproduction region in the first color space depending on the input device is the color reproduction region of the input device. The mapping is performed so as to correspond to the entire area of the cubic color reproduction region (B = 0 to 255). Thereby, the color area that can be expressed on the image recording medium is the third color reproduction area (the color reproduction area of the input device, for example, a cubic area of R, G, B = 0 to 255). It is spread over the whole area.
[0018]
The color conversion definition creating method of the present invention performs such mapping, and thereafter adopts the mapping method proposed in, for example, Japanese Patent Laid-Open No. 2001-103329 to define the mapping definition in the common color space. create. In this way, the color area that can be expressed on the image recording medium is originally spread only in a part of the color reproduction area (third color reproduction area) of the input device, or the area is expanded. Even when the degree and the shape of the spread differ depending on the input device or the like, a highly accurate color conversion definition can always be created stably.
[0019]
Here, in the color conversion definition creating method of the present invention, it is preferable that the color reproduction area determination process is a process of determining a second color reproduction area having a polyhedral shape in the common color space.
[0020]
Enclosing the first color reproduction region with the polyhedron-shaped second color reproduction region may be performed in a first color space depending on the input device, but in that case, an image recording medium (on the image recording medium) Even if the color chart is the same, the first color reproduction region differs depending on the input device, and it may be necessary to newly determine the second color reproduction region every time the input device is different.
[0021]
On the other hand, if the image recording medium (the color chart on the image recording medium) is the same by enclosing the first color reproduction area with the polyhedral-shaped second color reproduction area in the common color space, the input is performed. The second color reproduction region can be determined without being affected by the device.
[0022]
Further, in the color conversion definition creating method of the present invention, the color reproduction region determining process is a dodecahedron shape having each vertex representing white, black, red, green, blue, cyan, magenta, and yellow as vertices. It is preferable that the second color reproduction region be determined.
[0023]
By enclosing with the above dodecahedron, the second color reproduction region having a shape very close to the first color reproduction region can be determined. However, in the present invention, the second color reproduction region does not need to be a dodecahedron, and depending on the shape of the first color reproduction region, the first color reproduction region is surrounded by a hexahedron, The second color reproduction region may be determined.
[0024]
Here, in the color conversion definition creating method according to the present invention, the mapping definition creating step includes a fourth coordinate in the common color space corresponding to the first coordinate point in the second color reproduction region in the common color space. In obtaining the second coordinate point in the color reproduction region,
Based on the first coordinate point, a first reference coordinate point is obtained in the second color reproduction region in the common color space;
A second reference coordinate point corresponding to the first reference coordinate point based on a first algorithm including a coordinate operation in at least one of the second color space and the third color space; For the fourth color reproduction region in the common color space,
Based on a second algorithm using a basic difference vector representing a difference between the first reference coordinate point and the second reference coordinate point, the second coordinate point corresponding to the first coordinate point is It is preferable that the first process to be obtained is included.
[0025]
In this case, a high-accuracy color conversion definition is created in combination with the fact that the mapping method proposed in Japanese Patent Laid-Open No. 2001-103329 has been eliminated by the above-described coordinate association process. The
[0026]
In the color conversion definition creating method of the present invention, the mapping definition creating process may be configured such that the first reference coordinate point is located on the boundary of the second color reproduction region in the common color space based on the first coordinate point. Is what we want
It is preferable that the second reference coordinate point is obtained on the boundary of the fourth color reproduction area in the common color space based on the first algorithm.
[0027]
By obtaining the first reference coordinate point and the second reference coordinate point on the respective boundaries of the second color reproduction region and the fourth color reproduction region in the common color space, the direction of color conversion can be easily performed. A basic difference vector can be obtained as a guideline for
[0028]
In this case, the first process in the mapping definition creating process is
A straight line connecting a predetermined coordinate transformation reference coordinate point in the common area between the second color reproduction area in the common color space and the fourth color reproduction area in the common color space and the first coordinate point, and the common Obtaining an intersection point with the boundary of the second color reproduction region in the color space as the first reference coordinate point;
If the first reference coordinate point is a coordinate point deviating from the fourth color reproduction area in the common color space, the first reference coordinate point is mapped to the third color space to obtain the third Mapping on the boundary of the fourth color reproduction region in the color space, and mapping the coordinate point obtained by mapping on the boundary to the common color space, was obtained on the common color space by the mapping, Obtaining a coordinate point on the boundary of the fourth color reproduction region in the common color space as the second reference coordinate point;
An intersection of a straight line connecting the coordinate conversion reference coordinate point and the second reference coordinate point and a straight line passing through the first coordinate point and parallel to the direction of the basic difference vector is defined as the first coordinate. You may obtain | require as a 2nd coordinate point corresponding to a point.
[0029]
In addition, the first process in the mapping definition creating process is as follows:
A straight line connecting a predetermined coordinate conversion reference coordinate point in the common area between the second color reproduction area in the common color space and the fourth color reproduction area in the common color space and the first coordinate point; Obtaining an intersection point with the boundary of the second color reproduction region in the common color space as the first reference coordinate point;
If the first reference coordinate point is a coordinate point in the fourth color reproduction area in the common color space, the common color of the boundaries of the fourth color reproduction area in the common color space The coordinate point of the part out of the second color reproduction area in the space is mapped to the second color space, mapped onto the boundary of the second color reproduction area in the second color space, By mapping the coordinate point obtained by the mapping to the common color space, and through a coordinate conversion process for obtaining the coordinate point in the common color space, the first reference coordinate point is coincident or the first judgment point in light of a predetermined criterion. A coordinate point close to one reference coordinate point is obtained, and a coordinate point corresponding to the coordinate point on the boundary of the fourth color reproduction region in the common color space before undergoing the coordinate conversion process is set as a second coordinate point. As a reference coordinate point,
An intersection of a straight line connecting the coordinate conversion reference coordinate point and the second reference coordinate point and a straight line passing through the first coordinate point and parallel to the direction of the basic difference vector is defined as the first coordinate. You may obtain | require as a 2nd coordinate point corresponding to a point.
[0030]
Alternatively, the first step in the mapping definition creation step is
A straight line connecting a predetermined coordinate conversion reference coordinate point in the common area between the second color reproduction area in the common color space and the fourth color reproduction area in the common color space and the first coordinate point; Obtaining an intersection with the boundary of the second color reproduction region in the common color space as a first reference coordinate point;
When the first reference coordinate point is a coordinate point in the fourth color reproduction area in the common color space, an intersection of the straight line and the boundary of the fourth color reproduction area in the common color space is determined. The third reference coordinate point is obtained, and the third reference coordinate point is mapped to the second color space and mapped onto the boundary of the second color reproduction area in the second color space, By mapping the coordinate point obtained by the mapping to the common color space, a fourth reference coordinate point is obtained on the boundary of the second color reproduction region in the common color space, and the first reference coordinate point is obtained. The intersection point between the straight line parallel to the straight line connecting the third reference coordinate point and the fourth reference coordinate point and the boundary of the fourth color reproduction region in the common color space is defined as the second reference coordinate point. Seeking
An intersection of a straight line connecting the coordinate conversion reference coordinate point and the second reference coordinate point and a straight line passing through the first coordinate point and parallel to the direction of the basic difference vector is defined as the first coordinate. You may obtain | require as a 2nd coordinate point corresponding to a point.
[0031]
Furthermore, the first process in the mapping definition creating process is as follows:
A straight line connecting a predetermined coordinate transformation reference coordinate point in the common area between the second color reproduction area in the common color space and the fourth color reproduction area in the common color space and the first coordinate point, and the common Obtaining an intersection with the boundary of the second color reproduction region in the color space as a first reference coordinate point;
The first reference coordinate point is mapped to the second color space to obtain a coordinate point on the second color space, and a first coordinate value corresponding to the coordinate value of the coordinate point on the second color space is obtained. The coordinate point on the third color space is obtained, and the coordinate point on the third color space is mapped to the common color space, whereby the fourth color in the common color space obtained on the common color space by the mapping is obtained. A coordinate point on the boundary of the color reproduction region is obtained as the second reference coordinate point,
An intersection of a straight line connecting the coordinate conversion reference coordinate point and the second reference coordinate point and a straight line passing through the first coordinate point and parallel to the direction of the basic difference vector is defined as the first coordinate point. May be obtained as a second coordinate point corresponding to.
[0032]
Here, in the above-described various aspects for obtaining the second coordinate point corresponding to the first coordinate point, the first process in the mapping definition creating process determines the coordinate conversion reference when obtaining the second coordinate point. Instead of obtaining an intersection of a straight line connecting the coordinate point and the second reference coordinate point and a straight line passing through the first coordinate point and parallel to the direction of the basic difference vector, the coordinate conversion reference coordinate point and the first reference coordinate point A basic difference vector passing through the intersection of the straight line connecting the first reference coordinate point and the boundary of the predetermined area including the coordinate conversion reference coordinate point and passing through the second reference coordinate point, and passing through the first coordinate point An intersection point with a straight line drawn in parallel with the direction may be obtained as a second coordinate point corresponding to the first coordinate point.
[0033]
By doing so, it is possible to secure an area in which the mapped color is stored as it is around the coordinate reference coordinate point for mapping.
[0034]
Further, in the above-described various aspects for obtaining the second coordinate point corresponding to the first coordinate point, the first step in the mapping definition creating step may include a coordinate conversion reference coordinate point and the first coordinate point. A reference difference representing a difference between the first reference coordinate point and the second reference coordinate point is obtained by obtaining a third reference coordinate point that is an intersection of the connecting straight line and the boundary of the fourth color reproduction region in the common color space. Instead of the vector, it passes through the first reference coordinate point, the direction of the first difference vector representing the difference between the first reference coordinate point and the second reference coordinate point, the first reference coordinate point and the first reference coordinate point The intersection of the straight line drawn in the direction obtained based on the direction of the second difference vector representing the difference from the third reference coordinate point and the boundary of the fourth color reproduction region in the common color space is the fifth. The first reference coordinate point and the fifth reference coordinate point Vector representing the difference between the reference points or may be a reference difference vector.
[0035]
By doing so, the direction of mapping can be adjusted quite freely.
[0036]
Furthermore, in the above-described various aspects for obtaining the second coordinate point corresponding to the first coordinate point, the first step in the mapping definition creation step is performed on the gray axis of the common color space as a coordinate conversion reference coordinate point. It is preferable that this point is selected.
[0037]
The coordinate conversion reference coordinate point is not mapped and the color is stored as it is. Therefore, the gray balance can be preserved by taking the coordinate conversion reference coordinate point on the gray axis.
[0038]
In the color conversion definition creating method of the present invention,
In the mapping definition creation process, before the first process, the white coordinate point of the second color reproduction area in the common color space is matched with the white coordinate point of the fourth color reproduction area in the common color space. A second step of converting coordinate points in the second color reproduction region in the common color space using an adaptive conversion algorithm for converting
In the mapping definition creating process, the first process uses the coordinate point obtained through the second process as a conversion target, and the conversion target coordinate point is used as the second color reproduction area in the common color space. Instead, it is preferable that the second color reproduction area is further converted by adopting a new second color reproduction area obtained by conversion using an adaptive conversion algorithm.
[0039]
In this case, the second step in the mapping definition creation step is an adaptation conversion algorithm in which the white coordinate point of the second color reproduction region in the common color space is replaced with the white coordinate point of the fourth color reproduction region in the common color space. And a conversion algorithm for converting the black coordinate point of the second color reproduction area in the common color space to coincide with the black coordinate point of the fourth color reproduction area in the common color space More preferably, the coordinate point of the second color reproduction region in the common color space is converted using
[0040]
In this way, by executing the first process after matching the white (or white and black) of the second color reproduction area with the white (or white and black) of the fourth color reproduction area, the first process is further performed. It is possible to create a mapping definition on the common color space with high accuracy, and thus to create a color conversion definition between input image data and output image data with higher accuracy.
[0041]
In addition, the color conversion definition creating apparatus of the present invention that achieves the above-described object,
Create a color conversion definition for converting input image data obtained by reading an image recorded on an image recording medium with an input device into output image data suitable for an output device that outputs an image based on the image data In the color conversion definition creation device,
A polyhedron-shaped first formed of a plurality of planes including a first color reproduction area representing a color area that can be expressed on the image recording medium and extending along the surface of the first color reproduction area. A color reproduction region determination unit that determines the color reproduction region of 2;
Each point of the second color reproduction region is assigned to each point of the second color reproduction region so that the entire second color reproduction region is associated with the entire third color reproduction region of the input device in the first color space depending on the input device. A coordinate association unit for determining a correspondence relationship between the coordinates of the second color space and the coordinates of the device-independent common color space by assigning coordinates to form the second color space;
The coordinates in the second color reproduction area in the common color space are the profiles of the fourth color reproduction area of the output device in the third color space depending on the output device that outputs the image based on the image data. A mapping definition creating unit that creates a mapping definition on the common color space for conversion to coordinates in the fourth color reproduction region in the common color space when mapped to the common color space according to
The first coordinate on the first color space is converted to the second coordinate on the second color space, and the second coordinate is converted to the third coordinate on the common color space. Is converted to the fourth coordinate on the common color space in accordance with the mapping definition, and the fourth coordinate is converted to the fifth coordinate on the third color space. And a color conversion definition creating unit for creating a color conversion definition between the first coordinate and the fifth coordinate.
[0042]
Note that the color conversion definition creating apparatus of the present invention includes all the various modes corresponding to all the modes in the color conversion definition creating method of the present invention described above.
[0043]
Furthermore, the color conversion definition creating program of the present invention is executed in a computer, and the computer reads input image data obtained by reading an image recorded on an image recording medium with an input device based on the image data. A color conversion definition creation program that operates as a color conversion definition creation device for creating a color conversion definition for converting to output image data suitable for an output device that outputs
A polyhedron-shaped first formed of a plurality of planes including a first color reproduction area representing a color area that can be represented on the image storage medium and extending along the surface of the first color reproduction area. A color reproduction region determination unit that determines the color reproduction region of 2;
Each point of the second color reproduction region is assigned to each point of the second color reproduction region so that the entire second color reproduction region is associated with the entire third color reproduction region of the input device in the first color space depending on the input device. A coordinate association unit for determining a correspondence relationship between the coordinates of the second color space and the coordinates of the device-independent common color space by assigning coordinates to form the second color space;
The coordinates in the second color reproduction area in the common color space are the profiles of the fourth color reproduction area of the output device in the third color space depending on the output device that outputs the image based on the image data. A mapping definition creating unit that creates a mapping definition on the common color space for conversion to coordinates in the fourth color reproduction region in the common color space when mapped to the common color space according to
The first coordinate on the first color space is converted to the second coordinate on the second color space, and the second coordinate is converted to the third coordinate on the common color space. Is converted to the fourth coordinate on the common color space in accordance with the mapping definition, and the fourth coordinate is converted to the fifth coordinate on the third color space. And a color conversion definition creating unit for creating a color conversion definition between the first coordinate and the fifth coordinate.
[0044]
Note that the color conversion definition creation program of the present invention also includes all the various aspects corresponding to all the aspects of the above-described color conversion definition creation method of the present invention.
[0045]
DETAILED DESCRIPTION OF THE INVENTION
Hereinafter, embodiments of the present invention will be described.
[0046]
FIG. 1 is an overall configuration diagram of an image input-color conversion-image output system to which an embodiment of the present invention is applied.
[0047]
Here, a color scanner 10 is shown. The color scanner 10 reads an original image 11 recorded on a color reversal film and generates RGB three-color image data. The RGB image data is input to the personal computer 20. In the personal computer 20, image data obtained by the color scanner 10 is converted into RGB three-color image data for image output suitable for a color printer 30 described later. The image data for image output is input to the color printer 30, and the color printer 30 performs print output based on the input image data to form a print image 31.
[0048]
Here, the personal computer 20 also serves as an embodiment of the color conversion definition creating apparatus according to the present invention. In the personal computer 20, the color conversion definition is created in advance and the image data obtained by the color scanner 10 is obtained. Is converted to image data for the color printer 30, the created color conversion definition is referred to. The color conversion definition and its creation method will be described later. In creating the color conversion definition, a color chart 11 a in which a large number of color patches recorded on the color reversal film are arranged is read by the color scanner 10. It is done.
[0049]
In the system shown in FIG. 1, a color printer 30 is shown as an example of an output device that outputs an image based on image data. However, the color printer 30 may be an electrophotographic color printer or an inkjet color printer. It may be a printer, or it may be a printer that develops the photographic paper by exposing the photographic paper with a modulated laser beam, and it does not matter what the printing method is. The output device is not limited to a printer, and may be a printing machine, or an image display device such as a CRT display device or a plasma display device that displays an image on a display screen. .
[0050]
Here, the feature of the system shown in FIG. 1 as an embodiment of the present invention resides in the processing contents executed inside the personal computer 20, and the personal computer 20 will be described below.
[0051]
2 is an external perspective view of the personal computer 20 shown as one block in FIG. 1, and FIG. 3 is a hardware configuration diagram of the personal computer 20. As shown in FIG.
[0052]
The personal computer 20 has an appearance configuration, a main body device 21, an image display device 22 that displays an image on a display screen 22a in accordance with an instruction from the main body device 21, and a main body device 21 in accordance with various key operations. A keyboard 23 for inputting information and a mouse 24 for inputting an instruction corresponding to, for example, an icon or the like displayed at that position by designating an arbitrary position on the display screen 22a are provided. The main body device 21 has a flexible disk loading port 21a for loading a flexible disk and a CD-ROM loading port 21b for loading a CD-ROM.
[0053]
As shown in FIG. 3, the main body device 21 includes a CPU 211 that executes various programs, a main memory 212 that is read out by a program stored in the hard disk device 213 and developed for execution by the CPU 211, and various programs. And a hard disk device 213 storing data and data, a FD drive 214 loaded with the flexible disk 100 and accessing the loaded flexible disk 100, a CD-ROM 110 loaded, and a CD- accessing the loaded CD-ROM 110 Connected to the ROM drive 215 and the color scanner 10 (see FIG. 1) and connected to the input interface 216 for receiving image data from the color scanner 10 and the color printer 30 (see FIG. 1), and an output interface for sending image data to the color printer 30 Esu 217 is built, and these various elements, the image display device 22 further shown in FIG. 2, a keyboard 23, a mouse 24 are connected to each other via a bus 25.
[0054]
Here, the CD-ROM 110 stores a color conversion definition creation program for operating the personal computer 20 as a color conversion definition creation device. The CD-ROM 110 is loaded in the CD-ROM drive 215, and The color conversion definition creation program stored in the CD-ROM 110 is uploaded to the personal computer 20 and stored in the hard disk device 213.
[0055]
Next, a method for creating a color conversion definition by a color conversion definition creating program uploaded to the computer 20 will be described. Here, first, a conventional general color conversion method will be described.
[0056]
FIG. 4 is a conceptual diagram of an input profile.
[0057]
When the input profile can be obtained from the manufacturer of the color scanner 10 or the like, it is not necessary to create a new input profile. Here, an outline of a method for creating the input profile will be described.
[0058]
A color patch image 11a made up of a number of color patches is prepared instead of the original image 11 shown in FIG. 1, and the color patch image 11a is read by the color scanner 10 and an input RGB space (first in the present invention) for each color patch. An example of one color space) The above color data is obtained, and the color patch image is measured by the colorimeter 11a. For each color patch, for example, L which is an example of a common color space.*a*b*Color data representing coordinate points in space is obtained. A detailed description of the common color space will be given later.
[0059]
In this way, the coordinate points on the input RGB color space and L*a*b*An input profile in which the correspondence with the coordinate points on the color space is defined is obtained. This input profile is a profile depending on the input device, which differs depending on the type of color scanner 10 and, more generally, the type of input device.
[0060]
FIG. 5 is a conceptual diagram of an output profile.
[0061]
An output profile corresponding to a color printer may be provided by the manufacturer of the color printer. If an output profile corresponding to the color printer to be printed can be obtained, it is not necessary to create an output profile. Here, an outline of a creation method when the output profile is newly created will be described.
[0062]
From the personal computer 20 shown in FIG. 1, image data in which the values of R, G, and B are sequentially changed is generated as RGB three-color image data, and a color patch image based on the generated image data is generated. Print output by the color printer 30. Although the print image 31 shown in FIG. 1 is not an image representing a color patch image, it is assumed that a color patch image is printed out instead of the print image 31, and each color patch constituting the color patch image is measured. Measure with a colorimeter. By doing so, the coordinate values on the RGB color space (an example of the third color space in the present invention) and the common color space (here, L*a*b*An output profile representing the correspondence with the coordinate values on the color space) is constructed.
[0063]
This output profile is a profile depending on the output device, which differs depending on the output device.
[0064]
FIG. 6 is a conceptual diagram illustrating a color conversion algorithm including both an input profile and an output profile.
[0065]
The input profile and output profile described with reference to FIGS. 4 and 5 are stored in the personal computer 20 shown in FIG. 1, and the RGB image data obtained by the color scanner 10 is as shown in FIG. L depending on the input profile*a*b*Convert to image data in color space*a*b*The image data in the color space is converted into RGB image data by the output profile and transmitted to the color printer. By doing so, the color printer 30 can obtain a print image 31 that reproduces the color expression of the original image 11.
[0066]
However, in the case of such a simple color conversion algorithm, the color reproduction area (color gamut) of the color scanner 10 and the color reproduction area (color gamut) of the color printer 30 generally match as described below. And the color reproduction area of the color chart 11 a obtained by reading the color chart 11 a shown in FIG. 1 with the color scanner 10 does not match the color reproduction area of the color scanner 10.
[0067]
Hereinafter, these two problems will be described sequentially.
[0068]
First, the problem that the color reproduction area of the color scanner 10 and the color reproduction area of the color printer 30 do not match will be described.
[0069]
FIG. 7 is a schematic diagram of the color reproduction regions of the color scanner 10 and the color printer 30.
[0070]
FIG. 7A shows an input RGB space that is a color space on the input side. In FIG. 7A, an RG plane is shown for simplicity of illustration. The same applies to FIG. 7B and FIG. 7C, and FIG.*a*b*L of space*-A*FIG. 7C shows the RG plane of the output RGB space, which is the color space on the output side.
[0071]
The color scanner 10 converts the document image 11 into image data representing values of 0 to 255 for each of R, G, and B. In this case, a rectangular area shown in FIG. The color reproduction area 101 becomes.
[0072]
Here, using the input profile created with reference to FIG. 4, a color reproduction region 101 of the color scanner 10 shown in FIG.*a*b*When mapped onto a space, the color reproduction region of the color scanner 10 is represented as a region 102, and the color reproduction region 102 is further represented by using the output profile described with reference to FIG. Is mapped to the output RGB space, the color reproduction area of the color scanner 10 is represented as shown in an area 103 shown in FIG.
[0073]
On the other hand, the color reproduction region 303 of the color printer 30 shown in FIG. 1 is a cubic region (FIG. 7) in which R, G, and B are shown in the numerical range of 0 to 255 on the output RGB space of FIG. (C) is a rectangular region on the RG plane). That is, the original image 11 is read by the color scanner 10 and converted into image data in the input RGB space.*a*b*When converted to image data in the output RGB space via the space, a value exceeding the color that can be expressed by the color printer 30 (range of 0 to 255 for both RGB in the image data), for example, FIG. (R, G) = (110, 290), or (R, G) = (− 100, 260). In this case, since these image data, that is, image data outside the color reproduction region of the color printer 30 cannot be output by the color printer 30, conventionally, as described above, these image data are used as the color of the color printer 30. It has been proposed to clip the image data to be located at the boundary of the reproduction area. Specifically, (R, G) = (110,290) is changed to (R, G) = (110,255), and (R, G) = (− 100,260) is changed to (R, G). ) = (0,255).
[0074]
In the case of mapping in a color space that depends on the output device as described above, the degree of freedom of mapping is small as described above, and data that deviates from the color reproduction area of the output device as described above is simply clipped to the color. Mapping is performed only by moving to the boundary of the reproduction region, and particularly when mapping from the color reproduction region of one device (for example, the color scanner 10) to the color reproduction region of another device (for example, the color printer 30). In some cases, the accuracy of mapping in the vicinity of the boundary of the color reproduction region is greatly reduced.
[0075]
On the other hand, the color reproduction region 303 of the color printer 30 indicated by a rectangular region of 0 to 255 in FIG.*a*b*When mapped to space, it is represented as a region 302 shown in FIG. This L*a*b*Conventionally, in a common color space represented by a space, a number of methods for converting data in the color reproduction region 102 of the color scanner 10 (input device) into data in the color reproduction region 302 of the color printer 30 (output device). This has been proposed as described above.
[0076]
L*a*b*In color conversion (mapping) in space, when a color reproduction region that can be expressed by the color printer 30 is to be widely used, generally, a color scanner as indicated by a dashed arrow in FIG. 'Compression', in which data out of the common area 402 of the ten color reproduction areas 101 and the color reproduction area 302 of the color printer 30 is mapped inside the common area 402, is indicated by a solid line arrow in FIG. As described above, the data in the common area 402 is both expanded and expanded outside the common area 402 while maintaining the condition that the data is in the color reproduction area 302 of the color printer 30.
[0077]
Previously proposed L*a*b*Mapping in a common color space typified by space has a large degree of freedom in mapping, and as described above, there is a high risk of discontinuity in tone and an unnatural impression image.
[0078]
L in FIG. 7 (B)*a*b*When the color reproduction region 302 of the color printer 30 mapped to the space is further mapped to the input RGB space of FIG. 7A, a portion protruding from the rectangular region 101 that is the color reproduction region of the color scanner 10 is displayed. It is expressed as a “shaped” region 301.
[0079]
Next, a problem that the color reproduction area of the color chart 11a and the color reproduction area of the color scanner 10 when the color chart 11a shown in FIG.
[0080]
FIG. 8 is a schematic diagram of the color chart and the color reproduction area of the color scanner. As in FIG. 7, the RG plane is also shown here for simplicity of illustration.
[0081]
A rectangular color reproduction region 101 indicated by a broken line in FIG. 8 is the same as the color reproduction region 101 in FIG. 7A, and is a cube indicated by a numerical range of 0 to 255 for each of R, G, and B. This is the color reproduction area of the color scanner 10 in the shape.
[0082]
On the other hand, a color reproduction area 501 indicated by a solid line in FIG. 8 is a color reproduction area of the color chart. The color reproduction area 501 of this color chart occupies only a part of the color reproduction area 101 of the color scanner.
[0083]
In the present embodiment, as described later, in order to perform mapping of both “compression” and “decompression” as shown by a broken-line arrow in FIG. 7B while adapting to the human color sensation. However, if the color chart color reproduction area 501 is significantly different from the color scanner color reproduction area 101 as shown in FIG. It is difficult to create a mapping definition that performs. In order to solve this problem, it is conceivable to extrapolate the color reproduction area 501 of the color chart to extend to the entire area of the color reproduction area 101 of the color scanner. Insertion is difficult, and it is also difficult to create a mapping definition that performs high-precision mapping.
[0084]
Next, the common color space will be described. For this common color space, L*a*b*We explained that color space is one example, but L*a*b*The color space does not need to be a color space, and may be a color space defined so as not to depend on a specific input device or a specific output device. For example, L*a*b*In addition to the color space, it may be an XYZ color space, or a coordinate system clearly defined so that each coordinate point on the color space is associated with the color space on a one-to-one basis. Good. An example of such a coordinate system is a standard RGB signal defined as follows.
[0085]
[Expression 1]
Figure 0003866129
[0086]
Here, for example, RSRGBIs expressed in 8-bit as R8bitIs written as
R8bit= 255 x 12.92RSRGB    (0 <RSRGB<0.00304)
R8bit= 255 x 1.055RSRGB (1.0 / 2.4)  -0.055
(0.00304 ≦ RSRGB≦ 1)
It becomes. GSRGB, BSRGBG expressed in 8 bits8bit, B8bitSimilarly, each GSRGB, BSRGBCan be converted from
[0087]
Alternatively, a color space defined by the cmy density of the reversal film may be adopted as the common color space. When the common color space is defined, the color reproduction region in the common color space is clearly defined.
[0088]
Next, a color conversion definition creation method by a color conversion definition creation program executed in the computer system 20 shown in FIGS. 1 to 3 will be described.
[0089]
FIG. 9 is a flowchart showing a color conversion definition creation method by a color conversion definition creation program executed in the computer system 20.
[0090]
Here, a color conversion definition is created through a color reproduction region determination process (step a1), a coordinate association process (step a2), a mapping definition creation process (step a3), and a color conversion definition creation process (step a4). . In the mapping definition creation process (step a3), the first process (step a32) is basically executed. However, in the present embodiment, the first stage of the first process is created so that a more accurate mapping definition is created. The second process (step a31) is placed in
[0091]
Hereinafter, each of these processes will be described sequentially.
[0092]
First, the process of determining the color reproduction area at step a1 in FIG. 9 will be described.
[0093]
In step a1, the color chart image 11a shown in FIG. 1 is read by the color scanner 10, and the input profile for the color scanner 10 as described with reference to FIG. In the input RGB space (an example of the first color space referred to in the present invention), the color reproduction area of the color chart image 11a (regardless of the color space to be expressed, the color reproduction area of the color chart image 11a is The first color reproduction region in the invention corresponds to an example of a device-independent common color space (for example, L*a*b*(Space).
[0094]
FIG. 10 is a diagram showing the color reproduction area 101 of the color scanner and the color reproduction area 501 of the color chart image in the input RGB space.
[0095]
FIG. 10 represents the same content as FIG. 8 as a solid composed of three axes of R, G, and B.
[0096]
The W, K, R, G, B, C, M, and Y codes attached to the vertices of the color reproduction area 501 of the color chart image are the vertices to which the codes are attached, respectively. In the color reproduction region 501, the dots are white, black, red, green, blue, cyan, magenta, and yellow.
[0097]
11 shows the color reproduction area 501 of the color chart image shown in FIG. 10 with reference to the input profile of the color scanner 10.*a*b*L when mapped to space*a*b*The color reproduction area 502 of the color chart image in the space (the first color reproduction area referred to in the present invention) and the color reproduction area 502 are formed by a plurality of planes extending along the surface of the color reproduction area 502. FIG. 5 is a diagram showing a polyhedron shape (here, a dodecahedron shape) color reproduction region 602 (corresponding to an example of a second color reproduction region according to the present invention). L*a*b*The space itself is wider than the two color reproduction regions 502 and 602 shown in FIG.
[0098]
As shown in FIG. 11, the color reproduction area 501 of the color chart image shown in FIG.*a*b*After mapping to space, this time, the L*a*b*A color reproduction area 502 of the color chart image in the space is surrounded by a dodecahedron.
[0099]
In enclosing the color reproduction area 502 with a dodecahedron, the vertices of W, K, R, G, B, C, M, and Y of the color reproduction area 502 (in FIG. 11, the reference numerals for the vertices of the color reproduction area 501 are In the vicinity of (omitted), each vertex W, K, R, G, B, C, M, and Y of a dodecahedron that includes the color reproduction area 502 and has an outer shape approximate to the color reproduction area 502 is determined. By doing so, a color reproduction region 602 having a dodecahedron shape shown in FIG. Here, to explain with an example that the polyhedron having W, K, R, G, B, C, M, and Y as vertices is a dodecahedron, the four vertices of W, C, G, and Y are The line segment indicated by the alternate long and short dash line connecting C and Y also forms one side of the polyhedron. The same applies to other parts. Therefore, the polyhedron having W, K, R, G, B, C, M, and Y as vertices is generally a dodecahedron. In the following, L determined in this way*a*b*A color reproduction region having a dodecahedron shape in space is a color reproduction region in which the color reproduction region of the color chart image is reset, and is referred to as a “reset color reproduction region” regardless of the color space. .
[0100]
Next, the process of associating coordinates in step a2 of FIG. 9 will be described.
[0101]
After determining the dodecahedron chart inclusion color reproduction region 602 as described above, the entire chart inclusion color reproduction region 602 is associated with the entire color reproduction region 101 of the color scanner indicated by a broken line in FIG. An example of this association algorithm is shown below.
[0102]
First, each vertex of the dodecahedron color reproduction region 602 shown in FIG. 11 is associated with each vertex of the color reproduction region of the cubic color chart shown in FIG.
[0103]
Specifically, each vertex W, B, R, G, B, C, M, Y of the color reproduction region 602 shown in FIG.
W = (255, 255, 255)
B = (0,0,0)
R = (255, 0, 0)
G = (0,255,0)
B = (0, 0, 255)
C = (0,255,255)
M = (255, 0, 255)
Y = (255, 255, 0)
Assign a numerical value (coordinate).
[0104]
Next, for an arbitrary point on each side of the dodecahedron, the coordinates of the arbitrary point are obtained by interpolation from the coordinates of the vertices at both ends of the side.
[0105]
Next, coordinates are assigned to arbitrary points in each plane forming the dodecahedron.
[0106]
FIG. 12 is an explanatory diagram of a method for assigning coordinates to an arbitrary point on an arbitrary plane constituting the dodecahedron.
[0107]
Here, it is assumed that the point a whose coordinates are to be obtained is on a plane (plane ABC) defined by the three vertices A, B, and C, and that L of the point a is L*a*b*L in space*The coordinates of L*(A).
[0108]
Here, first, L*= L*Considering the plane of (a), its L*= L*Intersection points b and c between the plane of (a) and the side forming the outline of the plane defined by the three vertices A, B and C are obtained. The coordinates of the intersection point b are obtained by an interpolation operation using the coordinates of the vertex A and the coordinates of the vertex B, and the coordinates of the intersection point C are obtained by an interpolation operation using the coordinates of the vertex A and the coordinates of the vertex C. ing.
[0109]
Therefore, here, the coordinates of an arbitrary point a on the plane ABC can be obtained by interpolation using the coordinates of the intersection point b and the coordinates of the intersection point c.
[0110]
Next, L*a*b*The coordinates corresponding to the color reproduction region 101 of the color scanner in FIG. 10 at an arbitrary point in the space are obtained.
[0111]
FIG.*a*b*It is explanatory drawing of how to obtain | require the coordinate of the arbitrary points in space.
[0112]
In FIG. 13, a point d inside the dodecahedron.1Or a point d outside the dodecahedron2Is the point where the coordinates should be obtained.
[0113]
Here, L*Axis L*= 50, where the point is the origin, and the origin and coordinates of the origin d1A straight line connecting the two points, or the point d for which the origin and coordinates are to be obtained2The intersection point a between the straight line connecting the lines and the surface of the dodecahedron is obtained. The coordinates of the intersection point a have already been obtained as described with reference to FIG. Therefore, here, the coordinates of the origin (L*, A*, B*) = (50, 0, 0) and the point d by interpolating using the coordinates of the point a1Is obtained by extrapolating using the coordinates of the origin and the coordinates of the point a.2Coordinates are obtained. 11 is associated with the color reproduction region 101 of the cube-shaped color scanner shown in FIG. 10 and the shape of the dodecahedron shape of FIG. Not only the inside of the reset color reproduction area 602 but also the outside is associated with each of the inside and outside points of the cubic color reproduction area 101 of FIG.
[0114]
The reason why the coordinates are also assigned to the outside of the color reproduction area is that the coordinates of the points outside the color reproduction area are also required in the calculation of gamut conversion.
[0115]
The color space that defines the color reproduction region 101 in FIG. 10 when the reset color reproduction region 602 in the dodecahedron shape in FIG. 11 is assigned to the color reproduction region 101 in the cubic shape in FIG. This is called a color space. The color reproduction area 101 in the second color space is a reset color reproduction area in the second color space.
[0116]
Next, the mapping definition creation process in step a3 in FIG. 9 will be described.
[0117]
In the following description of the mapping definition creation process in step a3 in FIG. 9, the color reproduction region 101 in FIGS. 7A, 8 and 10 is an example of the second color space according to the present invention. The reset color reproduction area in the input RGB space, that is, the input RGB space when the reset color reproduction area 601 of the dodecahedron shape in FIG. 11 is mapped to the input RGB space in the coordinate conversion process in step a2 in FIG. It is assumed that this is the reset color reproduction region in FIG.
[0118]
FIG. 14 is an explanatory diagram of the second process in the mapping definition creation process executed in step a31 of FIG.*a*b*The reset color reproduction area in the space and the color reproduction area of the color printer 30 are shown.
[0119]
Here, adaptation conversion is performed by applying concretion conversion (Von Kries conversion). That is, here, the coordinate point W corresponding to white (vertex W in FIG. 11) of the reset color reproduction region.1And a coordinate point K corresponding to black (vertex K in FIG. 11) of the reset color reproduction region1Are coordinate points W corresponding to the white of the print image 31 output by the color printer 30 (the color of the paper of the print image).ThreeAnd black that can be output by the color printer 30 (for example, if the color printer 31 outputs an image with three colors of R, G, and B, the maximum amount of ink of each color of R, G, and B is used. Coordinate point K corresponding to (printed state)ThreeCoordinate conversion is performed so as to match.
[0120]
FIG. 14 illustrates this coordinate conversion process. First, as shown in FIG. 14B, the reset color reproduction area 102a and the color reproduction area 302a of the color printer shown in FIG. , Each sunspot K1, KThreeIs translated so as to coincide with the origin O (theoretical black point). As a result, first, the black spot in the reset color reproduction area 102b matches the black spot in the color reproduction area 302b of the color printer.
[0121]
Next, the white point W of the reset color reproduction region 102b after the parallel movement1Is the white point W of the color reproduction region 302b of the color printer after the parallel movement.Three, That is, the straight line L in FIG.1Is a straight line LThreeIn such a manner, coordinate conversion involving rotation and expansion / contraction is performed on the entire reset color reproduction region 102b.
[0122]
FIG. 14C shows a state after the coordinate conversion accompanied with the rotation and expansion / contraction, and the reset color reproduction region is changed from the color reproduction region 102b shown in FIG. 14B to FIG. 14C. The color reproduction area 102c shown in FIG. At this time, the white point W of the reset color reproduction region1Is the white point W of the color reproduction area of the color printer.ThreeMatches.
[0123]
Thereafter, as shown in FIG. 14D, the reset color reproduction region 102c in which the white point and the black point coincide with each other as shown in FIG. 14C is replaced with the original color reproduction region of the color printer, that is, FIG. The white point W of the color reproduction area 302a of the color printer shown in FIG.Three, Sunspot BThreeTranslate to a position that matches.
[0124]
By doing this, the white spot W1, Sunspot B1Is the white point W of the color printerThree, Sunspot BThreeIt is possible to obtain a reset color reproduction region 102d that matches each of the above.
[0125]
The above operation can be expressed as follows. FIG.*a*b*Although the color reproduction area in the space is shown, the concise transformation and the adaptation transformation using the concree transformation are often executed in the XYZ space, and here, the XYZ space will be described. Each coordinate point of this XYZ space is L*a*b*This is one of the common color spaces that correspond one-to-one to each coordinate point in the space.
[0126]
White point W of the reset color reproduction region 102a shown in FIG.1, Sunspot B1XYZ coordinates of (LXW1, LYW1, LZW1), (LXB1, LYB1, LZB1) And a white point W in the color reproduction region 302a of the color printer shown in FIG.Three, Sunspot BThreeXYZ coordinates of (LXWThree, LYWThree, LZWThree), (LXBThree, LYBThree, LZBThree), Each white point W shown in FIG.1, WThreeXYZ coordinates (LXW1', LYW1', LZW1′), (LXWThree', LYWThree', LZWThree′) For each expression
LXW1'= LXW1-LXB1
LYW1'= LYW1-LYB1
LZW1'= LZW1-LZB1          ...... (1)
LXWThree'= LXWThree-LXBThree
LYWThree'= LYWThree-LYBThree
LZWThree'= LZWThree-LZBThree          (2)
The white spot W1(LXW1', LYW1', LZW1′) Is white point WThree(LXWThree', LYWThree', LZWThreeCreate a Von Kries matrix to rotate and stretch to match ').
[0127]
Here, this concrete matrix is
VK = [MTXVK] (3)
Is written. This concrete matrix is a matrix of 3 rows × 3 columns.
[0128]
Next, a large number of coordinate points before the adaptive transformation in the XYZ space are represented by (X, Y, Z).
This (X, Y, Z)
X1 = X-LXB1
Y1 = Y-LYB1
Z1 = Z-LZB1          (4)
To correct the black spot (see FIG. 14B).
[0129]
[Expression 2]
Figure 0003866129
[0130]
The concrete conversion is performed by (see FIG. 14C),
X '= X2-LXBThree
Y '= Y2-LYBThree
Z '= Z2-LZBThree          ...... (6)
Thus, correction (see FIG. 14D) for matching the black spot with the black spot of the color printer is performed.
[0131]
By performing the above calculation for all coordinate points, L*a*b*The reset color reproduction area 102a shown in FIG. 14A when expressed in space is shown in FIG. 14D, in which the white point and black point respectively match the white point and black point of the color reproduction area 302a of the color printer. It is converted into a color reproduction area 102d.
[0132]
When the above-described adaptation conversion is performed in the XYZ space, the black spot before the adaptation conversion (the black spot B in FIG. 14A).1, BThree) Coordinates (X, Y, Z) are close to (0, 0, 0), so the correction of the black point only changes the numerical value slightly, and the white point according to the equations (1) and (2) Even if the coordinates are moved, the amount of movement is small, and it is advantageous in that the adaptation change can be performed using a wide area in the XYZ space. However, this adaptation change is not necessarily performed in the XYZ space. L does not mean*a*b*It may be performed in a space, or may be performed in another common color space.
[0133]
In addition, here, the adaptation conversion for matching both the white point and the black point has been described. However, although the accuracy of the color conversion is slightly reduced, for simplicity, only the white point is matched without considering the black point. Adaptation conversion may be performed.
[0134]
The adaptation conversion for matching only the white dots will be described with reference to FIG. 14. A straight line L shown in FIG.1'Is a straight line LThree'And white point W1Is white spot WThreeIs a coordinate transformation that coincides with the white point W without mathematically subtracting the black point coordinate as in the equations (1) and (2).1(LXW1, LYW1, LZW1) Is white spot WThree(LXWThree, LYWThree, LZWThree) To obtain a concrete matrix for rotation and expansion / contraction so as to match It means to convert as it is.
[0135]
Further, this adaptation conversion is performed when, for example, “white” on the CRT display display screen is a bluish white and the image displayed on the CRT display display screen needs to be printed out. This is necessary in the case of color conversion between devices having whites that are considerably distant from each other, but the white color of the image read by the color scanner 10 shown in FIG. In this case, this adaptation conversion, that is, the second process (step a31) of the mapping definition creating process of FIG. 9 may be omitted.
[0136]
Next, some examples of the first process (step a32) in the mapping definition creating process of the flowchart shown in FIG. 9 will be described.
[0137]
FIG. 15 is an explanatory diagram of a first example of coordinate transformation in the first process, and FIG. 16 is a flowchart of the first example. In FIG.*a*b*L in space*-A*Although the plane is specified, this is for convenience of illustration, and in practice, L*a*b*A three-dimensional coordinate transformation is performed in the space. The same applies not only to FIG. 15 but also to various examples described later.
[0138]
Here, first, a coordinate conversion reference coordinate point c that serves as a reference for coordinate conversion is set. This coordinate conversion reference coordinate point c is set to some extent empirically or according to a predetermined setting criterion.*a*b*The reset color conversion area 102 in the space and the color reproduction area 302 of the color printer are set in a common area. Further, the coordinate transformation reference coordinate point c is in the common area, and in this embodiment, L*Set on the axis (gray axis). By doing so, as will be understood from the following description, this coordinate conversion reference coordinate point c is not mapped to other coordinate points, and therefore it is easy to maintain the gray balance. Here, for example, (L*, A*, B*) = (50, 0, 0) is set as the coordinate conversion reference coordinate point c.
[0139]
If the mapping definition creation process (step a3) in the flowchart of FIG. 9 includes adaptation conversion (step a31) as described with reference to FIG.*a*b*The reset color reproduction area 102 in the space refers to the color reproduction area after the adaptation conversion.
[0140]
Here, L to be mapped*a*b*A coordinate point in the reset color reproduction area 102 in the space is set as a first coordinate point t.
[0141]
Here, a straight line connecting the coordinate conversion reference coordinate point c and the first coordinate point t is considered, and an intersection of the straight line and the boundary of the reset color reproduction region 102 is obtained (step b1 in FIG. 16). Here, this intersection is called a first reference coordinate point a.
[0142]
The flowchart shown in FIG. 16 shows that the first reference coordinate point a thus obtained is L*a*b*It is a flowchart in the case where it is out of the color reproduction area 302 of the color printer mapped in the space. When this condition is satisfied, the processing is further advanced as follows.
[0143]
For the first reference coordinate point a obtained as described above, L*a*b*Mapping is performed from the space to the output RGB space depending on the color printer 30 (step b2 in FIG. 16). The first reference coordinate point mapped to this output RGB space is P1And
[0144]
Next, in the output RGB space, the first reference coordinate point P1Is then mapped onto the boundary of the color reproduction area of the color printer 30 in the output RGB space (step b3). The point P obtained on the boundary of the color reproduction area of the color printer 30 by this mapping2This time, from the output RGB space, L*a*b*Map to space (step b4). This L*a*b*A coordinate point mapped in the space is set as a second reference coordinate point b (see FIG. 15).
[0145]
Next, a basic that uses the first reference coordinate point a as the start point and the second reference coordinate point as the end point, which represents the difference between the first reference coordinate point a and the second reference coordinate point b shown in FIG. The difference vector v is obtained (step b5), and the first coordinate point t to be mapped is set in the same direction as the direction of the basic difference vector v with the coordinate conversion reference coordinate point c and the second reference coordinate point. The point is moved to a straight line connecting b, and the point is set as a second coordinate point s to which the first coordinate point t is mapped (step b6).
[0146]
Such coordinate transformation is represented by L*a*b*Of the coordinate points included in the reset color reproduction area 102 in the space, the first reference coordinate point a obtained in step b1 is performed for all coordinate points outside the reset color reproduction area 102 (step). 7).
[0147]
As described above, the coordinate conversion described with reference to FIGS. 15 and 16 is performed by using the output RGB space when determining the direction of the coordinate conversion, that is, when obtaining the basic difference vector v. This is done by defining a second reference coordinate point b on the boundary of the color reproduction area of the color printer that corresponds to the first reference coordinate point a on the boundary of the reproduction area.*a*b*Done in space.
[0148]
That is, the direction of coordinate transformation (mapping) is determined in a color space that matches the human color sensation of the output RGB space (device-dependent color space), resulting in a discontinuity of tone or an unnatural image. The fear is extremely small, and the actual coordinate transformation is L*a*b*Since it is performed in a space (common color space), highly accurate coordinate conversion (mapping) is performed in terms of color.
[0149]
Note that FIG. 15 is drawn so that coordinate transformation (mapping) is performed on a two-dimensional plane for convenience of illustration, but as described above, three-dimensional mapping is actually performed. .
[0150]
FIG. 17 is a diagram illustrating a modification of the coordinate conversion described with reference to FIGS. 15 and 16.
[0151]
Here, a region D surrounding the coordinate conversion reference coordinate point c is set, and an intersection d between the straight line connecting the coordinate conversion reference coordinate point c and the first reference coordinate point a and the boundary of the region D is obtained. In mapping the coordinate point t, the coordinate point t is mapped to a coordinate point s on a straight line connecting the intersection d and the second reference coordinate point b.
[0152]
By doing so, it is possible to set an area D where the coordinates do not move. As described above, in order to maintain gray balance, L*Although it has been described that it is preferable not to move the coordinate for the axis (gray axis), by setting the region D as shown in FIG. 17, it is possible to arbitrarily set a region where the coordinate is not moved.
[0153]
18 is an explanatory diagram of a second example of coordinate transformation in the first step of the flowchart shown in FIG. 9, and FIG. 19 is a flowchart of the second example.
[0154]
Here, as in the first example described with reference to FIGS.*A coordinate conversion reference coordinate point c that is a reference for coordinate conversion is set on the axis (gray axis).
[0155]
Consider a straight line connecting the coordinate conversion reference coordinate point c and the first coordinate point t to be subjected to the coordinate conversion.*a*b*An intersection with the boundary of the reset color reproduction region 102 in the space is obtained. The intersection is called a first reference coordinate point. Where L*a*b*The reset color reproduction region 102 mapped in the space indicates the reset color reproduction region after the adaptive conversion when the adaptive conversion is performed in the second process (step a31) of the flowchart of FIG. As described above.
[0156]
The flowchart shown in FIG. 18 differs from the flowchart shown in FIG. 16 in that the first reference coordinate point a obtained in this way is L*a*b*It is a flowchart in the case where it exists inside the color reproduction area 302 of the color printer mapped in the space. When this condition is satisfied, the processing is further advanced as follows.
[0157]
The second reference coordinate point b on the boundary of the color reproduction area of the color printer corresponding to the first reference coordinate point a on the boundary of the reset color reproduction area obtained as described above is obtained (step c2). ). In obtaining the second reference coordinate point b, here, as shown in FIG. 18, the first reference coordinate point a exists inside the color reproduction area 302 of the color printer. The method described with reference to cannot be used. That is, even if the first reference coordinate point a is mapped to the output RGB space in the same manner as when the first reference coordinate point a exists outside the color reproduction area 302 of the color printer, the mapping is performed. The first reference coordinate point is located inside the color reproduction area of the color printer in the output RGB space, and the above-described clip method cannot be used. Therefore, here, the second reference coordinate point b is obtained as follows.
[0158]
First, all the points (points P) on the boundary of the color reproduction area (gamut) of the color printer in the output RGB space1From the output RGB space.*a*b*Map to space (step c21), and then L*a*b*All points P mapped in space2The input RGB space (as described above, the reset color reproduction region is associated with the cubic color reproduction region of b = 0 to 255 in R, G, and B in the association process of step a2 in FIG. Mapping to the later input RGB space (an example of the second color space according to the present invention) (step c22) Next, the point P mapped to the output RGB spaceThreeAs described above, a point out of the reset color reproduction region in the input RGB space is clipped to 0 for each of R, G, B, and 255 for values exceeding 255. Thus, mapping is performed on the boundary of the reset color reproduction region (step c23).
[0159]
All the points P thus mapped and clipped to the input RGB space are obtained.FourL from the input RGB space*a*b*Map to space (step c24). In this way L*a*b*Point P mapped in spaceFiveAmong these, the closest point P that coincides with or does not coincide with the first reference coordinate point aFive'And find all points P on the boundary of the color reproduction area of the color printer in the output RGB space1Of that point PFiveThe point P from which ′ was obtained1Find ', and point P1'Is the second reference coordinate point b (step c25).
[0160]
By following such a procedure, the second reference coordinate point b corresponding to the reference coordinate point a shown in FIG. 18 can be obtained.
[0161]
In the case of the flowchart shown in FIG. 19, all the points P on the boundary of the color reproduction area of the color printer in the output RGB space.1Is uniformly mapped to the input RGB space, L shown in FIG.*a*b*Among the coordinate points on the boundary of the color reproduction area 302 of the color printer mapped to the space, L*a*b*Only the coordinate points of the portion projected from the color reproduction region of the reset color reproduction region 102 mapped to the space may be mapped to the input RGB space, or the second portion of the projected portion may be estimated by estimation or the like. When the coordinate position of the reference coordinate point b can be further narrowed down, only the coordinate points in the narrowed area may be mapped to the input RGB space and clipped.
[0162]
When the second reference coordinate point b is detected in step c2 shown in FIG. 19, the second reference coordinate point a is changed from the first reference coordinate point a as shown in FIG. 18 as in the flowchart of FIG. A basic difference vector v toward the point b is obtained (step c3), and a second coordinate point corresponding to the first coordinate point is obtained in the same manner as in the first example of FIGS. Step c4).
[0163]
Such coordinate transformation is represented by L*a*b*Of the coordinate points in the reset color reproduction region 102 in the space, the first reference coordinate point a obtained in step c1 is performed for all coordinate points existing in the color reproduction region 302 of the color printer. (Step c5).
[0164]
FIG. 20 is a diagram illustrating a modification of the second example of coordinate transformation described with reference to FIGS. 18 and 19.
[0165]
Here, similarly to FIG. 17, a region D surrounding the coordinate conversion reference coordinate point c is set, and an intersection of a straight line connecting the coordinate conversion reference coordinate point c and the first reference coordinate point a and the boundary of the region D is set. d is obtained, and the first coordinate point t is mapped to a coordinate point s on a straight line connecting the intersection d and the second reference coordinate point b. By doing so, it is possible to set the region D where the coordinates are not moved.
[0166]
FIG. 21 is an explanatory diagram of the effect of mapping performed by combining the “compression” described with reference to FIGS. 15 and 16 and the “decompression” described with reference to FIGS. 18 and 19.
[0167]
L*a*b*L than the reset color reproduction area 102 in space*a*b*The coordinate points on the line LN1 in the color reproduction area 302 of the color printer in space are expanded so as to use the color reproduction area 302 of the color printer as much as possible, and the line LN2 in the reset color reproduction area 102 is wider. Each upper coordinate point is compressed to a level that uses the color reproduction region 302 of the color printer 30 to the maximum extent. These decompression and compression directions are obtained using a device-dependent RGB space, so the mapping itself is L*a*b*Even when performed in space, discontinuity of tone and generation of unnatural images are prevented, and the mapping itself is L*a*b*Since the space is used, high-precision mapping is performed. In addition, each coordinate point on the line LN3 where the widths of the reset color reproduction area 102 and the color reproduction area 302 of the color printer coincide with each other does not move and the color is maintained as it is.
[0168]
The mapping performed here is L for convenience of illustration in FIG.*-A*Although it is drawn as if it were performed on a plane, it is as described above that it is performed three-dimensionally.
[0169]
FIG. 22 is an explanatory diagram of a third example of coordinate transformation in the first step of the flowchart shown in FIG. 9, and FIG. 23 is a flowchart of the third example. In the third example described here, as in the case of the second example described with reference to FIGS. 17 and 18, the first reference coordinate point a1 obtained in step d1 is L*a*b*This is an example of the case where the image is present in the color reproduction area 302 of the color printer mapped in the space.
[0170]
Again, like the first and second examples above, L*A coordinate conversion reference coordinate point c serving as a reference for coordinate conversion is set on the axis (gray axis), and a straight line connecting the coordinate conversion reference coordinate point c and the first coordinate point t to be coordinate converted is considered. The straight line and L*a*b*An intersection point with the boundary of the reset color reproduction region 102 in the space is obtained, the intersection point is set as a first reference coordinate point a1, and the straight line and L*a*b*An intersection point with the boundary of the color reproduction region 302 of the color printer mapped in the space is obtained, and the intersection point is set as a third reference coordinate point a2 (step d1). This L*a*b*The reset color reproduction region 102 in the space indicates the reset color reproduction region after the adaptive conversion when the adaptive conversion is performed in the second process (step a31) in the flowchart of FIG. This is the same as in the first and second examples.
[0171]
Next, the third reference coordinate point a2 obtained as described above is set to L*a*b*A point P mapped from the space to the input RGB space (input RGB space corresponding to an example of the second color space in the present invention) (step d2).1Is mapped on the boundary of the reset color reproduction region by clipping in the input RGB space (step d3), and the point P obtained by the mapping is mapped2L*a*b*Map to space (step d4). L obtained in this way*a*b*A point on the boundary of the reset color reproduction region 102 in the space is referred to as a fourth reference coordinate point b2.
[0172]
Next, a difference vector v1 from the third reference coordinate point a2 to the fourth reference coordinate point b2 is obtained (step d5), and a straight line passing through the first reference coordinate point a1 and parallel to the difference vector v1 is considered. , The straight line and L*a*b*A point of intersection with the boundary of the color printer color reproduction area 302 in space is defined as a second reference coordinate point b1, and a basic difference vector v from the first reference coordinate point a1 toward the second reference coordinate point b1 is obtained (step). d6). Thereafter, similarly to the first and second examples described so far, the first coordinate point t moves the first coordinate point t parallel to the basic difference vector v, and the coordinate conversion reference coordinate point c And the second reference coordinate point b1 are mapped to the coordinate point (second coordinate point s) that hits a straight line (step d7).
[0173]
Such coordinate transformation is represented by L*a*b*Of the coordinate points in the reset color reproduction area in space, in step d1, L*a*b*The first reference coordinate point a1 located inside the color reproduction area 302 of the color printer in space is performed for all the coordinate points for which the first reference coordinate point a1 is obtained (step d8).
[0174]
The third example shown in FIG. 22 and FIG.*a*b*When the reset color reproduction area 102 in the space and the color reproduction area 302 of the color printer are greatly deviated, that is, when the difference vector v1 and the basic difference vector v are greatly separated, there is an error, but these two vectors When the distance between v1 and v is close and the error between the two vectors v1 and v can be ignored, the third example can be adopted, and the second example described with reference to FIGS. Compared with, high-speed calculation is possible.
[0175]
FIG. 24 is a diagram illustrating a modification of the third example of coordinate transformation described with reference to FIGS. 22 and 23.
[0176]
Here, similarly to FIGS. 17 and 20, a region D surrounding the coordinate conversion reference coordinate point c is set, and a straight line connecting the coordinate conversion reference coordinate point c and the first reference coordinate point a1 and the region D An intersection d with the boundary is obtained, and the first coordinate point t is mapped on a straight line connecting the intersection d and the second reference coordinate point b1.
[0177]
In this way, it is possible to set the region D where no coordinate movement is performed.
[0178]
FIG. 25 is an explanatory diagram of a fourth example of coordinate transformation in the first step of the flowchart shown in FIG. 9, and FIG. 26 is a flowchart of the fourth example.
[0179]
In the fourth example, the first reference coordinate point a obtained in step e1 is L.*a*b*This is a method that can be applied without considering whether it exists inside the color reproduction region 302 of the color printer mapped in the space or is out of the color reproduction region 302.
[0180]
Here, as in the first to third examples, L*A coordinate conversion reference coordinate point c is set on the axis (gray axis), and a straight line connecting the coordinate conversion reference coordinate point c and the first coordinate point t to be subjected to coordinate conversion is considered.*a*b*An intersection point with the boundary of the reset color reproduction region 102 in the space is obtained, and the intersection point is set as a first reference coordinate point a (step e1).
[0181]
Next, the first reference coordinate point a is mapped to the input RGB space (step e2).
[0182]
Next, the point P on the input RGB space mapped in this way to the input RGB space1The coordinate value corresponding to the coordinate value of1Coordinate point P in the output RGB space, which is a color space dependent on the color printer, having the same coordinate value as2Is obtained (step e3). As a specific example, a point P obtained by mapping the first reference coordinate point a shown in FIG. 25 to the input RGB space.1When the coordinate value of (R, G, B) = (0, 255, 0) is a point on the output RGB space having the same coordinate value (R, G, B) = (0, 255, 0) Point P2And
[0183]
Next, the point P in the output RGB space2L from the output RGB space*a*b*The point mapped to the space is set as the second reference coordinate point b (step e4).
[0184]
The first reference coordinate point a is L*a*b*Since it is a point on the boundary of the reset color reproduction area 102 in space, even if this first reference coordinate point a is mapped to the input RGB space, it is on the boundary of the reset color reproduction area in the input RGB space. The point (for example, (R, G, B) = (0, 255, 0) above) is obtained.
[0185]
If this is used as a point in the output RGB space as it is, it will be a point on the boundary of the color reproduction area of the color printer in the output RGB space.*a*b*The second reference coordinate point b obtained by mapping to space is also the L*a*b*This is a point on the boundary of the color reproduction area 302 of the color printer in space.
[0186]
A basic difference vector v from the first reference coordinate point a thus determined to the second reference coordinate point b is obtained (step e5), passes through the first coordinate point t, and is parallel to the basic difference vector v. A second coordinate point s that is an intersection of the drawn straight line and a straight line connecting the coordinate conversion reference coordinate point c and the second reference coordinate point b is obtained (step e6).
[0187]
The above coordinate transformation is L*a*b*This is sequentially performed for the entire reset color reproduction region 102 in the space.
[0188]
FIG. 27 is a diagram illustrating a modification of the third example of coordinate conversion described with reference to FIGS. 25 and 26.
[0189]
Here, as in the examples of FIGS. 17, 20, and 24, a region D is set around the coordinate transformation reference coordinate point c, and the region D is not mapped. The method for preventing the region D from being mapped is the same as in the examples of FIGS. 17, 20, and 24, and a description thereof will be omitted.
[0190]
FIG. 28 is a diagram illustrating an intermediate process of the fifth example of coordinate transformation in the first process of the flowchart illustrated in FIG. 9. Considering only FIG. 28, this is not an embodiment of the present invention, but corresponds to a comparative example to be compared with it.
[0191]
Here, L*A straight line connecting the coordinate conversion reference coordinate point c on the axis (gray axis) and the first coordinate point t to be subjected to coordinate conversion, and L*a*b*An intersection point (first reference coordinate point a1) with the reset color reproduction region 102 in space and an intersection point (third reference coordinate point a2) with the color reproduction region 302 of the color printer are obtained, and the first reference coordinate point is obtained. A difference vector v2 from a1 toward the third reference coordinate point a2 is obtained. The difference vector v2 is a difference vector that is obtained without mapping of a clip or the like in a device-dependent color space (input RGB space or output RGB space), and does not match the present invention as it is.
[0192]
The difference vector v2 is considered as the basic difference vector v according to the present invention, and the distance ca1 between the coordinate conversion reference coordinate point c and the first reference coordinate point a1, the coordinate conversion reference coordinate point c, and the first coordinate. When the ratio of the distance ct to the point t is ct / ca1 and the length of the difference vector v2 is | v2 |, the first coordinate point t is set in the same direction as the difference vector v2 (ct / ca1) x | v2 | is moved, and the point is set as a second coordinate point s after coordinate transformation. Although mapping is possible by doing this as well, the mapping direction (direction of the difference vector v2) is not the direction obtained in the device-dependent color space that matches the sense of human color, but this mapping method Is a direction that is determined mechanically by ignoring human color sensation, and as described above, there is a high possibility that tone discontinuity will occur or an unnatural image will be produced.
[0193]
FIG. 29 is an explanatory diagram of a fifth example of coordinate transformation in the first step of the flowchart shown in FIG.
[0194]
In FIG. 29, the first reference coordinate point a1, the third reference coordinate point a2, and the difference vector v2 are the same as those described with reference to FIG. The second reference coordinate point b may be obtained by any of the methods of the first to fourth examples described above. Here, a vector from the first reference coordinate point a1 to the second reference coordinate point b is referred to as a difference vector v3.
[0195]
In the example shown in FIG. 29, the two difference vectors v2 and v3 obtained in this way are weighted and added with respect to the direction, pass through the first reference coordinate point a1, and are drawn in the direction obtained by the weighted addition. And L*a*b*An intersection point with the boundary of the color printer color reproduction area 302 in space is obtained as a fifth reference coordinate point e, and a difference vector from the first reference coordinate point a1 toward the fifth reference coordinate point e is determined as a basic difference vector v. And
[0196]
In mapping the first coordinate point t, a straight line connecting the coordinate conversion reference coordinate point c and the fifth reference coordinate point e and a straight line passing through the first coordinate point t and parallel to the basic difference vector v are drawn. Is the second coordinate point s to which the first coordinate point t is to be mapped.
[0197]
Here, by allowing the operator to arbitrarily change the weighting coefficients related to the directions of the two difference vectors v2 and v3, it is possible to perform mapping that takes into account the coordinate transformation according to the method of the present invention by the weighting.
[0198]
Next, returning to FIG. 9, the color conversion definition creation process (step a4) will be described.
[0199]
In this color conversion definition creation process (step a4), the input RGB space (first color referred to in the present invention) depending on the color scanner 10 of FIG. A color conversion definition that defines color conversion from an example space to an output RGB space that depends on the color printer 30 (an example of a third color space according to the present invention) is created.
[0200]
Here, first, when the color chart image 11a of FIG. 1 is read by the color scanner 10, arbitrary coordinates on the input RGB space (an example of the first color space in the present invention) depending on the color scanner 10 ( This is representatively referred to as the first coordinate) and the correspondence relationship of the coordinates associated with the coordinate association process in FIG.*a*b*New coordinates in the input RGB space according to the coordinate relationship that the reset color reproduction area having a dodecahedron shape in space is associated with a cubic color reproduction area of 0 to 255 in R, G, B in the input RGB space) To the second coordinate. The input RGB space after being converted to the second coordinates in this way corresponds to an example of the second color space referred to in the present invention.
[0201]
Next, the second coordinate on the second color space is set to L*a*b*Conversion into the third coordinates depending on the reset color reproduction region in space. Further, the third coordinate is set in accordance with the mapping definition created in the mapping definition creation process of FIG.*a*b*L depending on the color reproduction area in space*a*b*Convert to the fourth coordinate in space. Further, the fourth coordinate is converted into the fifth coordinate on the output RGB space according to the profile of the color printer.
[0202]
The first coordinate in the input RGB space (an example of the first color space referred to in the present invention) that depends on the color scanner 10 and the fifth in the output RGB space, which are the starting points for such a series of coordinate transformations. By associating the coordinates, a color conversion definition for converting input image data obtained by reading the original image 11 shown in FIG. 1 with the color scanner 10 into output image data suitable for the color printer 30 is created. .
[0203]
FIG. 30 is a functional block diagram of a color conversion definition creating / color converting apparatus including an embodiment of the color conversion definition creating apparatus of the present invention.
[0204]
The color conversion definition creation / color conversion apparatus shown in FIG. 30 is realized by combining the personal computer 20 shown in FIGS. 2 and 3 and a program executed on the personal computer.
[0205]
The color conversion definition creation / color conversion apparatus shown in FIG. 30 includes a data acquisition unit 310, an LUT creation / data conversion unit 320, a data output unit 330, a storage unit 340, and a designation unit 350. .
[0206]
The storage unit 340 includes a plurality of types of input profiles 341a,..., 341m corresponding to a plurality of types of input devices, a plurality of types of output profiles 342a,. , 343p, and a color conversion definition creation program 344 are stored.
[0207]
Each of the input profiles 341a,..., 341m is basically created by a creation method referring to FIG. Although only one type of color scanner 10 is shown in FIG. 1, the color conversion definition creation / color conversion apparatus in FIG. 30 has a plurality of types of input devices in order to provide versatility. There are multiple types of input profiles corresponding to.
[0208]
The output profiles 342a,..., 342n stored in the storage unit 340 are basically output profiles created by the creation method described with reference to FIG.
[0209]
As in the case of the input profile, FIG. 1 shows only one type of color printer 30 as an output device. However, the color conversion definition creation / color conversion apparatus in FIG. Therefore, a plurality of types of output profiles corresponding to a plurality of types of output devices are prepared.
[0210]
In addition, the color conversion definitions 343a,..., 343p stored in the storage unit 340 are read out and executed by the color conversion definition generation program 344 stored in the storage unit 340 being read by the LUT generation / data conversion unit 320. FIG. 9 and subsequent drawings are created, and each color conversion definition corresponds to each combination of each input profile and each output profile. Here, these color conversion definitions 341a,..., 341p are each grouped in a LUT (Look Up Table) format.
[0211]
The storage unit 340 is set in the hard disk device 213 shown in FIG. 3 in hardware.
[0212]
The designation unit 350 designates the input device, the output device, and the distinction between the color conversion definition creation mode and the data conversion mode. The designation unit 350 is played by the keyboard 23 or the mouse 24 shown in FIGS. 2 and 3 in hardware.
[0213]
When the color conversion definition creation mode is designated by the designation unit 350 and the input device and the output device are designated, the color conversion definition creation program 344 is read from the storage unit 340 to the LUT creation / data conversion unit 32. Executed. The color conversion definition creation program 344 includes a color reproduction region determination process (step a1), a coordinate association process (step a2), a mapping definition creation process (step a3) (second process (step a1) described with reference to FIG. a color reproduction region determination unit 3441, a coordinate association unit 3442, and a mapping definition creation unit 3443 that execute processing corresponding to each of a31), the first step (step a32)), and the color conversion definition creation step (step a4). (Second process 3443a and first process 3443b), and a color conversion definition creating unit 3444, and based on the algorithm described above, a designated input device (here, color scanner 10 shown in FIG. 1). According to the input profile (here, input profile 341a) and the specified output An output profile (here, referred to as output profile 342a) corresponding to a vise (here, color printer 30 shown in FIG. 1) is referred to, and image data of a color chart image read by the color scanner 10 is referred to. Thus, a color conversion definition (here, color conversion definition 341a) suitable for the combination of the color scanner 10 and the color printer 30 is created. The created color conversion definition 341a is stored in the storage unit 340.
[0214]
At this time, various parameters for creating the color conversion definition are specified from the designation unit 350, for example, the second process of the mapping definition creating unit is executed or omitted, or when the second process is executed, Whether to match both the black point and only the white point, whether to set the coordinate value of the coordinate conversion reference coordinate point c shown in FIG. 15 and the like, the region D shown in FIG. Various examples have been shown as the first process of designating the area and the color conversion definition creating process. Which algorithm is selected from the various examples, the weighting described with reference to FIG. It is preferable that the weighting coefficient and the like in the case of adopting the above method can be designated so that various variations of color conversion definitions can be created.
[0215]
When the data conversion mode is designated from the designation unit 310 and the input device and the output device are further designated (here, the color scanner 10 and the color printer 30 shown in FIG. 1 are designated as the input device and the output device, respectively). The color conversion definition 341a suitable for the specified combination of the color scanner 10 and the color printer 30 is read out and input to the LUT creation / data conversion unit 320.
[0216]
The data acquisition unit 310 plays a role of receiving color data obtained by an input device, and the input interface 216 shown in FIG. 3 corresponds to this in hardware.
[0217]
Further, the data output unit 330 is responsible for outputting the color data after color conversion by the definition creation data conversion unit 320, and the hardware corresponds to the output interface 217 shown in FIG.
[0218]
When image data obtained by an input device such as the color scanner 10 shown in FIG. 1 is input to the LUT creation / data conversion unit 320 via the data acquisition unit 310, the LUT creation / data conversion unit 320 performs color conversion. Image data is converted according to the definition 343a. The converted image data is output to an output device such as the color printer 30 shown in FIG.
[0219]
The conversion of the image data by the LUT creation / data conversion unit 320 is a conversion in which the color conversion definition created by the color conversion definition creation method unique to the present invention is referenced, and an output image with excellent color tone is obtained. Can do.
[0220]
Here, in the color conversion definition creation / color conversion apparatus shown in FIG. 30, as one of the plurality of output profiles 342a,..., 342m stored in the storage unit 340, the image display apparatus shown in FIGS. 22 is prepared, an image based on the image data converted by the LUT creation / data conversion unit 320 is displayed on the display screen 22a (see FIG. 2) of the image display device 22, In addition, the designation unit 350 (keyboard 23 and mouse 24) has a function of correcting the color conversion definition even in the data conversion mode, and the image has a more preferable color tone while viewing the image displayed on the display screen. You may comprise so that a color conversion definition can be corrected so that it may become a held image.
[0221]
FIG. 31 is a functional block diagram of the LUT creation / data conversion unit of the color conversion definition creation / color conversion apparatus shown in FIG.
[0222]
The LUT creation / data conversion unit 320 includes an LUT creation unit 321 and a data conversion unit 322. Furthermore, the LUT creation unit 321 includes a color reproduction area determination unit 3211, a coordinate association unit 3212, a mapping definition creation unit 3213 (second process 3213a and first process 3213b), and a color conversion definition creation unit 3214. ing.
[0223]
The LUT creation unit 321 operates in the color conversion definition creation mode, and the LUT creation unit 321 includes an image representing a color chart image read by a color scanner having an input profile designated by the designation unit 350 shown in FIG. Data is input, and a color conversion definition creation program 344 shown in FIG. 30 is set in the LUT creation unit 321 and executed. As a result, the color reproduction region determination unit 3211, the coordinate association unit 3212, the mapping definition creation unit 3213 (second process 3213a and first process 3213b), and the color conversion definition creation unit 214 of the LUT creation unit 321 9, the color reproduction region determination process (step a1), the coordinate correspondence process (step a2), the mapping definition creation process (step a3) (second process (step a31) and the first process (step a1) Each process corresponding to step a32)) and the color conversion definition creation process (step a4) is executed, and a color conversion definition in the LUT format is created. The created color conversion definition is stored in the storage unit 340 of FIG.
[0224]
When the data conversion mode is specified by the specification unit 350, a color conversion definition corresponding to the combination of the input profile and output profile specified by the specification unit 350 is set in the data conversion unit 322, and the input image data is It is converted into output image data in accordance with the set color conversion definition.
[0225]
FIG. 32 is a diagram showing another embodiment of the color conversion definition creating program of the present invention.
[0226]
Referring to FIG. 30, it has been described that the color change definition creating program as one embodiment of the present invention is stored in the storage unit 340 of the color conversion definition creating / color converting apparatus shown in FIG. As another example, an example in which a color conversion definition creating program 344 is stored in the CD-ROM 110 shown in FIG. 3 is shown. In this way, the color conversion definition creation program may be stored in a portable storage medium and distributed.
[0227]
A user who has obtained such a color conversion definition creation program uploads the obtained color conversion definition creation program to his or her personal computer, and performs color conversion with excellent color tone using the color conversion definition creation program. Color conversion definitions that can be created.
[0228]
In the embodiment described here, the color reproduction area of the color chart image is set to L.*a*b*This is an example of enclosing with a dodecahedron-shaped color reproduction region in space, but instead of enclosing with a dodecahedron-shaped color reproduction region, W, K, R so that the alternate long and short dash line shown in FIG. , G, B, C, M, and Y may be defined to enclose a hexahedral color reproduction region. In enclosing the color reproduction area of the color chart image with the polyhedron-shaped color reproduction area, L*a*b*Instead of enclosing in a common color space such as a space, the input color space depending on the color scanner may be enclosed in a polyhedral shape.
[0229]
【The invention's effect】
As described above, according to the present invention, the poor tone that is likely to occur when gamut mapping is performed in the common color space regardless of the size and shape of the color area that can be expressed on the image recording medium. It is possible to create a color conversion definition that can avoid a continuous or unnatural image and can obtain a reproduced image with excellent color tone.
[Brief description of the drawings]
FIG. 1 is an overall configuration diagram of an image input-color conversion-image output system to which an embodiment of the present invention is applied.
FIG. 2 is an external perspective view of a personal computer shown by one block in FIG.
FIG. 3 is a hardware configuration diagram of a personal computer.
FIG. 4 is a conceptual diagram of an input profile.
FIG. 5 is a conceptual diagram of an output profile.
FIG. 6 is a conceptual diagram illustrating a color conversion algorithm including both an input profile and an output profile.
FIG. 7 is a schematic diagram of color reproduction regions of a color scanner and a color printer.
FIG. 8 is a schematic diagram of a color reproduction area of a color chart and a color scanner.
FIG. 9 is a flowchart showing a color conversion definition creation method by a color conversion definition creation program executed in the computer system.
FIG. 10 is a diagram showing a color reproduction area of a color scanner and a color reproduction area 501 of a color chart image in an input RGB space.
FIG. 11 L*a*b*Color reproduction region of color chart image in space (first color reproduction region according to the present invention) and dodecahedron shape color reproduction region including the color reproduction region (an example of the second color reproduction region according to the present invention) FIG.
FIG. 12 is an explanatory diagram of a method of assigning numerical values (coordinates) to an arbitrary point on an arbitrary plane constituting a dodecahedron.
FIG. 13 L*a*b*It is explanatory drawing of how to obtain | require the coordinate of the arbitrary points in space.
FIG. 14 is an explanatory diagram of a second process of the mapping definition creating process.
FIG. 15 is an explanatory diagram of a first example of coordinate transformation in the first process.
FIG. 16 is a flowchart of the first example.
FIG. 17 is a diagram illustrating a modification of the first example of coordinate transformation.
FIG. 18 is an explanatory diagram of a second example of coordinate transformation in the first process.
FIG. 19 is a flowchart of a second example of coordinate transformation.
FIG. 20 is a diagram illustrating a modification of the second example of coordinate transformation.
FIG. 21 is an explanatory diagram of the effect of mapping performed by combining 'compression' and 'decompression'.
FIG. 22 is an explanatory diagram of a third example of coordinate transformation in the first process.
FIG. 23 is a flowchart of a third example of coordinate transformation.
FIG. 24 is a diagram illustrating a modification of the third example of coordinate transformation.
FIG. 25 is an explanatory diagram of a fourth example of coordinate transformation in the first process.
FIG. 26 is a flowchart of a fourth example of coordinate transformation.
FIG. 27 is a diagram illustrating a modification of the third example of coordinate transformation.
FIG. 28 is a diagram illustrating an intermediate process of a fifth example of coordinate conversion in the first process;
FIG. 29 is an explanatory diagram of a fifth example of coordinate transformation in the first process.
FIG. 30 is a functional block diagram of a color conversion definition creating / color converting apparatus including an embodiment of a color conversion definition creating apparatus of the present invention.
31 is a functional block diagram of the LUT / data conversion unit shown in FIG. 30. FIG.
FIG. 32 is a diagram showing another embodiment of a color conversion definition creation program.
[Explanation of symbols]
10 Color scanner
11 Document image
11a color chart image
20 Personal computer
21 Main unit
22 Image display device
22a Display screen
23 Keyboard
24 mice
25 bus
30 Color printer
100 flexible disk
110 CD-ROM
211 CPU
212 Main memory
213 Hard disk device
214 FD drive
215 CD-ROM drive
216 input interface
217 Output interface
310 Data acquisition unit
320 LUT creation / data converter
330 Data output section
340 definition storage unit
341a, ..., 341m Input profile
342a, ..., 342n Output profile
343, 343a, ..., 343p Color conversion definition
344 Color conversion definition creation program
350 Designated part

Claims (5)

画像記録媒体上に記録された画像を入力デバイスで読み取って得た入力画像データを、画像データに基づいて画像を出力する出力デバイスに適合した出力画像データに変換するための色変換定義を作成する色変換定義作成方法において、
前記画像記録媒体上に表現することが可能な色の領域を表わす第1の色再現領域を内包するとともに該第1の色再現領域の表面に沿って広がる複数の平面で形成された多面体形状の第2の色再現領域を決定する色再現領域決定過程と、
前記第2の色再現領域全域が、前記入力デバイスに依存した第1の色空間における該入力デバイスの第3の色再現領域全域に対応づけられるように、前記第2の色再現領域の各点に各座標を割り当てて第2の色空間を形成することにより、該第2の色空間の座標と、デバイス非依存の共通色空間の座標との間の対応関係を決定する座標対応付過程と、
前記共通色空間における前記第2の色再現領域内の座標を、画像データに基づく画像を出力する出力デバイスに依存した第3の色空間における該出力デバイスの第4の色再現領域を該出力デバイスのプロファイルに従って前記共通色空間に写像したときの、該共通色空間における前記第4の色再現領域内の座標に変換するための該共通色空間上でのマッピング定義を作成するマッピング定義作成過程と、
前記第1の色空間上の第1の座標を前記第2の色空間上の第2の座標に変換し該第2の座標を前記共通色空間上の第3の座標に変換し該第3の座標を前記マッピング定義に従って該共通色空間上の第4の座標に変換し該第4の座標を前記第3の色空間上の第5の座標に変換したときと同一の変換を行なうための、第1の座標と第5の座標との間の色変換定義を作成する色変換定義作成過程とを有することを特徴とする色変換定義作成方法。
Create a color conversion definition for converting input image data obtained by reading an image recorded on an image recording medium with an input device into output image data suitable for an output device that outputs an image based on the image data In the color conversion definition creation method,
A polyhedral shape formed of a plurality of planes including a first color reproduction area representing a color area that can be expressed on the image recording medium and extending along the surface of the first color reproduction area. A color reproduction region determination process for determining a second color reproduction region;
Each point of the second color reproduction region is set such that the entire second color reproduction region is associated with the entire third color reproduction region of the input device in the first color space depending on the input device. Forming a second color space by assigning each coordinate to a coordinate association process for determining a correspondence relationship between the coordinates of the second color space and the coordinates of the device-independent common color space; ,
A coordinate in the second color reproduction region in the common color space is used as a fourth color reproduction region of the output device in a third color space depending on an output device that outputs an image based on image data. A mapping definition creating process for creating a mapping definition on the common color space for conversion into coordinates in the fourth color reproduction area in the common color space when mapped to the common color space according to the profile of ,
The first coordinate on the first color space is converted to the second coordinate on the second color space, the second coordinate is converted to the third coordinate on the common color space, and the third coordinate Is converted into the fourth coordinate on the common color space according to the mapping definition, and the fourth coordinate is converted into the fifth coordinate on the third color space. , color conversion definition creating how to; and a color conversion definition creating process of creating a color conversion definition between the first coordinates and the fifth coordinates.
前記色再現領域決定過程は、前記共通色空間において多面体形状となる第2の色再現領域を決定する過程であることを特徴とする請求項1記載の色変換定義作成方法。2. The color conversion definition creating method according to claim 1, wherein the color reproduction region determining step is a step of determining a second color reproduction region having a polyhedron shape in the common color space. 前記色再現領域決定過程は、白、黒、レッド、グリーン、ブルー、シアン、マゼンタ、およびイエローを表わす各点を各頂点とする12面体形状の第2の色再現領域を決定する過程であることを特徴とする請求項1記載の色変換定義作成方法。The color reproduction area determining process is a process of determining a dodecahedron-shaped second color reproduction area having each point representing white, black, red, green, blue, cyan, magenta, and yellow as a vertex. The color conversion definition creating method according to claim 1. 画像記録媒体上に記録された画像を入力デバイスで読み取って得た入力画像データを、画像データに基づいて画像を出力する出力デバイスに適合した出力画像データに変換するための色変換定義を作成する色変換定義作成装置において、
前記画像記録媒体上に表現することが可能な色の領域を表わす第1の色再現領域を内包するとともに該第1の色再現領域の表面に沿って広がる複数の平面で形成された多面体形状の第2の色再現領域を決定する色再現領域決定部と、
前記第2の色再現領域全域が、前記入力デバイスに依存した第1の色空間における該入力デバイスの第3の色再現領域全域に対応づけられるように、前記第2の色再現領域の各点に各座標を割り当てて第2の色空間を形成することにより、該第2の色空間の座標と、デバイス非依存の共通色空間の座標との間の対応関係を決定する座標対応付部と、
前記共通色空間における前記第2の色再現領域内の座標を、画像データに基づく画像を出力する出力デバイスに依存した第3の色空間における該出力デバイスの第4の色再現領域を該出力デバイスのプロファイルに従って前記共通色空間に写像したときの、該共通色空間における前記第4の色再現領域内の座標に変換するための該共通色空間上でのマッピング定義を作成するマッピング定義作成部と、
前記第1の色空間上の第1の座標を前記第2の色空間上の第2の座標に変換し該第2の座標を前記共通色空間上の第3の座標に変換し該第3の座標を前記マッピング定義に従って該共通色空間上の第4の座標に変換し該第4の座標を前記第3の色空間上の第5の座標に変換したときと同一の変換を行なうための、第1の座標と第5の座標との間の色変換定義を作成する色変換定義作成部とを有することを特徴とする色変換定義作成装置。
Create a color conversion definition for converting input image data obtained by reading an image recorded on an image recording medium with an input device into output image data suitable for an output device that outputs an image based on the image data In the color conversion definition creation device,
A polyhedral shape formed of a plurality of planes including a first color reproduction area representing a color area that can be expressed on the image recording medium and extending along the surface of the first color reproduction area. A color reproduction region determination unit for determining a second color reproduction region;
Each point of the second color reproduction region is set such that the entire second color reproduction region is associated with the entire third color reproduction region of the input device in the first color space depending on the input device. A coordinate association unit for determining a correspondence relationship between the coordinates of the second color space and the coordinates of the device-independent common color space ,
A coordinate in the second color reproduction region in the common color space is used as a fourth color reproduction region of the output device in a third color space depending on an output device that outputs an image based on image data. A mapping definition creating unit that creates a mapping definition on the common color space for conversion into coordinates in the fourth color reproduction area in the common color space when mapped to the common color space according to the profile of ,
The first coordinate on the first color space is converted to the second coordinate on the second color space, the second coordinate is converted to the third coordinate on the common color space, and the third coordinate Is converted into the fourth coordinate on the common color space according to the mapping definition, and the fourth coordinate is converted into the fifth coordinate on the third color space. A color conversion definition creating apparatus comprising: a color conversion definition creating unit that creates a color conversion definition between the first coordinate and the fifth coordinate.
コンピュータ内で実行され、該コンピュータを、画像記録媒体上に記録された画像を入力デバイスで読み取って得た入力画像データを、画像データに基づいて画像を出力する出力デバイスに適合した出力画像データに変換するための色変換定義を作成する色変換定義作成装置として動作させる色変換定義作成プログラムであって、
前記画像記録媒体上に表現することが可能な色の領域を表わす第1の色再現領域を内包するとともに該第1の色再現領域の表面に沿って広がる複数の平面で形成された多面体形状の第2の色再現領域を決定する色再現領域決定部と、
前記第2の色再現領域全域が、前記入力デバイスに依存した第1の色空間における該入力デバイスの第3の色再現領域全域に対応づけられるように、前記第2の色再現領域の各点に各座標を割り当てて第2の色空間を形成することにより、該第2の色空間の座標と、デバイス非依存の共通色空間の座標との間の対応関係を決定する座標対応付部と、
前記共通色空間における前記第2の色再現領域内の座標を、画像データに基づく画像を出力する出力デバイスに依存した第3の色空間における該出力デバイスの第4の色再現領域を該出力デバイスのプロファイルに従って前記共通色空間に写像したときの、該共通色空間における前記第4の色再現領域内の座標に変換するための該共通色空間上でのマッピング定義を作成する色変換定義作成部と、
前記第1の色空間上の第1の座標を前記第2の色空間上の第2の座標に変換し該第2の座標を前記共通色空間上の第3の座標に変換し該第3の座標を前記マッピング定義に従って該共通色空間上の第4の座標に変換し該第4の座標を前記第3の色空間上の第5の座標に変換したときと同一の変換を行なうための、第1の座標と第5の座標との間の色変換定義を作成する色変換定義作成部とを有することを特徴とする色変換定義作成プログラム。
Input image data that is executed in a computer and obtained by reading the image recorded on the image recording medium by the input device into output image data suitable for an output device that outputs an image based on the image data. A color conversion definition creation program that operates as a color conversion definition creation device for creating a color conversion definition for conversion,
A polyhedral shape formed of a plurality of planes including a first color reproduction area representing a color area that can be expressed on the image recording medium and extending along the surface of the first color reproduction area. A color reproduction region determination unit for determining a second color reproduction region;
Each point of the second color reproduction region is set such that the entire second color reproduction region is associated with the entire third color reproduction region of the input device in the first color space depending on the input device. A coordinate association unit for determining a correspondence relationship between the coordinates of the second color space and the coordinates of the device-independent common color space ,
A coordinate in the second color reproduction region in the common color space is used as a fourth color reproduction region of the output device in a third color space depending on an output device that outputs an image based on image data. A color conversion definition creating unit that creates a mapping definition on the common color space for conversion to coordinates in the fourth color reproduction region in the common color space when mapped to the common color space according to the profile of When,
The first coordinate on the first color space is converted to the second coordinate on the second color space, the second coordinate is converted to the third coordinate on the common color space, and the third coordinate Is converted into the fourth coordinate on the common color space in accordance with the mapping definition, and the fourth coordinate is converted into the fifth coordinate on the third color space. A color conversion definition creating program comprising: a color conversion definition creating unit that creates a color conversion definition between the first coordinate and the fifth coordinate.
JP2002082374A 2002-03-25 2002-03-25 Color conversion definition creation method, color conversion definition creation device, and color conversion definition creation program Expired - Fee Related JP3866129B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002082374A JP3866129B2 (en) 2002-03-25 2002-03-25 Color conversion definition creation method, color conversion definition creation device, and color conversion definition creation program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002082374A JP3866129B2 (en) 2002-03-25 2002-03-25 Color conversion definition creation method, color conversion definition creation device, and color conversion definition creation program

Publications (2)

Publication Number Publication Date
JP2003283859A JP2003283859A (en) 2003-10-03
JP3866129B2 true JP3866129B2 (en) 2007-01-10

Family

ID=29230586

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002082374A Expired - Fee Related JP3866129B2 (en) 2002-03-25 2002-03-25 Color conversion definition creation method, color conversion definition creation device, and color conversion definition creation program

Country Status (1)

Country Link
JP (1) JP3866129B2 (en)

Also Published As

Publication number Publication date
JP2003283859A (en) 2003-10-03

Similar Documents

Publication Publication Date Title
KR100312277B1 (en) Image processing method, image processing apparatus and computer readable memory
US8204304B2 (en) Color gamut mapping by forming curved cross-sectional surfaces
JP4276560B2 (en) Color conversion definition creation method, profile creation method, color conversion definition creation device, profile creation device, color conversion definition creation program, and profile creation program
JP6156401B2 (en) Color conversion method, program, and image processing apparatus
JP4276561B2 (en) Color conversion definition creation method, profile creation method, color conversion definition creation device, profile creation device, color conversion definition creation program, and profile creation program
JP2004153554A (en) Method, device and program for mapping color region
JP4044254B2 (en) Color conversion definition creation method, color conversion definition creation device, and color conversion definition creation program storage medium
JP4592089B2 (en) Image processing method, profile creation method, and image processing apparatus
JP2010074317A (en) Image processor, image processing program, and image processing method
JP2001045313A (en) Method and device for converting color, color conversion program storage medium and method for correcting color
JP3934968B2 (en) Color conversion definition creation method, color conversion definition creation device, and color conversion definition creation program
JP4501321B2 (en) Color gamut compression method
JP3866129B2 (en) Color conversion definition creation method, color conversion definition creation device, and color conversion definition creation program
JP3961971B2 (en) Color conversion relationship deriving method, color conversion relationship deriving device, and color conversion relationship deriving program
JP5074659B2 (en) Color conversion definition creation method, color conversion definition creation device, and color conversion definition creation program
JP2004048588A (en) Method, device and program for creating color conversion definition
JP4088512B2 (en) Color conversion definition creation method, color conversion definition creation device, and color conversion definition creation program
JP2006173825A (en) Image processing apparatus and method thereof
JP2008072208A (en) Image processor, and method thereof, and recording medium thereof
JP4095609B2 (en) Color processing apparatus and method
JP2001197323A (en) Method an device for preparing profile
JP2006311257A (en) Color conversion definition generating method, profile generating method, color conversion definition generating apparatus, profile generating apparatus, color conversion definition generating program, and profile generating program
JP2008042835A (en) Image processor, image processing method, program, and recording medium
JP2003348363A (en) Method, apparatus, and program for preparing color conversion definition
JP4377203B2 (en) Profile creation method, profile creation device, profile creation program, and profile creation program storage medium

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20040310

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20060706

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20060725

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20060905

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20061003

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20061004

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20091013

Year of fee payment: 3

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

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

Free format text: PAYMENT UNTIL: 20091013

Year of fee payment: 3

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

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

Free format text: PAYMENT UNTIL: 20101013

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20111013

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20121013

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20121013

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20131013

Year of fee payment: 7

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees