JP2004112696A - Image processing device and method therefor - Google Patents

Image processing device and method therefor Download PDF

Info

Publication number
JP2004112696A
JP2004112696A JP2002275828A JP2002275828A JP2004112696A JP 2004112696 A JP2004112696 A JP 2004112696A JP 2002275828 A JP2002275828 A JP 2002275828A JP 2002275828 A JP2002275828 A JP 2002275828A JP 2004112696 A JP2004112696 A JP 2004112696A
Authority
JP
Japan
Prior art keywords
value
color
threshold
error
quantization
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.)
Granted
Application number
JP2002275828A
Other languages
Japanese (ja)
Other versions
JP4280473B2 (en
Inventor
Toshinori Igari
猪狩 俊紀
Yukihisa Ota
太田 享寿
Hitoshi Nishigori
錦織 均
Naoji Otsuka
大塚 尚次
Shohei Tsutsumi
堤 正平
Osamu Iwasaki
岩崎 督
Makoto Torigoe
鳥越 真
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP2002275828A priority Critical patent/JP4280473B2/en
Publication of JP2004112696A publication Critical patent/JP2004112696A/en
Application granted granted Critical
Publication of JP4280473B2 publication Critical patent/JP4280473B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To prevent inversion of color component ratio before and after quantization in quantizing processing of a multi-level color image. <P>SOLUTION: When quantizing the color image, depending on an input pixel value, threshold is varied so as to make average quantization error cancelled, using a varied threshold table 202. In the varied threshold table 202, the average value of the average quantization error for each color component, when all the values in the varied threshold table set to zeroes are registered as indices for the sum of each color component. The varied threshold table 202 outputs the registered value, depending on the sum of magenta and cyan to be input, to which a random noise is added properly. This resultant value is added to each color component of the pixel after error diffusion, and quantization is performed. <P>COPYRIGHT: (C)2004,JPO

Description

【0001】
【発明の属する技術分野】
本発明は画像処理方法及びその装置に関し、特に入力画像濃度と出力画像濃度等の差を誤差拡散法により保存しつつ、入力データを2値又は多値データに量子化処理する画像処理に関するものである。
【0002】
【従来の技術】
従来、多値データを2値で表現する疑似中間調処理として誤差拡散法が知られている(非特許文献1参照)。この方法は、着目画素をP、その濃度をv、P点の周辺画素P0、P1、P2、P3の濃度をそれぞれv0、v1、v2、v3、2値化のための閾値をTとすると、着目点Pにおける2値化誤差Eを周辺画素P0、P1、P2、P3に経験的に求めた重み係数W0、W1、W2、W3で振り分けてマクロ的に平均濃度を元画像の濃度と等しくする方法である。このとき、出力2値データをoとすると
v≧T ならば o=1,E=v−Vmax; (式1)
v<T ならば o=0,E=v−Vmin;
(ただし、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】
この欠点を改良するために、2色以上を組み合わせて誤差拡散法を用いることにより、2色以上が重なり合う場合においても良好な視覚特性の得られる擬似中間調処理方法が開示されている(特許文献1および特許文献2参照)。しかし、これらの方法では2値化のための閾値は各色固定であり、色ごとに閾値が異なる場合については対応できない。
【0005】
一方、各色の量子化結果を予め量子化値テーブルに設定し、着目画素における各色の入力画素値によって上記量子化値テーブルを参照して各色の量子化結果を得る方法が知られている。この方法によれば量子化値テーブル(ルックアップテーブル)に設定するデータにより、量子化レベルの数や閾値レベルを設定することを可能にしつつ、2色以上を組み合わせた誤差拡散法を行うことができる。
【0006】
一方、拡散係数を固定とする誤差拡散法では、ハイライト及びシャドウ部においてドットが均一に分散されず、鎖状に連なって発生するなどの問題点がある。これに対し、入力階調に応じて異なる拡散係数を用いる誤差拡散法が提案されている(特許文献3参照)。この方法では、ハイライト及びシャドウにおける第一の拡散係数と、中間階調における第二の拡散係数を定義し、ハイライトから中間階調、及び中間階調からシャドウへの領域は、この二つの拡散係数を線形補間したものを用いている。
【0007】
また、誤差拡散法を用いた従来の画像処理装置では、低濃度領域の立ち上り部におけるドット生成が大幅に遅延するという問題があった。さらに、特定の入力階調においては、出力二値画像に規則的パターンが発生し、それが画像の質を低下させることがあった。上記問題点を解決するため、多値画像データの階調値に基づいて閾値を設定する誤差拡散法が提案されている(特許文献4参照)。この方法を概説すると、多階調画像データを誤差拡散法又は平均誤差最小法を用いて第1階調値及び第2階調値に変換する画像処理装置において、注目画素の多階調画像データの階調値に基づいて基準閾値を設定し、さらにその基準閾値に乱数値を加えて二値化のための閾値を設定するものである。この方法によれば、注目画素の多階調画像データの階調値に応じて閾値を最適化することにより、上記ドット生成遅延を解消し、更に、注目画素の階調値に応じて閾値にノイズを印加することにより、上記規則的パターンの発生を防止している。
【0008】
また、拡散係数の補正や閾値の補正におけるパラメータを、入力値に応じて選択することにより、ドットの配置の均一化や、低濃度領域の位置上がり部におけるドット生成の遅延の回避をさらに高精度に行う手法が、特願2001−295127号に提案されている。
【0009】
さらに、入力値に応じた拡散係数や閾値の補正処理と、2色以上を組み合わせて誤差拡散法を同時に行う手法が行われている。例えば、シアン・マゼンタの8ビット多値画像データを入力し、量子化処理により2値データを出力する場合のブロック図を図8に示す。尚、本文中・図中での文字列に含まれる「X」は、色成分を表す文字(シアンについてはC,マゼンタについてはM)すべてを代表する。例えばinValXはinValCおよびinValMを示す。「=」は右辺の内容を左辺に代入する事を表す。
【0010】
図において、inValC,inValMはそれぞれ不図示の入力画像から送られたシアン・マゼンタの入力画素値であり、加算装置801,802と誤差計算装置803,804と閾値変動量設定装置805,806へそれぞれ入力される。加算装置801,802では入力画素値inValC,inValMと誤差計算装置803,804から出力された量子化済みの周辺画素からの誤差errC,errMをそれぞれ加算して得られたlValueC,lValueMをそれぞれ誤差計算装置803,804、出力値設定装置807に出力する。
【0011】
閾値変動量設定装置805,806は、入力画素値inValXを基に、量子化閾値を変動させる閾値変動量flactThXを出力する。出力値設定装置807は、誤差拡散後の画素値lValueXを、閾値変動量flactThXにより変動させられた閾値と比較して、出力画素値binDataXを出力する。
【0012】
図9は閾値変動量設定装置805,806の構成を示すブロック図である。変動閾値テーブル901はinValXの値により参照され、その値に対応して登録された基準変動量vthXを加算装置903に出力する。変動域値テーブルの内容は予め静的に設定されている。基準変動量は、入力値が閾値より遠い程、ドットの発生がしにくくなるために、閾値の変動量が大きくなるように設定されている。ドットの生成を遅延させないためである。
【0013】
ノイズマトリクス902は入力画素の座標を基に作成されたアドレスによって参照され、アドレスに対応するノイズ値noiseXを加算装置に出力する。ノイズは誤差拡散処理により表れるドット配列の規則性を小さくするために用いられる値であり、ノイズマトリクスの内容は、画素値ごとに予め与えられている。ノイズは、例えば、全くランダムな値が与えられたり、あるいは、階調レベルごとに決定されている。
【0014】
加算装置903は、基準変動量vthXとノイズnoiseXとをそれぞれ加算して閾値変動量flactThXを出力値設定装置807に出力する。
【0015】
図10は出力設定装置807の構成を説明するブロック図である。減算装置1001,1002はlValueC,lValueMから、閾値変動量設定装置805,806からの出力flactThC,flactThMをそれぞれ減算したlValueC’,lValueM’を出力値テーブル1003に出力する。
【0016】
図7は出力値テーブル1003を示す図である。lValueC’,lValueM’によって出力値テーブル1003を参照し、量子化値binDataC,binDataMを出力する。尚、各領域の値は(binDataC,binDataM)を示している。出力値テーブル1003は、マゼンタとシアンの画素値の合計値が128以下の第1の領域と、合計値が255+128より大きい第2の領域と、合計値が128より大きく、かつ(255+128)以下で、かつマゼンタの画素値がシアンの画素値以上となる第3の領域と、合計値が128より大きく、かつ(255+128)以下で、かつマゼンタの画素値がシアンの画素値より小さい第4の領域とに分割されている。そして、これら4つの領域に対して、出力値として、順に(0,0),(1,1),(0,1),(1,0)が登録されている。なお、ここで領域の境界上の値は何れの領域に属してもよい。
【0017】
例えば、図7のように画素値lValueC’,lValueM’によって座標702(図の白丸)が参照された場合、binDataC,binDataMとしてそれぞれ0,1を出力する。尚、座標701は閾値変動前のlValueC,lValueMで出力値テーブル1003を参照した時の座標である。基準変動値は階調レベルごとの平均量子化誤差の値が設定されていることから、変動値の加算によって各色成分の値は中央値に近づく。なお、閾値変動量は閾値を変動させず、画素値を変動させる。画素値を閾値との関係は相対的なものだからである。
【0018】
図10において、出力値binDataC,binDataMはそれぞれ量子化結果として不図示の出力画像に出力されると共に、誤差計算装置803,804にそれぞれ出力される。
【0019】
図11は誤差計算装置803,804の構成を説明するブロック図である。まず、出力設定装置807から得られる量子化値binDataXをアドレスとして中心値テーブル1102を参照し、得られた中心値stdXを減算装置1103に出力する。量子化値binDataは2値データであるので、binDataXが0の時、stdXは0であり、binDataXが1の時はstdXは255となる。減算装置1103は加算装置801,802からの出力lValueXから、中心値stdXを減算して得られた誤差errorXを誤差分散装置1104に出力する。一方、配分係数テーブル1101では入力画素値inValXをアドレスとして得られた配分係数difX0,difX1,difX2,difX3を誤差分散装置1104に送る。図6は着目画素601に対する配分係数difX0,difX1,difX2,difX3の位置関係を示した図である。誤差分散装置では、以下の計算を順に行う。
【0020】
errX3=errX2 + errorX * difX3; (式6)
errX2=errX1 + errorX * difX2; (式7)
errX1=errorX * difX1;       (式8)
errX0=errorX * difX0;       (式9)。
【0021】
ここで、errX0,errX1,errX2,errX3は誤差分散装置1104内の不図示の記憶装置に記憶される変数であり、印刷開始時に全て初期化される。誤差分散装置1104からは式6で得られたerrX3が誤差バッファ1105へ、式9で得られたerrX0が加算装置1106へそれぞれ出力される。誤差バッファ1105は入力画素の座標に対応したアドレスへerrX3を格納するとともに、前ラスタからの誤差errXbを加算装置1106へ出力する。
【0022】
入力画素の主走査方向の座標をhPosとし、誤差バッファの先頭アドレスをerrBufXとすると、
errBufX[hPos−2]=errX3;  (式10)
errXb=errBufX[hPos];    (式11)
となる。ここで、errBufX[A]=Bは誤差バッファの先頭からA番目のアドレスに値Bを代入する事を示す。
【0023】
加算装置1106では誤差分散装置1104から得られたerrX0と誤差バッファ1105から得られたerrXbを加算し、誤差errXを出力する。
【0024】
誤差計算装置803,804から出力された誤差errC,errMはそれぞれ加算装置801,802に送られ、次の入力画素値inValC,inValMと加算されて次の画素に処理が移る。
【0025】
以上の構成により、1ピクセル分の入力データに対する処理が行われるので、以上の処理を主走査方向へ1ピクセルずつずらして繰り返すことによって画像全体に対する量子化処理を行う。
【0026】
【非特許文献1】
”An Adaptive Algorithm for Spatial Gray Scale” in society for Information Display 1975, Symposium Digest of
Technical Papers, 1975, 36
【特許文献1】
特開平8−279920号公報
【特許文献2】
特開平11−10918号公報
【特許文献3】
特開平10−312458号公報
【特許文献4】
特開平8−307680号公報
【発明が解決しようとする課題】
上記述べたような従来技術では、入力値によって各色の誤差配分係数をそれぞれ決定することでハイライトにおける各色のドット配置を整える事ができる。しかし、各色独立で閾値の変動量を決定していたため、着目画素の各色の入力画素値に極端な差がある場合に不正なドットが発生する可能性があった。
【0027】
シアン・マゼンタ共に出力は2値とした場合の不正なドット発生の一例を図7で説明する。括弧内の数字は(シアンの出力値、マゼンタの出力値)を示している。中央の十字の太線は各色独立の閾値であり、入力値が閾値より遠い程ドットの発生がしにくくなるため、閾値の変動量が大きくなるように各色の変動閾値テーブル902は設定されている。シアン・マゼンタの誤差補正した入力値が座標701の場合、シアンの入力値は閾値(C=128の縦線)に近いために閾値はあまり変動しない(右方向への矢印は短い)。しかし、マゼンタの入力値は閾値(M=128の横線)から遠いために閾値は大幅に下がる(上方向の矢印は長い)。よって、この時の出力値テーブルでは座標702が参照され、シアンの出力は0、マゼンタの出力は1となる。これをもとの画素値と比較すると、シアンとマゼンタの入力値と出力値の大小関係が逆転していることがわかる。
【0028】
このように、ある画素に着目した場合、もとの多値画像における色成分の割合と、量子化された画像における色成分の割合とが全く異なるものとなる場合があった。色成分の割合がもとのそれと異なるものとなるということは、いわゆる偽色あるいは偽輪郭等が発生して、画像品質が劣化する原因となっていた。
【0029】
本発明は上記従来例に鑑みてなされたもので、多値画像信号に対応した多次元LUTを用いて各色成分の組み合わせに応じた閾値変動量を画素ごとに選択しつつ、2色以上を組み合わせた誤差拡散法を行うとともに、ドット発生の遅延を防止するための閾値変動量についても、各色成分の値を組み合わにもとづいて決定することで、もとの多値画像に対してほぼ同じ色相の出力画像を生成できる画像処理方法及び装置を提供することを目的とする。
【0030】
【課題を解決するための手段】
上記目的を達成するために本発明は次の構成を備える。
【0031】
複数の色成分を含む多値カラー画像データを量子化処理する画像処理装置であって、
注目画素に含まれる複数の色成分の各々について、近傍画素からの各色成分毎に配分される量子化誤差値を加算する加算手段と、
前記注目画素の各色成分値の和に基づいて各色の閾値変動量を決定する変動量決定手段と、
前記加算手段により誤差値が加算された各色成分の値の和を変換後の値の和に対応させるとともに、当該変換後の画素値の和について、変換前の各色成分の比に応じて分配して変換後の各色成分の値を決定する量子化手段とを備え、
前記量子化手段は、変換後の各色成分の値を決定する際に、各色成分の量子化閾値を前記閾値変動量により変動させる。
【0032】
さらに好ましくは、前記量子化手段は、変換後の各色成分の値を決定する際に、前記閾値変動量を前記注目画素の各色成分の値にそれぞれ加算することで、各色成分の量子化閾値を変動させる。
【0033】
さらに好ましくは、前記量子化手段において量子化される階調数は2以上である。
【0034】
さらに好ましくは、前記変動量決定手段は、複数の色成分おのおのについての各濃度階調における平均量子化誤差を、前記複数の色成分それぞれについて相等しい値ずつ補正するように設定されたテーブルを有し、前記加算手段により出力される注目画素の各色成分の値の和により前記テーブルを参照して得られる値を前記閾値変動量と決定する。
【0035】
さらに好ましくは、前記変動量決定手段は、前記注目画素の各色成分値の和に代えて、前記注目画素の各色成分値の組み合わせに基づいて各色の閾値変動量を決定する。
【0036】
さらに好ましくは、前記変動量決定手段は、複数の色成分おのおのについての各濃度階調における平均量子化誤差を、前記複数の色成分それぞれについて相殺するように設定されたテーブルを有し、前記加算手段により出力される注目画素の各色成分の値の組み合わせにより前記テーブルを参照して得られる値を前記閾値変動量と決定する。
【0037】
さらに好ましくは、前記変動量決定手段により決定した閾値変動量を用いて注目画素の量子化を行った場合の第2の平均量子化誤差を、各色成分ごとにさらに相殺するよう、前記閾値変動量を補正する補正手段を更に備える。
【0038】
さらに好ましくは、前記補正手段は、複数の色成分おのおのについての各濃度階調における前記第2の平均量子化誤差を、前記複数の色成分それぞれについて相殺するように設定されたテーブルを用いて前記閾値変動量を補正する。
【0039】
さらに好ましくは、前記テーブルは、入力画素の階調数を間引いた階調数により参照されるよう構成される。
【0040】
【発明の実施の形態】
<第一の実施形態>
以下、図面を参照して本発明の第一の実施例を詳細に説明する。
【0041】
<画像処理装置の構成>
図1は本発明の実施例に係わる画像処理装置の構成を説明するブロック図である。本実施形態は、シアン・マゼンタの8ビット多値画像データを入力し、量子化処理により2値データを出力する画像処理装置である。この装置は、具体的には例えばコンピュータによりプログラムを実行することで実現される。また、そのコンピュータは、例えばインクジェットプリンタを制御するための組み込みコンピュータなどである。その場合、図1乃至図5に示される構成は、コンピュータのメモリにロードされたプログラムをプロセサが実行することで実現される。そのプログラムの手順は、以下に説明するものである。そして、この構成により生成された画像データは、プリンタエンジンによりハードコピーとして出力される。以下、本実施形態について説明する。
【0042】
本文中・図中での文字列に含まれる「X」は、色成分を表す文字(シアンについてはC,マゼンタについてはM)すべてを代表する。例えばinValXはinValCおよびinValMを示す。「=」は右辺の内容を左辺に代入する事を表す。
【0043】
図1において、inValC,inValMはそれぞれシアン・マゼンタの8ビット多値の入力画素値を表しており、これらは不図示の入力画像からそれぞれ加算部101,102と誤差計算部103,104と閾値変動量設定部105に入力される。
【0044】
加算部101,102は、入力画素値inValC,inValMと、誤差計算部103,104から出力された量子化済みの周辺画素からの誤差errC,errMとをそれぞれ加算して得られたlValueC,lValueMをそれぞれ誤差計算部103,104、出力値設定部106に出力する。
【0045】
閾値変動量設定部105は、入力画素値inValXを基に、量子化閾値を変動させる閾値変動量flactThXを出力する。
【0046】
出力値設定部106は、誤差拡散後の画素値lValueXを、閾値変動量flactThXにより変動させられた閾値と比較して、出力画素値binDataXを出力する。ただし、閾値と画素値との関係は相対的なものであり、また、本実施形態では出力値設定部106により用いられる閾値は色成分ごとの単純なものではなく、2つの色成分により出力値が決定される2次元マトリクスを用いているために、本実施形態では閾値を変動させずに画素値の方を変動させている。そのため、後述するとおり、画素値に閾値変動量flactThXを加算して、出力値テーブルから出力値を得ている。もちろん、閾値に反映される場合に対して画素値に反映される場合には符号は反転されている。
【0047】
<閾値変動量設定部>
図2は閾値変動量設定部105の構成を説明するブロック図である。入力画素値inValC,inValMが加算部201で加算され、変動閾値テーブル202に入力される。
【0048】
(変動閾値テーブル)
変動閾値テーブル202は入力された入力画素値の加算結果inValC+inValMをアドレスとして参照した基準変動値vthCMを加算部205,206に出力する。変動閾値テーブル202に設定されている基準変動値は、例えば平均量子化誤差に基づいた値が設定される。ここで平均量子化誤差は、入力画素値の加算結果inValC+inValMについての値である。変動閾値テーブル202は例えば以下のように設定される。
【0049】
まず、基準変動値vthCMをすべてのinValC+inValMに対して0として、256階調のシアンの入力画素値inValCと、同じく256階調のマゼンタの入力画素値inValMとの組み合わせからなる256×256通りの画素値について、その値を有する例えば512×512画素の一様な画像の量子化を試みる。そのときに量子化に使用する出力値テーブルは図4に示したもので、マゼンタとシアンの画素値の合計値が128以下の第1の領域と、合計値が255+128より大きい第2の領域と、合計値が128より大きく、かつ(255+128)以下で、かつマゼンタの画素値がシアンの画素値以上となる第3の領域と、合計値が128より大きく、かつ(255+128)以下で、かつマゼンタの画素値がシアンの画素値より小さい第4の領域とに分割されている。そして、これら4つの領域に対して、出力値として、順に(0,0),(1,1),(0,1),(1,0)が登録されている。そして、(inValC’,inValM’)に応じて、(0,0),(1,1),(0,1),(1,0)のいずれかが、図4のテーブルに従って出力される。
【0050】
このテーブルを用いて誤差拡散を行い、シアンの入力画素値とマゼンタの入力画素値との和inValC+inValMの値ごとに、平均量子化誤差を求める。その後得られた平均誤差値を符号反転した値を変動閾値テーブルに登録する。変動閾値テーブルの設定方法は後により詳細に説明する。このように、変動閾値テーブルには平均量子化誤差を相殺するような値が設定されている。本実施形態では、各色成分の平均量子化誤差の和を、各色成分について相等しい値ずつ閾値を変動させて相殺することになる。
【0051】
図2の構成から明らかなとおり、(inValC’+inValM’)をインデックスとして出力される基準変動値vthCMは、シアンとマゼンタに対して共通に用いられる。したがって各色成分とも同じ量だけ変動することになる。そのため、図4上で画素値の変動を見ると、もとの画素値(inValC’,inValM’)に対して閾値変動後の画素値は、後で加算されるノイズを考慮しなければ(inValC’+vthCM,inValM’+vthCM)となる。すなわち、基準変動値の加算により、画素値は図4上の第3の領域と第4の領域との境界線(出力画素値(0,1)と(1,0)との境界線)に沿ってシフトするために、シアンとマゼンタの成分の比率が、量子化前後で逆転することが防止できる。これにより、偽色の発生が防止できる。
【0052】
(ノイズマトリクス)
ノイズマトリクス203,204は不図示の入力画素の座標に対応したアドレスでnoiseC,noiseMが参照され、それぞれ加算部205,206に出力する。
【0053】
加算部205,206はノイズマトリクス203,204から出力されたnoiseC,noiseMと変動閾値テーブル202から出力されたvthCMをそれぞれ加算してflactThC,flactThMを出力設定部106に出力する。誤差拡散法により量子化を行うと、しきい値付近の階調の画素値では、規則的パターンが発生しやすくなる傾向がある。この様な規則的なパターンは、本来の画像に存在しないテクスチャを発生させ、画質の低下につながる。そこで、本実施形態では、出力二値画像の画質を犠牲にすることなく規則的パターンを軽減するため、量子化のための閾値に印加するノイズ量を設定している。
【0054】
ノイズマトリクスは、例えば次のように与えられている。すなわち、ある一定の画素の領域、例えば16×16画素の領域について、その中における画素位置に応じてランダムにノイズ値が設定される。値の範囲は、一定の範囲、例えば−10〜10の範囲でランダムに選択する方法や、あるいは、ノイズ値の分布が正規分布に従うように選択する方法などが考えられる。
【0055】
その他に、符号のみを画素位置に応じてランダムに与え、ノイズ値の絶対値を、画素値に応じて与えて、その絶対値にランダムに与えられる符号を付加した値をノイズ値とする方法も考えられる。この方法では、ノイズの絶対値は、規則的パターンが発生しやすい濃度階調について大きくし、そうでない濃度階調については小さい値を与えるように設定される。規則的パターンの発生しやすさは、0〜255の各濃度階調について、一様な濃度階調の画像を、ノイズ値を0として図1の構成により量子化を行い、その出力により評価できる。評価は、例えば量子化後の画像(各画素が0または255)について直交変換を施して周波数領域に変換し、そのスペクトルから人間の視認しにくい(すなわち欠点となりにくい)高周波成分を濾波して逆変換を施して画像にもどす。その状態で画素値の分散を求め、その値を画像に含まれるテクスチャの指標とする。そして、注目濃度階調の一様な画像について、ノイズ値を0から1ずつ増加させながら量子化し、前述した画素値の分散を求めて、その値が最も小さくなるようなノイズ値を注目濃度階調に対するノイズ値として決定する。
【0056】
<出力設定部>
図3は出力設定部106の構成を説明するブロック図である。減算部301,302は加算部101,102からの出力lValueC,lValueMから閾値変動量設定部105からの出力flactThC,flactThMをそれぞれ減算したlValueC’,lValueM’を出力値テーブル303に出力する。
【0057】
図4は出力値テーブル303を示す図である。lValueC’,lValueM’によって出力値テーブル303を参照し、量子化値binDataC,binDataMを出力する。出力値テーブル303の各領域の値は(binDataC,binDataM)を示している。例えば、図4のようにlValueC’,lValueM’によって○401が参照された場合、binDataC,binDataMとしてそれぞれ1,0を出力する。binDataC,binDataMはそれぞれ量子化結果として不図示の出力画像に出力されると共に、誤差計算部103,104に出力される。
【0058】
<誤差拡散部>
図5は誤差計算部103,104の構成を説明するブロック図である。まず、出力設定部106から得られる量子化値binDataXをアドレスとして中心値テーブル502を参照して得られた中心値stdXを減算部503に出力する。本実施形態の場合、2値化処理であるのでbinDataXが0の時、stdXは0であり、binDataXが1の時はstdXは255となる。減算部503は加算部101,102からの出力lValueXから中心値stdXを減算して得られた誤差errorXを誤差分散部504に出力する。一方、配分係数テーブル501では入力画素値inValXをアドレスとして得られた配分係数difX0,difX1,difX2,difX3を誤差分散部504に送る。
【0059】
図6は着目画素601に対する配分係数difX0,difX1,difX2,difX3の位置関係を示した図である。誤差分散部では、以下の計算を行う。
【0060】
errX3=errX2 + errorX * difX3 (式12)
errX2=errX1 + errorX * difX2 (式13)
errX1=errorX * difX1        (式14)
errX0=errorX * difX0       (式15)。
【0061】
ここで、errX0,errX1,errX2,errX3は誤差分散部504内の不図示の記憶部に記憶される変数であり、印刷開始時に全て初期化される。誤差分散部504からは式12で得られたerrX3が誤差バッファ505へ、式15で得られたerrX0が加算部506へそれぞれ出力される。誤差バッファ505は入力画素の座標に対応したアドレスへerrX3を格納するとともに、前ラスタからの誤差errXbを加算部506へ出力する。
【0062】
本実施形態では入力画素の主走査方向の座標をhPosとし、誤差バッファの先頭アドレスをerrBufXとすると、
errBufX[hPos−2]=errX3      (式16)
errXb=errBufX[hPos]        (式17)
となる。なお、errBufX[A]=Bは、誤差バッファの先頭からA番目のアドレスに値Bを代入する事を示す。
【0063】
加算部506では誤差分散部504から得られたerrX0と誤差バッファ505から得られたerrXbを加算し、誤差errXを加算部101,102に送り、次の入力画素値inValXと加算される。
【0064】
なお、配分係数difX0,difX1,difX2,difX3は、例えば順に、7/16,1/16,5/16,3/16などの値を固定的に利用してもよいが、入力画素値inValXの値に応じて決定することもできる。その場合、入力画素値に応じて配分係数をかえつつ試行錯誤的に最適な配分係数を予め決定しておく。
【0065】
以上の構成により、1ピクセル分の入力データに対する処理が行われる。以上の処理を注目ピクセルを主走査方向へ1ずつずらして繰り返すことによって画像全体に対する量子化処理を行う。
【0066】
このようにして得られた画像は、本実施形態の特徴的構成である閾値変動量設定部の機能により、2色以上を組み合わせて誤差拡散法を用いる場合において、着目画素における各色の入力値の和で量子化閾値を変動させることで、本来の画像には表れない偽色の発生を防止できる。これにより、単色での擬似輪郭と組み合わせた全色での擬似輪郭の発生を同時に防止できる。さらに、入力値によって各色の誤差配分係数をそれぞれ決定することでハイライトにおけるドット配置を整える事の両立を可能にしている。
【0067】
(変動閾値テーブルの設定方法のより詳細な説明)
変動域値テーブルを作成するための方法を簡単に説明したが、ここではさらに詳細に説明する。
【0068】
図14で示される縦横それぞれ512画素の一様な色の画像を、本実施形態において閾値補正処理を行わず2値の量子化処理を行った場合、各画素の計算を行ったときに発生する誤差の値を画素ごとに測定した。さらに、そのうちのシアンの値を図14の黒く表示されているエリア(縦横それぞれ256画素の領域)について平均処理を行った。以降、この値を誤差平均値と呼ぶ。なおマゼンタについても同様に測定する。
【0069】
図15(A)は、上記の条件で測定した誤差平均値を、2値の量子化処理を行う画像の色をシアンとマゼンタについて毎回異なる値を設定しつつ、測定した結果を示す図である。図15(A)では、図15(B)に示すように、シアンとマゼンタの入力値に対する誤差平均値を、縦方向の軸についてプロットしている。
【0070】
この誤差平均値は、閾値に対して補正処理(閾値変動値の加算)を行わない量子化処理を行う場合に、先に説明した低濃度領域の立ち上り部などにおけるドット生成の遅延などの現象の特性を示している。
【0071】
より詳しく説明すると、前記誤差平均値が大きい場合(プラス側、つまり図15では上にプロットされている場合)は、プラス誤差がたまっている状態で安定してドットが形成されることを示している。例えば2値の量子化においてドットを形成するかどうかを判定するしきい値が127であり、入力値が10(入力値は最大255とする)であった場合について考える。この場合ドットが形成されるのは、入力値に加えて周囲の画素から分配された誤差を加算した値がしきい値つまり127を越える場合である。つまり、そのようなプラス誤差が蓄積されるまでドットは形成されない。すなわち、ドット形成の遅延が発生する(いわゆる掃き寄せ現象)。このような場合には前記誤差平均値は大きい数(つまり、プラスで絶対値が大きい)となる。
【0072】
また、前記誤差平均値が小さい場合(マイナスの値で絶対値が大きい場合、つまり図15では下にプロットされている場合)は、マイナス誤差がたまっている状態で安定してドットが形成されている。例えば2値の量子化においてドットを形成するかどうかを判定するしきい値が127であり、入力値が240(入力値は最大255とする)であった場合について考える。この場合、周囲からの誤差の配分がない場合にもドットが形成され一10の誤差が発生する。多少のマイナス誤差が周囲の画素から配分されても、入力値がしきい値よりずっと大きいため、ドットは高い密度で形成され、マイナス誤差が蓄積していく。
【0073】
そして、入力値240に周囲の画素からのマイナス誤差を加算した値が、しきい値つまり127を下回るとドットを形成しない画素があらわれる。そして、マイナス誤差がある値まで蓄積した状態で、蓄積されたマイナス誤差は大まかに安定し形成されるドット密度は一定になる。このようにしてドット密度が高いエリアができる画像弊害は一般に吐き出し現象と呼ばれている。このような場合は前記誤差平均値は小さな数(つまり、マイナスで絶対値が大きい)となる。
【0074】
このことをふまえて、図15(A)を見ると、マゼンタの入力値が小さく、シアンの入力値の多い色(マゼンタの入力値とシアンの入力値の和が127より小さい条件)では、誤差平均値は小さい、つまりその色の画像の量子化を行っているエリアではマイナスの誤差が蓄積する。また、マゼンタの入力値が大きくシアンの入力値が小さい色(マゼンタの入力値とシアンの入力値の和が127より小さい条件)で前記誤差平均値が大きい。
【0075】
つまり、マゼンタの入力値が小さく、シアンの入力値の多い色(マゼンタの入力値とシアンの入力値の和が127より小さい条件)の画像を量子化を行いマイナスの誤差が蓄積された状態から連続して、マゼンタの入力値が大きくシアンの入力値が小さい色(マゼンタの入力値とシアンの入力値の和が127より小さい条件)の量子化を行うと、著しいドット形成の遅延が発生する。
【0076】
本実施形態では、先に説明した手法により得られた誤差平均値(図15に大まかなに示した)の符号を反転した値を、前記変動閾値テーブルの補正パラメータ、つまり図2における変動閾値テーブル201に使用する。より詳しくは、前記変動閾値テーブルの入力(ここでは説明のためにnとする)が偶数である場合については、シアンの入力とマゼンタの入力がともにn/2である場合の、上記の方法により得られた誤差平均値を符号反転した値を使用する。また、前記変動閾値テーブルの入力が奇数である場合には、シアンの入力が(n+1)/2かつマゼンタの入力が(n−1)/2である場合の上記の方法により得られた誤差平均値と、、シアンの入力が(n−1)/2かつマゼンタの入力が(n+1)/2である場合の上記の方法により得られた誤差平均値との平均をとった値を使用する。
【0077】
それにより、2色の入力値の組み合わせによらず、量子化処理により発生する誤差平均値の絶対値を小さくする。それによりドット形成の遅延、つまり掃き寄せ現象や、吐き出し現象などの画像弊害を回避、あるいは低減する。
【0078】
<第1の実施形態の変形例>
以下、図面を参照して本発明の第1の実施形態の変形例を説明する。本変形例は、図1に示す閾値変動量設定部105が、図2の構成から図12の構成となっている点が異なる。尚、本第例において第1の実施形態と同様の構成や処理については、その説明を省略する。
【0079】
図12は閾値変動量設定部105の構成を説明するブロック図である。入力画素値inValC,inValMが加算部1201で加算され、変動閾値テーブル1202に入力される。変動閾値テーブル1202は入力された入力画素値の加算結果inValC+inValMをアドレスとして参照した値をflactThC,flactThMとして出力設定部106に出力する。
【0080】
図2の構成と比較して、ノイズマトリクスが省略されている。ノイズマトリクスが省略されているために、規則的なパターンの除去については、第1の実施形態のような効果はないものの、偽色の発生を防止できる点においては同様の効果を奏する。
【0081】
[第2実施形態]
図13は、第2実施形態における閾値変動量設定部105の構成を説明するブロック図である。本実施形態は、閾値変動量設定部105を除く他の構成については、第1実施形態と同様の構成を備える。そのため、同じ構成については説明を省略する。
【0082】
図13において、入力画素値inValC,inValMは、それぞれ変動閾値テーブル201、変動閾値テーブル202に入力される。変動閾値テーブル1301、変動閾値テーブル1302は、入力された入力画素値inValC,inValMをアドレスとして2次元ルックアップテーブルをそれぞれ参照し、vthC,vthMを加算装置205,206に出力する。ノイズマトリクス203,204は不図示の入力画素の座標に対応したアドレスでnoiseC,noiseMが参照され、それぞれ加算装置205,206に出力する。
【0083】
本実施形態では、先に説明した手法により得られた誤差平均値(図15に大まかなに示した)の符号を反転した値を、前記変動閾値テーブルの補正パラメータ、つまり図13における変動しきい値テーブル1301の2次元ルックアップテーブルに使用する。また、同様にマゼンタについて測定した値を図13における変動しきい値テーブル1302の2次元ルックアップテーブルに使用する。それにより、2色の入力値の組み合わせによらず、量子化処理により発生する誤差平均値の絶対値を小さくする。それによりドット形成の遅延、つまり掃き寄せ現象や、吐き出し現象などの画像弊害を回避、あるいは低減する。
【0084】
以上の通り、本実施形態においては、2色以上の多値画像信号に対応した多次元LUTを用いて各色の組み合わせに応じた閾値変動量を画素ごとに選択しつつ、2色以上を組み合わせた誤差拡散法を行う。閾値変動量を澤択するための多次元LUTには、2色以上を組み合わせた誤差拡散法を行った場合の誤差が発生する特性を反映したパラメータを設定する。
【0085】
それにより、シアンとマゼンタの入力値と出力値の大小関係が逆転する現象を回避しつつ、入力値により選択した閾値変動量を使用した、2色以上を組み合わせた誤差拡散法を行うことが可能となり、各色成分単独で観察した場合にも、ドットの形成の遅延を効果的に防止できる。
【0086】
(拡散係数パラメータについて)
本実施形態での拡散係数(配分係数)の補正処理は、シアン、マゼンタ独立して行っている。そのパラメータの選択は特願2001−295127号に記載されているように、シアン、マゼンタそれぞれ単色の画像を量子化処理した場合のドット配置を考慮して入力各レベルごとに使用する拡散係数のパターンを決める。また、もっと簡易に各レベルごとにいくつかの画像を量子化して(たとえば図14の画像など)拡散係数を選んでもよい。
【0087】
このように決めた拡散係数のパラメータで、本実施例のシアン、マゼンタの2色の組み合わせでドットの配置のチェックを行ったが、本実施形態での実験では大きな画像弊害はないことが確認されている。
【0088】
このように拡散係数の選択を単色ごとに行うことは、拡散係数を2色(例えばシアンと、マゼンタ)のルックアップテーブルで選択する構成と比較すると、拡散係数の選択のために持つデータ量が少なくてよいメリットがある。
【0089】
[第2実施形態の変形例]
第2実施形態では、入力値の階調数と同じ階調数の2次元ルックアップテーブルを使用して閾値変動量を選択する例を示した。他の構成の例としてルックアップテーブルのデータ量を少なくするために、2色の入力値をそれぞれより階調数が少ない代表値に変換してから、前記代表値の階調数に合わせた2次元ルックアップテーブルを使用して閾値変動量を選択する構成が考えられる。
【0090】
代表値の例としては、入力値が0から255の値をとるとすれば、それを1次元ルックアップテーブルで変換して、0から63までの範囲の値をとる代表値を得ても良い。また、入力から代表値への変換では、この例ではシンプルに4で入力値を除算してもよい。
【0091】
閾値変動量を選択するための2次元ルックアップテーブルで使用するデータでは、基本的にそのデータを使用する入力値の組み合わせについての、前記誤差平均値の平均を行った値を符号反転して使用する。
【0092】
図15(A)に見られる誤差平均値のギャップは、シアン入力値とマゼンタ入力値でつくられる空間のななめ方向に(シアン入力値とマゼンタ入力値の和が255であるライン)存在している。シアン入力値とマゼンタ入力値でつくられる空間のうち、前記ギャップのシアン入力値最小とマゼンタ入力値の和が小さいエリアをエリア0、前記ギャップのシアン入力値最小とマゼンタ入力値の和が大きいエリアをエリア1と呼ぶことにする。
単純に代表値を用いて2次元ルックアップテーブルのデータ量の削減を図る場合には、シアンとマゼンタの1組の代表値がカバーするシアンとマゼンタの入力値の組み合わせの中に、前記ギャップの両側の組み合わせを含んでしまう場合が起こりうる。
その場合、前記ギャップの両側では設定すべき変動閾値の値が大きく異なるため、設定する値によって変動閾値による補正効果の大幅な減少、あるいは画像弊害の発生を起こす可能性がある。
【0093】
この問題を解決するため本実施例では、前記エリア0用と前記エリア1の2種類のルックアップテーブルのデータを用意して、入力値がエリア0とエリア1のどちらかのエリアに属するかを判定し、使用するLUTを選択する構成をとる。前記ギャップの両側のシアンとマゼンタの入力値の組み合わせを含む、シアンとマゼンタの代表値の組み合わせに対して、前記エリア0用の2次元ルックアップテーブルには前記ギャップのエリア0側の誤差平均値を平均かつ符号反転した値を、また前記エリア1用の2次元ルックアップテーブルには前記ギャップのエリア1側の誤差平均値を平均かつ符号反転した値を設定する。
前記ギャップの片側だけのシアンとマゼンタの入力値の組み合わせを含む、シアンとマゼンタの代表値の組み合わせに対しては、その代表値が含む全入力値の組み合わせについて差平均値を平均かつ符号反転した値を、前記エリア0用、前記エリア1用両方の2次元ルックアップテーブルの値として設定する。
【0094】
この構成により、前記ギャップの両側のシアンとマゼンタの入力値の組み合わせを含む、シアンとマゼンタの代表値の組み合わせがカバーする、入力値の組み合わせにおいても、精度良く、閾値変動量の選択を行うことができる。
【0095】
また、シアンまたはマゼンタの入力値が0、または最大の場合は図15(A)からわかるように量子化誤差平均値はゼロである。つまり、そのばあいは閾値変動量もゼロであることが望ましい。よって本変形例では、シアンまたはマゼンタの入力値が0、または最大であるかどうかの判定を行い、その場合は閾値変動量として0を選択する。
【0096】
本変形例の閾値変動量選択のフローチャートを図16に示す。まずいずれかの色成分の入力値が0または255であるか判定し(S1601)、0または255であれば、閾値変動量として0を選択する(S1605)。そうでなければ図15上でプロットした場合の位置がギャップを挟んでエリア0であるか判定し(S1602)、エリア0であれば入力値をそれぞれ階調数が少ない代表値へと変換する(S1603)。たとえば、256階調をいったん64階調に変換する。そして、変換後の値をインデックスとしてエリア0用の2次元LUTから閾値変動量を得る(S1604)。一方、エリア1であれば入力値をそれぞれ階調数が少ない代表値へと変換する(S1606)。そして、変換後の値をインデックスとしてエリア1用の2次元LUTから閾値変動量を得る(S1607)。各エリア用のLUTには、図15(A)に示した平均量子化誤差の値の、エリア0及びエリア1に対応する値がそれぞれ登録されている。
【0097】
この構成により、2次元ルックアップテーブルのデータ量を削減しつつ、極力精度の高い閾値変動量の選択を行うことができる。
【0098】
本変形例の構成によれば、2色以上の多値画像信号に対応した多次元LUTを用いて各色の閾値変動量を設定する構成をとり、かつ上記2色の組み合わせた画像について測定した誤差発生の特性を反映したパラメータを使用して閾値変動量を設定する。それにより発明が解決しようとする課題としてあげた、出力値が逆転する画像弊害をなくしつつ2色以上の入力値を組み合わせた量子化処理を行うことを可能にする。
【0099】
[第3実施形態]
図17は、第2実施形態における閾値変動量設定部105の構成を説明するブロック図である。本実施形態は、閾値変動量設定部105を除く他の構成については、第1実施形態と同様の構成を備える。そのため、同じ構成については説明を省略する。
【0100】
図17は、閾値変動量設定部105の構成を説明するブロック図である。入力画素値inValC,inValMが加算部201に入力されそれらの和が出力される。その信号は変動閾値テーブル1702へ入力され、1次元ルックアップテーブルを参照してvthCMが出力される。また、入力画素値inValC,inValMは変動閾値テーブル1701と変動閾値テーブル1703に入力される。
【0101】
変動閾値テーブル1701、変動閾値テーブル1703は、まず入力画素値inValC,inValMの階調数を、1次元ルックアップテーブルにより1/4の値に変換し、その2つの値をアドレスとして2次元ルックアップテーブルをそれぞれ参照し、得られた第1の閾値変動量vthC,vthMを加算部205,206に出力する。各ルックアップテーブルのデータについては後に詳しく説明する。なお、変動閾値テーブル1701、変動閾値テーブル1703は、第2実施形態の変形例として説明したものと同様の構成である。
【0102】
また、変動閾値テーブル1702は、加算部201から出力されるシアンとマゼンタの値の和をもとに、閾値変動量を出力する。なお、変動閾値テーブル1702は、第1の実施形態における変動閾値テーブル202と同じものである。
【0103】
ノイズマトリクス203,204は不図示の入力画素の座標に対応したアドレスでnoiseC,noiseMが参照され、それぞれ加算装置205,206に出力する。
【0104】
加算部205,206はノイズマトリクス203,204から出力されたnoiseC,noiseMと変動閾値テーブル1702から出力されたvthCMと、さらに変動閾値テーブル1701、変動閾値テーブル1703から出力されたvthCM,vthMをそれぞれ加算してflactThC,flactTMとして出力設定装置106に出力する。
【0105】
(変動閾値テーブル1702のみによる閾値補正の特性)
図18は先に説明した変動閾値テーブル1702の閾値の補正のみを行い、かつ変動閾値テーブル1701および変動閾値テーブル1703による閾値の補正を行わない場合(つまり変動閾値テーブル1701および変動閾値テーブル1703からの出力値は常に0である条件)で測定した誤差平均値の特性を示している。
【0106】
図18(A)は、上記の条件で測定したシアンの誤差平均値を、2値の量子化処理を行う画像の色をシアンとマゼンタについて毎回異なる値を設定しつつ、測定した結果をしている。また、図18(A)の誤差平均値は図18(B)に示すように、シアンとマゼンタの入力値の軸をとり、誤差平均値を縦方向の軸にとってプロットしている。
【0107】
図18(A)のデータでは、変動閾値テーブル1702の閾値の補正を行わなかった場合の特性(図19(A))と比べて、シアンの入力値とマゼンタの入力値による空間の斜め方向のギャップ(図15(A)において中央に見えるもの)がなくなっている。
【0108】
また、図18(A)の特性においてはまだ量子化誤差が各色成分の入力画素値に応じて若干変動していることから、誤差平均値勾配は残っている。本実施形態では、それを変動閾値テーブル1701、変動閾値テーブル1703による補正値で補正する。図15(A)に示すギャップがなくなっているため、変動閾値テーブル1701、変動閾値テーブル1703は、ルックアップテーブルの入力値のレベル数を少なくすること、すなわちテーブルを小さく構成することが容易となる。
【0109】
これが、本発明の構成のメリットであり、1次元のルックアップテーブルと、2次元のルックアップテーブルを併用することにより、2次元ルックアップテーブルのデータ量の削減が達成される。
【0110】
(変動閾値テーブル1701および変動閾値テーブル1703の設定)
変動閾値テーブル1701には、変動閾値テーブル1702の閾値の補正のみを行い測定した誤差平均値(図18(A)に示した値)の符号を反転した値を使用する。すなわち、まず第1実施形態において説明した要領で、各濃度階調画素が一様に分布した図14に示すような画像をサンプルとして平均量子化誤差を求める。その際には、変動域値テーブル1702を使用するが、変動域値テーブル1701および1703は使用しない。すなわち、第1実施形態で説明した画像処理装置を用いて、画像の量子化を行って、シアンおよびマゼンタという各色成分の値との関係において、各色成分についての平均量子化誤差を求める。これが図19(A)である。そして、この値の符号を反転して変動域値テーブル1701および1703とする。ただし、シアンおよびマゼンタについて入力値をそれぞれ4分の1にする。このためには、例えば、シアンおよびマゼンタ各色について、4i(iは0から63の整数)ごとに平均量子化誤差を獲得し、それを変動閾値テーブル1701,1703とする。このテーブルを引くためには、入力値を変換するが、たとえば入力値に一定の値(たとえば0や2など)を加算して4で割り、その商を用いる方法などが考えられる。
【0111】
このようにして階調数を先に説明したように入力値の1/4とすることにより、データ量の削減を図っている。
【0112】
これはシアン及びマゼンタについて同じであり、ともに測定した値を図17における変動しきい値テーブル1701、1703の2次元ルックアップテーブルに使用する。
【0113】
それにより、2色の入力値の組み合わせによらず、量子化処理により発生する誤差平均値の絶対値を小さくする。それによりドット形成の遅延、つまり掃き寄せ現象や、吐き出し現象などの画像弊害を回避、あるいは低減する。
【0114】
(拡散係数パラメータについて)
本実施の形態での拡散係数の補正処理は、シアン、マゼンタ独立して行っている。そのパラメータの選択は特願2001−295127号に記載されているように、シアン、マゼンタそれぞれ単色の画像を量子化処理した場合のドット配置を考慮して入力各レベルごとに使用する拡散係数のパ/ターンを決める。また、もっと簡易に各レベルごとにいくつかの画像を量子化して(たとえば図7の画像など)拡散係数を選んでもよい。
【0115】
このように決めた拡散係数のパラメータで、本実施の形態のシアン、マゼンタの2色の組み合わせでドットの配置のチェックを行ったが、本実施の形態での実験では大きな画像弊害はないことが確認されている。
【0116】
このように拡散係数の選択を単色ごとに行うことは、拡散係数を2色(例えばシアンと、マゼンタ)のルックアップテーブルで選択する構成と比較すると、拡散係数の選択のために持つデータ量が少なくてよいメリットがある。
【0117】
以上のように、本実施形態の構成によれば、2色以上の多値画像信号に対応した多次元LUTを用いて各色の閾値変動量を設定する構成をとり、かつ上記2色の組み合わせた画像について測定した誤差発生の特性を反映したパラメータを使用して閾値変動量を設定する。それにより発明が解決しようとする課題としてあげた、出力値が逆転する画像弊害をなくしつつ2色以上の入力値を組み合わせた量子化処理を行うことを可能にする。
【0118】
<各実施形態の応用>
なお、上記各実施形態においては拡散係数の補正はシアン、マゼンタそれぞれ単色で行う構成を示した。しかし、本発明はその構成に限定されるものではない。例えばシアン、マゼンタの入力値について、多次元ルックアップテーブルを使用して拡散係数を選んでも良い。この構成の場合は、より形成されるドットの配置を偏りのないものにすることができる。しかし、実施例の単色ごとに拡散係数を選ぶ方法はデータの量を比較的少なくできるというメリットがある。
【0119】
上記実施形態では2値の例について説明したが、本発明はその構成に限定されるものではない。多値の量子化処理を行う場合にも同様に効果を得ることができる。
【0120】
上記実施形態ではノイズマトリクスのデータを2色の入力画素の座標に対応したアドレスにより参照し、閾値の変動量にノイズ特性を付加する例について説明した。しかし、本発明はこの構成に限定されるものではない。閾値の変動量にノイズ特性を付加するのは、量子化処理の結果、出力される画像に規則正しいドットの配置が現われ画像の品位が低下するのを回避もしくは低減するためのものである。本発明はこの構成に限定されるものではなく、閾値の変動量にノイズ特性を付加しない場合も同様に効果がある。
【0121】
上記実施形態ではシアンとマゼンタの2色の入力画素値について、組み合わせて量子化処理を行う例について説明した。しかし本発明はこの構成に限定されるものではない。例えば、他の色のインクの組み合わせについて処理を行う場合についても効果がある。また、比較的濃度が濃いドットと薄いドットを用いるプリントシステムや、比較的ドット径が大きいドットと、小さいドットを用いるプリントシステムなど、異なり目立ち方をするどっとの組み合わせなどについても効果がある。
【0122】
さらに2色より多い色、つまり、シアン、マゼンタ、ブラックなど、の組み合わせについても同様に有効である。この場合は2次元ルックアップテーブルのかわりに3次元ルックアップテーブルを使用する。
【0123】
上記実施形態では出力決定手段は多次元のルックアップテーブルを参照して出力値を決定するタイプの例について説明した。しかし、本発明はこの構成に限定されるものではなく、2色以上の組み合わせで出力決定を行う誤差拡散法において有効である。
【0124】
さらに上記実施形態ではでは誤差拡散法により量子化処理を行う画素の入力値を使用して、誤差変動量を選択する構成について説明した。しかし、量子化処理を行おうとしている画像が画素ごとに入力値が大きく変わることが少ない特性のものである場合、量子化処理を行おうとしている画素の、近傍の画素の入力値、あるいはいくつかの画素の入力値の平均値をもちいて閾値変動量の選択を行っても有効である。
【0125】
例えば写真画像などを高解像度の記録装置で画像の形成を行うために、画像を入力するカメラの光学系の解像度などと比べて、高い解像度で量子化処理を行う場合などが挙げられる。
【0126】
また、以上のように構成される画像処理装置を、多値画像を量子化して画像形成するプリンタに適用することで、高品質の画像を印刷することが可能となる。とくに、色成分ごとの一定サイズのドットを媒体に載せることで画像を形成するインクジェットプリンタにおいては、そのドットの配置のしかたにより形成される画像の品質が大きく上下するために、上記各実施形態を適用してドット生成の遅延を防止すると共に、入力画素の色成分比と出力画素の色成分比の逆転による偽色の発生を防止した本発明の適用は、画質の改善に大きな効果がある。
【0127】
【発明の効果】
以上説明したように本発明によれば、2色以上を組み合わせて誤差拡散法を用いる画像処理装置において、着目画素における各色の入力値の和で量子化閾値を変動させることで、単色での擬似輪郭と組み合わせた全色での擬似輪郭の発生を同時に防ぎつつ、入力値によって各色の誤差配分係数をそれぞれ決定することでハイライトにおけるドット配置を整える事の両立を可能にした。
【0128】
また、本発明においては、2色以上の多値画像信号に対応した多次元LUTを用いて各色の組み合わせに応じた閾値変動量を画素ごとに選択しつつ2色以上を組み合わせた誤差拡散法を行い、閾値変動量を選択するための多次元LUTには、2色以上を組み合わせた誤差拡散法を行った場合の誤差が発生する特性を反映したパラメータを設定する。
【0129】
それにより、シアンとマゼンタといった色成分が、入力値と出力値とで大小関係が逆転する現象を回避しつつ、入力値により選択した閾値変動量を使用した、2色以上を組み合わせた誤差拡散法を行うことが可能となった。
【0130】
さらに、本発明においては、2色以上の多値画像信号に対応した多次元LUTを用いて各色の組み合わせに応じた閾値変動量を画素ごとに選択しつつ、2色以上を組み合わせた誤差拡散法を行い、着目画素における各色の入力値の和で量子化閾値を変動させるとともに、2色以上を組み合わせた誤差拡散法を行った場合の誤差が発生する特性を反映したパラメータを有する多次元LUTによりさらに量子化閾値の変動を補正する。
【0131】
それにより、シアンとマゼンタの入力値と出力値の大小関係が逆転する現象を回避しつつ、入力値により選択した閾値変動量を使用した、2色以上を組み合わせた誤差拡散法を行うことが可能となった。閾値変動量を2段階にわたって補正するために、量子化処理時におけるドット生成遅延の原因となる平均量子化誤差を十分小さくすることができ、一層の画質の改善が可能となる。
【図面の簡単な説明】
【図1】実施形態の画像処理装置の構成を示すブロック図である。
【図2】第1実施形態の画像処理装置における閾値変動量設定部の構成を示すブロック図である。
【図3】実施形態の画像処理装置における出力設定部の構成を示すブロック図である。
【図4】実施形態の画像処理装置における出力値テーブルを示す模式図である。
【図5】実施形態の画像処理装置における誤差計算部の構成を示すブロック図である。
【図6】誤差配分窓を示す模式図である。
【図7】従来例の画像処理装置における出力値テーブルを示す模式図である。
【図8】従来例の画像処理装置の構成を示すブロック図である。
【図9】従来例の画像処理装置の閾値変動量設定部を示すブロック図である。
【図10】従来例の画像処理装置における出力設定部の構成を示すブロック図である。
【図11】従来例の画像処理装置における誤差計算部の構成を示すブロック図である。
【図12】第1実施形態における閾値変動量設定部の他の構成を示すブロック図である。
【図13】第2実施形態の画像処理装置における閾値変動量設定部の構成を示すブロック図である。
【図14】誤差平均値の測定に使用する画像の説明図である。
【図15】閾値の補正を行わない場合における誤差平均値特性の説明図である。
【図16】第2実施形態の変形例の閾値変動量設定部における処理のフローチャートである。
【図17】第3実施形態における閾値変動量設定部の構成を示すブロック図である。
【図18】2色の入力値の和により閣値変動を選択する補正のみを行った場合における、誤差平均値特性の説明図である。
【符号の説明】
101,102,201,205,206,506,801,802,903,1106,1201 加算部
103,104,803,804 誤差計算部
105,805,806 閾値変動量設定部
106,807 出力値設定部
202,902,1202 変動閾値テーブル
203,204,901 ノイズマトリクス
301,302,503,1001,1002,1103 減算部
303,1003 出力値テーブル
401,702 誤差補正された入力画素
501,1101 配分係数テーブル
502,1102 中心値テーブル
504,1104 誤差分散部
505,1105 誤差バッファ
701 入力画素
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to an image processing method and an apparatus therefor, and more particularly to image processing for quantizing input data into binary or multi-value data while storing a difference between input image density and output image density by an error diffusion method. is there.
[0002]
[Prior art]
Conventionally, an error diffusion method is known as pseudo-halftone processing for expressing multi-value data in binary (see Non-Patent Document 1). In this method, if the pixel of interest is P, the density thereof is v, and the densities of peripheral pixels P0, P1, P2, and P3 around the point P are v0, v1, v2, v3, and the threshold for binarization is T, The binarization error E at the point of interest P is distributed to the peripheral pixels P0, P1, P2, and P3 by weight coefficients W0, W1, W2, and W3 obtained empirically, and the average density is made macroscopically equal to the density of the original image. Is the method. 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;
(However, Vmax: maximum density, Vmin: minimum density)
v0 = v0 + E × W0; (Formula 2)
v1 = v1 + E × W1; (Formula 3)
v2 = v2 + E × W2; (Formula 4)
v3 = v3 + E × W3; (Formula 5)
It becomes. Here, as examples of weighting factors, W0 = 7/16, W1 = 1/16, W2 = 5/16, W3 = 3/16, and the like are set.
[0003]
With this method, when pseudo-halftone processing is performed on multiple colors, for example, cyan, magenta, yellow, and black, which are used in color ink jet printers, etc., each color is processed independently using the error diffusion method described above. In addition, when one color is viewed, even if the visual characteristics are excellent, if two or more colors overlap, good visual characteristics cannot always be obtained.
[0004]
In order to improve this defect, a pseudo halftone processing method is disclosed in which good visual characteristics can be obtained even when two or more colors overlap by using an error diffusion method combining two or more colors (Patent Document). 1 and Patent Document 2). However, in these methods, the threshold value for binarization is fixed for each color, and the case where the threshold value is different for each color cannot be handled.
[0005]
On the other hand, a method is known in which the quantization result of each color is set in advance in a quantization value table, and the quantization result of each color is obtained by referring to the quantization value table based on the input pixel value of each color in the target pixel. According to this method, an error diffusion method combining two or more colors can be performed while allowing the number of quantization levels and the threshold level to be set by data set in a quantization value table (lookup table). it can.
[0006]
On the other hand, in the error diffusion method in which the diffusion coefficient is fixed, there is a problem that dots are not uniformly dispersed in the highlight and shadow portions and are generated in a chain. On the other hand, an error diffusion method using a different diffusion coefficient depending on the input gradation has been proposed (see Patent Document 3). In this method, a first diffusion coefficient in highlights and shadows and a second diffusion coefficient in intermediate gradations are defined, and the areas from highlights to intermediate gradations and intermediate gradations to shadows are defined as the two. A linearly interpolated diffusion coefficient is used.
[0007]
Further, the conventional image processing apparatus using the error diffusion method has a problem that the dot generation at the rising portion of the low density region is significantly delayed. Furthermore, at a specific input gradation, a regular pattern is generated in the output binary image, which may deteriorate the image quality. In order to solve the above problem, an error diffusion method has been proposed in which a threshold is set based on the gradation value of multi-value image data (see Patent Document 4). An outline of this method is as follows. In an image processing apparatus that converts multi-gradation image data into a first gradation value and a second gradation value using an error diffusion method or an average error minimum method, the multi-gradation image data of a pixel of interest. A reference threshold is set on the basis of the tone value, and a random value is added to the reference threshold to set a threshold for binarization. According to this method, the dot generation delay is eliminated by optimizing the threshold value according to the gradation value of the multi-tone image data of the target pixel, and further, the threshold value is set according to the gradation value of the target pixel. Generation of the regular pattern is prevented by applying noise.
[0008]
In addition, by selecting parameters for diffusion coefficient correction and threshold correction according to the input value, even more precise dot placement and avoidance of dot generation delays at rising positions in low density areas A method for performing the above is proposed in Japanese Patent Application No. 2001-295127.
[0009]
Further, there is a method of simultaneously performing a diffusion coefficient or threshold value correction process according to an input value and an error diffusion method by combining two or more colors. For example, FIG. 8 shows a block diagram when cyan / magenta 8-bit multilevel image data is input and binary data is output by quantization processing. Note that “X” included in the character string in the text and drawings represents all the characters representing the color component (C for cyan and M for magenta). For example, inValX indicates inValC and inValM. “=” Indicates that the content of the right side is assigned to the left side.
[0010]
In the figure, inValC and inValM are cyan and magenta input pixel values sent from an input image (not shown), and are respectively supplied to adders 801, 802, error calculators 803, 804, and threshold variation setting devices 805, 806. Entered. In the adders 801 and 802, error calculation is performed on lValueC and lValueM obtained by adding the input pixel values inValC and inValM and the errors errC and errM from the quantized peripheral pixels output from the error calculators 803 and 804, respectively. The data is output to the devices 803 and 804 and the output value setting device 807.
[0011]
The threshold fluctuation amount setting devices 805 and 806 output a threshold fluctuation amount fractThX for changing the quantization threshold based on the input pixel value inValX. The output value setting device 807 compares the pixel value lValueX after error diffusion with a threshold value that is changed by the threshold value fluctuation amount fractThX, and outputs an output pixel value binDataX.
[0012]
FIG. 9 is a block diagram showing the configuration of the threshold value fluctuation amount setting devices 805 and 806. The fluctuation threshold table 901 is referred to by the value of inValX, and the reference fluctuation amount vthX registered corresponding to the value is output to the adding device 903. The contents of the fluctuation range value table are set statically in advance. The reference variation amount is set so that the variation amount of the threshold value increases because the occurrence of dots is less likely as the input value is farther than the threshold value. This is because the dot generation is not delayed.
[0013]
The noise matrix 902 is referred to by an address created based on the coordinates of the input pixel, and outputs a noise value noiseX corresponding to the address to the adder. Noise is a value used to reduce the regularity of dot arrangement that appears by error diffusion processing, and the contents of the noise matrix are given in advance for each pixel value. For example, the noise is given a completely random value or is determined for each gradation level.
[0014]
The adder 903 adds the reference fluctuation amount vthX and the noise noiseX, and outputs the threshold fluctuation amount fractThX to the output value setting device 807.
[0015]
FIG. 10 is a block diagram illustrating the configuration of the output setting device 807. The subtraction devices 1001 and 1002 output lValueC ′ and lValueM ′, which are obtained by subtracting the outputs fractThC and fractThM from the threshold value fluctuation amount setting devices 805 and 806, respectively, from the lValueC and lValueM to the output value table 1003.
[0016]
FIG. 7 shows an output value table 1003. The output value table 1003 is referred to by lValueC ′ and lValueM ′, and the quantized values binDataC and binDataM are output. In addition, the value of each area | region has shown (binDataC, binDataM). The output value table 1003 includes a first area where the total value of magenta and cyan pixel values is 128 or less, a second area where the total value is greater than 255 + 128, a total value greater than 128 and (255 + 128) or less. And a third area where the magenta pixel value is equal to or greater than the cyan pixel value, and a fourth area where the total value is greater than 128 and equal to or less than (255 + 128), and the magenta pixel value is less than the cyan pixel value. It is divided into and. Then, (0, 0), (1, 1), (0, 1), and (1, 0) are registered in order as output values for these four areas. Here, the value on the boundary of the region may belong to any region.
[0017]
For example, when coordinates 702 (white circles in the figure) are referred to by pixel values lValueC ′ and lValueM ′ as shown in FIG. 7, 0 and 1 are output as binDataC and binDataM, respectively. Note that the coordinates 701 are coordinates when the output value table 1003 is referred to by lValueC and lValueM before the threshold is changed. Since the value of the average quantization error for each gradation level is set as the reference variation value, the value of each color component approaches the median value by adding the variation value. Note that the threshold fluctuation amount does not fluctuate the threshold value but fluctuates the pixel value. This is because the relationship between the pixel value and the threshold value is relative.
[0018]
In FIG. 10, output values binDataC and binDataM are output as quantization results to an output image (not shown) and output to error calculation devices 803 and 804, respectively.
[0019]
FIG. 11 is a block diagram illustrating the configuration of the error calculation devices 803 and 804. First, the center value table 1102 is referred to using the quantized value binDataX obtained from the output setting device 807 as an address, and the obtained center value stdX is output to the subtraction device 1103. Since the quantized value binData is binary data, when binDataX is 0, stdX is 0, and when binDataX is 1, stdX is 255. The subtractor 1103 outputs an error errorX obtained by subtracting the center value stdX from the outputs lValueX from the adders 801 and 802 to the error dispersion device 1104. On the other hand, in the distribution coefficient table 1101, distribution coefficients difX 0, difX 1, difX 2, and difX 3 obtained using the input pixel value inValX as an address are sent to the error distribution device 1104. FIG. 6 is a diagram illustrating the positional relationship of the distribution coefficients difX0, difX1, difX2, and difX3 with respect to the pixel of interest 601. The error distribution apparatus performs the following calculations in order.
[0020]
errX3 = errX2 + errorX * difX3; (Formula 6)
errX2 = errX1 + errorX * difX2; (Formula 7)
errX1 = errorX * difX1; (Formula 8)
errX0 = errorX * difX0; (Equation 9).
[0021]
Here, errX0, errX1, errX2, and errX3 are variables stored in a storage device (not shown) in the error distribution apparatus 1104, and are all initialized at the start of printing. The error dispersion device 1104 outputs errX3 obtained by Equation 6 to the error buffer 1105, and errX0 obtained by Equation 9 to the adder 1106. The error buffer 1105 stores errX3 at an address corresponding to the coordinates of the input pixel, and outputs the error errXb from the previous raster to the adder 1106.
[0022]
If the coordinates of the input pixel in the main scanning direction are hPos and the head address of the error buffer is errBufX,
errBufX [hPos-2] = errX3; (Formula 10)
errXb = errBufX [hPos]; (Formula 11)
It becomes. Here, errBufX [A] = B indicates that the value B is assigned to the Ath address from the top of the error buffer.
[0023]
The adder 1106 adds errX0 obtained from the error dispersion device 1104 and errXb obtained from the error buffer 1105, and outputs an error errX.
[0024]
The errors errC and errM output from the error calculators 803 and 804 are sent to the adders 801 and 802, respectively, and added to the next input pixel values inValC and inValM, and the process proceeds to the next pixel.
[0025]
With the above configuration, the processing for the input data for one pixel is performed, so that the quantization processing is performed on the entire image by repeating the above processing while shifting the pixel by one pixel in the main scanning direction.
[0026]
[Non-Patent Document 1]
“An Adaptive Algorithm for Spatial Gray Scale” in society for Information Display 1975, Symposium Digest of
Technical Papers, 1975, 36
[Patent Document 1]
JP-A-8-279920
[Patent Document 2]
Japanese Patent Laid-Open No. 11-10918
[Patent Document 3]
JP-A-10-31458
[Patent Document 4]
JP-A-8-307680
[Problems to be solved by the invention]
In the prior art as described above, the dot arrangement of each color in the highlight can be adjusted by determining the error distribution coefficient of each color according to the input value. However, since the threshold fluctuation amount is determined independently for each color, there is a possibility that an incorrect dot may occur when there is an extreme difference in the input pixel value of each color of the pixel of interest.
[0027]
An example of illegal dot generation when the output of both cyan and magenta is binary will be described with reference to FIG. The numbers in parentheses indicate (cyan output value, magenta output value). The thick bold line at the center is an independent threshold value for each color, and as the input value is farther than the threshold value, dots are less likely to be generated. Therefore, the variation threshold value table 902 for each color is set so that the variation amount of the threshold value increases. When the cyan / magenta error-corrected input value is coordinate 701, the cyan input value is close to the threshold value (C = 128 vertical line), so the threshold value does not vary much (the arrow to the right is short). However, since the input value of magenta is far from the threshold value (M = 128 horizontal line), the threshold value is greatly reduced (the upward arrow is long). Therefore, the coordinates 702 are referred to in the output value table at this time, the cyan output is 0, and the magenta output is 1. When this is compared with the original pixel value, it can be seen that the magnitude relationship between the input value and the output value of cyan and magenta is reversed.
[0028]
As described above, when attention is paid to a certain pixel, the ratio of the color component in the original multi-valued image may be completely different from the ratio of the color component in the quantized image. The fact that the ratio of the color components is different from the original one causes a so-called false color or false contour, which causes the image quality to deteriorate.
[0029]
The present invention has been made in view of the above-described conventional example. A multi-dimensional LUT corresponding to a multi-value image signal is used to select a threshold fluctuation amount corresponding to a combination of each color component for each pixel and combine two or more colors. In addition to the error diffusion method, the threshold fluctuation amount for preventing the delay of dot generation is determined based on the combination of the values of the respective color components, so that substantially the same hue is obtained with respect to the original multi-valued image. An object of the present invention is to provide an image processing method and apparatus capable of generating an output image.
[0030]
[Means for Solving the Problems]
In order to achieve the above object, the present invention comprises the following arrangement.
[0031]
An image processing apparatus for quantizing multi-valued color image data including a plurality of color components,
For each of a plurality of color components included in the pixel of interest, an adding means for adding a quantization error value distributed for each color component from neighboring pixels;
Variation amount determining means for determining a threshold variation amount of each color based on the sum of each color component value of the target pixel;
The sum of the values of the color components to which the error values are added by the adding means corresponds to the sum of the values after the conversion, and the sum of the pixel values after the conversion is distributed according to the ratio of the color components before the conversion. Quantizing means for determining the value of each color component after conversion,
The quantization unit varies the quantization threshold of each color component according to the threshold fluctuation amount when determining the value of each color component after conversion.
[0032]
More preferably, when the quantization unit determines the value of each color component after conversion, the quantization unit adds the threshold fluctuation amount to the value of each color component of the target pixel, thereby determining the quantization threshold of each color component. Fluctuate.
[0033]
More preferably, the number of gradation levels quantized by the quantization means is two or more.
[0034]
More preferably, the variation amount determining means has a table set to correct an average quantization error in each density gradation for each of the plurality of color components by an equal value for each of the plurality of color components. Then, a value obtained by referring to the table is determined as the threshold fluctuation amount by the sum of the values of the respective color components of the target pixel output by the adding means.
[0035]
More preferably, the variation amount determining means determines a threshold variation amount of each color based on a combination of each color component value of the target pixel instead of the sum of the color component values of the target pixel.
[0036]
More preferably, the variation amount determining means has a table set so as to offset an average quantization error in each density gradation for each of the plurality of color components for each of the plurality of color components, and the addition A value obtained by referring to the table by a combination of values of each color component of the target pixel output by the means is determined as the threshold fluctuation amount.
[0037]
More preferably, the threshold variation amount so as to further cancel out the second average quantization error when the pixel of interest is quantized using the threshold variation amount determined by the variation amount determination unit for each color component. Further, a correction means for correcting the above is provided.
[0038]
More preferably, the correction means uses the table set so as to cancel out the second average quantization error in each density gradation for each of the plurality of color components for each of the plurality of color components. The threshold fluctuation amount is corrected.
[0039]
More preferably, the table is configured to be referred to by the number of gradations obtained by thinning out the number of gradations of the input pixel.
[0040]
DETAILED DESCRIPTION OF THE INVENTION
<First embodiment>
Hereinafter, a first embodiment of the present invention will be described in detail with reference to the drawings.
[0041]
<Configuration of image processing apparatus>
FIG. 1 is a block diagram illustrating the configuration of an image processing apparatus according to an embodiment of the present invention. This embodiment is an image processing apparatus that inputs 8-bit multi-value image data of cyan / magenta and outputs binary data by quantization processing. Specifically, this apparatus is realized by executing a program by a computer, for example. The computer is, for example, an embedded computer for controlling an ink jet printer. In that case, the configuration shown in FIGS. 1 to 5 is realized by the processor executing the program loaded in the memory of the computer. The procedure of the program is described below. The image data generated by this configuration is output as a hard copy by the printer engine. Hereinafter, this embodiment will be described.
[0042]
“X” included in the character string in the text and drawings represents all the characters representing the color components (C for cyan and M for magenta). For example, inValX indicates inValC and inValM. “=” Indicates that the content of the right side is assigned to the left side.
[0043]
In FIG. 1, inValC and inValM represent 8-bit multi-valued input pixel values of cyan and magenta, respectively, which are added from an input image (not shown), adders 101 and 102, error calculators 103 and 104, and threshold fluctuations, respectively. The amount is input to the amount setting unit 105.
[0044]
The addition units 101 and 102 respectively add lValueC and lValueM obtained by adding the input pixel values inValC and inValM and the errors errC and errM from the quantized peripheral pixels output from the error calculation units 103 and 104, respectively. The data are output to the error calculation units 103 and 104 and the output value setting unit 106, respectively.
[0045]
The threshold variation setting unit 105 outputs a threshold variation fractThX that varies the quantization threshold based on the input pixel value inValX.
[0046]
The output value setting unit 106 compares the pixel value lValueX after error diffusion with a threshold value that is changed by the threshold value change amount factThX, and outputs an output pixel value binDataX. However, the relationship between the threshold value and the pixel value is relative, and in this embodiment, the threshold value used by the output value setting unit 106 is not simple for each color component, and the output value is determined by two color components. In the present embodiment, the pixel value is changed without changing the threshold value. Therefore, as will be described later, the threshold value fluctuation amount flactThX is added to the pixel value to obtain an output value from the output value table. Of course, the sign is inverted when it is reflected in the pixel value compared to the case where it is reflected in the threshold value.
[0047]
<Threshold variation setting unit>
FIG. 2 is a block diagram illustrating the configuration of the threshold fluctuation amount setting unit 105. The input pixel values inValC and inValM are added by the adding unit 201 and input to the variation threshold value table 202.
[0048]
(Variation threshold table)
The variation threshold value table 202 outputs the reference variation value vthCM, which is referred to using the addition result inValC + inValM as an address, to the addition units 205 and 206. As the reference fluctuation value set in the fluctuation threshold table 202, for example, a value based on the average quantization error is set. Here, the average quantization error is a value for the addition result inValC + inValM of the input pixel value. The fluctuation threshold table 202 is set as follows, for example.
[0049]
First, the reference variation value vthCM is set to 0 with respect to all inValC + inValM, and 256 × 256 types of pixels formed by combinations of 256-tone cyan input pixel value inValC and 256-tone magenta input pixel value inValM. For a value, we try to quantize a uniform image of that value, for example 512 × 512 pixels. The output value table used for quantization at that time is shown in FIG. 4, and a first area where the sum of magenta and cyan pixel values is 128 or less, and a second area where the sum is greater than 255 + 128. A third region where the total value is greater than 128 and less than or equal to (255 + 128) and the magenta pixel value is greater than or equal to the cyan pixel value, and the total value is greater than 128 and less than (255 + 128) and magenta Are divided into a fourth area smaller than the cyan pixel value. Then, (0, 0), (1, 1), (0, 1), and (1, 0) are registered in order as output values for these four areas. Then, according to (inValC ′, inValM ′), any one of (0, 0), (1, 1), (0, 1), (1, 0) is output according to the table of FIG.
[0050]
Error diffusion is performed using this table, and an average quantization error is obtained for each value of the sum inValC + inValM of the cyan input pixel value and the magenta input pixel value. A value obtained by inverting the sign of the obtained average error value is registered in the fluctuation threshold table. The setting method of the fluctuation threshold table will be described later in detail. In this way, values that cancel the average quantization error are set in the variation threshold table. In this embodiment, the sum of the average quantization error of each color component is canceled by changing the threshold value by the same value for each color component.
[0051]
As is clear from the configuration of FIG. 2, the reference variation value vthCM output using (inValC ′ + inValM ′) as an index is commonly used for cyan and magenta. Therefore, each color component varies by the same amount. Therefore, when the variation of the pixel value is viewed on FIG. 4, the pixel value after the variation of the threshold is not considered in consideration of noise added later with respect to the original pixel value (inValC ′, inValM ′) (inValC '+ VthCM, inValM' + vthCM). In other words, by adding the reference variation value, the pixel value becomes the boundary line between the third area and the fourth area in FIG. 4 (the boundary line between the output pixel values (0, 1) and (1, 0)). Therefore, the ratio of cyan and magenta components can be prevented from being reversed before and after quantization. Thereby, generation | occurrence | production of a false color can be prevented.
[0052]
(Noise matrix)
In the noise matrices 203 and 204, noise C and noise M are referred to by addresses corresponding to coordinates of input pixels (not shown), and output to the adders 205 and 206, respectively.
[0053]
Adders 205 and 206 add noiseC and noiseM output from noise matrices 203 and 204 and vthCM output from fluctuation threshold table 202, respectively, and output fractThC and fractThM to output setting unit 106. When quantization is performed by the error diffusion method, a regular pattern tends to be easily generated at pixel values of gradations near the threshold value. Such a regular pattern generates a texture that does not exist in the original image, leading to a reduction in image quality. Therefore, in this embodiment, the amount of noise applied to the threshold for quantization is set in order to reduce the regular pattern without sacrificing the image quality of the output binary image.
[0054]
The noise matrix is given as follows, for example. That is, for a certain pixel area, for example, a 16 × 16 pixel area, a noise value is randomly set according to the pixel position in the area. As the value range, a method of selecting at random within a certain range, for example, a range of −10 to 10 or a method of selecting so that the distribution of noise values follows a normal distribution can be considered.
[0055]
In addition, there is a method in which only a sign is randomly given according to the pixel position, an absolute value of the noise value is given according to the pixel value, and a value obtained by adding a randomly given sign to the absolute value is used as the noise value. Conceivable. In this method, the absolute value of noise is set so as to increase for density gradations where a regular pattern is likely to occur, and to give a smaller value for density gradations that do not. The ease of occurrence of a regular pattern can be evaluated by quantizing an image having a uniform density gradation with a noise value of 0 for each density gradation of 0 to 255 and using the output of the configuration shown in FIG. . The evaluation is performed by, for example, performing orthogonal transformation on the quantized image (each pixel is 0 or 255) to convert it to the frequency domain, and filtering the high frequency component that is difficult to be seen by humans (that is, less likely to be a defect) and reverses it. Convert and return to image. In this state, the dispersion of pixel values is obtained, and the value is used as an index of the texture included in the image. Then, with respect to an image having a uniform gray level of interest, the noise value is quantized while increasing from 0 to 1, and the variance of the pixel values is obtained, and the noise value at which the value becomes the smallest is obtained. Determined as the noise value for the key.
[0056]
<Output setting section>
FIG. 3 is a block diagram illustrating the configuration of the output setting unit 106. The subtraction units 301 and 302 output lValueC ′ and lValueM ′, which are obtained by subtracting the outputs fractThC and fractThM from the threshold variation setting unit 105 from the outputs lValueC and lValueM from the addition units 101 and 102, respectively, to the output value table 303.
[0057]
FIG. 4 is a diagram showing the output value table 303. The output value table 303 is referred to by lValueC ′ and lValueM ′, and the quantized values binDataC and binDataM are output. The value of each area of the output value table 303 indicates (binDataC, binDataM). For example, when ◯ 401 is referred to by lValueC ′ and lValueM ′ as shown in FIG. 4, 1 and 0 are output as binDataC and binDataM, respectively. binDataC and binDataM are output as quantized results to an output image (not shown) and also output to the error calculators 103 and 104, respectively.
[0058]
<Error diffusion part>
FIG. 5 is a block diagram for explaining the configuration of the error calculators 103 and 104. First, the center value stdX obtained by referring to the center value table 502 is output to the subtraction unit 503 using the quantized value binDataX obtained from the output setting unit 106 as an address. In this embodiment, since binarization processing is performed, when binDataX is 0, stdX is 0, and when binDataX is 1, stdX is 255. The subtraction unit 503 outputs the error errorX obtained by subtracting the center value stdX from the output lValueX from the addition units 101 and 102 to the error dispersion unit 504. On the other hand, in the distribution coefficient table 501, the distribution coefficients difX0, difX1, difX2, and difX3 obtained using the input pixel value inValX as an address are sent to the error distribution unit 504.
[0059]
FIG. 6 is a diagram illustrating the positional relationship of the distribution coefficients difX0, difX1, difX2, and difX3 with respect to the pixel of interest 601. The error distribution unit performs the following calculation.
[0060]
errX3 = errX2 + errorX * difX3 (Formula 12)
errX2 = errX1 + errorX * difX2 (Formula 13)
errX1 = errorX * difX1 (Formula 14)
errX0 = errorX * difX0 (Formula 15).
[0061]
Here, errX0, errX1, errX2, and errX3 are variables stored in a storage unit (not shown) in the error distribution unit 504, and are all initialized at the start of printing. The error variance unit 504 outputs errX3 obtained by Expression 12 to the error buffer 505 and errX0 obtained by Expression 15 to the adder 506. The error buffer 505 stores errX3 at an address corresponding to the coordinates of the input pixel and outputs the error errXb from the previous raster to the adder 506.
[0062]
In this embodiment, when the coordinate of the input pixel in the main scanning direction is hPos and the head address of the error buffer is errBufX,
errBufX [hPos-2] = errX3 (Formula 16)
errXb = errBufX [hPos] (Formula 17)
It becomes. Note that errBufX [A] = B indicates that the value B is assigned to the Ath address from the top of the error buffer.
[0063]
The adder 506 adds errX0 obtained from the error distributor 504 and errXb obtained from the error buffer 505, sends the error errX to the adders 101 and 102, and is added to the next input pixel value inValX.
[0064]
For the distribution coefficients difX0, difX1, difX2, and difX3, for example, values such as 7/16, 1/16, 5/16, and 3/16 may be fixedly used in order, but the input pixel value inValX It can also be determined according to the value. In this case, an optimal distribution coefficient is determined in advance by trial and error while changing the distribution coefficient in accordance with the input pixel value.
[0065]
With the above configuration, processing for input data for one pixel is performed. By repeating the above processing by shifting the target pixel by one in the main scanning direction, the quantization processing is performed on the entire image.
[0066]
The image obtained in this manner is obtained by using the error diffusion method by combining two or more colors by the function of the threshold value fluctuation amount setting unit which is a characteristic configuration of the present embodiment. By varying the quantization threshold with the sum, it is possible to prevent the occurrence of false colors that do not appear in the original image. Thereby, generation | occurrence | production of the pseudo contour in all the colors combined with the pseudo contour in a single color can be prevented simultaneously. Further, by determining the error distribution coefficient of each color according to the input value, it is possible to simultaneously arrange the dot arrangement in the highlight.
[0067]
(A more detailed explanation of how to set the fluctuation threshold table)
Although the method for creating the fluctuation range value table has been briefly described, it will be described in more detail here.
[0068]
When the image of uniform color of 512 pixels vertically and horizontally shown in FIG. 14 is subjected to binary quantization processing without performing threshold correction processing in this embodiment, it occurs when each pixel is calculated. The error value was measured for each pixel. Further, the cyan value was averaged for the area (black and white area of 256 pixels) displayed in black in FIG. Hereinafter, this value is referred to as an error average value. The same measurement is performed for magenta.
[0069]
FIG. 15A is a diagram illustrating a measurement result of the error average value measured under the above-described conditions while setting different values for the cyan and magenta colors for the image subjected to the binary quantization process. . In FIG. 15A, as shown in FIG. 15B, the average error value for the cyan and magenta input values is plotted with respect to the vertical axis.
[0070]
This error average value is obtained when a quantization process that does not perform a correction process (addition of a threshold fluctuation value) is performed on the threshold value, such as a dot generation delay at the rising portion of the low density area described above. The characteristics are shown.
[0071]
More specifically, when the error average value is large (plus side, that is, when plotted above in FIG. 15), it indicates that dots are stably formed in a state where the plus error is accumulated. Yes. For example, consider a case where the threshold for determining whether or not to form dots in binary quantization is 127 and the input value is 10 (the input value is 255 at the maximum). In this case, a dot is formed when a value obtained by adding an error distributed from surrounding pixels in addition to an input value exceeds a threshold value, that is, 127. That is, no dot is formed until such a positive error is accumulated. That is, a dot formation delay occurs (so-called sweeping phenomenon). In such a case, the average error value is a large number (that is, a positive value and a large absolute value).
[0072]
When the average error value is small (a negative value and a large absolute value, that is, plotted below in FIG. 15), dots are stably formed with a negative error accumulated. Yes. For example, consider a case where the threshold for determining whether or not to form dots in binary quantization is 127 and the input value is 240 (the input value is 255 at the maximum). In this case, even when there is no error distribution from the surroundings, dots are formed and an error of 10 occurs. Even if some minus error is distributed from the surrounding pixels, the input value is much larger than the threshold value, so dots are formed at a high density, and minus errors accumulate.
[0073]
Then, when the value obtained by adding a minus error from surrounding pixels to the input value 240 falls below a threshold value, that is, 127, pixels that do not form dots appear. Then, in a state where the minus error is accumulated up to a certain value, the accumulated minus error is roughly stable, and the formed dot density is constant. In this way, an image defect that can create an area with a high dot density is generally called a discharge phenomenon. In such a case, the average error value is a small number (that is, a negative value and a large absolute value).
[0074]
In view of this, referring to FIG. 15A, in a color with a small magenta input value and a large cyan input value (a condition in which the sum of the magenta input value and the cyan input value is smaller than 127), an error occurs. In the area where the average value is small, that is, the area where the image of the color is quantized, a minus error is accumulated. Further, the error average value is large for a color having a large magenta input value and a small cyan input value (condition that the sum of the magenta input value and the cyan input value is smaller than 127).
[0075]
That is, from the state in which an image having a small magenta input value and a large cyan input value (a condition that the sum of the magenta input value and the cyan input value is smaller than 127) is quantized and negative errors are accumulated. Continuously quantizing a color having a large magenta input value and a small cyan input value (condition that the sum of the magenta input value and the cyan input value is smaller than 127) causes a significant delay in dot formation. .
[0076]
In the present embodiment, a value obtained by inverting the sign of the error average value (roughly shown in FIG. 15) obtained by the method described above is used as the correction parameter of the fluctuation threshold table, that is, the fluctuation threshold table in FIG. Used for 201. More specifically, in the case where the input of the variation threshold table (here, n is assumed for the sake of explanation) is an even number, the above method is used when both the cyan input and the magenta input are n / 2. A value obtained by inverting the sign of the obtained error average value is used. Further, when the input of the variation threshold table is an odd number, the error average obtained by the above method when the input of cyan is (n + 1) / 2 and the input of magenta is (n-1) / 2. A value obtained by averaging the error and the error average value obtained by the above method when the cyan input is (n-1) / 2 and the magenta input is (n + 1) / 2 is used.
[0077]
Thereby, the absolute value of the error average value generated by the quantization process is reduced regardless of the combination of the input values of the two colors. Thereby, dot formation delay, that is, image adverse effects such as sweeping phenomenon and discharging phenomenon are avoided or reduced.
[0078]
<Modification of First Embodiment>
Hereinafter, modifications of the first embodiment of the present invention will be described with reference to the drawings. This modification is different in that the threshold fluctuation amount setting unit 105 shown in FIG. 1 is changed from the configuration shown in FIG. 2 to the configuration shown in FIG. In the present example, the description of the same configuration and processing as those in the first embodiment is omitted.
[0079]
FIG. 12 is a block diagram illustrating the configuration of the threshold fluctuation amount setting unit 105. The input pixel values inValC and inValM are added by the adding unit 1201 and input to the variation threshold value table 1202. The variation threshold value table 1202 outputs values obtained by referring to the addition result inValC + inValM as an address to the output setting unit 106 as fractThC and fractThM.
[0080]
Compared with the configuration of FIG. 2, the noise matrix is omitted. Since the noise matrix is omitted, the removal of the regular pattern has no effect as in the first embodiment, but has the same effect in that the occurrence of false color can be prevented.
[0081]
[Second Embodiment]
FIG. 13 is a block diagram illustrating the configuration of the threshold fluctuation amount setting unit 105 in the second embodiment. The present embodiment has the same configuration as that of the first embodiment, except for the configuration other than the threshold fluctuation amount setting unit 105. Therefore, the description of the same configuration is omitted.
[0082]
In FIG. 13, input pixel values inValC and inValM are input to a fluctuation threshold table 201 and a fluctuation threshold table 202, respectively. The variation threshold value table 1301 and the variation threshold value table 1302 refer to the two-dimensional lookup table using the input pixel values inValC and inValM as addresses, and output vthC and vthM to the adders 205 and 206, respectively. The noise matrices 203 and 204 are referred to as noiseC and noiseM at addresses corresponding to coordinates of input pixels (not shown), and output to the adders 205 and 206, respectively.
[0083]
In the present embodiment, the value obtained by inverting the sign of the error average value (roughly shown in FIG. 15) obtained by the method described above is used as the correction parameter of the fluctuation threshold table, that is, the fluctuation threshold in FIG. Used for the two-dimensional lookup table of the value table 1301. Similarly, the value measured for magenta is used in the two-dimensional lookup table of the fluctuation threshold table 1302 in FIG. Thereby, the absolute value of the error average value generated by the quantization process is reduced regardless of the combination of the input values of the two colors. Thereby, dot formation delay, that is, image adverse effects such as sweeping phenomenon and discharging phenomenon are avoided or reduced.
[0084]
As described above, in this embodiment, two or more colors are combined while selecting a threshold fluctuation amount corresponding to each color combination for each pixel using a multidimensional LUT corresponding to multi-value image signals of two or more colors. Perform error diffusion. In the multi-dimensional LUT for selecting the threshold fluctuation amount, a parameter reflecting a characteristic that an error occurs when an error diffusion method combining two or more colors is performed is set.
[0085]
As a result, it is possible to perform an error diffusion method combining two or more colors using the threshold fluctuation amount selected by the input value while avoiding the phenomenon that the magnitude relationship between the input value and the output value of cyan and magenta is reversed. Thus, even when each color component is observed alone, the delay of dot formation can be effectively prevented.
[0086]
(About diffusion coefficient parameters)
The correction processing of the diffusion coefficient (distribution coefficient) in this embodiment is performed independently for cyan and magenta. As described in Japanese Patent Application No. 2001-295127, the selection of the parameters takes into account the dot arrangement when a monochrome image of cyan and magenta is quantized, and the pattern of the diffusion coefficient used for each input level. Decide. Further, a diffusion coefficient may be selected by quantizing several images for each level (for example, the image of FIG. 14).
[0087]
With the parameters of the diffusion coefficient determined in this way, the dot arrangement was checked for the combination of cyan and magenta in the present embodiment, but it was confirmed in the experiment in this embodiment that there is no significant image detriment. ing.
[0088]
In this way, the selection of the diffusion coefficient for each single color means that the amount of data for selecting the diffusion coefficient is smaller than the configuration in which the diffusion coefficient is selected with a lookup table of two colors (for example, cyan and magenta). There is a merit that can be reduced.
[0089]
[Modification of Second Embodiment]
In the second embodiment, the example in which the threshold fluctuation amount is selected using a two-dimensional lookup table having the same number of gradations as the number of gradations of the input value has been described. As another example of the configuration, in order to reduce the data amount of the lookup table, the input values of the two colors are converted into representative values having a smaller number of gradations, respectively, and then 2 according to the number of gradations of the representative value. A configuration in which a threshold fluctuation amount is selected using a dimension lookup table is conceivable.
[0090]
As an example of the representative value, if the input value takes a value from 0 to 255, it may be converted by a one-dimensional lookup table to obtain a representative value that takes a value in the range from 0 to 63. . In the conversion from the input to the representative value, the input value may be simply divided by 4 in this example.
[0091]
In the data used in the two-dimensional lookup table for selecting the threshold fluctuation amount, the value obtained by averaging the error average values for the combination of input values using the data is used with the sign inverted. To do.
[0092]
The gap of the error average value seen in FIG. 15A exists in the lick direction of the space created by the cyan input value and the magenta input value (a line in which the sum of the cyan input value and the magenta input value is 255). . Of the space created by the cyan input value and the magenta input value, an area where the sum of the minimum cyan input value and the magenta input value of the gap is small is area 0, and an area where the sum of the minimum cyan input value of the gap and the magenta input value is large Will be referred to as area 1.
When the data amount of the two-dimensional lookup table is simply reduced by using the representative value, the combination of the input value of cyan and magenta covered by the representative value of one set of cyan and magenta includes the gap. It may happen that a combination of both sides is included.
In this case, since the value of the variation threshold value to be set differs greatly on both sides of the gap, there is a possibility that the correction effect due to the variation threshold value is greatly reduced or an image defect is caused depending on the value to be set.
[0093]
In order to solve this problem, in this embodiment, two types of lookup table data for area 0 and area 1 are prepared, and whether the input value belongs to either area 0 or area 1 is determined. A configuration is adopted in which a determination is made and the LUT to be used is selected. For a combination of cyan and magenta representative values including a combination of cyan and magenta input values on both sides of the gap, the error average value on the area 0 side of the gap is included in the area 0 two-dimensional lookup table. And a value obtained by averaging and sign-inverting the error average value of the gap on the area 1 side is set in the two-dimensional lookup table for the area 1.
For a combination of cyan and magenta representative values including a combination of cyan and magenta input values on only one side of the gap, the average difference and average of the difference average values are inverted for all combinations of input values included in the representative value. The value is set as the value of the two-dimensional lookup table for both area 0 and area 1.
[0094]
With this configuration, it is possible to select the threshold fluctuation amount with high accuracy even in the combination of input values covered by the combination of the representative values of cyan and magenta, including the combination of the input values of cyan and magenta on both sides of the gap. Can do.
[0095]
When the input value of cyan or magenta is 0 or the maximum, the quantization error average value is zero as can be seen from FIG. That is, in this case, it is desirable that the threshold fluctuation amount is zero. Therefore, in this modification, it is determined whether the input value of cyan or magenta is 0 or the maximum, and in this case, 0 is selected as the threshold fluctuation amount.
[0096]
FIG. 16 shows a flowchart of threshold variation selection in this modification. First, it is determined whether the input value of any color component is 0 or 255 (S1601). If it is 0 or 255, 0 is selected as the threshold fluctuation amount (S1605). Otherwise, it is determined whether the position plotted in FIG. 15 is area 0 across the gap (S1602). If it is area 0, the input value is converted into a representative value with a small number of gradations (see FIG. 15). S1603). For example, 256 gradations are once converted into 64 gradations. Then, using the converted value as an index, a threshold fluctuation amount is obtained from the two-dimensional LUT for area 0 (S1604). On the other hand, if it is area 1, each input value is converted into a representative value with a small number of gradations (S1606). Then, using the converted value as an index, a threshold fluctuation amount is obtained from the two-dimensional LUT for area 1 (S1607). In the LUT for each area, values of the average quantization error shown in FIG. 15A corresponding to area 0 and area 1 are registered.
[0097]
With this configuration, it is possible to select a threshold fluctuation amount with the highest possible accuracy while reducing the data amount of the two-dimensional lookup table.
[0098]
According to the configuration of this modification, an error measured with respect to an image obtained by combining the two colors with a configuration in which the threshold variation amount of each color is set using a multidimensional LUT corresponding to multi-value image signals of two or more colors. The threshold fluctuation amount is set using parameters reflecting the characteristics of occurrence. Accordingly, it is possible to perform a quantization process combining input values of two or more colors while eliminating an adverse effect of an image whose output values are reversed, which is given as a problem to be solved by the invention.
[0099]
[Third Embodiment]
FIG. 17 is a block diagram illustrating the configuration of the threshold fluctuation amount setting unit 105 in the second embodiment. The present embodiment has the same configuration as that of the first embodiment, except for the configuration other than the threshold fluctuation amount setting unit 105. Therefore, the description of the same configuration is omitted.
[0100]
FIG. 17 is a block diagram illustrating the configuration of the threshold fluctuation amount setting unit 105. The input pixel values inValC and inValM are input to the adding unit 201 and the sum of them is output. The signal is input to the fluctuation threshold table 1702, and vthCM is output with reference to the one-dimensional lookup table. Further, the input pixel values inValC and inValM are input to the fluctuation threshold table 1701 and the fluctuation threshold table 1703.
[0101]
In the variation threshold table 1701 and the variation threshold table 1703, first, the number of gradations of the input pixel values inValC and inValM is converted into a quarter value by a one-dimensional lookup table, and the two values are used as an address for two-dimensional lookup. Each of the tables is referred to, and the obtained first threshold fluctuation amounts vthC and vthM are output to the adding units 205 and 206, respectively. The data of each lookup table will be described in detail later. Note that the variation threshold value table 1701 and the variation threshold value table 1703 have the same configuration as that described as the modification of the second embodiment.
[0102]
The fluctuation threshold table 1702 outputs a threshold fluctuation amount based on the sum of cyan and magenta values output from the adding unit 201. Note that the fluctuation threshold table 1702 is the same as the fluctuation threshold table 202 in the first embodiment.
[0103]
The noise matrices 203 and 204 are referred to as noiseC and noiseM at addresses corresponding to coordinates of input pixels (not shown), and output to the adders 205 and 206, respectively.
[0104]
Adders 205 and 206 add noiseC and noiseM output from noise matrices 203 and 204, vthCM output from fluctuation threshold table 1702, and further vthCM and vthM output from fluctuation threshold table 1701 and fluctuation threshold table 1703, respectively. And output to the output setting device 106 as fractThC and fractTM.
[0105]
(Threshold correction characteristics based only on the fluctuation threshold table 1702)
FIG. 18 shows the case where only the threshold correction of the variation threshold table 1702 described above is performed and the threshold correction by the variation threshold table 1701 and the variation threshold table 1703 is not performed (that is, from the variation threshold table 1701 and the variation threshold table 1703). The characteristic of the error average value measured under the condition that the output value is always 0) is shown.
[0106]
FIG. 18A shows the average error value of cyan measured under the above-mentioned conditions while setting different values for cyan and magenta for the color of the image subjected to binary quantization processing. Yes. Further, as shown in FIG. 18B, the error average value in FIG. 18A is plotted with the axes of cyan and magenta input values, and the error average value is plotted along the vertical axis.
[0107]
In the data of FIG. 18A, compared to the characteristics (FIG. 19A) when the threshold value of the fluctuation threshold table 1702 is not corrected (FIG. 19A), the diagonal direction of the space based on the cyan input value and the magenta input value. The gap (what is visible in the center in FIG. 15A) is gone.
[0108]
Further, in the characteristics of FIG. 18A, since the quantization error still slightly varies according to the input pixel value of each color component, an error average value gradient remains. In the present embodiment, it is corrected with correction values based on the fluctuation threshold table 1701 and the fluctuation threshold table 1703. Since the gap shown in FIG. 15A is eliminated, the variation threshold value table 1701 and the variation threshold value table 1703 can easily reduce the number of levels of the input values of the lookup table, that is, make the table small. .
[0109]
This is the merit of the configuration of the present invention. By using the one-dimensional lookup table and the two-dimensional lookup table in combination, the data amount of the two-dimensional lookup table can be reduced.
[0110]
(Setting of fluctuation threshold table 1701 and fluctuation threshold table 1703)
The fluctuation threshold table 1701 uses a value obtained by reversing the sign of the error average value (value shown in FIG. 18A) measured only by correcting the threshold of the fluctuation threshold table 1702. That is, first, as described in the first embodiment, an average quantization error is obtained using an image as shown in FIG. 14 in which each density gradation pixel is uniformly distributed as a sample. In that case, the fluctuation range value table 1702 is used, but the fluctuation range value tables 1701 and 1703 are not used. That is, the image is quantized using the image processing apparatus described in the first embodiment, and an average quantization error for each color component is obtained in relation to the values of the color components cyan and magenta. This is FIG. 19 (A). Then, the sign of this value is inverted to obtain the fluctuation range value tables 1701 and 1703. However, the input values for cyan and magenta are each ¼. For this purpose, for example, for each of cyan and magenta colors, an average quantization error is obtained for each 4i (i is an integer from 0 to 63), and this is used as the fluctuation threshold tables 1701 and 1703. In order to draw this table, the input value is converted. For example, a method of adding a certain value (for example, 0 or 2) to the input value and dividing by 4 and using the quotient can be considered.
[0111]
In this way, the data amount is reduced by setting the number of gradations to ¼ of the input value as described above.
[0112]
This is the same for cyan and magenta, and both measured values are used for the two-dimensional lookup tables of the fluctuation threshold tables 1701 and 1703 in FIG.
[0113]
Thereby, the absolute value of the error average value generated by the quantization process is reduced regardless of the combination of the input values of the two colors. Thereby, dot formation delay, that is, image adverse effects such as sweeping phenomenon and discharging phenomenon are avoided or reduced.
[0114]
(About diffusion coefficient parameters)
The diffusion coefficient correction processing in this embodiment is performed independently for cyan and magenta. As described in Japanese Patent Application No. 2001-295127, the parameters are selected by considering the dot arrangement when a monochrome image of each of cyan and magenta is quantized, and the diffusion coefficient used for each input level. / Decide on a turn. Further, a diffusion coefficient may be selected by quantizing several images for each level (for example, the image of FIG. 7).
[0115]
With the diffusion coefficient parameters determined in this way, the dot arrangement was checked with the combination of the two colors cyan and magenta in the present embodiment. However, in the experiment in the present embodiment, there is no significant image problem. It has been confirmed.
[0116]
In this way, the selection of the diffusion coefficient for each single color means that the amount of data for selecting the diffusion coefficient is smaller than the configuration in which the diffusion coefficient is selected with a lookup table of two colors (for example, cyan and magenta). There is a merit that can be reduced.
[0117]
As described above, according to the configuration of the present embodiment, the threshold variation amount of each color is set using a multidimensional LUT corresponding to multi-value image signals of two or more colors, and the above two colors are combined. The threshold fluctuation amount is set using a parameter reflecting the error occurrence characteristic measured for the image. Accordingly, it is possible to perform a quantization process combining input values of two or more colors while eliminating an adverse effect of an image whose output values are reversed, which is given as a problem to be solved by the invention.
[0118]
<Application of each embodiment>
In each of the above embodiments, the configuration in which the diffusion coefficient is corrected for each of cyan and magenta is shown. However, the present invention is not limited to the configuration. For example, for the input values of cyan and magenta, a diffusion coefficient may be selected using a multidimensional lookup table. In the case of this configuration, it is possible to make the arrangement of dots formed more uniform. However, the method of selecting the diffusion coefficient for each single color in the embodiment has an advantage that the amount of data can be relatively reduced.
[0119]
Although the binary example has been described in the above embodiment, the present invention is not limited to the configuration. The same effect can be obtained when multi-level quantization processing is performed.
[0120]
In the above embodiment, an example has been described in which noise matrix data is referred to by an address corresponding to the coordinates of input pixels of two colors, and noise characteristics are added to the variation amount of the threshold. However, the present invention is not limited to this configuration. The reason why the noise characteristic is added to the fluctuation amount of the threshold value is to avoid or reduce the deterioration of the image quality due to the regular dot arrangement appearing in the output image as a result of the quantization process. The present invention is not limited to this configuration, and the same effect is obtained when no noise characteristic is added to the amount of variation in threshold.
[0121]
In the above-described embodiment, an example in which quantization processing is performed on input pixel values of two colors of cyan and magenta in combination has been described. However, the present invention is not limited to this configuration. For example, it is also effective when processing is performed for combinations of inks of other colors. In addition, there is an effect on a combination of differently conspicuous combinations such as a printing system using relatively dark dots and thin dots, a printing system using relatively large dot diameters, and small dots.
[0122]
Further, combinations of more than two colors, that is, cyan, magenta, black, and the like are also effective. In this case, a three-dimensional lookup table is used instead of the two-dimensional lookup table.
[0123]
In the above-described embodiment, an example in which the output determination unit determines an output value with reference to a multidimensional lookup table has been described. However, the present invention is not limited to this configuration, and is effective in an error diffusion method in which output determination is performed with a combination of two or more colors.
[0124]
Further, in the above-described embodiment, the configuration in which the error variation amount is selected using the input value of the pixel that is subjected to quantization processing by the error diffusion method has been described. However, if the image to be quantized has a characteristic that the input value hardly changes greatly for each pixel, the input value of a neighboring pixel of the pixel to be quantized or It is also effective to select the threshold fluctuation amount using the average value of the input values of these pixels.
[0125]
For example, in order to form an image of a photographic image or the like with a high-resolution recording apparatus, there is a case where quantization processing is performed at a higher resolution than the resolution of the optical system of the camera that inputs the image.
[0126]
Further, by applying the image processing apparatus configured as described above to a printer that quantizes a multi-valued image and forms an image, it is possible to print a high-quality image. In particular, in an ink jet printer that forms an image by placing dots of a certain size for each color component on a medium, the quality of the image formed varies greatly depending on how the dots are arranged. The application of the present invention, which is applied to prevent the delay of dot generation and prevents the occurrence of false colors due to the reversal of the color component ratio of the input pixel and the color component ratio of the output pixel, has a great effect on improving the image quality.
[0127]
【The invention's effect】
As described above, according to the present invention, in an image processing apparatus that uses an error diffusion method by combining two or more colors, the quantization threshold is changed by the sum of the input values of each color in the pixel of interest, so While simultaneously preventing the generation of pseudo contours in all colors combined with the contours, it is possible to simultaneously adjust the dot arrangement in the highlight by determining the error distribution coefficient of each color according to the input value.
[0128]
In the present invention, an error diffusion method in which two or more colors are combined while selecting a threshold fluctuation amount corresponding to each color combination for each pixel using a multidimensional LUT corresponding to multi-value image signals of two or more colors. The multi-dimensional LUT for selecting the threshold fluctuation amount is set with a parameter that reflects a characteristic that causes an error when an error diffusion method combining two or more colors is performed.
[0129]
Accordingly, an error diffusion method combining two or more colors using a threshold fluctuation amount selected according to an input value while avoiding a phenomenon in which the magnitude relationship of the color components such as cyan and magenta is reversed between the input value and the output value. It became possible to do.
[0130]
Further, in the present invention, an error diffusion method combining two or more colors while selecting a threshold fluctuation amount corresponding to each color combination for each pixel using a multidimensional LUT corresponding to multi-value image signals of two or more colors. And a multi-dimensional LUT having parameters reflecting characteristics that cause errors when an error diffusion method combining two or more colors is performed and the quantization threshold is changed by the sum of input values of each color in the target pixel. Further, the fluctuation of the quantization threshold is corrected.
[0131]
As a result, it is possible to perform an error diffusion method combining two or more colors using the threshold fluctuation amount selected by the input value while avoiding the phenomenon that the magnitude relationship between the input value and the output value of cyan and magenta is reversed. It became. Since the threshold fluctuation amount is corrected in two stages, the average quantization error that causes the dot generation delay during the quantization process can be sufficiently reduced, and the image quality can be further improved.
[Brief description of the drawings]
FIG. 1 is a block diagram illustrating a configuration of an image processing apparatus according to an embodiment.
FIG. 2 is a block diagram illustrating a configuration of a threshold fluctuation amount setting unit in the image processing apparatus according to the first embodiment.
FIG. 3 is a block diagram illustrating a configuration of an output setting unit in the image processing apparatus according to the embodiment.
FIG. 4 is a schematic diagram illustrating an output value table in the image processing apparatus according to the embodiment.
FIG. 5 is a block diagram illustrating a configuration of an error calculation unit in the image processing apparatus according to the embodiment.
FIG. 6 is a schematic diagram showing an error distribution window.
FIG. 7 is a schematic diagram illustrating an output value table in a conventional image processing apparatus.
FIG. 8 is a block diagram illustrating a configuration of a conventional image processing apparatus.
FIG. 9 is a block diagram illustrating a threshold fluctuation amount setting unit of a conventional image processing apparatus.
FIG. 10 is a block diagram illustrating a configuration of an output setting unit in a conventional image processing apparatus.
FIG. 11 is a block diagram illustrating a configuration of an error calculation unit in a conventional image processing apparatus.
FIG. 12 is a block diagram showing another configuration of the threshold fluctuation amount setting unit in the first embodiment.
FIG. 13 is a block diagram illustrating a configuration of a threshold fluctuation amount setting unit in the image processing apparatus according to the second embodiment.
FIG. 14 is an explanatory diagram of an image used for measurement of an error average value.
FIG. 15 is an explanatory diagram of an error average value characteristic when threshold correction is not performed.
FIG. 16 is a flowchart of processing in a threshold fluctuation amount setting unit according to a modification of the second embodiment.
FIG. 17 is a block diagram showing a configuration of a threshold fluctuation amount setting unit in the third embodiment.
FIG. 18 is an explanatory diagram of an error average value characteristic when only correction for selecting a cabinet price change is performed by the sum of input values of two colors.
[Explanation of symbols]
101, 102, 201, 205, 206, 506, 801, 802, 903, 1106, 1201 adder
103, 104, 803, 804 Error calculator
105, 805, 806 Threshold fluctuation amount setting unit
106,807 Output value setting section
202, 902, 1202 Fluctuation threshold table
203, 204, 901 Noise matrix
301, 302, 503, 1001, 1002, 1103 Subtraction unit
303,1003 Output value table
401, 702 Error-corrected input pixel
501, 1101 distribution coefficient table
502, 1102 Central value table
504, 1104 Error dispersion unit
505, 1105 Error buffer
701 Input pixel

