JP4016234B2 - Image processing method and image processing apparatus - Google Patents
Image processing method and image processing apparatus Download PDFInfo
- Publication number
- JP4016234B2 JP4016234B2 JP18865799A JP18865799A JP4016234B2 JP 4016234 B2 JP4016234 B2 JP 4016234B2 JP 18865799 A JP18865799 A JP 18865799A JP 18865799 A JP18865799 A JP 18865799A JP 4016234 B2 JP4016234 B2 JP 4016234B2
- Authority
- JP
- Japan
- Prior art keywords
- point
- conversion
- input
- color
- output
- 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
Links
- 238000003672 processing method Methods 0.000 title claims description 45
- 238000012545 processing Methods 0.000 title claims description 42
- 238000006243 chemical reaction Methods 0.000 claims description 371
- 238000012937 correction Methods 0.000 claims description 220
- 238000004364 calculation method Methods 0.000 claims description 123
- 238000000034 method Methods 0.000 claims description 99
- 230000036961 partial effect Effects 0.000 claims description 64
- 239000013598 vector Substances 0.000 claims description 46
- 230000009466 transformation Effects 0.000 claims description 37
- 230000008569 process Effects 0.000 claims description 22
- 239000011159 matrix material Substances 0.000 claims description 10
- 238000002360 preparation method Methods 0.000 claims description 7
- 230000001419 dependent effect Effects 0.000 claims description 6
- 238000012935 Averaging Methods 0.000 claims description 3
- 230000002829 reductive effect Effects 0.000 claims description 2
- 230000006870 function Effects 0.000 description 49
- 230000006835 compression Effects 0.000 description 44
- 238000007906 compression Methods 0.000 description 44
- 230000000007 visual effect Effects 0.000 description 21
- 238000010586 diagram Methods 0.000 description 17
- 230000002441 reversible effect Effects 0.000 description 17
- 239000003086 colorant Substances 0.000 description 10
- 238000009499 grossing Methods 0.000 description 7
- 230000000873 masking effect Effects 0.000 description 7
- 230000008859 change Effects 0.000 description 5
- 230000001953 sensory effect Effects 0.000 description 4
- 230000000694 effects Effects 0.000 description 3
- 230000008901 benefit Effects 0.000 description 2
- 230000006837 decompression Effects 0.000 description 2
- 238000002474 experimental method Methods 0.000 description 2
- 238000013213 extrapolation Methods 0.000 description 2
- 238000007689 inspection Methods 0.000 description 2
- 238000013507 mapping Methods 0.000 description 2
- 238000012360 testing method Methods 0.000 description 2
- 230000009471 action Effects 0.000 description 1
- 230000003044 adaptive effect Effects 0.000 description 1
- 238000005452 bending Methods 0.000 description 1
- 238000007796 conventional method Methods 0.000 description 1
- 230000003247 decreasing effect Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000004321 preservation Methods 0.000 description 1
- 230000009467 reduction Effects 0.000 description 1
Images
Landscapes
- Image Processing (AREA)
- Facsimile Image Signal Circuits (AREA)
- Color Image Communication Systems (AREA)
Description
【0001】
【発明の属する技術分野】
この発明は、カラー入力画像またはその部分領域をカラープリンタやカラーディスプレイなどのカラー画像出力装置の色域に合わせて色域圧縮または色域伸長する画像処理方法および画像処理装置に関する。
【0002】
【従来の技術】
カラープリンタやカラーディスプレイなどのカラー画像出力装置は、人が知覚できる全ての色を再現できるわけではなく、色域(色再現範囲、ガミュート)と呼ばれる限られた範囲の色しか再現できない。これに対して、カラー入力画像には画像データによって表現可能な範囲に制限がないので、入力画像として出力装置の色域外の色が入力される可能性があり、この場合には、入力画像を出力装置の色域内に変換する処理、すなわち入力画像の色域(色表現範囲)を出力装置の色域内に圧縮する処理が必要となる。
【0003】
これとは逆に、入力画像が出力装置の色域内に含まれる場合には、例えば彩度をより高くするなど、出力装置の色域を有効に利用して、入力画像をより高品質の画像に変換する色域伸長と呼ばれる処理を行うことも可能となる。
【0004】
色域圧縮に関する従来技術としては、International Color Consosium の提唱するInternational Color Consosium Formatの中に記述されている3つの方法、Perceptual,Saturation,Colorimetricが良く知られている。
【0005】
Perceptualは、出力装置の色域外の色だけでなく、色域内の色も、色相を保存したまま、ある割合で変化させ、出力装置の色域内のグレー軸上の定点に向かって色域を圧縮する方法である。
【0006】
Saturationは、出力装置の色域外の色についてのみ、色相を保存したまま、出力装置の色域内のグレー軸上の定点に向かって出力装置の色域外郭に貼り付ける方法であり、Colorimetricは、出力装置の色域外の色についてのみ、明度と色相を保存したまま、出力装置の色域内のグレー軸に向かって出力装置の色域外郭に貼り付ける方法である。
【0007】
【発明が解決しようとする課題】
しかしながら、Perceptualは、入力画像の色相および明度の如何にかかわらず、入力画像を一定の割合で圧縮するので、圧縮が不要な色相または明度の領域まで圧縮されてしまう問題がある。
【0008】
また、SaturationおよびColorimetricも、入力画像の色相および明度の如何にかかわらず、出力装置の色域外の色を出力装置の色域外郭に貼り付け圧縮するので、出力装置の色域外の色を出力装置の色域外郭に変換した後の色に類似した色が、出力装置の色域内において原画像の入力画像に存在しているときには、両者の色の間の識別性が劣化し、また出力装置の色域外にグラデーションがある場合には、これらの処理によってグラデーションが消失してしまう可能性がある、という問題がある。
【0009】
さらに、これらSaturationまたはColorimetricを、入力画像データの上位ビットをアドレスとして多次元DLUT(ダイレクトルックアップテーブル)を索引し、その読み出された格子点データを入力画像データの下位ビットを用いて補間演算することによって出力画像データを得る、多次元DLUT補間演算型の色変換器によって実現する場合には、出力装置の色域外の格子点データを出力装置の色域外郭に貼り付けるという格子点データの決め方をすると、出力装置の色域外郭に近い色域内の色も不必要に圧縮されてしまうという問題がある。
【0010】
これらの問題に対して、(1)写真やビジネスなどで用いられるグラフなどの原稿の種別によって、上記3種類の方式から最も好ましいと考えられる変換方式を選択する方法、(2)特開平6−162181号公報に示されているような、入力画像における出力装置の色域内と色域外の画素数を計数し、その比率の大小に応じて変換方式を選択する方法、(3)特開平8−274997号公報に示されているような、入力画像における出力装置の色域内と色域外の画素数を計数し、その比率の大小に応じて圧縮量を連続的に変える方法、が提案されている。
【0011】
しかしながら、これらの方法も、本質的には上記のPerceptual、SaturationまたはColorimetricを用いるので、上述した問題を根本的に解決することはできない。
【0012】
さらに、特開平7−203234号公報には、均等色空間を単位領域に分割して、各単位領域ごとに入力画像に含まれる画素数を求め、出力装置の色域(色再現範囲)外の単位領域については、その画素数に応じて明度が同じ他の単位領域に写像する方法が示されている。
【0013】
しかしながら、この方法は、出力装置の色域外の単位領域についてのみ、色マッピングを行うため、例えば、出力装置の色域内から色域外に連続したグラデーションについては、出力装置の色域外の領域の色の変換によって色の連続性が損なわれ、所望のグラデーションを表現できない場合を生じるという問題がある。
【0014】
以上の問題に加えて、カラーフォーラムJapan'95論文集4-1(p.45-48)などで報告されている、色空間の色相線の視覚的な曲がりに対応した色域圧縮方法として、特開平7−203234号公報には、色域を小ブロックに分割して処理を行うことが示されている。
【0015】
しかしながら、この方法は、小ブロック内での色相線の視覚的な曲がりには対処できないとともに、ブロック間の連続性を確保できないという問題がある。
【0016】
以上の点から、この発明の目的は、以下の点を実現できるようにすることにある。(1)入力画像の分布に依存して、色域圧縮の必要な領域のみを色域圧縮することができる。(2)色域圧縮の方向を、各領域ごとに連続的に調整することができる。(3)色域圧縮の量を、張り付けも含めて連続的に調整することができる。(4)多次元DLUT補間演算型の色変換器によって色域圧縮する場合に、特に張り付け時の過度に不必要な色域圧縮を避けることができる。
【0018】
【課題を解決するための手段】
第1の発明の画像処理方法は、
カラー入力画像またはその部分領域をカラー画像出力装置の色域に合わせて変換する画像処理方法において、
変換対象点から一意に決定する前記カラー画像出力装置の色域内の定点と前記変換対象点とを結ぶ直線であるベースラインと、前記カラー画像出力装置の色域の最外郭曲面または色域内の閉曲面である出力外郭曲面との、交点である出力外郭点を求める出力外郭点算出工程と、
前記ベースラインと、前記カラー入力画像または前記部分領域の色域の最外郭曲面である入力最外郭曲面との、交点である入力最外郭点を求める入力最外郭点算出工程と、
前記出力外郭点および前記入力最外郭点から、第1重み係数および第2重み係数を決定する重み係数決定工程と、
前記定点、前記出力外郭点および前記第1重み係数を用いて、前記変換対象点を前記ベースライン上の点に圧縮または伸張して、第1変換点を算出する第1変換点算出工程と、
前記変換対象点を、その変換対象点に対応する補正データにより補正して、補正点を算出する補正点算出工程と、
前記第1重み係数を用いて、前記補正点を、その補正点と前記定点とを結ぶ直線である補正ライン上の点に圧縮または伸張して、第2変換点を算出する第2変換点算出工程と、
前記第1変換点、前記第2変換点および前記第2重み係数を用いて、前記第1変換点と前記第2変換点とを結ぶ線分上の点を、前記変換対象点についての最終変換点として算出する最終変換点算出工程とを備え、
前記第1重み係数は、前記定点から前記変換対象点までの距離と前記定点から前記入力最外郭点までの距離との比R1を入力とし、第1重み係数を出力とする1変数関数計算を行うことによって決定し、その1変数関数の形状は、前記定点から前記出力外郭点までの距離と前記定点から前記入力最外郭点までの距離との比R2が1以下の場合には、その比R2が入力R1のときの第1重み係数である第1パラメータと、前記定点から前記出力外郭点までの距離の何割までを前記変換対象点と前記第1変換点の座標が同一となるように設定するかを決める第2パラメータとの、少なくとも2つのパラメータから決定し、前記比R2が1より大きい場合には、入力R1が1であるときの第1重み係数である第3パラメータと、前記第2パラメータとの、少なくとも2つのパラメータから決定し、
前記第2重み係数は、前記定点から前記変換対象点までの距離と前記定点から前記入力最外郭点までの距離との比R1を入力とし、第2重み係数を出力とする1変数関数計算を行うことによって決定し、その1変数関数の形状は、前記定点から前記入力最外郭点までの距離の何割までを前記第1変換点と前記最終変換点の座標が同一となるように設定するかを決める第4パラメータと、前記定点から前記入力最外郭点までの距離の何割以上を前記第2変換点と前記最終変換点の座標が同一となるように設定するかを決める第5パラメータとの、少なくとも2つのパラメータから決定する、
ことを特徴とする。
【0019】
第2の発明の画像処理方法は、
カラー入力画像またはその部分領域をカラー画像出力装置の色域に合わせて変換する画像処理方法において、
変換対象点を、その変換対象点に対応する補正データにより補正して、補正点を算出する補正点算出工程と、
前記変換対象点から一意に決定する前記カラー画像出力装置の色域内の定点と前記補正点とを結ぶ直線である補正ベースラインと、前記カラー画像出力装置の色域の最外郭曲面または色域内の閉曲面である出力外郭曲面との、交点である出力外郭点を求める出力外郭点算出工程と、
前記補正ベースラインと、前記カラー入力画像または前記部分領域の色域の最外郭曲面である入力最外郭曲面との、交点である入力最外郭点を求める入力最外郭点算出工程と、
前記出力外郭点および前記入力最外郭点から、前記補正点を圧縮または伸張する割合である第1重み係数を決定する重み係数決定工程と、
前記定点、前記出力外郭点および前記第1重み係数を用いて、前記補正点を前記補正ベースライン上の点に圧縮または伸張して、第1変換点を算出する第1変換点算出工程と、
前記第1変換点を、その第1変換点に対応する逆補正データにより補正して、前記変換対象点についての最終変換点を算出する最終変換点算出工程とを備え、
前記第1重み係数は、前記定点から前記変換対象点までの距離と前記定点から前記入力最外郭点までの距離との比R1を入力とし、第1重み係数を出力とする1変数関数計算を行うことによって決定し、その1変数関数の形状は、前記定点から前記出力外郭点までの距離と前記定点から前記入力最外郭点までの距離との比R2が1以下の場合には、その比R2が入力R1のときの第1重み係数である第1パラメータと、前記定点から前記出力外郭点までの距離の何割までを前記変換対象点と前記第1変換点の座標が同一となるように設定するかを決める第2パラメータとの、少なくとも2つのパラメータから決定し、前記比R2が1より大きい場合には、入力R1が1であるときの第1重み係数である第3パラメータと、前記第2パラメータとの、少なくとも2つのパラメータから決定する、
ことを特徴とする。
【0021】
【作用】
上記の第1の発明の画像処理方法では、変換対象点をベースライン(定点と変換対象点とを結ぶ直線)上で圧縮または伸長して第1変換点を求め、変換対象点から補正データにより算出された補正点を補正ライン(定点と補正点とを結ぶ直線)上で圧縮または伸張して第2変換点を求め、その第1変換点と第2変換点を結ぶ線分上の点として最終変換点を求めるので、上記(1)〜(4)に示したような色域変換を実現することができる。
【0022】
上記の第2の発明の画像処理方法では、変換対象点から補正データにより算出された補正点を、補正ベースライン(定点と補正点とを結ぶ直線)上で圧縮または伸張して、第1変換点を算出し、その第1変換点を、その第1変換点に対応する逆補正データにより補正して、最終変換点を算出するので、変換対象点と定点とを通る理想的な変換曲線上に最終変換点を得ることができ、第1の発明の画像処理方法と同様に上記(1)〜(4)に示したような色域変換を実現することができる。
【0025】
【発明の実施の形態】
CIELAB(L*a*b*)色空間上で、カラー入力画像(以下、単に入力画像と称する)またはその部分領域を色域圧縮または色域伸長する場合を例として、この発明の実施形態を示す。ただし、この発明は、CIELUV(L*u*v*),YIQ,YCbCr、XYZ,RGBなどの他の色空間でも適用することができる。
【0026】
〔発明の方法の概要〕
図1または図2を用いて、第1の発明の方法の概要を示す。図1および図2は、CIELAB色空間を便宜上、明度軸であるL*軸と彩度軸であるC*軸とによって2次元的に示したものである。
【0027】
図1および図2において、点P0は、カラー画像出力装置(以下、単に出力装置と称する)の色域内の定点で、グレー軸上、すなわちCIELAB色空間ではL*軸上に、後述するよう設定する。以後、定点とは、この出力装置の色域内の定点P0のことである。
【0028】
点P1は、入力画像またはその部分領域の、ある色座標値で表される変換対象点である。線L1は、定点P0から変換対象点P1に向かう線で、ベースラインと定義する。
【0029】
曲面C2は、出力装置の色域の最外郭曲面、または後述するように設定する出力装置の色域内の閉曲面で、出力外郭曲面と定義する。曲面C3は、入力画像またはその部分領域の色域の最外郭曲面で、入力最外郭曲面と定義する。図1および図2は、入力最外郭曲面C3が出力外郭曲面C2の外側にあって、変換対象点P1を圧縮変換する場合であるが、逆に出力外郭曲面C2が入力最外郭曲面C3の外側にあって、変換対象点P1を伸長変換する場合にも、この発明の方法を用いることができる。
【0030】
点P2は、ベースラインL1と出力外郭曲面C2との交点で、出力外郭点と定義する。点P3は、ベースラインL1と入力最外郭曲面C3との交点で、入力最外郭点と定義する。
【0031】
点P4は、第1変換点で、定点P0と出力外郭点P2とを第1重み係数を用いて重み付け平均することによって求める。したがって、第1変換点P4はベースラインL1上の点である。点P5は、第2変換点で、圧縮方向または伸長方向を補正するための補正データと第1重み係数とを用いて求める。線L5は、定点P0から第2変換点P5に向かう線で、補正ラインと定義する。
【0032】
図1および図2では、補正ラインL5がベースラインL1と異なるが、補正データがゼロであれば、補正ラインL5はベースラインL1と一致する。その補正データは、例えば、図1および図2で補正データD1として示すように、色空間において離散的なデータとして設定し、用意しておく。
【0033】
点P6は、変換対象点P1についての最終変換点で、第1変換点P4と第2変換点P5とを第2重み係数を用いて重み付け平均することによって求める。したがって、最終変換点P6は、第1変換点P4と第2変換点P5とを結ぶ線分上の点である。
【0034】
図18および図19を用いて、第2の発明の方法の概要を示す。図18は、CIELAB色空間を明度軸であるL*軸と彩度軸であるC*軸とによって2次元的に示したものであり、図19は、CIELAB色空間をa*軸とb*軸とによって2次元的に示したものである。
【0035】
すでに第1の発明で説明したように、図18および図19においても、点P0、点P1、曲面C2および曲面C3は、それぞれ、定点、変換対象点、出力外郭曲面および入力最外郭曲面である。
【0036】
点P21は、変換対象点P1に対して変換対象点P1に対応する補正データを適用して算出した点であり、補正点と定義する。補正データは、色空間において離散的なベクトルデータとして用意しておき、補間などにより必要な点に対応する補正データを算出することができる。
【0037】
直線L2は、補正点P21と定点P0とを結ぶ直線であり、補正ベースラインと定義する。
【0038】
曲線L3は、変換対象点P1と定点P0を通る曲線であり、仮想変換ラインと定義する。前記補正データは、この仮想変換ラインL3を基に算出する。この仮想変換ラインL3は目的に応じて決定するものであり、例えば、色相線の曲がりを補正することを目的とした場合には、変換対象点P1と定点P0を通る等色相線が仮想変換ラインとなる。
【0039】
点P22は、補正ベースラインL2と入力最外郭曲面C3との交点で、入力最外郭点と定義する。点P23は、補正ベースラインL2と出力外郭曲面C2との交点で、出力外郭点と定義する。
【0040】
点P24は、補正点P21に対して出力装置の色域に合わせた圧縮もしくは伸張を補正ベースラインL2に沿って行った点であり、変換点と定義する。この出力装置の色域に合わせた圧縮もしくは伸張処理は、定点P0、入力最外郭点P22、出力外郭点P23および補正点P21から決定される第1重み係数を用いて行ってもよいし、既存の方法によって行ってもよい。
【0041】
点P25は、変換対象点P1についての最終変換点で、変換点P24に対して変換点P24に対応する逆補正データを適用することで算出する。この逆補正データは、補正データのベクトルの始点と終点とを入れ替えたものである。
【0042】
図1、図2、図18および図19に示すその他の点、曲面および曲線については、後述する。
【0043】
〔定点の設定〕
定点P0は、出力装置の色域内において、グレー軸上の固定された一点として、または変換対象点P1の明度や彩度などの関数として連続的に変化する点、もしくは変換対象点P1の明度や彩度などに応じて離散的に異なる点として、設定する。
【0044】
図3に、定点P0が変換対象点P1の明度や彩度などの関数として連続的に変化する例を示す。これは、変換対象点P1から定点P0へのベクトルがa*b*平面に対して形成する角度をΦとして、角度Φと定点P0のL*値との関係を示したもので、このように定点P0を定義した場合には、定点P0と変換対象点P1との関係は、例えば図4のようになる。
【0045】
このように定点P0を変換対象点P1の明度や彩度などの関数として連続的に変化する点、または変換対象点P1の明度や彩度などに応じて離散的に異なる点とする場合には、定点P0から変換対象点P1に向かうベースラインL1が、図4のように色空間内の全領域において交差しないようにする必要があり、この条件を満たさない場合には、圧縮または伸長したときに階調の逆転を生じる可能性がある。
【0046】
定点P0を変換対象点P1の明度だけの関数にした場合、角度Φが0度であれば、階調の逆転を生じないが、角度Φが0度以外のときには、階調の逆転を生じる可能性が高く、変換対象点P1の明度が出力装置の色域外であるときには、出力装置の色域内に定点P0を設定することが困難となる。定点P0は、これらの点を考慮して設定する。
【0047】
〔出力外郭曲面〕
出力外郭曲面C2は、通常は、出力装置の色域の最外郭曲面とすればよい。しかし、出力装置がディスプレイなどで、入力画像の白色点と出力装置の白色点とが異なるような場合には、出力装置の色域内の閉曲面を出力外郭曲面C2とした方が望ましい場合もある。
【0048】
図5に、入力画像またはその部分領域の色域と出力装置の色域との関係の例を模式的に示し、曲面C20は出力装置の色域の最外郭曲面、曲面C3は入力最外郭曲面、すなわち入力画像またはその部分領域の色域の最外郭曲面である。
【0049】
この例で、入力画像またはその部分領域の白色点P1wを、出力装置の色域内におけるグレー軸上の圧縮先P6wに変換すると、出力装置の色域内には、その白色点圧縮先P6wより高い明度の領域があるので、圧縮方法によっては、入力画像またはその部分領域の他の色が白色点圧縮先P6wより高い明度の色P6oに変換されてしまい、不自然な印象を与えることがある。
【0050】
このような場合には、出力装置の色域内の閉曲面として、白色点圧縮先P6wより低い明度の領域のみを含むような曲面を設定して、これを出力外郭曲面C2とすればよい。例えば、図5において、白色点圧縮先P6wを起点に明度が白色点圧縮先P6wと同じになるように水平に伸びた閉曲面C21、または白色点圧縮先P6wを起点に彩度が高くなるにつれて徐々に明度が減少するような閉曲面C22を、出力装置の色域内の閉曲面として設定し、出力外郭曲面C2とする。
【0051】
彩度が高くなると視覚的には同じ明度のグレーより明るく感じられるが、後者の閉曲面C22を出力外郭曲面C2とすれば、そのような視覚的な現象によって不自然な印象を与えることを防止することができる。
【0052】
このような視覚的な不具合への対処として、入力画像またはその部分領域の全ての色について最初に明度のみを一様に変換した後、色域変換を行うことも考えられる。しかし、色域圧縮だけでなく色域伸長も行う場合には、伸長時に同様の不具合を生じるので、前もって明度を変換する場合でも、上記の閉曲面C22のような閉曲面を出力外郭曲面C2として設定することが望ましい。
【0053】
〔画像処理方法としての第1の実施形態〕
図6は、入力画像またはその部分領域の、ある一点、すなわちある一画素の色座標値を変換対象点P1として、これを出力装置の色域に適合した色座標値の最終変換点P6に変換する第1の発明の一実施形態を示す。
【0054】
図6の方法は、処理プログラムによってコンピュータ上で実現することができるが、一部の工程をハードウエアによって行うこともできる。この方法は、全体として、出力外郭点算出工程10、入力最外郭点算出工程20、第1重み係数決定工程30、第2重み係数決定工程40、第1変換点算出工程50、第2変換点算出工程60、および最終変換点算出工程70からなる。最初に、出力外郭点算出工程10または入力最外郭点算出工程20、例えば、出力外郭点算出工程10を行う。
【0055】
(出力外郭点算出工程)
出力外郭点算出工程10では、変換対象点P1の情報(色座標値)S1、定点P0の情報(色座標値)S0、出力外郭曲面C2の情報SC2、および出力外郭点算出用パラメータPP2から、定点P0から変換対象点P1に向かう線であるベースラインL1と出力外郭曲面C2との交点である出力外郭点P2の情報S2を算出する。
【0056】
図7は、出力外郭点算出工程10の具体例を示し、この例では、まず、出力外郭代表点準備工程11で、出力外郭曲面情報SC2をもとに、図1および図2に示すような複数の出力外郭代表点P12の情報(色座標値)S12を算出する。
【0057】
ここでの出力外郭曲面情報SC2は、出力装置に依存した入力信号と出力される色との関係の離散的なデータ対、および、出力外郭曲面C2が出力装置の色域内の閉曲面である場合には、その形状に関する情報である。
【0058】
離散的なデータ対としては、例えば、出力装置がプリンタの場合には、色々なYMC(K)%の組み合わせのデータと、その組み合わせでプリントしたときの色のLABデータ、出力装置がディスプレイの場合には、色々なRGBの組み合わせのデータと、その組み合わせで表示したときの色のLABデータまたはXYZデータなどを揃えればよい。
【0059】
これらのデータをもとに、被予測値を出力装置の色域の最外郭曲面上の点に設定して、予測値である色を予測する。
【0060】
被予測値を出力装置の色域の最外郭曲面上の点に設定することは、例えば、出力装置が3色プリンタの場合には、Y%をゼロにしたときのM%とC%の組み合わせ、M%をゼロにしたときのC%とY%の組み合わせ、C%をゼロにしたときのY%とM%の組み合わせのデータを準備することに相当する。
【0061】
さらに、出力外郭曲面C2が出力装置の色域内の閉曲面である場合には、その形状に関する情報を用いて、出力装置の色域の最外郭曲面上の色データに修正を加えて、出力外郭代表点情報S12とする。
【0062】
ここでの予測方法としては、出力装置に依存した入力信号と出力される色との関係の離散的なデータ対をもとに、任意の出力装置に依存した入力信号から出力される色を予測する方法を用いることができ、公知の方法を利用することができる。さらに、特願平9−4949号(平成9年1月14日出願)で提案された方法を用いれば、精度よく予測することができる。
【0063】
この特願平9−4949号(以下、先願という)の方法は、入力信号と出力信号の関係を定数項を含む線形の行列式で結び付け、複数の入力信号実データから、この行列式を用いて求めた出力予測値と、それに対応する複数の出力信号実データとの重み付けされたユークリッド距離の2乗和が最小となるように、重み付けの係数と行列式の係数と予測値とを逐次、近似法で決定するものである。
【0064】
図7の出力外郭点算出工程10では、次に、極座標変換工程12で、定点情報S0をもとに、変換対象点情報S1および出力外郭代表点情報S12を、それぞれ定点P0を中心とした極座標に変換して、変換対象点極座標情報S1rおよび出力外郭代表点極座標情報S12rを得る。
【0065】
次に、出力外郭点算出最終工程13で、変換対象点極座標情報S1r、出力外郭代表点極座標情報S12r、および出力外郭点算出用パラメータPP2をもとに、出力外郭点P2の情報(色座標値)S2を算出する。
【0066】
ここで、変換対象点極座標をO(ro,θo,φo)とし、出力外郭代表点極座標をGOUTi(ri,θi,φi),i=1,Noutとすると、ベースラインL1と出力外郭曲面C2との交点を算出することは、N個の(θi,φi)とriのデータ対をもとに、被予測値を(θo,φo)として予測値(ro)を予測する問題に帰結する。したがって、公知の方法または上記先願の方法を用いて算出することができる。
【0067】
この場合、極座標であるので、例えばθの0°と360°が連続していることなど、θ,φについての連続性に注意して、出力外郭代表点P12の数に応じて出力外郭点算出用パラメータPP2を決めればよい。
【0068】
(入力最外郭点算出工程)
図6に示す全体の工程では、次に、入力最外郭点算出工程20で、変換対象点情報S1、定点情報S0、入力画像またはその部分領域の画素値情報S20、入力最外郭点算出用パラメータPP3をもとに、ベースラインL1と入力最外郭曲面C3との交点である入力最外郭点P3の情報S3を算出する。
【0069】
入力画像またはその部分領域の画素値情報S20としては、入力画像またはその部分領域の個々の画素値そのものを用いてもよいが、予め入力画像またはその部分領域の色域を、例えば、NTSCRGB色域、SRGB色域、またはYMCBRGWKの色度点で代表される色域などと想定した場合には、その想定した色域の最外郭部分に位置する離散的な色度情報を用いてもよい。
【0070】
この予め想定した色域の最外郭部分に位置する離散的な色度情報を用いる場合には、以下に示す入力最外郭代表点候補選出工程および入力最外郭代表点選出工程を省略することができる。
【0071】
図8および図9は、それぞれ入力最外郭点算出工程20の具体例を示し、図8の例は、入力画像またはその部分領域の全ての画素値から入力最外郭代表点を選出する場合であり、図9の例は、入力画像またはその部分領域の画素を間引くなどによって入力最外郭代表点候補を求め、その入力最外郭代表点候補から入力最外郭代表点を選出する場合である。
【0072】
図8の例では、まず、極座標変換工程22で、定点情報S0をもとに、入力画像またはその部分領域の画素値情報S20を、定点P0を中心とした極座標に変換して、画素値極座標情報S20rを得る。このとき、同様に、定点情報S0をもとに、変換対象点情報S1を、定点P0を中心とした極座標に変換して、変換対象点極座標情報S1rを得るが、図7の出力外郭点算出工程10における極座標変換工程12で、すでに算出しているので、これを流用してもよい。
【0073】
次に、入力最外郭代表点選出工程23で、画素値極座標情報S20rから、図1および図2に示すような入力最外郭曲面C3上の離散的な点である入力最外郭代表点P13の情報S13を選出する。
【0074】
具体的には、入力画像またはその部分領域の画素値極座標をINi(ri,θi,φi),i=1,Ninとすると、(θ,φ)平面をメッシュに区切ってINi(ri,θi,φi)を振り分け、各メッシュの中で最大の(r)を持つデータを探し出し、入力最外郭代表点GINi(ri,θi,φi),i=1,Ninとすればよい。
【0075】
次に、入力最外郭点算出最終工程24で、変換対象点極座標情報S1r、入力最外郭代表点情報S13、および入力最外郭点算出用パラメータPP3をもとに、ベースラインL1と入力最外郭曲面C3との交点である入力最外郭点P3の情報(色座標値)S3を算出する。
【0076】
ここで、変換対象点極座標はO(ro,θo,φo)、入力最外郭代表点P13はGINi(ri,θi,φi),i=1,Ninであるので、ベースラインL1と入力最外郭曲面C3との交点を算出することは、N個の(θi,φi)とriのデータ対をもとに、被予測値を(θo,φo)として予測値(ro)を予測する問題に帰結する。したがって、公知の方法または上記先願の方法を用いて算出することができる。
【0077】
この場合、極座標であるので、θ,φについては0°と360°が連続していることに注意して、入力最外郭代表点P13の数に応じて入力最外郭点算出用パラメータPP3を決めればよい。ただし、出力外郭点情報S2を算出する場合に比べて、入力画像またはその部分領域の色域の最外郭曲面である入力最外郭曲面C3は凹凸が激しいことがあるので、その場合には、スムージング効果を強くするように入力最外郭点算出用パラメータPP3を設定することがポイントとなる。
【0078】
図9の例では、まず、入力最外郭代表点候補選出工程21で、入力画像またはその部分領域の画素値情報S20から、入力最外郭代表点候補の情報S21を得る。
【0079】
図8の例のように入力画像またはその部分領域の画素値情報S20そのものから入力最外郭代表点を選出する場合には、極座標変換工程22および入力最外郭代表点選出工程23での処理に時間がかかるが、図9の例のように予め入力最外郭代表点候補選出工程21で入力最外郭代表点候補を選出することによって、以後の極座標変換工程22および入力最外郭代表点選出工程23での処理時間を短縮することができる。この入力最外郭代表点候補の選出は、単に入力画像またはその部分領域の画素を間引き、または、いくつかの画素の平均値を求めて、その平均値を入力最外郭代表点候補情報S21とするなどの方法を用いることができる。
【0080】
その後、図8の例と同様に、極座標変換工程22、入力最外郭代表点選出工程23、および入力最外郭点算出最終工程24を経て、ベースラインL1と入力最外郭曲面C3との交点である入力最外郭点P3の情報S3を得る。
【0081】
(第1重み係数決定工程)
図6に示す全体の工程では、次に、第1重み係数決定工程30で、変換対象点情報S1、定点情報S0、出力外郭点情報S2、入力最外郭点情報S3、および第1重み係数決定用パラメータPW1をもとに、後の第1変換点算出工程50および第2変換点算出工程60で用いる第1重み係数の情報SW1を算出する。
【0082】
この第1重み係数決定工程30では、定点から変換対象点までの距離と定点から入力最外郭点までの距離との比を入力とし、第1重み係数を出力とする1変数関数計算を行うことによって、第1重み係数を決定する。その1変数関数の形状につき、図10および図11を用いて説明する。
【0083】
図10は、定点から出力外郭点までの距離と定点から入力最外郭点までの距離との比R2が1以下の場合、すなわち図1および図2に示したように圧縮を行う場合の1変数関数の形状を示しており、その形状は、定点から出力外郭点までの距離と定点から入力最外郭点までの距離との比R2が、入力(定点から変換対象点までの距離と定点から入力最外郭点までの距離との比を)R1であるときの第1重み係数W1である第1パラメータと、定点から出力外郭点までの距離の何割までを、変換対象点と第1変換点との座標が同一となるように設定するかを決める第2パラメータとの、少なくとも2つのパラメータから決定される。
【0084】
図10の点PaのY座標値が第1パラメータに相当し、点Paが線形圧縮/線形伸長の関数形状限界L11上に位置するとき、すなわち点Pbと一致するときには、線形圧縮が行われ、点Paが忠実再現/貼り付けの関数形状限界L12上に位置するとき、すなわち点Pcと一致するときには、出力外郭曲面C2内では変換対象点と第1変換点が同一点となり、出力外郭曲面C2外では貼り付けとなり、Paがそれらの間に位置するときには、それらの中間の変換が行われる。
【0085】
図10の点PdのY座標値が第2パラメータに相当し、原点、点Pd、点Pa、点(1.0,1.0)を結ぶ折れ線の第1重み関数形状L13が形成される。
【0086】
なお、これら2つのパラメータのほかに別の形状パラメータを設定して、折れ線の第1重み関数形状を、形状L13より詳細に形成してもよい。
【0087】
次に、この折れ線の第1重み関数形状L13にスムージングを施して、曲線の第1重み関数形状L14を求め、最後に、定点から変換対象点までの距離と定点から入力最外郭点までの距離との比R1の実際値R1iを入力して、曲線の第1重み関数形状L14上の交点PeのY座標値W1oを、最終出力の第1重み係数W1として出力する。
【0088】
実際の処理としては、第1パラメータおよび第2パラメータを入力して折れ線の第1重み関数形状L13上に離散的な複数の点を設定し、それらの点のX座標値とY座標値とのデータ対をもとに、スムージングのパラメータを用いて、上記先願の発明の方法などによって、定点から変換対象点までの距離と定点から入力最外郭点までの距離との比R1が入力されたときの出力値を予測することができるので、曲線の第1重み関数形状L14を求めることは必要でなく、折れ線の第1重み関数形状L13上の離散的な複数の点から直接、第1重み係数W1を求めることができる。
【0089】
図11は、定点から出力外郭点までの距離と定点から入力最外郭点までの距離との比R2が1より大きい場合、すなわち伸長を行う場合の1変数関数の形状を示しており、その形状は、入力R1が1であるときの第1重み係数W1である第3パラメータと、定点から出力外郭点までの距離の何割までを、変換対象点と第1変換点との座標が同一となるように設定するかを決める上記の第2パラメータとの、少なくとも2つのパラメータから決定される。
【0090】
図11の点PaのY座標値が第3パラメータに相当し、点Paが線形圧縮/線形伸長の関数形状限界L11上に位置するとき、すなわち点Pbと一致するときには、線形伸長が行われ、点Paが忠実再現/貼り付けの関数形状限界L12上に位置するとき、すなわち点Pcと一致するときには、変換対象点と第1変換点が同一点となり、Paがそれらの間に位置するときには、それらの中間の変換が行われる。
【0091】
図11の点PdのY座標値が第2パラメータに相当し、原点、点Pd、点Paを結ぶ折れ線の第1重み関数形状L13が形成される。
【0092】
なお、これら2つのパラメータのほかに別の形状パラメータを設定して、折れ線の第1重み関数形状を、形状L13より詳細に形成してもよい。
【0093】
次に、この折れ線の第1重み関数形状L13にスムージングを施して、曲線の第1重み関数形状L14を求め、最後に、定点から変換対象点までの距離と定点から入力最外郭点までの距離との比R1の実際値R1iを入力して、曲線の第1重み関数形状L14上の交点PeのY座標値W1oを、最終出力の第1重み係数W1として出力する。
【0094】
実際の処理としては、第2パラメータおよび第3パラメータを入力して折れ線の第1重み関数形状L13上に離散的な複数の点を設定し、それらの点のX座標値とY座標値とのデータ対をもとに、スムージングのパラメータを用いて、上記先願の発明の方法などによって、定点から変換対象点までの距離と定点から入力最外郭点までの距離との比R1が入力されたときの出力値を予測することができるので、曲線の第1重み関数形状L14を求めることは必要でなく、折れ線の第1重み関数形状L13上の離散的な複数の点から直接、第1重み係数W1を求めることができる。
【0095】
このように図10と図11の方法は圧縮と伸長に類似した手法を用いるので、その第2パラメータを同一のものとするなどの制限を設ければ、色空間領域のある部分が圧縮され、ある部分が伸長されても、その間の連続性を損うことなく圧縮および伸長をすることができる利点がある。
【0096】
(第2重み係数決定工程)
図6に示す全体の工程では、次に、第2重み係数決定工程40で、変換対象点情報S1、定点情報S0、入力最外郭点情報S3、および第2重み係数決定用パラメータPW2をもとに、後の最終変換点算出工程70で用いる第2重み係数の情報SW2を算出する。
【0097】
この第2重み係数決定工程40では、定点から変換対象点までの距離と定点から入力最外郭点までの距離との比を入力とし、第2重み係数を出力とする1変数関数計算を行うことによって、第2重み係数を決定する。その1変数関数の形状につき、図12を用いて説明する。
【0098】
図12は、第2重み係数W2の1変数関数の形状を示しており、その形状は、定点から入力最外郭点までの距離の何割までを、第1変換点と最終変換点との座標が同一となるように設定するかを決める第4パラメータと、定点から入力最外郭点までの距離の何割以上を、第2変換点と最終変換点との座標が同一となるように設定するを決める第5パラメータとの、少なくとも2つのパラメータから決定される。
【0099】
図12の点PfのX座標値が第4パラメータに相当し、点PgのX座標値が第5パラメータに相当しており、原点、点Pf、点Pg、点(1.0,1.0)を結ぶ折れ線の第2重み関数形状L15が形成される。
【0100】
なお、これら2つのパラメータのほかに別の形状パラメータを設定して、折れ線の第2重み関数形状を、形状L15より詳細に形成してもよい。
【0101】
次に、この折れ線の第2重み関数形状L15にスムージングを施して、曲線の第2重み関数形状L16を求め、最後に、定点から変換対象点までの距離と定点から入力最外郭点までの距離との比R1の実際値R1iを入力して、曲線の第2重み関数形状L16上の交点PhのY座標値W2oを、最終出力の第2重み係数W2として出力する。
【0102】
実際の処理としては、第4パラメータおよび第5パラメータを入力して折れ線の第2重み関数形状L15上に離散的な複数の点を設定し、それらの点のX座標値とY座標値とのデータ対をもとに、スムージングのパラメータを用いて、上記先願の発明の方法などによって、定点から変換対象点までの距離と定点から入力最外郭点までの距離との比R1が入力されたときの出力値を予測することができるので、曲線の第2重み関数形状L16を求めることは必要でなく、折れ線の第2重み関数形状L15上の離散的な複数の点から直接、第2重み係数W2を求めることができる。
【0103】
(第1変換点算出工程)
図6に示す全体の工程では、次に、第1変換点算出工程50で、定点情報S0、出力外郭点情報S2、および第1重み係数情報SW1をもとに、定点P0と出力外郭点P2とを第1重み係数を用いて重み付け平均することによって、第1変換点P4の情報S4を算出する。
【0104】
ここで、第1重み係数はW1であり、定点P0を中心として出力外郭点情報S2を極座標で表したものがGOUTo(ro,θo,φo)であるので、第1変換点情報S4の算出は、GOUTo(ro×W1,θo,φo)を求めることに相当し、これを定点P0の座標値を用いて直交座標に戻せば、第1変換点情報S4が得られる。
【0105】
(第2変換点算出工程)
図6に示す全体の工程では、次に、第2変換点算出工程60で、変換対象点情報S1、定点情報S0、出力外郭曲面情報SC2、補正データD1、第1重み係数情報SW1、および出力外郭点算出用パラメータPP2をもとに、第2変換点P5の情報S5を算出する。
【0106】
この第2変換点算出工程60での第2変換点P5の算出は、色域圧縮または色域伸長の方向を各領域ごとに連続的に調整できるようにするとともに、色空間の色相線の視覚的な曲がりを補正し、出力装置の色域の形状に関する問題、例えば、プリンタの場合に同じ色相で圧縮すると黄色の彩度が極端に低下してしまう問題に対処するものである。
【0107】
図13は、この第2変換点算出工程60の具体例を示し、第2変換点P5を、図1に示すように出力外郭曲面C2を縮小した出力仮想外郭曲面C1上の、または図1とは逆に出力外郭曲面C2を拡大した出力仮想外郭曲面上の、点として求める場合である。
【0108】
後述するように、この発明の画像処理方法によって得られた複数の変換対象点についての最終変換点の色座標値を色域変換用の格子点データとして多次元変換テーブルに格納するような場合には、実際の出力装置の色域の最外郭曲面を拡大した曲面を仮想の出力装置の色域の最外郭曲面と想定することによって、実際の出力装置の色域全体を効果的に利用することができるとともに、過度に不必要な色域圧縮を回避することができる。
【0109】
図13の例では、まず、補正データ準備工程61で、出力外郭曲面情報SC2および入力色空間視覚等色相情報S60をもとに、補正データD1を準備する。
【0110】
この場合の補正データD1は、第2変換点P5を算出するためのものであるとともに、図1に示すように、入力色空間全体にわたる離散的色度点に対する補正ベクトルデータであり、出力外郭曲面情報SC2から求めた補正ベクトルデータと、入力色空間視覚等色相情報S60から求めた補正ベクトルデータとを加算することによって、求めることができる。
【0111】
入力色空間視覚等色相情報S60から補正ベクトルデータを求めるには、例えば、ベースラインL1上の離散的色度点に対して彩度を複数設定して、色相だけをどの程度移動させれば同じ色相に見えるかを、視覚的な等色実験で求めておき、定点P0から変換対象点P1までの距離と定点P0から出力外郭曲面C2の等色点までの距離との比率を用いて、定点P0から等色点に向かう線上の仮想補正点を求めて、変換対象点P1から仮想補正点へのベクトルを補正ベクトルとし、定点P0から等色点に向かう線上の設定した彩度点が、定点P0から出力外郭曲面C2までの何割に相当するかという情報とともに、保存するという方法を用いればよい。
【0112】
出力外郭曲面情報SC2から補正ベクトルデータを求めるには、例えば、入力色空間視覚等色相情報S60から決めた補正ベクトルデータを用いた後、圧縮前後の色相差、明度差、彩度差に重み付けして加算した値が最小になるという条件で各種圧縮サンプルを作成し、官能検査によって各領域ごとに、その重みの比率の最適値を求め、その最適値の比率から逆算して、ベースラインL1上の色の補正ベクトルデータを求める方法を用いることができる。伸長の場合も同様である。
【0113】
また、両方の補正ベクトルデータを一挙に求める方法として、入力色空間全域にわたる離散的色度点に対して、出力仮想外郭曲面C1上の最適変換先を官能検査によって求め、その色度から補正ベクトルデータを逆算することもできる。
【0114】
補正データD1として、変換対象点P1から出力仮想外郭曲面C1上の第2変換点P5へのベクトルを直接用いる方法も考えられる。しかし、次の補正値算出工程62での予測精度の点から、第2変換点P5が必ず出力仮想外郭曲面C1上になるような計算が困難であるため、この例のように出力外郭曲面C2の形に影響されにくい補正データであることが望ましい。
【0115】
図13の例では、次に、補正値算出工程62で、この補正データD1および変換対象点情報S1をもとに、変換対象点P1に対する補正値の情報S61を算出する。
【0116】
ここで、第1重み係数をpとし、変換対象点P1をGINo(Lo,ao,bo,p)、第2変換点P5の算出用の原点および補正データD1をGCoe(Loi,aoi,boi,pe)、GCce(Lci,aci,bci,pe),i=1,Ncとすると、補正値情報S61の算出は、N個のGCoe(Loi,aoi,boi,pe)とGCce(Lci,aci,bci,pe)のデータ対をもとに、被予測値をGINo(Lo,ao,bo,p)として予測値GCoc(Loc,aoc,boc)を予測する問題に帰結する。したがって、公知の方法または上記先願の方法を用いて算出することができる。
【0117】
次に、補正点算出工程63で、この補正値情報S61および変換対象点S1をもとに、変換対象点についての補正後の点である、図1に示すような変換対象補正点P7の情報S7を算出する。具体的には、変換対象点GINo(Lo,ao,bo)に補正値GCoc(Loc,aoc,boc)を単純に加算すれば、変換対象補正点GCc(Lc,ac,bc)を求めることができる。
【0118】
次に、第2変換点算出最終工程65で、その変換対象補正点情報S7、定点情報S0、図7の極座標変換工程12で得られた出力外郭代表点極座標情報S12r、第1重み係数情報SW1、および出力外郭点算出用パラメータPP2をもとに、図1に示すように、定点P0から変換対象補正点P7に向かう線である補正ラインL5と出力仮想外郭曲面C1との交点である第2変換点P5の情報S5を算出する。
【0119】
ここで、変換対象補正点GCc(Lc,ac,bc)を定点P0を中心とした極座標に変換したものをGCc(rc,θc,φc)とすると、出力外郭代表点極座標はGOUTi(ri,θi,φi),i=1,Noutであるので、補正ラインL5と出力仮想外郭曲面C1との交点である第2変換点P5を算出することは、N個の(θi,φi)とp×riのデータ対をもとに、被予測値を(θc,φc)として予測値(rc)を予測する問題に帰結する。したがって、公知の方法または上記先願の方法を用いて算出することができる。
【0120】
以上の図13の例の第2変換点算出工程によれば、色空間の色相線の視覚的な曲がりを正確に補正し、出力装置の色域の形状に関する問題にも対処できるが、図14に示す例によれば、さらに簡便な方法によって第2変換点P5を算出することができる。
【0121】
図14の例では、まず補正データ準備工程61で、出力外郭曲面情報SC2および入力色空間視覚等色相情報S60をもとに、補正データD1を準備する。
【0122】
この場合の補正データD1は、図2に示すような入力最外郭補正点P8、さらには入力最外郭最適変換点P9を算出するためのものであるとともに、入力色空間全体にわたる離散的色度点に対する補正ベクトルデータであり、出力外郭曲面情報SC2から求めた補正ベクトルデータと、入力色空間視覚等色相情報S60から求めた補正ベクトルデータとを加算することによって、求めることができる。
【0123】
入力色空間視覚等色相情報S60から補正ベクトルデータを求めるには、例えば、ベースラインL1上の色に対して、色相だけをどの程度移動させれば出力外郭点P2と同じ色相に見えるかを、視覚的な等色実験で求めて、その反対のベクトルを設定するという方法を用いればよい。
【0124】
出力外郭曲面情報SC2から補正ベクトルデータを求めるには、例えば、入力色空間視覚等色相情報S60から決めた補正ベクトルデータを用いた後、圧縮前後の色相差、明度差、彩度差に重み付けして加算した値が最小になるという条件で各種圧縮サンプルを作成し、官能検査によって各領域ごとに、その重みの比率の最適値を求め、その最適値の比率から逆算して、ベースラインL1上の色の補正ベクトルデータを求める方法を用いることができる。伸長の場合も同様である。
【0125】
また、両方の補正ベクトルデータを一挙に求める方法として、入力色空間の離散的色度点に対して、出力外郭曲面C2上の最適変換先を官能検査によって求め、その色度から補正ベクトルデータを逆算することもできる。
【0126】
次に、補正値算出工程62で、この補正データD1および入力最外郭点情報S3をもとに、入力最外郭点P3に対する補正値の情報S62を算出する。
【0127】
ここで、入力最外郭点P3をGINo(Lo,ao,bo)、入力最外郭最適変換点P9の算出用の原点および補正データD1をGCoe(Loi,aoi,boi)、GCce(Lci,aci,bci),i=1,Ncとすると、補正値情報S62の算出は、N個のGCoe(Loi,aoi,boi)とGCce(Lci,aci,bci)のデータ対をもとに、被予測値をGINo(Lo,ao,bo)として予測値GCoc(Loc,aoc,boc)を予測する問題に帰結する。したがって、公知の方法または上記先願の方法を用いて算出することができる。
【0128】
次に、補正点算出工程63で、この補正値情報S62および入力最外郭点情報S3をもとに、入力最外郭点P3についての補正後の点である、図2に示すような入力最外郭補正点P8の情報S8を算出する。具体的には、入力最外郭点GINo(Lo,ao,bo)に補正値GCoc(Loc,aoc,boc)を単純に加算すれば、入力最外郭補正点GCc(Lc,ac,bc)を求めることができる。
【0129】
次に、入力最外郭最適変換点算出工程64で、その入力最外郭補正点情報S8、定点情報S0、図7の極座標変換工程12で得られた出力外郭代表点極座標情報S12r、および出力外郭点算出用パラメータPP2から、図2に示すように、定点P0から入力最外郭補正点P8に向かう線である補正ラインL5と出力外郭曲面C2との交点である入力最外郭最適変換点P9、すなわち入力最外郭点P3の最適変換先の情報S9を算出する。
【0130】
ここで、入力最外郭補正点GCc(Lc,ac,bc)を定点P0を中心とした極座標に変換したものをGCc(rc,θc,φc)とすると、出力外郭代表点極座標はGOUTi(ri,θi,φi),i=1,Noutであるので、補正ラインL5と出力外郭曲面C2との交点である入力最外郭最適変換点P9を算出することは、N個の(θi,φi)とriのデータ対をもとに、被予測値を(θc,φc)として予測値(rc)を予測する問題に帰結する。したがって、公知の方法または上記先願の方法を用いて算出することができる。
【0131】
次に、第2変換点算出最終工程65で、その入力最外郭最適変換点情報S9、定点情報S0、および第1重み係数情報SW1をもとに、定点P0と入力最外郭最適変換点P9とを第1重み係数を用いて重み付け平均することによって、図2に示すように、補正ラインL5上の第2変換点P5の情報S5を算出する。
【0132】
ここで、第1重み係数はW1であり、定点P0を中心として入力最外郭最適変換点P9を極座標で表したものがGCc(rc,θc,φc)であるので、この第2変換点情報S5の計算は、GCc(rc×W1,θc,φc)を求めることに相当し、これを定点P0の座標値を用いて直交座標に戻せば、第2変換点情報S5が得られる。
【0133】
(最終変換点算出工程)
図6に示す全体の工程では、最後に、最終変換点算出工程70で、第1変換点情報S4、第2変換点情報S5、および第2重み係数情報SW2をもとに、第1変換点P4と第2変換点P5とを第2重み係数を用いて重み付け平均することによって、変換対象点P1についての最終変換点P6の情報S6を算出する。
【0134】
ここで、第2重み係数はW2であり、第1変換点P4をOUT1(L1,a1,b1),第2変換点P5をOUT2(L2,a2,b2)とすると、最終変換点P6の計算は、OUT0(L1×(1−W2)+L2×W2,a1×(1−W2)+a2×W2,b1×(1−W2)+b2×W2)を求めることに相当する。
【0135】
最終変換点P6は第1変換点P4と第2変換点P5とを結ぶ線分上の点として求められる。図1および図2で、最終変換点曲線C6は、変換対象点P1を出力外郭点P2の方向に徐々に移動させていったときの、定点P0から最終変換点P6の描く軌跡であり、最初は変換対象点P1から出力外郭点P2への線分に沿っているが、徐々に変換対象補正点P7または入力最外郭補正点P8ないし入力最外郭最適変換点P9の方向に方向を変えていく。
【0136】
〔別の画像処理方法〕
図15は、別の画像処理方法を示す。この方法では、色域変換処理部81に対して記憶手段82を設け、その記憶手段82には予め、色空間の各領域ごとに、この例ではCIELAB色空間の各領域ごとに、色相線の視覚的な曲がりを補正するための補正ベクトルを格納しておく。
【0137】
さらに、記憶手段82には、出力装置の色域の最外郭曲面または色域内の閉曲面である出力外郭曲面を示す情報、および入力画像またはその部分領域の色域の最外郭曲面である入力最外郭曲面を示す情報を格納しておく。
【0138】
そして、色域変換処理部81は、記憶手段82に記憶されている出力外郭曲面情報および入力最外郭曲面情報によって出力装置の色域と入力画像の色域とに応じて、入力画像データLi,ai,biを、記憶手段82に記憶されている補正ベクトルを用いて色域変換し、変換後の画像データLo,ao,boを出力する。
【0139】
これによれば、出力装置の色域と入力画像の色域とに応じた最適な色域変換を行うことができるとともに、特に色空間の各領域ごとに色相線の視覚的な曲がりを確実に補正することができる。
【0140】
〔画像処理方法としての第2の実施形態〕
図20は、入力画像またはその部分領域の、ある一点、すなわちある一画素の色座標値を変換対象点P1として、これを仮想変換ラインL3上にあり、かつ、出力装置の色域に適合した色座標値の最終変換点P25に変換する第2の発明の一実施形態を示す。
【0141】
この方法は、補正点算出工程110、変換点算出工程120、および逆補正点算出工程130からなる。
【0142】
ここでは、CIELAB色空間の歪みを考慮して出力装置の色域に合わせた圧縮を行うことを目的とした例を取り上げて説明する。したがって、この例における仮想変換ラインL3は、等色相線となる。
【0143】
(補正点算出工程)
補正点算出工程110は、変換対象点P1と補正データD2を用いて、補正点P21を算出する。
【0144】
この例における補正データD2は、CIELAB色空間に分散する複数の点からL*方向、a*方向、および、b*方向への補正量を持つ3次元ベクトル群とする。
【0145】
図21は、CIELAB色空間の歪みを補正するための補正データD2を構成するある一つの補正ベクトルVを説明する図である。この図は、CIELAB色空間のa*軸とb*軸とによって2次元的に示したものである。
【0146】
この補正ベクトルVの始点Vsが、この補正ベクトルVが対応する変換対象点となる。この補正ベクトルVの終点Veは、色空間の歪みを各軸方向ごとに補正する補正量により決定する。
【0147】
具体的には、始点Vsとこの始点Vsによって一意に決定できる定点P0とを通る等色相で、かつ明度と彩度が一様に変化するような仮想変換ラインL3が存在する場合、この仮想変換ラインL3と基準面C4と呼ぶ閉曲面との交点を基準点P26と定義する。この基準面C4は、任意の点に対応する定点P0からその任意の点に向かう半直線が一度だけ交差するような閉曲面であれば、どんなものでも良い。この例ではこの閉曲面C4として出力外郭曲面C2を用いている。
【0148】
この基準点P26は、色空間の歪みを考慮して始点Vsを基準面上の点に変換する場合に変換される点となる。そこで、この基準点P26と定点P0を通る直線L4上で、かつ始点Vsの彩度と等しい値を持つ点を終点Veとする。このようにして、仮想変換ラインL3から基準面C4を基準とした補正データD2を作成することができる。
【0149】
以上説明したようにして作成した補正データD2の3次元ベクトル群を補間することにより変換対象点P1に対応する、すなわち、変換対象点P1を始点とする補正ベクトルを決定し、変換対象点P1にこの補正ベクトルを加えることにより補正点P21を算出する。
【0150】
(変換点算出工程)
変換点算出工程120は、出力装置の色域に合わせて、補正点算出工程110で算出した補正点P21を定点P0から補正点P21に伸びる半直線上の点に変換する。
【0151】
この例では、第1の実施形態で詳細に説明した入力最外郭点算出工程、出力外郭点算出工程、第1重み係数決定工程により算出した補正点P21に対する第1重み係数W1と出力外郭点P23と定点P0から変換点P24を算出する。ただし、各工程において変換対象点P1を補正点P21で、第1変換点P4を変換点P24で、ベースラインL1を補正ベースラインで、読み替える必要がある。具体的には、P24=P0+W1×(P23−P0)という式で変換点P24を算出する。
【0152】
この例では、原稿に適応的な変換点の算出方法を使用したが、この第2の実施形態においては、補正ベースライン上に変換点が算出されさえすれば、出力装置の色域に合わせた圧縮もしくは伸張の方法はどんな方法を用いても良い。したがって、変換点P24を常に出力外郭点P23にしても良いし、既存の方法を用いても良い。
【0153】
また、出力装置の色域内における補正ベースラインL2と仮想変換ラインL3との差が十分小さい場合には、ここで算出した変換点を最終変換点としてもよい。この場合には、次の逆補正点算出工程を省略することができる。
【0154】
(逆補正点算出工程)
逆補正点算出工程130は、変換点算出工程120で算出した変換点P24に対して、この変換点P24に対応した逆補正データD3を適用することで最終変換点を算出する。
【0155】
この例における逆補正データD3は、CIELAB色空間に分散する複数の点からL*方向、a*方向、および、b*方向への補正量を持つ3次元ベクトル群とする。
【0156】
この逆補正データD3を構成する逆補正ベクトルは、補正データD2に含まれている補正ベクトルの始点と終点とを入れ替えたものと等しい。つまり、補正データD2に含まれる変換対象点Vsに対応する補正ベクトルVがあった場合、逆補正データD3として、変換点Veに対応する逆補正ベクトルV’=−Vを加えることができる。したがって、この例のように異なるデータとしてD2とD3を保持することもできるし、補正データD2により逆補正データD3を代用することもできる。
【0157】
このようにして、補正データD2もしくは逆補正データD3から補間もしくは予測処理により、変換点P24に対応する逆補正ベクトルV’を算出する。そして、変換点P24に逆補正ベクトルV’を加えることで、最終変換点P25を算出する。
【0158】
この例では、この最終変換点P25が変換対象点P1の適切な変換点であるとしているが、この最終変換点P25を第1の実施形態で説明した第2変換点として、この第2変換点と対応する第1変換点とから最終変換点を算出するように構成することもできる。
【0159】
以上、説明した方法によれば、仮想変換ラインL3上の変換対象点P1を、やはり仮想変換ラインL3上の最終変換点P25に正確に変換することができる。この例において、仮想変換ラインは等色相線であるとしているので、変換対象点P1の色相を保存したまま、最終変換点P25を算出することができる。
【0160】
この例では、仮想変換ラインは等色相線であると仮定して説明したが、この発明はこれに限定する物ではなく、例えば、記憶色などのより好ましい色に近づけるための仮想変換ラインやこれらの合成による仮想変換ラインを用いることもできる。
【0161】
〔係数の生成と画像処理装置としての実施形態〕
図1〜図14、図18〜図21に示して上述した画像処理方法では、入力画像またはその部分領域の個々の画素値を変換対象点として最終変換点の画素値を一つずつ求め、入力画像またはその部分領域の全体を色域変換することも可能であるが、処理に時間がかかり、実用的でない。
【0162】
そこで、この発明では、さらに、上述した画像処理方法を用いて色域変換のための係数を生成し、その生成した係数を画像処理装置に搭載して、入力画像またはその部分領域を高速かつ簡便に色域変換できるようにする。
【0163】
(第1の例)
図16は、この発明の画像処理装置の一例を示す。この例は、3次元テーブルと補間演算部からなる3次元テーブル補間演算部91と4個の1次元テーブル92y,92m,92c,92kとによって、入力画像を色域変換してカラープリンタ93に出力する場合である。
【0164】
3次元テーブルに格納する全ての格子点データは、それぞれの格子点に対応する入力値を上記の変換対象点とすることによって、上記の最終変換点として生成し、さらに出力装置に依存の、この例ではカラープリンタ93に依存の色空間に変換する。
【0165】
出力装置に依存の色空間に変換するには、この例では入力の3次元空間から出力の4次元空間に変換するので、墨版生成の方法を決めるなど、自由度を一つ落とす必要がある。
【0166】
また、格子点には入力画像の色域の最外郭の外側に位置する点が含まれ、最終変換点として得られたデータが全て出力装置の色域内となるわけではないので、外挿能力の高い方法を用いる必要があるが、これについては、例えば、上記先願の方法を用いることができる。
【0167】
得られた最終変換点データが全て出力装置の色域に収まるわけではないという点は、入力画像の色域外の変換対象点に対しても外挿できるという、この発明の大きな特長であり、これによって、過度に不必要な色域圧縮を回避することができる。
【0168】
特に、パラメータの選択によって張り付けを行う場合でも、この外挿の利点を生かして、出力装置の色域外郭の少し外側の曲面、例えば、YMCK%が−10%から110%に相当する色域範囲を、仮想出力装置の色域外郭と想定して、この発明の方法を格子点データ生成に用いることによって、実際の出力装置の色域内は忠実に再現されるので、過度に不必要な色域圧縮を回避することができる。
【0169】
このように上述した方法によって最終変換点として得られたデータを、格子点データとして3次元テーブル補間演算部91の3次元テーブルに格納したら、次のステップとして、1次元テーブル92y,92m,92c,92kの入出力関係を設定する。
【0170】
この際に必要なことは、最終変換点が全て出力装置の色域に収まるわけではないので、すなわち、これら1次元テーブルの入力値は必ずしも0%から100%の間ではないので、入力のレンジを出力のレンジより広めにとっておくことと、出力のレンジは出力装置の色域内に必ず収まるようにすることである。
【0171】
入力レンジをどの程度広めにとればよいかは、計算誤差の程度、入力色域のスムージングの程度によって変わるが、例えば、入力レンジを−10%から110%とし、0%以下の入力値に対する出力値は0%に、100%以上の入力値に対する出力値は100%に、その間は入力値と出力値を同じにするような設定にすればよい。なお、実際のカラープリンタには経時変化があるので、この1次元テーブルの設定により経時変化を吸収するようにすることも可能である。
【0172】
以後は、画像処理装置として動作させればよい。この場合、入力画像またはその部分領域のデータ、この例ではL*’a*’b*’データの上位ビットによって3次元テーブル補間演算部91の3次元テーブルが索引されて、3次元テーブルから格子点データが読み出され、その読み出された格子点データが補間演算部において入力L*’a*’b*’データの下位ビットによって補間演算されて、3次元テーブル補間演算部91から、出力装置の色域にほぼ適合した、出力装置に依存の色空間データ、この例ではY’M’C’K’%が出力される。
【0173】
補間方法としては、単位立方体を6つの3角錐に分割して補間演算する方法、単位立方体を2つの3角柱に分割して補間演算する方法、単位立方体にそのまま補間を行う方法などが知られているが、いずれを用いてもよい。
【0174】
3次元テーブル補間演算部91からの、この例ではY’M’C’K’%は、1次元テーブル92y,92m,92c,92kによって、最終的に出力装置の色域内に収まる、出力装置に依存の色空間データ、この例ではYMCK%に変換される。
【0175】
そして、このYMCK%がカラープリンタ93に出力され、結果としてのプリント画像の色、この例ではL*’a*’b*’が出力される。
【0176】
入力画像が領域分割された部分領域であって、部分領域ごとに色処理内容を変える場合には、処理後の部分領域データをカラープリンタ93が有するページメモリに書き込み、さらに次の部分領域につき、3次元テーブル補間演算部91の格子点データを変えた上で処理をし、全ての部分領域につき処理を終了したら最終的にプリント出力する。
【0177】
入力色空間はCIELABに限らず、RGB,XYZ,YIQなどの他の色空間でも、適用することができる。また、カラープリンタに限らず、カラーディスプレイでも、1次元テーブルが3つでよい点、および上述した出力装置の色域の設定の注意点を除けば、カラープリンタの場合と同様に適用することができる。
【0178】
(第2の例)
図17は、この発明の画像処理装置の他の例を示す。この例は、マトリックスマスキング部95と1次元テーブル96r,96g,96bとによって、入力画像を色域変換してカラーディスプレイ97に出力する場合で、マトリックスマスキング部95には演算処理の係数を設定する。
【0179】
そのため、最初に、入力画像またはその部分領域の色域内の全ての格子点を入力の格子点として想定し、それに対応する入力値を変換対象点として、上述した方法によって最終変換点を算出し、その結果を出力装置に依存の色空間に変換したものを出力の格子点データとして、入力の格子点データと出力の格子点データから、最小2乗法を用いて係数を設定する。
【0180】
出力装置に依存の色空間に変換するには、計算誤差や、上述した入力色域のスムージングのために、最終変換点として得られたデータが全て出力装置の色域内に収まるわけではないので、外挿能力の高い方法を用いる必要があり、例えば、上記先願の方法を用いることができる。
【0181】
次に、1次元テーブル96r,96g,96bの入出力関係を設定する。この際に必要なことは、最終変換点が全て出力装置の色域に収まるわけではないので、すなわち、これら1次元テーブルの入力値は必ずしも0から255の間ではないので、入力のレンジを出力のレンジより広めにとっておくことと、出力のレンジは出力装置の色域内に必ず収まるようにすることである。
【0182】
入力レンジをどの程度広めにとればよいかは、計算誤差の程度、入力色域のスムージングの程度によって変わるが、例えば、入力レンジを−25から280とし、0以下の入力値に対する出力値は0に、255以上の入力値に対する出力値は255に、その間は入力値と出力値を同じにするような設定にすればよい。なお、実際のカラーディスプレイには経時変化があるので、この1次元テーブルの設定により経時変化を吸収するようにすることも可能である。
【0183】
以後は、画像処理装置として動作させればよい。この場合、入力画像またはその部分領域のデータ、この例ではX’Y’Z’データがマトリックスマスキング部95でマトリックス演算処理されて、マトリックスマスキング部95から出力装置の色域にほぼ適合した、出力装置に依存の色空間データ、この例ではR’G’B’が出力される。
【0184】
ここでの演算方法としては、3x3マトリックスのような低い次数の基本的な演算から、高次項やクロスターム項を追加した高い次数の演算まで、さまざまあるが、必要とされる演算精度と演算コストとのバランスを考慮して選択すればよい。
【0185】
マトリックスマスキング部95からの、この例ではR’G’B’データは、1次元テーブル96r,96g,96bによって、最終的に出力装置の色域内に収まる、出力装置に依存の色空間データ、この例ではRGBデータに変換される。
【0186】
そして、このRGBデータがカラーディスプレイ97に出力され、結果としてのディスプレイ表示色、この例ではL*’a*’b*’が出力される。
【0187】
入力画像が領域分割された部分領域であって、部分領域ごとに色処理内容を変える場合には、処理後の部分領域データをカラーディスプレイ97が有するページメモリに書き込み、さらに次の部分領域につき、マトリックスマスキング部95の係数を変えた上で処理をし、全ての部分領域につき処理を終了したら最終的にディスプレイ表示する。
【0188】
入力色空間はXYZに限らず、RGB,CIELAB,YIQなどの他の色空間でも、適用することができる。また、カラーディスプレイに限らず、カラープリンタでも、マトリックスマスキング部95に墨版生成の機能が追加される点、1次元テーブルが4つになる点、および上述した出力装置の色域の設定の注意点の差を除けば、カラーディスプレイの場合と同様に適用することができる。
【0189】
【発明の効果】
この発明によれば、以下のような効果が得られる。
【0190】
(1)入力画像の分布に依存して、色域圧縮の必要な領域のみを色域圧縮することができる。したがって、最小限の彩度低下で済み、原稿との色差が小さくなる。
【0191】
(2)色域圧縮の方向を、各領域ごとに連続的に調整することができる。したがって、入力色空間の色相線の曲がりや出力装置の色域の形状に対応した最適な圧縮方向を選択することができる。
【0192】
(3)色域圧縮の量を、張り付けも含めて連続的に調整することができる。したがって、ユーザーの好みによってパラメータを変えるだけで、さまざまな圧縮または伸長を選択することができる。
【0193】
(4)多次元DLUT補間演算型の色変換器によって色域圧縮する場合に、特に張り付け時の過度に不必要な色域圧縮を避けることができる。したがって、出力装置の色域内での色差や疑似輪郭の発生を防止することができる。
【図面の簡単な説明】
【図1】第1の発明の画像処理方法の説明に供する図である。
【図2】第1の発明の画像処理方法の説明に供する図である。
【図3】定点の設定例を示す図である。
【図4】定点の設定例を示す図である。
【図5】出力外郭曲面の設定例を示す図である。
【図6】この発明の画像処理方法の第1の実施形態を示す図である。
【図7】出力外郭点算出工程の例を示す図である。
【図8】入力最外郭点算出工程の例を示す図である。
【図9】入力最外郭点算出工程の例を示す図である。
【図10】第1重み係数の決定に用いる関数形状の例を示す図である。
【図11】第1重み係数の決定に用いる関数形状の例を示す図である。
【図12】第2重み係数の決定に用いる関数形状の例を示す図である。
【図13】第2変換点算出工程の例を示す図である。
【図14】第2変換点算出工程の例を示す図である。
【図15】 別の画像処理方法を示す図である。
【図16】この発明の画像処理装置の第1の実施形態を示す図である。
【図17】この発明の画像処理装置の第2の実施形態を示す図である。
【図18】 第2の発明の画像処理方法の説明に供する図である。
【図19】 第2の発明の画像処理方法の説明に供する図である。
【図20】 この発明の画像処理方法の第2の実施形態を示す図である。
【図21】 第2の発明の画像処理方法における補正データを説明する図である。
【符号の説明】
P0 定点
P1 変換対象点
P2 出力外郭点
P3 入力最外郭点
P4 第1変換点
P5 第2変換点
P6 最終変換点
P21 補正点
P22 入力最外郭点
P23 出力外郭点
P24 変換点
P25 最終変換点
P26 補正点
C2 出力外郭曲面
C3 入力最外郭曲面
C4 基準面
L1 ベースライン
L2 補正ベースライン
L3 仮想変換ライン
L4 変換ライン
L5 補正ライン
D1 補正データ
D2 補正データ
D3 逆補正データ[0001]
BACKGROUND OF THE INVENTION
The present invention relates to an image processing method and an image processing apparatus for compressing or expanding a color gamut in accordance with a color gamut of a color image output device such as a color printer or a color display.
[0002]
[Prior art]
A color image output device such as a color printer or a color display cannot reproduce all colors that can be perceived by humans, and can reproduce only a limited range of colors called a color gamut (color reproduction range, gamut). On the other hand, since there is no limitation on the range that can be represented by image data in a color input image, there is a possibility that a color outside the color gamut of the output device is input as the input image. A process of converting into the color gamut of the output device, that is, a process of compressing the color gamut (color expression range) of the input image into the color gamut of the output device is required.
[0003]
On the other hand, when the input image is included in the color gamut of the output device, the input image can be made to be a higher quality image by effectively using the color gamut of the output device, for example, by increasing the saturation. It is also possible to perform a process called color gamut expansion to convert to.
[0004]
As conventional techniques relating to color gamut compression, three methods described in the International Color Consosium Format proposed by the International Color Consosium, Perceptual, Saturation, and Colorimetric are well known.
[0005]
Perceptual changes not only the color outside the color gamut of the output device but also the color within the color gamut at a certain ratio while preserving the hue, and compresses the color gamut toward a fixed point on the gray axis within the color gamut of the output device. It is a method to do.
[0006]
Saturation is a method of pasting the output device color gamut outline to a fixed point on the gray axis in the output device color gamut while keeping the hue only for colors outside the output device color gamut. In this method, only the color outside the device gamut is pasted to the color gamut outline of the output device toward the gray axis in the color gamut of the output device while preserving brightness and hue.
[0007]
[Problems to be solved by the invention]
However, Perceptual compresses the input image at a constant rate regardless of the hue and lightness of the input image. Therefore, there is a problem that the image is compressed to a hue or lightness region that does not require compression.
[0008]
Saturation and Colorimetric also paste and compress colors outside the output device's color gamut into the output device's color gamut outline regardless of the hue and brightness of the input image. When a color similar to the color after conversion into the color gamut outline is present in the input image of the original image within the color gamut of the output device, the discrimination between the two colors deteriorates and the output device When there is a gradation outside the color gamut, there is a problem that the gradation may be lost by these processes.
[0009]
Furthermore, these Saturations or Colorimetrics are indexed into a multi-dimensional DLUT (Direct Lookup Table) using the upper bits of the input image data as addresses, and the read grid point data is interpolated using the lower bits of the input image data. In the case where the output image data is obtained by a multi-dimensional DLUT interpolation type color converter, the grid point data outside the color gamut of the output device is pasted to the color gamut contour of the output device. If determined, there is a problem that colors in the color gamut close to the color gamut outline of the output device are unnecessarily compressed.
[0010]
To deal with these problems, (1) a method of selecting a conversion method considered most preferable from the above three types depending on the type of document such as a photograph or a graph used in business, (2) A method of counting the number of pixels in and out of the color gamut of the output device in the input image and selecting a conversion method according to the ratio, as shown in Japanese Patent No. 162218, (3) A method has been proposed in which the number of pixels in and out of the color gamut of the output device in the input image is counted as shown in Japanese Patent No. 274997 and the compression amount is continuously changed according to the ratio. .
[0011]
However, these methods essentially use the above-described Perceptual, Saturation, or Colorimetric, and thus cannot fundamentally solve the above-described problem.
[0012]
Further, Japanese Patent Laid-Open No. 7-203234 discloses that a uniform color space is divided into unit areas, the number of pixels included in the input image is obtained for each unit area, and is outside the color gamut (color reproduction range) of the output device. For the unit area, a method of mapping to another unit area having the same brightness according to the number of pixels is shown.
[0013]
However, since this method performs color mapping only for unit regions outside the color gamut of the output device, for example, for gradations that continue from the color gamut of the output device to the color gamut, the color of the region outside the color gamut of the output device There is a problem in that the color continuity is lost by the conversion, and a desired gradation cannot be expressed.
[0014]
In addition to the above problems, as a color gamut compression method corresponding to the visual curve of the hue line of the color space, reported in Color Forum Japan '95 Proceedings 4-1 (p.45-48), Japanese Patent Application Laid-Open No. 7-203234 discloses that processing is performed by dividing a color gamut into small blocks.
[0015]
However, this method has a problem that it cannot cope with a visual curve of a hue line in a small block and cannot ensure continuity between blocks.
[0016]
In view of the above, an object of the present invention is to realize the following points. (1) Depending on the distribution of the input image, only the area that requires color gamut compression can be color gamut compressed. (2) The direction of color gamut compression can be continuously adjusted for each region. (3) The amount of color gamut compression can be continuously adjusted including pasting. (4) When color gamut compression is performed by a multi-dimensional DLUT interpolation type color converter, it is possible to avoid excessively unnecessary color gamut compression especially during pasting.
[0018]
[Means for Solving the Problems]
The image processing method of the first invention is
In an image processing method for converting a color input image or a partial area thereof according to a color gamut of a color image output device,
A base line, which is a straight line connecting the fixed point in the color gamut of the color image output apparatus uniquely determined from the conversion target point and the conversion target point, and an outermost curved surface of the color gamut of the color image output apparatus or a closed in the color gamut. An output contour point calculating step for obtaining an output contour point that is an intersection with the output contour surface that is a curved surface;
An input outermost point calculation step for obtaining an input outermost point that is an intersection of the baseline and the input outermost curved surface that is the outermost curved surface of the color gamut of the color input image or the partial region;
A weighting factor determination step for determining a first weighting factor and a second weighting factor from the output contour point and the input outermost contour point;
A first conversion point calculating step of calculating a first conversion point by compressing or expanding the conversion target point to a point on the baseline using the fixed point, the output outline point, and the first weighting factor;
A correction point calculating step of correcting the conversion target point with correction data corresponding to the conversion target point and calculating a correction point;
Second conversion point calculation for calculating a second conversion point by compressing or expanding the correction point to a point on a correction line, which is a straight line connecting the correction point and the fixed point, using the first weighting factor. Process,
Using the first conversion point, the second conversion point, and the second weighting factor, a point on a line segment connecting the first conversion point and the second conversion point is converted into a final conversion for the conversion target point. A final conversion point calculation step of calculating as points,
The first weighting factor is a one-variable function calculation with a ratio R1 between the distance from the fixed point to the conversion target point and the distance from the fixed point to the input outermost point as an input, and the first weighting factor as an output. The shape of the one-variable function is determined when the ratio R2 between the distance from the fixed point to the output contour point and the distance from the fixed point to the input outermost point is 1 or less. The coordinates of the conversion target point and the first conversion point are the same for the first parameter that is the first weighting coefficient when R2 is the input R1 and up to what percentage of the distance from the fixed point to the output outline point. A third parameter that is a first weighting coefficient when the input R1 is 1, and when the ratio R2 is greater than 1, The second parameter Of, determined from at least two parameters,
The second weighting factor is a one-variable function calculation with a ratio R1 between the distance from the fixed point to the conversion target point and the distance from the fixed point to the input outermost point as an input, and the second weighting factor as an output. The shape of the one-variable function is set so that the coordinates of the first transformation point and the final transformation point are the same up to some percent of the distance from the fixed point to the input outermost contour point. And a fifth parameter for determining what percentage or more of the distance from the fixed point to the input outermost point is set so that the coordinates of the second conversion point and the final conversion point are the same. And determined from at least two parameters,
It is characterized by that.
[0019]
The image processing method of the second invention is
In an image processing method for converting a color input image or a partial area thereof according to a color gamut of a color image output device,
A correction point calculating step of correcting the conversion target point with correction data corresponding to the conversion target point and calculating a correction point;
A correction base line that is a straight line connecting a fixed point in the color gamut of the color image output apparatus and the correction point, which is uniquely determined from the conversion target point, and an outermost curved surface of the color gamut of the color image output apparatus or in the color gamut An output contour point calculating step for obtaining an output contour point that is an intersection with the output contour surface that is a closed curved surface;
An input outermost point calculation step for obtaining an input outermost point that is an intersection between the correction baseline and the input outermost curved surface that is the outermost curved surface of the color gamut of the color input image or the partial region;
A weighting factor determination step of determining a first weighting factor that is a ratio of compressing or expanding the correction point from the output outermost point and the input outermost point;
A first conversion point calculating step of calculating a first conversion point by compressing or expanding the correction point to a point on the correction baseline using the fixed point, the output contour point, and the first weighting factor;
A final conversion point calculating step of correcting the first conversion point with reverse correction data corresponding to the first conversion point and calculating a final conversion point for the conversion target point;
The first weighting factor is a one-variable function calculation with a ratio R1 between the distance from the fixed point to the conversion target point and the distance from the fixed point to the input outermost point as an input, and the first weighting factor as an output. The shape of the one-variable function is determined when the ratio R2 between the distance from the fixed point to the output contour point and the distance from the fixed point to the input outermost point is 1 or less. The coordinates of the conversion target point and the first conversion point are the same for the first parameter that is the first weighting coefficient when R2 is the input R1 and up to what percentage of the distance from the fixed point to the output outline point. A third parameter that is a first weighting coefficient when the input R1 is 1, and when the ratio R2 is greater than 1, The second parameter Of determining at least two parameters,
It is characterized by that.
[0021]
[Action]
Image processing method according to the first invention Then, the conversion target point is compressed or expanded on the base line (a straight line connecting the fixed point and the conversion target point) to obtain the first conversion point, and the correction point calculated from the conversion target point based on the correction data is the correction line (fixed point). The second conversion point is obtained by compressing or expanding on the straight line connecting the correction point and the correction point, The final transformation point as a point on the line segment connecting the first transformation point and the second transformation point Therefore, the color gamut conversion as shown in the above (1) to (4) can be realized. .
[0022]
In the image processing method according to the second aspect of the present invention, the correction point calculated by the correction data from the conversion target point is compressed or expanded on the correction baseline (a straight line connecting the fixed point and the correction point), and First Calculate the conversion point First The transformation point First Since the final conversion point is calculated by correcting with the reverse correction data corresponding to the conversion point, the final conversion point can be obtained on an ideal conversion curve passing through the conversion target point and the fixed point. Similar to the image processing method, color gamut conversion as shown in the above (1) to (4) can be realized.
[0025]
DETAILED DESCRIPTION OF THE INVENTION
In the CIELAB (L * a * b *) color space, a color input image (hereinafter simply referred to as an input image) or a partial area thereof is color gamut compressed or color gamut expanded as an example. Show. However, the present invention can also be applied to other color spaces such as CIE LUV (L * u * v *), YIQ, YCbCr, XYZ, and RGB.
[0026]
[Outline of the Method of the Invention]
An outline of the method of the first invention will be described with reference to FIG. 1 or FIG. FIGS. 1 and 2 show the CIELAB color space two-dimensionally for the sake of convenience with the L * axis that is the brightness axis and the C * axis that is the saturation axis.
[0027]
1 and 2, a point P0 is a fixed point in the color gamut of a color image output device (hereinafter simply referred to as an output device) and is set on the gray axis, that is, on the L * axis in the CIELAB color space, as will be described later. To do. Hereinafter, the fixed point is a fixed point P0 in the color gamut of the output device.
[0028]
The point P1 is a conversion target point represented by a certain color coordinate value of the input image or its partial area. The line L1 is a line from the fixed point P0 toward the conversion target point P1, and is defined as a base line.
[0029]
The curved surface C2 is an outermost curved surface in the color gamut of the output device or a closed curved surface in the color gamut of the output device set as described later, and is defined as an output outer curved surface. The curved surface C3 is the outermost curved surface of the color gamut of the input image or its partial region, and is defined as the input outermost curved surface. FIGS. 1 and 2 show the case where the input outermost curved surface C3 is outside the output outer curved surface C2 and the transformation target point P1 is compression-transformed. Conversely, the output outer curved surface C2 is outside the input outermost curved surface C3. Thus, the method of the present invention can also be used when the transformation target point P1 is extended and transformed.
[0030]
Point P2 is defined as an output contour point at the intersection of the base line L1 and the output contour surface C2. Point P3 is defined as the input outermost point at the intersection of the base line L1 and the input outermost surface C3.
[0031]
The point P4 is a first conversion point, and is obtained by weighted averaging the fixed point P0 and the output contour point P2 using the first weighting factor. Therefore, the first conversion point P4 is a point on the baseline L1. The point P5 is a second conversion point and is obtained using correction data for correcting the compression direction or the expansion direction and the first weighting factor. The line L5 is a line from the fixed point P0 toward the second conversion point P5 and is defined as a correction line.
[0032]
In FIG. 1 and FIG. 2, the correction line L5 is different from the base line L1, but if the correction data is zero, the correction line L5 coincides with the base line L1. The correction data is set and prepared as discrete data in a color space, for example, as shown as correction data D1 in FIGS.
[0033]
The point P6 is the final conversion point for the conversion target point P1, and is obtained by weighted averaging the first conversion point P4 and the second conversion point P5 using the second weighting factor. Therefore, the final conversion point P6 is a point on the line segment connecting the first conversion point P4 and the second conversion point P5.
[0034]
Using FIG. 18 and FIG. Second The outline of the method of the present invention will be described. FIG. 18 shows the CIELAB color space two-dimensionally with the L * axis as the lightness axis and the C * axis as the saturation axis, and FIG. 19 shows the CIELAB color space with the a * axis and b *. It is shown two-dimensionally with an axis.
[0035]
As already described in the first invention, also in FIGS. 18 and 19, the point P0, the point P1, the curved surface C2, and the curved surface C3 are a fixed point, a conversion target point, an output outer curved surface, and an input outermost curved surface, respectively. .
[0036]
The point P21 is a point calculated by applying correction data corresponding to the conversion target point P1 to the conversion target point P1, and is defined as a correction point. The correction data is prepared as discrete vector data in the color space, and correction data corresponding to a necessary point can be calculated by interpolation or the like.
[0037]
The straight line L2 is a straight line connecting the correction point P21 and the fixed point P0, and is defined as a correction base line.
[0038]
A curve L3 is a curve that passes through the conversion target point P1 and the fixed point P0, and is defined as a virtual conversion line. The correction data is calculated based on this virtual conversion line L3. The virtual conversion line L3 is determined according to the purpose. For example, when the purpose is to correct the bending of the hue line, the equal hue line passing through the conversion target point P1 and the fixed point P0 is the virtual conversion line. It becomes.
[0039]
Point P22 is defined as the input outermost point at the intersection of the corrected baseline L2 and the input outermost curved surface C3. A point P23 is defined as an output outline point at the intersection of the corrected baseline L2 and the output outline surface C2.
[0040]
Point P24 is a point where compression or expansion in accordance with the color gamut of the output device is performed on correction point P21 along correction base line L2, and is defined as a conversion point. The compression or expansion processing according to the color gamut of the output device may be performed using a first weighting factor determined from the fixed point P0, the input outermost contour point P22, the output outer contour point P23, and the correction point P21. You may carry out by the method of.
[0041]
The point P25 is a final conversion point for the conversion target point P1, and is calculated by applying reverse correction data corresponding to the conversion point P24 to the conversion point P24. This reverse correction data is obtained by switching the start point and end point of a vector of correction data.
[0042]
Other points, curved surfaces, and curves shown in FIGS. 1, 2, 18, and 19 will be described later.
[0043]
[Set fixed point]
The fixed point P0 is a point that changes continuously as a fixed point on the gray axis in the color gamut of the output device, or as a function such as the brightness and saturation of the conversion target point P1, or the brightness of the conversion target point P1. It is set as a point that is discretely different depending on the saturation and the like.
[0044]
FIG. 3 shows an example in which the fixed point P0 continuously changes as a function such as brightness and saturation of the conversion target point P1. This shows the relationship between the angle Φ and the L * value of the fixed point P0, where Φ is the angle formed by the vector from the conversion target point P1 to the fixed point P0 with respect to the a * b * plane. When the fixed point P0 is defined, the relationship between the fixed point P0 and the conversion target point P1 is, for example, as shown in FIG.
[0045]
In this way, when the fixed point P0 is a point that changes continuously as a function of the brightness and saturation of the conversion target point P1, or a point that is discretely different depending on the brightness and saturation of the conversion target point P1, etc. The base line L1 from the fixed point P0 to the conversion target point P1 needs to be prevented from intersecting in the entire area in the color space as shown in FIG. 4, and when this condition is not satisfied, the base line L1 is compressed or expanded. May cause gradation reversal.
[0046]
When the fixed point P0 is a function of only the lightness of the conversion target point P1, if the angle Φ is 0 degree, the gradation is not reversed, but if the angle Φ is other than 0 degrees, the gradation is reversed. When the brightness of the conversion target point P1 is outside the color gamut of the output device, it is difficult to set the fixed point P0 within the color gamut of the output device. The fixed point P0 is set in consideration of these points.
[0047]
[Output contour surface]
The output outer curved surface C2 may normally be the outermost curved surface of the color gamut of the output device. However, when the output device is a display or the like and the white point of the input image is different from the white point of the output device, it may be desirable to set the closed surface in the color gamut of the output device as the output contour surface C2. .
[0048]
FIG. 5 schematically shows an example of the relationship between the color gamut of the input image or its partial region and the color gamut of the output device, where the curved surface C20 is the outermost curved surface of the color gamut of the output device, and the curved surface C3 is the input outermost curved surface. That is, the outermost curved surface of the color gamut of the input image or its partial area.
[0049]
In this example, when the white point P1w of the input image or its partial region is converted into the compression destination P6w on the gray axis in the color gamut of the output device, the lightness higher than that of the white point compression destination P6w in the color gamut of the output device. Therefore, depending on the compression method, the other color of the input image or its partial area may be converted to a color P6o having a higher brightness than the white point compression destination P6w, giving an unnatural impression.
[0050]
In such a case, a curved surface including only a lightness area lower than the white point compression destination P6w may be set as the closed curved surface in the color gamut of the output device, and this may be used as the output contour surface C2. For example, in FIG. 5, as the saturation increases from the white point compression destination P6w as a starting point to the closed curved surface C21 extending horizontally so that the lightness is the same as the white point compression destination P6w, or from the white point compression destination P6w as the starting point, A closed curved surface C22 whose brightness is gradually decreased is set as a closed curved surface in the color gamut of the output device, and is defined as an output contour curved surface C2.
[0051]
When the saturation is increased, it is visually perceived brighter than gray of the same brightness, but if the latter closed curved surface C22 is the output contour surface C2, it is possible to prevent such a visual phenomenon from giving an unnatural impression. can do.
[0052]
As a countermeasure against such a visual defect, it is conceivable to perform color gamut conversion after uniformly converting only the lightness for all colors of the input image or its partial area. However, when not only the color gamut compression but also the color gamut expansion occurs, the same problem occurs at the time of expansion. Therefore, even when the brightness is converted in advance, a closed surface such as the above-described closed surface C22 is used as the output contour surface C2. It is desirable to set.
[0053]
[First Embodiment as Image Processing Method]
FIG. 6 shows a color coordinate value of a certain point, that is, a certain pixel of an input image or a partial area thereof as a conversion target point P1, and converts this to a final conversion point P6 of a color coordinate value suitable for the color gamut of the output device. 1 shows an embodiment of the first invention.
[0054]
The method of FIG. 6 can be realized on a computer by a processing program, but some steps can also be performed by hardware. This method generally includes an output contour
[0055]
(Output outline point calculation process)
In the output contour
[0056]
FIG. 7 shows a specific example of the output contour
[0057]
The output contour surface information SC2 here is a discrete data pair of the relationship between the input signal dependent on the output device and the output color, and the output contour surface C2 is a closed surface in the color gamut of the output device. Is information on the shape.
[0058]
As the discrete data pairs, for example, when the output device is a printer, various YMC (K)% combination data, color LAB data when the combination is printed, and when the output device is a display In other words, data of various combinations of RGB and LAB data or XYZ data of colors displayed by the combination may be prepared.
[0059]
Based on these data, the predicted value is set to a point on the outermost curved surface of the color gamut of the output device, and the color that is the predicted value is predicted.
[0060]
Setting the predicted value to a point on the outermost curved surface of the color gamut of the output device means that, for example, when the output device is a three-color printer, a combination of M% and C% when Y% is zero This corresponds to preparing data of a combination of C% and Y% when M% is zero, and a combination of Y% and M% when C% is zero.
[0061]
Further, when the output contour surface C2 is a closed curved surface in the color gamut of the output device, the color data on the outermost contour surface of the color gamut of the output device is corrected using the information on the shape, and the output contour surface C2 is corrected. The representative point information is S12.
[0062]
The prediction method here is to predict the color output from an input signal dependent on an arbitrary output device based on the discrete data pair of the relationship between the input signal dependent on the output device and the output color. A known method can be used. Furthermore, if the method proposed in Japanese Patent Application No. 9-4949 (filed on Jan. 14, 1997) is used, the prediction can be made with high accuracy.
[0063]
In the method of Japanese Patent Application No. 9-4949 (hereinafter referred to as the prior application), the relationship between the input signal and the output signal is linked by a linear determinant including a constant term, and this determinant is obtained from a plurality of actual input signal data. The weighted coefficient, the determinant coefficient, and the predicted value are successively applied so that the sum of squares of the weighted Euclidean distance between the output predicted value obtained using the output data and the corresponding actual output signal data is minimized. It is determined by an approximation method.
[0064]
In the output outline
[0065]
Next, in the output outline point calculation
[0066]
Here, assuming that the transformation target point polar coordinates are O (ro, θo, φo) and the output contour representative point polar coordinates are GOUTi (ri, θi, φi), i = 1, Nout, the base line L1 and the output contour surface C2 Is calculated as a predicted value (ro) based on N (θi, φi) and ri data pairs, with the predicted value being (θo, φo). Therefore, it can be calculated using a known method or the method of the prior application.
[0067]
In this case, since it is polar coordinates, pay attention to the continuity with respect to θ and φ, for example, that 0 ° and 360 ° of θ are continuous, and calculate the output contour point according to the number of output contour representative points P12. The parameter PP2 may be determined.
[0068]
(Input outermost point calculation process)
In the entire process shown in FIG. 6, next, in the input outermost
[0069]
As the pixel value information S20 of the input image or its partial area, the individual pixel value itself of the input image or its partial area may be used. However, the color gamut of the input image or its partial area is set in advance, for example, NTSCRGB color gamut. , An SRGB color gamut, or a color gamut represented by a chromaticity point of YMCBRGWK, etc., discrete chromaticity information located in the outermost part of the assumed color gamut may be used.
[0070]
In the case of using discrete chromaticity information located in the outermost portion of the color gamut assumed in advance, the input outermost contour representative point candidate selection step and the input outermost contour representative point selection step described below can be omitted. .
[0071]
FIGS. 8 and 9 show specific examples of the input outermost contour
[0072]
In the example of FIG. 8, first, in the polar coordinate conversion step 22, the pixel value information S20 of the input image or its partial area is converted into polar coordinates centered on the fixed point P0 based on the fixed point information S0, and the pixel value polar coordinates are converted. Information S20r is obtained. At this time, similarly, based on the fixed point information S0, the conversion target point information S1 is converted into polar coordinates centered on the fixed point P0 to obtain the conversion target point polar coordinate information S1r. Since it has already been calculated in the polar coordinate
[0073]
Next, in the input outermost contour representative
[0074]
Specifically, if the pixel value polar coordinates of the input image or its partial region are INi (ri, θi, φi), i = 1, Nin, the (θ, φ) plane is divided into meshes and INi (ri, θi, .phi.i) is distributed, data having the maximum (r) is searched for in each mesh, and input outermost contour representative points GINi (ri, .theta.i, .phi.i), i = 1, Nin may be used.
[0075]
Next, in an input outermost point calculation
[0076]
Here, since the transformation target point polar coordinates are O (ro, θo, φo) and the input outermost contour representative point P13 is GINi (ri, θi, φi), i = 1, Nin, the base line L1 and the input outermost contour surface. Calculating the intersection with C3 results in the problem of predicting the predicted value (ro) based on N (θi, φi) and ri data pairs, with the predicted value being (θo, φo). . Therefore, it can be calculated using a known method or the method of the prior application.
[0077]
In this case, since it is polar coordinates, it is noted that 0 ° and 360 ° are continuous for θ and φ, and the input outermost point calculation parameter PP3 can be determined according to the number of input outermost representative points P13. That's fine. However, the input outermost curved surface C3, which is the outermost curved surface of the color gamut of the input image or its partial region, may have more unevenness than the case of calculating the output contour point information S2, and in this case, smoothing is performed. The point is to set the input outermost point calculation parameter PP3 so as to enhance the effect.
[0078]
In the example of FIG. 9, first, in the input outermost contour representative point
[0079]
In the case of selecting the input outermost representative point from the input image or the pixel value information S20 of the partial area as in the example of FIG. 8, the processing in the polar coordinate conversion step 22 and the input outermost representative
[0080]
Thereafter, similarly to the example of FIG. 8, the intersection of the base line L1 and the input outermost contour surface C3 is obtained through the polar coordinate transformation step 22, the input outermost contour representative
[0081]
(First weighting factor determination step)
In the entire process shown in FIG. 6, next, in a first weighting
[0082]
In the first weighting
[0083]
FIG. 10 shows one variable when the ratio R2 between the distance from the fixed point to the output outline point and the distance from the fixed point to the input outermost outline point is 1 or less, that is, when compression is performed as shown in FIGS. The shape of the function is shown. The shape R2 is the ratio of the distance from the fixed point to the output contour point and the distance from the fixed point to the input outermost point. The first parameter, which is the first weighting factor W1 when the distance to the outermost contour point is R1, and up to what percentage of the distance from the fixed point to the output contour point, the conversion target point and the first conversion point Are determined from at least two parameters including a second parameter that determines whether the coordinates are set to be the same.
[0084]
When the Y coordinate value of the point Pa in FIG. 10 corresponds to the first parameter and the point Pa is positioned on the linear compression / linear expansion function shape limit L11, that is, coincides with the point Pb, linear compression is performed. When the point Pa is positioned on the faithful reproduction / pasting function shape limit L12, that is, coincides with the point Pc, the conversion target point and the first conversion point are the same point in the output contour surface C2, and the output contour surface C2 When it is pasted and Pa is located between them, an intermediate conversion between them is performed.
[0085]
The Y coordinate value of the point Pd in FIG. 10 corresponds to the second parameter, and a first weight function shape L13 of a broken line connecting the origin, the point Pd, the point Pa, and the point (1.0, 1.0) is formed.
[0086]
In addition to these two parameters, another shape parameter may be set to form the first weight function shape of the broken line in more detail than the shape L13.
[0087]
Next, the first weight function shape L13 of the broken line is smoothed to obtain the first weight function shape L14 of the curve, and finally, the distance from the fixed point to the conversion target point and the distance from the fixed point to the input outermost point The actual value R1i of the ratio R1 is input, and the Y coordinate value W1o of the intersection Pe on the first weight function shape L14 of the curve is output as the first weight coefficient W1 of the final output.
[0088]
As an actual process, the first parameter and the second parameter are input to set a plurality of discrete points on the first weight function shape L13 of the polygonal line, and the X coordinate value and Y coordinate value of these points are set. Based on the data pair, the ratio R1 between the distance from the fixed point to the conversion target point and the distance from the fixed point to the input outermost point is input by the smoothing parameter and the like according to the method of the invention of the prior application. Therefore, it is not necessary to obtain the first weight function shape L14 of the curve, and the first weight is directly obtained from a plurality of discrete points on the first weight function shape L13 of the polygonal line. The coefficient W1 can be obtained.
[0089]
FIG. 11 shows the shape of a one-variable function when the ratio R2 between the distance from the fixed point to the output contour point and the distance from the fixed point to the input outermost contour point is larger than 1, that is, when the extension is performed. Indicates that the third parameter, which is the first weighting factor W1 when the input R1 is 1, and up to what percentage of the distance from the fixed point to the output contour point, the coordinates of the conversion target point and the first conversion point are the same. It is determined from at least two parameters, the above-mentioned second parameter that determines whether or not to set.
[0090]
When the Y coordinate value of the point Pa in FIG. 11 corresponds to the third parameter and the point Pa is located on the linear compression / linear expansion function shape limit L11, that is, coincides with the point Pb, linear expansion is performed. When the point Pa is positioned on the faithful reproduction / paste function shape limit L12, that is, when it coincides with the point Pc, the conversion target point and the first conversion point are the same point, and when Pa is positioned between them, An intermediate conversion between them is performed.
[0091]
The Y coordinate value of the point Pd in FIG. 11 corresponds to the second parameter, and a first weight function shape L13 of a broken line connecting the origin, the point Pd, and the point Pa is formed.
[0092]
In addition to these two parameters, another shape parameter may be set to form the first weight function shape of the broken line in more detail than the shape L13.
[0093]
Next, the first weight function shape L13 of the broken line is smoothed to obtain the first weight function shape L14 of the curve, and finally, the distance from the fixed point to the conversion target point and the distance from the fixed point to the input outermost point The actual value R1i of the ratio R1 is input, and the Y coordinate value W1o of the intersection Pe on the first weight function shape L14 of the curve is output as the first weight coefficient W1 of the final output.
[0094]
As actual processing, the second parameter and the third parameter are input to set a plurality of discrete points on the first weight function shape L13 of the polygonal line, and the X coordinate value and Y coordinate value of these points are set. Based on the data pair, the ratio R1 between the distance from the fixed point to the conversion target point and the distance from the fixed point to the input outermost point is input by the smoothing parameter and the like according to the method of the invention of the prior application. Therefore, it is not necessary to obtain the first weight function shape L14 of the curve, and the first weight is directly obtained from a plurality of discrete points on the first weight function shape L13 of the polygonal line. The coefficient W1 can be obtained.
[0095]
Thus, since the methods of FIGS. 10 and 11 use a method similar to compression and decompression, if there is a restriction such as making the second parameter the same, a certain part of the color space region is compressed, Even if a part is expanded, there is an advantage that compression and expansion can be performed without losing continuity therebetween.
[0096]
(Second weighting factor determination step)
In the entire process shown in FIG. 6, next, in the second weighting
[0097]
In the second weighting
[0098]
FIG. 12 shows the shape of a one-variable function of the second weighting factor W2, and the shape is the coordinates of the first transformation point and the final transformation point up to what percentage of the distance from the fixed point to the input outermost point. Set the fourth parameter that determines whether to be the same, and what percentage of the distance from the fixed point to the input outermost point so that the coordinates of the second conversion point and the final conversion point are the same It is determined from at least two parameters with a fifth parameter that determines.
[0099]
The X coordinate value of the point Pf in FIG. 12 corresponds to the fourth parameter, the X coordinate value of the point Pg corresponds to the fifth parameter, the origin, the point Pf, the point Pg, the point (1.0, 1.0 ) To form a second weighting function shape L15.
[0100]
In addition to these two parameters, another shape parameter may be set to form the second weight function shape of the broken line in more detail than the shape L15.
[0101]
Next, the second weight function shape L15 of the broken line is smoothed to obtain the second weight function shape L16 of the curve, and finally, the distance from the fixed point to the conversion target point and the distance from the fixed point to the input outermost point The actual value R1i of the ratio R1 is input, and the Y coordinate value W2o of the intersection Ph on the second weight function shape L16 of the curve is output as the second weight coefficient W2 of the final output.
[0102]
As an actual process, the fourth parameter and the fifth parameter are input, a plurality of discrete points are set on the second weight function shape L15 of the polygonal line, and the X coordinate value and Y coordinate value of these points are set. Based on the data pair, the ratio R1 between the distance from the fixed point to the conversion target point and the distance from the fixed point to the input outermost point is input by the smoothing parameter and the like according to the method of the invention of the prior application. Therefore, it is not necessary to obtain the second weight function shape L16 of the curve, and the second weight is directly obtained from a plurality of discrete points on the second weight function shape L15 of the broken line. The coefficient W2 can be obtained.
[0103]
(First conversion point calculation step)
In the entire process shown in FIG. 6, the fixed point P0 and the output contour point P2 are then calculated in the first conversion
[0104]
Here, the first weighting factor is W1, and GOUTo (ro, θo, φo) is the output contour point information S2 expressed in polar coordinates with the fixed point P0 as the center. Therefore, the first conversion point information S4 is calculated. , GOUTo (ro × W1, θo, φo) is obtained, and if this is returned to the orthogonal coordinates using the coordinate value of the fixed point P0, the first conversion point information S4 is obtained.
[0105]
(Second conversion point calculation step)
In the entire process shown in FIG. 6, next, in a second conversion
[0106]
The calculation of the second conversion point P5 in the second conversion
[0107]
FIG. 13 shows a specific example of the second conversion
[0108]
As will be described later, when the color coordinate values of the final conversion points for a plurality of conversion target points obtained by the image processing method of the present invention are stored as grid point data for color gamut conversion in a multidimensional conversion table. Effectively uses the entire color gamut of the actual output device by assuming that the curved surface obtained by enlarging the outermost curved surface of the color gamut of the actual output device is the outermost curved surface of the color gamut of the virtual output device. And avoiding excessive unnecessary color gamut compression.
[0109]
In the example of FIG. 13, first, in the correction
[0110]
The correction data D1 in this case is for calculating the second conversion point P5, and is correction vector data for discrete chromaticity points over the entire input color space as shown in FIG. It can be obtained by adding the correction vector data obtained from the information SC2 and the correction vector data obtained from the input color space visual equal hue information S60.
[0111]
In order to obtain correction vector data from the input color space visual equi hue information S60, for example, a plurality of saturations are set for the discrete chromaticity points on the baseline L1, and only the hue is moved to the same extent. Whether or not it looks like a hue is obtained by a visual color matching experiment, and using a ratio between the distance from the fixed point P0 to the conversion target point P1 and the distance from the fixed point P0 to the equal color point of the output contour surface C2, the fixed point A virtual correction point on a line from P0 to the color matching point is obtained, a vector from the conversion target point P1 to the virtual correction point is used as a correction vector, and the set saturation point on the line from the fixed point P0 to the color matching point is a fixed point. What is necessary is just to use the method of preservation | save with the information of what percentage corresponds from P0 to the output external curved surface C2.
[0112]
In order to obtain the correction vector data from the output contour surface information SC2, for example, after using the correction vector data determined from the hue information S60 for visual color space visual equivalence, the hue difference, brightness difference, and saturation difference before and after compression are weighted. Various compression samples are created under the condition that the added value becomes the minimum, and the optimum value of the weight ratio is obtained for each region by the sensory test, and is calculated backward from the ratio of the optimum value on the baseline L1. It is possible to use a method for obtaining correction vector data of colors. The same applies to the extension.
[0113]
Further, as a method for obtaining both correction vector data at once, an optimum conversion destination on the output virtual contour surface C1 is obtained by sensory inspection with respect to discrete chromaticity points over the entire input color space, and a correction vector is obtained from the chromaticity. Data can be calculated backwards.
[0114]
A method of directly using a vector from the conversion target point P1 to the second conversion point P5 on the output virtual contour surface C1 as the correction data D1 is also conceivable. However, from the point of prediction accuracy in the next correction
[0115]
In the example of FIG. 13, next, in a correction
[0116]
Here, the first weighting factor is p, the conversion target point P1 is GINo (Lo, ao, bo, p), the origin for calculating the second conversion point P5 and the correction data D1 are GCoe (Loi, aoi, boi, pe), GCce (Lci, aci, bci, pe), i = 1, Nc, the correction value information S61 is calculated using N GCoe (Loi, aoi, boi, pe) and GCce (Lci, aci, Based on the data pair of bci, pe), the predicted value GCoc (Loc, aoc, boc) is predicted as a predicted value GINo (Lo, ao, bo, p). Therefore, it can be calculated using a known method or the method of the prior application.
[0117]
Next, in the correction
[0118]
Next, in the second conversion point calculation
[0119]
Here, when the conversion target correction point GCc (Lc, ac, bc) is converted into polar coordinates centered on the fixed point P0, GCc (rc, θc, φc), the output outline representative point polar coordinates are GOUTi (ri, θi). , Φi), i = 1, Nout, the calculation of the second transformation point P5 that is the intersection of the correction line L5 and the output virtual contour surface C1 is N (θi, φi) and p × ri. This results in the problem of predicting the predicted value (rc) with the predicted value as (θc, φc) based on the data pair. Therefore, it can be calculated using a known method or the method of the prior application.
[0120]
According to the second conversion point calculation step in the example of FIG. 13 described above, the visual curve of the hue line in the color space can be accurately corrected and the problem relating to the shape of the color gamut of the output device can be dealt with. According to the example shown in (2), the second conversion point P5 can be calculated by a simpler method.
[0121]
In the example of FIG. 14, first, in the correction
[0122]
The correction data D1 in this case is for calculating the input outermost contour correction point P8 as shown in FIG. 2, and further the input outermost contour optimum transformation point P9, and the discrete chromaticity points over the entire input color space. Can be obtained by adding the correction vector data obtained from the output contour surface information SC2 and the correction vector data obtained from the input color space visual equivalent hue information S60.
[0123]
In order to obtain the correction vector data from the hue information S60 such as the visual color space visual equality, for example, how much only the hue is moved with respect to the color on the baseline L1 can be seen as the same hue as the output outline P2. What is necessary is just to use the method of calculating | requiring by the visual color matching experiment and setting the opposite vector.
[0124]
In order to obtain the correction vector data from the output contour surface information SC2, for example, after using the correction vector data determined from the hue information S60 for visual color space visual equivalence, the hue difference, brightness difference, and saturation difference before and after compression are weighted. Various compression samples are created under the condition that the added value becomes the minimum, and the optimum value of the weight ratio is obtained for each region by the sensory test, and is calculated backward from the ratio of the optimum value on the baseline L1. It is possible to use a method for obtaining correction vector data of colors. The same applies to the extension.
[0125]
Further, as a method for obtaining both correction vector data at once, an optimum conversion destination on the output contour surface C2 is obtained by sensory inspection with respect to discrete chromaticity points in the input color space, and correction vector data is obtained from the chromaticity. You can also calculate backwards.
[0126]
Next, in a correction
[0127]
Here, the input outermost contour point P3 is GINo (Lo, ao, bo), the input outermost contour optimum transformation point P9 is calculated and the correction data D1 is GCoe (Loi, aoi, boi), GCce (Lci, aci, bci), i = 1, Nc, the correction value information S62 is calculated based on the data pairs of N GCoe (Loi, aoi, boi) and GCce (Lci, aci, bci). Is a GINo (Lo, ao, bo), resulting in a problem of predicting the predicted value GCoc (Loc, aoc, boc). Therefore, it can be calculated using a known method or the method of the prior application.
[0128]
Next, in the correction
[0129]
Next, in the input outermost contour optimum transformation
[0130]
Here, when the input outermost contour correction point GCc (Lc, ac, bc) is converted into polar coordinates centered on the fixed point P0, GCc (rc, θc, φc), the output contour representative point polar coordinates are GOUTi (ri, Since θi, φi), i = 1, Nout, the calculation of the input outermost contour optimum transformation point P9 that is the intersection of the correction line L5 and the output contour surface C2 is N (θi, φi) and ri. This results in the problem of predicting the predicted value (rc) with the predicted value as (θc, φc) based on the data pair. Therefore, it can be calculated using a known method or the method of the prior application.
[0131]
Next, in the second conversion point calculation
[0132]
Here, the first weighting factor is W1, and the input outermost contour optimum transformation point P9 expressed in polar coordinates with the fixed point P0 as the center is GCc (rc, θc, φc). Therefore, the second transformation point information S5 Is equivalent to obtaining GCc (rc × W1, θc, φc). If this is returned to the orthogonal coordinates using the coordinate value of the fixed point P0, the second conversion point information S5 is obtained.
[0133]
(Final conversion point calculation process)
In the overall process shown in FIG. 6, finally, in the final conversion
[0134]
Here, if the second weighting factor is W2, the first conversion point P4 is OUT1 (L1, a1, b1), and the second conversion point P5 is OUT2 (L2, a2, b2), the final conversion point P6 is calculated. Corresponds to obtaining OUT0 (L1 * (1-W2) + L2 * W2, a1 * (1-W2) + a2 * W2, b1 * (1-W2) + b2 * W2).
[0135]
The final conversion point P6 is obtained as a point on a line segment connecting the first conversion point P4 and the second conversion point P5. 1 and 2, the final conversion point curve C6 is a trajectory drawn from the fixed point P0 to the final conversion point P6 when the conversion target point P1 is gradually moved in the direction of the output contour point P2. Is along the line segment from the conversion target point P1 to the output contour point P2, but gradually changes the direction toward the conversion target correction point P7 or the input outermost contour correction point P8 or the input outermost contour optimal conversion point P9. .
[0136]
[ Another image processing method ]
FIG. Another image processing method Indicates. this Method Then, a storage unit 82 is provided for the color gamut
[0137]
Further, the storage means 82 stores information indicating the outermost curved surface of the color gamut of the output device or the output outer curved surface which is a closed curved surface within the color gamut, and the input outermost curved surface of the color gamut of the input image or its partial region. Information indicating the contour surface is stored.
[0138]
Then, the color gamut
[0139]
According to this, optimal color gamut conversion according to the color gamut of the output device and the color gamut of the input image can be performed, and in particular, the visual curve of the hue line can be reliably ensured for each area of the color space. It can be corrected.
[0140]
[As an image processing method Second Embodiment of
FIG. 20 shows a color coordinate value of a certain point, that is, a certain pixel of an input image or a partial region thereof as a conversion target point P1, which is on the virtual conversion line L3 and fits the color gamut of the output device. Convert to the final conversion point P25 of the color coordinate
[0141]
This method includes a correction
[0142]
Here, an example for the purpose of performing compression in accordance with the color gamut of the output device in consideration of distortion in the CIELAB color space will be described. Therefore, the virtual conversion line L3 in this example is a uniform hue line.
[0143]
(Correction point calculation process)
In the correction
[0144]
The correction data D2 in this example is a three-dimensional vector group having correction amounts in the L * direction, a * direction, and b * direction from a plurality of points dispersed in the CIELAB color space.
[0145]
FIG. 21 is a diagram for explaining one correction vector V constituting the correction data D2 for correcting distortion in the CIELAB color space. This figure is shown two-dimensionally by the a * axis and b * axis of the CIELAB color space.
[0146]
The starting point Vs of the correction vector V becomes a conversion target point corresponding to the correction vector V. The end point Ve of the correction vector V is determined by a correction amount for correcting the distortion of the color space for each axial direction.
[0147]
Specifically, if there is a virtual conversion line L3 that has a uniform hue passing through the starting point Vs and a fixed point P0 that can be uniquely determined by the starting point Vs and that has a uniform change in lightness and saturation, this virtual conversion is performed. An intersection point between the line L3 and a closed curved surface called a reference plane C4 is defined as a reference point P26. The reference plane C4 may be any closed surface as long as the half line from the fixed point P0 corresponding to an arbitrary point to the arbitrary point intersects only once. In this example, the output contour surface C2 is used as the closed surface C4.
[0148]
This reference point P26 is a point to be converted when the start point Vs is converted into a point on the reference plane in consideration of distortion of the color space. Therefore, the end point Ve is a point on the straight line L4 passing through the reference point P26 and the fixed point P0 and having a value equal to the saturation of the start point Vs. In this way, correction data D2 based on the reference plane C4 can be created from the virtual conversion line L3.
[0149]
By interpolating the three-dimensional vector group of the correction data D2 created as described above, a correction vector corresponding to the conversion target point P1, that is, a correction vector starting from the conversion target point P1 is determined, and the conversion target point P1 is determined. The correction point P21 is calculated by adding this correction vector.
[0150]
(Conversion point calculation process)
The conversion
[0151]
In this example, the first weighting factor W1 and the output contour point P23 for the correction point P21 calculated by the input outermost point calculation step, the output contour point calculation step, and the first weighting factor determination step described in detail in the first embodiment. The conversion point P24 is calculated from the fixed point P0. However, in each process, it is necessary to replace the conversion target point P1 with the correction point P21, the first conversion point P4 with the conversion point P24, and the base line L1 with the correction base line. Specifically, the conversion point P24 is calculated by the equation P24 = P0 + W1 × (P23−P0).
[0152]
In this example, a conversion point calculation method that is adaptive to the document was used. Second In this embodiment, as long as the conversion point is calculated on the correction baseline, any compression or expansion method according to the color gamut of the output device may be used. Therefore, the conversion point P24 may always be the output outline point P23, or an existing method may be used.
[0153]
Further, when the difference between the correction base line L2 and the virtual conversion line L3 within the color gamut of the output device is sufficiently small, the conversion point calculated here may be used as the final conversion point. In this case, the next reverse correction point calculation step can be omitted.
[0154]
(Reverse correction point calculation process)
The reverse correction
[0155]
The reverse correction data D3 in this example is a three-dimensional vector group having correction amounts in the L * direction, a * direction, and b * direction from a plurality of points dispersed in the CIELAB color space.
[0156]
The reverse correction vector constituting the reverse correction data D3 is equal to the start point and the end point of the correction vector included in the correction data D2. That is, when there is a correction vector V corresponding to the conversion target point Vs included in the correction data D2, the reverse correction vector V ′ = − V corresponding to the conversion point Ve can be added as the reverse correction data D3. Therefore, D2 and D3 can be held as different data as in this example, and the reverse correction data D3 can be substituted by the correction data D2.
[0157]
In this way, the inverse correction vector V ′ corresponding to the conversion point P24 is calculated from the correction data D2 or the inverse correction data D3 by interpolation or prediction processing. Then, the final conversion point P25 is calculated by adding the reverse correction vector V ′ to the conversion point P24.
[0158]
In this example, the final conversion point P25 is an appropriate conversion point of the conversion target point P1, and this second conversion point is defined as the second conversion point described in the first embodiment. It is also possible to configure so as to calculate the final conversion point from the corresponding first conversion point.
[0159]
As described above, according to the method described above, the conversion target point P1 on the virtual conversion line L3 can be accurately converted to the final conversion point P25 on the virtual conversion line L3. In this example, since the virtual conversion line is an equi-hue line, the final conversion point P25 can be calculated while keeping the hue of the conversion target point P1.
[0160]
In this example, it is assumed that the virtual conversion lines are equal hue lines. However, the present invention is not limited to this. For example, the virtual conversion lines for approximating a more preferable color such as a memory color or the like. It is also possible to use a virtual conversion line by combining the above.
[0161]
[Embodiment as Coefficient Generation and Image Processing Apparatus]
In the image processing method shown in FIG. 1 to FIG. 14 and FIG. 18 to FIG. 21, the pixel value of the final conversion point is obtained one by one using the individual pixel values of the input image or its partial area as conversion target points. Although it is possible to perform color gamut conversion on the entire image or its partial area, processing takes time and is not practical.
[0162]
Therefore, in the present invention, a coefficient for color gamut conversion is further generated using the above-described image processing method, and the generated coefficient is mounted on the image processing apparatus so that the input image or its partial area can be quickly and easily To enable color gamut conversion.
[0163]
(First example)
FIG. 16 shows an example of the image processing apparatus of the present invention. In this example, an input image is subjected to color gamut conversion and output to a
[0164]
All grid point data stored in the three-dimensional table are generated as the above-mentioned final conversion points by using the input values corresponding to the respective grid points as the above conversion target points, and further depending on the output device. In the example, the color space depends on the
[0165]
In order to convert the color space depending on the output device, in this example, since the input 3D space is converted to the output 4D space, it is necessary to reduce one degree of freedom, for example, by determining the method of generating the black plate. .
[0166]
The grid points include points located outside the outermost contour of the color gamut of the input image, and the data obtained as the final conversion points are not all within the color gamut of the output device. Although it is necessary to use a high method, for example, the method of the prior application can be used.
[0167]
The fact that the final conversion point data obtained is not all within the color gamut of the output device is a significant feature of the present invention that it can be extrapolated even to conversion target points outside the color gamut of the input image. Therefore, excessively unnecessary color gamut compression can be avoided.
[0168]
In particular, even when pasting by parameter selection, taking advantage of this extrapolation, a curved surface slightly outside the color gamut outline of the output device, for example, a color gamut range where YMCK% corresponds to −10% to 110% Is assumed to be the color gamut outline of the virtual output device, and the color gamut of the actual output device is faithfully reproduced by using the method of the present invention for generating the grid point data. Compression can be avoided.
[0169]
When the data obtained as the final conversion points by the above-described method is stored in the three-dimensional table of the three-dimensional table
[0170]
What is needed in this case is that the final conversion points do not all fall within the color gamut of the output device, that is, the input values of these one-dimensional tables are not necessarily between 0% and 100%. Is to be wider than the output range, and the output range must be within the color gamut of the output device.
[0171]
How wide the input range should be depends on the degree of calculation error and smoothing of the input color gamut. For example, the input range is changed from -10% to 110%, and the output for input values below 0% The value may be set to 0%, the output value for an input value of 100% or more to 100%, and the input value and the output value may be set to be the same during that time. Since an actual color printer has a change with time, the change with time can be absorbed by setting the one-dimensional table.
[0172]
Thereafter, the image processing apparatus may be operated. In this case, the three-dimensional table of the three-dimensional table
[0173]
As an interpolation method, a method of performing an interpolation operation by dividing a unit cube into six triangular pyramids, a method of performing an interpolation operation by dividing a unit cube into two triangular prisms, a method of performing interpolation directly on a unit cube, and the like are known. Any of these may be used.
[0174]
In this example, Y′M′C′K ′% from the three-dimensional table
[0175]
This YMCK% is output to the
[0176]
When the input image is a partial area divided and the color processing content is changed for each partial area, the processed partial area data is written in the page memory of the
[0177]
The input color space is not limited to CIELAB, but can be applied to other color spaces such as RGB, XYZ, and YIQ. In addition to color printers, color displays can be applied in the same manner as in color printers except that only three one-dimensional tables are required and the above-described precautions for setting the color gamut of the output device. it can.
[0178]
(Second example)
FIG. 17 shows another example of the image processing apparatus of the present invention. In this example, an input image is subjected to color gamut conversion by the
[0179]
Therefore, first, assuming that all the grid points in the color gamut of the input image or its partial region are input grid points, the final conversion points are calculated by the method described above using the corresponding input values as conversion target points, The result is converted into a color space depending on the output device as output grid point data, and coefficients are set from the input grid point data and the output grid point data using the least square method.
[0180]
In order to convert the color space depending on the output device, the data obtained as the final conversion point does not all fall within the color gamut of the output device because of the calculation error and the smoothing of the input color gamut described above. It is necessary to use a method with a high extrapolation capability, and for example, the method of the prior application can be used.
[0181]
Next, the input / output relationship of the one-dimensional tables 96r, 96g, 96b is set. What is needed in this case is that the final conversion points do not all fall within the color gamut of the output device, that is, the input values of these one-dimensional tables are not necessarily between 0 and 255, so the input range is output. The output range must be kept within the color gamut of the output device.
[0182]
The extent to which the input range should be increased depends on the degree of calculation error and the degree of smoothing of the input color gamut. For example, the input range is -25 to 280, and the output value for an input value below 0 is 0. In addition, the output value for an input value of 255 or more may be set to 255, and the input value and the output value may be set to be the same during that time. Since an actual color display has a change with time, it is possible to absorb the change with time by setting the one-dimensional table.
[0183]
Thereafter, the image processing apparatus may be operated. In this case, the input image or its partial area data, in this example X′Y′Z ′ data, is subjected to matrix calculation processing by the
[0184]
There are various calculation methods here, from basic low-order calculations such as a 3x3 matrix to high-order calculations with the addition of high-order terms and cross-term terms, but the required calculation accuracy and calculation cost. It may be selected in consideration of the balance.
[0185]
In this example, R′G′B ′ data from the
[0186]
The RGB data is output to the
[0187]
When the input image is a partial area divided and the color processing content is changed for each partial area, the processed partial area data is written in the page memory of the
[0188]
The input color space is not limited to XYZ, but can be applied to other color spaces such as RGB, CIELAB, and YIQ. Further, not only a color display but also a color printer, the black mask generation function is added to the
[0189]
【The invention's effect】
According to the present invention, the following effects can be obtained.
[0190]
(1) Depending on the distribution of the input image, only the area that requires color gamut compression can be color gamut compressed. Therefore, the minimum saturation reduction is sufficient, and the color difference from the original is reduced.
[0191]
(2) The direction of color gamut compression can be continuously adjusted for each region. Therefore, it is possible to select an optimum compression direction corresponding to the curve of the hue line of the input color space and the shape of the color gamut of the output device.
[0192]
(3) The amount of color gamut compression can be continuously adjusted including pasting. Therefore, various compression or decompression can be selected simply by changing the parameter according to the user's preference.
[0193]
(4) When color gamut compression is performed by a multi-dimensional DLUT interpolation type color converter, it is possible to avoid excessively unnecessary color gamut compression especially during pasting. Therefore, it is possible to prevent the color difference and the pseudo contour from occurring in the color gamut of the output device.
[Brief description of the drawings]
FIG. 1 is a diagram for explaining an image processing method according to a first invention.
FIG. 2 is a diagram for explaining an image processing method according to the first invention.
FIG. 3 is a diagram illustrating an example of setting a fixed point.
FIG. 4 is a diagram illustrating an example of setting a fixed point.
FIG. 5 is a diagram illustrating an example of setting an output contour surface.
FIG. 6 is a diagram showing a first embodiment of an image processing method according to the present invention.
FIG. 7 is a diagram illustrating an example of an output outline point calculating step.
FIG. 8 is a diagram illustrating an example of an input outermost point calculation step.
FIG. 9 is a diagram illustrating an example of an input outermost point calculation step.
FIG. 10 is a diagram illustrating an example of a function shape used for determining a first weighting factor.
FIG. 11 is a diagram illustrating an example of a function shape used for determining the first weighting factor.
FIG. 12 is a diagram illustrating an example of a function shape used for determining a second weighting factor.
FIG. 13 is a diagram illustrating an example of a second conversion point calculation step.
FIG. 14 is a diagram illustrating an example of a second conversion point calculation step.
FIG. 15 Another image processing method FIG.
FIG. 16 is a diagram showing a first embodiment of an image processing apparatus according to the present invention;
FIG. 17 is a diagram showing an image processing apparatus according to a second embodiment of the present invention.
FIG. 18 Second It is a figure where it uses for description of the image processing method of this invention.
FIG. 19 Second It is a figure where it uses for description of the image processing method of this invention.
FIG. 20 shows an image processing method according to the present invention. Second It is a figure which shows this embodiment.
FIG. 21 Second It is a figure explaining the correction data in the image processing method of this invention.
[Explanation of symbols]
P0 fixed point
P1 conversion point
P2 output outline
P3 Input outermost point
P4 first conversion point
P5 second conversion point
P6 Final conversion point
P21 Correction point
P22 Input outermost point
P23 Output outline point
P24 conversion point
P25 Final conversion point
P26 Correction point
C2 output contour surface
C3 Input outermost curved surface
C4 reference plane
L1 baseline
L2 correction baseline
L3 virtual conversion line
L4 conversion line
L5 correction line
D1 correction data
D2 correction data
D3 Reverse correction data
Claims (17)
変換対象点から一意に決定する前記カラー画像出力装置の色域内の定点と前記変換対象点とを結ぶ直線であるベースラインと、前記カラー画像出力装置の色域の最外郭曲面または色域内の閉曲面である出力外郭曲面との、交点である出力外郭点を求める出力外郭点算出工程と、
前記ベースラインと、前記カラー入力画像または前記部分領域の色域の最外郭曲面である入力最外郭曲面との、交点である入力最外郭点を求める入力最外郭点算出工程と、
前記出力外郭点および前記入力最外郭点から、第1重み係数および第2重み係数を決定する重み係数決定工程と、
前記定点、前記出力外郭点および前記第1重み係数を用いて、前記変換対象点を前記ベースライン上の点に圧縮または伸張して、第1変換点を算出する第1変換点算出工程と、
前記変換対象点を、その変換対象点に対応する補正データにより補正して、補正点を算出する補正点算出工程と、
前記第1重み係数を用いて、前記補正点を、その補正点と前記定点とを結ぶ直線である補正ライン上の点に圧縮または伸張して、第2変換点を算出する第2変換点算出工程と、
前記第1変換点、前記第2変換点および前記第2重み係数を用いて、前記第1変換点と前記第2変換点とを結ぶ線分上の点を、前記変換対象点についての最終変換点として算出する最終変換点算出工程とを備え、
前記第1重み係数は、前記定点から前記変換対象点までの距離と前記定点から前記入力最外郭点までの距離との比R1を入力とし、第1重み係数を出力とする1変数関数計算を行うことによって決定し、その1変数関数の形状は、前記定点から前記出力外郭点までの距離と前記定点から前記入力最外郭点までの距離との比R2が1以下の場合には、その比R2が入力R1のときの第1重み係数である第1パラメータと、前記定点から前記出力外郭点までの距離の何割までを前記変換対象点と前記第1変換点の座標が同一となるように設定するかを決める第2パラメータとの、少なくとも2つのパラメータから決定し、前記比R2が1より大きい場合には、入力R1が1であるときの第1重み係数である第3パラメータと、前記第2パラメータとの、少なくとも2つのパラメータから決定し、
前記第2重み係数は、前記定点から前記変換対象点までの距離と前記定点から前記入力最外郭点までの距離との比R1を入力とし、第2重み係数を出力とする1変数関数計算を行うことによって決定し、その1変数関数の形状は、前記定点から前記入力最外郭点までの距離の何割までを前記第1変換点と前記最終変換点の座標が同一となるように設定するかを決める第4パラメータと、前記定点から前記入力最外郭点までの距離の何割以上を前記第2変換点と前記最終変換点の座標が同一となるように設定するかを決める第5パラメータとの、少なくとも2つのパラメータから決定する、
ことを特徴とする画像処理方法。In an image processing method for converting a color input image or a partial area thereof according to a color gamut of a color image output device,
A base line, which is a straight line connecting the fixed point in the color gamut of the color image output apparatus uniquely determined from the conversion target point and the conversion target point, and an outermost curved surface of the color gamut of the color image output apparatus or a closed in the color gamut. An output contour point calculating step for obtaining an output contour point that is an intersection with the output contour surface that is a curved surface;
An input outermost point calculation step for obtaining an input outermost point that is an intersection of the baseline and the input outermost curved surface that is the outermost curved surface of the color gamut of the color input image or the partial region;
A weighting factor determination step for determining a first weighting factor and a second weighting factor from the output contour point and the input outermost contour point;
The fixed point, by using the output boundary point and the first weighting factor, the conversion target point by compressing or stretching the point on the base line, and the first conversion point calculation step of calculating the first transformation point,
A correction point calculating step of correcting the conversion target point with correction data corresponding to the conversion target point and calculating a correction point ;
Second conversion point calculation for calculating a second conversion point by compressing or expanding the correction point to a point on a correction line, which is a straight line connecting the correction point and the fixed point, using the first weighting factor. Process,
Using the first conversion point, the second conversion point, and the second weighting factor, a point on a line segment connecting the first conversion point and the second conversion point is converted into a final conversion for the conversion target point. A final conversion point calculation step of calculating as points ,
The first weighting factor is a one-variable function calculation with a ratio R1 between the distance from the fixed point to the conversion target point and the distance from the fixed point to the input outermost point as an input, and the first weighting factor as an output. The shape of the one-variable function is determined when the ratio R2 between the distance from the fixed point to the output contour point and the distance from the fixed point to the input outermost point is 1 or less. The coordinates of the conversion target point and the first conversion point are the same for the first parameter that is the first weighting coefficient when R2 is the input R1 and up to what percentage of the distance from the fixed point to the output outline point. A third parameter that is a first weighting coefficient when the input R1 is 1, and when the ratio R2 is greater than 1, The second parameter Of, determined from at least two parameters,
The second weighting factor is a one-variable function calculation with a ratio R1 between the distance from the fixed point to the conversion target point and the distance from the fixed point to the input outermost point as an input, and the second weighting factor as an output. The shape of the one-variable function is set so that the coordinates of the first transformation point and the final transformation point are the same up to some percent of the distance from the fixed point to the input outermost contour point. And a fifth parameter for determining what percentage or more of the distance from the fixed point to the input outermost point is set so that the coordinates of the second conversion point and the final conversion point are the same. And determined from at least two parameters,
An image processing method.
入力色空間の等色相情報と前記出力外郭曲面の情報をもとに、前記補正データとして離散的なデータを予め算出しておく補正データ準備工程と、
その算出された補正データを用いて、前記変換対象点に対応する補正値を算出する補正値算出工程と、
その算出された補正値を前記変換対象点データに加算することによって、変換対象補正点を求める補正点算出工程と、
前記出力外郭曲面上の複数の代表点を予め算出しておく出力外郭代表点準備工程と、
その算出された複数の出力外郭代表点の座標を、前記定点を中心とした極座標に変換する極座標変換工程と、
その変換された複数の出力外郭代表点の極座標をもとに、前記第2変換点を、前記定点から前記変換対象補正点に向かう線と、前記出力外郭曲面を前記第1重み係数で縮小または拡大した出力仮想外郭曲面との、交点として求める第2変換点算出最終工程と、
を備えることを特徴とする画像処理方法。 The image processing method according to claim 1 , wherein the second conversion point calculation step includes:
A correction data preparation step for pre-calculating discrete data as the correction data based on the equi-hue information of the input color space and the information of the output contour surface,
Using the calculated correction data, a correction value calculating step of calculating a correction value corresponding to the conversion target point;
A correction point calculating step for obtaining a conversion target correction point by adding the calculated correction value to the conversion target point data;
An output contour representative point preparation step of calculating a plurality of representative points on the output contour surface in advance;
A polar coordinate conversion step for converting the calculated coordinates of the plurality of output contour representative points into polar coordinates centered on the fixed point;
Based on the converted polar coordinates of the plurality of output outline representative points, the second conversion point is reduced by reducing the line from the fixed point to the correction target correction point and the output outline curved surface by the first weighting factor. A second conversion point calculation final step obtained as an intersection with the enlarged output virtual contour surface;
An image processing method comprising:
入力色空間の等色相情報と前記出力外郭曲面の情報をもとに、前記補正データとして離散的なデータを予め算出しておく補正データ準備工程と、
その算出された補正データを用いて、前記入力最外郭点に対応する補正値を算出する補正値算出工程と、
その算出された補正値を前記入力最外郭点データに加算することによって、入力最外郭補正点を求める補正点算出工程と、
前記出力外郭曲面上の複数の代表点を予め算出しておく出力外郭代表点準備工程と、
その算出された複数の出力外郭代表点をもとに、前記定点から前記入力最外郭補正点に向かう線と前記出力外郭曲面との交点である入力最外郭最適変換点を求める入力最外郭最適変換点算出工程と、
その算出された入力最外郭最適変換点と前記定点とを前記第1重み係数を用いて重み付け平均することによって、前記第2変換点を求める第2変換点算出最終工程と、
を備えることを特徴とする画像処理方法。 The image processing method according to claim 1 , wherein the second conversion point calculation step includes:
A correction data preparation step for pre-calculating discrete data as the correction data based on the equi-hue information of the input color space and the information of the output contour surface,
Using the calculated correction data, a correction value calculating step for calculating a correction value corresponding to the input outermost contour point;
A correction point calculating step for obtaining an input outermost correction point by adding the calculated correction value to the input outermost point data;
An output contour representative point preparation step of calculating a plurality of representative points on the output contour surface in advance;
Based on the calculated plurality of output contour representative points, an input outermost contour optimal transformation that obtains an input outermost contour optimal transformation point that is an intersection of a line from the fixed point toward the input outermost contour correction point and the output contour surface. A point calculation step;
A second conversion point calculation final step of obtaining the second conversion point by weighted averaging the calculated input outermost contour optimal conversion point and the fixed point using the first weighting factor;
An image processing method comprising:
変換対象点を、その変換対象点に対応する補正データにより補正して、補正点を算出する補正点算出工程と、
前記変換対象点から一意に決定する前記カラー画像出力装置の色域内の定点と前記補正点とを結ぶ直線である補正ベースラインと、前記カラー画像出力装置の色域の最外郭曲面または色域内の閉曲面である出力外郭曲面との、交点である出力外郭点を求める出力外郭点算出工程と、
前記補正ベースラインと、前記カラー入力画像または前記部分領域の色域の最外郭曲面である入力最外郭曲面との、交点である入力最外郭点を求める入力最外郭点算出工程と、
前記出力外郭点および前記入力最外郭点から、前記補正点を圧縮または伸張する割合である第1重み係数を決定する重み係数決定工程と、
前記定点、前記出力外郭点および前記第1重み係数を用いて、前記補正点を前記補正ベースライン上の点に圧縮または伸張して、第1変換点を算出する第1変換点算出工程と、
前記第1変換点を、その第1変換点に対応する逆補正データにより補正して、前記変換対象点についての最終変換点を算出する最終変換点算出工程とを備え、
前記第1重み係数は、前記定点から前記変換対象点までの距離と前記定点から前記入力最外郭点までの距離との比R1を入力とし、第1重み係数を出力とする1変数関数計算を行うことによって決定し、その1変数関数の形状は、前記定点から前記出力外郭点までの距離と前記定点から前記入力最外郭点までの距離との比R2が1以下の場合には、その比R2が入力R1のときの第1重み係数である第1パラメータと、前記定点から前記出力外郭点までの距離の何割までを前記変換対象点と前記第1変換点の座標が同一となるように設定するかを決める第2パラメータとの、少なくとも2つのパラメータから決定し、前記比R2が1より大きい場合には、入力R1が1であるときの第1重み係数である第3パラメータと、前記第2パラメータとの、少なくとも2つのパラメータから決定する、
ことを特徴とする画像処理方法。In an image processing method for converting a color input image or a partial area thereof according to a color gamut of a color image output device,
A correction point calculating step of correcting the conversion target point with correction data corresponding to the conversion target point and calculating a correction point;
A correction base line that is a straight line connecting a fixed point in the color gamut of the color image output device and the correction point uniquely determined from the conversion target point, and an outermost curved surface of the color gamut of the color image output device or in the color gamut An output contour point calculating step for obtaining an output contour point that is an intersection with the output contour surface that is a closed curved surface;
An input outermost point calculation step for obtaining an input outermost point that is an intersection of the correction baseline and the input outermost curved surface that is the outermost curved surface of the color gamut of the color input image or the partial region;
A weighting factor determination step of determining a first weighting factor that is a ratio of compressing or expanding the correction point from the output outermost point and the input outermost point;
The fixed point, by using the output boundary point and the first weighting factor, the correction point by compressing or stretching the point on the correction baseline and first conversion point calculation step of calculating the first transformation point,
It said first conversion point is corrected by the inverse correction data corresponding to the first transformation point, and a final conversion point calculation step of calculating a final conversion point for the conversion target point,
The first weighting factor is a one-variable function calculation with a ratio R1 between the distance from the fixed point to the conversion target point and the distance from the fixed point to the input outermost point as an input, and the first weighting factor as an output. The shape of the one-variable function is determined when the ratio R2 between the distance from the fixed point to the output contour point and the distance from the fixed point to the input outermost point is 1 or less. The coordinates of the conversion target point and the first conversion point are the same for the first parameter that is the first weighting coefficient when R2 is the input R1 and up to what percentage of the distance from the fixed point to the output outline point. A third parameter that is a first weighting factor when the input R1 is 1, and when the ratio R2 is greater than 1, The second parameter Of determining at least two parameters,
An image processing method.
前記カラー入力画像または前記部分領域の色域が既知の、または定義されている場合に、予め記憶されている前記入力最外郭曲面上の複数の代表点の情報と、前記変換対象点の情報とに基いて、前記入力最外郭点を求めることを特徴とする画像処理方法。5. The image processing method according to claim 1 , wherein the output contour point calculating step includes:
When the color input image or the color gamut of the partial area is known or defined, information on a plurality of representative points on the input outermost curved surface stored in advance and information on the conversion target point An image processing method characterized in that the input outermost contour point is obtained based on the method.
前記カラー入力画像または前記部分領域の画素値を前記定点を中心とした極座標に変換する極座標変換工程と、
その変換後の極座標の局所見込み角ごとに最大絶対値を有する画素を、前記入力最外郭曲面上の複数の代表点として求める入力最外郭代表点選出工程と、
その得られた代表点情報と、前記変換対象点の情報とに基いて、前記入力最外郭点を求める入力最外郭点算出最終工程と、
を備えることを特徴とする画像処理方法。5. The image processing method according to claim 1 , wherein the input outermost point calculation step includes:
A polar coordinate conversion step of converting pixel values of the color input image or the partial area into polar coordinates centered on the fixed point;
An input outermost representative point selection step for obtaining a pixel having the maximum absolute value for each local expected angle of polar coordinates after the conversion as a plurality of representative points on the input outermost contour surface,
Based on the obtained representative point information and the information of the conversion target point, an input outermost point calculation final step for obtaining the input outermost point,
An image processing method comprising:
前記カラー入力画像または前記部分領域の画素値から複数の入力最外郭代表点候補を選出する入力最外郭代表点候補選出工程と、
その得られた入力最外郭代表点候補の画素値を前記定点を中心とした極座標に変換する極座標変換工程と、
その変換後の極座標の局所見込み角ごとに最大絶対値を有する画素を、前記入力最外郭曲面上の複数の代表点として求める入力最外郭代表点選出工程と、
その得られた代表点情報と、前記変換対象点の情報とに基いて、前記入力最外郭点を求める入力最外郭点算出最終工程と、
を備えることを特徴とする画像処理方法。5. The image processing method according to claim 1 , wherein the input outermost point calculation step includes:
An input outermost contour representative point candidate selection step of selecting a plurality of input outermost contour representative point candidates from the pixel values of the color input image or the partial region;
A polar coordinate conversion step of converting the pixel value of the obtained input outermost contour representative point candidate into polar coordinates centered on the fixed point;
An input outermost representative point selection step for obtaining a pixel having the maximum absolute value for each local expected angle of polar coordinates after the conversion as a plurality of representative points on the input outermost contour surface,
Based on the obtained representative point information and the information of the conversion target point, an input outermost point calculation final step for obtaining the input outermost point,
An image processing method comprising:
前記カラー入力画像または前記部分領域の色域が既知の、または定義されている場合に、予め記憶されている前記入力最外郭曲面上の複数の代表点の情報と、前記変換対象点の情報とに基いて、前記入力最外郭点を求めることを特徴とする画像処理方法。5. The image processing method according to claim 1 , wherein the input outermost point calculation step includes:
When the color input image or the color gamut of the partial area is known or defined, information on a plurality of representative points on the input outermost curved surface stored in advance and information on the conversion target point An image processing method characterized in that the input outermost contour point is obtained based on the method.
前記補正データは、色空間における複数の対象点に対応する補正ベクトルから構成され、それぞれの補正ベクトルは、前記対象点と前記対象点により一意に決定される定点とを通る理想的な変換曲線と、前記定点を内部に持つ基準閉曲面との交点を基準点とし、前記対象点を前記定点から前記基準点に向かう半直線上の点に写像するベクトルであることを特徴とする画像処理方法。The image processing method according to claim 1 or 4 ,
The correction data is composed of correction vectors corresponding to a plurality of target points in a color space, and each correction vector is an ideal transformation curve passing through the target point and a fixed point uniquely determined by the target point. An image processing method characterized in that the vector is a vector that maps the target point to a point on a half line from the fixed point to the reference point, with an intersection with the reference closed curved surface having the fixed point inside as a reference point.
変換対象点から一意に決定する前記カラー画像出力装置の色域内の定点と前記変換対象点とを結ぶ直線であるベースラインと、前記カラー画像出力装置の色域の最外郭曲面または色域内の閉曲面である出力外郭曲面との、交点である出力外郭点を求める出力外郭点算出手段と、
前記ベースラインと、前記カラー入力画像または前記部分領域の色域の最外郭曲面である入力最外郭曲面との、交点である入力最外郭点を求める入力最外郭点算出手段と、
前記出力外郭点および前記入力最外郭点から、第1重み係数および第2重み係数を決定する重み係数決定手段と、
前記定点、前記出力外郭点および前記第1重み係数を用いて、前記変換対象点を前記ベースライン上の点に圧縮または伸張して、第1変換点を算出する第1変換点算出手段と、
前記変換対象点を、その変換対象点に対応する補正データにより補正して、補正点を算出する補正点算出手段と、
前記第1重み係数を用いて、前記補正点を、その補正点と前記定点とを結ぶ直線である補正ライン上の点に圧縮または伸張して、第2変換点を算出する第2変換点算出手段と、
前記第1変換点、前記第2変換点および前記第2重み係数を用いて、前記第1変換点と前記第2変換点とを結ぶ線分上の点を、前記変換対象点についての最終変換点として算出する最終変換点算出手段とを備え、
前記第1重み係数は、前記定点から前記変換対象点までの距離と前記定点から前記入力最外郭点までの距離との比R1を入力とし、第1重み係数を出力とする1変数関数計算を行うことによって決定し、その1変数関数の形状は、前記定点から前記出力外郭点までの距離と前記定点から前記入力最外郭点までの距離との比R2が1以下の場合には、その比R2が入力R1のときの第1重み係数である第1パラメータと、前記定点から前記出力外郭点までの距離の何割までを前記変換対象点と前記第1変換点の座標が同一となるように設定するかを決める第2パラメータとの、少なくとも2つのパラメータから決定し、前記比R2が1より大きい場合には、入力R1が1であるときの第1重み係数である第3パラメータと、前記第2パラメータとの、少なくとも2つのパラメータから決定し、
前記第2重み係数は、前記定点から前記変換対象点までの距離と前記定点から前記入力最外郭点までの距離との比R1を入力とし、第2重み係数を出力とする1変数関数計算を行うことによって決定し、その1変数関数の形状は、前記定点から前記入力最外郭点までの距離の何割までを前記第1変換点と前記最終変換点の座標が同一となるように設定するかを決める第4パラメータと、前記定点から前記入力最外郭点までの距離の何割以上を前記第2変換点と前記最終変換点の座標が同一となるように設定するかを決める第5パラメータとの、少なくとも2つのパラメータから決定する、
ことを特徴とする画像処理装置。In an image processing apparatus that converts a color input image or a partial area thereof according to a color gamut of a color image output apparatus,
A base line, which is a straight line connecting the fixed point in the color gamut of the color image output apparatus uniquely determined from the conversion target point and the conversion target point, and an outermost curved surface of the color gamut of the color image output apparatus or a closed in the color gamut. An output contour point calculating means for obtaining an output contour point that is an intersection with the output contour surface that is a curved surface;
An input outermost point calculation means for obtaining an input outermost point that is an intersection of the base line and an input outermost curved surface that is the outermost curved surface of the color gamut of the color input image or the partial region;
Weighting factor determining means for determining a first weighting factor and a second weighting factor from the output contour point and the input outermost contour point;
The fixed point, by using the output boundary point and the first weighting factor, the conversion target point by compressing or stretching the point on the base line, and the first conversion point calculating means for calculating a first transformation point,
Correction point calculating means for correcting the conversion target point with correction data corresponding to the conversion target point and calculating a correction point ;
Second conversion point calculation for calculating a second conversion point by compressing or expanding the correction point to a point on a correction line, which is a straight line connecting the correction point and the fixed point, using the first weighting factor. Means,
Using the first conversion point, the second conversion point, and the second weighting factor, a point on a line segment connecting the first conversion point and the second conversion point is converted into a final conversion for the conversion target point. A final conversion point calculation means for calculating as points ,
The first weighting factor is a one-variable function calculation with a ratio R1 between the distance from the fixed point to the conversion target point and the distance from the fixed point to the input outermost point as an input, and the first weighting factor as an output. The shape of the one-variable function is determined when the ratio R2 between the distance from the fixed point to the output contour point and the distance from the fixed point to the input outermost point is 1 or less. The coordinates of the conversion target point and the first conversion point are the same for the first parameter that is the first weighting coefficient when R2 is the input R1 and up to what percentage of the distance from the fixed point to the output outline point. A third parameter that is a first weighting coefficient when the input R1 is 1, and when the ratio R2 is greater than 1, The second parameter Of, determined from at least two parameters,
The second weighting factor is a one-variable function calculation with a ratio R1 between the distance from the fixed point to the conversion target point and the distance from the fixed point to the input outermost point as an input, and the second weighting factor as an output. The shape of the one-variable function is set so that the coordinates of the first transformation point and the final transformation point are the same up to some percent of the distance from the fixed point to the input outermost contour point. And a fifth parameter for determining what percentage or more of the distance from the fixed point to the input outermost point is set so that the coordinates of the second conversion point and the final conversion point are the same. And determined from at least two parameters,
An image processing apparatus.
変換対象点を、その変換対象点に対応する補正データにより補正して、補正点を算出する補正点算出手段と、
前記変換対象点から一意に決定する前記カラー画像出力装置の色域内の定点と前記補正点とを結ぶ直線である補正ベースラインと、前記カラー画像出力装置の色域の最外郭曲面または色域内の閉曲面である出力外郭曲面との、交点である出力外郭点を求める出力外郭点算出手段と、
前記補正ベースラインと、前記カラー入力画像または前記部分領域の色域の最外郭曲面である入力最外郭曲面との、交点である入力最外郭点を求める入力最外郭点算出手段と、
前記出力外郭点および前記入力最外郭点から、前記補正点を圧縮または伸張する割合である第1重み係数を決定する重み係数決定手段と、
前記定点、前記出力外郭点および前記第1重み係数を用いて、前記補正点を前記補正ベースライン上の点に圧縮または伸張して、第1変換点を算出する第1変換点算出手段と、
前記第1変換点を、その第1変換点に対応する逆補正データにより補正して、前記変換対象点についての最終変換点を算出する最終変換点算出手段とを備え、
前記第1重み係数は、前記定点から前記変換対象点までの距離と前記定点から前記入力最外郭点までの距離との比R1を入力とし、第1重み係数を出力とする1変数関数計算を行うことによって決定し、その1変数関数の形状は、前記定点から前記出力外郭点までの距離と前記定点から前記入力最外郭点までの距離との比R2が1以下の場合には、その比R2が入力R1のときの第1重み係数である第1パラメータと、前記定点から前記出力外郭点までの距離の何割までを前記変換対象点と前記第1変換点の座標が同一となるように設定するかを決める第2パラメータとの、少なくとも2つのパラメータから決定し、前記比R2が1より大きい場合には、入力R1が1であるときの第1重み係数である第3パラメータと、前記第2パラメータとの、少なくとも2つのパラメータから決定する、
ことを特徴とする画像処理装置。In an image processing apparatus that converts a color input image or a partial area thereof according to a color gamut of a color image output apparatus,
Correction point calculation means for correcting the conversion target point with correction data corresponding to the conversion target point and calculating the correction point;
A correction base line that is a straight line connecting a fixed point in the color gamut of the color image output apparatus and the correction point, which is uniquely determined from the conversion target point, and an outermost curved surface of the color gamut of the color image output apparatus or in the color gamut An output contour point calculating means for obtaining an output contour point that is an intersection with the output contour surface that is a closed curved surface;
An input outermost point calculating means for obtaining an input outermost point that is an intersection of the correction baseline and the input outermost curved surface that is the outermost curved surface of the color gamut of the color input image or the partial region;
Weighting factor determination means for determining a first weighting factor that is a ratio of compressing or expanding the correction point from the output contour point and the input outermost contour point;
The fixed point, by using the output boundary point and the first weighting factor, the correction point by compressing or stretching the point on the correction baseline and first conversion point calculating means for calculating a first transformation point,
It said first conversion point is corrected by the inverse correction data corresponding to the first transformation point, and a final conversion point calculation means for calculating a final conversion point for the conversion target point,
The first weighting factor is a one-variable function calculation with a ratio R1 between the distance from the fixed point to the conversion target point and the distance from the fixed point to the input outermost point as an input, and the first weighting factor as an output. The shape of the one-variable function is determined when the ratio R2 between the distance from the fixed point to the output contour point and the distance from the fixed point to the input outermost point is 1 or less. The coordinates of the conversion target point and the first conversion point are the same for the first parameter that is the first weighting coefficient when R2 is the input R1 and up to what percentage of the distance from the fixed point to the output outline point. A third parameter that is a first weighting factor when the input R1 is 1, and when the ratio R2 is greater than 1, The second parameter Of determining at least two parameters,
An image processing apparatus.
請求項10の格子点データ生成方法によって生成された格子点データが格納された多次元変換テーブルを有し、前記カラー入力画像または前記部分領域の画素値をアドレスとして、この多次元変換テーブルを索引し、その読み出された格子点データを前記カラー入力画像または前記部分領域の画素値を用いて補間演算することによって、前記カラー画像出力装置の色域にほぼ適合した、出力装置に依存の色空間の画素値を得る前段変換処理部と、
この前段変換処理部から得られた画素値を最終的に前記カラー画像出力装置の色域内に収まる画素値に変換する、複数の1次元変換テーブルからなる後段変換処理部と、
を備えることを特徴とする画像処理装置。In an image processing apparatus that converts a color input image or a partial area thereof according to a color gamut of a color image output apparatus,
11. A multidimensional conversion table storing lattice point data generated by the lattice point data generation method according to claim 10 , wherein the multidimensional conversion table is indexed by using pixel values of the color input image or the partial area as addresses. Then, by interpolating the read grid point data using the color input image or the pixel value of the partial area, the output device-dependent color substantially conforming to the color gamut of the color image output device A pre-stage conversion processing unit for obtaining a spatial pixel value;
A post-conversion processing unit composed of a plurality of one-dimensional conversion tables, which finally converts the pixel values obtained from the pre-conversion processing unit into pixel values that fall within the color gamut of the color image output device;
An image processing apparatus comprising:
請求項11の変換係数生成方法によって生成された係数を用いて、前記カラー入力画像または前記部分領域の画素値をマトリックス演算することによって、前記カラー画像出力装置の色域にほぼ適合した、出力装置に依存の色空間の画素値を得る前段変換処理部と、
この前段変換処理部から得られた画素値を最終的に前記カラー画像出力装置の色域内に収まる画素値に変換する、複数の1次元変換テーブルからなる後段変換処理部と、
を備えることを特徴とする画像処理装置。In an image processing apparatus that converts a color input image or a partial area thereof according to a color gamut of a color image output apparatus,
An output device that substantially matches the color gamut of the color image output device by performing a matrix operation on pixel values of the color input image or the partial region using the coefficients generated by the transform coefficient generation method of claim 11 A pre-stage conversion processing unit for obtaining a pixel value of a color space depending on
A post-conversion processing unit composed of a plurality of one-dimensional conversion tables, which finally converts the pixel values obtained from the pre-conversion processing unit into pixel values that fall within the color gamut of the color image output device;
An image processing apparatus comprising:
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP18865799A JP4016234B2 (en) | 1998-07-02 | 1999-07-02 | Image processing method and image processing apparatus |
Applications Claiming Priority (3)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP18730898 | 1998-07-02 | ||
| JP10-187308 | 1998-07-02 | ||
| JP18865799A JP4016234B2 (en) | 1998-07-02 | 1999-07-02 | Image processing method and image processing apparatus |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2000083177A JP2000083177A (en) | 2000-03-21 |
| JP4016234B2 true JP4016234B2 (en) | 2007-12-05 |
Family
ID=26504276
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP18865799A Expired - Fee Related JP4016234B2 (en) | 1998-07-02 | 1999-07-02 | Image processing method and image processing apparatus |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP4016234B2 (en) |
Families Citing this family (15)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR100420553B1 (en) * | 2001-06-22 | 2004-03-02 | 엘지전자 주식회사 | ATM Switching System for Performing Label Edge Router Function in MultiProtocol Label Switching Network |
| KR100451788B1 (en) * | 2001-10-24 | 2004-10-08 | 엘지전자 주식회사 | Method of L2TP packet fast receive to improve the performance of L2TP network server in virtual private network router |
| JP4592089B2 (en) * | 2005-06-02 | 2010-12-01 | キヤノン株式会社 | Image processing method, profile creation method, and image processing apparatus |
| JP4533277B2 (en) * | 2005-08-12 | 2010-09-01 | キヤノン株式会社 | Image processing apparatus, image processing method, and table creation method |
| US7965426B2 (en) | 2005-08-12 | 2011-06-21 | Canon Kabushiki Kaisha | Image processing apparatus and method for performing gamut mapping via device-independent standard color space |
| JP4533287B2 (en) | 2005-09-07 | 2010-09-01 | キヤノン株式会社 | Color processing method and apparatus |
| JP4534917B2 (en) * | 2005-09-08 | 2010-09-01 | ソニー株式会社 | Color gamut compression method, program, and color gamut compression device |
| US8432588B2 (en) | 2005-10-25 | 2013-04-30 | Hewlett-Packard Development Company, L.P. | Color mapping |
| JP2008048314A (en) | 2006-08-21 | 2008-02-28 | Fuji Xerox Co Ltd | Image processor, image processing program and image processing method |
| JP4802981B2 (en) * | 2006-11-02 | 2011-10-26 | コニカミノルタエムジー株式会社 | Color conversion table creation program, color conversion table creation device, and color conversion table creation system |
| JP4961962B2 (en) * | 2006-11-13 | 2012-06-27 | 富士ゼロックス株式会社 | Color processing apparatus and program |
| JP5253274B2 (en) * | 2009-04-02 | 2013-07-31 | パナソニック株式会社 | Color conversion output device |
| WO2011021241A1 (en) * | 2009-08-20 | 2011-02-24 | 株式会社 東芝 | Image processing device |
| JP5375494B2 (en) * | 2009-09-30 | 2013-12-25 | セイコーエプソン株式会社 | Image processing apparatus, image output apparatus, image processing method, and program |
| JP5773749B2 (en) * | 2011-05-19 | 2015-09-02 | キヤノン株式会社 | Color gamut compression method and profile generation apparatus using the same |
-
1999
- 1999-07-02 JP JP18865799A patent/JP4016234B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JP2000083177A (en) | 2000-03-21 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US6724507B1 (en) | Image processing method and image processing apparatus | |
| JP4016234B2 (en) | Image processing method and image processing apparatus | |
| JPH11341296A (en) | Color gamut conversion method and color gamut conversion device | |
| US7072084B2 (en) | Color converting device emphasizing a contrast of output color data corresponding to a black character | |
| US5652831A (en) | Variable point interpolation apparatus and method with scalable architecture for color correction | |
| US20040057614A1 (en) | Color adjustment method, color adjustment apparatus, color conversion definition editing apparatus, image processing apparatus, program, and storage medium | |
| JP2000278546A (en) | Image processing device and image processing method, color gamut conversion table creation device and color gamut conversion table creation method, recording medium recording image processing program, and recording medium recording color gamut conversion table creation program | |
| JPH09224158A (en) | Data conversion table changing method | |
| JPH09149272A (en) | Color conversion adjusting method and apparatus | |
| JP3539665B2 (en) | Face area correction method, face area correction apparatus, and recording medium storing face area correction program | |
| JP3954244B2 (en) | Color reproduction space compression / decompression method | |
| KR20030059330A (en) | Color converter and color converting method | |
| TW200521955A (en) | Gamut conversion system and methods | |
| JP2001014454A (en) | Picture processor | |
| JPH10200770A (en) | Color correction method for image data | |
| JP3354158B2 (en) | Color correction device, color correction method, and color correction application device | |
| JP3171081B2 (en) | Image processing device | |
| JPH05244406A (en) | Color adjustment device | |
| JP2004104777A (en) | Color gamut mapping method, color gamut mapping device, color gamut mapping program, and storage medium | |
| JPH05120416A (en) | Color converter | |
| US20030020934A1 (en) | Color region compressing method | |
| JP2601265B2 (en) | Color correction method | |
| JP3576612B2 (en) | Color conversion processor | |
| JP2003078773A (en) | Color adjustment method, program for implementing the color adjustment method and medium for storing the program | |
| JP2000253267A (en) | Method and device for color image processing |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20060529 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20060712 |
|
| A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20060911 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20070110 |
|
| A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20070305 |
|
| 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: 20070822 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20070904 |
|
| 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: 20100928 Year of fee payment: 3 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110928 Year of fee payment: 4 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120928 Year of fee payment: 5 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120928 Year of fee payment: 5 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130928 Year of fee payment: 6 |
|
| LAPS | Cancellation because of no payment of annual fees |