JP3871495B2 - Color conversion apparatus and color conversion method - Google Patents

Color conversion apparatus and color conversion method Download PDF

Info

Publication number
JP3871495B2
JP3871495B2 JP2000116234A JP2000116234A JP3871495B2 JP 3871495 B2 JP3871495 B2 JP 3871495B2 JP 2000116234 A JP2000116234 A JP 2000116234A JP 2000116234 A JP2000116234 A JP 2000116234A JP 3871495 B2 JP3871495 B2 JP 3871495B2
Authority
JP
Japan
Prior art keywords
data
hue
comparison data
calculation
comparison
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2000116234A
Other languages
Japanese (ja)
Other versions
JP2001307080A (en
Inventor
周一 香川
博明 杉浦
和広 坂下
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP2000116234A priority Critical patent/JP3871495B2/en
Publication of JP2001307080A publication Critical patent/JP2001307080A/en
Application granted granted Critical
Publication of JP3871495B2 publication Critical patent/JP3871495B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

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

Description

【0001】
【発明の属する技術分野】
この発明は、プリンタやビデオプリンタ、スキャナ等のフルカラー印刷関連機器、コンピュータグラフィックス画像を作成する画像処理機器、あるいはモニター等の表示装置等に使用するデータ処理に係わり、中でも赤/緑/青の3色で表現する画像データを使用機器等に合わせて色変換処理する色変換方法および装置に関する。
【0002】
【従来の技術】
印刷における色変換は、インクが純色でないことによる混色性や印画の非線形性で発生する画質劣化を補正し、良好な色再現性を持つ印刷画像を出力するために必須の技術である。また、モニター等の表示装置においても、入力された色信号を表示する際、使用条件等に合わせ所望の色再現性をもつ画像を出力(表示)するため、色変換処理が行われている。
【0003】
従来、上記のような場合での色変換方式には、テーブル変換方式とマトリクス演算方式の2種類がある。
【0004】
テーブル変換方式は、赤と緑と青(以下、「R、G、B」と記す。)で表現した画像データを入力し、ROMなどのメモリに予め記憶しているR、G、Bの画像データあるいはイエローとマゼンタとシアン(以下、「Y、M、C」と記す。)の補色データを求める方法であり、任意の変換特性を採用できるため、色再現性に優れた色変換を実行できる長所がある。
【0005】
しかし、画像データの組合せ毎にデータを記憶させる単純な構成では、約400Mbitの大容量メモリになる。例えば、特開昭63−227181号公報には、メモリ容量の圧縮法法を開示しているが、それでも約5Mbitになる。したがって、この方式には、変換特性毎に大容量メモリを必要とするため、LSI化が困難な課題と、使用条件等の変更に柔軟に対応できないと言う課題がある。
【0006】
一方、マトリクス演算方式は、例えばR、G、Bの画像データよりY、M、Cの印刷データを求める場合は、下記の式(27)が基本演算式である。
【0007】
【数9】

Figure 0003871495
【0008】
ここで、i=1〜3、j=1〜3である。
【0009】
しかし、式(27)の単純な線形演算では、印画等の非線形性により良好な変換特性を実現できない。
【0010】
上記の変換特性を改良した方法が、特公平2−30226号公報の色補正演算装置に開示されており、下記の式(28)のマトリクス演算式を採用している。
【0011】
【数10】
Figure 0003871495
【0012】
ここで、Nは定数、i=1〜3、j=1〜10である。
【0013】
上記式(28)は、無彩色成分と色成分が混在する画像データを直接使用するため、演算の相互干渉が発生する。つまり、係数を1つ変更すると、着目している成分または色相以外にも影響を与え、良好な変換特性を実現できないという課題がある。
【0014】
また、本出願人による特願平11−18217号に記載の色変換方法は、この解決策を開示している。図17は、特願平11−18217号記載の入力画像データRi、Gi、Biを出力画像データR、G、Bに変換する色変換方法を示すブロック回路図である。図17において、101はαβ算出手段、102は色相データ算出手段、103は多項式演算手段、104はマトリクス演算手段、105は係数発生手段、106は合成手段である。
【0015】
αβ算出手段101は入力された画像データR、G、Bの最大値βと最小値αを算出し、各データを特定する識別符号S1を生成して出力する。また、色相データ算出手段102は画像データR、G、Bと上記αβ算出手段101からの出力より色相データr、g、b、y、m、cを算出する。
【0016】
図18は、上記多項式演算手段103の一構成例を示すブロック図である。図において、107は入力された色相データr、g、b、y、m、cのうちゼロとなるデータを除去するゼロ除去手段、108a、108bは乗算手段、109a、109b、109cは入力されたデータの最小値を選択し出力する最小値選択手段、111は上記αβ算出手段1からの識別符号S1に基づき、演算係数を発生し出力する演算係数発生手段、110a、110bは上記演算係数発生手段111からの出力が示す演算係数と、最小値選択手段109a及び109bの出力との乗算を行う演算手段である。
【0017】
次に動作について説明する。入力された画像データR、G、B(Ri、Gi、Bi)はαβ算出手段101および色相データ算出手段102へと送られ、αβ算出手段101は、入力画像データRi、Gi、Biの最大値βと最小値αを算出して出力するとともに、入力画像データRi、Gi、Biのうち最大値となるデータと最小値となるデータを特定する識別符号S1を生成し出力する。色相データ算出手段102は、画像データRi、Gi、Biと上記αβ算出手段101からの出力である最大値βと最小値αを入力とし、r=Ri−α、g=Gi−α、b=Bi−αおよびy=β−Bi、m=β−Gi、c=β−Riの減算処理を行い、6つの色相データr、g、b、y、m、cを出力する。
【0018】
このとき、上記αβ算出手段101において算出される最大値β、最小値αは、β=MAX(Ri、Gi、Bi)、α=MIN(Ri、Gi、Bi)であり、色相データ算出手段102において算出される6つの色相データr、g、b、y、m、cは、r=Ri−α、g=Gi−α、b=Bi−αおよびy=β−Bi、m=β−Gi、c=β−Riの減算処理によって得られているので、これら6つの色相データは、この中の少なくとも2つがゼロになる性質がある。例えば、最大値βがRi、最小値αがGiである場合(β=Ri、α=Gi)は、上記の減算処理よりg=0およびc=0となり、また、最大値βがRi、最小値αがBiである場合(β=Ri、α=Bi)は、b=0およびc=0となる。すなわち、最大、最小となるRi、Gi、Biの組み合わせにより、少なくとも、r、g、bの中で1つ、y、m、cの中で1つの合計2つの値がゼロとなることになる。
【0019】
そして、上記αβ算出手段101においては、6つの色相データのうちゼロとなるデータを特定する識別符号S1を生成し出力する。この識別符号S1は、最大値βと最小値αがRi、Gi、Biのうちどれであるかにより、データを特定する6種類の識別符号S1を生成することができる。
【0020】
次に、色相データ算出手段102からの出力である6つの色相データr、g、bおよびy、m、cは多項式演算手段103へと送られ、また、r、g、bについてはマトリクス演算手段104へも送られる。多項式演算手段103には上記αβ算出手段101から出力される識別符号S1も入力されており、r、g、b中でゼロでない2つのデータQ1、Q2と、y、m、c中でゼロでない2つのデータP1、P2を選択して演算を行い、乗算項T3=Q1×Q2およびT1=P1×P2、第1の比較データT4=min(Q1,Q2)およびT2=min(P1,P2)、第2の比較データT5=min(ap×T2、aq×T4)を算出する。ここで、ap、aqは第1の比較データT2およびT4にかかる演算係数である。以上、上述した多項式データT1、T2、T3、T4、T5が、多項式演算手段103の出力である。そして、この多項式演算手段103の出力はマトリクス演算手段104へと送られる。
【0021】
一方、図17の係数発生手段105は、識別符号S1に基づき、多項式データの演算係数U(Fij)と固定係数U(Eij)を発生し、マトリクス演算手段104へと送る。マトリクス演算手段104は、上記色相データ算出手段102からの色相データr、g、bと多項式演算手段103からの多項式データT1〜T5、係数発生手段105からの係数Uを入力とし、下記の式(101)の演算結果を画像データR1、G1、B1として出力する。
【0022】
【数11】
Figure 0003871495
【0023】
なお、式(101)において、(Eij)ではi=1〜3、j=1〜3、(Fij)ではi=1〜3、j=1〜5である。
【0024】
合成手段106は、上記マトリクス演算手段104からの画像データR1、G1、B1と上記αβ算出手段101からの出力である無彩色データを示す最小値αが入力され、加算を行い、画像データR、G、Bを出力する。よって、上記図17に示した構成による色変換方法により色変換された画像データR、G、Bを求める演算式は、式(102)となる。
【0025】
【数12】
Figure 0003871495
【0026】
ここで、(Eij)ではi=1〜3、j=1〜3、(Fij)ではi=1〜3、j=1〜18であり、h1r=min(m、y)、h1g=min(y、c)、h1b=min(c、m)、h1c=min(g、b)、h1m=min(b、r)、h1y=min(r、g)、h2ry=min(aq1×h1y、ap1×h1r)、h2rm=min(aq2×h1m、ap2×h1r)、h2gy=min(aq3×h1y、ap3×h1g)、h2gc=min(aq4×h1c、ap4×h1g)、h2bm=min(aq5×h1m、ap5×h1b)、h2bc=min(aq6×h1c、ap6×h1b)であり、aq1〜aq6およびap1〜ap6は第1の比較データにかかる演算係数である。
【0027】
なお、式(102)の演算項と図17に示した構成における演算項の数の違いは、図17に示した構成における演算項がゼロとなるデータを除く画素毎の演算方法を開示しているのに対して、式(102)は画素集合に対する一般式を開示している点にある。つまり、1画素について、式(102)の多項式データについては18個のデータを5個の有効データ(T1〜T5)に削減できる。
【0028】
また、有効データの組合せは、着目画素の画像データに応じて変わり、全画像データでは全ての多項式データが有効になる。
【0029】
図19(A)〜(F)は、6つの色相(赤、イエロー、緑、シアン、青、マゼンタ)と色相データy、m、c、r、g、bの関係を模式的に示したものであり、各色相データはそれぞれ3つの色相に関与している(例えば、色相データyは赤、イエローおよび緑に、色相データmは青、マゼンタおよび赤にそれぞれ関与する)。また、図20(A)〜(F)は、6つの色相と乗算項y×m、r×g、c×y、g×b、m×c、b×rの関係を模式的に示したものであり、各乗算項が特定の色相に関与していることが分かる(例えば、乗算項y×mは赤に、r×gはイエローにそれぞれ関与する)。なお、以降、図中*は、特に断らない限り乗算(×)を意味する。
【0030】
図21(A)〜(F)は、6つの色相と第1の比較データh1r、h1y、h1g、h1c、h1b、h1mの関係を模式的に示したものであり、各第1の比較データが特定の色相に関与していることが分かる(例えば、第1の比較データh1rは赤に、h1yはイエローにそれぞれ関与する)。
【0031】
さらに図22(A)〜(F)は、6つの色相と、第2の比較データh2ry、h2gy、h2gc、h2bc、h2bm、h2rmの関係を模式的に示したものであり、各第2の比較データが赤〜イエロー、イエロー〜緑、緑〜シアン、シアン〜青、青〜マゼンタ、マゼンタ〜赤の6つの色相間の中間領域の変化に関与していることが分かる(例えば、第2の比較データh2ryは赤〜イエローに、h2gyはイエロー〜緑にそれぞれ関与する)。
【0032】
以上より、上述の図17に示した構成における色変換方法によると、特定の色相に関与する乗算項および第1の比較データに係る係数を変化させることにより、着目している色相のみを他の色相に影響を与えることなく調整できる。
【0033】
また、第2の比較データに係る係数を変化させることにより、赤、青、緑、イエロー、シアン、マゼンタの6つ色相間の変化の度合いについて補正することが可能で、例えば、好みに応じて、特定の色相の色空間に占める領域の拡大または縮小が望まれる場合、具体的には、マゼンタ〜赤〜イエローと変化する色空間において、赤の占める領域の拡大または縮小が望まれるような場合においても、この要求を満たすことが可能となる。
【0034】
さらに、上記の乗算項は彩度に対して2次的な演算項となり、第1の比較データおよび第2の比較データは彩度に対して1次的な演算項となる。したがって、乗算項、第1の比較データおよび第2の比較データを共に用いることにより、彩度に対する非線形な特性をも補正することができる。
【0035】
上記第2の比較データは、次のような効果も有する。図23(A)〜(C)は、図17に示した構成における色変換方法において、多項式データの固定係数Eijを式(103)に示す値とし、演算係数Fijを全て0とした場合、すなわち色変換処理を行わない場合における、マトリクス演算手段104から出力される画像データR1、G1、B1と6つの色相の関係を表す図である。
【0036】
【数13】
Figure 0003871495
【0037】
図23(A)〜(C)より、各色相において画像データR1、G1、B1のうち少なくとも1つは0となっている(例えば、画像データR1においてはシアンが0となり、G1においてはマゼンタが0となる)。これは、色相データ算出手段102において、入力画像データRi、Gi、Biよりその最小値αが減算されたことによる。最小値αは入力画像データRi、Gi、Biにおける無彩色の成分である。また、図23(A)〜(C)より、各色相において画像データR1、G1、B1の最大値は一定値となっている。
【0038】
図24(A)〜(C)は、図17に示した構成による色変換方法において、緑に対して有効となる第1の比較データh1gにかかる演算係数を操作することにより色変換処理を行った場合における、マトリクス演算手段104から出力される画像データR1、G1、B1と6つの色相の関係の一例を表す図であり、緑の色相におけるB1信号が増加しており、「青っぽい緑色」となる。
【0039】
図24に示す場合においては、緑の色相におけるB1信号を増加させたことにより、イエロー〜緑の領域においては、画像データR1、G1、B1のいずれも0とはならない。このことは、色相データ算出手段102において、入力画像データRi、Gi、Biより無彩色成分である最小値αを除去したにも関わらず、色変換処理によりイエロー〜緑の領域において無彩色成分がふたたび発生したことを示す。イエロー〜緑の領域における無彩色成分の発生は、当該領域における彩度の低下につながる。
【0040】
図25(A)〜(C)は、図17に示した構成による色変換方法において、緑に対して有効となる第1の比較データh1gにかかる演算係数に加え、イエロー〜緑の領域に対して有効となる第2の比較データh2gyにかかる演算係数をも操作することにより色変換処理を行った場合における、マトリクス演算手段104から出力される画像データR1、G1、B1と6つの色相の関係の一例を表す図である。
【0041】
図25に示す場合においては、h2gyにかかる演算係数をも操作することにより、図24の場合において見られたイエロー〜緑の領域における色変換処理に起因する無彩色成分の発生は生じておらず(図25中、イエロー〜緑の中間のところではG1しか信号として存在しない)、イエロー〜緑の領域における彩度の低下は発生しない。
【0042】
上述のように図17に示した構成による色変換方法においては、色変換処理に起因する彩度の低下を解決することも可能となる。しかし、この色変換法においても解決されていない問題がある。
【0043】
図26(A)〜(C)は、図17に示した構成による色変換方法において、緑に対して有効となる第1の比較データh1gにかかる演算係数と、イエローに対して有効となる第1の比較データh1yにかかる演算係数を操作することにより色変換処理を行った場合における、マトリクス演算手段104から出力される画像データR1、G1、B1と6つの色相の関係の一例を表す図であり、緑の色相におけるB1信号が増加しており「青っぽい緑色」となるとともに、イエローの色相におけるG1信号が減少しており「赤っぽいイエロー」となる。
【0044】
図26に示す場合においては、緑の色相におけるB1信号を増加させたことにより、イエロー〜緑の領域においては、R1、G1、B1のいずれも0とはならず、イエロー〜緑の領域における無彩色成分の発生が見られる。
【0045】
さらに図26に示す場合においては、色変換を行わない場合である図23と比較して、イエローの色相におけるG1信号を減少させたことにより、イエロー〜緑の領域においてR1、G1、B1の最大値が小さな値となる。このR1、G1、B1の最大値の減少は、色変換処理によりイエロー〜緑の領域において、輝度の低下が発生することにつながる。
【0046】
図27(A)〜(C)は、図17に示した構成による色変換方法において、イエロー〜緑の領域に対して有効となる第2の比較データh2gyにかかる演算係数をも操作することにより図26において見られるイエロー〜緑の領域での彩度の低下を解決した場合における、マトリクス演算手段104から出力される画像データR1、G1、B1と6つの色相の関係の一例を表す図である。しかし、この場合においてもイエロー〜緑の領域での輝度の低下は依然として解決されていない。
【0047】
一方、図28(A)〜(C)は、図17に示した構成による色変換方法において、イエロー〜緑の領域に対して有効となる第2の比較データh2gyにかかる演算係数をも操作することにより図26において見られるイエロー〜緑の領域での輝度の低下を解決した場合における、マトリクス演算手段104から出力される画像データR1、G1、B1と6つの色相の関係の一例を表す図である。しかし、この場合においてもイエロー〜緑の領域での彩度の低下は依然として解決されていない。
【0048】
以上のような、彩度および輝度の低下は、色変換処理によって色再現可能な範囲が狭くなることにつながる。
【0049】
【発明が解決しようとする課題】
従来の色変換方法または色変換装置は、ROMなどのメモリによるテーブル変換方式で構成されている場合は、大容量メモリが必要になり、変換特性を柔軟に変更することができない問題点があり、また、マトリクス演算方式で構成される場合は、着目する色相のみを調整できるが、色変換処理に起因して発生する彩度および輝度の低下を全ての場合において除去することができず、色変換処理によって色再現可能な範囲が狭くなることがあるという問題点があった。
【0050】
この発明は上記のような問題点を解消するためになされたもので、画像データR、G、Bを画素毎に色変換する色変換方法および色変換装置において、赤、青、緑、イエロー、シアン、マゼンタの6つの色相に加え、更に赤〜イエロー、イエロー〜緑、緑〜シアン、シアン〜青、青〜マゼンタ、マゼンタ〜赤の6つの色相間の領域を独立に補正することにより、上記6つの色相間の変化の度合いをも補正でき、また変換特性を柔軟に変更できて、しかも大容量メモリを必要とせず、さらに色変換処理に起因して発生する彩度および輝度の低下を除去することが可能な色変換方法または色変換装置を得ることを目的とする。
【0051】
【課題を解決するための手段】
本発明に係る色変換装置は、赤、緑、青の画像データR、G、Bを画素毎に色変換する色変換装置において、
(1)画素毎の上記画像データR、G、Bにおける最大値βおよび最小値αを算出する算出手段と、
(2)上記画像データR、G、Bと上記算出手段から出力される上記最大値βおよび最小値αとの減算処理
r=R−α、g=G−α、b=B−α、
y=β−B、m=β−G、c=β−R、
により色相データr、g、bおよびy、m、cを算出する色相データ算出手段と、
(3)上記色相データ算出手段から出力される上記各色相データを用いて第1の比較データ
h1r=min(m、y)、h1g=min(y、c)、
h1b=min(c、m)、h1c=min(g、b)、
h1m=min(b、r)、h1y=min(r、g)、
(min(A、B)はA、Bの最小値を示す。)
を生成する第1の比較データ生成手段と、
(4)該第1の比較データ生成手段からの出力である上記第1の比較データを用いて第2の比較データ
h2ry1=min(aq11×h1y、ap11×h1r)、
h2rm1=min(aq12×h1m、ap12×h1r)、
h2gy1=min(aq13×h1y、ap13×h1g)、
h2gc1=min(aq14×h1c、ap14×h1g)、
h2bm1=min(aq15×h1m、ap15×h1b)、
h2bc1=min(aq16×h1c、ap16×h1b)、
h2ry2=min(aq21×h1y、ap21×h1r)、
h2rm2=min(aq22×h1m、ap22×h1r)、
h2gy2=min(aq23×h1y、ap23×h1g)、
h2gc2=min(aq24×h1c、ap24×h1g)、
h2bm2=min(aq25×h1m、ap25×h1b)、
h2bc2=min(aq26×h1c、ap26×h1b)、
を生成する第2の比較データ生成手段と、
(5)所定のマトリクス係数Eij(i=1〜3、j=1〜3)とFij(i=1〜3、j=1〜18)とを発生する係数発生手段とを備え、
上記第1の比較データ生成手段からの上記第1の比較データ、上記第2の比較データ生成手段からの上記第2の比較データ、上記色相データ算出手段からの上記色相データ、および上記算出手段からの上記最小値αを用いて、上記係数発生手段からの上記係数による以下の式(1)のマトリクス演算を行うことにより色変換された画像データを得ることを特徴とする。
【0052】
【数14】
Figure 0003871495
【0053】
本発明に係る色変換装置は、赤、緑、青の画像データR、G、Bを画素毎に色変換する色変換装置において、
(1)画素毎の上記画像データR、G、Bよりシアン、マゼンタ、イエローの補色データC、M、Yを求める手段と、
(2)上記補色データC、M、Yにおける最大値βおよび最小値αを算出する算出手段と、
(3)上記補色データC、M、Yと上記算出手段からの出力である最大値βおよび最小値αとの減算処理
r=β−C、g=β−M、b=β−Y、
y=Y−α、m=M−α、c=C−α、
により色相データr、g、bおよびy、m、cを算出する色相データ算出手段と、
(4)上記色相データ算出手段から出力される上記各色相データを用いて第1の比較データ
h1r=min(m、y)、h1g=min(y、c)、
h1b=min(c、m)、h1c=min(g、b)、
h1m=min(b、r)、h1y=min(r、g)、
(min(A、B)はA、Bの最小値を示す。)
を生成する第1の比較データ生成手段と、
(5)該第1の比較データ生成手段からの出力である上記第1の比較データを用いて第2の比較データ
h2ry1=min(aq11×h1y、ap11×h1r)、
h2rm1=min(aq12×h1m、ap12×h1r)、
h2gy1=min(aq13×h1y、ap13×h1g)、
h2gc1=min(aq14×h1c、ap14×h1g)、
h2bm1=min(aq15×h1m、ap15×h1b)、
h2bc1=min(aq16×h1c、ap16×h1b)、
h2ry2=min(aq21×h1y、ap21×h1r)、
h2rm2=min(aq22×h1m、ap22×h1r)、
h2gy2=min(aq23×h1y、ap23×h1g)、
h2gc2=min(aq24×h1c、ap24×h1g)、
h2bm2=min(aq25×h1m、ap25×h1b)、
h2bc2=min(aq26×h1c、ap26×h1b)、
を生成する第2の比較データ生成手段と、
(6)所定のマトリクス係数Eij(i=1〜3、j=1〜3)とFij(i=1〜3、j=1〜18)とを発生する係数発生手段とを備え、
上記第1の比較データ生成手段からの上記第1の比較データ、上記第2の比較データ生成手段からの上記第2の比較データ、上記色相データ算出手段からの上記色相データ、および上記算出手段からの上記最小値αを用いて、上記係数発生手段からの上記係数による以下の式(2)のマトリクス演算を行うことにより色変換された画像データを得ることを特徴とする。
【0054】
【数15】
Figure 0003871495
【0055】
本発明に係る色変換装置は、赤、緑、青の画像データR、G、Bを画素毎に色変換する色変換装置において、
(1)画素毎の上記画像データR、G、Bにおける最大値βおよび最小値αを算出する算出手段と、
(2)上記画像データR、G、Bと上記算出手段から出力される上記最大値βおよび最小値αとの減算処理
r=R−α、g=G−α、b=B−α、
y=β−B、m=β−G、c=β−R、
により色相データr、g、bおよびy、m、cを算出する色相データ算出手段と、
(3)上記色相データ算出手段から出力される上記各色相データを用いて第1の比較データ
h1r=min(m、y)、h1g=min(y、c)、
h1b=min(c、m)、h1c=min(g、b)、
h1m=min(b、r)、h1y=min(r、g)、
(min(A、B)はA、Bの最小値を示す。)
を生成する第1の比較データ生成手段と、
(4)該第1の比較データ生成手段からの出力である上記第1の比較データを用いて第2の比較データ
h2ry1=min(aq11×h1y、ap11×h1r)、
h2rm1=min(aq12×h1m、ap12×h1r)、
h2gy1=min(aq13×h1y、ap13×h1g)、
h2gc1=min(aq14×h1c、ap14×h1g)、
h2bm1=min(aq15×h1m、ap15×h1b)、
h2bc1=min(aq16×h1c、ap16×h1b)、
h2ry2=min(aq21×h1y、ap21×h1r)、
h2rm2=min(aq22×h1m、ap22×h1r)、
h2gy2=min(aq23×h1y、ap23×h1g)、
h2gc2=min(aq24×h1c、ap24×h1g)、
h2bm2=min(aq25×h1m、ap25×h1b)、
h2bc2=min(aq26×h1c、ap26×h1b)、
を生成する手段と、
(5)所定のマトリクス係数Eij(i=1〜3、j=1〜3)とFij(i=1〜3、j=1〜19)を発生する係数発生手段とを備え、
上記第1の比較データ生成手段からの上記第1の比較データ、上記第2の比較データ生成手段からの上記第2の比較データ、上記色相データ算出手段からの上記色相データ、および上記算出手段からの上記最小値αを用いて、上記係数発生手段からの上記係数による以下の式(3)のマトリクス演算を行うことにより色変換された画像データを得ることを特徴とする。
【0056】
【数16】
Figure 0003871495
【0057】
本発明に係る色変換装置は、赤、緑、青の画像データR、G、Bを画素毎に色変換する色変換装置において、
(1)画素毎の上記画像データR、G、Bよりシアン、マゼンタ、イエローの補色データC、M、Yを求める手段と、
(2)上記補色データC、M、Yにおける最大値βと最小値αを算出する算出手段と、
(3)上記補色データC、M、Yと上記算出手段からの出力である最大値βおよび最小値αとの減算処理
r=β−C、g=β−M、b=β−Y、
y=Y−α、m=M−α、c=C−α、
により色相データr、g、bおよびy、m、cを算出する色相データ算出手段と、
(4)上記色相データ算出手段から出力される上記各色相データを用いて第1の比較データ
h1r=min(m、y)、h1g=min(y、c)、
h1b=min(c、m)、h1c=min(g、b)、
h1m=min(b、r)、h1y=min(r、g)、
(min(A、B)はA、Bの最小値を示す。)
を生成する第1の比較データ生成手段と、
(5)該第1の比較データ生成手段からの出力である上記第1の比較データを用いて第2の比較データ
h2ry1=min(aq11×h1y、ap11×h1r)、
h2rm1=min(aq12×h1m、ap12×h1r)、
h2gy1=min(aq13×h1y、ap13×h1g)、
h2gc1=min(aq14×h1c、ap14×h1g)、
h2bm1=min(aq15×h1m、ap15×h1b)、
h2bc1=min(aq16×h1c、ap16×h1b)、
h2ry2=min(aq21×h1y、ap21×h1r)、
h2rm2=min(aq22×h1m、ap22×h1r)、
h2gy2=min(aq23×h1y、ap23×h1g)、
h2gc2=min(aq24×h1c、ap24×h1g)、
h2bm2=min(aq25×h1m、ap25×h1b)、
h2bc2=min(aq26×h1c、ap26×h1b)、
を生成する第2の比較データ生成手段と、
(6)所定のマトリクス係数Eij(i=1〜3、j=1〜3)とFij(i=1〜3、j=1〜19)とを発生する係数発生手段とを備え、
上記第1の比較データ生成手段からの上記第1の比較データ、上記第2の比較データ生成手段からの上記第2の比較データ、上記色相データ算出手段からの上記色相データ、および上記算出手段からの上記最小値αを用いて、上記係数発生手段からの上記係数による以下の式(4)のマトリクス演算を行うことにより色変換された画像データを得ることを特徴とする。
【0058】
【数17】
Figure 0003871495
【0059】
また、本発明に係る色変換装置は、第2の比較データ生成手段における、各第1の比較データに所定の演算係数aq11〜aq16、aq21〜aq26、ap11〜ap16、およびap21〜ap26を乗算する乗算手段が、演算係数aq11〜aq16、aq21〜aq26、ap11〜ap16、およびap21〜ap26を1、2、4、8、…となる整数値とし、ビットシフトにより上記各第1の比較データと上記演算係数との演算を行うことを特徴とする。
【0060】
また、本発明に係る色変換装置は、算出手段は、画像データR、G、Bまたは補色データC、M、Yを用いて最大値βおよび最小値αを算出するとともに、最大および最小となる上記画像データまたは上記補色データの種類に応じて、ゼロとなる色相データを特定するための識別符号を出力する識別符号出力手段を備え、
上記算出手段から出力される識別符号に応じて、第1の比較データ生成手段において第1の比較データを生成し、係数発生手段においてマトリクス係数を発生し、該マトリクス係数によるマトリクス演算を行うことにより色変換された画像データまたは補色データを得ることを特徴とする。
【0061】
本発明に係る色変換方法は、赤、緑、青の画像データR、G、Bを画素毎に色変換する色変換方法において、
(1)画素毎の上記画像データR、G、Bにおける最大値βおよび最小値αを算出する算出ステップ、
(2)上記画像データR、G、Bと上記算出ステップによって得られた上記最大値βおよび最小値αとの減算処理
r=R−α、g=G−α、b=B−α、
y=β−B、m=β−G、c=β−R、
により色相データr、g、bおよびy、m、cを算出する色相データ算出ステップと、
(3)上記色相データ算出ステップによって得られる上記各色相データを用いて第1の比較データ
h1r=min(m、y)、h1g=min(y、c)、
h1b=min(c、m)、h1c=min(g、b)、
h1m=min(b、r)、h1y=min(r、g)、
(min(A、B)はA、Bの最小値を示す。)
を生成する第1の比較データ生成ステップと、
(4)該第1の比較データ生成ステップによって得られる上記第1の比較データを用いて第2の比較データ
h2ry1=min(aq11×h1y、ap11×h1r)、
h2rm1=min(aq12×h1m、ap12×h1r)、
h2gy1=min(aq13×h1y、ap13×h1g)、
h2gc1=min(aq14×h1c、ap14×h1g)、
h2bm1=min(aq15×h1m、ap15×h1b)、
h2bc1=min(aq16×h1c、ap16×h1b)、
h2ry2=min(aq21×h1y、ap21×h1r)、
h2rm2=min(aq22×h1m、ap22×h1r)、
h2gy2=min(aq23×h1y、ap23×h1g)、
h2gc2=min(aq24×h1c、ap24×h1g)、
h2bm2=min(aq25×h1m、ap25×h1b)、
h2bc2=min(aq26×h1c、ap26×h1b)、
を生成する第2の比較データ生成ステップと、
(5)所定のマトリクス係数Eij(i=1〜3、j=1〜3)とFij(i=1〜3、j=1〜18)とを発生する係数発生ステップとを含み、
上記第1の比較データ生成ステップによって得られる上記第1の比較データ、上記第2の比較データ生成ステップによって得られる上記第2の比較データ、上記色相データ算出ステップによって得られる上記色相データ、および上記算出ステップによって得られる上記最小値αを用いて、上記係数発生ステップによって発生される上記係数による以下の式(1)のマトリクス演算を行うことにより色変換された画像データを得ることを特徴とする。
【0062】
【数18】
Figure 0003871495
【0063】
本発明に係る色変換方法は、赤、緑、青の画像データR、G、Bを画素毎に色変換する色変換方法において、
(1)画素毎の上記画像データR、G、Bよりシアン、マゼンタ、イエローの補色データC、M、Yを求めるステップと、
(2)上記補色データC、M、Yにおける最大値βおよび最小値αを算出する算出ステップと、
(3)上記補色データC、M、Yと上記算出ステップによって得られた最大値βおよび最小値αとの減算処理
r=β−C、g=β−M、b=β−Y、
y=Y−α、m=M−α、c=C−α、
により色相データr、g、bおよびy、m、cを算出する色相データ算出ステップと、
(4)該色相データ算出ステップによって得られる上記各色相データを用いて第1の比較データ
h1r=min(m、y)、h1g=min(y、c)、
h1b=min(c、m)、h1c=min(g、b)、
h1m=min(b、r)、h1y=min(r、g)、
(min(A、B)はA、Bの最小値を示す。)
を生成する第1の比較データ生成ステップと、
(5)該第1の比較データ生成ステップによって得られる上記第1の比較データを用いて第2の比較データ
h2ry1=min(aq11×h1y、ap11×h1r)、
h2rm1=min(aq12×h1m、ap12×h1r)、
h2gy1=min(aq13×h1y、ap13×h1g)、
h2gc1=min(aq14×h1c、ap14×h1g)、
h2bm1=min(aq15×h1m、ap15×h1b)、
h2bc1=min(aq16×h1c、ap16×h1b)、
h2ry2=min(aq21×h1y、ap21×h1r)、
h2rm2=min(aq22×h1m、ap22×h1r)、
h2gy2=min(aq23×h1y、ap23×h1g)、
h2gc2=min(aq24×h1c、ap24×h1g)、
h2bm2=min(aq25×h1m、ap25×h1b)、
h2bc2=min(aq26×h1c、ap26×h1b)、
を生成する第2の比較データ生成ステップと、
(6)所定のマトリクス係数Eij(i=1〜3、j=1〜3)とFij(i=1〜3、j=1〜18)とを発生する係数発生ステップとを含み、
上記第1の比較データ生成ステップによって得られる上記第1の比較データ、上記第2の比較データ生成ステップによって得られる上記第2の比較データ、上記色相データ算出ステップによって得られる上記色相データ、および上記算出ステップによって得られる上記最小値αを用いて、上記係数発生ステップによって発生される上記係数による以下の式(2)のマトリクス演算を行うことにより色変換された画像データを得ることを特徴とする。
【0064】
【数19】
Figure 0003871495
【0065】
本発明に係る色変換方法は、赤、緑、青の画像データR、G、Bを画素毎に色変換する色変換方法において、
(1)画素毎の上記画像データR、G、Bにおける最大値βおよび最小値αを算出する算出ステップと、
(2)上記画像データR、G、Bと上記算出ステップによって得られる上記最大値βおよび最小値αとの減算処理
r=R−α、g=G−α、b=B−α、
y=β−B、m=β−G、c=β−R、
により色相データr、g、bおよびy、m、cを算出する色相データ算出ステップと、
(3)上記色相データ算出ステップによって得られる上記各色相データを用いて第1の比較データ
h1r=min(m、y)、h1g=min(y、c)、
h1b=min(c、m)、h1c=min(g、b)、
h1m=min(b、r)、h1y=min(r、g)、
(min(A、B)はA、Bの最小値を示す。)
を生成する第1の比較データ生成ステップと、
(4)該第1の比較データ生成ステップによって得られる上記第1の比較データを用いて第2の比較データ
h2ry1=min(aq11×h1y、ap11×h1r)、
h2rm1=min(aq12×h1m、ap12×h1r)、
h2gy1=min(aq13×h1y、ap13×h1g)、
h2gc1=min(aq14×h1c、ap14×h1g)、
h2bm1=min(aq15×h1m、ap15×h1b)、
h2bc1=min(aq16×h1c、ap16×h1b)、
h2ry2=min(aq21×h1y、ap21×h1r)、
h2rm2=min(aq22×h1m、ap22×h1r)、
h2gy2=min(aq23×h1y、ap23×h1g)、
h2gc2=min(aq24×h1c、ap24×h1g)、
h2bm2=min(aq25×h1m、ap25×h1b)、
h2bc2=min(aq26×h1c、ap26×h1b)、
を生成する第2の比較データ生成ステップと、
(5)所定のマトリクス係数Eij(i=1〜3、j=1〜3)とFij(i=1〜3、j=1〜19)を発生する係数発生ステップとを含み、
上記第1の比較データ生成ステップによって得られる上記第1の比較データ、上記第2の比較データ生成ステップによって得られる上記第2の比較データ、上記色相データ算出ステップによって得られる上記色相データ、および上記算出ステップによって得られる上記最小値αを用いて、上記係数発生ステップによって得られる上記係数による以下の式(3)のマトリクス演算を行うことにより色変換された画像データを得ることを特徴とする。
【0066】
【数20】
Figure 0003871495
【0067】
本発明に係る色変換方法は、赤、緑、青の画像データR、G、Bを画素毎に色変換する色変換方法において、
(1)画素毎の上記画像データR、G、Bよりシアン、マゼンタ、イエローの補色データC、M、Yを求めるステップと、
(2)上記補色データC、M、Yにおける最大値βと最小値αを算出する算出ステップと、
(3)上記補色データC、M、Yと上記算出ステップによって得られる最大値βおよび最小値αとの減算処理
r=β−C、g=β−M、b=β−Y、
y=Y−α、m=M−α、c=C−α、
により色相データr、g、bおよびy、m、cを算出する色相データ算出ステップと、
(4)上記色相データ算出ステップによって得られる上記各色相データを用いて第1の比較データ
h1r=min(m、y)、h1g=min(y、c)、
h1b=min(c、m)、h1c=min(g、b)、
h1m=min(b、r)、h1y=min(r、g)、
(min(A、B)はA、Bの最小値を示す。)
を生成する第1の比較データ生成ステップと、
(5)該第1の比較データ生成ステップによって得られる上記第1の比較データを用いて第2の比較データ
h2ry1=min(aq11×h1y、ap11×h1r)、
h2rm1=min(aq12×h1m、ap12×h1r)、
h2gy1=min(aq13×h1y、ap13×h1g)、
h2gc1=min(aq14×h1c、ap14×h1g)、
h2bm1=min(aq15×h1m、ap15×h1b)、
h2bc1=min(aq16×h1c、ap16×h1b)、
h2ry2=min(aq21×h1y、ap21×h1r)、
h2rm2=min(aq22×h1m、ap22×h1r)、
h2gy2=min(aq23×h1y、ap23×h1g)、
h2gc2=min(aq24×h1c、ap24×h1g)、
h2bm2=min(aq25×h1m、ap25×h1b)、
h2bc2=min(aq26×h1c、ap26×h1b)、
を生成する第2の比較データ生成ステップと、
(6)所定のマトリクス係数Eij(i=1〜3、j=1〜3)とFij(i=1〜3、j=1〜19)とを発生する係数発生ステップとを含み、
上記第1の比較データ生成ステップによって得られる上記第1の比較データ、上記第2の比較データ生成ステップによって得られる上記第2の比較データ、上記色相データ算出ステップによって得られる上記色相データ、および上記算出ステップによって得られる上記最小値αを用いて、上記係数発生ステップによって発生される上記係数による以下の式(4)のマトリクス演算を行うことにより色変換された画像データを得ることを特徴とする。
【0068】
【数21】
Figure 0003871495
【0069】
また、本発明に係る色変換方法は、第2の比較データ生成ステップに含まれる各第1の比較データに所定の演算係数aq11〜aq16、aq21〜aq26、ap11〜ap16、およびap21〜ap26を乗算する乗算ステップにおいて、演算係数aq11〜aq16、aq21〜aq26、ap11〜ap16、およびap21〜ap26を1、2、4、8、…となる整数値とし、ビットシフトにより上記各第1の比較データと上記演算係数との演算を行うことを特徴とする。
【0070】
また、本発明に係る色変換方法は、算出ステップは、画像データR、G、Bまたは補色データC、M、Yを用いて最大値βおよび最小値αを算出するとともに、最大および最小となる上記画像データまたは上記補色データの種類に応じて、ゼロとなる色相データを特定するための識別符号を出力する識別符号出力ステップを含み、
上記算出ステップによって出力される識別符号に応じて、第1の比較データ生成ステップにおいて第1の比較データを生成し、係数発生ステップにおいてマトリクス係数を発生し、該マトリクス係数によるマトリクス演算を行うことにより色変換された画像データまたは補色データを得ることを特徴とする。
【0071】
【発明の実施の形態】
以下、この発明をその実施の形態を示す図面に基づいて具体的に説明する。
実施の形態1.
図1はこの発明の一実施形態による色変換方法および色変換装置の構成の一例を示すブロック図である。図において、1は入力された画像データR、G、Bの最大値βと最小値αを算出し、後述する識別符号S1を生成して出力するαβ算出手段、2は画像データR、G、Bと上記αβ算出手段1からの出力より色相データr、g、b、y、m、cを算出する色相データ算出手段、3は多項式演算手段、4はマトリクス演算手段、5は係数発生手段、6は合成手段である。
【0072】
また、図2は、上記多項式演算手段3の一構成例を示すブロック図である。図において、7は入力された色相データのうちゼロとなるデータを除去するゼロ除去手段、9a、9b、9c、9dは入力されたデータの最小値を選択し出力する最小値選択手段、11は上記αβ算出手段1からの識別符号に基づき、演算係数を発生し出力する演算係数発生手段、10a、10b、10c、10dは上記演算係数発生手段11からの出力が示す演算係数と、最小値選択手段9a及び9bの出力との乗算を行う演算手段である。
【0073】
次に動作について説明する。入力された画像データR、G、B(Ri、Gi、Bi)はαβ算出手段1および色相データ算出手段2へと送られ、αβ算出手段1は、入力画像データRi、Gi、Biの最大値βと最小値αを算出して出力するとともに、入力画像データRi、Gi、Biのうち最大値となるデータと最小値となるデータを特定する識別符号S1を生成し出力する。
【0074】
色相データ算出手段2は、画像データRi、Gi、Biと上記αβ算出手段1からの出力である最大値βと最小値αを入力とし、r=Ri−α、g=Gi−α、b=Bi−αおよびy=β−Bi、m=β−Gi、c=β−Riの減算処理を行い、6つの色相データr、g、b、y、m、cを出力する。
【0075】
このとき、上記αβ算出手段1において算出される最大値β、最小値αは、β=MAX(Ri、Gi、Bi)、α=MIN(Ri、Gi、Bi)であり、色相データ算出手段2において算出される6つの色相データr、g、b、y、m、cは、r=Ri−α、g=Gi−α、b=Bi−αおよびy=β−Bi、m=β−Gi、c=β−Riの減算処理によって得られているので、これら6つの色相データは、この中の少なくとも2つがゼロになる性質がある。
【0076】
例えば、最大値βがRi、最小値αがGiである場合(β=Ri、α=Gi)は、上記の減算処理よりg=0およびc=0となり、また、最大値βがRi、最小値αがBiである場合(β=Ri、α=Bi)は、b=0およびc=0となる。すなわち、最大、最小となるRi、Gi、Biの組み合わせにより、少なくとも、r、g、bの中で1つ、y、m、cの中で1つの合計2つの値がゼロとなることになる。
【0077】
したがって、上記αβ算出手段1においては、6つの色相データのうちゼロとなるデータを特定する識別符号S1を生成し出力する。この識別符号S1は、最大値βと最小値αが入力画像データRi、Gi、Biのうちどれであるかにより、データを特定する6種類の識別符号S1を生成することができる。図3は識別符号S1と入力画像データRi、Gi、Biにおける最大値β、最小値αおよびゼロとなる色相データの関係を示す図である。なお、図中の識別符号S1の値はその一例を示すものであり、この限りではなく、他の値であってもよい。
【0078】
次に、色相データ算出手段2からの出力である6つの色相データr、g、bおよびy、m、cは多項式演算手段3へと送られ、また、色相データr、g、bについてはマトリクス演算手段4へも送られる。多項式演算手段3には上記αβ算出手段1から出力される識別符号S1も入力されており、色相データr、g、b中でゼロでない2つのデータQ1、Q2と、色相データy、m、c中でゼロでない2つのデータP1、P2を選択して演算を行うのであるが、この動作を図2に従って説明する。
【0079】
多項式演算手段3において、色相データ算出手段2からの色相データr、g、bおよびy、m、cとαβ算出手段からの識別符号S1はゼロ除去手段7へと入力される。ゼロ除去手段7では、識別符号S1に基づき、色相データr、g、b中でゼロでない2つのデータQ1、Q2と色相データy、m、c中でゼロでない2つのデータP1、P2を出力する。Q1、Q2、P1、P2は、例えば図4に示すように決定され、出力される。
【0080】
例えば図3、4から、識別符号S1=0となる場合、色相データr、bからQ1、Q2が、色相データy、mからP1、P2が得られ、Q1=r、Q2=b、P1=m、P2=yとして出力する。なお、上記図3と同様、図4中の識別符号S1の値はその一例を示すものであり、この限りではなく、他の値であってもよい。
【0081】
最小値選択手段9aでは、上記ゼロ除去手段7からの出力データQ1、Q2のうちの最小値T4=min(Q1,Q2)を選択して出力し、最小値選択手段9bでは、上記ゼロ除去手段7からの出力データP1、P2のうちの最小値T2=min(P1,P2)を選択して出力する。最小値選択手段9aおよび9bから出力されるT4およびT2が、第1の比較データである。
【0082】
演算係数発生手段11には上記αβ算出手段1からの識別符号S1が入力され、演算手段10a、10b、10c、10dにおいて第1の比較データT4およびT2に対し乗算を行うための演算係数aq1、ap1、aq2、ap2を示す信号を識別符号S1に基づき発生し、演算手段10aへ演算係数aq1を、演算手段10bへは演算係数ap1を、演算手段10cへ演算係数aq2を、演算手段10dへは演算係数ap2を出力する。
【0083】
なお、この演算係数aq1、ap1、aq2、ap2はそれぞれ識別符号S1に応じて発生されることとなり、図4から識別符号S1に対しそれぞれ6種類の演算係数aq1、ap1、aq2、ap2が発生される。演算手段10aでは上記最小値選択手段9aからの第1の比較データT4が入力され、演算係数発生手段11からの演算係数aq1と第1の比較データT4による乗算aq1×T4を行い、その出力を最小値選択手段9cへ送り、演算手段10bでは上記最小値選択手段9bからの第1の比較データT2が入力され、演算係数発生手段11からの演算係数ap1と第1の比較データT2による乗算ap1×T2を行い、その出力を最小値選択手段9cへ送る。
【0084】
また、演算手段10cでは上記最小値選択手段9aからの第1の比較データT4が入力され、演算係数発生手段11からの演算係数aq2と第1の比較データT4による乗算aq2×T4を行い、その出力を最小値選択手段9dへ送り、演算手段10dでは上記最小値選択手段9bからの第1の比較データT2が入力され、演算係数発生手段11からの演算係数ap2と第1の比較データT2による乗算ap2×T2を行い、その出力を最小値選択手段9dへ送る。
【0085】
最小値選択手段9cでは、演算手段10aおよび10bからの出力の最小値T5=min(ap1×T2、aq1×T4)を選択して出力し、最小値選択手段9dでは、演算手段10cおよび10dからの出力の最小値T6=min(ap2×T2、aq2×T4)を選択して出力する。最小値選択手段9c、9dから出力されるT5、T6が、第2の比較データである。以上、上述した多項式データT2、T4、T5、T6が、多項式演算手段3の出力である。そして、この多項式演算手段3の出力はマトリクス演算手段4へと送られる。
【0086】
一方、図1の係数発生手段5は、識別符号S1に基づき、多項式データの演算係数U(Fij)と固定係数U(Eij)を発生し、マトリクス演算手段4へと送る。マトリクス演算手段4は、上記色相データ算出手段2からの色相データr、g、bと多項式演算手段3からの多項式データT2、T4、T5、T6、係数発生手段5からの係数Uを入力とし、下記の式(6)の演算結果を画像データR1、G1、B1として出力する。
【0087】
【数22】
Figure 0003871495
【0088】
なお、式(6)において、(Eij)ではi=1〜3、j=1〜3、(Fij)ではi=1〜3、j=1〜4である。
【0089】
ここで、図5は、上記マトリクス演算手段4における部分的な一構成例を示すブロック図であり、画像データR1を演算し出力する場合について示している。図において、12a〜12eは乗算手段、13a〜13dは加算手段である。
【0090】
次に、図5の動作を説明する。乗算手段12a〜12eは、色相データrと多項式演算手段3からの多項式データT2、T4、T5、T6と係数発生手段5からの係数U(Eij)およびU(Fij)を入力とし、それぞれの積を出力する。加算手段13a、13bは、各乗算手段12b〜12eの出力である積を入力とし、入力データを加算し、その和を出力する。加算手段13cは加算手段13a、13bからのデータを加算し、加算手段13dは加算手段13cの出力と乗算手段12aの出力を加算して、総和を画像データR1として出力する。なお、図5の構成例において、色相データrをgまたはbに置換すれば、画像データG1、B1を演算できる。
【0091】
なお、ここでは、係数(Eij)と(Fij)は、それぞれの色相データr、g、bに対応した係数が使用される。つまり、図5の構成を色相データr、g、bに対し並列に3つ使用すれば、高速なマトリクス演算が可能になる。
【0092】
合成手段6は、上記マトリクス演算手段4からの画像データR1、G1、B1と上記αβ算出手段1からの出力である無彩色データを示す最小値αが入力され、加算を行い、画像データR、G、Bを出力する。よって、上記図1に示した構成による色変換方法により色変換された画像データR、G、Bを求める演算式は、式(1)となる。
【0093】
【数23】
Figure 0003871495
【0094】
ここで、(Eij)ではi=1〜3、j=1〜3、(Fij)ではi=1〜3、j=1〜18であり、
h1r=min(m、y)、h1g=min(y、c)、
h1b=min(c、m)、h1c=min(g、b)、
h1m=min(b、r)、h1y=min(r、g)、
h2ry1=min(aq11×h1y、ap11×h1r)、
h2rm1=min(aq12×h1m、ap12×h1r)、
h2gy1=min(aq13×h1y、ap13×h1g)、
h2gc1=min(aq14×h1c、ap14×h1g)、
h2bm1=min(aq15×h1m、ap15×h1b)、
h2bc1=min(aq16×h1c、ap16×h1b)、
h2ry2=min(aq21×h1y、ap21×h1r)、
h2rm2=min(aq22×h1m、ap22×h1r)、
h2gy2=min(aq23×h1y、ap23×h1g)、
h2gc2=min(aq24×h1c、ap24×h1g)、
h2bm2=min(aq25×h1m、ap25×h1b)、
h2bc2=min(aq26×h1c、ap26×h1b)、
であり、aq11〜aq16、aq21〜aq26、ap11〜ap16、およびap21〜ap26は上記図2における演算係数発生手段11において発生される演算係数である。
【0095】
なお、式(1)の演算項と図1に示した構成における演算項の数の違いは、図1に示した構成による演算項がゼロとなるデータを除く画素毎の演算方法を開示しているのに対して、式(1)は画素集合に対する一般式を開示している点にある。つまり、1画素について、式(1)の多項式データについては18個のデータを4個の有効データ(T2、T4、T5、T6)に削減でき、この削減は、色相データの性質を巧みに活用して達成している。
【0096】
また、有効データの組合せは、着目画素の画像データに応じて変わり、全画像データでは全ての多項式データが有効になる。
【0097】
図6(A)〜(F)は、6つの色相(赤、イエロー、緑、シアン、青、マゼンタ)と色相データy、m、c、r、g、bの関係を模式的に示したものであり、各色相データはそれぞれ3つの色相に関与している(例えば、yは赤、イエローおよび緑に関与し、mは青、マゼンタ、赤に関与している)。
【0098】
一方、上記式(6)と式(1)は、各色相の1つだけに有効な第1の比較データを含んでいる。この第1の比較データは、h1r=min(y,m)、h1y=min(r,g)、h1g=min(c,y)、h1c=min(g,b)、h1b=min(m,c)、h1m=min(b,r)の6つである。
【0099】
図7(A)〜(F)は、6つの色相と第1の比較データh1r、h1y、h1g、h1c、h1b、h1mの関係を模式的に示したものであり、各第1の比較データが特定の色相に関与していることが分かる。例えば、Wを定数として、赤に対してはr=W、g=b=0なので、y=m=W、c=0となる。したがって、第1の比較データh1r=min(y,m)=Wとなる。また、他の5つの第1の比較データは全てゼロになる。
【0100】
つまり、赤に対しては、h1rのみが有効な第1の比較データになる。同様に、緑にはh1g、青にはh1b、シアンにはh1c、マゼンタにはh1m、イエローにはh1yだけが有効な第1の比較データとなる。
【0101】
以上より、上記6つの第1の比較データh1r、h1y、h1g、h1c、h1b、h1mをマトリクス演算項として用い、それぞれの演算項にかかる係数を変化させることにより、所望の色相のみの補正を行うことが可能となる。例えば、赤に対してはh1rのみが有効な第1の比較データとなるので、赤の補正に対してはh1rにかかる係数のみが有効となる。
【0102】
また、上記式(6)と式(1)は、第2の比較データも含んでいる。図8(A)〜(F)は、6つの色相と、第2の比較データ
h2ry1=min(h1y,h1r)、
h2gy1=min(h1y,h1g)、
h2gc1=min(h1c,h1g)、
h2bc1=min(h1c,h1b)、
h2bm1=min(h1m,h1b)、
h2rm1=min(h1m,h1r)、
および
h2ry2=min(h1y,h1r)、
h2gy2=min(h1y,h1g)、
h2gc2=min(h1c,h1g)、
h2bc2=min(h1c,h1b)、
h2bm2=min(h1m,h1b)、
h2rm2=min(h1m,h1r)、
の関係を模式的に示したものであり、上記式(1)での
h2ry1=min(aq11×h1y、ap11×h1r)、
h2gy1=min(aq13×h1y、ap13×h1g)、
h2gc1=min(aq14×h1c、ap14×h1g)、
h2bc1=min(aq16×h1c、ap16×h1b)、
h2bm1=min(aq15×h1m、ap15×h1b)、
h2rm1=min(aq12×h1m、ap12×h1r)、
における演算係数aq11〜aq16およびap11〜ap16の値と、
h2ry2=min(aq21×h1y、ap21×h1r)、
h2gy2=min(aq23×h1y、ap23×h1g)、
h2gc2=min(aq24×h1c、ap24×h1g)、
h2bc2=min(aq26×h1c、ap26×h1b)、
h2bm2=min(aq25×h1m、ap25×h1b)、
h2rm2=min(aq22×h1m、ap22×h1r)、
における演算係数aq21〜aq26およびap21〜ap26の値を1とした場合について示している。
【0103】
図8のそれぞれより、各第2の比較データがそれぞれ赤〜イエロー、イエロー〜緑、緑〜シアン、シアン〜青、青〜マゼンタ、マゼンタ〜赤の6つの色相間の中間領域の変化に関与していることが分かる。つまり、赤〜イエローに対しては、b=c=0であり、h2ry1=min(h1y,h1r)=min(min(r,g),min(y、m))およびh2ry2=min(h1y,h1r)=min(min(r,g),min(y、m))を除く他の10項は全てゼロになる。
【0104】
よって、赤〜イエローに対しては、h2ry1およびh2ry2のみが有効な第2の比較データになり、同様に、イエロー〜緑にはh2gy1およびh2gy2、緑〜シアンにはh2gc1およびh2gc2、シアン〜青にはh2bc1およびh2bc2、青〜マゼンタにはh2bm1およびh2bm2、マゼンタ〜赤にはh2rm1およびh2rm2だけが有効な第2の比較データとなる。
【0105】
また、図9(A)〜(F)は上記式(6)および式(1)でのh2ry1、h2rm1、h2gy1、h2gc1、h2bm1、h2bc1、およびh2ry2、h2rm2、h2gy2、h2gc2、h2bm2、h2bc2における演算係数aq11〜aq16、ap11〜ap16、およびaq21〜aq26、ap21〜ap26を変化させた場合の6つの色相と第2の比較データの関係を模式的に示したものであり、図中の破線a1〜a6で示す場合は、aq11〜aq16、aq21〜aq26をap11〜ap16、ap21〜ap26より大きい値とした場合の特性を示し、破線b1〜b6で示す場合は、ap11〜ap16、ap21〜ap26をaq11〜aq16、aq21〜aq26より大きい値とした場合の特性を示している。
【0106】
すなわち、赤〜イエローに対してはh2ry1=min(aq11×h1y,ap11×h1r)およびh2ry2=min(aq21×h1y,ap21×h1r)のみが有効な第2の比較データであるが、例えばaq11とap11の比、もしくはaq21とap21の比を2:1とすると、図9(A)での破線a1のように、ピーク値が赤よりに関与する比較データとなり、赤〜イエローの色相間における赤に近い領域に有効な比較データとすることができる。
【0107】
一方、例えばaq11とap11の比、もしくはaq21とap21の比を1:2とすると、図9(A)での破線b1のような関係となり、ピーク値がイエローよりに関与する比較データとなり、赤〜イエローの色相間におけるイエローに近い領域に有効な比較データとすることができる。
【0108】
同様に、イエロー〜緑にはh2gy1におけるaq13、ap13、もしくはh2gy2におけるaq23、ap23を、緑〜シアンにはh2gc1におけるaq14、ap14、もしくはh2gc2におけるaq24、ap24を、シアン〜青にはh2bc1におけるaq16、ap16、もしくはh2bc2におけるaq26、ap26を、青〜マゼンタにはh2bm1におけるaq15、ap15、もしくはh2bm2におけるaq25、ap25を、マゼンタ〜赤にはh2rm1におけるaq12、ap12、もしくはh2rm2におけるaq22、ap22を変化させることにより、それぞれの色相間の領域においても、その有効となる領域を変化させる
ことができる。
【0109】
図10(a)および(b)は、6つの色相(赤、イエロー、緑、シアン、青、マゼンタ)および色相間領域(赤〜イエロー、イエロー〜緑、緑〜シアン、シアン〜青、青〜マゼンタ、マゼンタ〜赤)と有効な演算項の関係を示している。
【0110】
よって、係数発生手段5において、調整したい色相または色相間の領域に有効な演算項に係わる係数を変化させれば、その着目する色相のみを調整でき、色相間の変化の度合いをも補正することができる。
【0111】
また、多項式演算手段3における演算係数発生手段11での係数を変化させれば、色相間領域での演算項が有効となる領域を他の色相に影響することなく変化させることができる。
【0112】
また、6つの色相間領域のそれぞれにおいて、有効な第2の比較データがそれぞれ2つあるため、例えば、赤〜イエローの色相間における赤に近い領域と、赤〜イエローの色相間におけるイエローに近い領域とを個別に調整可能となるとともに、色変換処理に起因して発生する彩度および輝度の低下を除去することが可能であり、色変換処理によって色再現可能な範囲が狭くなることを防ぐことも可能となる。
【0113】
図11(A)〜(C)は、本発明の実施の形態1による色変換方法および色変換装置において、緑に対して有効となる第1の比較データh1gにかかる演算係数と、イエローに対して有効となる第1の比較データh1yにかかる演算係数を操作することにより色変換処理を行った場合に、マトリクス演算手段4から出力される画像データR1、G1、B1と6つの色相の関係の一例を表す図であり、緑の色相におけるB1信号が増加しており「青っぽい緑色」となるとともに、イエローの色相におけるG1信号が減少しており「赤っぽいイエロー」となる。
【0114】
図11に示す場合においては、緑の色相におけるB1信号を増加させたことにより、イエロー〜緑の領域においては、画像データR1、G1、B1のいずれも0とはならず、イエロー〜緑の領域における無彩色成分の発生が見られる。イエロー〜緑の領域における無彩色成分の発生は、当該領域における彩度の低下につながる。
【0115】
さらに図11に示す場合においては、イエローの色相におけるG1信号を減少させたことにより、イエロー〜緑の領域において画像データR1、G1、B1の最大値の減少が見られる。この画像データR1、G1、B1の最大値の減少は、色変換処理によりイエロー〜緑の領域において、輝度の低下が発生することにつながる。
【0116】
図12(A)〜(C)は、イエロー〜緑の領域に対して有効となる2つの第2の比較データh2gy1およびh2gy2にかかる演算係数をも操作することにより、図11において見られるイエロー〜緑の領域での彩度の低下および輝度の低下を解決した場合における、マトリクス演算手段4から出力される画像データR1、G1、B1と6つの色相の関係の一例を表す図である。
【0117】
図12に示す場合においては、いずれの領域においてもR1、G1、B1の最小値は必ず0となっており、無彩色成分の発生、すなわち彩度の低下は見られない。さらに図12に示す場合においては、いずれの領域においても画像データR1、G1、B1の最大値の減少は見られず、輝度の低下は発生しない。
【0118】
本発明における色変換方法および色変換装置においては、各色相間において有効となる第2の比較データをそれぞれ2つ用いることにより、色変換処理に起因する輝度および彩度の発生を解決することが可能となる。
【0119】
図12に示す場合においては、イエロー〜緑の領域に対して有効となる2つの第2の比較データh2gy1およびh2gy2のうちの一方を無彩色成分の発生、すなわち彩度の低下の解決に用い、他方を最大値の減少、すなわち、輝度の低下の解決に用いることにより、輝度および彩度の低下をともに解決している。
【0120】
ここで、多項式演算手段3において、h2ry1=min(aq11×h1y、ap11×h1r)、h2rm1=min(aq12×h1m、ap12×h1r)、h2gy1=min(aq13×h1y、ap13×h1g)、h2gc1=min(aq14×h1c、ap14×h1g)、h2bm1=min(aq15×h1m、ap15×h1b)、h2bc1=min(aq16×h1c、ap16×h1b)、およびh2ry2=min(aq21×h1y、ap21×h1r)、h2rm2=min(aq22×h1m、ap22×h1r)、h2gy2=min(aq23×h1y、ap23×h1g)、h2gc2=min(aq24×h1c、ap24×h1g)、h2bm2=min(aq25×h1m、ap25×h1b)、h2bc2=min(aq26×h1c、ap26×h1b)における演算係数aq11〜aq16、ap11〜ap16、aq21〜aq26、ap21〜ap26およびの値を1、2、4、8、…の整数値で変化させれば、演算手段10a、10b、10c、10dにおいてビットシフトにより乗算を行うことができる。
【0121】
以上より、特定の色相および色相間領域に関与する第1の比較データおよび第2の比較データに係る係数を変化させることにより、赤、緑、青、イエロー、マゼンタ、シアンの6つの色相を独立に補正可能で、さらに、上記6つの色相間の変化の度合いをも補正できる。よって、変換特性を柔軟に変更できて、しかも大容量メモリを必要としない色変換方法または色変換装置を得ることができる。
【0122】
また、6つの色相間領域のそれぞれにおいて、有効な第2の比較データをそれぞれ2つ用いるため、例えば、赤〜イエローの色相間における赤に近い領域と、赤〜イエローの色相間におけるイエローに近い領域とを個別に調整可能となるとともに、色変換処理に起因して発生する彩度および輝度の低下を除去することが可能であり、色再現可能な範囲を狭めることなく色変換処理を行うことも可能となる。
【0123】
なお、上記実施の形態1では、入力画像データR、G、B(Ri、Gi、Bi)をもとに色相データr、g、bおよびy、m、cと最大値β、最小値αを算出して各色相に係わる演算項を得て、マトリクス演算後、画像データR1、G1、B1を得る場合として説明したが、上記画像データR1、G1、B1を得た後、この得られたR1、G1、B1を補色データC、M、Yに変換してもよく、上記と同様の効果を奏する。
【0124】
また、上記実施の形態1では、6つの色相間領域のそれぞれにおいて、有効な第2の比較データをそれぞれ2つとしているが、必ずしも2つである必要はなく、2つ以上であってもよい。
【0125】
また、上記実施の形態1では、ハードウェアにより図1の構成の処理を行う場合について説明しているが、色変換装置におけるソフトウェアにより同様の処理を行うことができることは言うまでもなく、上記実施の形態1と同様の効果を奏する。
【0126】
さらに、上記実施の形態1では、彩度に対して1次的な演算項である第1の比較データおよび第2の比較データを用いる場合について説明しているが、彩度に対して2次的な演算項となる乗算項をも用いることにより、彩度に対する非線形な特性をも補正することが可能となる。
【0127】
実施の形態2.
実施の形態1では、入力画像データR、G、B(Ri、Gi、Bi)をもとに色相データr、g、bおよびy、m、cと最大値β、最小値αを算出して各色相に係わる演算項を得て、マトリクス演算後、画像データR、G、Bを得る場合として説明したが、画像データR、G、Bを補色データC、M、Yに変換後、入力を補色データC、M、Yとして色変換を行うように構成することもできる。
【0128】
図13はこの発明の実施の形態2による色変換方法および色変換装置の構成の一例を示すブロック図である。図において、3〜6は上記実施の形態1の図1におけるものと同一のものであり、14は補数手段、1bは補数手段14の出力である補色データCi、Mi、Yiの最大値βと最小値αおよび後述する色相データを特定するための識別符号S1を生成するαβ算出手段、2bは上記補数手段14からの補色データC、M、Y(Ci、Mi、Yi)とαβ算出手段1bからの出力より色相データr、g、bおよびy、m、cを算出する色相データ算出手段である。
【0129】
次に、動作を説明する。補数手段14は、画像データR、G、Bを入力とし、1の補数処理した補色データCi、Mi、Yiを出力する。αβ算出手段1bでは、この補色データの最大値βと最小値αおよび各色相データを特定するための識別符号S1を出力する。
【0130】
色相データ算出手段2bは、補色データCi、Mi、Yiと上記αβ算出手段1bからの最大値βと最小値αを入力とし、r=β−Ci、g=β−Mi、b=β−Yiおよびy=Yi−α、m=Mi−α、c=Ci−αの減算処理によって、6つの色相データr、g、bおよびy、m、cを出力する。
【0131】
ここで、これら6つの色相データは、この中の少なくとも2つがゼロになる性質があり、上記αβ算出手段1bから出力される識別符号S1は、6つの色相データのうちゼロとなるデータを特定するものであり、最大値βと最小値αが補色データCi、Mi、Yiのうちどれであるかにより、データを特定する6種類の識別符号となる。
【0132】
この6つの色相データのうちゼロとなるデータと識別符号との関係は上記実施の形態1での説明と同様であるので、詳細な説明は省略する。
【0133】
次に、色相データ算出手段2bからの出力である6つの色相データr、g、bおよびy、m、cは多項式演算手段3へと送られ、また、色相データc、m、yについてはマトリクス演算手段4へも送られる。
【0134】
多項式演算手段3には上記αβ算出手段1bから出力される識別符号S1も入力されており、色相データr、g、b中でゼロでない2つのデータQ1、Q2と、色相データy、m、c中でゼロでない2つのデータP1、P2を選択して演算を行うのであるが、この動作は上記実施の形態1における図2の動作と同一であるので、その詳細な説明は省略する。
【0135】
そして、この多項式演算手段3の出力はマトリクス演算手段4へと送られ、係数発生手段5は、識別符号S1に基づき、多項式データの演算係数U(Fij)と固定係数U(Eij)を発生し、マトリクス演算手段4へと送る。マトリクス演算手段4は、上記色相データ算出手段2bからの色相データc、m、yと多項式演算手段3からの多項式データT2、T4、T5、T6、係数発生手段5からの係数Uを入力とし、下記の式(8)の演算結果を画像データC1、M1、Y1として出力する。
【0136】
【数24】
Figure 0003871495
【0137】
なお、式(8)において(Eij)ではi=1〜3、j=1〜3、(Fij)ではi=1〜3、j=1〜4である。
【0138】
なお、マトリクス演算手段4における動作は、上記実施の形態1における図5において、入力される色相データをc(またはm、y)とし、補色データC1(またはM1、Y1)を演算し出力する場合であり、同様の動作を行うので、その詳細な説明は省略する。
【0139】
合成手段6は、上記マトリクス演算手段4からの補色データC1、M1、Y1と上記αβ算出手段1bからの出力である無彩色データを示す最小値αが入力され、加算を行い、画像データC、M、Yを出力する。よって、上記図13の構成により実現される色変換方法により色変換された画像データC、M、Yを求める演算式は、式(2)となる。
【0140】
【数25】
Figure 0003871495
【0141】
ここで、式(2)において(Eij)ではi=1〜3、j=1〜3、(Fij)ではi=1〜3、j=1〜18であり、
h1r=min(m、y)、h1g=min(y、c)、
h1b=min(c、m)、h1c=min(g、b)、
h1m=min(b、r)、h1y=min(r、g)、
h2ry1=min(aq11×h1y、ap11×h1r)、
h2rm1=min(aq12×h1m、ap12×h1r)、
h2gy1=min(aq13×h1y、ap13×h1g)、
h2gc1=min(aq14×h1c、ap14×h1g)、
h2bm1=min(aq15×h1m、ap15×h1b)、
h2bc1=min(aq16×h1c、ap16×h1b)、
h2ry2=min(aq21×h1y、ap21×h1r)、
h2rm2=min(aq22×h1m、ap22×h1r)、
h2gy2=min(aq23×h1y、ap23×h1g)、
h2gc2=min(aq24×h1c、ap24×h1g)、
h2bm2=min(aq25×h1m、ap25×h1b)、
h2bc2=min(aq26×h1c、ap26×h1b)、
であり、aq11〜aq16、aq21〜aq26、ap11〜ap16、およびap21〜ap26は上記図2における演算係数発生手段11において発生される演算係数である。
【0142】
なお、式(2)の演算項と図13における演算項の数の違いは、図13における演算項がゼロとなるデータを除く画素毎の演算方法を開示しているのに対して、式(2)は画素集合に対する一般式を開示している点にある。つまり、1画素について、式(2)の多項式データについては18個のデータを4個の有効データ(T2、T4、T5、T6)に削減でき、この削減は、色相データの性質を巧みに活用して達成している。
【0143】
また、有効データの組合せは、着目画素の画像データに応じて変わり、全画像データでは全ての多項式データが有効になる。
【0144】
そして、上記式(2)の多項式演算手段3による演算項は、実施の形態1における式(1)の演算項と同一であり、したがって、6つの色相(赤、イエロー、緑、シアン、青、マゼンタ)および色相間領域(赤〜イエロー、イエロー〜緑、緑〜シアン、シアン〜青、青〜マゼンタ、マゼンタ〜赤)と有効な演算項の関係は図10(a)および(b)に示す場合と同一となる。
【0145】
よって、実施の形態1と同様、係数発生手段5において、調整したい色相または色相間の領域に有効な演算項に係わる係数を変化させれば、その着目する色相のみを調整でき、色相間の変化の度合いをも補正することができる。また、多項式演算手段3における演算係数発生手段11での係数を変化させれば、色相間領域での演算項が有効となる領域を他の色相に影響することなく変化させることができる。
【0146】
また、本発明における色変換方法および色変換装置においては、各色相間において有効となる第2の比較データをそれぞれ2つ用いることにより、色変換処理に起因する輝度および彩度の発生を解決することが可能となる。
【0147】
以上より、特定の色相に関与する乗算項および第1の比較データ(h1r、h1g、h1b、h1c、h1m、h1y)に係る係数を変化させることにより、赤、青、緑、イエロー、シアン、マゼンタの6つの色相において着目している色相のみを、他の色相に影響を与えることなく調整でき、更に、第2の比較データ(h1ry1、h2ry2、h2gy1、h2gy2、h2gc1、h2gc2、h2bc1、h2bc2、h2bm1、h2bm2、h2rm1、h2rm2)に係る係数を変化させることにより、赤〜イエロー、イエロー〜緑、緑〜シアン、シアン〜青、青〜マゼンタ、マゼンタ〜赤の6つの色相間の領域を独立に補正して、上記6つの色相間の変化の度合いをも補正できる。
【0148】
よって、変換特性を柔軟に変更できて、しかも大容量メモリを必要としない色変換方法または色変換装置を得ることができる。また、6つの色相間領域のそれぞれにおいて、有効な第2の比較データをそれぞれ2つ用いるため、例えば、赤〜イエローの色相間における赤に近い領域と、赤〜イエローの色相間におけるイエローに近い領域とを個別に調整可能となるとともに、色変換処理に起因して発生する彩度および輝度の低下を除去することが可能であり、色再現可能な範囲を狭めることなく色変換処理を行うことも可能となる。
【0149】
なお、上記実施の形態2では、ハードウェアにより図13の構成の処理を行う場合について説明しているが、色変換装置におけるソフトウェアにより同様の処理を行うことができることは言うまでもなく、上記実施の形態2と同様の効果を奏する。
【0150】
実施の形態3.
実施の形態1ではマトリクス演算手段4における部分的な一構成例を図5に示すブロック図であるとし、式(1)に示すように、色相データと各演算項および無彩色データである入力画像データR、G、B(Ri、Gi、Bi)の最小値αを加算して画像データR、G、Bを出力するよう構成したが、図14に示すように、係数発生手段5bにおいて無彩色データである最小値αに対する係数を発生することにより、無彩色成分を調整するよう構成することもできる。
【0151】
図14はこの発明の実施の形態3による色変換方法および色変換装置の構成の一例を示すブロック図である。図において、1〜3は上記実施の形態1の図1におけるものと同一のものであり、4bはマトリクス演算手段、5bは係数発生手段である。
【0152】
次に動作を説明する。入力画像データRi、Gi、Biよりαβ算出手段1において最大値β、最小値αおよび識別符号S1を求め、色相データ算出手段2により6つの色相データr、g、bおよびy、m、cを算出し、多項式演算手段3において演算項を求める動作は上記実施の形態1と同一であるのでその詳細な説明は省略する。
【0153】
図14の係数発生手段5bは、識別符号S1に基づき、多項式データの演算係数U(Fij)と固定係数U(Eij)を発生し、マトリクス演算手段4bへと送る。マトリクス演算手段4bは、上記色相データ算出手段2からの色相データr、g、bと多項式演算手段3からの多項式データT2、T4、T5、T6、αβ算出手段1からの最小値αおよび係数発生手段5bからの係数Uを入力として演算を行うのであるが、その演算式は下記の式(9)を使用し、無彩色成分を調整する。
【0154】
【数26】
Figure 0003871495
【0155】
なお、式(9)において(Eij)ではi=1〜3、j=1〜3、(Fij)ではi=1〜3、j=1〜5である。
【0156】
ここで、図15はマトリクス演算手段4bの部分的な構成例を示すブロック図であり、図15において、12a〜12e、13a〜13cは上記実施の形態1でのマトリクス演算手段4と同一のものであり、12fは図14におけるαβ算出手段1からの無彩色成分を示す最小値αと係数発生手段5bからの係数Uを入力とし、その乗算を行う乗算手段、13d、13fは加算手段である。
【0157】
次に、図15の動作を説明する。乗算手段12a〜12eは、色相データrと多項式演算手段3からの多項式データT2、T4、T5、T6と係数発生手段5bからの係数U(Eij)およびU(Fij)を入力とし、それぞれの積を出力し、加算手段13a〜13cにおいて、それぞれの積および和を加算するのであるが、その動作は実施の形態1におけるマトリクス演算手段4での動作と同一である。
【0158】
乗算手段12fには、αβ算出手段1からの無彩色成分に相当する入力画像データRi、Gi、Biデータの最小値αと係数発生手段5bからの係数U(Fij)が入力されて乗算を行い、その積を加算手段13dへと出力し、加算手段13dで上記加算手段13cからの出力と加算する。
【0159】
加算手段13dからの出力は加算手段13fへと入力され、加算手段13fで乗算手段12aからの出力と加算して、総和を画像データRの出力R1として出力する。なお、図15の構成例において、色相データrをgまたはbに置換すれば、画像データG1、B1を演算できる。
【0160】
ここで、係数(Eij)と(Fij)は、それぞれの色相データr、g、bに対応した係数が使用され、図15の構成を色相データr、g、bに対し並列に3つ使用すれば、高速なマトリクス演算が可能になる。
【0161】
以上より、マトリクス演算手段4bは各演算項および無彩色データである最小値αに対し係数により演算を行い、色相データと加算して画像データR、G、B(R1、G1、B1)を出力し、このときの画像データを求める演算式は、式(3)となる。
【0162】
【数27】
Figure 0003871495
【0163】
ここで、式(3)において(Eij)ではi=1〜3、j=1〜3、(Fij)i=1〜3、j=1〜19である。
【0164】
なお、式(3)の演算項と図14での演算項の数の違いは、上記実施の形態1の場合と同様に、図14の多項式データ演算手段における演算項がゼロとなるデータを除く画素毎の演算方法を開示しているのに対して、式(3)は画素集合に対する一般式を開示している点にある。つまり、1画素について、式(3)の多項式データについては19個のデータを5個の有効データ(T2、T4、T5、T6、α)に削減でき、この削減は、色相データの性質を巧みに活用して達成している。
【0165】
また、有効データの組合せは、着目画素の画像データに応じて変わり、全画像データでは全ての多項式データが有効になる。
【0166】
ここで、上記最小値αに係わる係数を全て1とすると、無彩色データは変換されず、入力画像データR、G、Bにおける無彩色データと同一の値となる。そして、マトリクス演算において係数を変化させれば、赤みの黒、青みの黒等の選択ができ、無彩色成分を調整できる。
【0167】
以上より、特定の色相に関与する乗算項および第1の比較データ(h1r、h1g、h1b、h1c、h1m、h1y)と、色相間領域に関与する第2の比較データ(h1ry1、h2ry2、h2gy1、h2gy2、h2gc1、h2gc2、h2bc1、h2bc2、h2bm1、h2bm2、h2rm1、h2rm2)それぞれに係る係数を変化させることにより、赤、青、緑、イエロー、シアン、マゼンタの6つの色相および6つの色相間領域において着目している色相または色相間領域のみを、他の色相または色相間領域に影響を与えることなく調整できるのみならず、無彩色データである最小値αに係わる係数を変化させることにより、無彩色成分のみのを色相成分に影響を与えることなく調整することができ、例えば標準の黒、赤みの黒、青みの黒等の選択を行うことができる。
【0168】
また、6つの色相間領域のそれぞれにおいて、有効な第2の比較データをそれぞれ2つ用いるため、例えば、赤〜イエローの色相間における赤に近い領域と、赤〜イエローの色相間におけるイエローに近い領域とを個別に調整可能となるとともに、色変換処理に起因して発生する彩度および輝度の低下を除去することが可能であり、色再現可能な範囲を狭めることなく色変換処理を行うことも可能となる。
【0169】
なお、上記実施の形態3では、マトリクス演算後の画像データR、G、Bを得る場合として説明したが、上記画像データR、G、Bを得た後、得られた画像データR、G、Bを補色データC、M、Yに変換してもよく、マトリクス演算における係数を各色相および色相間領域と無彩色データである最小値αに対して変化できれば、上記と同様の効果を奏する。
【0170】
また、上記実施の形態1と同様、実施の形態3においても、上記の処理を色変換装置におけるソフトウェアにより同様の処理を行うことができることは言うまでもなく、上記実施の形態3と同様の効果を奏する。
【0171】
実施の形態4.
実施の形態2では式(2)に示すように、色相データ(r、g、b、y、m、c)と各演算項および無彩色データである最小値αを加算するよう構成したが、図16に示すように、係数発生手段において無彩色データである最小値αに対する係数を発生することにより、無彩色成分を調整するよう構成することもできる。
【0172】
図16はこの発明の実施形態4による色変換方法および色変換装置の構成の一例を示すブロック図である。図において、14、1b、2bおよび3は上記実施の形態2の図13におけるものと同一のものであり、4b、5bは上記実施の形態3の図14におけるものと同一のものである。
【0173】
次に動作を説明する。画像データR、G、Bは補数手段14に入力され、1の補数処理した補色データCi、Mi、Yiが出力され、αβ算出手段1bで最大値β、最小値αおよび識別符号S1を求め、色相データ算出手段2bにより6つの色相データを算出し、多項式演算手段3において演算項を求める動作は上記実施の形態2の補色データC、M、Yの場合の処理と同一であるので、その詳細な説明は省略する。
【0174】
図16の係数発生手段5bは、識別符号S1に基づき、多項式データの演算係数U(Fij)と固定係数U(Eij)を発生し、マトリクス演算手段4bへと送る。マトリクス演算手段4bは、上記色相データ算出手段2bからの色相データc、m、yと多項式演算手段3からの多項式データT2、T4、T5、T6、αβ算出手段1bからの最小値αおよび係数発生手段5bからの係数Uを入力として演算を行うのであるが、その演算式は下記の式(10)を使用し、無彩色成分を調整する。
【0175】
【数28】
Figure 0003871495
【0176】
なお、式(10)において(Eij)ではi=1〜3、j=1〜3、(Fij)ではi=1〜3、j=1〜5である。
【0177】
なお、マトリクス演算手段4bにおける動作は、上記実施の形態3における図15において、入力される色相データをc(またはm、y)とし、補色データC(またはM、Y)を演算し出力する場合であり、同様の動作を行うので、その詳細な説明は省略する。
【0178】
以上より、マトリクス演算手段4bは各演算項および無彩色データである最小値αに対し係数により演算を行い、色相データと加算して補色データC、M、Yを出力し、このときの画像データを求める演算式は、式(4)となる。
【0179】
【数29】
Figure 0003871495
【0180】
ここで、式(4)において(Eij)ではi=1〜3、j=1〜3、(Fij)i=1〜3、j=1〜19である。
【0181】
なお、式(4)の演算項と図16での演算項の数の違いは、上記実施の形態2の場合と同様に、図16の多項式データ演算手段における演算項がゼロとなるデータを除く画素毎の演算方法を開示しているのに対して、式(4)は画素集合に対する一般式を開示している点にある。つまり、1画素について、式(4)の多項式データについては19個のデータを5個の有効データ(T2、T4、T5、T6、α)に削減でき、この削減は、色相データの性質を巧みに活用して達成している。
【0182】
また、有効データの組合せは、着目画素の画像データに応じて変わり、全画像データでは全ての多項式データが有効になる。
【0183】
ここで、上記最小値αに係わる係数を全て1とすると、無彩色データは変換されず、入力画像データR、G、Bにおける無彩色データと同一の値となる。そして、マトリクス演算において係数を変化させれば、赤みの黒、青みの黒等の選択ができ、無彩色成分を調整できる。
【0184】
以上より、特定の色相に関与する乗算項および第1の比較データと、色相間領域に関与する第2の比較データそれぞれに係る係数を変化させることにより、赤、青、緑、イエロー、シアン、マゼンタの6つの色相および6つの色相間領域において着目している色相または色相間領域のみを、他の色相または色相間領域に影響を与えることなく調整できるのみならす、無彩色データである最小値αに係わる係数を変化させることにより、無彩色成分のみのを色相成分に影響を与えることなく調整することができ、例えば標準の黒、赤みの黒、青みの黒等の選択を行うことができる。
【0185】
また、6つの色相間領域のそれぞれにおいて、有効な第2の比較データをそれぞれ2つ用いるため、例えば、赤〜イエローの色相間における赤に近い領域と、赤〜イエローの色相間におけるイエローに近い領域とを個別に調整可能となるとともに、色変換処理に起因して発生する彩度および輝度の低下を除去することが可能であり、色再現可能な範囲を狭めることなく色変換処理を行うことも可能となる。
【0186】
また、上記実施の形態と同様、実施の形態4においても、上記の処理を色変換装置におけるソフトウェアにより同様の処理を行うことができることは言うまでもなく、上記実施の形態4と同様の効果を奏する。
【0187】
【発明の効果】
以上のように、構成されているのでこの発明による色変換方法および色変換装置は以下のような効果を奏する。
【0188】
本発明に係る色変換装置は、赤、緑、青の画像データR、G、Bを画素毎に色変換する色変換装置において、
(1)画素毎の上記画像データR、G、Bにおける最大値βおよび最小値αを算出する算出手段と、
(2)上記画像データR、G、Bと上記算出手段から出力される上記最大値βおよび最小値αとの減算処理
r=R−α、g=G−α、b=B−α、
y=β−B、m=β−G、c=β−R、
により色相データr、g、bおよびy、m、cを算出する色相データ算出手段と、
(3)上記色相データ算出手段から出力される上記各色相データを用いて第1の比較データ
h1r=min(m、y)、h1g=min(y、c)、
h1b=min(c、m)、h1c=min(g、b)、
h1m=min(b、r)、h1y=min(r、g)、
(min(A、B)はA、Bの最小値を示す。)
を生成する第1の比較データ生成手段と、
(4)該第1の比較データ生成手段からの出力である上記第1の比較データを用いて第2の比較データ
h2ry1=min(aq11×h1y、ap11×h1r)、
h2rm1=min(aq12×h1m、ap12×h1r)、
h2gy1=min(aq13×h1y、ap13×h1g)、
h2gc1=min(aq14×h1c、ap14×h1g)、
h2bm1=min(aq15×h1m、ap15×h1b)、
h2bc1=min(aq16×h1c、ap16×h1b)、
h2ry2=min(aq21×h1y、ap21×h1r)、
h2rm2=min(aq22×h1m、ap22×h1r)、
h2gy2=min(aq23×h1y、ap23×h1g)、
h2gc2=min(aq24×h1c、ap24×h1g)、
h2bm2=min(aq25×h1m、ap25×h1b)、
h2bc2=min(aq26×h1c、ap26×h1b)、
を生成する第2の比較データ生成手段と、
(5)所定のマトリクス係数Eij(i=1〜3、j=1〜3)とFij(i=1〜3、j=1〜18)とを発生する係数発生手段とを備え、
上記第1の比較データ生成手段からの上記第1の比較データ、上記第2の比較データ生成手段からの上記第2の比較データ、上記色相データ算出手段からの上記色相データ、および上記算出手段からの上記最小値αを用いて、上記係数発生手段からの上記係数による以下の式(1)のマトリクス演算を行うことにより色変換された画像データを得ることを特徴とするので、色変換された画像データは赤、青、緑の3色で表現される画像データR、G、Bとして求められ、赤、青、緑、イエロー、シアン、マゼンタの6つの色相あるいは赤〜イエロー、イエロー〜緑、緑〜シアン、シアン〜青、青〜マゼンタ、マゼンタ〜赤の6つの色相間の領域において着目している色相間領域のみを他の色相間領域に影響を与えることなく調整でき、色変換処理に起因して発生する彩度および輝度の低下を除去することが可能であり、色再現可能な範囲を狭めることなく色変換処理を行うことができる色変換処理装置を得ることができる。
【0189】
【数30】
Figure 0003871495
【0190】
本発明に係る色変換装置は、赤、緑、青の画像データR、G、Bを画素毎に色変換する色変換装置において、
(1)画素毎の上記画像データR、G、Bよりシアン、マゼンタ、イエローの補色データC、M、Yを求める手段と、
(2)上記補色データC、M、Yにおける最大値βおよび最小値αを算出する算出手段と、
(3)上記補色データC、M、Yと上記算出手段からの出力である最大値βおよび最小値αとの減算処理
r=β−C、g=β−M、b=β−Y、
y=Y−α、m=M−α、c=C−α、
により色相データr、g、bおよびy、m、cを算出する色相データ算出手段と、
(4)上記色相データ算出手段から出力される上記各色相データを用いて第1の比較データ
h1r=min(m、y)、h1g=min(y、c)、
h1b=min(c、m)、h1c=min(g、b)、
h1m=min(b、r)、h1y=min(r、g)、
(min(A、B)はA、Bの最小値を示す。)
を生成する第1の比較データ生成手段と、
(5)該第1の比較データ生成手段からの出力である上記第1の比較データを用いて第2の比較データ
h2ry1=min(aq11×h1y、ap11×h1r)、
h2rm1=min(aq12×h1m、ap12×h1r)、
h2gy1=min(aq13×h1y、ap13×h1g)、
h2gc1=min(aq14×h1c、ap14×h1g)、
h2bm1=min(aq15×h1m、ap15×h1b)、
h2bc1=min(aq16×h1c、ap16×h1b)、
h2ry2=min(aq21×h1y、ap21×h1r)、
h2rm2=min(aq22×h1m、ap22×h1r)、
h2gy2=min(aq23×h1y、ap23×h1g)、
h2gc2=min(aq24×h1c、ap24×h1g)、
h2bm2=min(aq25×h1m、ap25×h1b)、
h2bc2=min(aq26×h1c、ap26×h1b)、
を生成する第2の比較データ生成手段と、
(6)所定のマトリクス係数Eij(i=1〜3、j=1〜3)とFij(i=1〜3、j=1〜18)とを発生する係数発生手段とを備え、
上記第1の比較データ生成手段からの上記第1の比較データ、上記第2の比較データ生成手段からの上記第2の比較データ、上記色相データ算出手段からの上記色相データ、および上記算出手段からの上記最小値αを用いて、上記係数発生手段からの上記係数による以下の式(2)のマトリクス演算を行うことにより色変換された画像データを得ることを特徴とするので、色変換された画像データはイエロー、マゼンタ、シアンの3色で表現する画像データY、M、Cとして求められ、赤、青、緑、イエロー、シアン、マゼンタの6つの色相あるいは赤〜イエロー、イエロー〜緑、緑〜シアン、シアン〜青、青〜マゼンタ、マゼンタ〜赤の6つの色相間の領域において着目している色相間領域のみを他の色相間領域に影響を与えることなく調整でき、色変換処理に起因して発生する彩度および輝度の低下を除去することが可能であり、色再現可能な範囲を狭めることなく色変換処理を行うことができる色変換処理装置を得ることができる。
【0191】
【数31】
Figure 0003871495
【0192】
本発明に係る色変換装置は、赤、緑、青の画像データR、G、Bを画素毎に色変換する色変換装置において、
(1)画素毎の上記画像データR、G、Bにおける最大値βおよび最小値αを算出する算出手段と、
(2)上記画像データR、G、Bと上記算出手段から出力される上記最大値βおよび最小値αとの減算処理
r=R−α、g=G−α、b=B−α、
y=β−B、m=β−G、c=β−R、
により色相データr、g、bおよびy、m、cを算出する色相データ算出手段と、
(3)上記色相データ算出手段から出力される上記各色相データを用いて第1の比較データ
h1r=min(m、y)、h1g=min(y、c)、
h1b=min(c、m)、h1c=min(g、b)、
h1m=min(b、r)、h1y=min(r、g)、
(min(A、B)はA、Bの最小値を示す。)
を生成する第1の比較データ生成手段と、
(4)該第1の比較データ生成手段からの出力である上記第1の比較データを用いて第2の比較データ
h2ry1=min(aq11×h1y、ap11×h1r)、
h2rm1=min(aq12×h1m、ap12×h1r)、
h2gy1=min(aq13×h1y、ap13×h1g)、
h2gc1=min(aq14×h1c、ap14×h1g)、
h2bm1=min(aq15×h1m、ap15×h1b)、
h2bc1=min(aq16×h1c、ap16×h1b)、
h2ry2=min(aq21×h1y、ap21×h1r)、
h2rm2=min(aq22×h1m、ap22×h1r)、
h2gy2=min(aq23×h1y、ap23×h1g)、
h2gc2=min(aq24×h1c、ap24×h1g)、
h2bm2=min(aq25×h1m、ap25×h1b)、
h2bc2=min(aq26×h1c、ap26×h1b)、
を生成する手段と、
(5)所定のマトリクス係数Eij(i=1〜3、j=1〜3)とFij(i=1〜3、j=1〜19)を発生する係数発生手段とを備え、
上記第1の比較データ生成手段からの上記第1の比較データ、上記第2の比較データ生成手段からの上記第2の比較データ、上記色相データ算出手段からの上記色相データ、および上記算出手段からの上記最小値αを用いて、上記係数発生手段からの上記係数による以下の式(3)のマトリクス演算を行うことにより色変換された画像データを得ることを特徴とするので、色変換された画像データは赤、緑、青の3色で表現する画像データR、G、Bとして求められ、赤、青、緑、イエロー、シアン、マゼンタの6つの色相あるいは赤〜イエロー、イエロー〜緑、緑〜シアン、シアン〜青、青〜マゼンタ、マゼンタ〜赤の6つの色相間の領域において着目している色相間領域のみを他の色相間領域に影響を与えることなく調整でき、色変換処理に起因して発生する彩度および輝度の低下を除去することが可能であり、色再現可能な範囲を狭めることなく色変換処理を行うことができ、さらに、無彩色データである最小値αに係わる係数を変化させることにより、無彩色成分のみのを色相成分に影響を与えることなく調整することができ、例えば標準の黒、赤みの黒、青みの黒等の選択を行うことができる色変換処理装置を得ることができる。
【0193】
【数32】
Figure 0003871495
【0194】
本発明に係る色変換装置は、赤、緑、青の画像データR、G、Bを画素毎に色変換する色変換装置において、
(1)画素毎の上記画像データR、G、Bよりシアン、マゼンタ、イエローの補色データC、M、Yを求める手段と、
(2)上記補色データC、M、Yにおける最大値βと最小値αを算出する算出手段と、
(3)上記補色データC、M、Yと上記算出手段からの出力である最大値βおよび最小値αとの減算処理
r=β−C、g=β−M、b=β−Y、
y=Y−α、m=M−α、c=C−α、
により色相データr、g、bおよびy、m、cを算出する色相データ算出手段と、
(4)上記色相データ算出手段から出力される上記各色相データを用いて第1の比較データ
h1r=min(m、y)、h1g=min(y、c)、
h1b=min(c、m)、h1c=min(g、b)、
h1m=min(b、r)、h1y=min(r、g)、
(min(A、B)はA、Bの最小値を示す。)
を生成する第1の比較データ生成手段と、
(5)該第1の比較データ生成手段からの出力である上記第1の比較データを用いて第2の比較データ
h2ry1=min(aq11×h1y、ap11×h1r)、
h2rm1=min(aq12×h1m、ap12×h1r)、
h2gy1=min(aq13×h1y、ap13×h1g)、
h2gc1=min(aq14×h1c、ap14×h1g)、
h2bm1=min(aq15×h1m、ap15×h1b)、
h2bc1=min(aq16×h1c、ap16×h1b)、
h2ry2=min(aq21×h1y、ap21×h1r)、
h2rm2=min(aq22×h1m、ap22×h1r)、
h2gy2=min(aq23×h1y、ap23×h1g)、
h2gc2=min(aq24×h1c、ap24×h1g)、
h2bm2=min(aq25×h1m、ap25×h1b)、
h2bc2=min(aq26×h1c、ap26×h1b)、
を生成する第2の比較データ生成手段と、
(6)所定のマトリクス係数Eij(i=1〜3、j=1〜3)とFij(i=1〜3、j=1〜19)とを発生する係数発生手段とを備え、
上記第1の比較データ生成手段からの上記第1の比較データ、上記第2の比較データ生成手段からの上記第2の比較データ、上記色相データ算出手段からの上記色相データ、および上記算出手段からの上記最小値αを用いて、上記係数発生手段からの上記係数による以下の式(4)のマトリクス演算を行うことにより色変換された画像データを得ることを特徴とするので、色変換された画像データはイエロー、マゼンタ、シアンの3色で表現する画像データY、M、Cとして求められ、赤、青、緑、イエロー、シアン、マゼンタの6つの色相あるいは赤〜イエロー、イエロー〜緑、緑〜シアン、シアン〜青、青〜マゼンタ、マゼンタ〜赤の6つの色相間の領域において着目している色相間領域のみを他の色相間領域に影響を与えることなく調整でき、色変換処理に起因して発生する彩度および輝度の低下を除去することが可能であり、色再現可能な範囲を狭めることなく色変換処理を行うことができ、さらに、無彩色データである最小値αに係わる係数を変化させることにより、無彩色成分のみのを色相成分に影響を与えることなく調整することができ、例えば標準の黒、赤みの黒、青みの黒等の選択を行うことができる色変換処理装置を得ることができる。
【0195】
【数33】
Figure 0003871495
【0196】
また、本発明に係る色変換装置は、第2の比較データ生成手段における、各第1の比較データに所定の演算係数aq11〜aq16、aq21〜aq26、ap11〜ap16、およびap21〜ap26を乗算する乗算手段が、演算係数aq11〜aq16、aq21〜aq26、ap11〜ap16、およびap21〜ap26を1、2、4、8、…となる整数値とし、ビットシフトにより上記各第1の比較データと上記演算係数との演算を行うことを特徴とするので、乗算処理をビットシフトに置き換えることにより処理が簡単化された色変換処理装置を得ることができる。
【0197】
また、本発明に係る色変換装置は、算出手段は、画像データR、G、Bまたは補色データC、M、Yを用いて最大値βおよび最小値αを算出するとともに、最大および最小となる上記画像データまたは上記補色データの種類に応じて、ゼロとなる色相データを特定するための識別符号を出力する識別符号出力手段を備え、
上記算出手段から出力される識別符号に応じて、第1の比較データ生成手段において第1の比較データを生成し、係数発生手段においてマトリクス係数を発生し、該マトリクス係数によるマトリクス演算を行うことにより色変換された画像データまたは補色データを得ることを特徴とするので、各画素においてマトリクス演算を行う演算項の数を削減することが可能な色変換処理装置を得ることができる。
【0198】
本発明に係る色変換方法は、赤、緑、青の画像データR、G、Bを画素毎に色変換する色変換方法において、
(1)画素毎の上記画像データR、G、Bにおける最大値βおよび最小値αを算出する算出ステップ、
(2)上記画像データR、G、Bと上記算出ステップによって得られた上記最大値βおよび最小値αとの減算処理
r=R−α、g=G−α、b=B−α、
y=β−B、m=β−G、c=β−R、
により色相データr、g、bおよびy、m、cを算出する色相データ算出ステップと、
(3)上記色相データ算出ステップによって得られる上記各色相データを用いて第1の比較データ
h1r=min(m、y)、h1g=min(y、c)、
h1b=min(c、m)、h1c=min(g、b)、
h1m=min(b、r)、h1y=min(r、g)、
(min(A、B)はA、Bの最小値を示す。)
を生成する第1の比較データ生成ステップと、
(4)該第1の比較データ生成ステップによって得られる上記第1の比較データを用いて第2の比較データ
h2ry1=min(aq11×h1y、ap11×h1r)、
h2rm1=min(aq12×h1m、ap12×h1r)、
h2gy1=min(aq13×h1y、ap13×h1g)、
h2gc1=min(aq14×h1c、ap14×h1g)、
h2bm1=min(aq15×h1m、ap15×h1b)、
h2bc1=min(aq16×h1c、ap16×h1b)、
h2ry2=min(aq21×h1y、ap21×h1r)、
h2rm2=min(aq22×h1m、ap22×h1r)、
h2gy2=min(aq23×h1y、ap23×h1g)、
h2gc2=min(aq24×h1c、ap24×h1g)、
h2bm2=min(aq25×h1m、ap25×h1b)、
h2bc2=min(aq26×h1c、ap26×h1b)、
を生成する第2の比較データ生成ステップと、
(5)所定のマトリクス係数Eij(i=1〜3、j=1〜3)とFij(i=1〜3、j=1〜18)とを発生する係数発生ステップとを含み、
上記第1の比較データ生成ステップによって得られる上記第1の比較データ、上記第2の比較データ生成ステップによって得られる上記第2の比較データ、上記色相データ算出ステップによって得られる上記色相データ、および上記算出ステップによって得られる上記最小値αを用いて、上記係数発生ステップによって発生される上記係数による以下の式(1)のマトリクス演算を行うことにより色変換された画像データを得ることを特徴とするので、色変換された画像データは赤、青、緑の3色で表現される画像データR、G、Bとして求められ、赤、青、緑、イエロー、シアン、マゼンタの6つの色相あるいは赤〜イエロー、イエロー〜緑、緑〜シアン、シアン〜青、青〜マゼンタ、マゼンタ〜赤の6つの色相間の領域において着目している色相間領域のみを他の色相間領域に影響を与えることなく調整でき、色変換処理に起因して発生する彩度および輝度の低下を除去することが可能であり、色再現可能な範囲を狭めることなく色変換処理を行うことができる色変換処理方法を実現することができる。
【0199】
【数34】
Figure 0003871495
【0200】
本発明に係る色変換方法は、赤、緑、青の画像データR、G、Bを画素毎に色変換する色変換方法において、
(1)画素毎の上記画像データR、G、Bよりシアン、マゼンタ、イエローの補色データC、M、Yを求めるステップと、
(2)上記補色データC、M、Yにおける最大値βおよび最小値αを算出する算出ステップと、
(3)上記補色データC、M、Yと上記算出ステップによって得られた最大値βおよび最小値αとの減算処理
r=β−C、g=β−M、b=β−Y、
y=Y−α、m=M−α、c=C−α、
により色相データr、g、bおよびy、m、cを算出する色相データ算出ステップと、
(4)該色相データ算出ステップによって得られる上記各色相データを用いて第1の比較データ
h1r=min(m、y)、h1g=min(y、c)、
h1b=min(c、m)、h1c=min(g、b)、
h1m=min(b、r)、h1y=min(r、g)、
(min(A、B)はA、Bの最小値を示す。)
を生成する第1の比較データ生成ステップと、
(5)該第1の比較データ生成ステップによって得られる上記第1の比較データを用いて第2の比較データ
h2ry1=min(aq11×h1y、ap11×h1r)、
h2rm1=min(aq12×h1m、ap12×h1r)、
h2gy1=min(aq13×h1y、ap13×h1g)、
h2gc1=min(aq14×h1c、ap14×h1g)、
h2bm1=min(aq15×h1m、ap15×h1b)、
h2bc1=min(aq16×h1c、ap16×h1b)、
h2ry2=min(aq21×h1y、ap21×h1r)、
h2rm2=min(aq22×h1m、ap22×h1r)、
h2gy2=min(aq23×h1y、ap23×h1g)、
h2gc2=min(aq24×h1c、ap24×h1g)、
h2bm2=min(aq25×h1m、ap25×h1b)、
h2bc2=min(aq26×h1c、ap26×h1b)、
を生成する第2の比較データ生成ステップと、
(6)所定のマトリクス係数Eij(i=1〜3、j=1〜3)とFij(i=1〜3、j=1〜18)とを発生する係数発生ステップとを含み、
上記第1の比較データ生成ステップによって得られる上記第1の比較データ、上記第2の比較データ生成ステップによって得られる上記第2の比較データ、上記色相データ算出ステップによって得られる上記色相データ、および上記算出ステップによって得られる上記最小値αを用いて、上記係数発生ステップによって発生される上記係数による以下の式(2)のマトリクス演算を行うことにより色変換された画像データを得ることを特徴とするので、色変換された画像データはイエロー、マゼンタ、シアンの3色で表現する画像データY、M、Cとして求められ、赤、青、緑、イエロー、シアン、マゼンタの6つの色相あるいは赤〜イエロー、イエロー〜緑、緑〜シアン、シアン〜青、青〜マゼンタ、マゼンタ〜赤の6つの色相間の領域において着目している色相間領域のみを他の色相間領域に影響を与えることなく調整でき、色変換処理に起因して発生する彩度および輝度の低下を除去することが可能であり、色再現可能な範囲を狭めることなく色変換処理を行うことができる色変換処理方法を実現することができる。
【0201】
【数35】
Figure 0003871495
【0202】
本発明に係る色変換方法は、赤、緑、青の画像データR、G、Bを画素毎に色変換する色変換方法において、
(1)画素毎の上記画像データR、G、Bにおける最大値βおよび最小値αを算出する算出ステップと、
(2)上記画像データR、G、Bと上記算出ステップによって得られる上記最大値βおよび最小値αとの減算処理
r=R−α、g=G−α、b=B−α、
y=β−B、m=β−G、c=β−R、
により色相データr、g、bおよびy、m、cを算出する色相データ算出ステップと、
(3)上記色相データ算出ステップによって得られる上記各色相データを用いて第1の比較データ
h1r=min(m、y)、h1g=min(y、c)、
h1b=min(c、m)、h1c=min(g、b)、
h1m=min(b、r)、h1y=min(r、g)、
(min(A、B)はA、Bの最小値を示す。)
を生成する第1の比較データ生成ステップと、
(4)該第1の比較データ生成ステップによって得られる上記第1の比較データを用いて第2の比較データ
h2ry1=min(aq11×h1y、ap11×h1r)、
h2rm1=min(aq12×h1m、ap12×h1r)、
h2gy1=min(aq13×h1y、ap13×h1g)、
h2gc1=min(aq14×h1c、ap14×h1g)、
h2bm1=min(aq15×h1m、ap15×h1b)、
h2bc1=min(aq16×h1c、ap16×h1b)、
h2ry2=min(aq21×h1y、ap21×h1r)、
h2rm2=min(aq22×h1m、ap22×h1r)、
h2gy2=min(aq23×h1y、ap23×h1g)、
h2gc2=min(aq24×h1c、ap24×h1g)、
h2bm2=min(aq25×h1m、ap25×h1b)、
h2bc2=min(aq26×h1c、ap26×h1b)、
を生成する第2の比較データ生成ステップと、
(5)所定のマトリクス係数Eij(i=1〜3、j=1〜3)とFij(i=1〜3、j=1〜19)を発生する係数発生ステップとを含み、
上記第1の比較データ生成ステップによって得られる上記第1の比較データ、上記第2の比較データ生成ステップによって得られる上記第2の比較データ、上記色相データ算出ステップによって得られる上記色相データ、および上記算出ステップによって得られる上記最小値αを用いて、上記係数発生ステップによって得られる上記係数による以下の式(3)のマトリクス演算を行うことにより色変換された画像データを得ることを特徴とするので、色変換された画像データは赤、緑、青の3色で表現する画像データR、G、Bとして求められ、赤、青、緑、イエロー、シアン、マゼンタの6つの色相あるいは赤〜イエロー、イエロー〜緑、緑〜シアン、シアン〜青、青〜マゼンタ、マゼンタ〜赤の6つの色相間の領域において着目している色相間領域のみを他の色相間領域に影響を与えることなく調整でき、色変換処理に起因して発生する彩度および輝度の低下を除去することが可能であり、色再現可能な範囲を狭めることなく色変換処理を行うことができ、さらに、無彩色データである最小値αに係わる係数を変化させることにより、無彩色成分のみのを色相成分に影響を与えることなく調整することができ、例えば標準の黒、赤みの黒、青みの黒等の選択を行うことができる色変換処理方法を実現することができる。
【0203】
【数36】
Figure 0003871495
【0204】
本発明に係る色変換方法は、赤、緑、青の画像データR、G、Bを画素毎に色変換する色変換方法において、
(1)画素毎の上記画像データR、G、Bよりシアン、マゼンタ、イエローの補色データC、M、Yを求めるステップと、
(2)上記補色データC、M、Yにおける最大値βと最小値αを算出する算出ステップと、
(3)上記補色データC、M、Yと上記算出ステップによって得られる最大値βおよび最小値αとの減算処理
r=β−C、g=β−M、b=β−Y、
y=Y−α、m=M−α、c=C−α、
により色相データr、g、bおよびy、m、cを算出する色相データ算出ステップと、
(4)上記色相データ算出ステップによって得られる上記各色相データを用いて第1の比較データ
h1r=min(m、y)、h1g=min(y、c)、
h1b=min(c、m)、h1c=min(g、b)、
h1m=min(b、r)、h1y=min(r、g)、
(min(A、B)はA、Bの最小値を示す。)
を生成する第1の比較データ生成ステップと、
(5)該第1の比較データ生成ステップによって得られる上記第1の比較データを用いて第2の比較データ
h2ry1=min(aq11×h1y、ap11×h1r)、
h2rm1=min(aq12×h1m、ap12×h1r)、
h2gy1=min(aq13×h1y、ap13×h1g)、
h2gc1=min(aq14×h1c、ap14×h1g)、
h2bm1=min(aq15×h1m、ap15×h1b)、
h2bc1=min(aq16×h1c、ap16×h1b)、
h2ry2=min(aq21×h1y、ap21×h1r)、
h2rm2=min(aq22×h1m、ap22×h1r)、
h2gy2=min(aq23×h1y、ap23×h1g)、
h2gc2=min(aq24×h1c、ap24×h1g)、
h2bm2=min(aq25×h1m、ap25×h1b)、
h2bc2=min(aq26×h1c、ap26×h1b)、
を生成する第2の比較データ生成ステップと、
(6)所定のマトリクス係数Eij(i=1〜3、j=1〜3)とFij(i=1〜3、j=1〜19)とを発生する係数発生ステップとを含み、
上記第1の比較データ生成ステップによって得られる上記第1の比較データ、上記第2の比較データ生成ステップによって得られる上記第2の比較データ、上記色相データ算出ステップによって得られる上記色相データ、および上記算出ステップによって得られる上記最小値αを用いて、上記係数発生ステップによって発生される上記係数による以下の式(4)のマトリクス演算を行うことにより色変換された画像データを得ることを特徴とするので、色変換された画像データはイエロー、マゼンタ、シアンの3色で表現する画像データY、M、Cとして求められ、赤、青、緑、イエロー、シアン、マゼンタの6つの色相あるいは赤〜イエロー、イエロー〜緑、緑〜シアン、シアン〜青、青〜マゼンタ、マゼンタ〜赤の6つの色相間の領域において着目している色相間領域のみを他の色相間領域に影響を与えることなく調整でき、色変換処理に起因して発生する彩度および輝度の低下を除去することが可能であり、色再現可能な範囲を狭めることなく色変換処理を行うことができ、さらに、無彩色データである最小値αに係わる係数を変化させることにより、無彩色成分のみのを色相成分に影響を与えることなく調整することができ、例えば標準の黒、赤みの黒、青みの黒等の選択を行うことができる色変換処理方法を実現することができる。
【0205】
【数37】
Figure 0003871495
【0206】
また、本発明に係る色変換方法は、第2の比較データ生成ステップに含まれる各第1の比較データに所定の演算係数aq11〜aq16、aq21〜aq26、ap11〜ap16、およびap21〜ap26を乗算する乗算ステップにおいて、演算係数aq11〜aq16、aq21〜aq26、ap11〜ap16、およびap21〜ap26を1、2、4、8、…となる整数値とし、ビットシフトにより上記各第1の比較データと上記演算係数との演算を行うことを特徴とするので、乗算処理をビットシフトに置き換えることにより処理が簡単化された色変換処理方法を実現することができる。
【0207】
また、本発明に係る色変換方法は、算出ステップは、画像データR、G、Bまたは補色データC、M、Yを用いて最大値βおよび最小値αを算出するとともに、最大および最小となる上記画像データまたは上記補色データの種類に応じて、ゼロとなる色相データを特定するための識別符号を出力する識別符号出力ステップを含み、
上記算出ステップによって出力される識別符号に応じて、第1の比較データ生成ステップにおいて第1の比較データを生成し、係数発生ステップにおいてマトリクス係数を発生し、該マトリクス係数によるマトリクス演算を行うことにより色変換された画像データまたは補色データを得ることを特徴とするので、各画素においてマトリクス演算を行う演算項の数を削減することが可能な色変換処理方法を実現することができる。
【図面の簡単な説明】
【図1】 実施の形態1による色変換装置の構成の一例を示すブロック図である。
【図2】 実施の形態1による色変換装置における多項式演算手段の構成の一例を示すブロック図である。
【図3】 実施の形態1による色変換装置における識別符号、最大値、最小値および0となる色相データの関係の一例を示す説明図である。
【図4】 実施の形態1による色変換装置におけるゼロ除去手段の動作を説明するための説明図である。
【図5】 実施の形態1による色変換装置におけるマトリクス演算手段の一部分の構成の一例を示すブロック図である。
【図6】 6つの色相と色相データの関係を模式的に示した説明図である。
【図7】 実施の形態1による色変換装置における第1の比較データと色相との関係を模式的に示した説明図である。
【図8】 実施の形態1による色変換装置における第2の比較データと色相との関係を模式的に示した図である。
【図9】 実施の形態1による色変換装置における多項式演算手段の演算係数発生手段において、演算係数を変化させた場合の比較データによる演算項と色相の関係を模式的に示した説明図である。
【図10】 実施の形態1による色変換装置において各色相および色相間の領域に関与し、有効となる演算項の関係を示した説明図である。
【図11】 実施の形態1による色変換装置においてh1gおよびh1yにかかる演算係数を操作することにより色変換処理を行った場合のR1、G1、B1および6つの色相の関係の一例を表す説明図である。
【図12】 実施の形態1による色変換装置においてh1g、h1y、h2gy1、h2gy2にかかる演算係数を操作することにより色変換処理を行った場合のR1、G1、B1および6つの色相の関係の一例を表す説明図である。
【図13】 実施の形態2による色変換装置の構成の一例を示すブロック図である。
【図14】 実施の形態3による色変換装置の構成の一例を示すブロック図である。
【図15】 実施の形態3による色変換装置におけるマトリクス演算手段の一部分の構成の一例を示す説明図である。
【図16】 実施の形態4による色変換装置の構成の一例を示すブロック図である。
【図17】 従来の色変換装置の構成の一例を示すブロック図である。
【図18】 従来の色変換装置における多項式演算手段の構成の一例を示すブロック図である。
【図19】 従来の色変換装置における6つの色相と色相データの関係を模式的に示した説明図である。
【図20】 従来の色変換装置における6つの色相と乗算項の関係を模式的に示した説明図である。
【図21】 従来の色変換装置における6つの色相と第1の比較データの関係を模式的に示した説明図である。
【図22】 従来の色変換装置における6つの色相と第2の比較データの関係を模式的に示した説明図である。
【図23】 従来の色変換装置において色変換処理を行わない場合におけるR1、G1、B1と6つの色相の関係を表す説明図である。
【図24】 従来の色変換装置においてh1gにかかる演算係数を操作することにより色変換処理を行った場合におけるR1、G1、B1と6つの色相の関係の一例を表す説明図である。
【図25】 従来の色変換装置においてh1g、h2gyにかかる演算係数を操作することにより色変換処理を行った場合におけるR1、G1、B1と6つの色相の関係の一例を表す説明図である。
【図26】 従来の色変換装置においてh1g、h1yにかかる演算係数を操作することにより色変換処理を行った場合におけるR1、G1、B1と6つの色相の関係の一例を表す説明図である。
【図27】 従来の色変換装置においてh1g、h1y、h2gyにかかる演算係数を操作することにより色変換処理を行った場合におけるR1、G1、B1と6つの色相の関係の一例を表す説明図である。
【図28】 従来の色変換装置においてh1g、h1y、h2gyにかかる演算係数を操作することにより色変換処理を行った場合におけるR1、G1、B1と6つの色相の関係の別の一例を表す説明図である。
【符号の説明】
1、 1b αβ算出手段、2、2b 色相データ算出手段、3 多項式演算手段、4、4b マトリクス演算手段、5、5b 係数発生手段、6 合成手段、7 ゼロ除去手段、9a、9b、9c、9d 最小値選択手段、10a、10b、10c、10d 演算手段、11 演算係数発生手段、12a〜12f 乗算手段、13a〜13f 加算手段、14 補数手段、101 αβ算出手段、102 色相データ算出手段、103 多項式演算手段、104 マトリクス演算手段、105 係数発生手段、106 合成手段、107 ゼロ除去手段、108a、108b 乗算手段、109a、109b、109c 最小値選択手段、110a、110b 演算手段、111 演算係数発生手段。[0001]
BACKGROUND OF THE INVENTION
The present invention relates to data processing used for full-color printing-related devices such as printers, video printers, and scanners, image processing devices that create computer graphics images, display devices such as monitors, and the like. The present invention relates to a color conversion method and apparatus for performing color conversion processing on image data expressed in three colors according to a device used.
[0002]
[Prior art]
Color conversion in printing is an indispensable technique for correcting a deterioration in image quality caused by color mixing due to the fact that ink is not a pure color or non-linearity of printing, and outputting a printed image having good color reproducibility. Also in a display device such as a monitor, when an input color signal is displayed, a color conversion process is performed in order to output (display) an image having a desired color reproducibility in accordance with a use condition or the like.
[0003]
Conventionally, there are two types of color conversion methods in the above cases: a table conversion method and a matrix operation method.
[0004]
In the table conversion method, image data expressed in red, green, and blue (hereinafter referred to as “R, G, B”) is input, and R, G, B images stored in advance in a memory such as a ROM. This is a method for obtaining data or complementary color data of yellow, magenta, and cyan (hereinafter referred to as “Y, M, C”). Since any conversion characteristic can be adopted, color conversion with excellent color reproducibility can be executed. There are advantages.
[0005]
However, a simple configuration that stores data for each combination of image data results in a large-capacity memory of about 400 Mbit. For example, Japanese Patent Laid-Open No. 63-227181 discloses a method for compressing memory capacity, but it is still about 5 Mbit. Therefore, since this system requires a large-capacity memory for each conversion characteristic, there are problems that it is difficult to make an LSI and that it is difficult to flexibly cope with changes in usage conditions and the like.
[0006]
On the other hand, in the matrix calculation method, for example, when obtaining Y, M, and C print data from R, G, and B image data, the following expression (27) is a basic calculation expression.
[0007]
[Equation 9]
Figure 0003871495
[0008]
Here, i = 1 to 3 and j = 1 to 3.
[0009]
However, the simple linear calculation of Expression (27) cannot realize good conversion characteristics due to nonlinearity such as printing.
[0010]
A method for improving the above conversion characteristics is disclosed in the color correction arithmetic device disclosed in Japanese Examined Patent Publication No. 2-30226, and employs a matrix arithmetic expression of the following expression (28).
[0011]
[Expression 10]
Figure 0003871495
[0012]
Here, N is a constant, i = 1 to 3, and j = 1 to 10.
[0013]
Since the above equation (28) directly uses image data in which an achromatic color component and a color component are mixed, mutual interference of computation occurs. That is, when one coefficient is changed, there is a problem that it affects other than the component or hue of interest and a good conversion characteristic cannot be realized.
[0014]
The color conversion method described in Japanese Patent Application No. 11-18217 by the present applicant discloses this solution. FIG. 17 is a block circuit diagram showing a color conversion method for converting input image data Ri, Gi, Bi into output image data R, G, B described in Japanese Patent Application No. 11-18217. In FIG. 17, reference numeral 101 denotes αβ calculation means, 102 denotes hue data calculation means, 103 denotes polynomial calculation means, 104 denotes matrix calculation means, 105 denotes coefficient generation means, and 106 denotes synthesis means.
[0015]
The αβ calculating means 101 calculates the maximum value β and the minimum value α of the input image data R, G, B, and generates and outputs an identification code S1 for specifying each data. Further, the hue data calculation unit 102 calculates the hue data r, g, b, y, m, c from the image data R, G, B and the output from the αβ calculation unit 101.
[0016]
FIG. 18 is a block diagram showing an example of the configuration of the polynomial calculation means 103. In the figure, 107 is a zero removing means for removing data that becomes zero out of inputted hue data r, g, b, y, m, c, 108a and 108b are multiplying means, 109a, 109b and 109c are inputted. Minimum value selection means for selecting and outputting the minimum value of data, 111 is a calculation coefficient generation means for generating and outputting a calculation coefficient based on the identification code S1 from the αβ calculation means 1, 110a and 110b are the calculation coefficient generation means 111 is an arithmetic means for multiplying the arithmetic coefficient indicated by the output from 111 and the output of the minimum value selecting means 109a and 109b.
[0017]
Next, the operation will be described. The input image data R, G, B (Ri, Gi, Bi) is sent to the αβ calculation means 101 and the hue data calculation means 102, and the αβ calculation means 101 determines the maximum value of the input image data Ri, Gi, Bi. β and the minimum value α are calculated and output, and an identification code S1 for specifying the maximum value data and the minimum value data among the input image data Ri, Gi, Bi is generated and output. The hue data calculation unit 102 receives the image data Ri, Gi, Bi and the maximum value β and the minimum value α, which are outputs from the αβ calculation unit 101, and receives r = Ri−α, g = Gi−α, b = Bi-α and y = β-Bi, m = β-Gi, c = β-Ri are subtracted, and six hue data r, g, b, y, m, and c are output.
[0018]
At this time, the maximum value β and the minimum value α calculated by the αβ calculating unit 101 are β = MAX (Ri, Gi, Bi), α = MIN (Ri, Gi, Bi), and the hue data calculating unit 102. The six hue data r, g, b, y, m, and c calculated in the above are r = Ri−α, g = Gi−α, b = Bi−α, and y = β−Bi, m = β−Gi. , C = β-Ri is obtained by subtraction processing, and these six hue data have a property that at least two of them become zero. For example, when the maximum value β is Ri and the minimum value α is Gi (β = Ri, α = Gi), g = 0 and c = 0 are obtained by the above subtraction process, and the maximum value β is Ri and minimum. When the value α is Bi (β = Ri, α = Bi), b = 0 and c = 0. That is, depending on the combination of Ri, Gi, and Bi that is the maximum and minimum, at least one of r, g, and b and one of y, m, and c will be zero in total. .
[0019]
Then, the αβ calculating means 101 generates and outputs an identification code S1 that specifies zero data among the six hue data. The identification code S1 can generate six types of identification codes S1 for specifying data depending on which of the maximum value β and the minimum value α is Ri, Gi, or Bi.
[0020]
Next, the six hue data r, g, b and y, m, c, which are outputs from the hue data calculation means 102, are sent to the polynomial calculation means 103, and for r, g, b, matrix calculation means. 104 is also sent. The identification code S1 output from the αβ calculating means 101 is also input to the polynomial calculating means 103, and two non-zero data Q1, Q2 in r, g, b and non-zero in y, m, c Two data items P1 and P2 are selected for calculation, and multiplication terms T3 = Q1 × Q2 and T1 = P1 × P2, first comparison data T4 = min (Q1, Q2) and T2 = min (P1, P2) Second comparison data T5 = min (ap × T2, aq × T4) is calculated. Here, ap and aq are calculation coefficients concerning the first comparison data T2 and T4. The polynomial data T 1, T 2, T 3, T 4, and T 5 described above are the output of the polynomial calculation means 103. The output of the polynomial calculation means 103 is sent to the matrix calculation means 104.
[0021]
On the other hand, the coefficient generating means 105 in FIG. 17 generates an operation coefficient U (Fij) and a fixed coefficient U (Eij) of polynomial data based on the identification code S1, and sends them to the matrix operation means 104. The matrix calculation means 104 receives the hue data r, g, b from the hue data calculation means 102, the polynomial data T1 to T5 from the polynomial calculation means 103, and the coefficient U from the coefficient generation means 105 as inputs. 101) is output as image data R1, G1, B1.
[0022]
[Expression 11]
Figure 0003871495
[0023]
In equation (101), i = 1 to 3, j = 1 to 3 in (Eij), i = 1 to 3, and j = 1 to 5 in (Fij).
[0024]
The synthesizing unit 106 receives the image data R1, G1, B1 from the matrix calculating unit 104 and the minimum value α indicating the achromatic color data that is output from the αβ calculating unit 101, performs addition, and performs image data R, G and B are output. Therefore, an arithmetic expression for obtaining the image data R, G, and B color-converted by the color conversion method having the configuration shown in FIG. 17 is Expression (102).
[0025]
[Expression 12]
Figure 0003871495
[0026]
Here, in (Eij), i = 1 to 3, j = 1 to 3, and in (Fij), i = 1 to 3, and j = 1 to 18, h1r = min (m, y), h1g = min ( y, c), h1b = min (c, m), h1c = min (g, b), h1m = min (b, r), h1y = min (r, g), h2ry = min (aq1 × h1y, ap1 × h1r), h2rm = min (aq2 × h1m, ap2 × h1r), h2gy = min (aq3 × h1y, ap3 × h1g), h2gc = min (aq4 × h1c, ap4 × h1g), h2bm = min (aq5 × h1m) , Ap5 × h1b), h2bc = min (aq6 × h1c, ap6 × h1b), and aq1 to aq6 and ap1 to ap6 are calculation coefficients related to the first comparison data.
[0027]
Note that the difference in the number of operation terms in equation (102) and the number of operation terms in the configuration shown in FIG. 17 is disclosed by a calculation method for each pixel excluding data in which the operation term in the configuration shown in FIG. On the other hand, the expression (102) discloses a general expression for a pixel set. That is, for one pixel, 18 data can be reduced to 5 valid data (T1 to T5) for the polynomial data of equation (102).
[0028]
The combination of valid data changes according to the image data of the pixel of interest, and all polynomial data is valid for all image data.
[0029]
FIGS. 19A to 19F schematically show relationships between six hues (red, yellow, green, cyan, blue, magenta) and hue data y, m, c, r, g, b. Each hue data is associated with three hues (for example, hue data y is associated with red, yellow and green, and hue data m is associated with blue, magenta and red). 20A to 20F schematically show the relationship between six hues and multiplication terms y × m, r × g, c × y, g × b, m × c, and b × r. It can be seen that each multiplication term is associated with a specific hue (for example, the multiplication term y × m is associated with red and r × g is associated with yellow). Hereinafter, * in the figure means multiplication (x) unless otherwise specified.
[0030]
FIGS. 21A to 21F schematically show the relationship between the six hues and the first comparison data h1r, h1y, h1g, h1c, h1b, and h1m. It can be seen that it is related to a specific hue (for example, the first comparison data h1r is related to red and h1y is related to yellow).
[0031]
Further, FIGS. 22A to 22F schematically show the relationship between the six hues and the second comparison data h2ry, h2gy, h2gc, h2bc, h2bm, h2rm, and each second comparison. It can be seen that the data is involved in the change of the intermediate region between the six hues of red to yellow, yellow to green, green to cyan, cyan to blue, blue to magenta, magenta to red (for example, the second comparison Data h2ry is associated with red to yellow, and h2gy is associated with yellow to green).
[0032]
As described above, according to the color conversion method in the configuration shown in FIG. 17 described above, by changing the coefficient relating to the multiplication term related to the specific hue and the first comparison data, It can be adjusted without affecting the hue.
[0033]
Further, by changing the coefficient related to the second comparison data, it is possible to correct the degree of change between the six hues of red, blue, green, yellow, cyan, and magenta. When expansion or reduction of the area occupied by the color space of a specific hue is desired, specifically, when expansion or reduction of the area occupied by red is desired in a color space changing from magenta to red to yellow It is possible to satisfy this requirement.
[0034]
Further, the multiplication term is a secondary calculation term for saturation, and the first comparison data and the second comparison data are primary calculation terms for saturation. Therefore, by using both the multiplication term, the first comparison data, and the second comparison data, it is possible to correct nonlinear characteristics with respect to saturation.
[0035]
The second comparison data has the following effects. 23A to 23C show the case where the fixed coefficient Eij of the polynomial data is set to the value shown in the equation (103) and the calculation coefficients Fij are all set to 0 in the color conversion method in the configuration shown in FIG. It is a figure showing the relationship between image data R1, G1, B1 output from the matrix calculating means 104, and six hues when not performing a color conversion process.
[0036]
[Formula 13]
Figure 0003871495
[0037]
23A to 23C, at least one of the image data R1, G1, and B1 is 0 in each hue (for example, cyan is 0 in the image data R1, and magenta is in G1. 0). This is because the hue data calculation means 102 subtracts the minimum value α from the input image data Ri, Gi, Bi. The minimum value α is an achromatic component in the input image data Ri, Gi, Bi. 23A to 23C, the maximum values of the image data R1, G1, and B1 are constant values in each hue.
[0038]
FIGS. 24A to 24C show a color conversion method according to the configuration shown in FIG. 17 in which a color conversion process is performed by manipulating a calculation coefficient relating to the first comparison data h1g effective for green. Is a diagram showing an example of the relationship between the image data R1, G1, B1 output from the matrix calculation means 104 and the six hues in the case where the B1 signal in the green hue is increased, and “bluish green” Become.
[0039]
In the case shown in FIG. 24, since the B1 signal in the green hue is increased, none of the image data R1, G1, and B1 becomes 0 in the yellow to green region. This is because the hue data calculation means 102 removes the achromatic color component from the input image data Ri, Gi, Bi, but the achromatic color component in the yellow to green region by the color conversion process. Indicates that it has occurred again. Generation of an achromatic color component in the yellow to green region leads to a decrease in saturation in the region.
[0040]
FIGS. 25A to 25C show, in the color conversion method according to the configuration shown in FIG. 17, in addition to the calculation coefficient related to the first comparison data h <b> 1 g effective for green, The relationship between the image data R1, G1, B1 output from the matrix calculation means 104 and the six hues when the color conversion process is performed by also operating the calculation coefficient concerning the second comparison data h2gy that becomes effective It is a figure showing an example.
[0041]
In the case shown in FIG. 25, the generation of the achromatic component due to the color conversion processing in the yellow to green region seen in the case of FIG. (In FIG. 25, only G1 exists as a signal in the middle of yellow to green), and no reduction in saturation occurs in the yellow to green region.
[0042]
As described above, in the color conversion method having the configuration shown in FIG. 17, it is possible to solve the decrease in saturation caused by the color conversion process. However, this color conversion method has a problem that has not been solved.
[0043]
FIGS. 26A to 26C are diagrams showing the calculation coefficient relating to the first comparison data h1g effective for green and the first effective for yellow in the color conversion method having the configuration shown in FIG. FIG. 7 is a diagram illustrating an example of a relationship between image data R1, G1, and B1 output from the matrix calculation unit 104 and six hues when color conversion processing is performed by operating a calculation coefficient related to one comparison data h1y. Yes, the B1 signal in the green hue increases to “bluish green”, and the G1 signal in the yellow hue decreases to “reddish yellow”.
[0044]
In the case shown in FIG. 26, by increasing the B1 signal in the green hue, all of R1, G1, and B1 do not become 0 in the yellow to green region, and nothing in the yellow to green region. The generation of coloring components can be seen.
[0045]
Furthermore, in the case shown in FIG. 26, the maximum of R1, G1, and B1 in the yellow to green region is reduced by reducing the G1 signal in the yellow hue as compared with FIG. 23 where no color conversion is performed. The value becomes a small value. This decrease in the maximum values of R1, G1, and B1 leads to a decrease in luminance in the yellow to green region due to the color conversion process.
[0046]
FIGS. 27A to 27C show the color conversion method according to the configuration shown in FIG. 17 by operating the calculation coefficient related to the second comparison data h2gy effective for the yellow to green region. FIG. 27 is a diagram illustrating an example of a relationship between image data R1, G1, and B1 output from the matrix calculation unit 104 and six hues when the saturation reduction in the yellow to green region seen in FIG. 26 is solved. . However, even in this case, the decrease in luminance in the yellow to green region has not been solved.
[0047]
On the other hand, FIGS. 28A to 28C also operate the calculation coefficient relating to the second comparison data h2gy effective for the yellow to green region in the color conversion method having the configuration shown in FIG. FIG. 27 is a diagram illustrating an example of the relationship between the image data R1, G1, B1 output from the matrix calculation unit 104 and the six hues when the decrease in luminance in the yellow to green region seen in FIG. 26 is solved. is there. However, even in this case, the reduction in saturation in the yellow to green region has not been solved.
[0048]
The reduction in saturation and luminance as described above leads to a narrow range of colors that can be reproduced by color conversion processing.
[0049]
[Problems to be solved by the invention]
When a conventional color conversion method or color conversion device is configured by a table conversion method using a memory such as a ROM, a large-capacity memory is required, and conversion characteristics cannot be flexibly changed. In addition, when configured in a matrix calculation method, only the hue of interest can be adjusted, but the reduction in saturation and luminance caused by the color conversion process cannot be removed in all cases, and color conversion is not possible. There is a problem that the color reproducible range may be narrowed depending on the processing.
[0050]
The present invention has been made to solve the above-described problems. In a color conversion method and a color conversion apparatus for color-converting image data R, G, and B for each pixel, red, blue, green, yellow, In addition to the six hues of cyan and magenta, the areas between the six hues of red to yellow, yellow to green, green to cyan, cyan to blue, blue to magenta, and magenta to red are corrected independently. The degree of change between the six hues can also be corrected, the conversion characteristics can be changed flexibly, and no large-capacity memory is required, and the reduction in saturation and brightness caused by the color conversion process is eliminated. It is an object of the present invention to obtain a color conversion method or a color conversion device that can be used.
[0051]
[Means for Solving the Problems]
The color conversion device according to the present invention is a color conversion device that performs color conversion of red, green, and blue image data R, G, and B for each pixel.
(1) calculation means for calculating the maximum value β and the minimum value α in the image data R, G, B for each pixel;
(2) Subtraction processing between the image data R, G, B and the maximum value β and minimum value α output from the calculation means
r = R-α, g = G-α, b = B-α,
y = β-B, m = β-G, c = β-R,
Hue data calculation means for calculating hue data r, g, b and y, m, c by
(3) First comparison data using each hue data output from the hue data calculation means
h1r = min (m, y), h1g = min (y, c),
h1b = min (c, m), h1c = min (g, b),
h1m = min (b, r), h1y = min (r, g),
(Min (A, B) indicates the minimum value of A and B)
First comparison data generating means for generating
(4) Second comparison data using the first comparison data which is an output from the first comparison data generating means
h2ry1 = min (aq11 × h1y, ap11 × h1r),
h2rm1 = min (aq12 × h1m, ap12 × h1r),
h2gy1 = min (aq13 × h1y, ap13 × h1g),
h2gc1 = min (aq14 × h1c, ap14 × h1g),
h2bm1 = min (aq15 × h1m, ap15 × h1b),
h2bc1 = min (aq16 × h1c, ap16 × h1b),
h2ry2 = min (aq21 × h1y, ap21 × h1r),
h2rm2 = min (aq22 × h1m, ap22 × h1r),
h2gy2 = min (aq23 × h1y, ap23 × h1g),
h2gc2 = min (aq24 × h1c, ap24 × h1g),
h2bm2 = min (aq25 × h1m, ap25 × h1b),
h2bc2 = min (aq26 × h1c, ap26 × h1b),
Second comparison data generating means for generating
(5) Coefficient generating means for generating predetermined matrix coefficients Eij (i = 1 to 3, j = 1 to 3) and Fij (i = 1 to 3, j = 1 to 18),
From the first comparison data from the first comparison data generation means, the second comparison data from the second comparison data generation means, the hue data from the hue data calculation means, and the calculation means The color-converted image data is obtained by performing the matrix operation of the following expression (1) using the above-mentioned minimum value α of the above-mentioned coefficient from the coefficient generating means.
[0052]
[Expression 14]
Figure 0003871495
[0053]
The color conversion device according to the present invention is a color conversion device that performs color conversion of red, green, and blue image data R, G, and B for each pixel.
(1) means for obtaining complementary color data C, M, Y of cyan, magenta, yellow from the image data R, G, B for each pixel;
(2) calculating means for calculating the maximum value β and the minimum value α in the complementary color data C, M, Y;
(3) Subtraction process between the complementary color data C, M, Y and the maximum value β and the minimum value α which are outputs from the calculation means
r = β-C, g = β-M, b = β-Y,
y = Y-α, m = M-α, c = C-α,
Hue data calculation means for calculating hue data r, g, b and y, m, c by
(4) First comparison data using each hue data output from the hue data calculation means
h1r = min (m, y), h1g = min (y, c),
h1b = min (c, m), h1c = min (g, b),
h1m = min (b, r), h1y = min (r, g),
(Min (A, B) indicates the minimum value of A and B)
First comparison data generating means for generating
(5) Second comparison data using the first comparison data which is an output from the first comparison data generating means
h2ry1 = min (aq11 × h1y, ap11 × h1r),
h2rm1 = min (aq12 × h1m, ap12 × h1r),
h2gy1 = min (aq13 × h1y, ap13 × h1g),
h2gc1 = min (aq14 × h1c, ap14 × h1g),
h2bm1 = min (aq15 × h1m, ap15 × h1b),
h2bc1 = min (aq16 × h1c, ap16 × h1b),
h2ry2 = min (aq21 × h1y, ap21 × h1r),
h2rm2 = min (aq22 × h1m, ap22 × h1r),
h2gy2 = min (aq23 × h1y, ap23 × h1g),
h2gc2 = min (aq24 × h1c, ap24 × h1g),
h2bm2 = min (aq25 × h1m, ap25 × h1b),
h2bc2 = min (aq26 × h1c, ap26 × h1b),
Second comparison data generating means for generating
(6) Coefficient generating means for generating predetermined matrix coefficients Eij (i = 1 to 3, j = 1 to 3) and Fij (i = 1 to 3, j = 1 to 18),
From the first comparison data from the first comparison data generation means, the second comparison data from the second comparison data generation means, the hue data from the hue data calculation means, and the calculation means The color-converted image data is obtained by performing a matrix operation of the following equation (2) using the above-mentioned minimum value α of the above-mentioned coefficient from the coefficient generating means.
[0054]
[Expression 15]
Figure 0003871495
[0055]
The color conversion device according to the present invention is a color conversion device that performs color conversion of red, green, and blue image data R, G, and B for each pixel.
(1) calculation means for calculating the maximum value β and the minimum value α in the image data R, G, B for each pixel;
(2) Subtraction processing between the image data R, G, B and the maximum value β and minimum value α output from the calculation means
r = R-α, g = G-α, b = B-α,
y = β-B, m = β-G, c = β-R,
Hue data calculation means for calculating hue data r, g, b and y, m, c by
(3) First comparison data using each hue data output from the hue data calculation means
h1r = min (m, y), h1g = min (y, c),
h1b = min (c, m), h1c = min (g, b),
h1m = min (b, r), h1y = min (r, g),
(Min (A, B) indicates the minimum value of A and B)
First comparison data generating means for generating
(4) Second comparison data using the first comparison data which is an output from the first comparison data generating means
h2ry1 = min (aq11 × h1y, ap11 × h1r),
h2rm1 = min (aq12 × h1m, ap12 × h1r),
h2gy1 = min (aq13 × h1y, ap13 × h1g),
h2gc1 = min (aq14 × h1c, ap14 × h1g),
h2bm1 = min (aq15 × h1m, ap15 × h1b),
h2bc1 = min (aq16 × h1c, ap16 × h1b),
h2ry2 = min (aq21 × h1y, ap21 × h1r),
h2rm2 = min (aq22 × h1m, ap22 × h1r),
h2gy2 = min (aq23 × h1y, ap23 × h1g),
h2gc2 = min (aq24 × h1c, ap24 × h1g),
h2bm2 = min (aq25 × h1m, ap25 × h1b),
h2bc2 = min (aq26 × h1c, ap26 × h1b),
Means for generating
(5) a coefficient generating means for generating predetermined matrix coefficients Eij (i = 1 to 3, j = 1 to 3) and Fij (i = 1 to 3, j = 1 to 19);
From the first comparison data from the first comparison data generation means, the second comparison data from the second comparison data generation means, the hue data from the hue data calculation means, and the calculation means The color-converted image data is obtained by performing the matrix calculation of the following equation (3) using the above-mentioned coefficient from the coefficient generating means using the above-mentioned minimum value α.
[0056]
[Expression 16]
Figure 0003871495
[0057]
The color conversion device according to the present invention is a color conversion device that performs color conversion of red, green, and blue image data R, G, and B for each pixel.
(1) means for obtaining complementary color data C, M, Y of cyan, magenta, yellow from the image data R, G, B for each pixel;
(2) calculating means for calculating the maximum value β and the minimum value α in the complementary color data C, M, Y;
(3) Subtraction process between the complementary color data C, M, Y and the maximum value β and the minimum value α which are outputs from the calculation means
r = β-C, g = β-M, b = β-Y,
y = Y-α, m = M-α, c = C-α,
Hue data calculation means for calculating hue data r, g, b and y, m, c by
(4) First comparison data using each hue data output from the hue data calculation means
h1r = min (m, y), h1g = min (y, c),
h1b = min (c, m), h1c = min (g, b),
h1m = min (b, r), h1y = min (r, g),
(Min (A, B) indicates the minimum value of A and B)
First comparison data generating means for generating
(5) Second comparison data using the first comparison data which is an output from the first comparison data generating means
h2ry1 = min (aq11 × h1y, ap11 × h1r),
h2rm1 = min (aq12 × h1m, ap12 × h1r),
h2gy1 = min (aq13 × h1y, ap13 × h1g),
h2gc1 = min (aq14 × h1c, ap14 × h1g),
h2bm1 = min (aq15 × h1m, ap15 × h1b),
h2bc1 = min (aq16 × h1c, ap16 × h1b),
h2ry2 = min (aq21 × h1y, ap21 × h1r),
h2rm2 = min (aq22 × h1m, ap22 × h1r),
h2gy2 = min (aq23 × h1y, ap23 × h1g),
h2gc2 = min (aq24 × h1c, ap24 × h1g),
h2bm2 = min (aq25 × h1m, ap25 × h1b),
h2bc2 = min (aq26 × h1c, ap26 × h1b),
Second comparison data generating means for generating
(6) Coefficient generating means for generating predetermined matrix coefficients Eij (i = 1 to 3, j = 1 to 3) and Fij (i = 1 to 3, j = 1 to 19),
From the first comparison data from the first comparison data generation means, the second comparison data from the second comparison data generation means, the hue data from the hue data calculation means, and the calculation means The color-converted image data is obtained by performing the matrix operation of the following expression (4) using the above-mentioned minimum value α of the above-mentioned coefficient from the coefficient generating means.
[0058]
[Expression 17]
Figure 0003871495
[0059]
The color conversion device according to the present invention multiplies each of the first comparison data by predetermined calculation coefficients aq11 to aq16, aq21 to aq26, ap11 to ap16, and ap21 to ap26 in the second comparison data generation unit. The multiplication means sets the arithmetic coefficients aq11 to aq16, aq21 to aq26, ap11 to ap16, and ap21 to ap26 as integer values of 1, 2, 4, 8,... Calculation with a calculation coefficient is performed.
[0060]
In the color conversion apparatus according to the present invention, the calculation means calculates the maximum value β and the minimum value α using the image data R, G, B or the complementary color data C, M, Y, and the maximum and minimum According to the type of the image data or the complementary color data, comprising an identification code output means for outputting an identification code for specifying hue data that becomes zero,
By generating first comparison data in the first comparison data generating means, generating matrix coefficients in the coefficient generating means, and performing matrix calculation using the matrix coefficients in accordance with the identification code output from the calculating means Color-converted image data or complementary color data is obtained.
[0061]
The color conversion method according to the present invention is a color conversion method for color-converting red, green, and blue image data R, G, and B for each pixel.
(1) a calculation step for calculating a maximum value β and a minimum value α in the image data R, G, B for each pixel;
(2) Subtraction processing between the image data R, G, B and the maximum value β and the minimum value α obtained by the calculation step
r = R-α, g = G-α, b = B-α,
y = β-B, m = β-G, c = β-R,
A hue data calculation step for calculating hue data r, g, b and y, m, c by
(3) First comparison data using each hue data obtained in the hue data calculating step.
h1r = min (m, y), h1g = min (y, c),
h1b = min (c, m), h1c = min (g, b),
h1m = min (b, r), h1y = min (r, g),
(Min (A, B) indicates the minimum value of A and B)
A first comparison data generation step for generating
(4) Second comparison data using the first comparison data obtained by the first comparison data generation step.
h2ry1 = min (aq11 × h1y, ap11 × h1r),
h2rm1 = min (aq12 × h1m, ap12 × h1r),
h2gy1 = min (aq13 × h1y, ap13 × h1g),
h2gc1 = min (aq14 × h1c, ap14 × h1g),
h2bm1 = min (aq15 × h1m, ap15 × h1b),
h2bc1 = min (aq16 × h1c, ap16 × h1b),
h2ry2 = min (aq21 × h1y, ap21 × h1r),
h2rm2 = min (aq22 × h1m, ap22 × h1r),
h2gy2 = min (aq23 × h1y, ap23 × h1g),
h2gc2 = min (aq24 × h1c, ap24 × h1g),
h2bm2 = min (aq25 × h1m, ap25 × h1b),
h2bc2 = min (aq26 × h1c, ap26 × h1b),
A second comparison data generation step for generating
(5) a coefficient generation step for generating predetermined matrix coefficients Eij (i = 1 to 3, j = 1 to 3) and Fij (i = 1 to 3, j = 1 to 18);
The first comparison data obtained by the first comparison data generation step, the second comparison data obtained by the second comparison data generation step, the hue data obtained by the hue data calculation step, and the Using the minimum value α obtained in the calculation step, color-converted image data is obtained by performing a matrix operation of the following equation (1) using the coefficient generated in the coefficient generation step. .
[0062]
[Formula 18]
Figure 0003871495
[0063]
The color conversion method according to the present invention is a color conversion method for color-converting red, green, and blue image data R, G, and B for each pixel.
(1) obtaining complementary color data C, M, Y of cyan, magenta, yellow from the image data R, G, B for each pixel;
(2) a calculation step of calculating a maximum value β and a minimum value α in the complementary color data C, M, Y;
(3) Subtraction processing between the complementary color data C, M, and Y and the maximum value β and the minimum value α obtained by the calculation step
r = β-C, g = β-M, b = β-Y,
y = Y-α, m = M-α, c = C-α,
A hue data calculation step for calculating hue data r, g, b and y, m, c by
(4) First comparison data using each hue data obtained in the hue data calculating step
h1r = min (m, y), h1g = min (y, c),
h1b = min (c, m), h1c = min (g, b),
h1m = min (b, r), h1y = min (r, g),
(Min (A, B) indicates the minimum value of A and B)
A first comparison data generation step for generating
(5) Second comparison data using the first comparison data obtained by the first comparison data generation step.
h2ry1 = min (aq11 × h1y, ap11 × h1r),
h2rm1 = min (aq12 × h1m, ap12 × h1r),
h2gy1 = min (aq13 × h1y, ap13 × h1g),
h2gc1 = min (aq14 × h1c, ap14 × h1g),
h2bm1 = min (aq15 × h1m, ap15 × h1b),
h2bc1 = min (aq16 × h1c, ap16 × h1b),
h2ry2 = min (aq21 × h1y, ap21 × h1r),
h2rm2 = min (aq22 × h1m, ap22 × h1r),
h2gy2 = min (aq23 × h1y, ap23 × h1g),
h2gc2 = min (aq24 × h1c, ap24 × h1g),
h2bm2 = min (aq25 × h1m, ap25 × h1b),
h2bc2 = min (aq26 × h1c, ap26 × h1b),
A second comparison data generation step for generating
(6) a coefficient generation step for generating predetermined matrix coefficients Eij (i = 1 to 3, j = 1 to 3) and Fij (i = 1 to 3, j = 1 to 18);
The first comparison data obtained by the first comparison data generation step, the second comparison data obtained by the second comparison data generation step, the hue data obtained by the hue data calculation step, and the Color-converted image data is obtained by performing a matrix operation of the following equation (2) using the coefficient generated in the coefficient generation step using the minimum value α obtained in the calculation step. .
[0064]
[Equation 19]
Figure 0003871495
[0065]
The color conversion method according to the present invention is a color conversion method for color-converting red, green, and blue image data R, G, and B for each pixel.
(1) a calculation step for calculating a maximum value β and a minimum value α in the image data R, G, B for each pixel;
(2) Subtraction processing between the image data R, G, B and the maximum value β and the minimum value α obtained by the calculation step
r = R-α, g = G-α, b = B-α,
y = β-B, m = β-G, c = β-R,
A hue data calculation step for calculating hue data r, g, b and y, m, c by
(3) First comparison data using each hue data obtained in the hue data calculating step.
h1r = min (m, y), h1g = min (y, c),
h1b = min (c, m), h1c = min (g, b),
h1m = min (b, r), h1y = min (r, g),
(Min (A, B) indicates the minimum value of A and B)
A first comparison data generation step for generating
(4) Second comparison data using the first comparison data obtained by the first comparison data generation step.
h2ry1 = min (aq11 × h1y, ap11 × h1r),
h2rm1 = min (aq12 × h1m, ap12 × h1r),
h2gy1 = min (aq13 × h1y, ap13 × h1g),
h2gc1 = min (aq14 × h1c, ap14 × h1g),
h2bm1 = min (aq15 × h1m, ap15 × h1b),
h2bc1 = min (aq16 × h1c, ap16 × h1b),
h2ry2 = min (aq21 × h1y, ap21 × h1r),
h2rm2 = min (aq22 × h1m, ap22 × h1r),
h2gy2 = min (aq23 × h1y, ap23 × h1g),
h2gc2 = min (aq24 × h1c, ap24 × h1g),
h2bm2 = min (aq25 × h1m, ap25 × h1b),
h2bc2 = min (aq26 × h1c, ap26 × h1b),
A second comparison data generation step for generating
(5) a predetermined matrix coefficient Eij (i = 1 to 3, j = 1 to 3) and a coefficient generation step for generating Fij (i = 1 to 3, j = 1 to 19),
The first comparison data obtained by the first comparison data generation step, the second comparison data obtained by the second comparison data generation step, the hue data obtained by the hue data calculation step, and the Color-converted image data is obtained by performing a matrix operation of the following expression (3) using the coefficient obtained in the coefficient generation step, using the minimum value α obtained in the calculation step.
[0066]
[Expression 20]
Figure 0003871495
[0067]
The color conversion method according to the present invention is a color conversion method for color-converting red, green, and blue image data R, G, and B for each pixel.
(1) obtaining complementary color data C, M, Y of cyan, magenta, yellow from the image data R, G, B for each pixel;
(2) a calculation step for calculating a maximum value β and a minimum value α in the complementary color data C, M, Y;
(3) Subtraction processing between the complementary color data C, M, Y and the maximum value β and the minimum value α obtained by the calculation step
r = β-C, g = β-M, b = β-Y,
y = Y-α, m = M-α, c = C-α,
A hue data calculation step for calculating hue data r, g, b and y, m, c by
(4) First comparison data using each hue data obtained in the hue data calculation step.
h1r = min (m, y), h1g = min (y, c),
h1b = min (c, m), h1c = min (g, b),
h1m = min (b, r), h1y = min (r, g),
(Min (A, B) indicates the minimum value of A and B)
A first comparison data generation step for generating
(5) Second comparison data using the first comparison data obtained in the first comparison data generation step.
h2ry1 = min (aq11 × h1y, ap11 × h1r),
h2rm1 = min (aq12 × h1m, ap12 × h1r),
h2gy1 = min (aq13 × h1y, ap13 × h1g),
h2gc1 = min (aq14 × h1c, ap14 × h1g),
h2bm1 = min (aq15 × h1m, ap15 × h1b),
h2bc1 = min (aq16 × h1c, ap16 × h1b),
h2ry2 = min (aq21 × h1y, ap21 × h1r),
h2rm2 = min (aq22 × h1m, ap22 × h1r),
h2gy2 = min (aq23 × h1y, ap23 × h1g),
h2gc2 = min (aq24 × h1c, ap24 × h1g),
h2bm2 = min (aq25 × h1m, ap25 × h1b),
h2bc2 = min (aq26 × h1c, ap26 × h1b),
A second comparison data generation step for generating
(6) a coefficient generation step for generating predetermined matrix coefficients Eij (i = 1 to 3, j = 1 to 3) and Fij (i = 1 to 3, j = 1 to 19);
The first comparison data obtained by the first comparison data generation step, the second comparison data obtained by the second comparison data generation step, the hue data obtained by the hue data calculation step, and the Color-converted image data is obtained by performing a matrix operation of the following equation (4) using the coefficient generated in the coefficient generation step, using the minimum value α obtained in the calculation step. .
[0068]
[Expression 21]
Figure 0003871495
[0069]
In the color conversion method according to the present invention, each first comparison data included in the second comparison data generation step is multiplied by predetermined arithmetic coefficients aq11 to aq16, aq21 to aq26, ap11 to ap16, and ap21 to ap26. In the multiplication step, the arithmetic coefficients aq11 to aq16, aq21 to aq26, ap11 to ap16, and ap21 to ap26 are set to integer values of 1, 2, 4, 8,. Calculation with the above-mentioned calculation coefficient is performed.
[0070]
In the color conversion method according to the present invention, the calculation step calculates the maximum value β and the minimum value α using the image data R, G, B or the complementary color data C, M, Y, and the maximum and minimum values. According to the type of the image data or the complementary color data, including an identification code output step for outputting an identification code for specifying hue data that becomes zero,
By generating first comparison data in the first comparison data generation step, generating matrix coefficients in the coefficient generation step, and performing matrix calculation using the matrix coefficients in accordance with the identification code output in the calculation step Color-converted image data or complementary color data is obtained.
[0071]
DETAILED DESCRIPTION OF THE INVENTION
Hereinafter, the present invention will be specifically described with reference to the drawings showing embodiments thereof.
Embodiment 1 FIG.
FIG. 1 is a block diagram showing an example of the configuration of a color conversion method and a color conversion apparatus according to an embodiment of the present invention. In the figure, reference numeral 1 denotes a maximum value β and minimum value α of input image data R, G, B, and αβ calculating means for generating and outputting an identification code S1, which will be described later. 2, an image data R, G, Hue data calculation means for calculating hue data r, g, b, y, m, c from B and the output from the αβ calculation means 1, 3 for polynomial calculation means, 4 for matrix calculation means, 5 for coefficient generation means, 6 is a synthesis means.
[0072]
FIG. 2 is a block diagram showing a configuration example of the polynomial calculation means 3. In the figure, reference numeral 7 denotes zero removing means for removing zero-valued data of input hue data, 9a, 9b, 9c, 9d are minimum value selecting means for selecting and outputting the minimum value of the input data, 11 Based on the identification code from the αβ calculating means 1, arithmetic coefficient generating means 10 a, 10 b, 10 c, 10 d for generating and outputting arithmetic coefficients are selected as the arithmetic coefficient indicated by the output from the arithmetic coefficient generating means 11 and the minimum value selection. An arithmetic means for multiplying the outputs of the means 9a and 9b.
[0073]
Next, the operation will be described. The input image data R, G, B (Ri, Gi, Bi) is sent to the αβ calculation means 1 and the hue data calculation means 2, and the αβ calculation means 1 is the maximum value of the input image data Ri, Gi, Bi. β and the minimum value α are calculated and output, and an identification code S1 for specifying the maximum value data and the minimum value data among the input image data Ri, Gi, Bi is generated and output.
[0074]
The hue data calculation unit 2 receives the image data Ri, Gi, Bi and the maximum value β and the minimum value α, which are outputs from the αβ calculation unit 1, and r = Ri−α, g = Gi−α, b = Bi-α and y = β-Bi, m = β-Gi, c = β-Ri are subtracted, and six hue data r, g, b, y, m, and c are output.
[0075]
At this time, the maximum value β and the minimum value α calculated by the αβ calculating means 1 are β = MAX (Ri, Gi, Bi), α = MIN (Ri, Gi, Bi), and hue data calculating means 2 The six hue data r, g, b, y, m, and c calculated in the above are r = Ri−α, g = Gi−α, b = Bi−α, and y = β−Bi, m = β−Gi. , C = β-Ri is obtained by subtraction processing, and these six hue data have a property that at least two of them become zero.
[0076]
For example, when the maximum value β is Ri and the minimum value α is Gi (β = Ri, α = Gi), g = 0 and c = 0 are obtained by the above subtraction process, and the maximum value β is Ri and minimum. When the value α is Bi (β = Ri, α = Bi), b = 0 and c = 0. That is, depending on the combination of Ri, Gi, and Bi that is the maximum and minimum, at least one of r, g, and b and one of y, m, and c will be zero in total. .
[0077]
Therefore, the αβ calculating means 1 generates and outputs an identification code S1 that specifies zero of the six hue data. The identification code S1 can generate six types of identification codes S1 that specify data depending on which of the input image data Ri, Gi, and Bi the maximum value β and the minimum value α are. FIG. 3 is a diagram showing the relationship between the identification code S1, the maximum value β, the minimum value α, and the hue data of zero in the input image data Ri, Gi, Bi. Note that the value of the identification code S1 in the figure shows an example, and is not limited to this, and may be another value.
[0078]
Next, the six hue data r, g, b and y, m, c, which are the outputs from the hue data calculation means 2, are sent to the polynomial calculation means 3, and the hue data r, g, b is a matrix. It is also sent to the calculation means 4. The identification code S1 output from the αβ calculating means 1 is also input to the polynomial calculating means 3, and two non-zero data Q1, Q2 in the hue data r, g, b and the hue data y, m, c The operation is performed by selecting two pieces of data P1 and P2 that are not zero, and this operation will be described with reference to FIG.
[0079]
In the polynomial calculation means 3, the hue data r, g, b and y, m, c from the hue data calculation means 2 and the identification code S 1 from the αβ calculation means are input to the zero removal means 7. The zero removing means 7 outputs two non-zero data Q1, Q2 in the hue data r, g, b and two non-zero data P1, P2 in the hue data y, m, c based on the identification code S1. . Q1, Q2, P1, and P2 are determined and output, for example, as shown in FIG.
[0080]
For example, from FIGS. 3 and 4, when the identification code S1 = 0, hue data r, b gives Q1, Q2, and hue data y, m gives P1, P2, and Q1 = r, Q2 = b, P1 = Output as m, P2 = y. Similar to FIG. 3, the value of the identification code S1 in FIG. 4 shows an example thereof, and is not limited to this, and may be another value.
[0081]
The minimum value selection means 9a selects and outputs the minimum value T4 = min (Q1, Q2) of the output data Q1, Q2 from the zero removal means 7, and the minimum value selection means 9b selects the zero removal means. 7 selects and outputs the minimum value T2 = min (P1, P2) of the output data P1, P2 from the output 7. T4 and T2 output from the minimum value selection means 9a and 9b are the first comparison data.
[0082]
The calculation coefficient generating means 11 is inputted with the identification code S1 from the αβ calculating means 1, and the calculation means aq1, for multiplying the first comparison data T4 and T2 in the calculation means 10a, 10b, 10c, 10d, Signals indicating ap1, aq2, and ap2 are generated based on the identification code S1, and the calculation coefficient aq1 is calculated for the calculation means 10a, the calculation coefficient ap1 is calculated for the calculation means 10b, the calculation coefficient aq2 is calculated for the calculation means 10c, and the calculation means 10d. The operation coefficient ap2 is output.
[0083]
The calculation coefficients aq1, ap1, aq2, and ap2 are generated according to the identification code S1, and six types of calculation coefficients aq1, ap1, aq2, and ap2 are generated for the identification code S1 from FIG. The The calculation means 10a receives the first comparison data T4 from the minimum value selection means 9a, performs multiplication aq1 × T4 by the calculation coefficient aq1 from the calculation coefficient generation means 11 and the first comparison data T4, and outputs the result. The calculation means 10b receives the first comparison data T2 from the minimum value selection means 9b, and multiplies the calculation coefficient ap1 from the calculation coefficient generation means 11 with the first comparison data T2. XT2 is performed and the output is sent to the minimum value selection means 9c.
[0084]
Further, the calculation means 10c receives the first comparison data T4 from the minimum value selection means 9a, performs the multiplication aq2 × T4 by the calculation coefficient aq2 from the calculation coefficient generation means 11 and the first comparison data T4, and The output is sent to the minimum value selection means 9d. The calculation means 10d receives the first comparison data T2 from the minimum value selection means 9b, and uses the calculation coefficient ap2 from the calculation coefficient generation means 11 and the first comparison data T2. Multiplication ap2 × T2 is performed, and the output is sent to the minimum value selection means 9d.
[0085]
The minimum value selection means 9c selects and outputs the minimum value T5 = min (ap1 × T2, aq1 × T4) of the outputs from the calculation means 10a and 10b, and the minimum value selection means 9d determines from the calculation means 10c and 10d. The minimum output T6 = min (ap2 × T2, aq2 × T4) is selected and output. T5 and T6 output from the minimum value selection means 9c and 9d are the second comparison data. The polynomial data T2, T4, T5, and T6 described above are the output of the polynomial calculation means 3. The output of the polynomial calculation means 3 is sent to the matrix calculation means 4.
[0086]
On the other hand, the coefficient generating means 5 in FIG. 1 generates an operation coefficient U (Fij) and a fixed coefficient U (Eij) of polynomial data based on the identification code S1, and sends them to the matrix operation means 4. The matrix calculation means 4 receives the hue data r, g, b from the hue data calculation means 2, the polynomial data T2, T4, T5, T6 from the polynomial calculation means 3, and the coefficient U from the coefficient generation means 5 as inputs. The calculation result of the following formula (6) is output as image data R1, G1, and B1.
[0087]
[Expression 22]
Figure 0003871495
[0088]
In Equation (6), i = 1 to 3, j = 1 to 3 in (Eij), i = 1 to 3 and j = 1 to 4 in (Fij).
[0089]
Here, FIG. 5 is a block diagram showing an example of a partial configuration of the matrix calculation means 4, and shows a case where the image data R1 is calculated and output. In the figure, 12a to 12e are multiplication means, and 13a to 13d are addition means.
[0090]
Next, the operation of FIG. 5 will be described. The multiplying means 12a to 12e receive the hue data r, the polynomial data T2, T4, T5, T6 from the polynomial calculating means 3 and the coefficients U (Eij) and U (Fij) from the coefficient generating means 5 as inputs. Is output. The adding means 13a and 13b receive the products as outputs from the multiplying means 12b to 12e, add the input data, and output the sum. The adding means 13c adds the data from the adding means 13a and 13b, and the adding means 13d adds the output of the adding means 13c and the output of the multiplying means 12a, and outputs the sum as image data R1. In the configuration example of FIG. 5, the image data G1 and B1 can be calculated by replacing the hue data r with g or b.
[0091]
Here, as the coefficients (Eij) and (Fij), coefficients corresponding to the hue data r, g, and b are used. That is, if three configurations in FIG. 5 are used in parallel for the hue data r, g, and b, high-speed matrix calculation can be performed.
[0092]
The synthesizing means 6 receives the image data R1, G1, B1 from the matrix calculating means 4 and the minimum value α indicating the achromatic data which is the output from the αβ calculating means 1, and performs addition to obtain the image data R, G and B are output. Therefore, an arithmetic expression for obtaining the image data R, G, and B color-converted by the color conversion method having the configuration shown in FIG. 1 is Expression (1).
[0093]
[Expression 23]
Figure 0003871495
[0094]
Here, in (Eij), i = 1 to 3, j = 1 to 3, and in (Fij), i = 1 to 3, and j = 1 to 18,
h1r = min (m, y), h1g = min (y, c),
h1b = min (c, m), h1c = min (g, b),
h1m = min (b, r), h1y = min (r, g),
h2ry1 = min (aq11 × h1y, ap11 × h1r),
h2rm1 = min (aq12 × h1m, ap12 × h1r),
h2gy1 = min (aq13 × h1y, ap13 × h1g),
h2gc1 = min (aq14 × h1c, ap14 × h1g),
h2bm1 = min (aq15 × h1m, ap15 × h1b),
h2bc1 = min (aq16 × h1c, ap16 × h1b),
h2ry2 = min (aq21 × h1y, ap21 × h1r),
h2rm2 = min (aq22 × h1m, ap22 × h1r),
h2gy2 = min (aq23 × h1y, ap23 × h1g),
h2gc2 = min (aq24 × h1c, ap24 × h1g),
h2bm2 = min (aq25 × h1m, ap25 × h1b),
h2bc2 = min (aq26 × h1c, ap26 × h1b),
Aq11 to aq16, aq21 to aq26, ap11 to ap16, and ap21 to ap26 are operation coefficients generated in the operation coefficient generating means 11 in FIG.
[0095]
The difference in the number of calculation terms in equation (1) and the number of calculation terms in the configuration shown in FIG. 1 is disclosed by a calculation method for each pixel excluding data in which the calculation term in the configuration shown in FIG. On the other hand, the expression (1) discloses a general expression for a pixel set. In other words, for one pixel, 18 data can be reduced to 4 valid data (T2, T4, T5, T6) for the polynomial data of equation (1), and this reduction skillfully utilizes the properties of hue data. And achieved.
[0096]
The combination of valid data changes according to the image data of the pixel of interest, and all polynomial data is valid for all image data.
[0097]
6A to 6F schematically show the relationship between six hues (red, yellow, green, cyan, blue, magenta) and hue data y, m, c, r, g, b. Each hue data is associated with three hues (for example, y is associated with red, yellow and green, and m is associated with blue, magenta and red).
[0098]
On the other hand, the above formulas (6) and (1) include the first comparison data effective for only one of the hues. The first comparison data includes h1r = min (y, m), h1y = min (r, g), h1g = min (c, y), h1c = min (g, b), h1b = min (m, c), h1m = min (b, r).
[0099]
FIGS. 7A to 7F schematically show the relationship between six hues and the first comparison data h1r, h1y, h1g, h1c, h1b, and h1m. It can be seen that it is related to a specific hue. For example, assuming that W is a constant, since r = W and g = b = 0 for red, y = m = W and c = 0. Therefore, the first comparison data h1r = min (y, m) = W. The other five first comparison data are all zero.
[0100]
That is, for red, only h1r is effective first comparison data. Similarly, h1g for green, h1b for blue, h1c for cyan, h1m for magenta, and h1y for yellow are valid first comparison data.
[0101]
As described above, the six first comparison data h1r, h1y, h1g, h1c, h1b, and h1m are used as matrix calculation terms, and the coefficient for each calculation term is changed to correct only the desired hue. It becomes possible. For example, since only h1r is valid first comparison data for red, only the coefficient relating to h1r is valid for red correction.
[0102]
Moreover, the said Formula (6) and Formula (1) also contain the 2nd comparison data. 8A to 8F show the six hues and the second comparison data.
h2ry1 = min (h1y, h1r),
h2gy1 = min (h1y, h1g),
h2gc1 = min (h1c, h1g),
h2bc1 = min (h1c, h1b),
h2bm1 = min (h1m, h1b),
h2rm1 = min (h1m, h1r),
and
h2ry2 = min (h1y, h1r),
h2gy2 = min (h1y, h1g),
h2gc2 = min (h1c, h1g),
h2bc2 = min (h1c, h1b),
h2bm2 = min (h1m, h1b),
h2rm2 = min (h1m, h1r),
Is schematically shown in the above equation (1).
h2ry1 = min (aq11 × h1y, ap11 × h1r),
h2gy1 = min (aq13 × h1y, ap13 × h1g),
h2gc1 = min (aq14 × h1c, ap14 × h1g),
h2bc1 = min (aq16 × h1c, ap16 × h1b),
h2bm1 = min (aq15 × h1m, ap15 × h1b),
h2rm1 = min (aq12 × h1m, ap12 × h1r),
Values of the operation coefficients aq11 to aq16 and ap11 to ap16 in FIG.
h2ry2 = min (aq21 × h1y, ap21 × h1r),
h2gy2 = min (aq23 × h1y, ap23 × h1g),
h2gc2 = min (aq24 × h1c, ap24 × h1g),
h2bc2 = min (aq26 × h1c, ap26 × h1b),
h2bm2 = min (aq25 × h1m, ap25 × h1b),
h2rm2 = min (aq22 × h1m, ap22 × h1r),
The case where the values of the arithmetic coefficients aq21 to aq26 and ap21 to ap26 in FIG.
[0103]
From each of FIGS. 8A and 8B, each second comparison data is involved in the change of the intermediate region between the six hues of red to yellow, yellow to green, green to cyan, cyan to blue, blue to magenta, magenta to red. I understand that That is, for red to yellow, b = c = 0, h2ry1 = min (h1y, h1r) = min (min (r, g), min (y, m)) and h2ry2 = min (h1y, h1r) = min (min (r, g), min (y, m)) other than 10 terms are all zero.
[0104]
Therefore, for red to yellow, only h2ry1 and h2ry2 are valid second comparison data, and similarly, yellow to green are h2gy1 and h2gy2, green to cyan are h2gc1 and h2gc2, and cyan to blue. H2bc1 and h2bc2, h2bm1 and h2bm2 are valid for blue to magenta, and only h2rm1 and h2rm2 are valid for magenta to red.
[0105]
9A to 9F show the calculations in h2ry1, h2rm1, h2gy1, h2gc1, h2bm1, h2bc1, and h2ry2, h2rm2, h2gy2, h2gc2, h2bm2, and h2bc2 in the above formulas (6) and (1). The relationship between the six hues when the coefficients aq11 to aq16, ap11 to ap16, aq21 to aq26, and ap21 to ap26 are changed and the second comparison data is schematically shown. In the case of a6, the characteristics when aq11 to aq16 and aq21 to aq26 are set to values larger than ap11 to ap16 and ap21 to ap26 are shown, and in the case of broken lines b1 to b6, ap11 to ap16 and ap21 to ap26 are set to aq11 Characteristics when ˜aq16, aq21˜aq26 are larger than Shows.
[0106]
That is, for red to yellow, only h2ry1 = min (aq11 × h1y, ap11 × h1r) and h2ry2 = min (aq21 × h1y, ap21 × h1r) are valid second comparison data. For example, aq11 and When the ratio of ap11 or the ratio of aq21 and ap21 is 2: 1, as indicated by the broken line a1 in FIG. 9 (A), the peak value becomes comparison data related to red, and red between red and yellow hues. The comparison data can be effective in a region close to.
[0107]
On the other hand, for example, if the ratio of aq11 and ap11 or the ratio of aq21 and ap21 is 1: 2, the relationship becomes as shown by the broken line b1 in FIG. Comparison data effective for a region close to yellow between yellow hues can be obtained.
[0108]
Similarly, yellow to green have aq13, ap13 in h2gy1, or aq23 and ap23 in h2gy2, green to cyan have aq14 and ap14 in h2gc1, or aq24 and ap24 in h2gc2, and aq16 in h2bc1 Change aq26, ap26 in ap16 or h2bc2, aq15, ap15 in h2bm1 for blue to magenta, aq25, ap25 in h2bm2 for magenta to red, aq22, ap22 in h2rm1 for magenta to red To change the effective area even in the area between each hue.
be able to.
[0109]
FIGS. 10A and 10B show six hues (red, yellow, green, cyan, blue, magenta) and inter-hue areas (red to yellow, yellow to green, green to cyan, cyan to blue, blue to Magenta, magenta to red) and the effective calculation terms.
[0110]
Therefore, if the coefficient generating means 5 changes the coefficient relating to the effective calculation term in the hue to be adjusted or the region between hues, only the hue of interest can be adjusted, and the degree of change between hues can also be corrected. Can do.
[0111]
Further, if the coefficient in the calculation coefficient generation means 11 in the polynomial calculation means 3 is changed, the area where the calculation term in the inter-hue area is valid can be changed without affecting other hues.
[0112]
In addition, in each of the six inter-hue regions, there are two valid second comparison data, for example, the region close to red between the red to yellow hues and the yellow between the red to yellow hues. It is possible to individually adjust the area, and it is possible to remove the decrease in saturation and luminance caused by the color conversion process, thereby preventing the color reproducible range from being narrowed by the color conversion process. It is also possible.
[0113]
FIGS. 11A to 11C are diagrams showing calculation coefficients for the first comparison data h1g effective for green and yellow for the color conversion method and color conversion apparatus according to Embodiment 1 of the present invention. When the color conversion processing is performed by manipulating the calculation coefficient relating to the first comparison data h1y that is effective in this way, the relationship between the image data R1, G1, B1 output from the matrix calculation means 4 and the six hues It is a figure showing an example, and the B1 signal in the green hue increases and becomes “bluish green”, and the G1 signal in the yellow hue decreases and becomes “reddish yellow”.
[0114]
In the case shown in FIG. 11, by increasing the B1 signal in the green hue, none of the image data R1, G1, and B1 is 0 in the yellow to green area, and the yellow to green area. The generation of an achromatic color component is observed. Generation of an achromatic color component in the yellow to green region leads to a decrease in saturation in the region.
[0115]
Further, in the case shown in FIG. 11, the decrease in the maximum value of the image data R1, G1, and B1 is observed in the yellow to green region by reducing the G1 signal in the yellow hue. The decrease in the maximum value of the image data R1, G1, and B1 leads to a decrease in luminance in the yellow to green region due to the color conversion process.
[0116]
12 (A) to 12 (C) show the yellow to green in FIG. 11 by manipulating the operation coefficients for the two second comparison data h2gy1 and h2gy2 that are valid for the yellow to green region. It is a figure showing an example of the relationship between the image data R1, G1, B1 output from the matrix calculating means 4 and six hues when the reduction in saturation and the decrease in luminance in the green region are solved.
[0117]
In the case shown in FIG. 12, the minimum values of R1, G1, and B1 are always 0 in any region, and generation of achromatic components, that is, no reduction in saturation is observed. Further, in the case shown in FIG. 12, no decrease in the maximum value of the image data R1, G1, B1 is observed in any region, and no decrease in luminance occurs.
[0118]
In the color conversion method and the color conversion apparatus according to the present invention, it is possible to solve the occurrence of luminance and saturation caused by the color conversion process by using two pieces of second comparison data that are valid between the hues. It becomes.
[0119]
In the case shown in FIG. 12, one of the two second comparison data h2gy1 and h2gy2 effective for the yellow to green region is used for the generation of the achromatic color component, that is, the reduction of the saturation, The other is used to solve the decrease in the maximum value, that is, the decrease in luminance, thereby solving both the decrease in luminance and saturation.
[0120]
Here, in the polynomial calculation means 3, h2ry1 = min (aq11 × h1y, ap11 × h1r), h2rm1 = min (aq12 × h1m, ap12 × h1r), h2gy1 = min (aq13 × h1y, ap13 × h1g), h2gc1 = min (aq14 × h1c, ap14 × h1g), h2bm1 = min (aq15 × h1m, ap15 × h1b), h2bc1 = min (aq16 × h1c, ap16 × h1b), and h2ry2 = min (aq21 × h1y, ap21 × h1r) , H2rm2 = min (aq22 × h1m, ap22 × h1r), h2gy2 = min (aq23 × h1y, ap23 × h1g), h2gc2 = min (aq24 × h1c, ap24 × h1g), h2bm2 = min (aq25 × h1m, ap25 × h1b), h The calculation coefficients aq11 to aq16, ap11 to ap16, aq21 to aq26, ap21 to ap26 and the values of bc2 = min (aq26 × h1c, ap26 × h1b) can be changed by integer values of 1, 2, 4, 8,. For example, the arithmetic means 10a, 10b, 10c, and 10d can perform multiplication by bit shift.
[0121]
As described above, the six hues of red, green, blue, yellow, magenta, and cyan are made independent by changing the coefficients related to the first comparison data and the second comparison data related to the specific hue and the inter-hue area. In addition, the degree of change between the six hues can also be corrected. Therefore, it is possible to obtain a color conversion method or a color conversion apparatus that can change the conversion characteristics flexibly and does not require a large-capacity memory.
[0122]
In addition, since each of the six inter-hue regions uses two valid second comparison data, for example, the region close to red between the red to yellow hues and the yellow between the red to yellow hues are close. It is possible to individually adjust the area, and it is possible to eliminate the reduction in saturation and luminance caused by the color conversion process, and to perform the color conversion process without narrowing the color reproducible range Is also possible.
[0123]
In the first embodiment, the hue data r, g, b and y, m, c, the maximum value β, and the minimum value α are set based on the input image data R, G, B (Ri, Gi, Bi). In the above description, the calculation terms related to each hue are obtained and the image data R1, G1, and B1 are obtained after matrix calculation. However, after obtaining the image data R1, G1, and B1, the obtained R1 is obtained. , G1 and B1 may be converted into complementary color data C, M and Y, and the same effect as described above can be obtained.
[0124]
In the first embodiment, two effective second comparison data are set in each of the six inter-hue areas, but the number of the second comparison data is not necessarily two, and may be two or more. .
[0125]
In the first embodiment, the case where the processing of the configuration of FIG. 1 is performed by hardware has been described, but it goes without saying that the same processing can be performed by software in the color conversion apparatus. 1 has the same effect.
[0126]
Furthermore, in the first embodiment, the case where the first comparison data and the second comparison data, which are the primary calculation terms for the saturation, are used is described. By using a multiplication term that is a typical operation term, it is possible to correct non-linear characteristics with respect to saturation.
[0127]
Embodiment 2. FIG.
In the first embodiment, hue data r, g, b and y, m, c, maximum value β, and minimum value α are calculated based on input image data R, G, B (Ri, Gi, Bi). Although it has been described that the image terms R, G, and B are obtained after obtaining the calculation terms related to each hue and performing the matrix calculation, the image data R, G, and B are converted into complementary color data C, M, and Y, and then the input is performed. It can also be configured to perform color conversion as complementary color data C, M, and Y.
[0128]
FIG. 13 is a block diagram showing an example of the configuration of a color conversion method and color conversion apparatus according to Embodiment 2 of the present invention. In the figure, 3 to 6 are the same as those in FIG. 1 of the first embodiment, 14 is the complement means, 1b is the maximum value β of the complementary color data Ci, Mi, Yi which is the output of the complement means 14. Αβ calculating means 2b for generating a minimum value α and an identification code S1 for specifying hue data to be described later, 2b is complementary color data C, M, Y (Ci, Mi, Yi) from the complementing means 14 and αβ calculating means 1b. Hue data calculation means for calculating hue data r, g, b and y, m, c from the output from.
[0129]
Next, the operation will be described. The complement means 14 receives the image data R, G, and B and outputs complementary color data Ci, Mi, and Yi subjected to 1's complement processing. The αβ calculating means 1b outputs the maximum value β and minimum value α of the complementary color data and an identification code S1 for specifying each hue data.
[0130]
The hue data calculating means 2b receives the complementary color data Ci, Mi, Yi and the maximum value β and the minimum value α from the αβ calculating means 1b, and r = β-Ci, g = β-Mi, b = β-Yi. Then, six hue data r, g, b and y, m, c are output by the subtraction process of y = Yi-α, m = Mi-α, c = Ci-α.
[0131]
Here, these six hue data have a property that at least two of them become zero, and the identification code S1 output from the αβ calculating means 1b specifies data that is zero among the six hue data. Depending on which of the complementary color data Ci, Mi, and Yi is the maximum value β and the minimum value α, there are six types of identification codes that specify the data.
[0132]
Since the relationship between the zero hue data and the identification code among the six hue data is the same as that described in the first embodiment, detailed description thereof is omitted.
[0133]
Next, the six hue data r, g, b and y, m, c, which are outputs from the hue data calculation means 2b, are sent to the polynomial calculation means 3, and the hue data c, m, y is a matrix. It is also sent to the calculation means 4.
[0134]
The identification code S1 output from the αβ calculation means 1b is also input to the polynomial calculation means 3, and two non-zero data Q1, Q2 in the hue data r, g, b, and hue data y, m, c The calculation is performed by selecting two pieces of data P1 and P2 that are not zero, but this operation is the same as the operation of FIG. 2 in the first embodiment, and a detailed description thereof will be omitted.
[0135]
The output of the polynomial calculation means 3 is sent to the matrix calculation means 4, and the coefficient generation means 5 generates calculation coefficients U (Fij) and fixed coefficients U (Eij) of the polynomial data based on the identification code S1. To the matrix calculation means 4. The matrix calculation means 4 receives the hue data c, m, y from the hue data calculation means 2b, the polynomial data T2, T4, T5, T6 from the polynomial calculation means 3, and the coefficient U from the coefficient generation means 5 as inputs. The calculation result of the following equation (8) is output as image data C1, M1, and Y1.
[0136]
[Expression 24]
Figure 0003871495
[0137]
In Equation (8), i = 1 to 3 and j = 1 to 3 in (Eij), i = 1 to 3 and j = 1 to 4 in (Fij).
[0138]
The operation of the matrix calculation means 4 is performed when the input hue data is c (or m, y) in FIG. 5 in the first embodiment and the complementary color data C1 (or M1, Y1) is calculated and output. Since the same operation is performed, detailed description thereof is omitted.
[0139]
The synthesizing means 6 receives the complementary color data C1, M1, Y1 from the matrix calculating means 4 and the minimum value α indicating the achromatic color data which is the output from the αβ calculating means 1b, and performs addition to obtain the image data C, M and Y are output. Therefore, an arithmetic expression for obtaining the image data C, M, and Y color-converted by the color conversion method realized by the configuration of FIG. 13 is Expression (2).
[0140]
[Expression 25]
Figure 0003871495
[0141]
Here, in Equation (2), i = 1 to 3, j = 1 to 3 in (Eij), i = 1 to 3, and j = 1 to 18 in (Fij).
h1r = min (m, y), h1g = min (y, c),
h1b = min (c, m), h1c = min (g, b),
h1m = min (b, r), h1y = min (r, g),
h2ry1 = min (aq11 × h1y, ap11 × h1r),
h2rm1 = min (aq12 × h1m, ap12 × h1r),
h2gy1 = min (aq13 × h1y, ap13 × h1g),
h2gc1 = min (aq14 × h1c, ap14 × h1g),
h2bm1 = min (aq15 × h1m, ap15 × h1b),
h2bc1 = min (aq16 × h1c, ap16 × h1b),
h2ry2 = min (aq21 × h1y, ap21 × h1r),
h2rm2 = min (aq22 × h1m, ap22 × h1r),
h2gy2 = min (aq23 × h1y, ap23 × h1g),
h2gc2 = min (aq24 × h1c, ap24 × h1g),
h2bm2 = min (aq25 × h1m, ap25 × h1b),
h2bc2 = min (aq26 × h1c, ap26 × h1b),
Aq11 to aq16, aq21 to aq26, ap11 to ap16, and ap21 to ap26 are operation coefficients generated in the operation coefficient generating means 11 in FIG.
[0142]
Note that the difference in the number of operation terms in Expression (2) and the number of operation terms in FIG. 13 discloses an operation method for each pixel excluding data in which the operation term in FIG. 2) is that a general formula for a pixel set is disclosed. In other words, for one pixel, 18 data can be reduced to 4 valid data (T2, T4, T5, T6) for the polynomial data of equation (2), and this reduction skillfully utilizes the properties of the hue data. And achieved.
[0143]
The combination of valid data changes according to the image data of the pixel of interest, and all polynomial data is valid for all image data.
[0144]
The calculation term by the polynomial calculation means 3 of the above formula (2) is the same as the calculation term of the formula (1) in the first embodiment, and therefore, six hues (red, yellow, green, cyan, blue, Magenta) and inter-hue regions (red to yellow, yellow to green, green to cyan, cyan to blue, blue to magenta, magenta to red) and the effective operation terms are shown in FIGS. 10 (a) and 10 (b). Same as the case.
[0145]
Therefore, as in the first embodiment, if the coefficient generating means 5 changes the coefficient relating to the effective calculation term in the hue to be adjusted or the area between hues, only the hue of interest can be adjusted, and the change between hues. Can also be corrected. Further, if the coefficient in the calculation coefficient generation means 11 in the polynomial calculation means 3 is changed, the area where the calculation term in the inter-hue area is valid can be changed without affecting other hues.
[0146]
Further, in the color conversion method and the color conversion apparatus according to the present invention, by using two pieces of second comparison data that are effective between the hues, it is possible to solve the occurrence of luminance and saturation caused by the color conversion process. Is possible.
[0147]
As described above, red, blue, green, yellow, cyan, magenta are obtained by changing the coefficients related to the multiplication term related to the specific hue and the first comparison data (h1r, h1g, h1b, h1c, h1m, h1y). Only the hues of interest in the six hues of (2) can be adjusted without affecting other hues, and the second comparison data (h1ry1, h2ry2, h2gy1, h2gy2, h2gc1, h2gc2, h2bc1, h2bc2, h2bc1, h2bm1) can be adjusted. , H2bm2, h2rm1, and h2rm2), the regions between the six hues of red to yellow, yellow to green, green to cyan, cyan to blue, blue to magenta, and magenta to red are independently corrected. Thus, the degree of change between the six hues can also be corrected.
[0148]
Therefore, it is possible to obtain a color conversion method or color conversion apparatus that can change the conversion characteristics flexibly and that does not require a large-capacity memory. In addition, since each of the six inter-hue regions uses two valid second comparison data, for example, the region close to red between the red to yellow hues and close to yellow between the red to yellow hues. It is possible to individually adjust the area, and it is possible to eliminate the reduction in saturation and luminance caused by the color conversion process, and to perform the color conversion process without narrowing the color reproducible range Is also possible.
[0149]
In the second embodiment, the case where the process of the configuration in FIG. 13 is performed by hardware has been described. Needless to say, the same process can be performed by software in the color conversion apparatus. The same effect as 2 is produced.
[0150]
Embodiment 3 FIG.
In the first embodiment, it is assumed that a partial configuration example in the matrix calculation means 4 is a block diagram shown in FIG. 5, and as shown in Expression (1), the input image is hue data, each calculation term, and achromatic color data. The minimum values α of the data R, G, B (Ri, Gi, Bi) are added to output the image data R, G, B, but as shown in FIG. It is also possible to adjust the achromatic component by generating a coefficient for the minimum value α which is data.
[0151]
FIG. 14 is a block diagram showing an example of the configuration of a color conversion method and color conversion apparatus according to Embodiment 3 of the present invention. In the figure, 1 to 3 are the same as those in FIG. 1 of the first embodiment, 4b is matrix calculation means, and 5b is coefficient generation means.
[0152]
Next, the operation will be described. The maximum value β, the minimum value α, and the identification code S1 are obtained from the input image data Ri, Gi, Bi in the αβ calculation means 1, and the six hue data r, g, b and y, m, c are obtained by the hue data calculation means 2. Since the operation for calculating and obtaining the calculation term in the polynomial calculation means 3 is the same as that in the first embodiment, detailed description thereof will be omitted.
[0153]
The coefficient generating means 5b shown in FIG. 14 generates an operation coefficient U (Fij) and a fixed coefficient U (Eij) of the polynomial data based on the identification code S1, and sends it to the matrix operation means 4b. The matrix calculation means 4b generates the hue data r, g, b from the hue data calculation means 2 and the polynomial data T2, T4, T5, T6 from the polynomial calculation means 3, the minimum value α and the coefficient generation from the αβ calculation means 1. The calculation is performed with the coefficient U from the means 5b as an input, and the following equation (9) is used as the calculation formula to adjust the achromatic component.
[0154]
[Equation 26]
Figure 0003871495
[0155]
In Equation (9), i = 1 to 3 and j = 1 to 3 in (Eij), i = 1 to 3 and j = 1 to 5 in (Fij).
[0156]
Here, FIG. 15 is a block diagram showing a partial configuration example of the matrix calculation means 4b. In FIG. 15, 12a to 12e and 13a to 13c are the same as the matrix calculation means 4 in the first embodiment. 12f is a multiplication means for inputting the minimum value α indicating the achromatic color component from the αβ calculation means 1 and the coefficient U from the coefficient generation means 5b in FIG. 14, and 13d and 13f are addition means. .
[0157]
Next, the operation of FIG. 15 will be described. The multipliers 12a to 12e receive the hue data r, the polynomial data T2, T4, T5, T6 from the polynomial calculator 3 and the coefficients U (Eij) and U (Fij) from the coefficient generator 5b as inputs. And the addition means 13a to 13c add the respective products and sums, but the operation is the same as that of the matrix operation means 4 in the first embodiment.
[0158]
The multiplication means 12f receives the minimum value α of the input image data Ri, Gi, Bi data corresponding to the achromatic component from the αβ calculation means 1 and the coefficient U (Fij) from the coefficient generation means 5b, and performs multiplication. The product is output to the adding means 13d, and the adding means 13d adds the output from the adding means 13c.
[0159]
The output from the adding means 13d is input to the adding means 13f, and the adding means 13f adds the output from the multiplying means 12a to output the sum as the output R1 of the image data R. In the configuration example of FIG. 15, if the hue data r is replaced with g or b, the image data G1 and B1 can be calculated.
[0160]
Here, as the coefficients (Eij) and (Fij), coefficients corresponding to the respective hue data r, g, and b are used, and the configuration of FIG. 15 is used in parallel with the hue data r, g, and b. As a result, high-speed matrix calculation is possible.
[0161]
As described above, the matrix calculation means 4b calculates each coefficient and the minimum value α, which is achromatic data, using the coefficient, adds it to the hue data, and outputs image data R, G, B (R1, G1, B1). An arithmetic expression for obtaining the image data at this time is Expression (3).
[0162]
[Expression 27]
Figure 0003871495
[0163]
Here, in Formula (3), in (Eij), i = 1 to 3, j = 1 to 3, (Fij) i = 1 to 3, and j = 1 to 19.
[0164]
Note that the difference in the number of operation terms in equation (3) and the number of operation terms in FIG. 14 is the same as in the first embodiment except for data in which the operation term in the polynomial data operation means in FIG. 14 is zero. While the calculation method for each pixel is disclosed, the expression (3) is a general expression for the pixel set. In other words, for one pixel, 19 data can be reduced to 5 valid data (T2, T4, T5, T6, α) for the polynomial data of equation (3), and this reduction skillfully improves the properties of the hue data. It is achieved by utilizing it.
[0165]
The combination of valid data changes according to the image data of the pixel of interest, and all polynomial data is valid for all image data.
[0166]
Here, if all the coefficients related to the minimum value α are 1, the achromatic color data is not converted and becomes the same value as the achromatic color data in the input image data R, G, B. If the coefficient is changed in the matrix calculation, reddish black, bluish black, etc. can be selected, and the achromatic component can be adjusted.
[0167]
As described above, the multiplication term and the first comparison data (h1r, h1g, h1b, h1c, h1m, h1y) related to a specific hue and the second comparison data (h1ry1, h2ry2, h2gy1, h2gy2, h2gc1, h2gc2, h2bc1, h2bc2, h2bm1, h2bm2, h2rm1, h2rm2) by changing the coefficients according to each of the six hues of red, blue, green, yellow, cyan, magenta and the six inter-hue regions Only the hue or inter-hue area of interest can be adjusted without affecting other hues or inter-hue areas, and the achromatic color can be changed by changing the coefficient related to the minimum value α, which is achromatic data. Only the components can be adjusted without affecting the hue component, eg standard , It is possible to perform black reddish, the selection of black or the like bluish.
[0168]
In addition, since each of the six inter-hue regions uses two valid second comparison data, for example, the region close to red between the red to yellow hues and close to yellow between the red to yellow hues. It is possible to individually adjust the area, and it is possible to eliminate the reduction in saturation and luminance caused by the color conversion process, and to perform the color conversion process without narrowing the color reproducible range Is also possible.
[0169]
In the third embodiment, the case where the image data R, G, and B after the matrix calculation is obtained has been described. However, after obtaining the image data R, G, and B, the obtained image data R, G, and B are obtained. B may be converted into complementary color data C, M, and Y. If the coefficients in the matrix calculation can be changed with respect to each hue and inter-hue area and the minimum value α that is achromatic data, the same effect as described above can be obtained.
[0170]
In addition, as in the first embodiment, in the third embodiment, it is needless to say that the same processing can be performed by software in the color conversion device, and the same effect as in the third embodiment is achieved. .
[0171]
Embodiment 4 FIG.
In the second embodiment, as shown in Expression (2), the hue data (r, g, b, y, m, c) is configured to be added to each operation term and the minimum value α that is achromatic data. As shown in FIG. 16, the coefficient generating means may be configured to adjust the achromatic color component by generating a coefficient for the minimum value α which is achromatic color data.
[0172]
FIG. 16 is a block diagram showing an example of the configuration of a color conversion method and color conversion apparatus according to Embodiment 4 of the present invention. In the figure, 14, 1b, 2b and 3 are the same as those in FIG. 13 of the second embodiment, and 4b and 5b are the same as those in FIG. 14 of the third embodiment.
[0173]
Next, the operation will be described. The image data R, G, and B are input to the complement means 14, complementary color data Ci, Mi, and Yi subjected to 1's complement processing are output, and the αβ calculation means 1b obtains the maximum value β, the minimum value α, and the identification code S1, The operation of calculating six hue data by the hue data calculation means 2b and obtaining the calculation term in the polynomial calculation means 3 is the same as the processing in the case of the complementary color data C, M, Y in the second embodiment. Detailed explanation is omitted.
[0174]
The coefficient generation means 5b in FIG. 16 generates the calculation coefficient U (Fij) and fixed coefficient U (Eij) of the polynomial data based on the identification code S1, and sends it to the matrix calculation means 4b. The matrix calculation means 4b generates the hue data c, m, y from the hue data calculation means 2b, the polynomial data T2, T4, T5, T6 from the polynomial calculation means 3, and the minimum value α and the coefficient generation from the αβ calculation means 1b. The calculation is performed using the coefficient U from the means 5b as an input, and the following equation (10) is used as the calculation formula to adjust the achromatic component.
[0175]
[Expression 28]
Figure 0003871495
[0176]
In Equation (10), i = 1 to 3 and j = 1 to 3 in (Eij), i = 1 to 3 and j = 1 to 5 in (Fij).
[0177]
The operation of the matrix calculation means 4b is performed when the input hue data is c (or m, y) and the complementary color data C (or M, Y) is calculated and output in FIG. 15 in the third embodiment. Since the same operation is performed, detailed description thereof is omitted.
[0178]
As described above, the matrix calculation means 4b performs calculation on each calculation term and the minimum value α, which is achromatic color data, using a coefficient, adds the hue data, and outputs complementary color data C, M, and Y. Image data at this time An arithmetic expression for obtaining is given by Expression (4).
[0179]
[Expression 29]
Figure 0003871495
[0180]
Here, in Formula (4), in (Eij), i = 1 to 3, j = 1 to 3, (Fij) i = 1 to 3, and j = 1 to 19.
[0181]
Note that the difference in the number of operation terms in equation (4) and the number of operation terms in FIG. 16 is the same as in the second embodiment except for the data in which the operation term in the polynomial data operation means in FIG. 16 is zero. Whereas the calculation method for each pixel is disclosed, the expression (4) is that a general expression for the pixel set is disclosed. That is, for one pixel, 19 data can be reduced to 5 valid data (T2, T4, T5, T6, α) for the polynomial data of equation (4), and this reduction skillfully improves the properties of the hue data. It is achieved by utilizing it.
[0182]
The combination of valid data changes according to the image data of the pixel of interest, and all polynomial data is valid for all image data.
[0183]
Here, if all the coefficients related to the minimum value α are 1, the achromatic color data is not converted and becomes the same value as the achromatic color data in the input image data R, G, B. If the coefficient is changed in the matrix calculation, reddish black, bluish black, etc. can be selected, and the achromatic component can be adjusted.
[0184]
As described above, by changing the coefficients related to the multiplication term and the first comparison data relating to the specific hue and the second comparison data relating to the inter-hue region, red, blue, green, yellow, cyan, A minimum value α which is achromatic color data that can adjust only the hue or inter-hue area of interest in the six hues and the six inter-hue areas of magenta without affecting other hues or inter-hue areas. By changing the coefficient relating to the above, it is possible to adjust only the achromatic color component without affecting the hue component. For example, standard black, reddish black, bluish black, etc. can be selected.
[0185]
In addition, since each of the six inter-hue regions uses two valid second comparison data, for example, the region close to red between the red to yellow hues and close to yellow between the red to yellow hues. It is possible to individually adjust the area, and it is possible to eliminate the reduction in saturation and luminance caused by the color conversion process, and to perform the color conversion process without narrowing the color reproducible range Is also possible.
[0186]
As in the case of the above-described embodiment, it is needless to say that the above-described processing can be performed by software in the color conversion apparatus in Embodiment 4 as well, and the same effects as in Embodiment 4 can be obtained.
[0187]
【The invention's effect】
Since it is configured as described above, the color conversion method and color conversion apparatus according to the present invention have the following effects.
[0188]
The color conversion device according to the present invention is a color conversion device that performs color conversion of red, green, and blue image data R, G, and B for each pixel.
(1) calculation means for calculating the maximum value β and the minimum value α in the image data R, G, B for each pixel;
(2) Subtraction processing between the image data R, G, B and the maximum value β and minimum value α output from the calculation means
r = R-α, g = G-α, b = B-α,
y = β-B, m = β-G, c = β-R,
Hue data calculation means for calculating hue data r, g, b and y, m, c by
(3) First comparison data using each hue data output from the hue data calculation means
h1r = min (m, y), h1g = min (y, c),
h1b = min (c, m), h1c = min (g, b),
h1m = min (b, r), h1y = min (r, g),
(Min (A, B) indicates the minimum value of A and B)
First comparison data generating means for generating
(4) Second comparison data using the first comparison data which is an output from the first comparison data generating means
h2ry1 = min (aq11 × h1y, ap11 × h1r),
h2rm1 = min (aq12 × h1m, ap12 × h1r),
h2gy1 = min (aq13 × h1y, ap13 × h1g),
h2gc1 = min (aq14 × h1c, ap14 × h1g),
h2bm1 = min (aq15 × h1m, ap15 × h1b),
h2bc1 = min (aq16 × h1c, ap16 × h1b),
h2ry2 = min (aq21 × h1y, ap21 × h1r),
h2rm2 = min (aq22 × h1m, ap22 × h1r),
h2gy2 = min (aq23 × h1y, ap23 × h1g),
h2gc2 = min (aq24 × h1c, ap24 × h1g),
h2bm2 = min (aq25 × h1m, ap25 × h1b),
h2bc2 = min (aq26 × h1c, ap26 × h1b),
Second comparison data generating means for generating
(5) Coefficient generating means for generating predetermined matrix coefficients Eij (i = 1 to 3, j = 1 to 3) and Fij (i = 1 to 3, j = 1 to 18),
From the first comparison data from the first comparison data generation means, the second comparison data from the second comparison data generation means, the hue data from the hue data calculation means, and the calculation means Since the image data subjected to color conversion is obtained by performing the matrix operation of the following equation (1) using the coefficient from the coefficient generating means using the minimum value α of Image data is obtained as image data R, G, and B expressed in three colors of red, blue, and green. Six hues of red, blue, green, yellow, cyan, and magenta, or red to yellow, yellow to green, Only the inter-hue area of interest in the six hues of green to cyan, cyan to blue, blue to magenta, magenta to red can be adjusted without affecting the other hue areas, and color conversion processing Therefore, it is possible to obtain a color conversion processing apparatus that can remove the decrease in saturation and luminance caused by the above, and that can perform color conversion processing without narrowing the color reproducible range.
[0189]
[30]
Figure 0003871495
[0190]
The color conversion device according to the present invention is a color conversion device that performs color conversion of red, green, and blue image data R, G, and B for each pixel.
(1) means for obtaining complementary color data C, M, Y of cyan, magenta, yellow from the image data R, G, B for each pixel;
(2) calculating means for calculating the maximum value β and the minimum value α in the complementary color data C, M, Y;
(3) Subtraction process between the complementary color data C, M, Y and the maximum value β and the minimum value α which are outputs from the calculation means
r = β-C, g = β-M, b = β-Y,
y = Y-α, m = M-α, c = C-α,
Hue data calculation means for calculating hue data r, g, b and y, m, c by
(4) First comparison data using each hue data output from the hue data calculation means
h1r = min (m, y), h1g = min (y, c),
h1b = min (c, m), h1c = min (g, b),
h1m = min (b, r), h1y = min (r, g),
(Min (A, B) indicates the minimum value of A and B)
First comparison data generating means for generating
(5) Second comparison data using the first comparison data which is an output from the first comparison data generating means
h2ry1 = min (aq11 × h1y, ap11 × h1r),
h2rm1 = min (aq12 × h1m, ap12 × h1r),
h2gy1 = min (aq13 × h1y, ap13 × h1g),
h2gc1 = min (aq14 × h1c, ap14 × h1g),
h2bm1 = min (aq15 × h1m, ap15 × h1b),
h2bc1 = min (aq16 × h1c, ap16 × h1b),
h2ry2 = min (aq21 × h1y, ap21 × h1r),
h2rm2 = min (aq22 × h1m, ap22 × h1r),
h2gy2 = min (aq23 × h1y, ap23 × h1g),
h2gc2 = min (aq24 × h1c, ap24 × h1g),
h2bm2 = min (aq25 × h1m, ap25 × h1b),
h2bc2 = min (aq26 × h1c, ap26 × h1b),
Second comparison data generating means for generating
(6) Coefficient generating means for generating predetermined matrix coefficients Eij (i = 1 to 3, j = 1 to 3) and Fij (i = 1 to 3, j = 1 to 18),
From the first comparison data from the first comparison data generation means, the second comparison data from the second comparison data generation means, the hue data from the hue data calculation means, and the calculation means Since the image data subjected to color conversion is obtained by performing the matrix operation of the following equation (2) using the coefficient from the coefficient generation means using the minimum value α, the color conversion is performed. Image data is obtained as image data Y, M, and C expressed in three colors of yellow, magenta, and cyan. Six hues of red, blue, green, yellow, cyan, and magenta, or red to yellow, yellow to green, and green. -Adjust only the inter-hue area of interest in the area between the six hues of cyan, cyan-blue, blue-magenta, magenta-red without affecting other inter-hue areas. A color conversion processing apparatus capable of removing the decrease in saturation and luminance caused by the color conversion processing and performing the color conversion processing without narrowing the color reproducible range. Can do.
[0191]
[31]
Figure 0003871495
[0192]
The color conversion device according to the present invention is a color conversion device that performs color conversion of red, green, and blue image data R, G, and B for each pixel.
(1) calculation means for calculating the maximum value β and the minimum value α in the image data R, G, B for each pixel;
(2) Subtraction processing between the image data R, G, B and the maximum value β and minimum value α output from the calculation means
r = R-α, g = G-α, b = B-α,
y = β-B, m = β-G, c = β-R,
Hue data calculation means for calculating hue data r, g, b and y, m, c by
(3) First comparison data using each hue data output from the hue data calculation means
h1r = min (m, y), h1g = min (y, c),
h1b = min (c, m), h1c = min (g, b),
h1m = min (b, r), h1y = min (r, g),
(Min (A, B) indicates the minimum value of A and B)
First comparison data generating means for generating
(4) Second comparison data using the first comparison data which is an output from the first comparison data generating means
h2ry1 = min (aq11 × h1y, ap11 × h1r),
h2rm1 = min (aq12 × h1m, ap12 × h1r),
h2gy1 = min (aq13 × h1y, ap13 × h1g),
h2gc1 = min (aq14 × h1c, ap14 × h1g),
h2bm1 = min (aq15 × h1m, ap15 × h1b),
h2bc1 = min (aq16 × h1c, ap16 × h1b),
h2ry2 = min (aq21 × h1y, ap21 × h1r),
h2rm2 = min (aq22 × h1m, ap22 × h1r),
h2gy2 = min (aq23 × h1y, ap23 × h1g),
h2gc2 = min (aq24 × h1c, ap24 × h1g),
h2bm2 = min (aq25 × h1m, ap25 × h1b),
h2bc2 = min (aq26 × h1c, ap26 × h1b),
Means for generating
(5) a coefficient generating means for generating predetermined matrix coefficients Eij (i = 1 to 3, j = 1 to 3) and Fij (i = 1 to 3, j = 1 to 19);
From the first comparison data from the first comparison data generation means, the second comparison data from the second comparison data generation means, the hue data from the hue data calculation means, and the calculation means Since the image data subjected to color conversion is obtained by performing the matrix operation of the following equation (3) using the coefficient from the coefficient generation means using the minimum value α, the color conversion is performed. The image data is obtained as image data R, G, and B expressed in three colors of red, green, and blue. Six hues of red, blue, green, yellow, cyan, and magenta, or red to yellow, yellow to green, and green. ~ Cyan, Cyan ~ Blue, Blue ~ Magenta, Magenta ~ Red, only the inter-hue area of interest can be adjusted without affecting other inter-hue areas for color conversion processing It is possible to eliminate the decrease in saturation and luminance caused by the color conversion process without narrowing the color reproducible range, and further, it relates to the minimum value α which is achromatic color data. By changing the coefficient, it is possible to adjust only the achromatic color component without affecting the hue component, for example, color conversion processing that can select standard black, reddish black, bluish black, etc. A device can be obtained.
[0193]
[Expression 32]
Figure 0003871495
[0194]
The color conversion device according to the present invention is a color conversion device that performs color conversion of red, green, and blue image data R, G, and B for each pixel.
(1) means for obtaining complementary color data C, M, Y of cyan, magenta, yellow from the image data R, G, B for each pixel;
(2) calculating means for calculating the maximum value β and the minimum value α in the complementary color data C, M, Y;
(3) Subtraction process between the complementary color data C, M, Y and the maximum value β and the minimum value α which are outputs from the calculation means
r = β-C, g = β-M, b = β-Y,
y = Y-α, m = M-α, c = C-α,
Hue data calculation means for calculating hue data r, g, b and y, m, c by
(4) First comparison data using each hue data output from the hue data calculation means
h1r = min (m, y), h1g = min (y, c),
h1b = min (c, m), h1c = min (g, b),
h1m = min (b, r), h1y = min (r, g),
(Min (A, B) indicates the minimum value of A and B)
First comparison data generating means for generating
(5) Second comparison data using the first comparison data which is an output from the first comparison data generating means
h2ry1 = min (aq11 × h1y, ap11 × h1r),
h2rm1 = min (aq12 × h1m, ap12 × h1r),
h2gy1 = min (aq13 × h1y, ap13 × h1g),
h2gc1 = min (aq14 × h1c, ap14 × h1g),
h2bm1 = min (aq15 × h1m, ap15 × h1b),
h2bc1 = min (aq16 × h1c, ap16 × h1b),
h2ry2 = min (aq21 × h1y, ap21 × h1r),
h2rm2 = min (aq22 × h1m, ap22 × h1r),
h2gy2 = min (aq23 × h1y, ap23 × h1g),
h2gc2 = min (aq24 × h1c, ap24 × h1g),
h2bm2 = min (aq25 × h1m, ap25 × h1b),
h2bc2 = min (aq26 × h1c, ap26 × h1b),
Second comparison data generating means for generating
(6) Coefficient generating means for generating predetermined matrix coefficients Eij (i = 1 to 3, j = 1 to 3) and Fij (i = 1 to 3, j = 1 to 19),
From the first comparison data from the first comparison data generation means, the second comparison data from the second comparison data generation means, the hue data from the hue data calculation means, and the calculation means Since the image data subjected to color conversion is obtained by performing the matrix operation of the following equation (4) using the coefficient from the coefficient generation means using the minimum value α, the color conversion is performed. Image data is obtained as image data Y, M, and C expressed in three colors of yellow, magenta, and cyan. Six hues of red, blue, green, yellow, cyan, and magenta, or red to yellow, yellow to green, and green. -Adjust only the inter-hue area of interest in the area between the six hues of cyan, cyan-blue, blue-magenta, magenta-red without affecting other inter-hue areas. In addition, it is possible to eliminate the saturation and luminance reduction caused by the color conversion process, and to perform the color conversion process without narrowing the color reproducible range. By changing the coefficient related to a certain minimum value α, only the achromatic color component can be adjusted without affecting the hue component. For example, standard black, reddish black, blued black, etc. are selected. It is possible to obtain a color conversion processing device that can
[0195]
[Expression 33]
Figure 0003871495
[0196]
The color conversion device according to the present invention multiplies each of the first comparison data by predetermined calculation coefficients aq11 to aq16, aq21 to aq26, ap11 to ap16, and ap21 to ap26 in the second comparison data generation unit. The multiplication means sets the arithmetic coefficients aq11 to aq16, aq21 to aq26, ap11 to ap16, and ap21 to ap26 to integer values of 1, 2, 4, 8,... Since the calculation with the calculation coefficient is performed, a color conversion processing device with simplified processing can be obtained by replacing the multiplication processing with bit shift.
[0197]
In the color conversion apparatus according to the present invention, the calculation means calculates the maximum value β and the minimum value α using the image data R, G, B or the complementary color data C, M, Y, and the maximum and minimum According to the type of the image data or the complementary color data, comprising an identification code output means for outputting an identification code for specifying hue data that becomes zero,
By generating first comparison data in the first comparison data generating means, generating matrix coefficients in the coefficient generating means, and performing matrix calculation using the matrix coefficients in accordance with the identification code output from the calculating means Since color-converted image data or complementary color data is obtained, it is possible to obtain a color conversion processing apparatus that can reduce the number of calculation terms for performing matrix calculation in each pixel.
[0198]
The color conversion method according to the present invention is a color conversion method for color-converting red, green, and blue image data R, G, and B for each pixel.
(1) a calculation step for calculating a maximum value β and a minimum value α in the image data R, G, B for each pixel;
(2) Subtraction processing between the image data R, G, B and the maximum value β and the minimum value α obtained by the calculation step
r = R-α, g = G-α, b = B-α,
y = β-B, m = β-G, c = β-R,
A hue data calculation step for calculating hue data r, g, b and y, m, c by
(3) First comparison data using each hue data obtained in the hue data calculating step.
h1r = min (m, y), h1g = min (y, c),
h1b = min (c, m), h1c = min (g, b),
h1m = min (b, r), h1y = min (r, g),
(Min (A, B) indicates the minimum value of A and B)
A first comparison data generation step for generating
(4) Second comparison data using the first comparison data obtained by the first comparison data generation step.
h2ry1 = min (aq11 × h1y, ap11 × h1r),
h2rm1 = min (aq12 × h1m, ap12 × h1r),
h2gy1 = min (aq13 × h1y, ap13 × h1g),
h2gc1 = min (aq14 × h1c, ap14 × h1g),
h2bm1 = min (aq15 × h1m, ap15 × h1b),
h2bc1 = min (aq16 × h1c, ap16 × h1b),
h2ry2 = min (aq21 × h1y, ap21 × h1r),
h2rm2 = min (aq22 × h1m, ap22 × h1r),
h2gy2 = min (aq23 × h1y, ap23 × h1g),
h2gc2 = min (aq24 × h1c, ap24 × h1g),
h2bm2 = min (aq25 × h1m, ap25 × h1b),
h2bc2 = min (aq26 × h1c, ap26 × h1b),
A second comparison data generation step for generating
(5) a coefficient generation step for generating predetermined matrix coefficients Eij (i = 1 to 3, j = 1 to 3) and Fij (i = 1 to 3, j = 1 to 18);
The first comparison data obtained by the first comparison data generation step, the second comparison data obtained by the second comparison data generation step, the hue data obtained by the hue data calculation step, and the Using the minimum value α obtained in the calculation step, color-converted image data is obtained by performing a matrix operation of the following equation (1) using the coefficient generated in the coefficient generation step. Therefore, the color-converted image data is obtained as image data R, G, and B expressed in three colors of red, blue, and green, and six hues of red, blue, green, yellow, cyan, and magenta, or red to We focus on the areas between the six hues of yellow, yellow to green, green to cyan, cyan to blue, blue to magenta, and magenta to red. Only the inter-hue area can be adjusted without affecting other inter-hue areas, and it is possible to eliminate the decrease in saturation and luminance caused by the color conversion process, narrowing the color reproducible range It is possible to realize a color conversion processing method that can perform color conversion processing without any problem.
[0199]
[Expression 34]
Figure 0003871495
[0200]
The color conversion method according to the present invention is a color conversion method for color-converting red, green, and blue image data R, G, and B for each pixel.
(1) obtaining complementary color data C, M, Y of cyan, magenta, yellow from the image data R, G, B for each pixel;
(2) a calculation step of calculating a maximum value β and a minimum value α in the complementary color data C, M, Y;
(3) Subtraction processing between the complementary color data C, M, and Y and the maximum value β and the minimum value α obtained by the calculation step
r = β-C, g = β-M, b = β-Y,
y = Y-α, m = M-α, c = C-α,
A hue data calculation step for calculating hue data r, g, b and y, m, c by
(4) First comparison data using each hue data obtained in the hue data calculating step
h1r = min (m, y), h1g = min (y, c),
h1b = min (c, m), h1c = min (g, b),
h1m = min (b, r), h1y = min (r, g),
(Min (A, B) indicates the minimum value of A and B)
A first comparison data generation step for generating
(5) Second comparison data using the first comparison data obtained in the first comparison data generation step.
h2ry1 = min (aq11 × h1y, ap11 × h1r),
h2rm1 = min (aq12 × h1m, ap12 × h1r),
h2gy1 = min (aq13 × h1y, ap13 × h1g),
h2gc1 = min (aq14 × h1c, ap14 × h1g),
h2bm1 = min (aq15 × h1m, ap15 × h1b),
h2bc1 = min (aq16 × h1c, ap16 × h1b),
h2ry2 = min (aq21 × h1y, ap21 × h1r),
h2rm2 = min (aq22 × h1m, ap22 × h1r),
h2gy2 = min (aq23 × h1y, ap23 × h1g),
h2gc2 = min (aq24 × h1c, ap24 × h1g),
h2bm2 = min (aq25 × h1m, ap25 × h1b),
h2bc2 = min (aq26 × h1c, ap26 × h1b),
A second comparison data generation step for generating
(6) a coefficient generation step for generating predetermined matrix coefficients Eij (i = 1 to 3, j = 1 to 3) and Fij (i = 1 to 3, j = 1 to 18);
The first comparison data obtained by the first comparison data generation step, the second comparison data obtained by the second comparison data generation step, the hue data obtained by the hue data calculation step, and the Using the minimum value α obtained in the calculation step, color-converted image data is obtained by performing a matrix operation of the following equation (2) using the coefficient generated in the coefficient generation step. Therefore, the color-converted image data is obtained as image data Y, M, and C expressed in three colors of yellow, magenta, and cyan, and six hues of red, blue, green, yellow, cyan, and magenta, or red to yellow. , Yellow to green, green to cyan, cyan to blue, blue to magenta, magenta to red Only the inter-hue area of interest can be adjusted without affecting other inter-hue areas, and it is possible to eliminate the reduction in saturation and brightness caused by the color conversion process. It is possible to realize a color conversion processing method capable of performing color conversion processing without narrowing the possible range.
[0201]
[Expression 35]
Figure 0003871495
[0202]
The color conversion method according to the present invention is a color conversion method for color-converting red, green, and blue image data R, G, and B for each pixel.
(1) a calculation step for calculating a maximum value β and a minimum value α in the image data R, G, B for each pixel;
(2) Subtraction processing between the image data R, G, B and the maximum value β and the minimum value α obtained by the calculation step
r = R-α, g = G-α, b = B-α,
y = β-B, m = β-G, c = β-R,
A hue data calculation step for calculating hue data r, g, b and y, m, c by
(3) First comparison data using each hue data obtained in the hue data calculating step.
h1r = min (m, y), h1g = min (y, c),
h1b = min (c, m), h1c = min (g, b),
h1m = min (b, r), h1y = min (r, g),
(Min (A, B) indicates the minimum value of A and B)
A first comparison data generation step for generating
(4) Second comparison data using the first comparison data obtained by the first comparison data generation step.
h2ry1 = min (aq11 × h1y, ap11 × h1r),
h2rm1 = min (aq12 × h1m, ap12 × h1r),
h2gy1 = min (aq13 × h1y, ap13 × h1g),
h2gc1 = min (aq14 × h1c, ap14 × h1g),
h2bm1 = min (aq15 × h1m, ap15 × h1b),
h2bc1 = min (aq16 × h1c, ap16 × h1b),
h2ry2 = min (aq21 × h1y, ap21 × h1r),
h2rm2 = min (aq22 × h1m, ap22 × h1r),
h2gy2 = min (aq23 × h1y, ap23 × h1g),
h2gc2 = min (aq24 × h1c, ap24 × h1g),
h2bm2 = min (aq25 × h1m, ap25 × h1b),
h2bc2 = min (aq26 × h1c, ap26 × h1b),
A second comparison data generation step for generating
(5) a predetermined matrix coefficient Eij (i = 1 to 3, j = 1 to 3) and a coefficient generation step for generating Fij (i = 1 to 3, j = 1 to 19),
The first comparison data obtained by the first comparison data generation step, the second comparison data obtained by the second comparison data generation step, the hue data obtained by the hue data calculation step, and the Since the minimum value α obtained in the calculation step is used, color-converted image data is obtained by performing a matrix operation of the following equation (3) using the coefficient obtained in the coefficient generation step. The color-converted image data is obtained as image data R, G, and B expressed in three colors of red, green, and blue. Six hues of red, blue, green, yellow, cyan, and magenta, or red to yellow, Hue of interest in the region between the six hues of yellow to green, green to cyan, cyan to blue, blue to magenta, magenta to red It is possible to adjust only the inter-gamut area without affecting the other inter-hue area, and it is possible to eliminate the decrease in saturation and luminance caused by the color conversion process, and to narrow the range where color reproduction is possible. Color conversion processing can be performed without any change, and furthermore, by changing the coefficient related to the minimum value α which is achromatic color data, only the achromatic color component can be adjusted without affecting the hue component, for example, It is possible to realize a color conversion processing method capable of selecting standard black, reddish black, blued black, and the like.
[0203]
[Expression 36]
Figure 0003871495
[0204]
The color conversion method according to the present invention is a color conversion method for color-converting red, green, and blue image data R, G, and B for each pixel.
(1) obtaining complementary color data C, M, Y of cyan, magenta, yellow from the image data R, G, B for each pixel;
(2) a calculation step for calculating a maximum value β and a minimum value α in the complementary color data C, M, Y;
(3) Subtraction processing between the complementary color data C, M, Y and the maximum value β and the minimum value α obtained by the calculation step
r = β-C, g = β-M, b = β-Y,
y = Y-α, m = M-α, c = C-α,
A hue data calculation step for calculating hue data r, g, b and y, m, c by
(4) First comparison data using each hue data obtained in the hue data calculation step.
h1r = min (m, y), h1g = min (y, c),
h1b = min (c, m), h1c = min (g, b),
h1m = min (b, r), h1y = min (r, g),
(Min (A, B) indicates the minimum value of A and B)
A first comparison data generation step for generating
(5) Second comparison data using the first comparison data obtained in the first comparison data generation step.
h2ry1 = min (aq11 × h1y, ap11 × h1r),
h2rm1 = min (aq12 × h1m, ap12 × h1r),
h2gy1 = min (aq13 × h1y, ap13 × h1g),
h2gc1 = min (aq14 × h1c, ap14 × h1g),
h2bm1 = min (aq15 × h1m, ap15 × h1b),
h2bc1 = min (aq16 × h1c, ap16 × h1b),
h2ry2 = min (aq21 × h1y, ap21 × h1r),
h2rm2 = min (aq22 × h1m, ap22 × h1r),
h2gy2 = min (aq23 × h1y, ap23 × h1g),
h2gc2 = min (aq24 × h1c, ap24 × h1g),
h2bm2 = min (aq25 × h1m, ap25 × h1b),
h2bc2 = min (aq26 × h1c, ap26 × h1b),
A second comparison data generation step for generating
(6) a coefficient generation step for generating predetermined matrix coefficients Eij (i = 1 to 3, j = 1 to 3) and Fij (i = 1 to 3, j = 1 to 19);
The first comparison data obtained by the first comparison data generation step, the second comparison data obtained by the second comparison data generation step, the hue data obtained by the hue data calculation step, and the Color-converted image data is obtained by performing a matrix operation of the following equation (4) using the coefficient generated in the coefficient generation step, using the minimum value α obtained in the calculation step. Therefore, the color-converted image data is obtained as image data Y, M, and C expressed in three colors of yellow, magenta, and cyan, and has six hues of red, blue, green, yellow, cyan, and magenta, or red to yellow. , Yellow to green, green to cyan, cyan to blue, blue to magenta, magenta to red Only the inter-hue area of interest can be adjusted without affecting other inter-hue areas, and it is possible to eliminate the reduction in saturation and brightness caused by the color conversion process. Color conversion processing can be performed without narrowing the possible range, and by adjusting the coefficient related to the minimum value α that is achromatic data, only the achromatic color component is adjusted without affecting the hue component For example, it is possible to realize a color conversion processing method capable of selecting standard black, reddish black, blued black, and the like.
[0205]
[Expression 37]
Figure 0003871495
[0206]
In the color conversion method according to the present invention, each first comparison data included in the second comparison data generation step is multiplied by predetermined arithmetic coefficients aq11 to aq16, aq21 to aq26, ap11 to ap16, and ap21 to ap26. In the multiplication step, the arithmetic coefficients aq11 to aq16, aq21 to aq26, ap11 to ap16, and ap21 to ap26 are set to integer values of 1, 2, 4, 8,... Since the calculation with the calculation coefficient is performed, a color conversion processing method with simplified processing can be realized by replacing the multiplication processing with bit shift.
[0207]
In the color conversion method according to the present invention, the calculation step calculates the maximum value β and the minimum value α using the image data R, G, B or the complementary color data C, M, Y, and the maximum and minimum values. According to the type of the image data or the complementary color data, including an identification code output step for outputting an identification code for specifying hue data that becomes zero,
By generating first comparison data in the first comparison data generation step, generating matrix coefficients in the coefficient generation step, and performing matrix calculation using the matrix coefficients in accordance with the identification code output in the calculation step Since color-converted image data or complementary color data is obtained, a color conversion processing method capable of reducing the number of calculation terms for performing matrix calculation in each pixel can be realized.
[Brief description of the drawings]
FIG. 1 is a block diagram illustrating an example of a configuration of a color conversion apparatus according to a first embodiment.
FIG. 2 is a block diagram showing an example of a configuration of polynomial arithmetic means in the color conversion apparatus according to Embodiment 1;
FIG. 3 is an explanatory diagram illustrating an example of a relationship among an identification code, a maximum value, a minimum value, and hue data that is 0 in the color conversion device according to Embodiment 1.
FIG. 4 is an explanatory diagram for explaining an operation of a zero removing unit in the color conversion device according to the first embodiment.
FIG. 5 is a block diagram illustrating an example of a partial configuration of matrix calculation means in the color conversion apparatus according to Embodiment 1;
FIG. 6 is an explanatory diagram schematically showing the relationship between six hues and hue data.
7 is an explanatory view schematically showing a relationship between first comparison data and hue in the color conversion apparatus according to Embodiment 1. FIG.
8 is a diagram schematically showing a relationship between second comparison data and hue in the color conversion apparatus according to Embodiment 1. FIG.
FIG. 9 is an explanatory diagram schematically showing the relationship between the calculation term and the hue based on comparison data when the calculation coefficient is changed in the calculation coefficient generation means of the polynomial calculation means in the color conversion apparatus according to the first embodiment. .
FIG. 10 is an explanatory diagram showing the relationship between effective hues related to each hue and a region between hues in the color conversion apparatus according to Embodiment 1;
FIG. 11 is an explanatory diagram illustrating an example of a relationship between R1, G1, B1, and six hues when color conversion processing is performed by manipulating arithmetic coefficients related to h1g and h1y in the color conversion device according to the first embodiment. It is.
12 is an example of the relationship between R1, G1, B1, and six hues when color conversion processing is performed by manipulating arithmetic coefficients applied to h1g, h1y, h2gy1, and h2gy2 in the color conversion apparatus according to Embodiment 1. FIG. It is explanatory drawing showing.
FIG. 13 is a block diagram illustrating an example of a configuration of a color conversion device according to a second embodiment.
FIG. 14 is a block diagram illustrating an example of a configuration of a color conversion apparatus according to a third embodiment.
FIG. 15 is an explanatory diagram showing an example of a partial configuration of matrix calculation means in the color conversion apparatus according to Embodiment 3;
FIG. 16 is a block diagram illustrating an example of a configuration of a color conversion apparatus according to a fourth embodiment.
FIG. 17 is a block diagram illustrating an example of a configuration of a conventional color conversion apparatus.
FIG. 18 is a block diagram illustrating an example of a configuration of polynomial arithmetic means in a conventional color conversion apparatus.
FIG. 19 is an explanatory diagram schematically showing the relationship between six hues and hue data in a conventional color conversion apparatus.
FIG. 20 is an explanatory diagram schematically showing the relationship between six hues and multiplication terms in a conventional color conversion apparatus.
FIG. 21 is an explanatory diagram schematically showing the relationship between six hues and first comparison data in a conventional color conversion apparatus.
FIG. 22 is an explanatory diagram schematically showing the relationship between six hues and second comparison data in a conventional color conversion apparatus.
FIG. 23 is an explanatory diagram illustrating a relationship between R1, G1, and B1 and six hues when color conversion processing is not performed in a conventional color conversion apparatus.
FIG. 24 is an explanatory diagram illustrating an example of a relationship between R1, G1, and B1 and six hues when a color conversion process is performed by operating a calculation coefficient applied to h1g in a conventional color conversion apparatus.
FIG. 25 is an explanatory diagram illustrating an example of a relationship between R1, G1, and B1 and six hues when color conversion processing is performed by manipulating arithmetic coefficients related to h1g and h2gy in a conventional color conversion apparatus.
FIG. 26 is an explanatory diagram illustrating an example of a relationship between R1, G1, and B1 and six hues when color conversion processing is performed by manipulating arithmetic coefficients related to h1g and h1y in a conventional color conversion apparatus.
FIG. 27 is an explanatory diagram showing an example of the relationship between R1, G1, B1 and six hues when color conversion processing is performed by manipulating arithmetic coefficients related to h1g, h1y, h2gy in a conventional color conversion apparatus. is there.
FIG. 28 is a diagram illustrating another example of the relationship between R1, G1, and B1 and six hues when color conversion processing is performed by manipulating arithmetic coefficients related to h1g, h1y, and h2gy in a conventional color conversion apparatus. FIG.
[Explanation of symbols]
1, 1b αβ calculating means, 2, 2b hue data calculating means, 3 polynomial calculating means, 4, 4b matrix calculating means, 5, 5b coefficient generating means, 6 combining means, 7 zero removing means, 9a, 9b, 9c, 9d Minimum value selection means, 10a, 10b, 10c, 10d calculation means, 11 calculation coefficient generation means, 12a to 12f multiplication means, 13a to 13f addition means, 14's complement means, 101 αβ calculation means, 102 hue data calculation means, 103 polynomial Calculation means, 104 matrix calculation means, 105 coefficient generation means, 106 synthesis means, 107 zero elimination means, 108a, 108b multiplication means, 109a, 109b, 109c minimum value selection means, 110a, 110b calculation means, 111 calculation coefficient generation means.