Claims (23)

複数の色成分を含む多値カラー画像データを量子化処理する画像処理装置であって、
注目画素に含まれる複数の色成分の各々について、近傍画素からの各色成分毎に配分される量子化誤差値を加算する加算手段と、
前記注目画素の各色成分値の和に基づいて各色の閾値変動量を決定する変動量決定手段と、
上記誤差補正した各色成分の値を用いて各色の量子化値を出力する量子化手段と、上記誤差補正した各色成分の値と上記各色の量子化値から各色の誤差を計算して周辺画素に配分する誤差計算手段とを備え、
前記量子化手段は、変換後の各色成分の値を決定する際に、各色成分の量子化閾値を前記閾値変動量により変動させることを特徴とする画像処理装置。
An image processing apparatus for quantizing multi-valued color image data including a plurality of color components,
For each of a plurality of color components included in the pixel of interest, an adding means for adding a quantization error value distributed for each color component from neighboring pixels;
Variation amount determining means for determining a threshold variation amount of each color based on the sum of each color component value of the target pixel;
Quantization means for outputting a quantized value of each color using the error-corrected value of each color component, and calculating an error of each color from the error-corrected value of each color component and the quantized value of each color to the surrounding pixels. An error calculating means for distributing,
The image processing apparatus, wherein the quantizing unit varies a quantization threshold of each color component according to the threshold fluctuation amount when determining a value of each color component after conversion.
前記量子化手段は、前記加算手段により誤差値が加算された各色成分の値の和を変換後の値の和に対応させるとともに、当該変換後の画素値の和について、変換前の各色成分の比に応じて分配して変換後の各色成分の値を決定することを特徴とする請求項1に記載の画像処理装置。The quantization means associates the sum of the values of the color components to which the error value has been added by the addition means with the sum of the values after the conversion, and the sum of the pixel values after the conversion, The image processing apparatus according to claim 1, wherein the value of each color component after distribution is determined according to a ratio and is determined. 前記量子化手段は、変換後の各色成分の値を決定する際に、前記閾値変動量を前記注目画素の各色成分の値にそれぞれ加算することで、各色成分の量子化閾値を変動させることを特徴とする請求項1または請求項2に記載の画像処理装置。The quantization means, when determining the value of each color component after conversion, adds the threshold fluctuation amount to the value of each color component of the pixel of interest, thereby changing the quantization threshold of each color component. The image processing apparatus according to claim 1, wherein the image processing apparatus is characterized. 前記量子化手段は、前記加算手段により誤差値が加算された各色成分の値で、予め各色の量子化値が格納されたルックアップテーブルを参照して各色の量子化値を決定することを特徴とする請求項3に記載の画像処理装置。The quantization means determines the quantization value of each color by referring to a look-up table in which the quantization value of each color is stored in advance with the value of each color component added with the error value by the addition means. The image processing apparatus according to claim 3. 前記量子化手段において量子化される階調数は2以上であることを特徴とする請求項1乃至4のいずれか1項に記載の画像処理装置。The image processing apparatus according to claim 1, wherein the number of gradation levels quantized by the quantization unit is two or more. 前記変動量決定手段は、複数の色成分おのおのについての各濃度階調における平均量子化誤差を、前記複数の色成分それぞれについて相等しい値ずつ補正するように設定されたテーブルを有し、前記加算手段により出力される注目画素の各色成分の値の和により前記テーブルを参照して得られる値を前記閾値変動量と決定することを特徴とする請求項1乃至5のいずれか1項に記載の画像処理装置。The variation determining means has a table set so as to correct an average quantization error in each density gradation for each of a plurality of color components by an equal value for each of the plurality of color components, and the addition The value obtained by referring to the table by the sum of the values of the respective color components of the target pixel output by the means is determined as the threshold fluctuation amount. Image processing device. 前記変動量決定手段は、前記注目画素の各色成分値の和に代えて、前記注目画素の各色成分値の組み合わせに基づいて各色の閾値変動量を決定することを特徴とする請求項1乃至6のいずれか1項に記載の画像処理装置。7. The variation amount determining unit determines a threshold variation amount of each color based on a combination of color component values of the target pixel instead of a sum of color component values of the target pixel. The image processing apparatus according to any one of the above. 前記変動量決定手段は、複数の色成分おのおのについての各濃度階調における平均量子化誤差を、前記複数の色成分それぞれについて相殺するように設定されたテーブルを有し、前記加算手段により出力される注目画素の各色成分の値の組み合わせにより前記テーブルを参照して得られる値を前記閾値変動量と決定することを特徴とする請求項1乃至7のいずれか1項に記載の画像処理装置。The variation amount determining means has a table set so as to cancel the average quantization error in each density gradation for each of a plurality of color components for each of the plurality of color components, and is output by the adding means. The image processing apparatus according to claim 1, wherein a value obtained by referring to the table based on a combination of values of each color component of the target pixel is determined as the threshold fluctuation amount. 前記変動量決定手段により決定した閾値変動量を用いて注目画素の量子化を行った場合の第2の平均量子化誤差を、各色成分ごとにさらに相殺するよう、前記閾値変動量を補正する補正手段を更に備えることを特徴とする請求項1乃至8のいずれか1項に記載の画像処理装置。Correction for correcting the threshold fluctuation amount so that the second average quantization error when the pixel of interest is quantized using the threshold fluctuation amount determined by the fluctuation amount determination means is further canceled for each color component. The image processing apparatus according to claim 1, further comprising a unit. 前記補正手段は、複数の色成分おのおのについての各濃度階調における前記第2の平均量子化誤差を、前記複数の色成分それぞれについて相殺するように設定されたテーブルを用いて前記閾値変動量を補正することを特徴とする請求項1乃至9のいずれか1項に記載の画像処理装置。The correction means calculates the threshold fluctuation amount using a table set so as to cancel out the second average quantization error in each density gradation for each of the plurality of color components for each of the plurality of color components. The image processing apparatus according to claim 1, wherein correction is performed. 前記テーブルは、入力画素の階調数を間引いた階調数により参照されるよう構成されることを特徴とする請求項1乃至10のいずれか1項に記載の画像処理装置。The image processing apparatus according to claim 1, wherein the table is configured to be referred to by a gradation number obtained by thinning a gradation number of an input pixel. 複数の色成分を含む多値カラー画像データを量子化処理する画像処理方法であって、
注目画素に含まれる複数の色成分の各々について、近傍画素からの各色成分毎に配分される量子化誤差値を加算する加算工程と、
前記注目画素の各色成分値の和に基づいて各色の閾値変動量を決定する変動量決定工程と、
上記誤差補正した各色成分の値を用いて各色の量子化値を出力する量子化工程とを備え、
前記量子化工程は、変換後の各色成分の値を決定する際に、各色成分の量子化閾値を前記閾値変動量により変動させることを特徴とする画像処理方法。
An image processing method for quantizing multi-valued color image data including a plurality of color components,
For each of a plurality of color components included in the pixel of interest, an addition step of adding a quantization error value distributed for each color component from neighboring pixels;
A variation determination step for determining a threshold variation of each color based on the sum of the color component values of the pixel of interest;
A quantization step of outputting the quantized value of each color using the value of each color component corrected for error,
In the quantization step, when determining the value of each color component after conversion, the quantization threshold of each color component is changed according to the threshold fluctuation amount.
前記量子化工程は、前記加算工程により誤差値が加算された各色成分の値の和を変換後の値の和に対応させるとともに、当該変換後の画素値の和について、変換前の各色成分の比に応じて分配して変換後の各色成分の値を決定することを特徴とする請求項11に記載の画像処理方法。In the quantization step, the sum of the values of the color components to which the error values are added in the addition step corresponds to the sum of the values after the conversion, and the sum of the pixel values after the conversion, The image processing method according to claim 11, wherein the value of each color component after conversion is determined by distribution according to a ratio. 前記量子化工程は、変換後の各色成分の値を決定する際に、前記閾値変動量を前記注目画素の各色成分の値にそれぞれ加算することで、各色成分の量子化閾値を変動させることを特徴とする請求項12または請求項13に記載に画像処理方法。In the quantization step, when determining the value of each color component after conversion, the quantization threshold of each color component is changed by adding the threshold fluctuation amount to the value of each color component of the target pixel. The image processing method according to claim 12 or 13, wherein the image processing method is characterized by the following. 前記量子化工程は、前記加算工程により誤差値が加算された各色成分の値で、予め各色の量子化値が格納されたルックアップテーブルを参照して各色の量子化値を決定することを特徴とする請求項14に記載の画像処理方法。The quantization step is to determine the quantization value of each color by referring to a lookup table in which the quantization value of each color is stored in advance with the value of each color component added with the error value in the addition step The image processing method according to claim 14. 前記量子化工程において量子化される階調数は2以上であることを特徴とする請求項12乃至15のいずれか1項に記載の画像処理方法。16. The image processing method according to claim 12, wherein the number of gradation levels quantized in the quantization step is two or more. 前記変動量決定工程は、複数の色成分おのおのについての各濃度階調における平均量子化誤差を、前記複数の色成分それぞれについて相等しい値ずつ補正するように設定されたテーブルを有し、前記加算工程により出力される注目画素の各色成分の値の和により前記テーブルを参照して得られる値を前記閾値変動量と決定することを特徴とする請求項12乃至16のいずれか1項に記載の画像処理方法。The variation determination step includes a table set to correct an average quantization error in each density gradation for each of a plurality of color components by an equal value for each of the plurality of color components, and the addition The value obtained by referring to the table by the sum of the values of each color component of the pixel of interest output in the process is determined as the threshold fluctuation amount. Image processing method. 前記変動量決定工程は、前記注目画素の各色成分値の和に代えて、前記注目画素の各色成分値の組み合わせに基づいて各色の閾値変動量を決定することを特徴とする請求項12乃至17のいずれか1項に記載の画像処理方法。18. The variation amount determining step determines a threshold variation amount of each color based on a combination of color component values of the target pixel instead of a sum of color component values of the target pixel. The image processing method according to any one of the above. 前記変動量決定工程は、複数の色成分おのおのについての各濃度階調における平均量子化誤差を、前記複数の色成分それぞれについて相殺するように設定されたテーブルを有し、前記加算工程により出力される注目画素の各色成分の値の組み合わせにより前記テーブルを参照して得られる値を前記閾値変動量と決定することを特徴とする請求項12乃至18のいずれかに記載の画像処理方法。The variation amount determining step has a table set so as to cancel the average quantization error in each density gradation for each of the plurality of color components for each of the plurality of color components, and is output by the adding step. 19. The image processing method according to claim 12, wherein a value obtained by referring to the table based on a combination of values of each color component of the target pixel is determined as the threshold fluctuation amount. 前記変動量決定工程により決定した閾値変動量を用いて注目画素の量子化を行った場合の第2の平均量子化誤差を、各色成分ごとにさらに相殺するよう、前記閾値変動量を補正する補正工程を更に備えることを特徴とする請求項12乃至19のいずれか1項に記載の画像処理方法。Correction for correcting the threshold variation amount so that the second average quantization error when the pixel of interest is quantized using the threshold variation amount determined in the variation amount determination step is further canceled for each color component. The image processing method according to claim 12, further comprising a step. 前記補正工程は、複数の色成分おのおのについての各濃度階調における前記第2の平均量子化誤差を、前記複数の色成分それぞれについて相殺するように設定されたテーブルを用いて前記閾値変動量を補正することを特徴とする請求項12乃至20のいずれか1項に記載の画像処理方法。In the correcting step, the threshold fluctuation amount is calculated using a table set so as to cancel out the second average quantization error in each density gradation for each of the plurality of color components for each of the plurality of color components. The image processing method according to claim 12, wherein correction is performed. 請求項12乃至21のいずれか1項に記載の方法を、コンピュータにより実行させるためのプログラム。A program for causing a computer to execute the method according to any one of claims 12 to 21. 請求項22に記載のプログラムを記録したコンピュータ可読記録媒体。A computer-readable recording medium on which the program according to claim 22 is recorded.
JP2002275828A 2002-09-20 2002-09-20 Image processing apparatus and method Expired - Fee Related JP4280473B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002275828A JP4280473B2 (en) 2002-09-20 2002-09-20 Image processing apparatus and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002275828A JP4280473B2 (en) 2002-09-20 2002-09-20 Image processing apparatus and method

