JP4033019B2 - Color conversion apparatus, image forming apparatus, and color conversion program - Google Patents

Color conversion apparatus, image forming apparatus, and color conversion program Download PDF

Info

Publication number
JP4033019B2
JP4033019B2 JP2003094477A JP2003094477A JP4033019B2 JP 4033019 B2 JP4033019 B2 JP 4033019B2 JP 2003094477 A JP2003094477 A JP 2003094477A JP 2003094477 A JP2003094477 A JP 2003094477A JP 4033019 B2 JP4033019 B2 JP 4033019B2
Authority
JP
Japan
Prior art keywords
color
interpolation
color conversion
point
space
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2003094477A
Other languages
Japanese (ja)
Other versions
JP2004304485A (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.)
Brother Industries Ltd
Original Assignee
Brother Industries Ltd
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 Brother Industries Ltd filed Critical Brother Industries Ltd
Priority to JP2003094477A priority Critical patent/JP4033019B2/en
Publication of JP2004304485A publication Critical patent/JP2004304485A/en
Application granted granted Critical
Publication of JP4033019B2 publication Critical patent/JP4033019B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Description

【0001】
【発明の属する技術分野】
本発明は、カラープリンタ等に用いられ、3つの異なる色信号の組み合わせにより定義される第一色空間(例えばRGB)における第一色信号を、第一色空間と同じもしくは異なる第二色空間(例えばCMYK)の第二色信号に変換する色変換装置、この色変換装置を備えた画像形成装置および色変換プログラムに関する。
【0002】
【従来の技術】
例えば、カラーCRTに表示された画像をカラープリンタで印刷する場合には、カラーCRT用の色信号はRGB信号(レッド・グリーン・ブルー)で、カラープリンタ用の色信号はCMYK信号(シアン・マゼンタ・イエロー・ブラック)であるため、RGB信号をCMYK信号に変換する必要がある。
【0003】
このような色信号変換方法としては、色変換テーブルを使用する方法が現在広く用いられている。
これは、例えば、RGB色空間において格子状に配置される格子点上のRGB値を再現するCMYK値が色変換テーブルに記憶され、格子点上にないRGB値を再現するCMYK値については、格子点上のCMYK値を基に補間演算を用いて求めるという方法である。
【0004】
色変換テーブルを用いた補間には、色変換する点(以降、変換点とも称す)の周囲にある格子点を4〜8点選択して補間する方法が通常用いられており、例えば、三角錐を用いて補間する方法(例えば、特許文献1参照。)や、ピラミッド型多面体を用いて補間する方法(例えば、特許文献2参照。)が知られている。
【0005】
【特許文献1】
特開2000−165691号公報 (第2図)
【特許文献2】
特開昭56−14237号公報 (第2図)
【0006】
【発明が解決しようとする課題】
しかし、このような補間方法においては、例えば、RGB色空間(R:レッド,G:グリーン,B:ブルー)からCMYK色空間(C:シアン,M:マゼンタ,Y:イエロー,K:ブラック)に変換する際に、直角または円形の輪郭を持った幾何学模様が発生するという問題があった。その理由を以下に示す。
三角錐補間においては、変換点が三角錐の内部にある場合には、三角錐を形成する4つの格子点を用いて補間を行う。一方、変換点が三角錐の面上にある場合には、その面上の3つの格子点を用いて補間を行う。
【0007】
三角錐の面上に変換点がある場合においてK(ブラック)成分の補間を行う際、図8(a)のように格子面上の1点の格子のみK成分の値がkで、その他の3点のK成分の値が0になっている場合を考える。
この時、補間によって、K成分の値が例えば0.5×kになる点を求めると破線に示す位置になり、またK成分の値が例えば0.2×kになる点を求めると1点鎖線に示す位置になり、またK成分の値が例えば0.8×kになる点を求めると2点鎖線に示す位置になる。
【0008】
つまり、K成分は、単位格子面内で、直角な輪郭をもったグラデーションとして再現され、幾何学模様が発生する原因となる。
また、ピラミッド型多面体においては、変換点がピラミッド型多面体の内部にある場合には、ピラミッド型多面体を形成する5つの格子点を用いて補間を行う。一方、変換点がピラミッド型多面体の底面上にある場合には、その底面上の4つの格子点を用いて補間を行う。
【0009】
変換点がピラミッド型多面体の底面上にある場合において、K(ブラック)成分の補間を行う際、図8(b)のように格子面上の1点の格子のみK成分の値がkで、その他の3点のK成分の値が0になっている場合を考える。
この時、補間によってK成分の値が例えば0.5×kになる点を求めると破線に示す位置になり、またK成分の値が例えば0.2×kになる点を求めると1点鎖線に示す位置になり、またK成分の値が例えば0.8×kになる点を求めると2点鎖線に示す位置になる。
【0010】
つまり、K成分は、単位格子面内で、円形の輪郭をもったグラデーションとして再現され、幾何学模様が発生する原因となる。
特に、CMYK色空間では、グレーを再現する際に、薄いグレーはCMYの混色により再現し、濃いグレーになってくると初めてKを用いて再現する方法が一般的に行われている。このため、図8のように、1点の格子点のみK成分があり、他の3点の格子点のK成分は0となる状況が発生し易く、CMYK色空間で幾何学模様が発生し易い原因となっている。
【0011】
本発明は、上記問題を解決するためになされたもので、幾何学模様の発生を低減する色変換装置、画像形成装置および色変換プログラムを提供することを目的とする。
【0012】
【課題を解決するための手段および発明の効果】
上記問題を解決するため請求項1に記載の色変換装置は、
3つの異なる色信号の組み合わせにより定義される第一色空間における第一色信号を、該第一色空間の各色成分値をパラメータとする色変換テーブルを用いて、前記第一色空間と同じもしくは異なる第二色空間の第二色信号に変換する色変換装置であって、
前記第一色信号を表す各色成分値に基づき、前記第一色空間の各色成分を座標軸とする色空間内での前記第一色信号の位置を検出する位置検出手段と、
前記色変換テーブルに記述された第二色信号への色変換値に夫々対応する前記第一色空間の各色成分値で特定される前記色空間内での離散的な格子点の中から、前記位置検出手段にて検出された第一色信号の位置に最も近い基準単位格子面を構成する4つの格子点を選択するとともに、該基準単位格子面と該基準単位格子面に対して対向し且つ隣接する2つの隣接単位格子面の夫々とで構成される2つの単位補間空間の夫々の内部において前記基準単位格子面から所定の位置を有する特定点とを選択し、これらの点から補間多面体を設定する補間点抽出手段と、
前記基準単位格子面を構成する4つの格子点の位置における前記色変換値を前記色変換テーブルから抽出するとともに、前記特定点における色変換値を前記色変換テーブルに基づいて算出する補間点色変換値算出手段と、
前記補間多面体内での前記第一色信号の位置に対する前記4つの格子点と前記特定点の位置に基づき、前記4つの格子点と前記特定点の重み係数を算出する重み係数算出手段と、
前記補間多面体を形成する点における色変換値と前記重み係数とを用い、前記第二色空間の第二色信号を補間演算により求める補間演算手段とを備えることを特徴とする。
【0013】
このように構成された色変換装置によれば、4つの格子点で形成される基準単位格子面を、4つの格子点と特定点により構成される補間多面体の内部に含むことができる。
このため、基準単位格子面上の位置にある第一色信号を第二色信号に変換する際は、基準単位格子面を構成する4つの格子点だけでなく特定点における色変換値をも用いて補間を行うことができる。
【0014】
即ち、基準単位格子面を構成する格子点の1点のみK成分の値がkでその他の3点のK成分の値が0になっているような場合においても、基準単位格子面を構成する4つの格子点のK成分の値に加えて特定点におけるK成分の値も用いて補間を行うことができるため、幾何学模様の発生を低減する第二色信号を生成することができる。
【0015】
また、請求項1に記載の色変換装置においては、更に請求項2に記載のように、
前記単位補間空間は立方体であり、
前記第一色空間はその対角線をグレー軸として定義できる色空間であり、
前記補間点抽出手段は、前記第一色空間におけるグレー軸のベクトルによって方向が定義される前記単位補間空間内の対角線上にある点を選択する、ようにしてもよい。
【0016】
このように構成された色変換装置によれば、補間多面体の辺にグレー軸を含むことができる。
このため、グレー軸上の位置にある第一色信号を第二色信号に変換する際には、補間多面体を形成する点の中でグレー軸上にある点のみを用いて補間を行うことができるので、グレー軸における第一色信号から第一色信号の変換において有彩色成分の混入を防止することができる。
【0017】
また、請求項2に記載の色変換装置においては、更に請求項3に記載のように、
前記選択された補間点は、前記単位補間空間の中心点、すなわち前記対角線の中点である、ようにしてもよい。
【0018】
このように構成された色変換装置によれば、基準単位格子面を構成する4つの格子点の夫々と特定点との距離が等しくなる。
このため、重み係数算出手段が重み係数を算出する際に、第一色信号の位置に対する4つの格子点と特定点の位置の算出を簡便にすることができるので、色変換処理を速く行うことができる。
【0019】
また、請求項4に記載の色変換装置は、
3つの異なる色信号の組み合わせにより定義される第一色空間における第一色信号を、該第一色空間の各色成分値をパラメータとする色変換テーブルを用いて、前記第一色空間と同じもしくは異なる第二色空間の第二色信号に変換する色変換装置であって、
前記第一色信号を表す各色成分値に基づき、前記第一色空間の各色成分を座標軸とする色空間内での前記第一色信号の位置を検出する位置検出手段と、
前記色変換テーブルに記述された第二色信号への色変換値に夫々対応する前記第一色空間の各色成分値で特定される前記色空間内での離散的な格子点の中から、前記位置検出手段にて検出された第一色信号の位置に最も近い基準単位格子面を構成する4つの格子点を選択するとともに、該基準単位格子面と該基準単位格子面に対して対向し且つ隣接する2つの隣接単位格子面の夫々とで構成される2つの単位補間空間の夫々の中心点とを選択し、これらの点から補間八面体を設定する補間点抽出手段と、
前記基準単位格子面を構成する4つの格子点の位置における前記色変換値を前記色変換テーブルから抽出するとともに、前記中心点における色変換値を前記色変換テーブルに基づいて算出する補間点色変換値算出手段と、
前記補間八面体内での前記第一色信号の位置に対する前記4つの格子点と前記中心点の位置に基づき、前記4つの格子点と前記中心点の重み係数を算出する重み係数算出手段と、
前記補間八面体を形成する点における色変換値と前記重み係数とを用い、前記第二色空間の第二色信号を補間演算により求める補間演算手段とを備えることを特徴とする。
【0020】
このように構成された色変換装置によれば、4つの格子点で形成される基準単位格子面を、4つの格子点と中心点により構成される補間多面体の内部に含むことができる。
このため、基準単位格子面上の位置にある第一色信号を第二色信号に変換する際は、基準単位格子面を構成する4つの格子点だけでなく中心点における色変換値をも用いて補間を行うことができる。
【0021】
即ち、基準単位格子面を構成する格子点の1点のみK成分の値がkでその他の3点のK成分の値が0になっているような場合においても、基準単位格子面を構成する4つの格子点のK成分の値に加えて中心点におけるK成分の値も用いて補間を行うことができるため、幾何学模様の発生を低減する第二色信号を生成することができる。
【0022】
さらに、基準単位格子面を構成する4つの格子点の夫々と中心点との距離が等しくなる。このため、重み係数算出手段が重み係数を算出する際に、第一色信号の位置に対する4つの格子点と中心点の位置の算出を簡便にすることができるので、色変換処理を速く行うことができる。
【0023】
また請求項5に記載の画像形成装置は、
請求項1〜請求項4何れか記載の色変換装置を備える、ことを特徴とする。
このように構成された画像形成装置によれば、請求項1〜請求項4何れかに記載の色変換装置により生成された第二色信号を用いて画像を形成することができる。
【0024】
このため、画像を形成する際に幾何学模様の発生を低減することができる。
また請求項6に記載の色変換プログラムは、
請求項1〜請求項4何れか記載の色変換装置の前記各手段としてコンピュータを機能させる、ことを特徴とする。
【0025】
このようなプログラムによって制御されるコンピュータシステムは、請求項1〜請求項4に記載の色変換装置の一部を構成することができ、同色変換装置と同様の作用・効果を得ることができる。
なお、上述した色変換プログラムは、例えば、FD、CD−ROMなどの記録媒体、インターネットなどの通信回線網を介して、色変換装置自身、画像形成装置、これらを利用する利用者に提供されるものである。
【0026】
また、上述した色変換装置を実行するコンピュータシステムとしては、例えば、色変換装置に内蔵されたコンピュータシステム、画像形成装置に内蔵されたコンピュータシステム、または色変換装置,画像形成装置に無線または有線の通信路を介してデータ通信可能に接続されたコンピュータシステムなどを利用することができる。
【0027】
【発明の実施の形態】
(実施の形態1)
以下、パーソナルコンピュータに本発明の色変換装置としての構成を適用したものを本発明の実施の形態1として説明する。
【0028】
まず、パーソナルコンピュータ100の構成を図1に基づいて説明する。
パーソナルコンピュータ(以降、PCとする)100は、図1に示すように、所定の処理プログラムに基づいて処理を実行するCPU101,記憶装置としてのハードディスク(以降、HDDとする)102,種々の制御プログラムが格納されたROM103,外部装置から入力したデータ等を格納する各種メモリが設けられたRAM104,入出力インターフェース(以降、入出力I/Fとする)105,利用者により操作可能な複数の操作キー106aおよび各種情報を表示する表示パネル106bからなるユーザインターフェース(以降、ユーザI/Fとする)106,通信用インターフェース(以降、通信用I/Fとする)107を備えている。
【0029】
HDD102には、CPU101が色変換処理を実行するための色変換プログラム102aと、色変換処理で用いる色変換特性が記載されている色変換テーブル102bの記憶領域が確保されている。
入出力I/F105は、上記各要素を相互に接続しているとともにスキャナ10,デジタルカメラ20,携帯電話30と接続しており、画像の色情報をデータとしてもつ画像データが、スキャナ10,デジタルカメラ20,携帯電話30からPC100に入力される。さらに、入出力I/F105はプリンタ200と接続しており、PC100により色変換処理された画像データはプリンタ200に出力される。
【0030】
また、ユーザI/F106は、印刷を開始するための操作が操作キー106aにより行われた場合にはCPU101に印刷開始指令を出力する。
また、通信用I/F107はネットワーク40と接続しており、画像データがネットワーク40からPC100に入力される。
【0031】
このように構成されたPC100において、まず、CPU101は、所定の処理プログラムによって、スキャナ10,デジタルカメラ20,携帯電話30もしくはネットワーク40から入力される画像データを取り込んで、例えばHDD102に記憶する。そして、ユーザI/F106からCPU101に印刷開始指令が入力されると、CPU101は、画像データをHDD102からRAM104へ格納する。その後にCPU101は、画像データをRAM104から読み込み、色変換プログラム102aに基づいて色変換処理する。そして、色変換処理した画像データを入出力I/F105を介してプリンタ200に出力する。
【0032】
次に、図2を用いて、PC100のCPU101が実行する色変換処理について説明する。
図2は、色変換処理を表すフローチャートである。この色変換処理はPC100が起動(電源ON)している間に繰り返し実行される処理である。
【0033】
この色変換処理を実行すると、CPU101は、まずS01にて、印刷開始指令が入力したか否かを判断する。ここで、印刷開始指令が入力したと判断すると(S01:YES)、S02に処理を移す。一方、印刷開始指令が入力していないと判断すると(S01:NO)、S01の処理を繰り返す。
【0034】
PC100に入力される画像データは、横方向にX_SIZE個、縦方向Y_SIZE個の画素データが並んでいる(X_SIZE:入力データ横サイズ(Pixel):Y_SIZE:入力データ縦サイズ(Pixel))。即ち、X_SIZE個×Y_SIZE個の画素データP(X,Y)から構成されている。Xは画素の横方向の座標値、Yは縦方向の座標値であり、Xについては0,1,2,・・・・,X_SIZE、Yについては0,1,2,・・・・,Y_SIZEの値が付されている。なお、X_SIZE,Y_SIZEは、画像データにより異なる。
【0035】
また、画素データP(X,Y)は、R(レッド)・G(グリーン)・B(ブルー)で定義される3種の色成分で構成されており、各成分は0〜255の8ビット256階調を有し、通常0は最暗部、255は最高明度を示す。
そして、処理がS01からS02に移ると、例えばHDD102から、全ての(X,Y)座標における画素データP(X,Y)を読み込み、RAM104に格納する。
【0036】
その後、S03にて画素データの座標値の初期設定としてXおよびYを0にセットする。
そして、S04に処理を移して、XおよびYの値に対応する画素データP(X,Y)について、P(X,Y)におけるRGB値に基づき、R・G・Bをそれぞれ軸とするRGB色空間における位置を求める(この位置を変換点と称す)。
【0037】
ここで、RGB色空間のような3次元空間において、格子状に配置される格子点が設定されており、それら格子点は3次元空間の座標値としてそれぞれRGB値を持っている。色変換テーブルにはこのRGB値を再現する出力装置の制御信号としてのCMYK値が記憶されている。つまり、この場合、図6に示すように、色変換テーブルは、これらの格子点をRGB色空間の3つの値それぞれに対応づけた3つの識別番号の組合せ(0,0,0)、(0,0,1)、……、(m,m,m)と、その組合せに対応するCMYK色空間の4つのパラメータ(C,M,Y,K)との組合せから構成されている。
【0038】
このとき、識別番号(0,0,0)で示される格子点をRGB色空間の原点とし、各識別番号は、原点に対しR軸,G軸,B軸の各軸の正方向に1つずつ値が増えるように設定され、各識別番号で示される格子点が存在する。
また、3次元空間における格子状に配置される格子点を設定したことからも判るように、色変換テーブルに表されるデータは、RGB色空間において、離散的に分布している。そのため、S04の処理において、変換しようとする画素データP(X,Y)=(R,G,B)のRGB色空間における位置(以下、変換点と称する)を特定する。
【0039】
この後、S05にて補間処理を実行する。補間処理は、HDD102に格納されている色変換テーブルを用いて、CMYK色空間に変換する処理である。
この補間処理は、図3に示す手順で実行される。即ち、この補間処理では、まずS21にて、RGB直交座標空間において変換点に最も近い基準単位格子面を求める。
【0040】
例えば、図4に示す位置に変換点X=(Rx,Gx,Bx)が存在している場合には格子点P1,P2,P3,P4で形成される面が基準単位格子面M1として選択される。図4は、基準単位格子面の抽出方法を説明する図である。
この後、S22に処理を移す。ここでは、まず基準単位格子面M1に対して対向し且つ隣接する2つの隣接単位格子面を選択する。図4においては、格子点P7,P8,P9,P10で形成される面M2と格子点P11,P12,P13,P14で形成される面M3とが隣接単位格子面として選択される。
【0041】
そして、基準単位格子面M1と隣接単位格子面M2とで構成される単位補間立方体T1と基準単位格子面M1と隣接単位格子面M3とで構成される単位補間立方体T2とが設定され、この単位補間立方体T1の中心点P5と単位補間立方体T2の中心点P6が選択される(以降、点P5,P6を特定点とも称する)。こうして、変換点Xを内部に含む補間多面体H1が格子点P1,P2,P3,P4と特定点P5,P6とにより構成される。
【0042】
この後に処理をS23に移す。ここでは、基準単位格子面M1を形成する格子点P1,P2,P3,P4におけるCMYK色空間パラメータ(C,M,Y,K)を色変換テーブルから抽出する。
以降、点P1におけるCMYK色空間パラメータを(C1,M1,Y1,K1), 点P2におけるCMYK色空間パラメータを(C2,M2,Y2,K2)というように、点Pn(n:整数)におけるCMYK色空間パラメータを(Cn,Mn,Yn,Kn)と記載する。
【0043】
この後に処理をS24に移す。ここでは、まずP10,P11におけるCMYK色空間パラメータ(C10,M10,Y10,K10),(C11,M11,Y11,K11)を色変換テーブルから抽出する。
そして、特定点P5におけるCMYK色空間パラメータ(C5,M5,Y5,K5)を、P1とP10におけるCMYK色空間パラメータに基づき算出する。つまり、特定点P5は格子点P1と格子点P10とを結ぶ線の中点に位置するため、特定点P5におけるCMYK色空間パラメータはそれぞれ下記の式(1),(2),(3),(4)により算出される。
【0044】
【数1】

