JP4208583B2 - Image processing apparatus and method and program thereof - Google Patents
Image processing apparatus and method and program thereof Download PDFInfo
- Publication number
- JP4208583B2 JP4208583B2 JP2003015228A JP2003015228A JP4208583B2 JP 4208583 B2 JP4208583 B2 JP 4208583B2 JP 2003015228 A JP2003015228 A JP 2003015228A JP 2003015228 A JP2003015228 A JP 2003015228A JP 4208583 B2 JP4208583 B2 JP 4208583B2
- Authority
- JP
- Japan
- Prior art keywords
- color
- output
- pixel data
- addition
- data
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Images
Landscapes
- Color, Gradation (AREA)
- Image Processing (AREA)
- Facsimile Image Signal Circuits (AREA)
- Color Image Communication Systems (AREA)
Description
【0001】
【発明の属する技術分野】
本発明は、多値画像データに対して擬似階調処理を行って2値データを得る画像処理技術に関するものである。
【0002】
【従来の技術】
従来、多値データを2値で表現する擬似中間調処理として誤差拡散法が知られている(「An Adaptive Algorithm for Spatial Gray Scale」 in society for Information Display 1975 Symposium Digest of Technical Papers,1975,36)。この方法は、着目画素をP、その濃度をv、注目画素Pの周辺画素P0,P1,P2,P3の濃度をそれぞれv0,v1,v2,v3とし、2値化のための閾値をTとした時、着目画素Pにおける2値化誤差Eを、経験的に求めた重み係数W0,W1,W2,W3に応じて周辺画素P0,P1,P2,P3に振り分けることにより、マクロ的に2値化後の画像の平均濃度を原画像の濃度と等しくする方法である。このとき、出力2値データをOとすると
v≧T ならば O=1, E=v−Vmax;
v<T ならば O=0, E=v−Vmin; …(1)
(但し、Vmax:最大濃度、Vmin:最小濃度)
v0=v0+E×W0; …(2)
v1=v1+E×W1; …(3)
v2=v2+E×W2; …(4)
v3=v3+E×W3; …(5)
ここで、重み係数の例として、W0=7/16,W1=1/16,W2=5/16,W3=3/16となる。
【0003】
このような方法により、多色、例えば、カラーインクジェットプリンタ等で用いられるシアン、マゼンタ、イエロー、ブラックの4色を擬似中間調処理する場合には、各色独立に上記誤差拡散法等を用いて処理を行っていた。このため、1色について見た場合には視覚特性が優れていても、2色以上が重なると、必ずしも良好な視覚特性が得られなかった。
【0004】
このような欠点を改良するために、例えば、以下の特許文献1,2によれば、2色以上を組み合わせて誤差拡散法を用いることにより、2色以上が重なり合う場合においても良好な視覚特性が得られる擬似中間調処理方法が開示されている。
【0005】
しかしながら、これらの方法では入力画素に対応する出力を決定する際に、比較器等によりその出力値を決定しているために、例えば出力階調数を変更する場合などにおいてはハードウェアにより実装されている場合には回路を、或いはソフトウェアにより実装されている場合にはプログラムを大きく変更しなければならない。
【0006】
【特許文献1】
特開平8−279920号公報
【特許文献2】
特開平11−10918号公報
【発明が解決しようとする課題】
このような問題を解決するために、2色以上を組合わせて誤差拡散を行い、注目画素の出力を決定する手段として、所定数の周辺画素からの誤差信号を加算した2色以上の画像信号をLUTに入力して、その出力値を決定する方法が提案されている。しかし、このような方法では入力信号のチャネル数が3以上に増えるとLUTのデータ量が大きくなってしまう。更に、各色の多値データの階調数が大きくなる場合や、出力特性を細かくコントロールするためには、そのLUTの各色あたりのポイント数を多くする場合には、LUTのデータ量が大きくなる。逆に各色のポイント数が少なすぎる場合には、LUTに設定できる出力特性がラフなものになってしまう。
【0007】
本発明は上記従来例に鑑みてなされたもので、3色以上の画像信号を入力して誤差拡散を行うのにあたり、2つの2次元LUTを用いて、これら3色以上の疑似階調出力値を得ることにより、LUTのデータ量の削減を図ることを目的とする。
【0008】
【課題を解決するための手段】
上記目的を達成するために本発明の画像処理装置は以下のような構成を備える。即ち、
少なくとも第1の色の画素データ、第2の色の画素データ、及び第3の色の画素データと、既に擬似階調処理が終わった画素からの第1の色の誤差データ、第2の色の誤差データ、及び第3の色の誤差データとを入力し、該第1の色の画素データに該第1の色の誤差データを加算して加算後の第1の色の画素データを出力し、該第2の色の画素データに該第2の色の誤差データを加算して加算後の第2の色の画素データを出力し、該第3の色の画素データに第3の誤差データを加算して加算後の第3の色の画素データを出力する加算手段と、
前記加算手段から出力された前記加算後の第1の色の画素データと前記加算後の第2の色の画素データとを加算した第1の加算結果、及び前記加算手段から出力された前記加算後の第3の色の画素データとを入力して前記第3の色の疑似階調出力値及び選択信号を出力する第1の2次元LUTと、前記加算後の第1の色の画素データ及び前記加算後の第2の色の画素データを入力して前記第1の色の疑似階調出力候補値及び前記第2の色の疑似階調出力候補値を出力する第2の2次元LUTとを有し、前記第1の2次元LUTに前記第1の加算結果及び前記加算後の第3の画素データを入力して前記選択信号を出力させるとともに前記第3の色の疑似階調出力値を決定し、前記第2の2次元LUTに前記加算後の第1の色の画素データ及び前記加算後の第2の色の画素データを入力して出力される前記第1の色の疑似階調出力候補値及び前記第2の色の疑似階調出力候補値と前記選択信号とに基づいて、前記第1の色の疑似階調出力値及び前記第2の色の疑似階調出力値を決定する出力値決定手段と、
前記出力値決定手段により決定された前記第1の色の疑似階調出力値、前記第2の色の疑似階調出力値、及び前記第3の色の疑似階調出力値と、前記加算後の第1の色の画素データ、前記加算後の第2の色の画素データ、及び前記加算後の第3の色の画素データとに基づいて着目画素における誤差を計算する誤差計算手段とを有し、
前記出力値決定手段は、前記選択信号に応じて、前記第1の色の疑似階調出力候補値及び前記第2の色の疑似階調出力候補値をそれぞれ前記第1の色の疑似階調出力値及び前記第2の色の疑似階調出力値とするか、前記第1の色の疑似階調出力値及び前記第2の色の疑似階調出力値をそれぞれ0とするかを選択することにより前記第1の色の疑似階調出力値及び前記第2の色の疑似階調出力値を決定することを特徴とする。
【0009】
【発明の実施の形態】
以下、図面を参照して本発明の実施例を詳細に説明する。
【0010】
[実施の形態1]
図1は、本発明の実施の形態1に係る画像処理装置の構成を説明するブロック図である。本実施の形態では、8ビットの多値画像データを入力し画像処理により2値データを出力する場合で説明する。
【0011】
図において、I0,I1,I2のそれぞれは、色0(例えばシアン)及び色1(例えばマゼンタ)、色2(例えばブラック)の入力画像の画素データを表しており、それぞれ8ビットの多値データである。これらの画素データはそれぞれ10,11,12で示される各加算器に入力される。これら加算器10,11,12においては、多値データI0,I1,I2、及び既に擬似階調処理が終わった画素からの誤差データE0,E1,E2をそれぞれ入力し、入力される画素データI0,I1,I2のそれぞれに、各誤差データE0,E1,E2を加算して出力する。これら加算器10,11,12の出力I'0,I'1,I'2は、それぞれ出力決定部16に入力され、この出力決定部16によって各色の出力値O0,O1,O2が決定される。更に、この出力決定部16の出力O0,O1,O2は、それぞれ誤差計算部13,14,15に入力される。これら誤差計算部13,14,15は、出力決定部16の出力O0,O1,O2のそれぞれと、各加算器10,11,12の出力I'0,I'1,I'2とを入力し、それぞれ誤差E0,E1,E2を出力する。
【0012】
誤差計算部13,14,15のそれぞれの出力E0,E1,E2は、それぞれ加算器10,11,12に入力され、次に入力される画素データに加算される。
【0013】
尚、本実施の形態においては、誤差計算部13,14,15の各出力E0,E1,E2はそのまま入力にフィードバックされて、それぞれ各加算器10,11,12に入力される例について説明したが、従来の技術で示したように、重み係数により重み付けをして次ラインの画素に繰り返すようにしても良い。
【0014】
以上の構成により、1つの入力データに対する処理が行われるので、以上の処理を、画像方向に1画素ずつずらして繰り返すことにより1ラインの処理を行い、更に1ラスタずつずらして同様の処理を繰り返すことにより、画像全体に対する擬似階調処理が可能となる。
【0015】
[出力決定部16]
本実施の形態に係る出力決定部16では、3チャネル以上の入力画像データについてLUTを用いた出力値を決定するのにあたり、2次元のLUTを1回或いは複数回参照する。本実施の形態では2次元のLUTを2回参照することにより、3次元の入力データに対する出力を決定している。
【0016】
図2は、本実施の形態に係る出力決定部16を説明するためのブロック図である。
【0017】
まず加算器10,11,12からの各出力I'0,I'1,I'2が入力されると、一次元LUT20,21,22が参照され、これらLUTにより変換された、LUTのグリッドに対応した信号g0,g1,g2がそれぞれ出力される。
【0018】
図3は、これら1次元LUT20,21,22のそれぞれにおけるデータの一例を示す図である。
【0019】
これらLUTでは、入力値は「−128」乃至「383」を取り得て、その出力である信号g0,g1,g2は、それぞれ3ビットで構成されている。入力値が「36」を含むそれ以下の場合には出力値は「0」、入力値「37」乃至「73」の場合は出力値が「1」、入力値「74」乃至「109」の場合は出力値が「2」、入力値「110」乃至「146」の場合は出力値が「3」、入力値「147」乃至「182」の場合は出力値が「4」、入力値「183」乃至「219」の場合は出力値が「5」、入力値「220」乃至「254」の場合は出力値が「6」、入力値「255」乃至「383」の場合は出力値が「7」にそれぞれ設定されている。
【0020】
図2では、信号g0とg1を加算器25により加算して得られたgpと、LUT22の出力である信号g2とをLUT24に入力してLUTの参照を行い、色2(本実施の形態ではブラック)の出力であるO2と、選択信号sを出力する。
【0021】
図4(A)(B)は、このLUT24のデータの一例を示す図である。
【0022】
図4(A)において、横軸のgpはg0とg1との加算結果(4ビット)を示し、縦軸のg2(0〜7)に対して多くのデータ(0〜14)を用意している。このLUT24から出力される信号O2は、処理を行っている画素に関して色2のドットのデータを生成するかどうかを示している。具体的には、「1」であればドット有りを示し、「0」であればドットのデータなしを示している。
【0023】
また選択信号sは、そのsの値が「0」であれば、色0、色1の出力をともに「0」とする、つまり色0、色1のドットのデータなしとする。またsの値が「1」であれば、色0、色1の出力はLUT23の参照結果により決めたものを出力として選ぶという意味を持っている。この選択信号sは、AND回路26,27に送られる。
【0024】
図2において、LUT23は、信号g0,g1を入力してLUTの参照を行い色0、色1の出力の候補である各1ビットの信号t0,t1を出力している。これらt0,t1は、AND回路26,27に送られ、選択信号sが「1」ならば色0、色1の出力(t0,t1)は、O0(シアン),O1(マゼンタ)として出力される。また選択信号sが「0」ならば、出力O0,O1は「0」で出力される。
【0025】
図5(A)(B)は、LUT23のデータを説明する図である。
【0026】
本実施の形態では、前述したLUT24での処理により得られた選択信号sにより、色0、色1で、少なくともいずれかの色でドットのデータを生成するかどうかを決めることを意図している。よって、LUT23で用いるデータでは、図5において、色0、色1のうちどちらかのデータを必ず生成する(図5(A)のデータは、図5(B)に示す「○」に対応するデータを含まない)ように作っている。
【0027】
このようにして出力決定部16は、以上のようにして生成された信号O0,O1,O2を出力する。
【0028】
[誤差計算部13〜15]
出力決定部16の出力O0,O1、O2のそれぞれは、各誤差計算部13,14,15に入力される。
【0029】
図6は、これら誤差計算部13,14,15のそれぞれの構成を示すブロック図である。
【0030】
出力決定部16の出力O0,O1或いはO2と、加算器10,11,12ののそれぞれの出力I'0,I'1,I'2を入力とし、それぞれ誤差E0,E1,E2を出力する。
【0031】
図中、60は1次元のLUTであり、出力決定部16の出力O0,O1,O2が入力されると、このLUT60が参照され、O'0、O'1,O'2が出力される。
【0032】
このLUT60のデータを図7に示す。
【0033】
図7において、O'0,O'1,O'2のそれぞれは、出力決定部16の各出力O0,O1,O2(本実施の形態の場合は「0」又は「1」の値)を入力信号レベル(0〜255)に換算した値である。
【0034】
各O'0,O'1,O'2は、減算器61により、各加算器10,11,12からの出力I'0,I'1,I'2から減算されて、それぞれ誤差出力E0,E1,E2が得られる。即ち、
E0=I'0−O'0
E1=I'1−O'1
E2=I'2−O'2
である。
【0035】
誤差計算部13,14,15の各出力E0,E1,E2は、それぞれ加算器10,11,12に入力され、次に入力される画素データ(I0,I1,I2)に加算される。
【0036】
図4において、生成するドットが「0」ではなく、かつ画像信号のレベルが比較的低いエリア、つまり図4(A)において、黒丸でも白丸でもないデータがあるエリアは、色2又は色0或いは色1のいずれかのドットのデータが少なくとも生成される。例えばある注目画素について色2(黒)のデータを生成し、色0(シアン)、色1(マゼンタ)のドットのデータを形成しなかった場合、色2にはマイナスの誤差が発生し、その誤差が受け取る処理中の注目画素に近い別の画素については、色2のドットデータが生成されにくくなり、色0或いは色1のドットのデータが発生しやすくなる。
【0037】
このように生成されるドット密度が低い入力画素データに対して、色毎にドットデータが重なりにくい条件で処理を行うことが可能となり、視覚特性に優れた擬似階調処理を行うことができる。
【0038】
本実施の形態においては、上述したように、3チャネルの入力信号に対して2次元のLUTデータを使用することにより、3次元のLUTを使用する場合に比べて必要なデータ量の削減をはかることができた。
【0039】
本実施の形態では、説明を容易にするために、LUTのグリッドが比較的少ない例について説明したが、入力信号の範囲に対してグリッドの間隔が狭い、つまりグリッドの数が多いほど、各入力レベルに対する出力特性を滑らかに、或いは細かく設定できる。グリッドの数が増えるに従って、3次元以上のLUTに必要なデータ量は飛躍的に大きくなる。よって本実施の形態によるデータ削減効果も大きくなる。
【0040】
本実施の形態では2値の例について述べたが、本発明は、上述した構成に限るものではない。LUTのデータを変更すれば3値以上の擬似階調処理や、色毎に異なる最大レベルを設定した擬似階調処理を行うことができる。
【0041】
本実施の形態の趣旨は、3チャネル以上入力信号に対して、2次元のLUTを1回、或いは複数回以上使用することにより、各入力信号の関係を反映した擬似階調処理を行うことが可能であり、かつLUTのデータの変更により異なる条件の処理に対応できる汎用性の高い画像処理装置を提供することである。
【0042】
[実施の形態2]
前述の実施の形態1では、出力決定部16において、2チャネル入力のLUT(2次元LUT)を2回参照することにより出力データ値を決定する例を示した。
【0043】
これに対して本実施の形態2では、出力値を決定するアルゴリズムは基本的には前述の実施の形態1と同じであるが、処理のフローが少し異なる例を示す。
【0044】
図8は、本発明の実施の形態2に係る出力決定部16における処理の流れを示すフローチャートである。この実施の形態2において、出力決定部16以外は、前述の実施の形態1の構成と同じであり、実施の形態1と共通する部分は同じ記号で示している。
【0045】
本実施の形態2においても前述の実施の形態1と同様に、まずステップS1で、出力決定部16への各色の入力信号(I0,I1,I2)をLUTのグリッドに対応したそれぞれの色の信号g0,g1,g2に変換する。次にステップS2に進み、信号g0とg1との和をとって信号gpを得る(加算器25)。その後、この信号gpとg2とをLUT24に入力し、色2の出力O2と選択信号sを得る。
【0046】
本実施の形態2では、続くステップS4において、選択信号sに基づいて色0と色1の出力を決めるためにLUT23を参照するかどうかを判定する。即ち、選択信号sが「1」であればLUT23を参照して、色0と色1の出力値O0,O1を決め(ステップS5)、そうでない場合はLUT23を参照せず、出力値O0,O1を「0」とする(ステップS6)。
【0047】
この例は、3チャネルの入力に対し、それぞれの入力レベルの関係を反映した擬似階調処理を行うためには、1画素について2次元LUT参照する回数は、入力データの組み合わせによっては1回でも良いことを示している。
【0048】
[実施の形態3]
実施の形態3では、入力データの組み合わせにより、出力値を決定するためのLUTを参照する条件を変更する例を示す。本実施の形態3は、出力決定部16以外は前述の実施の形態1の構成と同じである。
【0049】
図9は、本発明の実施の形態3に係る出力決定部16aを説明するためのブロック図である。
【0050】
本実施の形態3では、色0としてシアンの画像データを、色1としてマゼンタの画像データを、色2としてブラックの画像データを扱う場合についての例を示す。まず加算器10,11,12(図1)からI'0,I'1,I'2が入力されると、これらはそれぞれ一次元LUT70〜72に入力され、これらLUTにより変換されたLUTのグリッドに対応した入力信号g0,g1,g2がそれぞれ各LUTから出力される。これらは前述の実施の形態1と同じであり、1次元LUT70,71,72で用いるLUTのデータも同様である(図3)。
【0051】
その後、このLUTのグリッドに対応した入力信号g0,g1,g2は、出力決定ユニット100,101,102、ユニット選択情報取得部73にそれぞれ送られる。これら3つの出力決定ユニット100,101,102は、入力信号g0,g1,g2を入力として、各色の出力候補の情報を出力する。それら情報は色毎に出力選択ユニット80、出力選択ユニット81、出力選択ユニット82にそれぞれ送られる。これら出力決定ユニット80〜82のそれぞれについては、後で詳しく説明する。
【0052】
ユニット選択情報取得部73は、入力信号g0,g1,g2を入力として、ユニット選択信号s0,s1,s2をそれぞれ出力する。このユニット選択情報取得部73の構成については後で詳細に説明する。
【0053】
図10は、出力選択ユニット80〜82のそれぞれの構成を示すブロック図である。
【0054】
これら出力選択ユニットのそれぞれは、3つの出力決定ユニット100,101,102のそれぞれから送られてくる信号t0-0〜t0-2,t1-0〜t1-2,t2-0〜t2-2と,ユニット選択情報取得部73から送られてくるユニット選択信号s0,s1,s2との論理積を、AND回路90乃至92で取り、どれかの出力決定ユニットからの情報を出力として選ぶ。即ち、選択信号s0が「1」、信号s1とs2が共に「0」であれば、出力決定ユニット80からの信号O0が出力として選ばれる。加算器93は、AND回路90と91の各出力を入力し、その加算結果を加算器94に出力している。加算器94の他方の入力には、AND回路92で選択信号s2との論理積の結果が入力されており、その加算結果が出力信号O0,O1,O2として出力される。
【0055】
[出力決定ユニット100〜102の説明]
3つの出力決定ユニット100〜102は、出力決定のために参照する2つのLUTに入力信号として使用する信号の組み合わせが異なる。具体的には、出力決定ユニット100は、色2(例えばブラック)の出力信号と選択信号sを1回目のLUTの参照で取得するのに対し、出力決定ユニット101は色0(例えばシアン)の出力信号と選択信号号sを、出力決定ユニット102は色1(例えばマゼンタ)の出力信号と選択信号sを1回目のLUTの参照により決定する。
【0056】
出力決定ユニット100、出力決定ユニット101、出力決定ユニット102のブロック図をそれぞれ、図11、図12、図13に示す。
【0057】
図11は、出力決定ユニット100の構成を説明するブロック図である。
【0058】
LUTのグリッドに対応するよう変換された各色の入力信号g0,g1,g2のうち、加算器114において信号g0とg1との和を求めてgpを得る。そのgpとg2をLUT110に入力して参照し、色2の出力信号t0-2と、選択信号usとを得る。一方、LUT111は信号g0とg1とを入力して参照し、色0と色1の出力候補の信号ut0とut1を得る。これらはAND回路112,113に送られる。AND回路112,113は、色0と色1の出力候補の信号ut0とut1と選択信号usとの論理積を取り、色0と色1の出力t0-0とt0-1を出力する。即ち、選択信号usが「1」であれば、LUT111より出力されたut0とut1がそれぞれ色0と色1の出力t0-0とt0-1となる。一方、選択信号usが「0」であれば、色0と色1の出力t0-0とt0-1はともに「0」となる。
【0059】
本実施の形態3では、出力決定ユニットのLUTのデータは出力決定ユニット100〜102で同じものを使用する。
【0060】
出力決定ユニット100のLUT110、出力決定ユニット101のLUT120、出力決定ユニット102のLUT130で使用するデータ例を図14(A)(B)に示す。
【0061】
図14(A)において、横軸、縦軸にはそれぞれの出力決定ユニットにより異なる信号を入力として使用するので、input1とinput2(gp)で示している。g0,g1,g2の3つの入力信号のうち2つの和をとった信号(gp)を横軸(input1)に使用し、3つのうち和をとらなかった色の信号を縦軸(input2)に使用する。このデータは、上述の実施の形態1でLUT24に使用したデータと同じものである。
【0062】
出力決定ユニット100のLUT111、出力決定ユニット101のLUT121、出力決定ユニット102のLUT131で使用するデータ例を図15(A)(B)に示す。
【0063】
図15(A)において、横軸、縦軸には2つの入力を割り当てる。このデータは上述の実施の形態1でLUT23に使用したものと異なっており、2つのLUTへの入力信号を足したものが「3」以下である場合、出力は両方の色とも「0」となる。出力決定ユニット101、出力決定ユニット102は、出力決定ユニット100の各LUTに使用する色のデータの組み合わせを変えただけのものである。
【0064】
(出力決定ユニットを切り替えることの効果)
本実施の形態3では上述したように、図14に示したLUTのデータは前述の実施の形態1と同じものであるが、図15に示したLUTのデータは、2つのLUTへの入力信号を足したものが「3」以下である場合、その出力は両方の色とも「0」となるという点で、前述の実施の形態1とは異なる。
【0065】
このようなデータを使用すると、図15のLUTへの入力レベルが共に小さいときはinput1,input2に対応する色のドットのデータが生成されないことになる。input1,input2がともに小さい場合に、前述の実施の形態1の処理よりも、input1,input2の色については、この2種類の色のドットのデータをより整然と配置できるメリットがある。その反面、もう1つの色(LUT110,LUT120,LUT130で出力を決定する色)とのデータが混在する場合は、ドットの配置がいくらか乱れる特性を持つ。
【0066】
つまり、出力決定ユニット100を使用すると、信号g0とg1とを加算した信号と、信号g2とを入力としてLUTの参照を行い、信号g0とg1とを入力して図15のLUTデータを参照するため、色0と色1のドットのデータ混在については、より良好な視覚特性のドット配置の擬似階調処理の結果が得られる。しかし、色2と他の色とのドットのデータの混在については、比較的に良くない結果となる。
【0067】
同様に、出力決定ユニット100を使用すると、色2と色0のドットデータの混在については比較的良い視覚特性のドット配置が得られ、色1と他色のドットのデータの混在については、比較的良くない結果となる。更に、出力決定ユニット101を使用すると、色1と色0のドットデータの混在については比較的良い視覚特性のドット配置が得られるが、色2と他色のドットのデータの混在については比較的良くない結果となる。
【0068】
このような特性を持つそれぞれの出力決定ユニットに対して、各色の入力信号の組み合わせにより、優れた視覚特性の擬似階調処理結果が得られる出力決定ユニットを選択して使用することが本実施の形態の趣旨である。
【0069】
[ユニット選択情報取得部73]
図16(A)(B)は、本実施の形態に係るユニット選択情報取得部73で使用するルックアップテーブルのデータの一例を示す図である。
【0070】
前述した本実施の形態に係る出力決定部16のブロック図(図9)によると、ユニット選択情報取得部73へは3色全ての、LUTのグリッドに対応した信号g0,g1,g2が入力されている。しかし、この実施の形態4では、信号g0とg1を入力とした2次元のLUTの参照により、ユニット選択信号s0,s1,s2を選ぶ。
【0071】
図16(A)(B)のデータは、g0とg1との和が「3」以下である場合は、選択信号s0を「1」に、選択信号s1,s2信号をともに「0」とするように設定している。それ以外の場合、つまりg0とg1との和が「3」より大きい場合で、かつg0がg1以上の場合には選択信号s1が「1」となり、選択信号s0とs2が共に「0」となる。また、g0とg1の和が「3」より大きい場合で、かつg0がg1より小さい場合には、選択信号s2が「1」となり、選択信号s0とs1はともに「0」となる。
【0072】
この条件の設定は、次の場合を想定したものである。記録装置や印刷などで画像を形成する場合には、ブラックは目立ちやすいので、薄いグレーはシアン、マゼンタ、イエローのドットにより形成する(以下、この手法をプロセスブラックと呼ぶ)。そしてプロセスブラックで、ある程度グレーの濃度を上げてからブラックのドットを使用する。この記録方法によりブラックのドットを比較的目立ちにくくできる。
【0073】
またブラックのドットが目立って擬似階調処理結果の画像品位が低下する可能性があるのは、ブラックのドットデータが低い周波数で生成される場合である。よって、ブラックのドットを目立たなくするために、低い周波数のブラックデータは、ある程度以上のシアン、マゼンタ、イエローのデータと同時に使用される。
【0074】
本実施の形態では、シアンとマゼンタの入力がある程度以下の場合、つまり具体的には、g0とg1の和が「3」以下の場合には、ブラックのデータは常に「0」であることを想定して、シアンとマゼンタのドット配置の特性が優れた出力決定ユニット100の出力を採用することにした。またそれ以外の場合、つまりブラックの信号があり得る場合には、シアンデータ(色0)がマゼンタデータ(色1)より大きい場合には、マゼンタのドットデータとブラックのドットデータの配置を優先した方がブラックのドットデータが目立ちにくいという実験結果が得られているため、出力決定ユニット101の出力を使用する。更に、ブラックの信号があり得て、かつマゼンタデータ(色1)がシアンデータ(色0)より大きい場合には、シアンのドットデータとブラックのドットデータの配置を優先して、出力決定ユニット102の出力を使用する条件にした。
【0075】
[他の実施形態]
以上、実施の形態を詳述したが、本発明は、複数の機器から構成されるシステムに適用しても良いし、また、一つの機器からなる装置に適用しても良い。
【0076】
なお、本発明は、前述した実施形態の機能を実現するソフトウェアのプログラムを、システム或いは装置に直接或いは遠隔から供給し、そのシステム或いは装置のコンピュータが該供給されたプログラムコードを読み出して実行することによっても達成される場合を含む。その場合、プログラムの機能を有していれば、形態は、プログラムである必要はない。
【0077】
従って、本発明の機能処理をコンピュータで実現するために、該コンピュータにインストールされるプログラムコード自体も本発明を実現するものである。つまり、本発明はその機能処理を実現するためのコンピュータプログラム自体も含まれる。
【0078】
その場合、プログラムの機能を有していれば、オブジェクトコード、インタプリタにより実行されるプログラム、OSに供給するスクリプトデータ等、プログラムの形態を問わない。
【0079】
プログラムを供給するための記録媒体としては、例えば、フロッピー(登録商標)ディスク、ハードディスク、光ディスク、光磁気ディスク、MO、CD−ROM、CD−R、CD−RW、磁気テープ、不揮発性のメモリカード、ROM、DVD(DVD−ROM,DVD−R)などがある。
【0080】
その他、プログラムの供給方法としては、クライアントコンピュータのブラウザを用いてインターネットのホームページに接続し、該ホームページから本発明のコンピュータプログラムそのもの、もしくは圧縮され自動インストール機能を含むファイルをハードディスク等の記録媒体にダウンロードすることによっても供給できる。また、本発明のプログラムを構成するプログラムコードを複数のファイルに分割し、それぞれのファイルを異なるホームページからダウンロードすることによっても実現可能である。つまり、本発明の機能処理をコンピュータで実現するためのプログラムファイルを複数のユーザに対してダウンロードさせるWWWサーバも、本発明に含まれるものである。
【0081】
また、本発明のプログラムを暗号化してCD−ROM等の記憶媒体に格納してユーザに配布し、所定の条件をクリアしたユーザに対し、インターネットを介してホームページから暗号化を解く鍵情報をダウンロードさせ、その鍵情報を使用することにより暗号化されたプログラムを実行してコンピュータにインストールさせて実現することも可能である。
【0082】
また、コンピュータが、読み出したプログラムを実行することによって、前述した実施形態の機能が実現される他、そのプログラムの指示に基づき、コンピュータ上で稼動しているOSなどが、実際の処理の一部または全部を行ない、その処理によっても前述した実施形態の機能が実現され得る。
【0083】
さらに、記録媒体から読み出されたプログラムが、コンピュータに挿入された機能拡張ボードやコンピュータに接続された機能拡張ユニットに備わるメモリに書き込まれた後、そのプログラムの指示に基づき、その機能拡張ボードや機能拡張ユニットに備わるCPUなどが実際の処理の一部または全部を行ない、その処理によっても前述した実施形態の機能が実現される。
【0084】
[実施態様1] 3チャネル以上のカラー多値画像信号を入力し、各色に対しては擬似階調処理が終わった画素からの誤差信号を色毎に、入力したカラー多値画像信号にそれぞれ加算する複数の加算手段と、
前記複数の加算手段のそれぞれの加算結果を入力して各色毎の擬似階調出力を決定する出力決定手段と、
前記出力決定手段により決定された各色毎の擬似階調出力と前記複数の加算手段の色毎の加算結果とに基づいて着目画素における誤差を計算する誤差計算手段とを有し、
前記出力決定手段は、2チャネルの入力を持つ2次元LUTを複数回参照して前記擬似階調出力を決定することを特徴とする画像処理装置。
【0085】
[実施態様2] 前記3チャネル以上のうち2チャネルのカラー多値画像信号の和を、前記2次元LUTの一方のチャネルに入力して少なくとも1回前記2次元LUTを参照することを特徴とする実施態様1に記載の画像処理装置。
【0086】
[実施態様3] 前記複数の加算手段のそれぞれの加算結果に応じて前記出力決定手段から出力される各色毎の擬似階調出力を選択して出力する選択手段を更に有することを特徴とする実施態様1又は2に記載の画像処理装置。
【0087】
[実施態様4] 3チャネル以上のカラー多値画像信号を入力し、各色に対しては擬似階調処理が終わった画素からの誤差信号を色毎に、入力したカラー多値画像信号にそれぞれ加算する加算工程と、
前記加算工程で加算された各加算結果を入力して各色毎の擬似階調出力を決定する出力決定工程と、
前記出力決定工程で決定された各色毎の擬似階調出力と前記加算工程での色毎の加算結果とに基づいて着目画素における誤差を計算する誤差計算工程とを有し、
前記出力決定工程では、2チャネルの入力を持つ2次元LUTを複数回参照して前記擬似階調出力を決定することを特徴とする画像処理方法。
【0088】
[実施態様5] 前記3チャネル以上のうち2チャネルのカラー多値画像信号の和を、前記2次元LUTの一方のチャネルに入力して少なくとも1回前記2次元LUTを参照することを特徴とする実施態様4に記載の画像処理方法。
【0089】
[実施態様6] 前記加算工程におけるそれぞれの加算結果に応じて前記出力決定工程で出力される各色毎の擬似階調出力を選択して出力する選択工程を更に有することを特徴とする実施態様4又は5に記載の画像処理方法。
【0090】
以上説明したように本実施の形態によれば、3チャネルの入力について、LUTを用いて出力決定を行う擬似階調処理を行うに際して、2チャネル入力のLUT(2次元のLUT)を複数回参照して出力を決定する。これにより、3チャネル以上のLUTを使用して出力を決定する場合と比較して、LUTのデータ量を削減することができた。
【0091】
これにより、より少ない容量のLUTデータにより、3チャネル以上の入力に対してそれぞれの入力信号の関係を反映した擬似階調処理を行うことができる。更に、3色以上が重なり合う場合においても、良好な視覚特性が得られる擬似階調処理の出力結果を得ることができる。更に、LUTデータを変更することにより、容易に画像入力に対する出力特性を変更でき、汎用性が高い画像処理装置を実現することができた。
【0092】
【発明の効果】
以上説明したように本発明によれば、3色以上の画像信号を入力して誤差拡散を行うのにあたり、2つの2次元LUTを用いて、これら3色以上の疑似階調出力値を得ることにより、LUTのデータ量を削減できるという効果がある。
【図面の簡単な説明】
【図1】本発明の実施の形態に係る画像処理(誤差拡散処理)装置の構成を説明するブロック図である。
【図2】本発明の実施の形態1に係る出力決定部の構成を示すブロック図である。
【図3】本実施の形態に係る1次元LUTにおけるLUTデータの一例を示す図である。
【図4】図2のLUT24のLUTデータの一例を説明する図である。
【図5】図2のLUT23のLUTデータの一例を説明する図である。
【図6】本発明の実施の形態1に係る誤差計算部の構成を示すブロック図である。
【図7】本発明の実施の形態1に係る誤差計算部で使用するLUTデータの一例を示す図である。
【図8】本発明の実施の形態2に係る出力決定部における処理の流れを示すフローチャートである。
【図9】本発明の実施の形態3に係る出力決定部の構成を示すブロック図である。
【図10】本発明の実施の形態3に係る出力選択ユニットの構成を示すブロック図である。
【図11】本発明の実施の形態3に係る出力決定ユニット1(100)の構成を示すブロック図である。
【図12】本発明の実施の形態3に係る出力決定ユニット2(101)の構成を示すブロック図である。
【図13】本発明の実施の形態3に係る出力決定ユニット3(102)の構成を示すブロック図である。
【図14】出力決定ユニット100、101,102のLUT110,120,130のLUTデータ例を説明する図である。
【図15】出力決定ユニット100,101,102のLUT111,121,131のLUTデータ例を説明する図である。
【図16】本発明の実施の形態3における出力決定部で使用するLUTデータの一例を示す図である。[0001]
BACKGROUND OF THE INVENTION
The present invention relates to an image processing technique for obtaining binary data by performing pseudo gradation processing on multi-valued image data.
[0002]
[Prior art]
Conventionally, an error diffusion method is known as a pseudo halftone process for expressing multilevel data in binary (“An Adaptive Algorithm for Spatial Gray Scale” in society for Information Display 1975 Symposium Digest of Technical Papers, 1975, 36). . In this method, the pixel of interest is P, the density is v, the densities of the peripheral pixels P0, P1, P2, and P3 of the pixel of interest P are v0, v1, v2, and v3, respectively, and the threshold for binarization is T. In this case, the binarization error E in the target pixel P is distributed to the surrounding pixels P0, P1, P2, and P3 according to the weight coefficients W0, W1, W2, and W3 obtained empirically, so that the binary error is obtained macroscopically. In this method, the average density of the converted image is made equal to the density of the original image. At this time, if the output binary data is O,
If v ≧ T, O = 1, E = v−Vmax;
If v <T, O = 0, E = v−Vmin; (1)
(However, Vmax: Maximum density, Vmin: Minimum density)
v0 = v0 + E × W0; (2)
v1 = v1 + E × W1; (3)
v2 = v2 + E × W2; (4)
v3 = v3 + E × W3; (5)
Here, as examples of weighting factors, W0 = 7/16, W1 = 1/16, W2 = 5/16, and W3 = 3/16.
[0003]
When such a method is used to perform pseudo-halftone processing of multiple colors, for example, cyan, magenta, yellow, and black, which are used in color ink jet printers, etc., each color is processed using the above error diffusion method or the like. Had gone. For this reason, when one color is viewed, even if the visual characteristics are excellent, if two or more colors overlap, a good visual characteristic cannot always be obtained.
[0004]
In order to improve such a defect, for example, according to
[0005]
However, in these methods, when the output corresponding to the input pixel is determined, the output value is determined by a comparator or the like. For example, when the number of output gradations is changed, it is implemented by hardware. If the circuit is implemented by software, or if it is implemented by software, the program must be changed significantly.
[0006]
[Patent Document 1]
JP-A-8-279920
[Patent Document 2]
Japanese Patent Laid-Open No. 11-10918
[Problems to be solved by the invention]
In order to solve such a problem, an image signal of two or more colors obtained by adding error signals from a predetermined number of peripheral pixels as means for performing error diffusion by combining two or more colors and determining the output of the target pixel Has been proposed for determining the output value of an LUT. However, in such a method, when the number of input signal channels increases to 3 or more, the amount of data in the LUT increases. Further, when the number of gradations of multi-value data of each color is increased, or when the number of points per color of the LUT is increased in order to finely control the output characteristics, the data amount of the LUT is increased. Conversely, if the number of points for each color is too small, the output characteristics that can be set in the LUT will be rough.
[0007]
The present invention has been made in view of the above conventional example.Input an image signal that exceeds color2 for error diffusionUsing two two-dimensional LUTs, obtain pseudo gradation output values of these three colors or moreAccordingly, an object is to reduce the data amount of the LUT.
[0008]
[Means for Solving the Problems]
In order to achieve the above object, the image processing apparatus of the present invention comprises the following arrangement. That is,
At least first-color pixel data, second-color pixel data, and third-color pixel data, and first-color error data and second-color data from pixels that have already undergone pseudo-gradation processing Error data of the first color and error data of the third color are input, the error data of the first color is added to the pixel data of the first color, and the pixel data of the first color after the addition is output And adding the error data of the second color to the pixel data of the second color and outputting the pixel data of the second color after the addition, and adding the third error to the pixel data of the third color Adds data and outputs pixel data of third color after additionAdding means;
A first addition result obtained by adding the pixel data of the first color after addition output from the addition means and the pixel data of the second color after addition, and the addition output from the addition means A first two-dimensional LUT for inputting the subsequent pixel data of the third color and outputting the pseudo gradation output value and the selection signal of the third color; and the pixel data of the first color after the addition And a second two-dimensional LUT for inputting the pixel data of the second color after the addition and outputting the pseudo gradation output candidate value of the first color and the pseudo gradation output candidate value of the second color. The first addition result and the third pixel data after the addition are input to the first two-dimensional LUT, the selection signal is output, and the pseudo gradation output of the third color is output. A value is determined, and the pixel data of the first color after the addition and the previous two-dimensional LUT Based on the pseudo-tone output candidate value of the first color, the pseudo-tone output candidate value of the second color, and the selection signal output by inputting the pixel data of the second color after the addition. Output value determining means for determining the pseudo gradation output value of the first color and the pseudo gradation output value of the second color;
The first color pseudo gradation output value determined by the output value determination means, the second color pseudo gradation output value, and the third color pseudo gradation output value, and after the addition Error calculating means for calculating an error in the pixel of interest based on the pixel data of the first color of the second color, the pixel data of the second color after the addition, and the pixel data of the third color after the addition. And
The output value determining means converts the pseudo gradation output candidate value of the first color and the pseudo gradation output candidate value of the second color into the pseudo gradation of the first color according to the selection signal. The output value and the pseudo tone output value of the second color are selected, or the pseudo tone output value of the first color and the pseudo tone output value of the second color are each set to 0. Thus, the pseudo gradation output value of the first color and the pseudo gradation output value of the second color are determined.It is characterized by that.
[0009]
DETAILED DESCRIPTION OF THE INVENTION
Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.
[0010]
[Embodiment 1]
FIG. 1 is a block diagram illustrating a configuration of an image processing apparatus according to
[0011]
In the figure, each of I0, I1, and I2 represents pixel data of an input image of color 0 (for example, cyan), color 1 (for example, magenta), and color 2 (for example, black), and each is 8-bit multi-value data. It is. These pixel data are input to adders indicated by 10, 11 and 12, respectively. In these
[0012]
The outputs E0, E1, and E2 of the
[0013]
In the present embodiment, an example has been described in which the outputs E0, E1, and E2 of the
[0014]
With the above configuration, processing for one input data is performed. Therefore, the above processing is repeated by shifting one pixel at a time in the image direction, one line processing is performed, and then the same processing is repeated by shifting one raster at a time. As a result, pseudo gradation processing can be performed on the entire image.
[0015]
[Output Determination Unit 16]
The
[0016]
FIG. 2 is a block diagram for explaining the
[0017]
First, when the outputs I′0, I′1, and I′2 from the
[0018]
FIG. 3 is a diagram showing an example of data in each of these one-
[0019]
In these LUTs, the input value can take "-128" to "383", and the output signals g0, g1, and g2 are each composed of 3 bits. When the input value is less than that including “36”, the output value is “0”. When the input value is “37” to “73”, the output value is “1” and the input value is “74” to “109”. The output value is “2”, the input values “110” to “146” are the output value “3”, the input values “147” to “182” are the output value “4”, and the input value “ The output value is “5” in the case of “183” to “219”, the output value is “6” in the case of the input value “220” to “254”, and the output value is in the case of the input value “255” to “383”. Each is set to “7”.
[0020]
In FIG. 2, gp obtained by adding the signals g0 and g1 by the
[0021]
4A and 4B are diagrams showing an example of data in the
[0022]
In FIG. 4A, gp on the horizontal axis indicates the addition result (4 bits) of g0 and g1, and a large amount of data (0-14) is prepared for g2 (0-7) on the vertical axis. Yes. The signal O2 output from the
[0023]
If the value of s is “0”, the output of both
[0024]
In FIG. 2, the
[0025]
5A and 5B are diagrams for explaining data in the
[0026]
In the present embodiment, it is intended to determine whether or not to generate dot data for at least one of
[0027]
In this way, the
[0028]
[
The outputs O0, O1, and O2 of the
[0029]
FIG. 6 is a block diagram showing the configuration of each of these
[0030]
The
[0031]
In the figure,
[0032]
The data of this
[0033]
In FIG. 7, each of O′0, O′1, and O′2 represents each output O0, O1, and O2 of the output determination unit 16 (in the present embodiment, a value of “0” or “1”). This is a value converted to the input signal level (0 to 255).
[0034]
O'0, O'1, and O'2 are subtracted from the outputs I'0, I'1, and I'2 from the
E0 = I'0-O'0
E1 = I'1-O'1
E2 = I'2-O'2
It is.
[0035]
The outputs E0, E1, and E2 of the
[0036]
In FIG. 4, an area where the generated dot is not “0” and the level of the image signal is relatively low, that is, an area having data that is not a black circle or a white circle in FIG. Data for at least one dot of
[0037]
Thus, it becomes possible to process the input pixel data having a low dot density under the condition that the dot data is difficult to overlap for each color, and it is possible to perform a pseudo gradation process with excellent visual characteristics.
[0038]
In the present embodiment, as described above, by using the two-dimensional LUT data for the three-channel input signal, the necessary data amount can be reduced as compared with the case of using the three-dimensional LUT. I was able to.
[0039]
In this embodiment, an example in which the number of grids of the LUT is relatively small has been described for ease of explanation. However, as the grid interval is narrower than the input signal range, that is, as the number of grids increases, each input is increased. The output characteristics for the level can be set smoothly or finely. As the number of grids increases, the amount of data required for a three-dimensional or more LUT increases dramatically. Therefore, the data reduction effect according to this embodiment is also increased.
[0040]
Although the binary example has been described in the present embodiment, the present invention is not limited to the above-described configuration. If the LUT data is changed, pseudo gradation processing with three or more values or pseudo gradation processing with different maximum levels for each color can be performed.
[0041]
The gist of this embodiment is to perform pseudo gradation processing that reflects the relationship of each input signal by using a two-dimensional LUT once or more than once for input signals of three or more channels. It is possible to provide a highly versatile image processing apparatus that can cope with processing under different conditions by changing LUT data.
[0042]
[Embodiment 2]
In the first embodiment, the
[0043]
On the other hand, in the second embodiment, the algorithm for determining the output value is basically the same as in the first embodiment, but an example in which the processing flow is slightly different will be shown.
[0044]
FIG. 8 is a flowchart showing the flow of processing in the
[0045]
Also in the second embodiment, as in the first embodiment, first, in step S1, the input signals (I0, I1, I2) of the respective colors to the
[0046]
In the second embodiment, in the subsequent step S4, it is determined whether or not the
[0047]
In this example, in order to perform pseudo gradation processing that reflects the relationship between the input levels for three-channel inputs, the number of times a two-dimensional LUT is referenced for one pixel may be one time depending on the combination of input data. Shows good things.
[0048]
[Embodiment 3]
In the third embodiment, an example in which a condition for referring to an LUT for determining an output value is changed by a combination of input data will be described. The third embodiment is the same as the first embodiment except for the
[0049]
FIG. 9 is a block diagram for explaining the
[0050]
The third embodiment shows an example in which cyan image data is handled as
[0051]
Thereafter, the input signals g0, g1, and g2 corresponding to the grid of the LUT are sent to the
[0052]
The unit selection
[0053]
FIG. 10 is a block diagram showing the configuration of each of the output selection units 80-82.
[0054]
Each of these output selection units includes signals t0-0 to t0-2, t1-0 to t1-2, t2-0 to t2-2 sent from the three
[0055]
[Description of
The three
[0056]
Block diagrams of the
[0057]
FIG. 11 is a block diagram illustrating the configuration of the
[0058]
Of the input signals g0, g1, and g2 of each color converted to correspond to the grid of the LUT, the
[0059]
In the third embodiment, the same data is used in the
[0060]
Examples of data used in the
[0061]
In FIG. 14A, the horizontal axis and the vertical axis use different signals as inputs depending on the respective output determination units, and are indicated by input1 and input2 (gp). Of the three input signals g0, g1, and g2, a signal (gp) obtained by summing two signals is used for the horizontal axis (input1), and a signal of a color that is not summed among the three signals is represented by the vertical axis (input2). use. This data is the same as the data used for the
[0062]
15A and 15B show data examples used in the
[0063]
In FIG. 15A, two inputs are assigned to the horizontal axis and the vertical axis. This data is different from that used in the
[0064]
(Effect of switching output decision unit)
In the third embodiment, as described above, the LUT data shown in FIG. 14 is the same as that in the first embodiment, but the LUT data shown in FIG. 15 is an input signal to two LUTs. When “3” or less is added, the output is “0” for both colors, which is different from the first embodiment.
[0065]
When such data is used, when both the input levels to the LUT in FIG. 15 are small, the dot data of the color corresponding to input1 and input2 is not generated. When both input1 and input2 are small, there is an advantage that the data of dots of these two kinds of colors can be arranged more orderly for the colors of input1 and input2 than the processing of the first embodiment. On the other hand, when data with another color (the color whose output is determined by the
[0066]
That is, when the
[0067]
Similarly, when the
[0068]
For each output determination unit having such characteristics, it is possible to select and use an output determination unit that can obtain a pseudo gradation processing result with excellent visual characteristics by combining input signals of each color. It is the purpose of the form.
[0069]
[Unit selection information acquisition unit 73]
FIGS. 16A and 16B are diagrams illustrating an example of data of a lookup table used by the unit selection
[0070]
According to the block diagram (FIG. 9) of the
[0071]
In the data of FIGS. 16A and 16B, when the sum of g0 and g1 is “3” or less, the selection signal s0 is set to “1” and the selection signals s1 and s2 are both set to “0”. It is set as follows. In other cases, that is, when the sum of g0 and g1 is greater than “3” and g0 is greater than or equal to g1, the selection signal s1 becomes “1”, and the selection signals s0 and s2 both become “0”. Become. When the sum of g0 and g1 is larger than “3” and g0 is smaller than g1, the selection signal s2 is “1”, and the selection signals s0 and s1 are both “0”.
[0072]
The setting of this condition assumes the following case. When an image is formed by a recording apparatus or printing, black is conspicuous, and light gray is formed by dots of cyan, magenta, and yellow (this method is hereinafter referred to as process black). Then, with process black, after increasing the gray density to some extent, black dots are used. This recording method makes black dots relatively inconspicuous.
[0073]
The black dots are conspicuous and the image quality of the pseudo gradation processing result may be lowered when the black dot data is generated at a low frequency. Therefore, in order to make black dots inconspicuous, low-frequency black data is used simultaneously with a certain amount of cyan, magenta, and yellow data.
[0074]
In this embodiment, when the input of cyan and magenta is below a certain level, that is, when the sum of g0 and g1 is “3” or less, the black data is always “0”. Assuming that the output of the
[0075]
[Other Embodiments]
Although the embodiment has been described in detail above, the present invention may be applied to a system constituted by a plurality of devices, or may be applied to an apparatus constituted by one device.
[0076]
In the present invention, a software program that realizes the functions of the above-described embodiments is directly or remotely supplied to a system or apparatus, and the computer of the system or apparatus reads and executes the supplied program code. Including the case where it is also achieved by. In that case, as long as it has the function of a program, the form does not need to be a program.
[0077]
Accordingly, since the functions of the present invention are implemented by computer, the program code installed in the computer also implements the present invention. In other words, the present invention includes a computer program itself for realizing the function processing.
[0078]
In this case, the program may be in any form as long as it has a program function, such as an object code, a program executed by an interpreter, or script data supplied to the OS.
[0079]
As a recording medium for supplying the program, for example, floppy (registered trademark) disk, hard disk, optical disk, magneto-optical disk, MO, CD-ROM, CD-R, CD-RW, magnetic tape, nonvolatile memory card ROM, DVD (DVD-ROM, DVD-R) and the like.
[0080]
As another program supply method, a client computer browser is used to connect to an Internet homepage, and the computer program of the present invention itself or a compressed file including an automatic installation function is downloaded from the homepage to a recording medium such as a hard disk. Can also be supplied. It can also be realized by dividing the program code constituting the program of the present invention into a plurality of files and downloading each file from a different homepage. That is, a WWW server that allows a plurality of users to download a program file for realizing the functional processing of the present invention on a computer is also included in the present invention.
[0081]
In addition, the program of the present invention is encrypted, stored in a storage medium such as a CD-ROM, distributed to users, and key information for decryption is downloaded from a homepage via the Internet to users who have cleared predetermined conditions. It is also possible to execute the encrypted program by using the key information and install the program on a computer.
[0082]
In addition to the functions of the above-described embodiments being realized by the computer executing the read program, the OS running on the computer based on the instruction of the program is a part of the actual processing. Alternatively, the functions of the above-described embodiment can be realized by performing all of them and performing the processing.
[0083]
Furthermore, after the program read from the recording medium is written in a memory provided in a function expansion board inserted into the computer or a function expansion unit connected to the computer, the function expansion board or The CPU or the like provided in the function expansion unit performs part or all of the actual processing, and the functions of the above-described embodiments are realized by the processing.
[0084]
[Embodiment 1] A color multilevel image signal of 3 channels or more is input, and for each color, an error signal from a pixel for which pseudo gradation processing has been completed is added to the input color multilevel image signal for each color. A plurality of adding means to
An output determining means for inputting each addition result of the plurality of adding means and determining a pseudo gradation output for each color;
Error calculation means for calculating an error in the pixel of interest based on the pseudo gradation output for each color determined by the output determination means and the addition result for each color of the plurality of addition means;
The image processing apparatus, wherein the output determining means determines the pseudo gradation output by referring to a two-dimensional LUT having two-channel inputs a plurality of times.
[0085]
[Embodiment 2] The sum of color multi-value image signals of two channels among the three or more channels is input to one channel of the two-dimensional LUT, and the two-dimensional LUT is referred to at least once. The image processing apparatus according to the first embodiment.
[0086]
[Embodiment 3] An implementation characterized by further comprising selection means for selecting and outputting a pseudo gradation output for each color output from the output determination means in accordance with the addition results of the plurality of addition means. The image processing apparatus according to
[0087]
[Embodiment 4] A color multilevel image signal of 3 channels or more is input, and for each color, an error signal from a pixel for which pseudo gradation processing has been completed is added to the input color multilevel image signal for each color. An adding step to
An output determination step of inputting each addition result added in the addition step and determining a pseudo gradation output for each color;
An error calculation step of calculating an error in the pixel of interest based on the pseudo gradation output for each color determined in the output determination step and the addition result for each color in the addition step,
In the output determination step, the pseudo gradation output is determined by referring to a two-dimensional LUT having two-channel inputs a plurality of times.
[0088]
[Embodiment 5] The sum of two or more color multilevel image signals of the three or more channels is input to one channel of the two-dimensional LUT and the two-dimensional LUT is referred to at least once. The image processing method according to the fourth embodiment.
[0089]
[Embodiment 6]
[0090]
As described above, according to the present embodiment, when performing pseudo gradation processing for determining output using an LUT for three-channel input, the two-channel input LUT (two-dimensional LUT) is referred to a plurality of times. To determine the output. As a result, the data amount of the LUT can be reduced as compared with the case where the output is determined using the LUT having three or more channels.
[0091]
As a result, pseudo gradation processing that reflects the relationship of each input signal can be performed for inputs of three or more channels with a smaller amount of LUT data. Furthermore, even when three or more colors overlap, it is possible to obtain an output result of pseudo gradation processing that provides good visual characteristics. Furthermore, by changing the LUT data, the output characteristics for image input can be easily changed, and an image processing apparatus with high versatility can be realized.
[0092]
【The invention's effect】
As described above, according to the present invention, 3Input an image signal that exceeds color2 for error diffusionUsing two two-dimensional LUTs, obtain pseudo gradation output values of these three colors or moreThe amount of data in the LUTTheSharpeningWith a decreaseThere is an effect that can.
[Brief description of the drawings]
FIG. 1 is a block diagram illustrating a configuration of an image processing (error diffusion processing) apparatus according to an embodiment of the present invention.
FIG. 2 is a block diagram showing a configuration of an output determination unit according to
FIG. 3 is a diagram showing an example of LUT data in the one-dimensional LUT according to the present embodiment.
4 is a diagram for explaining an example of LUT data of the
FIG. 5 is a diagram for explaining an example of LUT data of the
FIG. 6 is a block diagram showing a configuration of an error calculation unit according to the first embodiment of the present invention.
FIG. 7 is a diagram showing an example of LUT data used in the error calculation unit according to the first embodiment of the present invention.
FIG. 8 is a flowchart showing a flow of processing in an output determining unit according to
FIG. 9 is a block diagram showing a configuration of an output determining unit according to
FIG. 10 is a block diagram showing a configuration of an output selection unit according to
FIG. 11 is a block diagram showing a configuration of an output determination unit 1 (100) according to
FIG. 12 is a block diagram showing a configuration of an output determination unit 2 (101) according to
FIG. 13 is a block diagram showing a configuration of an output determination unit 3 (102) according to the third embodiment of the present invention.
FIG. 14 is a diagram illustrating an example of LUT data of
15 is a diagram illustrating an example of LUT data of
FIG. 16 is a diagram showing an example of LUT data used in the output determination unit according to the third embodiment of the present invention.
Claims (4)
前記加算手段から出力された前記加算後の第1の色の画素データと前記加算後の第2の色の画素データとを加算した第1の加算結果、及び前記加算手段から出力された前記加算後の第3の色の画素データとを入力して前記第3の色の疑似階調出力値及び選択信号を出力する第1の2次元LUTと、前記加算後の第1の色の画素データ及び前記加算後の第2の色の画素データを入力して前記第1の色の疑似階調出力候補値及び前記第2の色の疑似階調出力候補値を出力する第2の2次元LUTとを有し、前記第1の2次元LUTに前記第1の加算結果及び前記加算後の第3の画素データを入力して前記選択信号を出力させるとともに前記第3の色の疑似階調出力値を決定し、前記第2の2次元LUTに前記加算後の第1の色の画素データ及び前記加算後の第2の色の画素データを入力して出力される前記第1の色の疑似階調出力候補値及び前記第2の色の疑似階調出力候補値と前記選択信号とに基づいて、前記第1の色の疑似階調出力値及び前記第2の色の疑似階調出力値を決定する出力値決定手段と、
前記出力値決定手段により決定された前記第1の色の疑似階調出力値、前記第2の色の疑似階調出力値、及び前記第3の色の疑似階調出力値と、前記加算後の第1の色の画素データ、前記加算後の第2の色の画素データ、及び前記加算後の第3の色の画素データとに基づいて着目画素における誤差を計算する誤差計算手段とを有し、
前記出力値決定手段は、前記選択信号に応じて、前記第1の色の疑似階調出力候補値及び前記第2の色の疑似階調出力候補値をそれぞれ前記第1の色の疑似階調出力値及び前記第2の色の疑似階調出力値とするか、前記第1の色の疑似階調出力値及び前記第2の色の疑似階調出力値をそれぞれ0とするかを選択することにより前記第1の色の疑似階調出力値及び前記第2の色の疑似階調出力値を決定することを特徴とする画像処理装置。 At least first-color pixel data, second-color pixel data, and third-color pixel data, and first-color error data and second-color data from pixels that have already undergone pseudo-gradation processing Error data of the first color and error data of the third color are input, the error data of the first color is added to the pixel data of the first color, and the pixel data of the first color after the addition is output And adding the error data of the second color to the pixel data of the second color and outputting the pixel data of the second color after the addition, and adding the third error to the pixel data of the third color Adding means for adding data and outputting pixel data of the third color after the addition;
A first addition result obtained by adding the pixel data of the first color after addition output from the addition means and the pixel data of the second color after addition, and the addition output from the addition means A first two-dimensional LUT for inputting the subsequent pixel data of the third color and outputting the pseudo gradation output value and the selection signal of the third color; and the pixel data of the first color after the addition And a second two-dimensional LUT for inputting the pixel data of the second color after the addition and outputting the pseudo gradation output candidate value of the first color and the pseudo gradation output candidate value of the second color. The first addition result and the third pixel data after the addition are input to the first two-dimensional LUT, the selection signal is output, and the pseudo gradation output of the third color is output. A value is determined, and the pixel data of the first color after the addition and the previous two-dimensional LUT Based on the pseudo-tone output candidate value of the first color, the pseudo-tone output candidate value of the second color, and the selection signal output by inputting the pixel data of the second color after the addition. Output value determining means for determining the pseudo gradation output value of the first color and the pseudo gradation output value of the second color;
The first color pseudo gradation output value determined by the output value determination means, the second color pseudo gradation output value, and the third color pseudo gradation output value, and after the addition Error calculating means for calculating an error in the pixel of interest based on the pixel data of the first color of the second color, the pixel data of the second color after the addition, and the pixel data of the third color after the addition. And
The output value determining means converts the pseudo gradation output candidate value of the first color and the pseudo gradation output candidate value of the second color into the pseudo gradation of the first color according to the selection signal. The output value and the pseudo tone output value of the second color are selected, or the pseudo tone output value of the first color and the pseudo tone output value of the second color are each set to 0. Thus, the pseudo gradation output value of the first color and the pseudo gradation output value of the second color are determined .
前記加算工程で出力された前記加算後の第1の色の画素データと前記加算後の第2の色の画素データとを加算した第1の加算結果、及び前記加算工程で出力された前記加算後の第3の色の画素データとを入力して前記第3の色の疑似階調出力値及び選択信号を出力する第1の2次元LUTに前記第1の加算結果及び前記加算後の第3の画素データを入力して前記選択信号を出力させるとともに前記第3の色の疑似階調出力値を決定し、
前記加算後の第1の色の画素データ及び前記加算後の第2の色の画素データを入力して前記第1の色の疑似階調出力候補値及び前記第2の色の疑似階調出力候補値を出力する第2の2次元LUTに前記加算後の第1の色の画素データ及び前記加算後の第2の色の画素データを入力して出力される前記第1の色の疑似階調出力候補値及び前記第2の色の疑似 階調出力候補値と前記選択信号とに基づいて、前記第1の色の疑似階調出力値及び前記第2の色の疑似階調出力値を決定する出力値決定工程と、
前記出力値決定工程で決定された前記第1の色の疑似階調出力値、前記第2の色の疑似階調出力値、及び前記第3の色の疑似階調出力値と、前記加算後の第1の色の画素データ、前記加算後の第2の色の画素データ、及び前記加算後の第3の色の画素データとに基づいて着目画素における誤差を計算する誤差計算工程とを有し、
前記出力値決定工程は、前記選択信号に応じて、前記第1の色の疑似階調出力候補値及び前記第2の色の疑似階調出力候補値をそれぞれ前記第1の色の疑似階調出力値及び前記第2の色の疑似階調出力値とするか、前記第1の色の疑似階調出力値及び前記第2の色の疑似階調出力値をそれぞれ0とするかを選択することにより前記第1の色の疑似階調出力値及び前記第2の色の疑似階調出力値を決定することを特徴とする画像処理方法。 At least first-color pixel data, second-color pixel data, and third-color pixel data, and first-color error data and second-color data from pixels that have already undergone pseudo-gradation processing Error data of the first color and error data of the third color are input, the error data of the first color is added to the pixel data of the first color, and the pixel data of the first color after the addition is output And adding the error data of the second color to the pixel data of the second color and outputting the pixel data of the second color after the addition, and adding the third error to the pixel data of the third color An adding step of adding data and outputting pixel data of the third color after the addition;
The first addition result obtained by adding the pixel data of the first color after the addition output in the addition step and the pixel data of the second color after the addition, and the addition output in the addition step The first addition result and the post-addition second data are input to a first two-dimensional LUT that inputs pixel data of the third color after that and outputs a pseudo gradation output value and a selection signal of the third color. 3 pixel data is input and the selection signal is output, and the pseudo gradation output value of the third color is determined.
The first color pixel data after the addition and the pixel data of the second color after the addition are input, and the pseudo gradation output candidate value of the first color and the pseudo gradation output of the second color are input. The pseudo color of the first color that is output by inputting the pixel data of the first color after the addition and the pixel data of the second color after the addition to the second two-dimensional LUT that outputs the candidate value. Based on the tone output candidate value, the pseudo tone output candidate value of the second color, and the selection signal, the pseudo tone output value of the first color and the pseudo tone output value of the second color are obtained. An output value determination step to be determined;
The first color pseudo gradation output value determined in the output value determination step, the second color pseudo gradation output value, and the third color pseudo gradation output value, and after the addition An error calculating step of calculating an error in the pixel of interest based on the pixel data of the first color, the pixel data of the second color after the addition, and the pixel data of the third color after the addition. And
In the output value determining step, the pseudo gradation output candidate value of the first color and the pseudo gradation output candidate value of the second color are respectively converted into the pseudo gradation of the first color according to the selection signal. The output value and the pseudo tone output value of the second color are selected, or the pseudo tone output value of the first color and the pseudo tone output value of the second color are each set to 0. Thus, the pseudo gradation output value of the first color and the pseudo gradation output value of the second color are determined .
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2003015228A JP4208583B2 (en) | 2003-01-23 | 2003-01-23 | Image processing apparatus and method and program thereof |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2003015228A JP4208583B2 (en) | 2003-01-23 | 2003-01-23 | Image processing apparatus and method and program thereof |
Publications (3)
| Publication Number | Publication Date |
|---|---|
| JP2004229010A JP2004229010A (en) | 2004-08-12 |
| JP2004229010A5 JP2004229010A5 (en) | 2006-03-16 |
| JP4208583B2 true JP4208583B2 (en) | 2009-01-14 |
Family
ID=32903043
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2003015228A Expired - Fee Related JP4208583B2 (en) | 2003-01-23 | 2003-01-23 | Image processing apparatus and method and program thereof |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP4208583B2 (en) |
-
2003
- 2003-01-23 JP JP2003015228A patent/JP4208583B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JP2004229010A (en) | 2004-08-12 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5353127A (en) | Method for quantization gray level pixel data with extended distribution set | |
| US5521989A (en) | Balanced error diffusion system | |
| JP4533218B2 (en) | Image processing apparatus, image processing method, and image processing program | |
| US6373990B1 (en) | Image processing utilizing luminance-density conversion | |
| JPH05308514A (en) | Method for quantizing pixel value | |
| JP4243854B2 (en) | Image processing apparatus, image processing method, image processing program, and storage medium | |
| JPH10271331A (en) | Image processing method and device therefor | |
| JP2003348347A (en) | Image processing method and image processing apparatus | |
| US5805724A (en) | Method and system for hybrid error diffusion processing of image information using dynamic screens based on brightness/darkness settings | |
| US7889394B2 (en) | Image processing apparatus and method | |
| JPH10112801A (en) | Input image processing method | |
| JPH1084478A (en) | Input image conversion method and pixel value quantization method | |
| US6233360B1 (en) | Method and system for hybrid error diffusion processing of image information using adaptive white and black reference values | |
| JPH1070659A (en) | Error spread method and system | |
| JPH1070660A (en) | Error spread method and error spread system | |
| JPH1070661A (en) | Error spread method and error spread system | |
| EP0664643B1 (en) | Image processing method and apparatus | |
| JP4208583B2 (en) | Image processing apparatus and method and program thereof | |
| JP2000022951A (en) | Image processing method and apparatus | |
| JP2001203890A (en) | Image processing method and noise pattern generation method for error diffusion | |
| JP2003069819A (en) | Image processing apparatus and image processing method | |
| US20040174566A1 (en) | Method and apparatus for processing image | |
| JP3287717B2 (en) | Image processing device | |
| JP3870056B2 (en) | Image processing apparatus and method, computer program, and computer-readable storage medium | |
| JP2851662B2 (en) | Image processing device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20060123 |
|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20060123 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20070903 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20080314 |
|
| A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20080513 |
|
| 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: 20081003 |
|
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20081021 |
|
| 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: 20111031 Year of fee payment: 3 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20111031 Year of fee payment: 3 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20121031 Year of fee payment: 4 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20131031 Year of fee payment: 5 |
|
| LAPS | Cancellation because of no payment of annual fees |