Publications (2)

Publication Number Publication Date
JP2004112696A true JP2004112696A (en) 2004-04-08
JP4280473B2 JP4280473B2 (en) 2009-06-17

Family

ID=32271910

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002275828A Expired - Fee Related JP4280473B2 (en) 2002-09-20 2002-09-20 Image processing apparatus and method

Country Status (1)

Country Link
JP (1) JP4280473B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009020617A (en) * 2007-07-10 2009-01-29 Canon Inc Image processor, image processing method, and ink jet recording device
CN113031281A (en) * 2021-04-21 2021-06-25 南昌三极光电有限公司 Optical system
CN117274250A (en) * 2023-11-20 2023-12-22 深圳市金三维实业有限公司 Visual detection method for wear defect of watch bottom cover

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009020617A (en) * 2007-07-10 2009-01-29 Canon Inc Image processor, image processing method, and ink jet recording device
CN113031281A (en) * 2021-04-21 2021-06-25 南昌三极光电有限公司 Optical system
CN113031281B (en) * 2021-04-21 2022-11-08 南昌三极光电有限公司 Optical system
CN117274250A (en) * 2023-11-20 2023-12-22 深圳市金三维实业有限公司 Visual detection method for wear defect of watch bottom cover
CN117274250B (en) * 2023-11-20 2024-03-29 深圳市金三维实业有限公司 Visual detection method for wear defect of watch bottom cover