Claims (12)

赤、緑、青の画像データR、G、Bを画素毎に色変換する色変換装置において、
(1)画素毎の上記画像データR、G、Bにおける最大値βおよび最小値αを算出する算出手段と、
(2)上記画像データR、G、Bと上記算出手段から出力される上記最大値βおよび最小値αとの減算処理
r=R−α、g=G−α、b=B−α、
y=β−B、m=β−G、c=β−R、
により色相データr、g、bおよびy、m、cを算出する色相データ算出手段と、
(3)上記色相データ算出手段から出力される上記各色相データを用いて第1の比較データ
h1r=min(m、y)、h1g=min(y、c)、
h1b=min(c、m)、h1c=min(g、b)、
h1m=min(b、r)、h1y=min(r、g)、
(min(A、B)はA、Bの最小値を示す。)
を生成する第1の比較データ生成手段と、
(4)該第1の比較データ生成手段からの出力である上記第1の比較データを用いて第2の比較データ
h2ry1=min(aq11×h1y、ap11×h1r)、
h2rm1=min(aq12×h1m、ap12×h1r)、
h2gy1=min(aq13×h1y、ap13×h1g)、
h2gc1=min(aq14×h1c、ap14×h1g)、
h2bm1=min(aq15×h1m、ap15×h1b)、
h2bc1=min(aq16×h1c、ap16×h1b)、
h2ry2=min(aq21×h1y、ap21×h1r)、
h2rm2=min(aq22×h1m、ap22×h1r)、
h2gy2=min(aq23×h1y、ap23×h1g)、
h2gc2=min(aq24×h1c、ap24×h1g)、
h2bm2=min(aq25×h1m、ap25×h1b)、
h2bc2=min(aq26×h1c、ap26×h1b)、
を生成する第2の比較データ生成手段と、
(5)所定のマトリクス係数Eij(i=1〜3、j=1〜3)とFij(i=1〜3、j=1〜18)とを発生する係数発生手段とを備え、
上記第1の比較データ生成手段からの上記第1の比較データ、上記第2の比較データ生成手段からの上記第2の比較データ、上記色相データ算出手段からの上記色相データ、および上記算出手段からの上記最小値αを用いて、上記係数発生手段からの上記係数による以下の式(1)のマトリクス演算を行うことにより色変換された画像データを得ることを特徴とする色変換装置。
Figure 0003871495
In a color conversion device that performs color conversion of red, green, and blue image data R, G, and B for each pixel,
(1) calculation means for calculating the maximum value β and the minimum value α in the image data R, G, B for each pixel;
(2) Subtraction processing r = R−α, g = G−α, b = B−α, between the image data R, G, B and the maximum value β and minimum value α output from the calculation means
y = β-B, m = β-G, c = β-R,
Hue data calculation means for calculating hue data r, g, b and y, m, c by
(3) First comparison data h1r = min (m, y), h1g = min (y, c), using the hue data output from the hue data calculation unit,
h1b = min (c, m), h1c = min (g, b),
h1m = min (b, r), h1y = min (r, g),
(Min (A, B) indicates the minimum value of A and B)
First comparison data generating means for generating
(4) Second comparison data h2ry1 = min (aq11 × h1y, ap11 × h1r) using the first comparison data output from the first comparison data generating means,
h2rm1 = min (aq12 × h1m, ap12 × h1r),
h2gy1 = min (aq13 × h1y, ap13 × h1g),
h2gc1 = min (aq14 × h1c, ap14 × h1g),
h2bm1 = min (aq15 × h1m, ap15 × h1b),
h2bc1 = min (aq16 × h1c, ap16 × h1b),
h2ry2 = min (aq21 × h1y, ap21 × h1r),
h2rm2 = min (aq22 × h1m, ap22 × h1r),
h2gy2 = min (aq23 × h1y, ap23 × h1g),
h2gc2 = min (aq24 × h1c, ap24 × h1g),
h2bm2 = min (aq25 × h1m, ap25 × h1b),
h2bc2 = min (aq26 × h1c, ap26 × h1b),
Second comparison data generating means for generating
(5) Coefficient generating means for generating predetermined matrix coefficients Eij (i = 1 to 3, j = 1 to 3) and Fij (i = 1 to 3, j = 1 to 18),
From the first comparison data from the first comparison data generation means, the second comparison data from the second comparison data generation means, the hue data from the hue data calculation means, and the calculation means A color conversion apparatus characterized in that color-converted image data is obtained by performing a matrix operation of the following equation (1) using the coefficient from the coefficient generation means, using the minimum value α.
Figure 0003871495
赤、緑、青の画像データR、G、Bを画素毎に色変換する色変換装置において、
(1)画素毎の上記画像データR、G、Bよりシアン、マゼンタ、イエローの補色データC、M、Yを求める手段と、
(2)上記補色データC、M、Yにおける最大値βおよび最小値αを算出する算出手段と、
(3)上記補色データC、M、Yと上記算出手段からの出力である最大値βおよび最小値αとの減算処理
r=β−C、g=β−M、b=β−Y、
y=Y−α、m=M−α、c=C−α、
により色相データr、g、bおよびy、m、cを算出する色相データ算出手段と、
(4)上記色相データ算出手段から出力される上記各色相データを用いて第1の比較データ
h1r=min(m、y)、h1g=min(y、c)、
h1b=min(c、m)、h1c=min(g、b)、
h1m=min(b、r)、h1y=min(r、g)、
(min(A、B)はA、Bの最小値を示す。)
を生成する第1の比較データ生成手段と、
(5)該第1の比較データ生成手段からの出力である上記第1の比較データを用いて第2の比較データ
h2ry1=min(aq11×h1y、ap11×h1r)、
h2rm1=min(aq12×h1m、ap12×h1r)、
h2gy1=min(aq13×h1y、ap13×h1g)、
h2gc1=min(aq14×h1c、ap14×h1g)、
h2bm1=min(aq15×h1m、ap15×h1b)、
h2bc1=min(aq16×h1c、ap16×h1b)、
h2ry2=min(aq21×h1y、ap21×h1r)、
h2rm2=min(aq22×h1m、ap22×h1r)、
h2gy2=min(aq23×h1y、ap23×h1g)、
h2gc2=min(aq24×h1c、ap24×h1g)、
h2bm2=min(aq25×h1m、ap25×h1b)、
h2bc2=min(aq26×h1c、ap26×h1b)、
を生成する第2の比較データ生成手段と、
(6)所定のマトリクス係数Eij(i=1〜3、j=1〜3)とFij(i=1〜3、j=1〜18)とを発生する係数発生手段とを備え、
上記第1の比較データ生成手段からの上記第1の比較データ、上記第2の比較データ生成手段からの上記第2の比較データ、上記色相データ算出手段からの上記色相データ、および上記算出手段からの上記最小値αを用いて、上記係数発生手段からの上記係数による以下の式(2)のマトリクス演算を行うことにより色変換された画像データを得ることを特徴とする色変換装置。
Figure 0003871495
In a color conversion device that performs color conversion of red, green, and blue image data R, G, and B for each pixel,
(1) means for obtaining complementary color data C, M, Y of cyan, magenta, yellow from the image data R, G, B for each pixel;
(2) calculating means for calculating the maximum value β and the minimum value α in the complementary color data C, M, Y;
(3) Subtraction processing of the complementary color data C, M, Y and the maximum value β and the minimum value α which are outputs from the calculation means r = β−C, g = β−M, b = β−Y,
y = Y-α, m = M-α, c = C-α,
Hue data calculation means for calculating hue data r, g, b and y, m, c by
(4) First comparison data h1r = min (m, y), h1g = min (y, c), using the hue data output from the hue data calculation means,
h1b = min (c, m), h1c = min (g, b),
h1m = min (b, r), h1y = min (r, g),
(Min (A, B) indicates the minimum value of A and B)
First comparison data generating means for generating
(5) Second comparison data h2ry1 = min (aq11 × h1y, ap11 × h1r) using the first comparison data output from the first comparison data generating means,
h2rm1 = min (aq12 × h1m, ap12 × h1r),
h2gy1 = min (aq13 × h1y, ap13 × h1g),
h2gc1 = min (aq14 × h1c, ap14 × h1g),
h2bm1 = min (aq15 × h1m, ap15 × h1b),
h2bc1 = min (aq16 × h1c, ap16 × h1b),
h2ry2 = min (aq21 × h1y, ap21 × h1r),
h2rm2 = min (aq22 × h1m, ap22 × h1r),
h2gy2 = min (aq23 × h1y, ap23 × h1g),
h2gc2 = min (aq24 × h1c, ap24 × h1g),
h2bm2 = min (aq25 × h1m, ap25 × h1b),
h2bc2 = min (aq26 × h1c, ap26 × h1b),
Second comparison data generating means for generating
(6) Coefficient generating means for generating predetermined matrix coefficients Eij (i = 1 to 3, j = 1 to 3) and Fij (i = 1 to 3, j = 1 to 18),
From the first comparison data from the first comparison data generation means, the second comparison data from the second comparison data generation means, the hue data from the hue data calculation means, and the calculation means A color conversion apparatus characterized in that color-converted image data is obtained by performing a matrix operation of the following expression (2) using the coefficient from the coefficient generation means using the minimum value α.
Figure 0003871495
赤、緑、青の画像データR、G、Bを画素毎に色変換する色変換装置において、
(1)画素毎の上記画像データR、G、Bにおける最大値βおよび最小値αを算出する算出手段と、
(2)上記画像データR、G、Bと上記算出手段から出力される上記最大値βおよび最小値αとの減算処理
r=R−α、g=G−α、b=B−α、
y=β−B、m=β−G、c=β−R、
により色相データr、g、bおよびy、m、cを算出する色相データ算出手段と、
(3)上記色相データ算出手段から出力される上記各色相データを用いて第1の比較データ
h1r=min(m、y)、h1g=min(y、c)、
h1b=min(c、m)、h1c=min(g、b)、
h1m=min(b、r)、h1y=min(r、g)、
(min(A、B)はA、Bの最小値を示す。)
を生成する第1の比較データ生成手段と、
(4)該第1の比較データ生成手段からの出力である上記第1の比較データを用いて第2の比較データ
h2ry1=min(aq11×h1y、ap11×h1r)、
h2rm1=min(aq12×h1m、ap12×h1r)、
h2gy1=min(aq13×h1y、ap13×h1g)、
h2gc1=min(aq14×h1c、ap14×h1g)、
h2bm1=min(aq15×h1m、ap15×h1b)、
h2bc1=min(aq16×h1c、ap16×h1b)、
h2ry2=min(aq21×h1y、ap21×h1r)、
h2rm2=min(aq22×h1m、ap22×h1r)、
h2gy2=min(aq23×h1y、ap23×h1g)、
h2gc2=min(aq24×h1c、ap24×h1g)、
h2bm2=min(aq25×h1m、ap25×h1b)、
h2bc2=min(aq26×h1c、ap26×h1b)、
を生成する手段と、
(5)所定のマトリクス係数Eij(i=1〜3、j=1〜3)とFij(i=1〜3、j=1〜19)を発生する係数発生手段とを備え、
上記第1の比較データ生成手段からの上記第1の比較データ、上記第2の比較データ生成手段からの上記第2の比較データ、上記色相データ算出手段からの上記色相データ、および上記算出手段からの上記最小値αを用いて、上記係数発生手段からの上記係数による以下の式(3)のマトリクス演算を行うことにより色変換された画像データを得ることを特徴とする色変換装置。
Figure 0003871495
In a color conversion device that performs color conversion of red, green, and blue image data R, G, and B for each pixel,
(1) calculation means for calculating the maximum value β and the minimum value α in the image data R, G, B for each pixel;
(2) Subtraction processing r = R−α, g = G−α, b = B−α, between the image data R, G, B and the maximum value β and minimum value α output from the calculation means
y = β-B, m = β-G, c = β-R,
Hue data calculation means for calculating hue data r, g, b and y, m, c by
(3) First comparison data h1r = min (m, y), h1g = min (y, c), using the hue data output from the hue data calculation unit,
h1b = min (c, m), h1c = min (g, b),
h1m = min (b, r), h1y = min (r, g),
(Min (A, B) indicates the minimum value of A and B)
First comparison data generating means for generating
(4) Second comparison data h2ry1 = min (aq11 × h1y, ap11 × h1r) using the first comparison data output from the first comparison data generating means,
h2rm1 = min (aq12 × h1m, ap12 × h1r),
h2gy1 = min (aq13 × h1y, ap13 × h1g),
h2gc1 = min (aq14 × h1c, ap14 × h1g),
h2bm1 = min (aq15 × h1m, ap15 × h1b),
h2bc1 = min (aq16 × h1c, ap16 × h1b),
h2ry2 = min (aq21 × h1y, ap21 × h1r),
h2rm2 = min (aq22 × h1m, ap22 × h1r),
h2gy2 = min (aq23 × h1y, ap23 × h1g),
h2gc2 = min (aq24 × h1c, ap24 × h1g),
h2bm2 = min (aq25 × h1m, ap25 × h1b),
h2bc2 = min (aq26 × h1c, ap26 × h1b),
Means for generating
(5) a coefficient generating means for generating predetermined matrix coefficients Eij (i = 1 to 3, j = 1 to 3) and Fij (i = 1 to 3, j = 1 to 19);
From the first comparison data from the first comparison data generation means, the second comparison data from the second comparison data generation means, the hue data from the hue data calculation means, and the calculation means A color conversion apparatus characterized in that color-converted image data is obtained by performing a matrix operation of the following expression (3) using the coefficient from the coefficient generation means using the minimum value α.
Figure 0003871495
赤、緑、青の画像データR、G、Bを画素毎に色変換する色変換装置において、
(1)画素毎の上記画像データR、G、Bよりシアン、マゼンタ、イエローの補色データC、M、Yを求める手段と、
(2)上記補色データC、M、Yにおける最大値βと最小値αを算出する算出手段と、
(3)上記補色データC、M、Yと上記算出手段からの出力である最大値βおよび最小値αとの減算処理
r=β−C、g=β−M、b=β−Y、
y=Y−α、m=M−α、c=C−α、
により色相データr、g、bおよびy、m、cを算出する色相データ算出手段と、
(4)上記色相データ算出手段から出力される上記各色相データを用いて第1の比較データ
h1r=min(m、y)、h1g=min(y、c)、
h1b=min(c、m)、h1c=min(g、b)、
h1m=min(b、r)、h1y=min(r、g)、
(min(A、B)はA、Bの最小値を示す。)
を生成する第1の比較データ生成手段と、
(5)該第1の比較データ生成手段からの出力である上記第1の比較データを用いて第2の比較データ
h2ry1=min(aq11×h1y、ap11×h1r)、
h2rm1=min(aq12×h1m、ap12×h1r)、
h2gy1=min(aq13×h1y、ap13×h1g)、
h2gc1=min(aq14×h1c、ap14×h1g)、
h2bm1=min(aq15×h1m、ap15×h1b)、
h2bc1=min(aq16×h1c、ap16×h1b)、
h2ry2=min(aq21×h1y、ap21×h1r)、
h2rm2=min(aq22×h1m、ap22×h1r)、
h2gy2=min(aq23×h1y、ap23×h1g)、
h2gc2=min(aq24×h1c、ap24×h1g)、
h2bm2=min(aq25×h1m、ap25×h1b)、
h2bc2=min(aq26×h1c、ap26×h1b)、
を生成する第2の比較データ生成手段と、
(6)所定のマトリクス係数Eij(i=1〜3、j=1〜3)とFij(i=1〜3、j=1〜19)とを発生する係数発生手段とを備え、
上記第1の比較データ生成手段からの上記第1の比較データ、上記第2の比較データ生成手段からの上記第2の比較データ、上記色相データ算出手段からの上記色相データ、および上記算出手段からの上記最小値αを用いて、上記係数発生手段からの上記係数による以下の式(4)のマトリクス演算を行うことにより色変換された画像データを得ることを特徴とする色変換装置。
Figure 0003871495
In a color conversion device that performs color conversion of red, green, and blue image data R, G, and B for each pixel,
(1) means for obtaining complementary color data C, M, Y of cyan, magenta, yellow from the image data R, G, B for each pixel;
(2) calculating means for calculating the maximum value β and the minimum value α in the complementary color data C, M, Y;
(3) Subtraction processing of the complementary color data C, M, Y and the maximum value β and the minimum value α which are outputs from the calculation means r = β−C, g = β−M, b = β−Y,
y = Y-α, m = M-α, c = C-α,
Hue data calculation means for calculating hue data r, g, b and y, m, c by
(4) First comparison data h1r = min (m, y), h1g = min (y, c), using the hue data output from the hue data calculation means,
h1b = min (c, m), h1c = min (g, b),
h1m = min (b, r), h1y = min (r, g),
(Min (A, B) indicates the minimum value of A and B)
First comparison data generating means for generating
(5) Second comparison data h2ry1 = min (aq11 × h1y, ap11 × h1r) using the first comparison data output from the first comparison data generating means,
h2rm1 = min (aq12 × h1m, ap12 × h1r),
h2gy1 = min (aq13 × h1y, ap13 × h1g),
h2gc1 = min (aq14 × h1c, ap14 × h1g),
h2bm1 = min (aq15 × h1m, ap15 × h1b),
h2bc1 = min (aq16 × h1c, ap16 × h1b),
h2ry2 = min (aq21 × h1y, ap21 × h1r),
h2rm2 = min (aq22 × h1m, ap22 × h1r),
h2gy2 = min (aq23 × h1y, ap23 × h1g),
h2gc2 = min (aq24 × h1c, ap24 × h1g),
h2bm2 = min (aq25 × h1m, ap25 × h1b),
h2bc2 = min (aq26 × h1c, ap26 × h1b),
Second comparison data generating means for generating
(6) Coefficient generating means for generating predetermined matrix coefficients Eij (i = 1 to 3, j = 1 to 3) and Fij (i = 1 to 3, j = 1 to 19),
From the first comparison data from the first comparison data generation means, the second comparison data from the second comparison data generation means, the hue data from the hue data calculation means, and the calculation means A color conversion apparatus characterized in that color-converted image data is obtained by performing a matrix operation of the following equation (4) using the above-mentioned minimum value α of the above-mentioned coefficient from the coefficient generation means.
Figure 0003871495
第2の比較データ生成手段における、各第1の比較データに所定の演算係数aq11〜aq16、aq21〜aq26、ap11〜ap16、およびap21〜ap26を乗算する乗算手段が、演算係数aq11〜aq16、aq21〜aq26、ap11〜ap16、およびap21〜ap26を1、2、4、8、…となる整数値とし、ビットシフトにより上記各第1の比較データと上記演算係数との演算を行うことを特徴とする請求項1乃至請求項4のいずれかに記載の色変換装置。In the second comparison data generating means, multiplication means for multiplying each first comparison data by predetermined calculation coefficients aq11 to aq16, aq21 to aq26, ap11 to ap16, and ap21 to ap26, the calculation coefficients aq11 to aq16, aq21 .., Aq26, ap11 to ap16, and ap21 to ap26 are set to integer values of 1, 2, 4, 8,..., And each of the first comparison data and the calculation coefficient are calculated by bit shift. The color conversion device according to any one of claims 1 to 4. 算出手段は、画像データR、G、Bまたは補色データC、M、Yを用いて最大値βおよび最小値αを算出するとともに、最大および最小となる上記画像データまたは上記補色データの種類に応じて、ゼロとなる色相データを特定するための識別符号を出力する識別符号出力手段を備え、
上記算出手段から出力される識別符号に応じて、第1の比較データ生成手段において第1の比較データを生成し、係数発生手段においてマトリクス係数を発生し、該マトリクス係数によるマトリクス演算を行うことにより色変換された画像データまたは補色データを得ることを特徴とする請求項1乃至請求項5のいずれかに記載の色変換装置。
The calculating means calculates the maximum value β and the minimum value α using the image data R, G, B or the complementary color data C, M, Y, and according to the type of the image data or the complementary color data that is the maximum and minimum. And an identification code output means for outputting an identification code for specifying the hue data to be zero,
By generating first comparison data in the first comparison data generating means, generating matrix coefficients in the coefficient generating means, and performing matrix operation using the matrix coefficients in accordance with the identification code output from the calculating means 6. The color conversion apparatus according to claim 1, wherein the color-converted image data or complementary color data is obtained.
赤、緑、青の画像データR、G、Bを画素毎に色変換する色変換方法において、
(1)画素毎の上記画像データR、G、Bにおける最大値βおよび最小値αを算出する算出ステップ、
(2)上記画像データR、G、Bと上記算出ステップによって得られた上記最大値βおよび最小値αとの減算処理
r=R−α、g=G−α、b=B−α、
y=β−B、m=β−G、c=β−R、
により色相データr、g、bおよびy、m、cを算出する色相データ算出ステップと、
(3)上記色相データ算出ステップによって得られる上記各色相データを用いて第1の比較データ
h1r=min(m、y)、h1g=min(y、c)、
h1b=min(c、m)、h1c=min(g、b)、
h1m=min(b、r)、h1y=min(r、g)
(min(A、B)はA、Bの最小値を示す。)
を生成する第1の比較データ生成ステップと、
(4)該第1の比較データ生成ステップによって得られる上記第1の比較データを用いて第2の比較データ
h2ry1=min(aq11×h1y、ap11×h1r)、
h2rm1=min(aq12×h1m、ap12×h1r)、
h2gy1=min(aq13×h1y、ap13×h1g)、
h2gc1=min(aq14×h1c、ap14×h1g)、
h2bm1=min(aq15×h1m、ap15×h1b)、
h2bc1=min(aq16×h1c、ap16×h1b)、
h2ry2=min(aq21×h1y、ap21×h1r)、
h2rm2=min(aq22×h1m、ap22×h1r)、
h2gy2=min(aq23×h1y、ap23×h1g)、
h2gc2=min(aq24×h1c、ap24×h1g)、
h2bm2=min(aq25×h1m、ap25×h1b)、
h2bc2=min(aq26×h1c、ap26×h1b)、
を生成する第2の比較データ生成ステップと、
(5)所定のマトリクス係数Eij(i=1〜3、j=1〜3)とFij(i=1〜3、j=1〜18)とを発生する係数発生ステップとを含み、
上記第1の比較データ生成ステップによって得られる上記第1の比較データ、上記第2の比較データ生成ステップによって得られる上記第2の比較データ、上記色相データ算出ステップによって得られる上記色相データ、および上記算出ステップによって得られる上記最小値αを用いて、上記係数発生ステップによって発生される上記係数による以下の式(1)のマトリクス演算を行うことにより色変換された画像データを得ることを特徴とする色変換方法。
Figure 0003871495
In a color conversion method for color-converting red, green, and blue image data R, G, and B for each pixel,
(1) a calculation step for calculating a maximum value β and a minimum value α in the image data R, G, B for each pixel;
(2) Subtraction processing of the image data R, G, B and the maximum value β and the minimum value α obtained by the calculation step r = R−α, g = G−α, b = B−α,
y = β-B, m = β-G, c = β-R,
A hue data calculation step for calculating hue data r, g, b and y, m, c by
(3) First comparison data h1r = min (m, y), h1g = min (y, c), using each hue data obtained in the hue data calculation step,
h1b = min (c, m), h1c = min (g, b),
h1m = min (b, r), h1y = min (r, g)
(Min (A, B) indicates the minimum value of A and B)
A first comparison data generation step for generating
(4) Second comparison data h2ry1 = min (aq11 × h1y, ap11 × h1r) using the first comparison data obtained in the first comparison data generation step,
h2rm1 = min (aq12 × h1m, ap12 × h1r),
h2gy1 = min (aq13 × h1y, ap13 × h1g),
h2gc1 = min (aq14 × h1c, ap14 × h1g),
h2bm1 = min (aq15 × h1m, ap15 × h1b),
h2bc1 = min (aq16 × h1c, ap16 × h1b),
h2ry2 = min (aq21 × h1y, ap21 × h1r),
h2rm2 = min (aq22 × h1m, ap22 × h1r),
h2gy2 = min (aq23 × h1y, ap23 × h1g),
h2gc2 = min (aq24 × h1c, ap24 × h1g),
h2bm2 = min (aq25 × h1m, ap25 × h1b),
h2bc2 = min (aq26 × h1c, ap26 × h1b),
A second comparison data generation step for generating
(5) a coefficient generation step for generating predetermined matrix coefficients Eij (i = 1 to 3, j = 1 to 3) and Fij (i = 1 to 3, j = 1 to 18);
The first comparison data obtained by the first comparison data generation step, the second comparison data obtained by the second comparison data generation step, the hue data obtained by the hue data calculation step, and the Using the minimum value α obtained in the calculation step, color-converted image data is obtained by performing a matrix operation of the following equation (1) using the coefficient generated in the coefficient generation step. Color conversion method.
Figure 0003871495
赤、緑、青の画像データR、G、Bを画素毎に色変換する色変換方法において、
(1)画素毎の上記画像データR、G、Bよりシアン、マゼンタ、イエローの補色データC、M、Yを求めるステップと、
(2)上記補色データC、M、Yにおける最大値βおよび最小値αを算出する算出ステップと、
(3)上記補色データC、M、Yと上記算出ステップによって得られた最大値βおよび最小値αとの減算処理
r=β−C、g=β−M、b=β−Y、
y=Y−α、m=M−α、c=C−α、
により色相データr、g、bおよびy、m、cを算出する色相データ算出ステップと、
(4)該色相データ算出ステップによって得られる上記各色相データを用いて第1の比較データ
h1r=min(m、y)、h1g=min(y、c)、
h1b=min(c、m)、h1c=min(g、b)、
h1m=min(b、r)、h1y=min(r、g)
(min(A、B)はA、Bの最小値を示す。)
を生成する第1の比較データ生成ステップと、
(5)該第1の比較データ生成ステップによって得られる上記第1の比較データを用いて第2の比較データ
h2ry1=min(aq11×h1y、ap11×h1r)、
h2rm1=min(aq12×h1m、ap12×h1r)、
h2gy1=min(aq13×h1y、ap13×h1g)、
h2gc1=min(aq14×h1c、ap14×h1g)、
h2bm1=min(aq15×h1m、ap15×h1b)、
h2bc1=min(aq16×h1c、ap16×h1b)、
h2ry2=min(aq21×h1y、ap21×h1r)、
h2rm2=min(aq22×h1m、ap22×h1r)、
h2gy2=min(aq23×h1y、ap23×h1g)、
h2gc2=min(aq24×h1c、ap24×h1g)、
h2bm2=min(aq25×h1m、ap25×h1b)、
h2bc2=min(aq26×h1c、ap26×h1b)、
を生成する第2の比較データ生成ステップと、
(6)所定のマトリクス係数Eij(i=1〜3、j=1〜3)とFij(i=1〜3、j=1〜18)とを発生する係数発生ステップとを含み、
上記第1の比較データ生成ステップによって得られる上記第1の比較データ、上記第2の比較データ生成ステップによって得られる上記第2の比較データ、上記色相データ算出ステップによって得られる上記色相データ、および上記算出ステップによって得られる上記最小値αを用いて、上記係数発生ステップによって発生される上記係数による以下の式(2)のマトリクス演算を行うことにより色変換された画像データを得ることを特徴とする色変換方法。
Figure 0003871495
In a color conversion method for color-converting red, green, and blue image data R, G, and B for each pixel,
(1) obtaining complementary color data C, M, Y of cyan, magenta, yellow from the image data R, G, B for each pixel;
(2) a calculation step of calculating a maximum value β and a minimum value α in the complementary color data C, M, Y;
(3) Subtraction processing of the complementary color data C, M, Y and the maximum value β and minimum value α obtained by the calculation step r = β-C, g = β-M, b = β-Y,
y = Y-α, m = M-α, c = C-α,
A hue data calculation step for calculating hue data r, g, b and y, m, c by
(4) The first comparison data h1r = min (m, y), h1g = min (y, c), using the hue data obtained in the hue data calculation step,
h1b = min (c, m), h1c = min (g, b),
h1m = min (b, r), h1y = min (r, g)
(Min (A, B) indicates the minimum value of A and B)
A first comparison data generation step for generating
(5) Second comparison data h2ry1 = min (aq11 × h1y, ap11 × h1r) using the first comparison data obtained in the first comparison data generation step,
h2rm1 = min (aq12 × h1m, ap12 × h1r),
h2gy1 = min (aq13 × h1y, ap13 × h1g),
h2gc1 = min (aq14 × h1c, ap14 × h1g),
h2bm1 = min (aq15 × h1m, ap15 × h1b),
h2bc1 = min (aq16 × h1c, ap16 × h1b),
h2ry2 = min (aq21 × h1y, ap21 × h1r),
h2rm2 = min (aq22 × h1m, ap22 × h1r),
h2gy2 = min (aq23 × h1y, ap23 × h1g),
h2gc2 = min (aq24 × h1c, ap24 × h1g),
h2bm2 = min (aq25 × h1m, ap25 × h1b),
h2bc2 = min (aq26 × h1c, ap26 × h1b),
A second comparison data generation step for generating
(6) a coefficient generation step for generating predetermined matrix coefficients Eij (i = 1 to 3, j = 1 to 3) and Fij (i = 1 to 3, j = 1 to 18);
The first comparison data obtained by the first comparison data generation step, the second comparison data obtained by the second comparison data generation step, the hue data obtained by the hue data calculation step, and the Color-converted image data is obtained by performing a matrix operation of the following equation (2) using the coefficient generated in the coefficient generation step using the minimum value α obtained in the calculation step. Color conversion method.
Figure 0003871495
赤、緑、青の画像データR、G、Bを画素毎に色変換する色変換方法において、
(1)画素毎の上記画像データR、G、Bにおける最大値βおよび最小値αを算出する算出ステップと、
(2)上記画像データR、G、Bと上記算出ステップによって得られる上記最大値βおよび最小値αとの減算処理
r=R−α、g=G−α、b=B−α、
y=β−B、m=β−G、c=β−R、
により色相データr、g、bおよびy、m、cを算出する色相データ算出ステップと、
(3)上記色相データ算出ステップによって得られる上記各色相データを用いて第1の比較データ
h1r=min(m、y)、h1g=min(y、c)、
h1b=min(c、m)、h1c=min(g、b)、
h1m=min(b、r)、h1y=min(r、g)、
(min(A、B)はA、Bの最小値を示す。)
を生成する第1の比較データ生成ステップと、
(4)該第1の比較データ生成ステップによって得られる上記第1の比較データを用いて第2の比較データ
h2ry1=min(aq11×h1y、ap11×h1r)、
h2rm1=min(aq12×h1m、ap12×h1r)、
h2gy1=min(aq13×h1y、ap13×h1g)、
h2gc1=min(aq14×h1c、ap14×h1g)、
h2bm1=min(aq15×h1m、ap15×h1b)、
h2bc1=min(aq16×h1c、ap16×h1b)、
h2ry2=min(aq21×h1y、ap21×h1r)、
h2rm2=min(aq22×h1m、ap22×h1r)、
h2gy2=min(aq23×h1y、ap23×h1g)、
h2gc2=min(aq24×h1c、ap24×h1g)、
h2bm2=min(aq25×h1m、ap25×h1b)、
h2bc2=min(aq26×h1c、ap26×h1b)、
を生成する第2の比較データ生成ステップと、
(5)所定のマトリクス係数Eij(i=1〜3、j=1〜3)とFij(i=1〜3、j=1〜19)を発生する係数発生ステップとを含み、
上記第1の比較データ生成ステップによって得られる上記第1の比較データ、上記第2の比較データ生成ステップによって得られる上記第2の比較データ、上記色相データ算出ステップによって得られる上記色相データ、および上記算出ステップによって得られる上記最小値αを用いて、上記係数発生ステップによって得られる上記係数による以下の式(3)のマトリクス演算を行うことにより色変換された画像データを得ることを特徴とする色変換方法。
Figure 0003871495
In a color conversion method for color-converting red, green, and blue image data R, G, and B for each pixel,
(1) a calculation step for calculating a maximum value β and a minimum value α in the image data R, G, B for each pixel;
(2) Subtraction processing r = R−α, g = G−α, b = B−α, between the image data R, G and B and the maximum value β and minimum value α obtained by the calculation step.
y = β-B, m = β-G, c = β-R,
A hue data calculation step for calculating hue data r, g, b and y, m, c by
(3) First comparison data h1r = min (m, y), h1g = min (y, c), using each hue data obtained in the hue data calculation step,
h1b = min (c, m), h1c = min (g, b),
h1m = min (b, r), h1y = min (r, g),
(Min (A, B) indicates the minimum value of A and B)
A first comparison data generation step for generating
(4) Second comparison data h2ry1 = min (aq11 × h1y, ap11 × h1r) using the first comparison data obtained in the first comparison data generation step,
h2rm1 = min (aq12 × h1m, ap12 × h1r),
h2gy1 = min (aq13 × h1y, ap13 × h1g),
h2gc1 = min (aq14 × h1c, ap14 × h1g),
h2bm1 = min (aq15 × h1m, ap15 × h1b),
h2bc1 = min (aq16 × h1c, ap16 × h1b),
h2ry2 = min (aq21 × h1y, ap21 × h1r),
h2rm2 = min (aq22 × h1m, ap22 × h1r),
h2gy2 = min (aq23 × h1y, ap23 × h1g),
h2gc2 = min (aq24 × h1c, ap24 × h1g),
h2bm2 = min (aq25 × h1m, ap25 × h1b),
h2bc2 = min (aq26 × h1c, ap26 × h1b),
A second comparison data generation step for generating
(5) a predetermined matrix coefficient Eij (i = 1 to 3, j = 1 to 3) and a coefficient generation step for generating Fij (i = 1 to 3, j = 1 to 19),
The first comparison data obtained by the first comparison data generation step, the second comparison data obtained by the second comparison data generation step, the hue data obtained by the hue data calculation step, and the Using the minimum value α obtained in the calculation step, color-converted image data is obtained by performing matrix calculation of the following equation (3) using the coefficient obtained in the coefficient generation step. Conversion method.
Figure 0003871495
赤、緑、青の画像データR、G、Bを画素毎に色変換する色変換方法において、
(1)画素毎の上記画像データR、G、Bよりシアン、マゼンタ、イエローの補色データC、M、Yを求めるステップと、
(2)上記補色データC、M、Yにおける最大値βと最小値αを算出する算出ステップと、
(3)上記補色データC、M、Yと上記算出ステップによって得られる最大値βおよび最小値αとの減算処理
r=β−C、g=β−M、b=β−Y、
y=Y−α、m=M−α、c=C−α、
により色相データr、g、bおよびy、m、cを算出する色相データ算出ステップと、
(4)上記色相データ算出ステップによって得られる上記各色相データを用いて第1の比較データ
h1r=min(m、y)、h1g=min(y、c)、
h1b=min(c、m)、h1c=min(g、b)、
h1m=min(b、r)、h1y=min(r、g)、
(min(A、B)はA、Bの最小値を示す。)
を生成する第1の比較データ生成ステップと、
(5)該第1の比較データ生成ステップによって得られる上記第1の比較データを用いて第2の比較データ
h2ry1=min(aq11×h1y、ap11×h1r)、
h2rm1=min(aq12×h1m、ap12×h1r)、
h2gy1=min(aq13×h1y、ap13×h1g)、
h2gc1=min(aq14×h1c、ap14×h1g)、
h2bm1=min(aq15×h1m、ap15×h1b)、
h2bc1=min(aq16×h1c、ap16×h1b)、
h2ry2=min(aq21×h1y、ap21×h1r)、
h2rm2=min(aq22×h1m、ap22×h1r)、
h2gy2=min(aq23×h1y、ap23×h1g)、
h2gc2=min(aq24×h1c、ap24×h1g)、
h2bm2=min(aq25×h1m、ap25×h1b)、
h2bc2=min(aq26×h1c、ap26×h1b)、
を生成する第2の比較データ生成ステップと、
(6)所定のマトリクス係数Eij(i=1〜3、j=1〜3)とFij(i=1〜3、j=1〜19)とを発生する係数発生ステップとを含み、
上記第1の比較データ生成ステップによって得られる上記第1の比較データ、上記第2の比較データ生成ステップによって得られる上記第2の比較データ、上記色相データ算出ステップによって得られる上記色相データ、および上記算出ステップによって得られる上記最小値αを用いて、上記係数発生ステップによって発生される上記係数による以下の式(4)のマトリクス演算を行うことにより色変換された画像データを得ることを特徴とする色変換方法。
Figure 0003871495
In a color conversion method for color-converting red, green, and blue image data R, G, and B for each pixel,
(1) obtaining complementary color data C, M, Y of cyan, magenta, yellow from the image data R, G, B for each pixel;
(2) a calculation step for calculating a maximum value β and a minimum value α in the complementary color data C, M, Y;
(3) Subtraction processing between the complementary color data C, M, Y and the maximum value β and the minimum value α obtained by the calculation step r = β−C, g = β−M, b = β−Y,
y = Y-α, m = M-α, c = C-α,
A hue data calculation step for calculating hue data r, g, b and y, m, c by
(4) First comparison data h1r = min (m, y), h1g = min (y, c), using the hue data obtained in the hue data calculation step.
h1b = min (c, m), h1c = min (g, b),
h1m = min (b, r), h1y = min (r, g),
(Min (A, B) indicates the minimum value of A and B)
A first comparison data generation step for generating
(5) Second comparison data h2ry1 = min (aq11 × h1y, ap11 × h1r) using the first comparison data obtained in the first comparison data generation step,
h2rm1 = min (aq12 × h1m, ap12 × h1r),
h2gy1 = min (aq13 × h1y, ap13 × h1g),
h2gc1 = min (aq14 × h1c, ap14 × h1g),
h2bm1 = min (aq15 × h1m, ap15 × h1b),
h2bc1 = min (aq16 × h1c, ap16 × h1b),
h2ry2 = min (aq21 × h1y, ap21 × h1r),
h2rm2 = min (aq22 × h1m, ap22 × h1r),
h2gy2 = min (aq23 × h1y, ap23 × h1g),
h2gc2 = min (aq24 × h1c, ap24 × h1g),
h2bm2 = min (aq25 × h1m, ap25 × h1b),
h2bc2 = min (aq26 × h1c, ap26 × h1b),
A second comparison data generation step for generating
(6) a coefficient generation step for generating predetermined matrix coefficients Eij (i = 1 to 3, j = 1 to 3) and Fij (i = 1 to 3, j = 1 to 19);
The first comparison data obtained by the first comparison data generation step, the second comparison data obtained by the second comparison data generation step, the hue data obtained by the hue data calculation step, and the Color-converted image data is obtained by performing a matrix operation of the following equation (4) using the coefficient generated in the coefficient generation step, using the minimum value α obtained in the calculation step. Color conversion method.
Figure 0003871495
第2の比較データ生成ステップに含まれる各第1の比較データに所定の演算係数aq11〜aq16、aq21〜aq26、ap11〜ap16、およびap21〜ap26を乗算する乗算ステップにおいて、演算係数aq11〜aq16、aq21〜aq26、ap11〜ap16、およびap21〜ap26を1、2、4、8、…となる整数値とし、ビットシフトにより上記各第1の比較データと上記演算係数との演算を行うことを特徴とする請求項7乃至請求項10のいずれかに記載の色変換方法。In the multiplication step of multiplying each first comparison data included in the second comparison data generation step by predetermined calculation coefficients aq11 to aq16, aq21 to aq26, ap11 to ap16, and ap21 to ap26, the calculation coefficients aq11 to aq16, Aq21 to aq26, ap11 to ap16, and ap21 to ap26 are set to integer values of 1, 2, 4, 8,..., and the first comparison data and the arithmetic coefficient are calculated by bit shift. The color conversion method according to any one of claims 7 to 10. 算出ステップは、画像データR、G、Bまたは補色データC、M、Yを用いて最大値βおよび最小値αを算出するとともに、最大および最小となる上記画像データまたは上記補色データの種類に応じて、ゼロとなる色相データを特定するための識別符号を出力する識別符号出力ステップを含み、
上記算出ステップによって出力される識別符号に応じて、第1の比較データ生成ステップにおいて第1の比較データを生成し、係数発生ステップにおいてマトリクス係数を発生し、該マトリクス係数によるマトリクス演算を行うことにより色変換された画像データまたは補色データを得ることを特徴とする請求項7乃至請求項11のいずれかに記載の色変換方法。
In the calculation step, the maximum value β and the minimum value α are calculated using the image data R, G, B or the complementary color data C, M, Y, and according to the type of the image data or the complementary color data that is the maximum and minimum. An identification code output step for outputting an identification code for specifying hue data to be zero,
By generating first comparison data in the first comparison data generation step, generating matrix coefficients in the coefficient generation step, and performing matrix calculation using the matrix coefficients in accordance with the identification code output in the calculation step 12. The color conversion method according to claim 7, wherein the color-converted image data or complementary color data is obtained.
JP2000116234A 2000-04-18 2000-04-18 Color conversion apparatus and color conversion method Expired - Fee Related JP3871495B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000116234A JP3871495B2 (en) 2000-04-18 2000-04-18 Color conversion apparatus and color conversion method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000116234A JP3871495B2 (en) 2000-04-18 2000-04-18 Color conversion apparatus and color conversion method