Figure 0004033019
【0045】
同様に、特定点P6は格子点P4と格子点P11とを結ぶ線の中点に位置するため、P特定点P6におけるCMYK色空間パラメータ(C6,M6,Y6,K6)はそれぞれ下記の式(5),(6),(7),(8)により算出される。
【0046】
【数2】
Figure 0004033019
【0047】
この後に処理をS25に移す。ここでは、変換点XにおけるCMYK色空間パラメータ(Cx,Mx,Yx,Kx)を求めるための、点P1,P2,P3,P4,P5,P6における重み係数を算出する。図5は、補間多面体H1において重み係数を算出する方法を説明する図である。
【0048】
まず、変換点Xから補間多面体H1の各辺におろした垂線が各辺に交わる位置を求める(図5における点A,B,C,D,E,F,G,H,I,J,K,L)。
図5における点Aは、点P2と点5とを結ぶ線分P2−P5上の点である。同様に、点Bは線分P1−P5, 点Cは線分P4−P5, 点Dは線分P3−P5, 点Eは線分P4−P6, 点Fは線分P3−P6, 点Gは線分P2−P6, 点Hは線分P1−P6, 点Iは線分P2−P4, 点Jは線分P1−P3, 点Kは線分P1−P2, 点Lは線分P3−P4上の点である。
【0049】
点P1における重み係数W1は、点P4,C,L,I,E,Xの6点により形成される多面体の体積を基に算出される。
同様に、点P2における重み係数W2は点P3,D,L,J,F,Xの6点、点P3における重み係数W3は点P2,A,K,G,I,Xの6点、点P4における重み係数W4は点P1,B,J,H,K,Xの6点、点P5における重み係数W5は点P6,F,E,G,H,Xの6点、点P6における重み係数W6は点P5,B,D,C,A,Xの6点により形成される多面体の体積を基に算出される。例えば、点P6における重み係数W6を算出するための多面体は、図5に示す多面体S1である。
【0050】
そして、点A,B,C,D,E,Fの6点により形成される多面体の体積をV(A,B,C,D,E,F)と表記すると、重み係数W1, W2,W3,W4,W5,W6はそれぞれ下記の式(9),(10),(11),(12),(13),(14)により算出される。
【0051】
【数3】
Figure 0004033019
【0052】
この後に処理をS26に移す。ここでは、変換点XにおけるCMYK色空間パラメータ(Cx,Mx,Yx,Kx)を、重み係数W1, W2,W3,W4,W5,W6と点P1,P2,P3,P4,P5,P6におけるCMYK色空間パラメータ(Cn,Mn,Yn,Kn)を用いて下記の式(15),(16),(17),(18)により算出する。
【0053】
【数4】
Figure 0004033019
【0054】
そして、S26の処理を終了すると、当該補間処理を終了する。
当該補間処理を終了すると、図2の色変換処理に戻り、S06にて、Xをインクリメントする。その後、S07に処理を移し、Xの値がX_SIZEより大きいか否か判断する。ここで、Xの値がX_SIZE以下であると判断すると(S07:NO)、S04に処理を移し上記の処理を繰り返す。一方、Xの値がX_SIZEより大きいと判断すると(S07:YES)、S08に処理を移し、Xを0にセットするとともにYをインクリメントする。その後、S09に処理を移し、Yの値がY_SIZEより大きいか否か判断する。ここで、Yの値がY_SIZE以下であると判断すると(S09:NO)、S04に処理を移し上記の処理を繰り返す。一方、Yの値がY_SIZEより大きいと判断すると(S09:YES)、S10に処理を移し、色変換処理されたデータをプリンタ200に出力する。そして、当該色変換処理を終了する。
【0055】
以上の処理により、X_SIZE×Y_SIZE個の全ての画素データP(X,Y)=(R,G,B)をCMYK色空間パラメータに変換する。
[本発明との対応関係]
以上説明した実施形態において、PC100は本発明における色変換装置である。
【0056】
また、色変換プログラム102aは本発明における色変換プログラムである。また、図3におけるS04の処理は本発明における位置検出手段、図4におけるS21の処理およびS22の処理は本発明における補間点抽出手段、図4におけるS23の処理およびS24の処理は本発明における補間点色変換値算出手段、図4におけるS25の処理は本発明における重み係数算出手段、図4におけるS26の処理は本発明における補間演算手段として機能している。
【0057】
[効果]
このように構成されたPC100によれば、格子点P1,P2,P3,P4で形成される基準単位格子面M1を補間多面体H1の内部に含むことができる。
このため、基準単位格子面M1上の位置にある画素データP(X,Y)=(R,G,B)をCMYK色空間パラメータに変換する際は、基準単位格子面M1を構成する格子点P1,P2,P3,P4だけでなく特定点P5,P6における色変換値も用いて補間を行うことができる。即ち、基準単位格子面M1を構成する格子点の1点のみK成分の値がkで、その他の3点のK成分の値が0になっているような場合において、特定点P5,P6におけるK成分の値も用いて補間を行うことができるため、幾何学模様の発生を低減するCMYK色空間パラメータを生成することができる。
【0058】
また、補間多面体H1の辺にグレー軸を含むことができる。このため、グレー軸上の位置にある画素データP(X,Y)=(R,G,B)をCMYK色空間パラメータに変換する際には、補間多面体H1を形成する点の中で有彩色を表す画像データを用いずにグレー軸上にある点のみを用いて補間を行うことができるので、グレーを表す画素データP(X,Y)は、グレーを表すCMYK色空間パラメータに変換することができる。
【0059】
また、特定点P5,P6はそれぞれ単位補間立方体T1,T2の中心点であるため、格子点P1,P2,P3,P4の夫々と特定点P5,P6との距離が等しい。このため、図4におけるS25の処理において、6つの八面体の体積を求める計算を簡便にすることができるので、図4におけるS25の処理を速く行うことができる。
【0060】
(実施の形態2)
以下、本発明の実施の形態2について図面を参照しながら説明する。
まず、プリンタ200の構成を図7に基づいて説明する。
プリンタ200は、図7に示すように、所定の処理プログラムに基づいて処理を実行するCPU201,種々の制御プログラムが格納されたROM203,外部装置から入力したデータ等を格納する各種メモリが設けられたRAM204,入出力I/F205,利用者により操作可能な複数の操作キー206aおよび各種情報を表示する表示パネル206bからなるユーザI/F206と,プリンタエンジン用インターフェース(以降、プリンタエンジン用I/Fとする)207とプリンタエンジン208を備えている。
【0061】
ROM203には、CPU201が色変換処理を実行するための色変換プログラム203aと、色変換処理で用いる色変換特性が記載されている色変換テーブル203bの記憶領域が確保されている。
上記入出力I/F205は、上記各要素を相互に接続しているとともにPC等210の外部機器と接続しており、画像データがPC等210からプリンタ200に入力される。
【0062】
実施の形態1では色変換処理(図2参照)および補間処理(図3参照)をCPU101が実行するが、本発明の実施の形態2ではプリンタ200内のCPU201が実行する。色変換処理および補間処理の方法は実施の形態1と同様であるので、色変換処理および補間処理の説明は省略する。
【0063】
[効果]
このように構成されたプリンタ200によれば、実施の形態1と同様にして生成したCMYK色空間パラメータを用いて画像を形成することができる。
【0064】
このため、画像を形成する際に幾何学模様の発生を低減することができる。
[変形例]
以上、本発明の実施の形態について説明したが、本発明の実施の形態は上記実施の形態に何ら限定されることなく、本発明の技術的範囲に属する限り種々の形態をとり得ることはいうまでもない。
【0065】
例えば、上記実施形態においては、プリンタ200に画像形成装置としての構成を適用したものを例示した。しかし、画像形成の機能を有していれば、コピー機,ファクシミリ等についても同様に適用可能である。
例えば、上記実施形態においては、RGB色空間からCMYK色空間に変換するものを例示した。しかし、RGB色空間からRGB色空間に変換するについても同様に適用可能である。
【0066】
また、上記実施形態においては、特定点P5,P6が夫々、単位補間立方体T1,T2の中心点であるものを例示した。しかし、特定点P5はP1とP10とを結ぶ線分であるグレー軸上であれば線分P1P10の中立になくてもよい。同様に特定点P6はP11とP4とを結ぶ線分であるグレー軸上であれば線分P11P4の中立になくてもよい。さらに、特定点P5,P6は夫々、単位補間立方体T1,T2内の点であればどこでもよく、必ずしもグレー軸上に設定する必要はない。また単位補間多面体の形状は、立方体に限定されず長方体とすることもできる。
【図面の簡単な説明】
【図1】実施の形態1における色変換装置の構成を表すブロック図。
【図2】実施の形態における色変換処理手順を示すフローチャート。
【図3】実施の形態における補間処理手順を示すフローチャート。
【図4】実施の形態における補間演算の概念を説明する図。
【図5】実施の形態における補間演算の重み係数算出の概念を説明する図。
【図6】実施の形態における色変換テーブルの構成説明図である。
【図7】実施の形態2におけるプリンタの構成を表すブロック図。
【図8】幾何学模様を説明する図。
【符号の説明】
10…スキャナ10、20…デジタルカメラ、30…携帯電話、100…PC、101…CPU、102…HDD、103…ROM、104…RAM、105…入出力インターフェース、106…ユーザインターフェース、106a…操作キー、106b…表示パネル、107…通信用インターフェース、200…プリンタ、201…CPU、203…ROM、204…RAM、205…入出力インターフェース、206…ユーザインターフェース、206a…操作キー、206b…表示パネル、207…プリンタエンジン用インターフェース、208…プリンタエンジン、210…PC等。[0001]
BACKGROUND OF THE INVENTION
The present invention is used in a color printer or the like, and a first color signal in a first color space (for example, RGB) defined by a combination of three different color signals is converted into a second color space (same as or different from the first color space). For example, the present invention relates to a color conversion apparatus that converts a second color signal (for example, CMYK), an image forming apparatus including the color conversion apparatus, and a color conversion program.
[0002]
[Prior art]
For example, when an image displayed on a color CRT is printed by a color printer, the color signals for the color CRT are RGB signals (red, green, blue), and the color signals for the color printer are CMYK signals (cyan, magenta). (Yellow / Black), it is necessary to convert RGB signals into CMYK signals.
[0003]
As such a color signal conversion method, a method using a color conversion table is currently widely used.
This is because, for example, CMYK values that reproduce RGB values on grid points arranged in a grid pattern in the RGB color space are stored in the color conversion table, and for CMYK values that reproduce RGB values that are not on grid points, This is a method of obtaining by using interpolation calculation based on CMYK values on points.
[0004]
For interpolation using a color conversion table, a method of selecting and interpolating 4 to 8 grid points around a point to be color converted (hereinafter also referred to as a conversion point) is generally used. There are known a method of interpolating using a method (for example, see Patent Document 1) and a method of performing an interpolation using a pyramid polyhedron (for example, see Patent Document 2).
[0005]
[Patent Document 1]
Japanese Patent Laid-Open No. 2000-165691 (FIG. 2)
[Patent Document 2]
Japanese Patent Laid-Open No. 56-14237 (FIG. 2)
[0006]
[Problems to be solved by the invention]
However, in such an interpolation method, for example, from the RGB color space (R: red, G: green, B: blue) to the CMYK color space (C: cyan, M: magenta, Y: yellow, K: black). When converting, there is a problem that a geometric pattern having a right or circular outline is generated. The reason is as follows.
In the triangular pyramid interpolation, when the conversion point is inside the triangular pyramid, the interpolation is performed using four lattice points forming the triangular pyramid. On the other hand, when the conversion point is on the surface of the triangular pyramid, interpolation is performed using three lattice points on the surface.
[0007]
When the K (black) component is interpolated when there is a conversion point on the surface of the triangular pyramid, the value of the K component is k for only one lattice on the lattice surface as shown in FIG. Consider a case where the value of the K component at three points is zero.
At this time, if the point at which the value of the K component is 0.5 × k is obtained by interpolation, the position is indicated by a broken line, and if the point at which the value of the K component is 0.2 × k is obtained, one point is obtained. When a point where the value of the K component is, for example, 0.8 × k is obtained, the position indicated by the two-dot chain line is obtained.
[0008]
In other words, the K component is reproduced as a gradation having a right-angled contour in the unit cell plane, causing a geometric pattern to be generated.
Further, in the pyramid polyhedron, when the conversion point is inside the pyramid polyhedron, interpolation is performed using five lattice points forming the pyramid polyhedron. On the other hand, when the transformation point is on the bottom surface of the pyramidal polyhedron, interpolation is performed using four lattice points on the bottom surface.
[0009]
When the transformation point is on the bottom surface of the pyramidal polyhedron, when interpolation of the K (black) component is performed, the value of the K component is k for only one lattice on the lattice plane as shown in FIG. Consider the case where the values of the other three K components are zero.
At this time, if a point where the value of the K component is 0.5 × k, for example, is obtained by interpolation, the position shown by the broken line is obtained, and if a point where the value of the K component is 0.2 × k is obtained, for example, Further, when the point at which the value of the K component becomes, for example, 0.8 × k is obtained, the position indicated by the two-dot chain line is obtained.
[0010]
That is, the K component is reproduced as a gradation having a circular outline in the unit lattice plane, and causes a geometric pattern.
In particular, in the CMYK color space, when gray is reproduced, a method is generally used in which light gray is reproduced by a mixed color of CMY, and when it becomes dark gray, it is reproduced using K for the first time. Therefore, as shown in FIG. 8, there is a tendency that only one grid point has a K component and the other three grid points have a K component of 0, and a geometric pattern is generated in the CMYK color space. It is an easy cause.
[0011]
SUMMARY An advantage of some aspects of the invention is that it provides a color conversion apparatus, an image forming apparatus, and a color conversion program that reduce the occurrence of a geometric pattern.
[0012]
[Means for Solving the Problems and Effects of the Invention]
In order to solve the above problem, the color conversion device according to claim 1 is:
The first color signal in the first color space defined by the combination of three different color signals is the same as the first color space using a color conversion table using each color component value of the first color space as a parameter, or A color conversion device for converting to a second color signal of a different second color space,
Position detecting means for detecting a position of the first color signal in a color space having each color component of the first color space as a coordinate axis based on each color component value representing the first color signal;
Among the discrete lattice points in the color space specified by the color component values of the first color space corresponding respectively to the color conversion values to the second color signal described in the color conversion table, Selecting four lattice points constituting the reference unit lattice plane closest to the position of the first color signal detected by the position detection means, and facing the reference unit lattice plane and the reference unit lattice plane; A specific point having a predetermined position from the reference unit lattice plane is selected within each of two unit interpolation spaces formed by two adjacent unit lattice planes, and an interpolation polyhedron is selected from these points. Interpolation point extraction means to be set;
Interpolation point color conversion for extracting the color conversion values at the positions of four lattice points constituting the reference unit lattice plane from the color conversion table and calculating the color conversion values at the specific points based on the color conversion table A value calculating means;
Weight coefficient calculation means for calculating weight coefficients of the four grid points and the specific point based on the positions of the four grid points and the specific point with respect to the position of the first color signal in the interpolation polyhedron;
Interpolation calculation means for obtaining a second color signal of the second color space by interpolation calculation using a color conversion value at the point forming the interpolation polyhedron and the weighting coefficient is provided.
[0013]
According to the color conversion apparatus configured as described above, the reference unit lattice plane formed by the four lattice points can be included in the interpolation polyhedron formed by the four lattice points and the specific point.
For this reason, when converting the first color signal at the position on the reference unit grid surface into the second color signal, not only the four grid points constituting the reference unit grid surface but also the color conversion values at specific points are used. Can be interpolated.
[0014]
That is, even when only one of the lattice points constituting the reference unit lattice surface has a K component value of k and the other three points have K component values of 0, the reference unit lattice surface is formed. Since interpolation can be performed using the value of the K component at the specific point in addition to the value of the K component at the four grid points, a second color signal that reduces the occurrence of a geometric pattern can be generated.
[0015]
Further, in the color conversion device according to claim 1, as described in claim 2,
The unit interpolation space is a cube;
The first color space is a color space whose diagonal can be defined as a gray axis,
The interpolation point extracting means may select a point on a diagonal line in the unit interpolation space whose direction is defined by a vector of a gray axis in the first color space.
[0016]
According to the color conversion device configured as described above, the side of the interpolation polyhedron can include the gray axis.
For this reason, when the first color signal at the position on the gray axis is converted to the second color signal, interpolation is performed using only the points on the gray axis among the points forming the interpolation polyhedron. Therefore, it is possible to prevent chromatic color components from being mixed in the conversion from the first color signal to the first color signal on the gray axis.
[0017]
Further, in the color conversion device according to claim 2, as described in claim 3,
The selected interpolation point may be a center point of the unit interpolation space, that is, a midpoint of the diagonal line.
[0018]
According to the color conversion device configured as described above, the distance between each of the four lattice points constituting the reference unit lattice plane and the specific point becomes equal.
For this reason, when the weighting coefficient calculating means calculates the weighting coefficient, it is possible to simplify the calculation of the positions of the four grid points and the specific points with respect to the position of the first color signal, so that the color conversion processing is performed quickly. Can do.
[0019]
In addition, the color conversion device according to claim 4 is:
The first color signal in the first color space defined by the combination of three different color signals is the same as the first color space using a color conversion table using each color component value of the first color space as a parameter, or A color conversion device for converting to a second color signal of a different second color space,
Position detecting means for detecting a position of the first color signal in a color space having each color component of the first color space as a coordinate axis based on each color component value representing the first color signal;
Among the discrete lattice points in the color space specified by the color component values of the first color space corresponding respectively to the color conversion values to the second color signal described in the color conversion table, Selecting four lattice points constituting the reference unit lattice plane closest to the position of the first color signal detected by the position detection means, and facing the reference unit lattice plane and the reference unit lattice plane; An interpolation point extracting means for selecting a center point of each of the two unit interpolation spaces constituted by each of two adjacent unit grid surfaces adjacent to each other, and setting an interpolation octahedron from these points;
Interpolation point color conversion for extracting the color conversion values at the positions of the four lattice points constituting the reference unit lattice plane from the color conversion table and calculating the color conversion values at the center point based on the color conversion table A value calculating means;
Weight coefficient calculation means for calculating weight coefficients of the four grid points and the center point based on the positions of the four grid points and the center point with respect to the position of the first color signal in the interpolation octahedron;
Interpolation calculation means for obtaining a second color signal of the second color space by interpolation calculation using a color conversion value at the point forming the interpolation octahedron and the weighting factor is provided.
[0020]
According to the color conversion device configured as described above, the reference unit lattice plane formed by the four lattice points can be included in the interpolation polyhedron formed by the four lattice points and the center point.
For this reason, when converting the first color signal at the position on the reference unit grid surface to the second color signal, not only the four grid points constituting the reference unit grid surface but also the color conversion values at the center point are used. Can be interpolated.
[0021]
That is, even when only one of the lattice points constituting the reference unit lattice surface has a K component value of k and the other three points have K component values of 0, the reference unit lattice surface is formed. Since interpolation can be performed using the value of the K component at the center point in addition to the value of the K component at the four grid points, a second color signal that reduces the occurrence of a geometric pattern can be generated.
[0022]
Further, the distance between each of the four lattice points constituting the reference unit lattice plane and the center point becomes equal. For this reason, when the weighting coefficient calculating means calculates the weighting coefficient, it is possible to simplify the calculation of the positions of the four grid points and the center point with respect to the position of the first color signal. Can do.
[0023]
An image forming apparatus according to claim 5 is provided.
A color conversion device according to any one of claims 1 to 4 is provided.
According to the image forming apparatus configured as described above, an image can be formed using the second color signal generated by the color conversion apparatus according to any one of claims 1 to 4.
[0024]
For this reason, generation | occurrence | production of a geometric pattern can be reduced when forming an image.
Further, the color conversion program according to claim 6 is:
A computer is caused to function as each means of the color conversion device according to any one of claims 1 to 4.
[0025]
A computer system controlled by such a program can constitute a part of the color conversion device according to claims 1 to 4, and can obtain the same operations and effects as the color conversion device.
The color conversion program described above is provided to the color conversion device itself, the image forming apparatus, and users who use these devices via, for example, a recording medium such as an FD or CD-ROM, or a communication network such as the Internet. Is.
[0026]
Examples of the computer system that executes the above-described color conversion device include, for example, a computer system built in the color conversion device, a computer system built in the image forming device, or a color conversion device and a wireless or wired connection to the image forming device. A computer system or the like connected to be able to perform data communication via a communication path can be used.
[0027]
DETAILED DESCRIPTION OF THE INVENTION
(Embodiment 1)
Hereinafter, a personal computer in which the configuration of the color conversion apparatus of the present invention is applied will be described as a first embodiment of the present invention.
[0028]
First, the configuration of the personal computer 100 will be described with reference to FIG.
As shown in FIG. 1, a personal computer (hereinafter referred to as a PC) 100 includes a CPU 101 that executes processing based on a predetermined processing program, a hard disk (hereinafter referred to as HDD) 102 as a storage device, and various control programs. ROM 103 storing data, RAM 104 provided with various memories for storing data input from an external device, input / output interface (hereinafter referred to as input / output I / F) 105, a plurality of operation keys operable by a user A user interface (hereinafter referred to as a user I / F) 106 and a communication interface (hereinafter referred to as a communication I / F) 107 including a display panel 106b that displays 106a and various types of information are provided.
[0029]
The HDD 102 has a storage area for a color conversion program 102a for the CPU 101 to execute color conversion processing and a color conversion table 102b in which color conversion characteristics used in the color conversion processing are described.
The input / output I / F 105 connects the above elements to each other and is connected to the scanner 10, the digital camera 20, and the mobile phone 30. Image data having image color information as data is stored in the scanner 10, digital Input from the camera 20 and the mobile phone 30 to the PC 100. Further, the input / output I / F 105 is connected to the printer 200, and the image data color-converted by the PC 100 is output to the printer 200.
[0030]
The user I / F 106 outputs a print start command to the CPU 101 when an operation for starting printing is performed using the operation key 106a.
The communication I / F 107 is connected to the network 40, and image data is input from the network 40 to the PC 100.
[0031]
In the PC 100 configured as described above, first, the CPU 101 acquires image data input from the scanner 10, the digital camera 20, the mobile phone 30, or the network 40 according to a predetermined processing program and stores the image data in, for example, the HDD 102. When a print start command is input from the user I / F 106 to the CPU 101, the CPU 101 stores image data from the HDD 102 to the RAM 104. Thereafter, the CPU 101 reads image data from the RAM 104 and performs color conversion processing based on the color conversion program 102a. Then, the color-converted image data is output to the printer 200 via the input / output I / F 105.
[0032]
Next, color conversion processing executed by the CPU 101 of the PC 100 will be described with reference to FIG.
FIG. 2 is a flowchart showing the color conversion process. This color conversion process is a process repeatedly executed while the PC 100 is activated (powered on).
[0033]
When this color conversion process is executed, the CPU 101 first determines in S01 whether or not a print start command has been input. If it is determined that a print start command has been input (S01: YES), the process proceeds to S02. On the other hand, if it is determined that the print start command has not been input (S01: NO), the process of S01 is repeated.
[0034]
The image data input to the PC 100 includes X_SIZE pixel data in the horizontal direction and Y_SIZE pixel data in the vertical direction (X_SIZE: input data horizontal size (Pixel): Y_SIZE: input data vertical size (Pixel)). That is, it is composed of X_SIZE × Y_SIZE pixel data P (X, Y). X is a horizontal coordinate value of the pixel, Y is a vertical coordinate value, and 0, 1, 2,..., X_SIZE for X, 0, 1, 2,. A value of Y_SIZE is attached. X_SIZE and Y_SIZE differ depending on the image data.
[0035]
The pixel data P (X, Y) is composed of three types of color components defined by R (red), G (green), and B (blue), and each component is 8 bits from 0 to 255. It has 256 gradations, and normally 0 indicates the darkest part and 255 indicates the highest brightness.
When the process proceeds from S01 to S02, for example, the pixel data P (X, Y) at all (X, Y) coordinates is read from the HDD 102 and stored in the RAM 104.
[0036]
Thereafter, X and Y are set to 0 as the initial setting of the coordinate value of the pixel data in S03.
Then, the processing is shifted to S04, and the pixel data P (X, Y) corresponding to the values of X and Y is RGB based on the RGB values in P (X, Y) and having R, G, and B as axes, respectively. A position in the color space is obtained (this position is referred to as a conversion point).
[0037]
Here, in a three-dimensional space such as an RGB color space, lattice points arranged in a lattice shape are set, and each lattice point has an RGB value as a coordinate value in the three-dimensional space. The color conversion table stores CMYK values as control signals for the output device that reproduces the RGB values. That is, in this case, as shown in FIG. 6, the color conversion table includes a combination of three identification numbers (0, 0, 0), (0 , 0, 1),..., (M, m, m) and four parameters (C, M, Y, K) of the CMYK color space corresponding to the combination.
[0038]
At this time, the grid point indicated by the identification number (0, 0, 0) is the origin of the RGB color space, and each identification number is one in the positive direction of each of the R, G, and B axes with respect to the origin. Each value is set to increase, and there is a grid point indicated by each identification number.
Further, as can be seen from the fact that grid points arranged in a grid pattern in the three-dimensional space are set, the data represented in the color conversion table is distributed discretely in the RGB color space. Therefore, in the process of S04, a position (hereinafter referred to as a conversion point) in the RGB color space of the pixel data P (X, Y) = (R, G, B) to be converted is specified.
[0039]
Thereafter, interpolation processing is executed in S05. The interpolation process is a process of converting to a CMYK color space using a color conversion table stored in the HDD 102.
This interpolation processing is executed according to the procedure shown in FIG. That is, in this interpolation processing, first, in S21, the reference unit cell surface closest to the conversion point in the RGB orthogonal coordinate space is obtained.
[0040]
For example, when the conversion point X = (Rx, Gx, Bx) exists at the position shown in FIG. 4, the surface formed by the lattice points P1, P2, P3, and P4 is selected as the reference unit lattice surface M1. The FIG. 4 is a diagram for explaining a method of extracting a reference unit cell surface.
Thereafter, the process proceeds to S22. Here, first, two adjacent unit cell surfaces that are opposed to and adjacent to the reference unit cell surface M1 are selected. In FIG. 4, a surface M2 formed by lattice points P7, P8, P9, and P10 and a surface M3 formed by lattice points P11, P12, P13, and P14 are selected as adjacent unit lattice surfaces.
[0041]
Then, a unit interpolation cube T1 composed of the reference unit lattice plane M1 and the adjacent unit lattice plane M2 and a unit interpolation cube T2 composed of the reference unit lattice plane M1 and the adjacent unit lattice plane M3 are set. A center point P5 of the interpolation cube T1 and a center point P6 of the unit interpolation cube T2 are selected (hereinafter, points P5 and P6 are also referred to as specific points). Thus, the interpolation polyhedron H1 including the conversion point X therein is constituted by the lattice points P1, P2, P3, P4 and the specific points P5, P6.
[0042]
Thereafter, the process proceeds to S23. Here, the CMYK color space parameters (C, M, Y, K) at the lattice points P1, P2, P3, P4 forming the reference unit lattice plane M1 are extracted from the color conversion table.
Thereafter, the CMYK color space parameter at the point P1 is (C1, M1, Y1, K1), the CMYK color space parameter at the point P2 is (C2, M2, Y2, K2), and the CMYK at the point Pn (n: integer). The color space parameter is described as (Cn, Mn, Yn, Kn).
[0043]
Thereafter, the process proceeds to S24. Here, first, CMYK color space parameters (C10, M10, Y10, K10) and (C11, M11, Y11, K11) in P10 and P11 are extracted from the color conversion table.
Then, the CMYK color space parameters (C5, M5, Y5, K5) at the specific point P5 are calculated based on the CMYK color space parameters at P1 and P10. That is, since the specific point P5 is located at the midpoint of the line connecting the lattice point P1 and the lattice point P10, the CMYK color space parameters at the specific point P5 are represented by the following equations (1), (2), (3), Calculated by (4).
[0044]
[Expression 1]
Figure 0004033019
[0045]
Similarly, since the specific point P6 is positioned at the midpoint of the line connecting the lattice point P4 and the lattice point P11, the CMYK color space parameters (C6, M6, Y6, K6) at the P specific point P6 are respectively expressed by the following formulas ( 5), (6), (7), and (8).
[0046]
[Expression 2]
Figure 0004033019
[0047]
Thereafter, the process proceeds to S25. Here, the weighting coefficients at points P1, P2, P3, P4, P5, and P6 for calculating CMYK color space parameters (Cx, Mx, Yx, Kx) at the conversion point X are calculated. FIG. 5 is a diagram for explaining a method of calculating a weighting coefficient in the interpolation polyhedron H1.
[0048]
First, a position where a perpendicular line extending from the transformation point X to each side of the interpolation polyhedron H1 intersects each side is obtained (points A, B, C, D, E, F, G, H, I, J, K in FIG. 5). , L).
A point A in FIG. 5 is a point on a line segment P2-P5 connecting the point P2 and the point 5. Similarly, point B is line segment P1-P5, point C is line segment P4-P5, point D is line segment P3-P5, point E is line segment P4-P6, point F is line segment P3-P6, point G Is a line segment P2-P6, point H is a line segment P1-P6, point I is a line segment P2-P4, point J is a line segment P1-P3, point K is a line segment P1-P2, and point L is a line segment P3- It is a point on P4.
[0049]
The weighting factor W1 at the point P1 is calculated based on the volume of the polyhedron formed by the six points P4, C, L, I, E, and X.
Similarly, the weighting factor W2 at the point P2 is six points P3, D, L, J, F, and X, and the weighting factor W3 at the point P3 is six points P2, A, K, G, I, and X, The weighting factor W4 at P4 is six points P1, B, J, H, K, and X, the weighting factor W5 at point P5 is the six points at points P6, F, E, G, H, and X, and the weighting factor at point P6 W6 is calculated based on the volume of the polyhedron formed by the six points P5, B, D, C, A, and X. For example, the polyhedron for calculating the weighting factor W6 at the point P6 is the polyhedron S1 shown in FIG.
[0050]
If the volume of the polyhedron formed by the six points A, B, C, D, E, and F is expressed as V (A, B, C, D, E, F), the weighting factors W1, W2, and W3 , W4, W5, W6 are calculated by the following equations (9), (10), (11), (12), (13), (14), respectively.
[0051]
[Equation 3]
Figure 0004033019
[0052]
Thereafter, the process proceeds to S26. Here, the CMYK color space parameters (Cx, Mx, Yx, Kx) at the transformation point X are set to CMYK at the weighting factors W1, W2, W3, W4, W5, W6 and the points P1, P2, P3, P4, P5, P6. The color space parameters (Cn, Mn, Yn, Kn) are used to calculate the following equations (15), (16), (17), (18).
[0053]
[Expression 4]
Figure 0004033019
[0054]
Then, when the process of S26 is finished, the interpolation process is finished.
When the interpolation process ends, the process returns to the color conversion process of FIG. 2, and X is incremented in S06. Thereafter, the process proceeds to S07, and it is determined whether or not the value of X is greater than X_SIZE. If it is determined that the value of X is less than or equal to X_SIZE (S07: NO), the process proceeds to S04 and the above process is repeated. On the other hand, if it is determined that the value of X is greater than X_SIZE (S07: YES), the process proceeds to S08, where X is set to 0 and Y is incremented. Thereafter, the process proceeds to S09, and it is determined whether or not the value of Y is larger than Y_SIZE. If it is determined that the value of Y is equal to or less than Y_SIZE (S09: NO), the process proceeds to S04 and the above process is repeated. On the other hand, if it is determined that the value of Y is greater than Y_SIZE (S09: YES), the process proceeds to S10, and the color-converted data is output to the printer 200. Then, the color conversion process ends.
[0055]
Through the above processing, all the X_SIZE × Y_SIZE pixel data P (X, Y) = (R, G, B) are converted into CMYK color space parameters.
[Correspondence with the present invention]
In the embodiment described above, the PC 100 is the color conversion apparatus according to the present invention.
[0056]
The color conversion program 102a is a color conversion program in the present invention. 3 is the position detecting means in the present invention, the processes in S21 and S22 in FIG. 4 are the interpolation point extracting means in the present invention, the processes in S23 and S24 in FIG. 4 are the interpolation in the present invention. The point color conversion value calculation means, the process of S25 in FIG. 4 functions as the weighting coefficient calculation means in the present invention, and the process of S26 in FIG. 4 functions as the interpolation calculation means in the present invention.
[0057]
[effect]
According to the PC 100 configured as described above, the reference unit lattice plane M1 formed by the lattice points P1, P2, P3, and P4 can be included in the interpolation polyhedron H1.
Therefore, when the pixel data P (X, Y) = (R, G, B) at the position on the reference unit lattice plane M1 is converted into CMYK color space parameters, the lattice points constituting the reference unit lattice plane M1. Interpolation can be performed using not only P1, P2, P3 and P4 but also color conversion values at specific points P5 and P6. That is, in the case where the value of the K component is k only at one of the lattice points constituting the reference unit lattice plane M1, and the values of the K components of the other three points are 0, the specific points P5 and P6 Since interpolation can also be performed using the value of the K component, it is possible to generate CMYK color space parameters that reduce the occurrence of geometric patterns.
[0058]
Further, a gray axis can be included in the side of the interpolation polyhedron H1. For this reason, when the pixel data P (X, Y) = (R, G, B) on the gray axis is converted into the CMYK color space parameter, the chromatic color among the points forming the interpolation polyhedron H1. Since interpolation can be performed using only points on the gray axis without using image data representing, pixel data P (X, Y) representing gray is converted into CMYK color space parameters representing gray. Can do.
[0059]
Since the specific points P5 and P6 are the center points of the unit interpolation cubes T1 and T2, respectively, the distances between the lattice points P1, P2, P3, and P4 and the specific points P5 and P6 are equal. For this reason, in the process of S25 in FIG. 4, since the calculation which calculates | requires the volume of six octahedrons can be simplified, the process of S25 in FIG. 4 can be performed quickly.
[0060]
(Embodiment 2)
Embodiment 2 of the present invention will be described below with reference to the drawings.
First, the configuration of the printer 200 will be described with reference to FIG.
As shown in FIG. 7, the printer 200 is provided with a CPU 201 that executes processing based on a predetermined processing program, a ROM 203 that stores various control programs, and various memories that store data input from an external device. A user interface 206 including a RAM 204, an input / output I / F 205, a plurality of operation keys 206a that can be operated by a user and a display panel 206b for displaying various information, a printer engine interface (hereinafter referred to as a printer engine I / F). 207) and a printer engine 208.
[0061]
The ROM 203 has a storage area for a color conversion program 203a for the CPU 201 to execute color conversion processing and a color conversion table 203b in which color conversion characteristics used in the color conversion processing are described.
The input / output I / F 205 connects the above elements to each other and is connected to an external device such as a PC 210, and image data is input from the PC 210 to the printer 200.
[0062]
In the first embodiment, the CPU 101 executes color conversion processing (see FIG. 2) and interpolation processing (see FIG. 3), but in the second embodiment of the present invention, the CPU 201 in the printer 200 executes. Since the color conversion process and the interpolation process are the same as in the first embodiment, description of the color conversion process and the interpolation process is omitted.
[0063]
[effect]
According to the printer 200 configured as described above, an image can be formed using CMYK color space parameters generated in the same manner as in the first embodiment.
[0064]
For this reason, generation | occurrence | production of a geometric pattern can be reduced when forming an image.
[Modification]
Although the embodiments of the present invention have been described above, the embodiments of the present invention are not limited to the above-described embodiments, and various forms can be taken as long as they belong to the technical scope of the present invention. Not too long.
[0065]
For example, in the above embodiment, the printer 200 is applied as a configuration as an image forming apparatus. However, as long as it has an image forming function, it can be similarly applied to a copying machine, a facsimile, and the like.
For example, in the above embodiment, the conversion from the RGB color space to the CMYK color space is exemplified. However, the same applies to conversion from the RGB color space to the RGB color space.
[0066]
In the above embodiment, the specific points P5 and P6 are the center points of the unit interpolation cubes T1 and T2, respectively. However, the specific point P5 does not have to be neutral in the line segment P1P10 as long as it is on the gray axis that is a line segment connecting P1 and P10. Similarly, the specific point P6 does not have to be neutral in the line segment P11P4 as long as it is on the gray axis that is a line segment connecting P11 and P4. Furthermore, the specific points P5 and P6 may be any points within the unit interpolation cubes T1 and T2, respectively, and need not necessarily be set on the gray axis. The shape of the unit interpolation polyhedron is not limited to a cube, and may be a rectangular parallelepiped.
[Brief description of the drawings]
FIG. 1 is a block diagram illustrating a configuration of a color conversion device according to Embodiment 1. FIG.
FIG. 2 is a flowchart showing a color conversion processing procedure in the embodiment.
FIG. 3 is a flowchart showing an interpolation processing procedure in the embodiment.
FIG. 4 is a diagram illustrating the concept of interpolation calculation in the embodiment.
FIG. 5 is a diagram for explaining the concept of calculating a weighting factor for interpolation in the embodiment.
FIG. 6 is a configuration explanatory diagram of a color conversion table in the embodiment.
FIG. 7 is a block diagram illustrating a configuration of a printer according to a second embodiment.
FIG. 8 is a diagram illustrating a geometric pattern.
[Explanation of symbols]
DESCRIPTION OF SYMBOLS 10 ... Scanner 10, 20 ... Digital camera, 30 ... Mobile phone, 100 ... PC, 101 ... CPU, 102 ... HDD, 103 ... ROM, 104 ... RAM, 105 ... I / O interface, 106 ... User interface, 106a ... Operation key 106b ... display panel, 107 ... communication interface, 200 ... printer, 201 ... CPU, 203 ... ROM, 204 ... RAM, 205 ... input / output interface, 206 ... user interface, 206a ... operation keys, 206b ... display panel, 207 ... printer engine interface, 208 ... printer engine, 210 ... PC, etc.