Also Published As

Publication number Publication date
JP4280473B2 (en) 2009-06-17

Similar Documents

Publication Publication Date Title
US5353127A (en) Method for quantization gray level pixel data with extended distribution set
JP4634292B2 (en) Image processing apparatus, image processing method, and program for causing computer to execute the method
US5729663A (en) Method and apparatus for gray screening
JP4740987B2 (en) Halftoning method
US6373990B1 (en) Image processing utilizing luminance-density conversion
JPH05308515A (en) Method for quantizing pixel value in picture
JP4381360B2 (en) Image processing method, image processing apparatus, image forming apparatus, computer program, and recording medium
US20040010633A1 (en) Method and apparatus for image processing
US6233360B1 (en) Method and system for hybrid error diffusion processing of image information using adaptive white and black reference values
US8018623B2 (en) Multi-level halftoning providing reduced error diffusion artifacts
JP3489806B2 (en) Image processing apparatus and method
JP4280473B2 (en) Image processing apparatus and method
JP3943981B2 (en) Image processing apparatus and method
JP2003101776A (en) Threshold matrix forming method, image outputting system, program and recording medium
US6006011A (en) Target patterns controlled error management
JP4537211B2 (en) Image processing apparatus, image processing method, program causing computer to execute the method, image forming apparatus, and computer-readable recording medium recording the program
JP4775909B2 (en) Image processing apparatus, image processing method, program, recording medium, and image forming apparatus
JP2001052157A (en) Device and method for processing image
JP3679522B2 (en) Image processing method and apparatus
JP3809274B2 (en) Image processing apparatus and method
JPH10136205A (en) Image processor
JP2003023540A (en) Image processor
JPH11225273A (en) Image processing method and image processing unit
JPH1056568A (en) Image processor
JP5464906B2 (en) Image processing apparatus and control method thereof

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20050609

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20070307

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20070907

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20071106

RD03 Notification of appointment of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7423

Effective date: 20071106

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20080516

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20080715

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20081222

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20090216

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

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

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

Free format text: PAYMENT UNTIL: 20120319

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Ref document number: 4280473

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

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20140319

Year of fee payment: 5

LAPS Cancellation because of no payment of annual fees