Publications (2)

Publication Number Publication Date
JP2001307080A JP2001307080A (en) 2001-11-02
JP3871495B2 true JP3871495B2 (en) 2007-01-24

Family

ID=18627719

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000116234A Expired - Fee Related JP3871495B2 (en) 2000-04-18 2000-04-18 Color conversion apparatus and color conversion method

Country Status (1)

Country Link
JP (1) JP3871495B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3888176B2 (en) 2002-02-15 2007-02-28 三菱電機株式会社 Color conversion apparatus and color conversion method
WO2005050296A1 (en) 2003-11-20 2005-06-02 Samsung Electronics Co., Ltd. Apparatus and method of converting image signal for six color display device, and six color display device having optimum subpixel arrangement

Also Published As

Publication number Publication date
JP2001307080A (en) 2001-11-02

Similar Documents

Publication Publication Date Title
JP3432468B2 (en) Color conversion apparatus and color conversion method
JP3432414B2 (en) Color conversion device and color conversion method
JP3611490B2 (en) Color conversion apparatus and color conversion method
JP3698118B2 (en) Color conversion apparatus and color conversion method
JP2001111854A5 (en)
JP3691506B2 (en) Color conversion apparatus and color conversion method
US20050185840A1 (en) Color conversion device and color conversion mehtod
JP2004013385A5 (en)
JP3888176B2 (en) Color conversion apparatus and color conversion method
JP3807883B2 (en) Color conversion apparatus and color conversion method
JP2001111857A5 (en)
JP3560521B2 (en) Image display device
JP2001111855A5 (en)
JP3871495B2 (en) Color conversion apparatus and color conversion method
KR100546925B1 (en) Image processing device and image processing method
JP3874544B2 (en) Color conversion apparatus and color conversion method
EP1096788A2 (en) Color conversion device and color conversion method
JP3807920B2 (en) Color conversion apparatus and color conversion method
JP3584971B2 (en) Color conversion method and color conversion device
JP3611491B2 (en) Color conversion method and color conversion apparatus
JP2000032283A5 (en)
JP3434814B2 (en) Color conversion device and color conversion method
JP3434815B2 (en) Color conversion device and color conversion method
JP2001186370A5 (en)
JP2001111856A5 (en)

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20060329

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: 20061017

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20061017

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: 20091027

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20101027

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20111027

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20121027

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20131027

Year of fee payment: 7

LAPS Cancellation because of no payment of annual fees