Claims (6)

3つの異なる色信号の組み合わせにより定義される第一色空間における第一色信号を、該第一色空間の各色成分値をパラメータとする色変換テーブルを用いて、前記第一色空間と同じもしくは異なる第二色空間の第二色信号に変換する色変換装置であって、
前記第一色信号を表す各色成分値に基づき、前記第一色空間の各色成分を座標軸とする色空間内での前記第一色信号の位置を検出する位置検出手段と、
前記色変換テーブルに記述された第二色信号への色変換値に夫々対応する前記第一色空間の各色成分値で特定される前記色空間内での離散的な格子点の中から、前記位置検出手段にて検出された第一色信号の位置に最も近い基準単位格子面を構成する4つの格子点を選択するとともに、該基準単位格子面と該基準単位格子面に対して対向し且つ隣接する2つの隣接単位格子面の夫々とで構成される2つの単位補間空間の夫々の内部において前記基準単位格子面から所定の位置を有する特定点とを選択し、これらの点から補間多面体を設定する補間点抽出手段と、
前記基準単位格子面を構成する4つの格子点の位置における前記色変換値を前記色変換テーブルから抽出するとともに、前記特定点における色変換値を前記色変換テーブルに基づいて算出する補間点色変換値算出手段と、
前記補間多面体内での前記第一色信号の位置に対する前記4つの格子点と前記特定点の位置に基づき、前記4つの格子点と前記特定点の重み係数を算出する重み係数算出手段と、
前記補間多面体を形成する点における色変換値と前記重み係数とを用い、前記第二色空間の第二色信号を補間演算により求める補間演算手段とを備える、
ことを特徴とする色変換装置。
The first color signal in the first color space defined by the combination of three different color signals is the same as the first color space using a color conversion table using each color component value of the first color space as a parameter, or A color conversion device for converting to a second color signal of a different second color space,
Position detecting means for detecting a position of the first color signal in a color space having each color component of the first color space as a coordinate axis based on each color component value representing the first color signal;
Among the discrete lattice points in the color space specified by the color component values of the first color space corresponding respectively to the color conversion values to the second color signal described in the color conversion table, Selecting four lattice points constituting the reference unit lattice plane closest to the position of the first color signal detected by the position detection means, and facing the reference unit lattice plane and the reference unit lattice plane; A specific point having a predetermined position from the reference unit lattice plane is selected within each of two unit interpolation spaces formed by two adjacent unit lattice planes, and an interpolation polyhedron is selected from these points. Interpolation point extraction means to be set;
Interpolation point color conversion for extracting the color conversion values at the positions of four lattice points constituting the reference unit lattice plane from the color conversion table and calculating the color conversion values at the specific points based on the color conversion table A value calculating means;
Weight coefficient calculation means for calculating weight coefficients of the four grid points and the specific point based on the positions of the four grid points and the specific point with respect to the position of the first color signal in the interpolation polyhedron;
Using a color conversion value at the point forming the interpolated polyhedron and the weighting factor, and an interpolation calculation means for obtaining a second color signal of the second color space by interpolation calculation,
A color conversion device characterized by that.
前記単位補間空間は立方体であり、
前記第一色空間はその対角線をグレー軸として定義できる色空間であり、
前記補間点抽出手段は、前記第一色空間におけるグレー軸のベクトルによって方向が定義される前記単位補間空間内の対角線上にある点を選択することを特徴とする請求項1に記載の色変換装置。
The unit interpolation space is a cube;
The first color space is a color space whose diagonal can be defined as a gray axis,
2. The color conversion according to claim 1, wherein the interpolation point extracting unit selects a point on a diagonal line in the unit interpolation space whose direction is defined by a vector of a gray axis in the first color space. apparatus.
前記選択された補間点は、前記単位補間空間の中心点、すなわち前記対角線の中点であることを特徴とする請求項2に記載の色変換装置。The color conversion apparatus according to claim 2, wherein the selected interpolation point is a center point of the unit interpolation space, that is, a midpoint of the diagonal line. 3つの異なる色信号の組み合わせにより定義される第一色空間における第一色信号を、該第一色空間の各色成分値をパラメータとする色変換テーブルを用いて、前記第一色空間と同じもしくは異なる第二色空間の第二色信号に変換する色変換装置であって、
前記第一色信号を表す各色成分値に基づき、前記第一色空間の各色成分を座標軸とする色空間内での前記第一色信号の位置を検出する位置検出手段と、
前記色変換テーブルに記述された第二色信号への色変換値に夫々対応する前記第一色空間の各色成分値で特定される前記色空間内での離散的な格子点の中から、前記位置検出手段にて検出された第一色信号の位置に最も近い基準単位格子面を構成する4つの格子点を選択するとともに、該基準単位格子面と該基準単位格子面に対して対向し且つ隣接する2つの隣接単位格子面の夫々とで構成される2つの単位補間空間の夫々の中心点とを選択し、これらの点から補間八面体を設定する補間点抽出手段と、
前記基準単位格子面を構成する4つの格子点の位置における前記色変換値を前記色変換テーブルから抽出するとともに、前記中心点における色変換値を前記色変換テーブルに基づいて算出する補間点色変換値算出手段と、
前記補間八面体内での前記第一色信号の位置に対する前記4つの格子点と前記中心点の位置に基づき、前記4つの格子点と前記中心点の重み係数を算出する重み係数算出手段と、
前記補間八面体を形成する点における色変換値と前記重み係数とを用い、前記第二色空間の第二色信号を補間演算により求める補間演算手段とを備える、
ことを特徴とする色変換装置。
The first color signal in the first color space defined by the combination of three different color signals is the same as the first color space using a color conversion table using each color component value of the first color space as a parameter, or A color conversion device for converting to a second color signal of a different second color space,
Position detecting means for detecting a position of the first color signal in a color space having each color component of the first color space as a coordinate axis based on each color component value representing the first color signal;
Among the discrete lattice points in the color space specified by the color component values of the first color space corresponding respectively to the color conversion values to the second color signal described in the color conversion table, Selecting four lattice points constituting the reference unit lattice plane closest to the position of the first color signal detected by the position detection means, and facing the reference unit lattice plane and the reference unit lattice plane; An interpolation point extracting means for selecting a center point of each of the two unit interpolation spaces constituted by each of two adjacent unit grid surfaces adjacent to each other, and setting an interpolation octahedron from these points;
Interpolation point color conversion for extracting the color conversion values at the positions of the four lattice points constituting the reference unit lattice plane from the color conversion table and calculating the color conversion values at the center point based on the color conversion table A value calculating means;
Weight coefficient calculation means for calculating weight coefficients of the four grid points and the center point based on the positions of the four grid points and the center point with respect to the position of the first color signal in the interpolation octahedron;
Using a color conversion value at the point forming the interpolation octahedron and the weighting factor, and interpolation calculation means for obtaining a second color signal of the second color space by interpolation calculation,
A color conversion device characterized by that.
請求項1〜請求項4何れか記載の色変換装置を備えたことを特徴とする画像形成装置。An image forming apparatus comprising the color conversion device according to claim 1. 請求項1〜請求項4何れか記載の色変換装置の前記各手段としてコンピュータを機能させるためのプログラム。The program for functioning a computer as said each means of the color conversion apparatus in any one of Claims 1-4.
JP2003094477A 2003-03-31 2003-03-31 Color conversion apparatus, image forming apparatus, and color conversion program Expired - Fee Related JP4033019B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003094477A JP4033019B2 (en) 2003-03-31 2003-03-31 Color conversion apparatus, image forming apparatus, and color conversion program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003094477A JP4033019B2 (en) 2003-03-31 2003-03-31 Color conversion apparatus, image forming apparatus, and color conversion program

Publications (2)

Publication Number Publication Date
JP2004304485A JP2004304485A (en) 2004-10-28
JP4033019B2 true JP4033019B2 (en) 2008-01-16

Family

ID=33407034

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003094477A Expired - Fee Related JP4033019B2 (en) 2003-03-31 2003-03-31 Color conversion apparatus, image forming apparatus, and color conversion program

Country Status (1)

Country Link
JP (1) JP4033019B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4682833B2 (en) * 2005-12-07 2011-05-11 セイコーエプソン株式会社 Color space conversion device, color space conversion method, and color space conversion program

Also Published As

Publication number Publication date
JP2004304485A (en) 2004-10-28

Similar Documents

Publication Publication Date Title
JP3493104B2 (en) Color image processing equipment
US7787149B2 (en) Method of generating color conversion table, information generation apparatus, recording medium, and image processing apparatus
US8204304B2 (en) Color gamut mapping by forming curved cross-sectional surfaces
US20060012809A1 (en) Color conversion method and profile generation method
JP2004192614A (en) Image processing device, image processing method, program and recording medium
JP4134806B2 (en) Color conversion apparatus, image forming apparatus, and color conversion program
US20030076516A1 (en) Color image processing method and apparatus
JPWO2002021849A1 (en) Image processing apparatus and color system conversion method
JP2003174567A (en) Generation method for conversion table, program and color copying machine
JP5117140B2 (en) Image forming apparatus, color data conversion method, and color data conversion program
JP4137393B2 (en) Image processing apparatus, image processing method, color conversion table creation method, and recording medium
JP4033019B2 (en) Color conversion apparatus, image forming apparatus, and color conversion program
JPH10210312A (en) Color converter, color conversion method and medium with color conversion program recorded
JP4501321B2 (en) Color gamut compression method
JP3961971B2 (en) Color conversion relationship deriving method, color conversion relationship deriving device, and color conversion relationship deriving program
JPH03139976A (en) Method for setting up tone curve
US20100302596A1 (en) Color look up table adjusting apparatus, recording medium on which a color look up table adjusting program is recorded and color look up table adjusting system
JP4420089B2 (en) Color conversion apparatus, image forming apparatus, and color conversion program
JPH10191089A (en) Color converter, color printer, color image data output device and recording medium
JPH10126636A (en) Color image processing method and processing unit
JP2009296139A (en) Image processor, image processing method and computer program
JP2009071715A (en) Color gamut generating method, color gamut generating device, program, and storage medium
JP2007329969A5 (en)
JP3906894B2 (en) Color gamut creation device, color gamut creation method, color conversion device, and color conversion method
JPH08214175A (en) Image processing method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20060329

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20070613

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20070703

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20071015

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

Free format text: PAYMENT UNTIL: 20101102

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Ref document number: 4033019

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20101102

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20111102

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20111102

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20121102

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20131102

Year of fee payment: 6

LAPS Cancellation because of no payment of annual fees